CN113038449B - Device pairing method, device, storage medium and device - Google Patents

Device pairing method, device, storage medium and device Download PDF

Info

Publication number
CN113038449B
CN113038449B CN202110140452.XA CN202110140452A CN113038449B CN 113038449 B CN113038449 B CN 113038449B CN 202110140452 A CN202110140452 A CN 202110140452A CN 113038449 B CN113038449 B CN 113038449B
Authority
CN
China
Prior art keywords
information
target
control
equipment
pairing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110140452.XA
Other languages
Chinese (zh)
Other versions
CN113038449A (en
Inventor
田园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110140452.XA priority Critical patent/CN113038449B/en
Publication of CN113038449A publication Critical patent/CN113038449A/en
Application granted granted Critical
Publication of CN113038449B publication Critical patent/CN113038449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Selective Calling Equipment (AREA)

Abstract

Compared with the existing mode that a user manually inputs various settings to establish communication connection between a remote controller and intelligent equipment, the method comprises the steps of firstly determining the to-be-paired control equipment according to a target pairing signal when the target pairing signal is detected, sending a signal when equipment movement information detected by the control equipment meets a preset condition by the target pairing signal, generating a confirmation signal and sending the confirmation signal to the to-be-paired control equipment to confirm the to-be-paired equipment and feed back the control information, and finally establishing communication connection with the to-be-paired control equipment according to the control information, so that the user can establish the communication connection between the intelligent equipment and the control equipment only by enabling the to-be-paired control equipment to be in a preset movement state.

Description

Device pairing method, device, storage medium and device
Technical Field
The present invention relates to the field of intelligent device technologies, and in particular, to a device pairing method, device, storage medium, and apparatus.
Background
At present, a remote controller is used as a key device for controlling intelligent equipment, and the intelligent equipment can be controlled only by establishing communication connection with the controlled intelligent equipment.
However, in the prior art, when the communication connection between the remote controller and the controlled intelligent device is established, a user needs to manually input various settings, the process is complicated, the operation is complex, and the user experience is poor.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a device pairing method, a device, a storage medium and a device, and aims to solve the technical problems of low device pairing efficiency and poor user experience in the prior art.
In order to achieve the above object, the present invention provides an apparatus pairing method applied to an intelligent apparatus, the apparatus pairing method including the steps of:
when a target pairing signal is detected, determining control equipment to be paired according to the target pairing signal, wherein the target pairing signal is a signal sent when equipment movement information detected by the control equipment meets a preset condition;
generating confirmation information and sending the confirmation information to the control equipment to be paired;
and receiving control information fed back by the control equipment to be paired according to the confirmation information, and establishing communication connection with the control equipment to be paired according to the control information.
Optionally, before the step of determining, according to the target pairing signal, the to-be-paired control device when the target pairing signal is detected, the device pairing method further includes:
when a starting instruction is received, judging whether the intelligent equipment is in a first starting state or not according to the starting instruction;
when the intelligent equipment is in the first starting state, entering a preset signal detection mode;
correspondingly, when the target pairing signal is detected, the step of determining the control device to be paired according to the target pairing signal includes:
and when a target pairing signal is detected in the preset signal detection mode, determining the control equipment to be paired according to the target pairing signal.
Optionally, the step of generating confirmation information and sending the confirmation information to the to-be-paired control device specifically includes:
determining the equipment information of the equipment to be paired according to the target pairing signal, and determining the target communication mode of the equipment to be paired according to the equipment information;
and generating confirmation information according to the target communication mode of the to-be-paired control equipment, and sending the confirmation information to the to-be-paired control equipment.
Optionally, the step of receiving control information fed back by the control device to be paired according to the confirmation information, and establishing a communication connection with the control device to be paired according to the control information specifically includes:
receiving control information fed back by the control equipment to be paired according to the confirmation information, and taking the control information and the equipment information as connection reference information;
searching a target connection strategy corresponding to the connection reference information in a preset mapping relation table, wherein the preset mapping relation table comprises the corresponding relation between the connection reference information and the target connection strategy;
and establishing communication connection with the control equipment to be paired according to the target connection strategy.
Optionally, after the step of receiving the control information fed back by the control device to be paired according to the confirmation information, and establishing a communication connection with the control device to be paired according to the control information, the device pairing method further includes:
after the communication connection is established, generating connection reminding information, and searching an information display template corresponding to the intelligent equipment;
and writing the connection reminding information into the information display template, obtaining information to be displayed, and displaying the information to be displayed.
In order to achieve the above object, the present invention further provides an apparatus pairing method applied to a control apparatus, where the control apparatus is provided with a sensor, the apparatus pairing method including the steps of:
acquiring equipment movement information detected by the sensor, and judging whether to enter a preset pairing mode according to the equipment movement information;
after entering the preset pairing mode, generating a target pairing signal, and sending the target pairing signal to target intelligent equipment;
receiving confirmation information fed back by the target intelligent equipment according to the target pairing signal, and generating pairing reminding information according to the confirmation information;
displaying the pairing reminding information, and receiving control information input by a user according to the pairing reminding information;
and sending the control information to the target intelligent equipment so that the target intelligent equipment establishes communication connection with the control equipment according to the control information.
Optionally, the step of acquiring the device movement information detected by the sensor and determining whether to enter a preset pairing mode according to the device movement information specifically includes:
acquiring equipment movement information detected by the sensor, and analyzing the equipment movement information to obtain equipment movement characteristics;
searching a matching mode characteristic corresponding to the control equipment, and matching the equipment moving characteristic with the matching mode characteristic to obtain a matching result;
and judging whether to enter a preset pairing mode according to the matching result.
Furthermore, to achieve the above object, the present invention also provides an electronic device, which includes a memory, a processor and a device pairing program stored in the memory and executable on the processor, wherein the device pairing program is configured to implement the steps of the device pairing method as described above.
Furthermore, to achieve the above object, the present invention further provides a storage medium having a device pairing program stored thereon, which when executed by a processor implements the steps of the device pairing method as described above.
In addition, to achieve the above object, the present invention further provides an apparatus for pairing devices, including: the device comprises a determining module, a generating module and a connecting module;
the determining module is used for determining the control equipment to be paired according to the target pairing signal when the target pairing signal is detected, wherein the target pairing signal is a signal sent when the equipment movement information detected by the control equipment meets a preset condition;
the generating module is used for generating confirmation information and sending the confirmation information to the control equipment to be paired;
and the connection module is used for receiving control information fed back by the control equipment to be paired according to the confirmation information and establishing communication connection with the control equipment to be paired according to the control information.
The invention discloses a method for establishing communication connection between a remote controller and intelligent equipment by receiving a signal sent by the control equipment to be paired when equipment movement information detected by the control equipment meets preset conditions, compared with the prior method for establishing communication connection between the remote controller and the intelligent equipment by manually inputting various settings by a user.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for pairing devices according to the present invention;
FIG. 3 is a flowchart illustrating a pairing method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a device pairing method according to the present invention;
FIG. 5 is a flowchart illustrating a pairing method according to a fourth embodiment of the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a pairing method according to the present invention;
fig. 7 is a block diagram of a first embodiment of the device pairing apparatus according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the electronic device may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), and the optional user interface 1003 may further include a standard wired interface and a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a Non-volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in FIG. 1, memory 1005, identified as one type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a device pairing program.
In the electronic device shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting user equipment; the electronic device invokes, through the processor 1001, a device pairing program stored in the memory 1005 and executes the device pairing method provided in the embodiment of the present invention.
Based on the above hardware structure, an embodiment of the device pairing method of the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a device pairing method according to the present invention.
The device pairing method provided by the embodiment is applied to intelligent devices, and comprises the following steps:
step S10: when a target pairing signal is detected, determining the control equipment to be paired according to the target pairing signal, wherein the target pairing signal is a signal sent when the equipment movement information detected by the control equipment meets a preset condition.
It should be noted that the intelligent device may be an electronic device such as an intelligent television, an intelligent refrigerator, and an intelligent refrigerator, which has a function of connecting with the control device, or may also be another device that can achieve the same or similar function.
It should be understood that the smart device enters a preset signal detection mode upon receiving a signal command. The signal detection instruction can be a control instruction input by a user through a user interaction interface or a control key of the intelligent device; the preset signal detection mode may be an equipment operating mode preset by a manufacturer of the intelligent equipment, and when the intelligent equipment is in the preset operating mode, the intelligent equipment may automatically search for a pairing signal within a preset range, where the preset range may be a preset area with the intelligent equipment as a center, and a coverage area of the preset area may be determined according to equipment performance of the intelligent equipment, which is not limited in this embodiment.
It can be understood that, when the smart device is in the preset signal detection mode, the pairing signal within the preset range can be automatically searched, and when the target pairing signal is detected, the following steps are performed.
It should be noted that the target pairing signal may be a signal sent when the control device is in the preset pairing mode. The control device is provided with a sensor, acquires device movement information detected by the sensor and judges whether to enter a preset pairing mode according to the device movement information.
It should be understood that determining the to-be-paired control device according to the target pairing signal may be analyzing the target pairing signal, obtaining device information of the control device, and determining the to-be-paired control device according to the device information. The device information may include information such as a device communication address and a device model, which is not limited in this embodiment.
Further, in order to automatically search for a pairing signal when the smart device is first started to improve device pairing efficiency, before determining the control device to be paired according to the target pairing signal when the target pairing signal is detected, the method further includes:
when a starting instruction is received, whether the intelligent equipment is in a first starting state or not is judged according to the starting instruction, when the intelligent equipment is in the first starting state, a preset signal detection mode is entered, and when a target pairing signal is detected in the preset signal detection mode, the control equipment to be paired is determined according to the target pairing signal.
Step S20: and generating confirmation information and sending the confirmation information to the control equipment to be paired.
It should be noted that the confirmation information may be information sent by the intelligent device to the control device, and is used to confirm whether the control device needs to establish the communication connection.
It should be understood that the generation of the confirmation information may be to use preset information as the confirmation information. The preset information may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
It is to be understood that the generating of the confirmation information may also be determining a target communication mode of the control device to be paired according to the target pairing signal, and generating the confirmation information according to the target communication mode.
Further, in consideration of practical applications, different brands and models of control devices may adopt different communication modes. In order to ensure adaptability of the confirmation information, the generating the confirmation information and sending the confirmation information to the control device to be paired includes:
and determining the equipment information of the control equipment to be paired according to the target pairing signal, determining the target communication mode of the control equipment to be paired according to the equipment information, generating confirmation information according to the target communication mode of the control equipment to be paired, and sending the confirmation information to the control equipment to be paired.
Step S30: and receiving control information fed back by the control equipment to be paired according to the confirmation information, and establishing communication connection with the control equipment to be paired according to the control information.
It should be noted that the control information may be information generated according to a control instruction input by a user through a user interaction interface or a control key of the control device, which is not limited in this embodiment.
In a specific implementation, for example, the user may determine whether to connect the smart television through a key provided on a remote controller.
It should be understood that, establishing a communication connection with the control device to be paired according to the control information may be establishing a communication connection with the control device to be paired when the control information is preset connection information. The preset connection information may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
Further, in order to ensure reliability of establishing communication connection, the receiving control information fed back by the control device to be paired according to the confirmation information, and establishing communication connection with the control device to be paired according to the control information includes:
receiving control information fed back by the control equipment to be paired according to the confirmation information, taking the control information and the equipment information as connection reference information, searching a target connection strategy corresponding to the connection reference information in a preset mapping relation table, wherein the preset mapping relation table comprises the corresponding relation between the connection reference information and the target connection strategy, and establishing communication connection with the control equipment to be paired according to the target connection strategy.
In a specific implementation, for example, the pairing mode feature corresponding to the remote controller is that the device shakes up and down, when the user shakes the remote controller up and down, the remote controller enters a pairing mode and sends out a pairing signal, when the smart television detects the pairing signal, a confirmation signal is generated and sent to the remote controller, when the remote controller receives the confirmation signal, the indicator lamp continuously flickers five times to remind the user, the user inputs control information on the remote controller through any key to confirm that communication connection with the target smart device is established, and when the smart television receives the control information sent by the remote controller, communication connection with the remote controller is established according to the control information.
In the first embodiment, a method is disclosed, when a target pairing signal is detected, determining a control device to be paired according to the target pairing signal, wherein the target pairing signal is a signal sent when device movement information detected by the control device meets a preset condition, generating confirmation information, sending the confirmation information to the control device to be paired, receiving control information fed back by the control device to be paired according to the confirmation information, and establishing communication connection with the control device to be paired according to the control information.
Referring to fig. 3, fig. 3 is a flowchart illustrating a device pairing method according to a second embodiment of the present invention, and the device pairing method according to the second embodiment of the present invention is proposed based on the first embodiment illustrated in fig. 2.
In the second embodiment, the step S20 includes:
step S201: and determining the equipment information of the equipment to be paired according to the target pairing signal, and determining the target communication mode of the equipment to be paired according to the equipment information.
It should be noted that the device information may be information such as a device brand and a device model, which is not limited in this embodiment.
It should be understood that different brands and models of control devices may adopt different communication modes, for example, an infrared communication mode, a bluetooth communication mode, a WIFI communication mode, and the like, which is not limited by the embodiment. Therefore, before generating the confirmation information, the communication mode of the control device to be paired needs to be determined so that the generated confirmation information can be received by the control device to be paired.
It can be understood that, determining the target communication mode of the to-be-paired control device according to the device information may be to search for a target communication mode corresponding to the device information in a preset communication mode table, where the preset communication mode table includes a correspondence relationship between the device information and the target communication mode, and the correspondence relationship between the device information and the target communication mode may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
Step S202: and generating confirmation information according to the target communication mode of the control equipment to be paired, and sending the confirmation information to the control equipment to be paired.
It should be noted that the confirmation information may be information sent by the intelligent device to the control device, and is used to confirm whether the control device needs to establish the communication connection.
It should be understood that, the generating of the confirmation information according to the target communication mode of the control device to be paired may be determining an information packaging format according to the target communication mode, and packaging the preset information according to the information packaging format to obtain the confirmation information. The preset information may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
It can be understood that sending the confirmation information to the control device to be paired may be determining a target information transmission mode according to the target communication mode, and sending the confirmation information to the control device to be paired according to the target information transmission mode.
In the second embodiment, the device information of the control device to be paired is determined according to the target pairing signal, the target communication mode of the control device to be paired is determined according to the device information, the confirmation information is generated according to the target communication mode of the control device to be paired, and the confirmation information is sent to the control device to be paired, so that the adaptability of the confirmation information can be ensured.
In the second embodiment, the step S30 includes:
step S301: and receiving control information fed back by the control equipment to be paired according to the confirmation information, and taking the control information and the equipment information as connection reference information.
It should be noted that the control information may be information generated according to a control instruction input by a user through a user interaction interface or a control key of the control device, which is not limited in this embodiment.
In a specific implementation, a user can determine whether to connect the smart television through a key arranged on a remote controller.
Step S302: and searching a target connection strategy corresponding to the connection reference information in a preset mapping relation table, wherein the preset mapping relation table comprises the corresponding relation between the connection reference information and the target connection strategy.
It should be noted that the target connection policy may be policy information such as a connection mode and a connection frequency of the smart device and the control device, which is not limited in this embodiment.
It should be understood that the correspondence relationship between the connection reference information and the target connection policy may be preset by a manufacturer of the smart device, and this embodiment is not limited thereto.
Step S303: and establishing communication connection with the control equipment to be paired according to the target connection strategy.
It is understood that the establishing of the communication connection with the control device to be paired according to the target connection policy may be setting up communication interfaces of the intelligent device and the control device according to the target connection policy to establish the communication connection between the intelligent device and the control device to be paired.
In the second embodiment, a target connection policy corresponding to the connection reference information is searched in a preset mapping relation table by receiving control information fed back by the control device to be paired according to the confirmation information and taking the control information and the device information as the connection reference information, and communication connection with the control device to be paired is established according to the target connection policy, so that the target connection policy can be automatically generated, and the reliability of communication connection is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a device pairing method according to a third embodiment of the present invention, and the third embodiment of the device pairing method is provided based on the first embodiment illustrated in fig. 2.
In the third embodiment, before the step S10, the method further includes:
step S01: and when a starting instruction is received, judging whether the intelligent equipment is in a first starting state or not according to the starting instruction.
It should be noted that the start instruction may be a control instruction generated when the intelligent device is started; the first-time starting state may be a state in which the user opens the device for the first time after the smart device leaves the factory, and this embodiment does not limit this.
It should be understood that, the judging whether the intelligent device is in the first-time starting state according to the starting instruction may be to match the starting instruction with a preset first-time starting instruction, and judge whether the intelligent device is in the first-time starting state according to an instruction matching result. The preset first-time starting instruction may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
It can be understood that when the instruction matching result is that the matching is successful, the intelligent device is judged to be in a first starting state; and when the instruction matching result is that the matching fails, judging that the intelligent equipment is not in a first starting state.
Step S02: and when the intelligent equipment is in the first starting state, entering a preset signal detection mode.
It should be noted that the preset signal detection mode may be an equipment operating mode preset by a manufacturer of the intelligent equipment, and when the intelligent equipment is in the preset operating mode, the intelligent equipment may automatically search for the pairing signal within a preset range, where the preset range may be a preset area with the intelligent equipment as a center, and a coverage area of the preset area may be determined according to equipment performance of the intelligent equipment, which is not limited in this embodiment.
Accordingly, the step S10 includes:
step S10': and when a target pairing signal is detected in the preset signal detection mode, determining the control equipment to be paired according to the target pairing signal.
It should be understood that determining the to-be-paired control device according to the target pairing signal may be analyzing the target pairing signal, obtaining device information of the control device, and determining the to-be-paired control device according to the device information. The device information may include information such as a device communication address and a device model, which is not limited in this embodiment.
In the third embodiment, when a starting instruction is received, whether the intelligent device is in a first starting state is judged according to the starting instruction, when the intelligent device is in the first starting state, a preset signal detection mode is entered, and when a target pairing signal is detected in the preset signal detection mode, the control device to be paired is determined according to the target pairing signal, so that when the intelligent device is started for the first time, the pairing signal can be automatically searched, and the equipment pairing efficiency is improved.
In the third embodiment, after the step S30, the method further includes:
step S40: and after the communication connection is established, generating connection reminding information, and searching an information display template corresponding to the intelligent equipment.
It should be noted that the connection reminding information may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
In a specific implementation, for example, after the communication connection is established, the smart television may display "connected to the remote controller", which is not limited in this embodiment.
It can be understood that the searching for the information presentation template corresponding to the intelligent device may be searching for the information presentation template corresponding to the intelligent device in a preset template library. The preset template library includes a corresponding relationship between the intelligent device and the information display template, and the corresponding relationship between the intelligent device and the information display template may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
Step S50: and writing the connection reminding information into the information display template, obtaining information to be displayed, and displaying the information to be displayed.
It can be understood that the writing of the connection reminding information into the information display template may be writing the connection reminding information into each display position of the information display template to obtain the information to be displayed.
In the third embodiment, after the communication connection is established, the connection reminding information is generated, the information display template corresponding to the intelligent device is searched, the connection reminding information is written into the information display template, the information to be displayed is obtained, and the information to be displayed is displayed, so that the user can be reminded in time after the communication connection is established, and the user experience is improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating a device pairing method according to a fourth embodiment of the present invention.
The device pairing method provided by the embodiment is applied to control devices, wherein sensors are arranged on the control devices, and the device pairing method comprises the following steps:
step S10': and acquiring the equipment movement information detected by the sensor, and judging whether to enter a preset pairing mode according to the equipment movement information.
It should be noted that the control device may be a controller corresponding to the intelligent device, for example, a remote controller corresponding to the intelligent television; the sensor may be a gravity sensor, an infrared sensor, or the like, which is not limited in this embodiment.
It should be understood that, acquiring the device movement information detected by the sensor, and determining whether to enter the preset pairing mode according to the device movement information may be that the control device acquires the device shaking information detected by the gravity sensor, and determines whether the control device is in a vertical shaking state according to the device shaking information, and enters the preset pairing mode when the control device is in the vertical shaking state.
It should be noted that the preset pairing mode may be an apparatus operating mode preset by a manufacturer of the control apparatus, and when the control apparatus is in the preset pairing mode, the control apparatus may send the pairing signal to the outside at a preset frequency, where the preset frequency may be preset by the manufacturer of the control apparatus, and this embodiment is not limited thereto.
In a specific implementation, for example, the user may shake the remote controller up and down to cause the remote controller to enter a preset pairing mode.
Further, in order to avoid entering the pairing mode by mistake, the acquiring device movement information detected by the sensor, and determining whether to enter a preset pairing mode according to the device movement information includes:
the method comprises the steps of obtaining equipment movement information detected by a sensor, analyzing the equipment movement information to obtain equipment movement characteristics, searching pairing mode characteristics corresponding to control equipment, matching the equipment movement characteristics with the pairing mode characteristics to obtain matching results, and judging whether to enter a preset pairing mode according to the matching results.
Step S20': and after entering the preset pairing mode, generating a target pairing signal, and sending the target pairing signal to target intelligent equipment.
It should be noted that the pairing signal may be a signal sent by the control device and used for searching for the intelligent device, and the intelligent device may automatically search for the pairing signal within a preset range to determine the control device to be paired, which is not limited in this embodiment.
It should be understood that generating the target pairing signal may be acquiring device information of the control device and generating the target pairing signal according to the device information of the control device. The device information may include information such as a device communication address and a device model, which is not limited in this embodiment.
Step S30': and receiving confirmation information fed back by the target intelligent equipment according to the target pairing signal, and generating pairing reminding information according to the confirmation information.
It should be noted that the confirmation information may be information sent by the intelligent device to the control device, and is used to confirm whether the control device needs to establish the communication connection.
The pairing reminding information may be information for reminding the user that the feedback of the smart device has been received, for example, the pairing reminding information may be that an indicator light of the remote controller is usually on or flickers five times continuously, which is not limited in this embodiment.
It can be understood that the generation of the pairing reminding information according to the confirmation information may be to analyze the confirmation information, obtain the intelligent device information, and search the pairing reminding information corresponding to the intelligent device information.
Step S40': and displaying the pairing reminding information, and receiving control information input by a user according to the pairing reminding information.
It should be understood that the user may enter control information through a user interface or control keys of the control device.
In a specific implementation, for example, after the indicator light of the remote controller continuously flashes five times, the user inputs control information on the remote controller through any key to confirm that the communication connection with the target smart device is established.
Step S50': and sending the control information to the target intelligent equipment so that the target intelligent equipment establishes communication connection with the control equipment according to the control information.
It should be understood that the establishing of the communication connection with the control device according to the control information may be establishing the communication connection with the control device to be paired when the control information is the preset connection information. The preset connection information may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
In a fourth embodiment, after the device movement information detected by the sensor is acquired, whether a preset pairing mode is entered is judged according to the device movement information, a target pairing signal is generated after the preset pairing mode is entered, the target pairing signal is sent to the target intelligent device, confirmation information fed back by the target intelligent device according to the target pairing signal is received, pairing reminding information is generated according to the confirmation information, the pairing reminding information is displayed, control information input by a user according to the pairing reminding information is received, and the control information is sent to the target intelligent device, so that the target intelligent device establishes communication connection with the control device according to the control information, and therefore the user can establish communication connection between the intelligent device and the control device only by enabling the control device to be paired to be in a preset movement state, the defects of low device pairing efficiency and poor user experience in the prior art are overcome, the device pairing process can be simplified, and the device pairing speed is increased.
Referring to fig. 6, fig. 6 is a flowchart illustrating a fifth embodiment of the device pairing method according to the present invention, and the fifth embodiment of the device pairing method according to the present invention is proposed based on the fourth embodiment illustrated in fig. 5.
In a fifth embodiment, said step S10 ″ includes:
step S101': and acquiring the equipment movement information detected by the sensor, and analyzing the equipment movement information to obtain the equipment movement characteristics.
It should be noted that the device movement characteristics may be characteristics of a device shaking up and down, a device shaking left and right, a device moving in parallel, and the like, which is not limited in this embodiment.
Step S102': and searching a matching mode characteristic corresponding to the control equipment, and matching the equipment moving characteristic with the matching mode characteristic to obtain a matching result.
It is understood that the finding of the pairing mode feature corresponding to the control device may be finding the pairing mode feature corresponding to the control device in a preset feature library. The preset feature library includes a corresponding relationship between the control device and the pairing mode feature, and the corresponding relationship between the control device and the pairing mode feature may be preset by a manufacturer of the control device, which is not limited in this embodiment.
Step S103': and judging whether to enter a preset pairing mode according to the matching result.
It should be understood that, the judging whether to enter the preset pairing mode according to the matching result may be judging to enter the preset pairing mode when the matching result is that the matching is successful; and when the matching result is matching failure, judging not to enter a preset matching mode.
In a specific implementation, for example, the pairing mode feature corresponding to the remote controller is that the device shakes up and down, when the user shakes the remote controller up and down, the remote controller enters a pairing mode and sends out a pairing signal, when the smart television detects the pairing signal, a confirmation signal is generated and sent to the remote controller, when the remote controller receives the confirmation signal, the indicator lamp continuously flickers five times to remind the user, the user inputs control information on the remote controller through any key to confirm that communication connection with the target smart device is established, and when the smart television receives the control information sent by the remote controller, communication connection with the remote controller is established according to the control information.
In the fifth embodiment, the device movement information detected by the sensor is acquired and analyzed to obtain the device movement characteristics, the pairing mode characteristics corresponding to the control device are searched for, the device movement characteristics are matched with the pairing mode characteristics to obtain the matching result, and whether the preset pairing mode is entered or not is judged according to the matching result, so that the reliability of the pairing mode performed by the control device can be improved, and the pairing mode is prevented from being entered by mistake.
Furthermore, an embodiment of the present invention further provides a storage medium, where the storage medium stores a device pairing program, and the device pairing program, when executed by a processor, implements the steps of the device pairing method described above.
Referring to fig. 7, fig. 7 is a block diagram of a first embodiment of the device pairing apparatus according to the present invention.
As shown in fig. 7, the device pairing apparatus provided in the embodiment of the present invention is applied to a client, and includes: a determining module 10, a generating module 20 and a connecting module 30;
the determining module 10 is configured to determine, when a target pairing signal is detected, a control device to be paired according to the target pairing signal, where the target pairing signal is a signal sent when device movement information detected by the control device meets a preset condition.
It should be noted that the intelligent device may be an electronic device such as an intelligent television, an intelligent refrigerator, and an intelligent refrigerator, which has a function of connecting with the control device, or may also be another device that can implement the same or similar function.
It should be understood that the smart device enters a preset signal detection mode upon receiving a signal command. The signal detection instruction can be a control instruction input by a user through a user interaction interface or a control key of the intelligent device; the preset signal detection mode may be an equipment operating mode preset by a manufacturer of the intelligent equipment, and when the intelligent equipment is in the preset operating mode, the intelligent equipment may automatically search for a pairing signal within a preset range, where the preset range may be a preset area with the intelligent equipment as a center, and a coverage area of the preset area may be determined according to equipment performance of the intelligent equipment, which is not limited in this embodiment.
It can be understood that, when the smart device is in the preset signal detection mode, the pairing signal within the preset range can be automatically searched, and when the target pairing signal is detected, the following steps are performed.
It should be noted that the target pairing signal may be a signal sent when the control device is in the preset pairing mode. The control equipment is provided with a sensor, and the control equipment judges whether to enter a preset pairing mode or not according to the equipment movement information by acquiring the equipment movement information detected by the sensor.
It should be understood that determining the to-be-paired control device according to the target pairing signal may be analyzing the target pairing signal, obtaining device information of the control device, and determining the to-be-paired control device according to the device information. The device information may include information such as a device communication address and a device model, which is not limited in this embodiment.
The generating module 20 is configured to generate confirmation information, and send the confirmation information to the control device to be paired.
It should be noted that the confirmation information may be information sent by the intelligent device to the control device, and is used to confirm whether the control device needs to establish the communication connection.
It should be understood that the generation of the confirmation information may be to use preset information as the confirmation information. The preset information may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
It is to be understood that the generating of the confirmation information may also be determining a target communication mode of the control device to be paired according to the target pairing signal, and generating the confirmation information according to the target communication mode.
Further, in consideration of practical applications, different brands and models of control devices may adopt different communication modes. In order to ensure the adaptability of the confirmation information, the generating module 20 is further configured to determine device information of the control device to be paired according to the target pairing signal, determine a target communication mode of the control device to be paired according to the device information, generate the confirmation information according to the target communication mode of the control device to be paired, and send the confirmation information to the control device to be paired.
The connection module 30 is configured to receive control information fed back by the control device to be paired according to the confirmation information, and establish a communication connection with the control device to be paired according to the control information.
It should be noted that the control information may be information generated according to a control instruction input by a user through a user interaction interface or a control key of the control device, which is not limited in this embodiment.
In a specific implementation, for example, the user may determine whether to connect the smart television through a key provided on a remote controller.
It should be understood that, establishing a communication connection with the control device to be paired according to the control information may be establishing a communication connection with the control device to be paired when the control information is preset connection information. The preset connection information may be preset by a manufacturer of the intelligent device, which is not limited in this embodiment.
Further, in order to ensure reliability of establishing the communication connection, the connection module 30 is further configured to receive control information fed back by the control device to be paired according to the confirmation information, use the control information and the device information as connection reference information, search a target connection policy corresponding to the connection reference information in a preset mapping relation table, where the preset mapping relation table includes a correspondence between the connection reference information and the target connection policy, and establish the communication connection with the control device to be paired according to the target connection policy.
In a specific implementation, for example, the pairing mode feature corresponding to the remote controller is that the device shakes up and down, when the user shakes the remote controller up and down, the remote controller enters a pairing mode and sends out a pairing signal, when the smart television detects the pairing signal, a confirmation signal is generated and sent to the remote controller, when the remote controller receives the confirmation signal, the indicator lamp continuously flickers five times to remind the user, the user inputs control information on the remote controller through any key to confirm that communication connection with the target smart device is established, and when the smart television receives the control information sent by the remote controller, communication connection with the remote controller is established according to the control information.
In this embodiment, when a target pairing signal is detected, a control device to be paired is determined according to the target pairing signal, the target pairing signal is a signal sent when device movement information detected by the control device meets a preset condition, confirmation information is generated and sent to the control device to be paired, control information fed back by the control device to be paired according to the confirmation information is received, and communication connection with the control device to be paired is established according to the control information.
Other embodiments or specific implementation manners of the device pairing apparatus according to the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering and these words may be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., a Read Only Memory (ROM)/Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A device pairing method is applied to intelligent devices and comprises the following steps:
when a target pairing signal is detected, determining control equipment to be paired according to the target pairing signal, wherein the target pairing signal is a signal sent when equipment movement information detected by the control equipment meets a preset condition;
generating confirmation information and sending the confirmation information to the control equipment to be paired;
receiving control information fed back by the control equipment to be paired according to the confirmation information, and establishing communication connection with the control equipment to be paired according to the control information;
the step of generating confirmation information and sending the confirmation information to the control device to be paired includes:
determining the equipment information of the control equipment to be paired according to the target pairing signal, and determining the target communication mode of the control equipment to be paired according to the equipment information;
determining an information packaging format according to a target communication mode, and packaging preset information according to the information packaging format to obtain confirmation information;
sending the confirmation information to the control equipment to be paired;
receiving control information fed back by the control equipment to be paired according to the confirmation information, and establishing communication connection with the control equipment to be paired according to the control information, wherein the step comprises the following steps:
receiving control information fed back by the control equipment to be paired according to the confirmation information, and taking the control information and the equipment information as connection reference information;
searching a target connection strategy corresponding to the connection reference information in a preset mapping relation table, wherein the preset mapping relation table comprises the corresponding relation between the connection reference information and the target connection strategy, and the target connection strategy comprises the connection mode and the connection frequency of the intelligent equipment and the control equipment;
and establishing communication connection with the control equipment to be paired according to the target connection strategy.
2. The device pairing method as claimed in claim 1, wherein, before the step of determining the control device to be paired according to the target pairing signal when the target pairing signal is detected, the device pairing method further comprises:
when a starting instruction is received, judging whether the intelligent equipment is in a first starting state or not according to the starting instruction;
when the intelligent equipment is in the first starting state, entering a preset signal detection mode;
correspondingly, when the target pairing signal is detected, the step of determining the control device to be paired according to the target pairing signal includes:
and when a target pairing signal is detected in the preset signal detection mode, determining the control equipment to be paired according to the target pairing signal.
3. The device pairing method according to claim 1 or 2, wherein after the step of receiving the control information fed back by the control device to be paired according to the confirmation information and establishing a communication connection with the control device to be paired according to the control information, the device pairing method further comprises:
after the communication connection is established, generating connection reminding information, and searching an information display template corresponding to the intelligent equipment;
and writing the connection reminding information into the information display template, obtaining information to be displayed, and displaying the information to be displayed.
4. A device pairing method is applied to a control device, a sensor is arranged on the control device, and the device pairing method comprises the following steps:
acquiring equipment movement information detected by the sensor, and judging whether to enter a preset pairing mode according to the equipment movement information;
after entering the preset pairing mode, generating a target pairing signal, and sending the target pairing signal to target intelligent equipment;
receiving confirmation information fed back by the target intelligent equipment according to the target pairing signal, and generating pairing reminding information according to the confirmation information;
displaying the pairing reminding information, and receiving control information input by a user according to the pairing reminding information;
sending the control information to the target intelligent equipment so that the target intelligent equipment establishes communication connection with the control equipment according to the control information;
the target intelligent device determines device information of the control device to be paired according to the target pairing signal, and determines a target communication mode of the control device to be paired according to the device information;
determining an information packaging format according to a target communication mode, and packaging preset information according to the information packaging format to obtain confirmation information;
the step of establishing communication connection with the control device by the target intelligent device according to the control information comprises the following steps:
the target intelligent device receives control information fed back by the control device according to the confirmation information, and takes the control information and the device information as connection reference information;
searching a target connection strategy corresponding to the connection reference information in a preset mapping relation table, wherein the preset mapping relation table comprises the corresponding relation between the connection reference information and the target connection strategy, and the target connection strategy comprises the connection mode and the connection frequency of the intelligent equipment and the control equipment;
and establishing communication connection with the control equipment according to the target connection strategy.
5. The device pairing method according to claim 4, wherein the step of acquiring the device movement information detected by the sensor and determining whether to enter a preset pairing mode according to the device movement information specifically includes:
acquiring equipment movement information detected by the sensor, and analyzing the equipment movement information to obtain equipment movement characteristics;
searching a matching mode characteristic corresponding to the control equipment, and matching the equipment moving characteristic with the matching mode characteristic to obtain a matching result;
and judging whether to enter a preset pairing mode according to the matching result.
6. An electronic device, characterized in that the electronic device comprises: memory, a processor and a device pairing program stored on the memory and executable on the processor, the device pairing program when executed by the processor implementing the steps of the device pairing method as claimed in any one of claims 1 to 3 or any one of claims 4 to 5.
7. A storage medium, characterized in that the storage medium has stored thereon a device pairing program which, when executed by a processor, implements the steps of the device pairing method as claimed in any one of claims 1 to 3 or in any one of claims 4 to 5.
8. An apparatus for device pairing, the apparatus comprising: the device comprises a determining module, a generating module and a connecting module;
the determining module is used for determining the control equipment to be paired according to the target pairing signal when the target pairing signal is detected, wherein the target pairing signal is a signal sent by the control equipment when the equipment movement information detected by the control equipment meets a preset condition;
the generating module is used for generating confirmation information and sending the confirmation information to the control equipment to be paired;
the connection module is used for receiving control information fed back by the control equipment to be paired according to the confirmation information and establishing communication connection with the control equipment to be paired according to the control information;
the generating module is further configured to determine device information of the control device to be paired according to the target pairing signal, determine a target communication mode of the control device to be paired according to the device information, determine an information packaging format according to the target communication mode, package preset information according to the information packaging format to obtain confirmation information, and send the confirmation information to the control device to be paired;
the connection module is further configured to receive control information fed back by the control device to be paired according to the confirmation information, search a target connection policy corresponding to the connection reference information in a preset mapping relation table by using the control information and the device information as connection reference information, where the preset mapping relation table includes a corresponding relation between the connection reference information and the target connection policy, where the target connection policy includes a connection mode and a connection frequency of the intelligent device and the control device, and establish a communication connection with the control device to be paired according to the target connection policy.
CN202110140452.XA 2021-02-01 2021-02-01 Device pairing method, device, storage medium and device Active CN113038449B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110140452.XA CN113038449B (en) 2021-02-01 2021-02-01 Device pairing method, device, storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110140452.XA CN113038449B (en) 2021-02-01 2021-02-01 Device pairing method, device, storage medium and device

Publications (2)

Publication Number Publication Date
CN113038449A CN113038449A (en) 2021-06-25
CN113038449B true CN113038449B (en) 2022-11-25

Family

ID=76459674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110140452.XA Active CN113038449B (en) 2021-02-01 2021-02-01 Device pairing method, device, storage medium and device

Country Status (1)

Country Link
CN (1) CN113038449B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888905A (en) * 2014-04-08 2014-06-25 江苏惠通集团有限责任公司 Wireless device and method for pairing wireless device with control device
CN105388779A (en) * 2015-12-25 2016-03-09 小米科技有限责任公司 Control method and device for intelligent equipment
CN105516183A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Device connection method and device
CN105807903A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Control method and device of intelligent equipment
WO2017008592A1 (en) * 2015-07-15 2017-01-19 腾讯科技(深圳)有限公司 Method, intelligent device and system for realizing control of terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686462B (en) * 2013-12-02 2017-06-13 广东美的制冷设备有限公司 Control terminal and controlled terminal matching method, system and terminal
CN110582078B (en) * 2019-08-28 2023-01-20 RealMe重庆移动通信有限公司 Bluetooth pairing method and device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888905A (en) * 2014-04-08 2014-06-25 江苏惠通集团有限责任公司 Wireless device and method for pairing wireless device with control device
CN105807903A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Control method and device of intelligent equipment
WO2017008592A1 (en) * 2015-07-15 2017-01-19 腾讯科技(深圳)有限公司 Method, intelligent device and system for realizing control of terminal device
CN105388779A (en) * 2015-12-25 2016-03-09 小米科技有限责任公司 Control method and device for intelligent equipment
CN105516183A (en) * 2015-12-30 2016-04-20 小米科技有限责任公司 Device connection method and device

Also Published As

Publication number Publication date
CN113038449A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
US11416113B2 (en) Apparatus and method for remotely controlling peripheral devices in mobile communication terminal
CN107977214B (en) Burning method and device for identification code of intelligent equipment and computer readable storage medium
US20120119888A1 (en) Universal remote control with automated setup
WO2018095218A1 (en) Method for remote controller upgrading test and device
US9473617B2 (en) Terminal apparatus, control system, and control method for controlling collaboration among a plurality of devices
US11341882B2 (en) Electronic device, method, and computer readable medium for providing screen sharing service through external electronic device
EP2784661B1 (en) Computer program product, information processing method, and information processing apparatus
KR20100017023A (en) Image forming apparatus and method for controlling application thereof
CN107577472B (en) Software installation method and device and computer readable storage medium
CN112567695B (en) Electronic device, server and control method thereof
US10165611B2 (en) Bluetooth pairing system and operating method thereof
KR20190101659A (en) Electronic device and method for controlling storage of content displayed through display panel
CN108199935B (en) Distribution network code display method, terminal, server and computer readable storage medium
EP3145160B1 (en) Apparatus and method for transmitting image files.
CN112929860A (en) Bluetooth connection method and device and electronic equipment
CN108491344B (en) Robot control management method, system, robot and computer storage medium
US20190052745A1 (en) Method For Presenting An Interface Of A Remote Controller In A Mobile Device
CN113038449B (en) Device pairing method, device, storage medium and device
CN107341007B (en) Display terminal, timing starting method thereof and computer readable storage medium
CN110321172B (en) Partition identification method, device, equipment and storage medium for network block equipment
KR20120010007A (en) Method for providing contents of multimedia kiosk system and multimedia kiosk system enabling of the method
CN111124764A (en) System restoring method, smart television and computer storage medium
CN105425936B (en) Method and device for adapting terminal to external device and terminal
KR20200079081A (en) Method for sharing content and electronic device thereof
JP2014082581A (en) Information terminal, server device, information system and information terminal program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant