Search

US-12628210-B2 - Method and device for connecting apparatuses, apparatus and storage medium

US12628210B2US 12628210 B2US12628210 B2US 12628210B2US-12628210-B2

Abstract

Embodiments of the present disclosure discloses a method and a device for connecting apparatuses, apparatuses and storage medium, which relates to the field of communication. The method includes: determining whether the first apparatus stores an identifier of a target-type apparatus; when the first apparatus stores the identifier of the target-type apparatus, transmitting triggering information to a second apparatus, wherein the triggering information is used to trigger the second apparatus to transmit a connection request, a type associated with the second apparatus is the target type, and the second apparatus is connected with the first apparatus through a wired input line; receiving the connection request transmitted by the second apparatus; and establishing a wireless connection with the second apparatus based on the connection request. Therefore, the embodiments of the present disclosure can automatically connect apparatuses and improve an efficiency of connecting apparatuses.

Inventors

  • Jialiang HUANG
  • Jingzhi Ye
  • Ling Huang
  • Jianlei Chen

Assignees

  • GUANGZHOU SHIYUAN ELECTRONICS CO., LTD.
  • GUANGZHOU SHIRUI ELECTRONICS CO. LTD.

Dates

Publication Date
20260512
Application Date
20220508
Priority Date
20210508

Claims (18)

  1. 1 . A method being performed by a first apparatus for connecting apparatuses, the method comprising: determining whether the first apparatus stores an identifier associated with a target-type apparatus; responsive to determining that the first apparatus stores the identifier of the target-type apparatus, transmitting triggering information to a second apparatus, wherein the triggering information is used to trigger the second apparatus to transmit a connection request, a type associated with the second apparatus is a target type, and the second apparatus is connected with the first apparatus by a wired line; receiving the connection request transmitted by the second apparatus; and establishing a wireless connection with the second apparatus based on the connection request.
  2. 2 . The method of claim 1 , further comprising: responsive to determining that the first apparatus does not store the identifier of the target-type apparatus, transmitting preset information to the second apparatus, wherein the preset information is used to trigger the second apparatus to start a discovery and pairing function; and establishing the wireless connection with the second apparatus by using the discovery and pairing function of the second apparatus.
  3. 3 . The method of claim 1 , wherein the determining whether the first apparatus stores the identifier of the target-type apparatus further comprises: acquiring a storage list, wherein the storage list is used to store identifiers of apparatuses that have established wireless connections with the first apparatus; responsive to determining that the type indicated by the identifier of an apparatus stored in the storage list is the target type, determining that the first apparatus stores the identifier of the target-type apparatus; and responsive to determining the type indicated by the identifier of the apparatus stored in the storage list is not the target type, determining that the first apparatus does not store the identifier of the target-type apparatus.
  4. 4 . The method of claim 3 , further comprising: storing the identifier of the currently connected second apparatus in the storage list.
  5. 5 . The method of claim 1 , wherein a state of the second apparatus is a hidden state.
  6. 6 . The method of claim 1 , further comprising: when the second apparatus is further connected with at least one third apparatus, communicating with the third apparatus through the second apparatus.
  7. 7 . A method being performed by a second apparatus for connecting apparatuses, the method comprising: receiving triggering information transmitted by a first apparatus, wherein the triggering information is used to trigger the second apparatus to transmit a connection request, the first apparatus is connected with the second apparatus by a wired line; and transmitting the connection request to the first apparatus based on the triggering information.
  8. 8 . The method of claim 7 , further comprising: receiving preset information transmit by the first apparatus, wherein the preset information is used to trigger the second apparatus to start a discovery and pairing function; and starting the discovery and pairing function based on the preset information.
  9. 9 . The method of claim 8 , further comprising: setting a state of the second apparatus as a hidden state.
  10. 10 . The method of claim 7 , further comprising: responsive to determining that the second apparatus is further connected with at least one third apparatus, receiving a message from the first apparatus and forwarding the message to the third apparatus; and/or receiving a message from the third apparatus and forwarding the message to the first apparatus.
  11. 11 . A device for connecting apparatuses, comprising: a determining module to determine whether the first apparatus stores an identifier associated with a target-type apparatus, wherein the first apparatus is connected with a second apparatus through a wired line; a first transmitting module to: responsive to determining that the first apparatus stores the identifier associated with the target-type apparatus, transmitting triggering information to the second apparatus, wherein the triggering information is used to trigger the second apparatus to transmit a connection request, a type associated with the second apparatus is a target type, and the second apparatus is connected with the first apparatus by a wired line; a first receiving module to receive the connection request transmitted by the second apparatus; and a connection module to establish a wireless connection with the second apparatus based on the connection request.
  12. 12 . The device of claim 11 , wherein the first transmitting module is further to: responsive to determining that the first apparatus does not store the identifier associated with the target-type apparatus, transmit preset information to the second apparatus, wherein the preset information is used to trigger the second apparatus to start discovery and pairing function; the connecting module is further to establish a wireless connection with the second apparatus through the discovery and pairing function of the second apparatus.
  13. 13 . The device of claim 11 , wherein a state of the second apparatus is a hidden state.
  14. 14 . The device of claim 11 , wherein the first transmitting module is further to: responsive to determining that the second apparatus is further connected with at least one third apparatus, transmit information to the third apparatus by using the second apparatus; the first receiving module is further to: responsive to determining that the second apparatus is further connected with at least one third apparatus, receive information of the third apparatus forwarded by the second apparatus.
  15. 15 . A device for connecting apparatuses, comprising: a second receiving module to receive triggering information transmitted by a first apparatus, wherein the triggering information is used to trigger a second apparatus to transmit a connection request; the first apparatus is connected with the second apparatus by a wired line; and a second transmitting module to transmit the connection request to the first apparatus based on the triggering information.
  16. 16 . The device of claim 15 , further comprising: a starting module, wherein the second receiving module is further to receive preset information transmitted by the first apparatus, wherein the preset information is used to trigger the second apparatus to start a discovery and pairing function; the starting module is further to start the discovery and pairing function based on the preset information.
  17. 17 . The device of claim 16 , further comprising: a setting module to set a state of the second apparatus as a hidden state.
  18. 18 . The device of claim 15 , wherein the second receiving module is further configured to: responsive to determining that the second apparatus is further connected with at least one third apparatus, receive a message from the first apparatus and forward the message to the third apparatus through the second transmitting module; and/or receive a message from the third apparatus and forward the message to the first apparatus through the second transmitting module.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is the U.S. National Phase under 35. U.S.C. § 371 of International Application PCT/CN2022/091585, filed May 8, 2022, which claims priority to Chinese Patent Application No. 202110500085.X, filed May 8, 2021. The disclosures of the above described applications are hereby incorporated by reference in their entirety. TECHNICAL FIELD The present disclosure relates to the field of communication, and in particular to a method and device for connecting apparatuses, apparatus, and storage medium. BACKGROUND With the development of science and technology, there are more and more types of electronic apparatuses, each electronic apparatus has a certain function, and the interconnection of multiple electronic apparatuses can realize more functions. At present, when multiple electronic apparatuses are interconnected, the multiple electronic apparatuses are manually installed and deployed, and then each electronic apparatus is adapted and connected. During the adaptation and connection process, each apparatus needs to manually find and configure relevant information. However, if the number of electronic apparatuses is large, the adaptation and connection process can take a long time, resulting in low efficiency in connecting these apparatuses. SUMMARY Embodiments of the present disclosure provide a method and device for connecting apparatuses, apparatus, and storage medium, which can solve the problem of low efficiency in connecting apparatuses. The described technical solution includes the following aspects: According to a first aspect of embodiments of the present disclosure, a method for connecting apparatuses is provided, which is applied to a first apparatus, including: determining whether the first apparatus stores an identifier of a target-type apparatus; when the first apparatus stores the identifier of the target-type apparatus, transmitting triggering information to a second apparatus, where the triggering information is used to trigger the second apparatus to transmit a connection request, a type associated with the second apparatus is the target type, and the second apparatus is connected with the first apparatus through a wired input line; receiving the connection request transmitted by the second apparatus; and establishing a wireless connection with the second apparatus based on the connection request. According to a second aspect of embodiments of the present disclosure, a method for connecting apparatuses is provided, which is applied to a second apparatus, including: receiving triggering information transmitted by a first apparatus, where the triggering information is used to trigger the second apparatus to transmit a connection request; where the first apparatus is connected with the second apparatus through a wired input line; and transmitting a connection request to the first apparatus based on the triggering information. According to a third aspect of embodiments of the present disclosure, a device for connecting apparatuses is provided, including: a determining module, configured to determine whether the first apparatus stores an identifier of a target-type apparatus; where the first apparatus is connected with a second apparatus through a wired input line; a first transmitting module, configured to: when the first apparatus stores the identifier of the target-type apparatus, transmit triggering information to the second apparatus, where the triggering information is used to trigger a second apparatus to transmit a connection request, a type associated with the second apparatus is the target type, and the second apparatus is connected with the first apparatus through the wired input line; a first receiving module, configured to receive the connection request transmitted by the second apparatus; and a connection module, configured to establish a wireless connection with the second apparatus based on the connection request. According to a fourth aspect of embodiments of the present disclosure, a device for connecting apparatuses is provided, including: a second receiving module, configured to receive triggering information transmitted by a first apparatus, where the triggering information is used to trigger the second apparatus to transmit a connection request; the first apparatus is connected with a second apparatus through a wired input line; and a second transmitting module, configured to transmit a connection request to the first apparatus based on the triggering information. According to a fifth aspect of embodiments of the present disclosure, a computer storage medium is provided, which stores a number of instructions. The instructions, when loaded and executed by a processor, perform the method in the above-mentioned first aspect. According to a sixth aspect of embodiments of the present disclosure, a computer storage medium is provided, which stores a number of instructions. The instructions, when loaded and executed by a processor, per