Method and device for realizing pairing based on charging device, and charging device

The charging device-based pairing method and device enhance wireless network device pairing efficiency and accuracy by ensuring all devices meet conditions, exchanging unique identifiers, and monitoring for errors, thereby reducing incorrect pairings and power consumption.

CN114465298BActive Publication Date: 2024-12-27APUTURE IMAGING IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111600095.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-12-27
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

Current wireless network device pairing methods result in reduced efficiency and accuracy when multiple devices need to be paired simultaneously, often leading to incorrect pairings and repeated operations, which reduces the pairing efficiency and accuracy, and the reliability of the pairing process, and the reliability of the pairing process.

Method used

A method and device utilizing a charging device to facilitate pairing by determining device types and identifiers, ensuring all connected devices meet pairing conditions, and implementing half-duplex communication to exchange and store unique device identifiers, with error monitoring and reporting.

Benefits of technology

Improves pairing efficiency and accuracy by reducing incorrect pairings, minimizing power consumption, and enhancing reliability through intelligent error reporting and real-time status monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114465298B_ABST
    Figure CN114465298B_ABST
Patent Text Reader

Abstract

The present invention discloses a pairing implementation method and device based on a charging device, and a charging device, including: judging whether all access devices currently connected to the charging device meet the device pairing conditions; if so, determining the receiving devices and all transmitting devices in all access devices, and the number of all transmitting devices is greater than or equal to 1; reading the device identification uniquely corresponding to the receiving device and sending it to all transmitting devices for storage, and reading the device identification uniquely corresponding to each transmitting device and sending it to the receiving device for storage; after sending the device identification uniquely corresponding to the receiving device to all transmitting devices for storage and sending the device identification uniquely corresponding to each transmitting device to the receiving device for storage, determining that the pairing between the receiving device and all transmitting devices is completed. It can be seen that the present invention can realize the pairing between the receiving device and the transmitting device by accessing the charging device, which is conducive to improving the pairing efficiency and pairing accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic devices, and in particular to a charging device-based pairing implementation method and device, and a charging device. Background Art

[0002] At present, some wireless network devices usually need to be paired before use, and can only be used normally after pairing is successful. For example, a 2.4G wireless microphone needs to pair the transmitter with the receiver before use. Among them, for wireless network devices, the most common pairing methods are one-to-one pairing and one-to-many pairing. The one-to-one pairing method completes the pairing between a receiving device (such as a protocol host) and a transmitting device (such as a protocol slave), and the one-to-many pairing method completes the pairing between a receiving device and at least two transmitting devices.

[0003] In actual applications, pairing between the receiving device and the transmitting device is usually achieved through a control program. The pairing process is mainly: the receiving device broadcasts its device identification (such as device ID), and the transmitting device scans the wireless broadcast signal. If the transmitting device scans the wireless broadcast pairing signal of the receiving device within a certain period of time (such as 15 seconds), the unique device identification of the receiving device is automatically saved and joins the network where the newly paired receiving device is located. The next time the device is turned on, it automatically joins the network where the receiving device is located through the saved unique device identification of the receiving device.

[0004] However, in practice, it is found that if there are two or more wireless network devices that need to be paired at the same time in the current scenario, the above pairing method will result in the transmitter in one wireless network device being paired with the receiver in another wireless network device, and multiple pairings need to be repeated, which reduces the pairing efficiency and pairing accuracy. It can be seen that the current device pairing method has the problems of low pairing efficiency and low pairing accuracy. Summary of the invention

[0005] The present invention provides a pairing implementation method and device based on a charging device, and a charging device, which can achieve pairing between a receiving device and a transmitting device by connecting to the charging device, which is beneficial to improving pairing efficiency and pairing accuracy.

[0006] The first aspect of the present invention discloses a pairing implementation method based on a charging device, the method comprising:

[0007] Determine whether all the access devices currently connected to the charging device meet the predetermined device pairing condition; when it is determined that all the access devices currently connected to the charging device meet the device pairing condition, determine the receiving devices and all the transmitting devices in all the access devices, and the number of all the transmitting devices is greater than or equal to 1;

[0008] Reading a device identifier uniquely corresponding to the receiving device, and reading a device identifier uniquely corresponding to each of the transmitting devices;

[0009] After reading the device identification uniquely corresponding to the receiving device, the device identification uniquely corresponding to the receiving device is sent to all the transmitting devices, so that the transmitting device that receives the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device, and, after reading the device identification uniquely corresponding to any of the transmitting devices, the device identification uniquely corresponding to the transmitting device is sent to the receiving device, so that the receiving device saves the device identification uniquely corresponding to the transmitting device;

[0010] After the device identification uniquely corresponding to the receiving device is sent to all the transmitting devices for storage and the device identification uniquely corresponding to each transmitting device is sent to the receiving device for storage, it is determined that the pairing between the receiving device and all the transmitting devices is completed.

[0011] As an optional implementation, in the first aspect of the present invention, after reading the device identifier uniquely corresponding to any target access device among all the access devices, it is determined whether the current device access state of the charging device meets the device pairing condition; wherein the target access device is the receiving device or any of the transmitting devices;

[0012] When it is determined that the current device access state of the charging device meets the device pairing condition and the target access device is the receiving device, triggering the step of sending the device identifier uniquely corresponding to the receiving device to all the transmitting devices, so that the transmitting device that receives the device identifier uniquely corresponding to the receiving device saves the device identifier uniquely corresponding to the receiving device;

[0013] When it is determined that the current device access status of the charging device meets the device pairing condition and the target access device is any of the transmitting devices, the step of sending the device identifier uniquely corresponding to the transmitting device to the receiving device is triggered so that the receiving device saves the device identifier uniquely corresponding to the transmitting device.

[0014] As an optional embodiment, in the first aspect of the present invention, the method further comprises:

[0015] After determining that all the access devices currently accessing the charging device meet the device pairing condition and before determining that the pairing between the receiving device and all the transmitting devices is completed, monitoring whether the current device access state of the charging device meets a predetermined error condition;

[0016] When it is detected that the current device access state of the charging device meets the error reporting condition, the charging device is controlled to output an error reporting prompt.

[0017] As an optional implementation, in the first aspect of the present invention, monitoring whether the current device access state of the charging device satisfies a predetermined error reporting condition includes:

[0018] Monitoring whether the current device access state of the charging device is used to indicate that the device type of the current access device of the charging device is a unique device type, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0019] monitoring whether the receiving device is disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error reporting condition; or,

[0020] monitoring whether there is at least one transmitting device disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0021] monitoring whether there is at least one of the transmitting devices disconnected from the charging device, and when it is detected that there is a transmitting device disconnected from the charging device, determining whether the number of the transmitting devices disconnected from the charging device exceeds a preset first number threshold, and when it is detected that the number of the transmitting devices disconnected from the charging device exceeds the first number threshold, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0022] monitoring whether the reading time of any device identification exceeds a first preset time threshold, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0023] Monitor whether the feedback time of any device identification exceeds a second preset time threshold, and when the monitoring result is yes, determine that the current device access state of the charging device meets the predetermined error condition.

[0024] As an optional implementation manner, in the first aspect of the present invention, the determining of the receiving devices and all the transmitting devices in all the access devices includes:

[0025] Determine the receiving devices and all the transmitting devices in all the access devices according to the interface parameters of each access device accessing the charging device, wherein the interface parameters include at least one of an interface identifier, a location identifier, and an interface type of the corresponding interface; or

[0026] Send read / write protocol data packets to each access device respectively through the access interface between each access device and the charging device, receive response data packets fed back by each access device for the received read / write protocol data packets, and determine the receiving devices and all transmitting devices in all the access devices according to the response data packets fed back by each access device for the received read / write protocol data packets.

[0027] As an optional implementation, in the first aspect of the present invention, after sending the device identifier uniquely corresponding to the receiving device to all the transmitting devices so that the transmitting device that receives the device identifier uniquely corresponding to the receiving device saves the device identifier uniquely corresponding to the receiving device, the method further includes:

[0028] Monitoring whether a reception response data packet fed back by a certain transmitting device is received within a predetermined monitoring time period, and when a reception response data packet fed back by a certain transmitting device is received within the monitoring time period, determining that the transmitting device has received a device identifier uniquely corresponding to the receiving device;

[0029] The receiving response data packet fed back by any of the transmitting devices at least includes a device identifier uniquely corresponding to the transmitting device, and the reading of the device identifier uniquely corresponding to each of the transmitting devices includes:

[0030] For each of the transmitting devices, if a receiving response data packet fed back by the transmitting device is received within the monitoring time period, a device identification uniquely corresponding to the transmitting device is read from the receiving response data packet fed back by the transmitting device.

[0031] As an optional implementation, in the first aspect of the present invention, the determining whether all connected devices currently connected to the charging device meet a predetermined device pairing condition includes:

[0032] Determine whether the device types of all the devices currently connected to the charging device include a receiving type and a transmitting type, and when the determination result is yes, determine that all the devices currently connected to the charging device meet a predetermined device pairing condition; or,

[0033] Determine whether the device types of all the access devices currently connected to the charging device include a receiving type and a transmitting type. When the judgment result is yes, determine whether the number of access devices with the receiving type among all the access devices is less than or equal to a preset second number threshold. When the number of access devices with the receiving type among all the access devices is less than or equal to the second number threshold, determine that all the access devices currently connected to the charging device meet the predetermined device pairing condition.

[0034] As an optional implementation, in the first aspect of the present invention, before determining whether all connected devices currently connected to the charging device meet the predetermined device pairing condition, the method further includes:

[0035] Detecting whether a device pairing instruction triggered by a user is received, and when the device pairing instruction triggered by the user is detected, triggering the step of determining whether all devices currently connected to the charging device meet a predetermined device pairing condition; or,

[0036] Detecting whether there is an access device connected to the charging device, and when it is detected that there is an access device connected to the charging device, triggering the step of determining whether all access devices currently connected to the charging device meet a predetermined device pairing condition;

[0037] When the device pairing instruction triggered by the user is detected, the receiving response data packet fed back by any of the transmitting devices also includes the channel identifier of the target channel corresponding to the transmitting device in the left and right channels of the receiving device.

[0038] A second aspect of the present invention discloses a pairing implementation device based on a charging device, the device comprising:

[0039] A judgment module, used to judge whether all the connected devices currently connected to the charging device meet the predetermined device pairing conditions;

[0040] A device determination module, when the determination module determines that all the connected devices currently connected to the charging device meet the device pairing condition, determines the receiving devices and all the transmitting devices in all the connected devices, and the number of all the transmitting devices is greater than or equal to 1;

[0041] A first reading module, used to read a device identifier uniquely corresponding to the receiving device;

[0042] A second reading module is used to read a device identification uniquely corresponding to each of the transmitting devices;

[0043] A first sending module, configured to send the device identification uniquely corresponding to the receiving device to all the transmitting devices after the first reading module reads the device identification uniquely corresponding to the receiving device, so that the transmitting device that receives the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device;

[0044] A second sending module is used to send the device identification uniquely corresponding to any of the transmitting devices to the receiving device after the second reading module reads the device identification uniquely corresponding to the transmitting device, so that the receiving device saves the device identification uniquely corresponding to the transmitting device;

[0045] A pairing determination module is used to determine that pairing between the receiving device and all the transmitting devices is completed after the first sending module sends the device identifier uniquely corresponding to the receiving device to all the transmitting devices for storage and the second sending module sends the device identifier uniquely corresponding to each transmitting device to the receiving device for storage.

[0046] The third aspect of the present invention discloses a charging device, which has a set of device access interfaces, wherein the set of device access interfaces includes a first type of access interface for access by a receiving device and at least one second type of access interface for access by a transmitting device, and the charging device is used to implement some or all of the steps in the pairing implementation method based on the charging device as described in any one of the first aspects of the present invention.

[0047] A fourth aspect of the present invention discloses another charging device-based pairing implementation device, the device comprising:

[0048] A memory storing executable program code;

[0049] a processor coupled to the memory;

[0050] The processor calls the executable program code stored in the memory to execute part or all of the steps in any one of the pairing implementation methods based on the charging device described in the first aspect of the present invention.

[0051] A fifth aspect of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute some or all of the steps in the pairing implementation method based on the charging device described in any one of the first aspects of the present invention.

[0052] Compared with the prior art, the present invention has the following beneficial effects:

[0053] The present invention can realize the pairing control between the receiving device and the transmitting device connected to the same charging device, can reduce the occurrence of the transmitting device pairing with the wrong receiving device, and is conducive to improving the pairing efficiency and pairing accuracy; in addition, before pairing, it is first judged whether all the connected devices of the charging device meet the predetermined device pairing conditions, which is conducive to reducing unnecessary device pairing operations, thereby helping to reduce power consumption, and can also improve the reliability of completing the pairing between devices through the charging device; in addition, when it is judged that all the connected devices of the charging device meet the predetermined device pairing conditions, the current device access status of the charging device (that is, the real-time device access status) can also be judged during the pairing process, which is conducive to further improving the reliability of completing the pairing between devices through the charging device; in addition, it is also possible to monitor abnormal situations during the pairing process and issue error prompts, so that relevant personnel can promptly discover pairing abnormalities, and then timely handle abnormal situations, which is conducive to further improving the pairing efficiency between devices; in addition, it is also possible to realize multiple types of abnormal situations The error reporting processing enriches the intelligent error reporting function of the charging device in the process of pairing between devices; in addition, the receiving device and the transmitting device can be determined according to the interface parameters or the corresponding read-write protocol data packets and response data packets, which is conducive to improving the determination efficiency and accuracy of the receiving device and the transmitting device; in addition, after sending the device identification uniquely corresponding to the receiving device to the transmitting device, the transmitting device that receives the device identification can feedback a receiving response data packet including the device identification uniquely corresponding to the transmitting device, which is conducive to improving the reading efficiency of the device identification uniquely corresponding to the transmitting device; in addition, it is also possible to realize intelligent judgment on whether all access devices currently connected to the charging device meet the predetermined device pairing conditions according to the device type of the access device or the combination of the device type of the access device and the number of receiving devices, which is conducive to improving the judgment efficiency and judgment accuracy; in addition, it is also possible to automatically trigger the pairing process when the access device is connected to the charging device, or trigger the pairing process according to the device pairing instruction triggered by the user, enriching the triggering method of the pairing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0055] Figure 1 It is a schematic diagram of a system architecture disclosed in an embodiment of the present invention;

[0056] Figure 2It is a flow chart of a method for realizing pairing based on a charging device disclosed in an embodiment of the present invention;

[0057] Figure 3 It is a flowchart of another charging device-based pairing implementation method disclosed in an embodiment of the present invention;

[0058] Figure 4 It is a schematic diagram of a process of a charging box performing half-duplex communication with a receiver through an access interface disclosed in an embodiment of the present invention;

[0059] Figure 5 It is a flowchart of receiver-side pairing disclosed in an embodiment of the present invention;

[0060] Figure 6 It is a schematic diagram of a transmitter end pairing process disclosed in an embodiment of the present invention;

[0061] Figure 7 It is a schematic diagram of a process of realizing one-to-two pairing through a charging box disclosed in an embodiment of the present invention;

[0062] Figure 8 It is a structural schematic diagram of a pairing implementation device based on a charging device disclosed in an embodiment of the present invention;

[0063] Fig. 9 It is a structural schematic diagram of another charging device-based pairing implementation device disclosed in an embodiment of the present invention;

[0064] Fig.10 It is a structural schematic diagram of another charging device-based pairing implementation device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0065] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0066] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or end including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or ends.

[0067] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0068] The present invention discloses a pairing implementation method and device based on a charging device, and a charging device, which can realize the pairing control between a receiving device and a transmitting device connected to the same charging device, can reduce the occurrence of the transmitting device being paired with the wrong receiving device, and is conducive to improving the pairing efficiency and pairing accuracy; in addition, before pairing, it is first determined whether all the connected devices of the charging device meet the predetermined device pairing conditions, which is conducive to reducing unnecessary device pairing operations, thereby helping to reduce power consumption, and can also improve the reliability of completing the pairing between devices through the charging device. The following are detailed descriptions.

[0069] In order to better illustrate the pairing implementation method and device based on the charging device described in the present invention, and the charging device, the system architecture applicable to the method described in the present invention is first described. Among them, the system architecture applicable to the method described in the present invention may include a charging device, the charging device is provided with a device access interface set (such as multiple serial ports), the device access interface set includes a first type of access interface for accessing the receiving device and at least one second type of access interface for accessing the transmitting device, and further, the charging device may also be provided with a pairing button and / or an indicator light. Among them, after the receiving device accesses the charging device through the first type of access interface and the transmitting device accesses the charging device through the second type of access interface, if the user triggers the pressing operation for the pairing button, the pairing process between the receiving device and the transmitting device can be triggered, or, after the receiving device accesses the charging device through the first type of access interface and the transmitting device accesses the charging device through the second type of access interface, the pairing process between the receiving device and the transmitting device can also be automatically triggered. Among them, the charging device can realize one-to-one pairing, and can also realize one-to-many (such as one-to-two) pairing.

[0070] Optionally, the indicator light on the charging device can indicate at least one of the start of pairing, the completion of pairing and a pairing abnormality. For example, the indicator light can indicate the start of pairing by flashing quickly, or indicate the completion of pairing by remaining on for a certain period of time (such as 3 seconds), or indicate a pairing abnormality by flashing slowly.

[0071] Optionally, the communication mode between the receiving device and the charging device and between the transmitting device and the charging device can both be a half-duplex communication mode.

[0072] Taking the example of implementing one-to-two pairing in the charging box corresponding to a 2.4G wireless microphone, the specific system architecture can be as follows: Figure 1 As shown, Figure 1 Schematic diagram of a system architecture disclosed in an embodiment of the present invention. Figure 1 As shown, the system architecture includes a charging box corresponding to the 2.4G wireless microphone, and the charging box is provided with a serial port for accessing transmitter A (also called "protocol slave A"), a serial port for accessing transmitter B (also called "protocol slave B"), and a serial port for accessing a receiver (also called "protocol host"). The three serial ports are all independent serial ports, and transmitter A, transmitter B and receiver communicate with the charging box through their own independent serial ports. The specific communication mode is half-duplex communication mode. Further, as Figure 1 As shown, the charging box is also equipped with a pairing button, an indicator light, a USB OTG interface and a Hall sensor. Figure 1 The pairing implementation process of the system architecture shown is as follows:

[0073] When the pairing button on the charging box is detected to be pressed, pairing is performed through the serial port half-duplex communication. At this time, the indicator light flashes quickly to indicate the start of pairing, and the current device access status of the charging box is recorded. According to the recorded current device access status of the charging box, it is determined whether at least one transmitter is connected to one receiver;

[0074] When it is determined that at least one transmitter (taking two transmitters as an example) is connected to a receiver, it is determined that the connected device meets the device pairing condition. Then, the device ID of the receiver is read, and the response data packet including the device ID of the receiver is received from it (that is, the receiver); the device ID of the receiver is written to transmitter A, and the response data packet feedbacked by transmitter A is received, wherein the response data packet feedbacked by transmitter A may include the device ID of transmitter A; the device ID of the receiver is written to transmitter B, and the response data packet feedbacked by transmitter B is received, wherein the response data packet feedbacked by transmitter B may include the device ID of transmitter B; the device ID of transmitter A is written to the receiver, and the response data packet feedbacked by it is received to indicate that the writing is successful; the device ID of transmitter B is written to the receiver, and the response data packet feedbacked by it is received to indicate that the writing is successful.

[0075] The pairing between a receiver and two transmitters is completed through the above process. At this time, the indicator light can remain on until the constant lighting time reaches the preset constant lighting time threshold, and the indicator light can be automatically turned off after the constant lighting time reaches the preset time threshold.

[0076] Furthermore, the charging box can also monitor error conditions during the process of pairing devices. If any situation that meets the error conditions is detected, the indicator light can issue an error prompt (such as slow flashing).

[0077] Furthermore, any monitored situation that satisfies the error reporting condition may be any of the following situations:

[0078] 1. Check the type of connected device: The device connected to the charging box includes only one receiver, or the device connected to the charging box includes only one or two transmitters;

[0079] 2. Access device status check: the receiver or at least one transmitter is removed;

[0080] 3. Communication duration check: The communication duration exceeds the preset communication duration threshold.

[0081] It should be noted that transmitter A and transmitter B can be distinguished by hardware communication interface and communication instructions, that is: for the serial port connected to transmitter A, the charging box will only send / receive protocol instructions related to transmitter A; for the serial port connected to transmitter B, the charging box will only send / receive protocol instructions related to transmitter B. In addition, the charging box can also trigger the pairing process without pressing the pairing button. When the receiver and the transmitter are connected or placed in the charging box, the charging box can automatically trigger the pairing process. Among them, since there is only one headphone output port on the receiver, the two transmitters need to correspond to the left and right channels of the receiver respectively. If the pairing process is not triggered by pressing the pairing button, the left and right channels of the receiver corresponding to the transmitter will not be changed.

[0082] It should be noted that Figure 1 The structure of the charging box is only a structural diagram, which does not limit the specific location, size and shape of the components and interfaces on the charging box.

[0083] It can be seen that through Figure 1 The system architecture shown can reduce the occurrence of pairing transmitters with receivers in different charging boxes, which is beneficial to improving pairing efficiency and pairing accuracy; in addition, the pairing buttons on the transmitter and receiver can be omitted, which is beneficial to reducing the size of the transmitter and receiver. Furthermore, if the transmitter and receiver need to be placed in a charging box for pairing, the size of the charging box can also be reduced to a certain extent.

[0084] Embodiment 1

[0085] See also Figure 2 , Figure 2 1 is a flow chart of a method for implementing pairing based on a charging device disclosed in an embodiment of the present invention. Figure 2 The described method can be applied to a pairing implementation device, which can be integrated in a charging device (such as a charging box). Optionally, the charging device can be a charging box corresponding to a 2.4G wireless microphone, which is not limited in the embodiment of the present invention. Figure 2 As shown, the method may include the following operations:

[0086] 101. Determine whether all devices currently connected to the charging device meet the predetermined device pairing conditions; when the judgment result of step 101 is yes, step 102 can be triggered to execute; when the judgment result of step 101 is no, the process can be terminated, step 101 can be continuously triggered, or step 101 can be triggered at intervals, which is not limited in the embodiment of the present invention.

[0087] In the embodiment of the present invention, all the connected devices currently connected to the charging device are specifically all the connected devices that have been connected to the charging device at the time of executing the determining step.

[0088] 102. When it is determined that all connected devices currently connected to the charging device meet the device pairing condition, determine the receiving devices and all transmitting devices in all the connected devices.

[0089] Among them, the number of all transmitting devices is greater than or equal to 1, which can be 1 or 2, and is not limited in the embodiment of the present invention.

[0090] 103. Read the device identifier that is unique to the receiving device.

[0091] In the embodiment of the present invention, optionally, reading a device identifier uniquely corresponding to the receiving device may include:

[0092] Send a read protocol data packet to the receiving device through the serial port corresponding to the access device to read the device identifier uniquely corresponding to the receiving device;

[0093] A response data packet fed back by the receiving device through the corresponding serial port in response to the read protocol data packet is received, and the response data packet is parsed to obtain a device identification (such as a device ID) uniquely corresponding to the receiving device.

[0094] Optionally, receiving a response data packet fed back by the receiving device through a corresponding serial port in response to the read protocol data packet may include:

[0095] A response data packet fed back by the receiving device through the corresponding serial port in response to the read protocol data packet is received within a preset communication time length starting from the sending time of the read protocol data packet.

[0096] Further optionally, if the response packet fed back by the receiving device through the corresponding serial port for the read protocol packet is not received within the preset communication duration starting from the sending time of the read protocol packet, the communication is determined to be timed out, and a timeout prompt is output. Further optionally, in the case of determining the communication timeout, it is also possible to determine whether it is necessary to resend the read protocol packet to the receiving device according to the number of communication timeouts. If necessary (for example, if the number of communication timeouts does not reach the preset timeout threshold), the above-mentioned operation of receiving the response packet fed back by the above-mentioned receiving device through the corresponding serial port for the read protocol packet is re-executed until the response packet fed back by the above-mentioned receiving device through the corresponding serial port for the read protocol packet is received within the preset communication duration starting from the sending time of the read protocol packet or the number of communication timeouts reaches the preset timeout threshold. It can be seen that this can not only increase the probability of obtaining the response packet by sending the read protocol packet multiple times, but also reduce the occurrence of low device pairing efficiency due to the failure to read the unique corresponding device identifier of the receiving device for a long time.

[0097] 104. After reading the device identification uniquely corresponding to the receiving device, send the device identification uniquely corresponding to the receiving device to all transmitting devices, so that the transmitting device that receives the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device.

[0098] The sending of the unique device identifier of the receiving device to all transmitting devices may include:

[0099] A write protocol data packet is sent to each transmitting device through the serial port corresponding to each transmitting device. The write protocol data packet may include a device identifier uniquely corresponding to the receiving device. Optionally, the write protocol data packet sent to any transmitting device may also include a channel identifier corresponding to the transmitting device in all channels of the receiving device, wherein different transmitting devices have different channel identifiers. This can improve the accuracy and convenience of configuring channels for the transmitting device.

[0100] 105. Read the unique device identification corresponding to each transmitting device.

[0101] Optionally, reading the device identification uniquely corresponding to each transmitting device can be achieved by sending a read protocol data packet to the transmitting device and receiving a response data packet fed back by the transmitting device within a set time period, which can be specifically referred to the implementation method of reading the device identification uniquely corresponding to the receiving device; or, it can also be achieved by sending a response data packet fed back by each transmitting device after sending the device identification uniquely corresponding to the above-mentioned receiving device to the transmitting device. Of the two implementation schemes, the latter is preferred, which is conducive to improving the reading efficiency of the device identification uniquely corresponding to the transmitting device. Furthermore, while reading the device identification uniquely corresponding to each transmitting device, the channel identification corresponding to the transmitting device can also be obtained at the same time.

[0102] 106. After reading the device identification uniquely corresponding to any transmitting device, send the device identification uniquely corresponding to the transmitting device to the receiving device, so that the receiving device saves the device identification uniquely corresponding to the transmitting device.

[0103] Optionally, the device identifier unique to the transmitting device can be sent to the receiving device by sending a write protocol data packet, and after the receiving device receives the device identifier unique to any transmitting device, a response data packet can be fed back to indicate successful reception, which is conducive to improving feedback efficiency; or a response data packet can be fed back after receiving the device identifiers unique to all transmitting devices, which can reduce the number of feedback times.

[0104] 107. After sending the device identification uniquely corresponding to the receiving device to all transmitting devices for storage and sending the device identification uniquely corresponding to each transmitting device to the receiving device for storage, it is determined that pairing between the receiving device and all transmitting devices is completed.

[0105] Optionally, after sending the device identifier uniquely corresponding to the receiving device to all transmitting devices for storage and sending the device identifier uniquely corresponding to each transmitting device to the receiving device for storage, and before determining that pairing between the receiving device and all transmitting devices is completed, the method may further include:

[0106] It is determined whether the unique device identifiers corresponding to the receiving device stored in all transmitting devices are the same. If so, the above-mentioned operation of determining whether the pairing between the receiving device and all transmitting devices is completed is performed. In this way, after the receiving device and the transmitting device store the unique device identifier corresponding to each other, it is possible to verify whether the pairing is successful by determining whether the unique device identifiers corresponding to the receiving device stored in all transmitting devices are the same, which is conducive to improving the pairing accuracy between devices.

[0107] It should be noted that if step 105 is not dependent on step 103, the embodiment of the present invention does not limit the execution order between step 103 and step 105, and step 103 can be executed before step 105, can be executed synchronously with step 105, or can be executed after step 105. In addition, the embodiment of the present invention does not limit the execution order between step 104 and step 106, and step 104 can be executed before step 106, can be executed synchronously with step 104, or can be executed after step 106.

[0108] It can be seen that the implementation of the method described in the embodiment of the present invention can realize the pairing control between the receiving device and the transmitting device connected to the same charging device, which can reduce the occurrence of the transmitting device pairing with the wrong receiving device, which is beneficial to improving the pairing efficiency and pairing accuracy; in addition, before pairing, it is determined whether all the connected devices of the charging device meet the predetermined device pairing conditions, which is beneficial to reduce unnecessary device pairing operations, thereby reducing power consumption, and can also improve the reliability of pairing between devices completed through the charging device.

[0109] In an optional embodiment, before executing step 101, the method may further include the following steps:

[0110] Detecting whether a device pairing instruction triggered by a user is received, and when a device pairing instruction triggered by a user is detected, triggering the above-mentioned step of determining whether all connected devices currently connected to the charging device meet the predetermined device pairing condition; or,

[0111] Detect whether there is an access device connected to the charging device. When it is detected that there is an access device connected to the charging device, trigger the above step of determining whether all access devices currently connected to the charging device meet the predetermined device pairing condition.

[0112] In this optional embodiment, the charging device may be provided with a pairing button for the user to trigger the device pairing instruction. The pairing button may be a physical button that needs to be pressed or a touch button, which is not limited in the embodiment of the present invention. It can be seen that this optional embodiment can allow the user to manually trigger the device pairing instruction through the pairing button set on the charging device, which can omit the pairing button on the transmitting device and the receiving device, which is conducive to reducing the size of the transmitting device and the receiving device. If the transmitting device and the receiving device need to be placed in the charging device for pairing or charging, then omitting the pairing button on the transmitting device and the receiving device can further help reduce the size of the charging device.

[0113] Further optionally, when the user triggers a device pairing instruction by pressing a pairing button, detecting whether the device pairing instruction triggered by the user is received may include:

[0114] Detect whether the user triggers a related operation on the pairing button, the related operation may be a pressing operation or a touch operation, and the specific operation type matches the type of the pairing button;

[0115] When it is detected that the user has triggered a related operation on the pairing button, it is determined whether the corresponding operation parameter matches the pairing trigger parameter. When the determination result is yes, it is determined that a device pairing instruction triggered by the user is received.

[0116] For example, if the pairing button is a physical button, the corresponding operation parameter may be the duration for which the user presses the pairing button. If it is determined that the pressing duration reaches or exceeds a preset duration threshold, it is determined that the user has triggered the device pairing command.

[0117] It can be seen that this optional embodiment can also determine whether the operation parameters of the operation triggered by the user through the pairing button match the pairing trigger parameters when the user triggers the device pairing instruction through the pairing button. If so, it is determined that the user has triggered the device pairing instruction, which improves the accuracy of detecting the device pairing instruction, and is conducive to reducing the occurrence of unnecessary pairing operations due to the user's mistaken triggering of related operations, which is conducive to further reducing power consumption.

[0118] In this optional embodiment, the charging device can also automatically trigger the pairing process, that is, when it is detected that a device is connected or placed in the charging device, the charging device can automatically execute step 101 in the control process related to device pairing, without the need for the user to trigger it through the corresponding pairing button, which simplifies the triggering method of the pairing-related control process and is conducive to improving the pairing triggering efficiency. It should be noted that if the charging device automatically triggers the pairing process, the corresponding relationship between the left and right channels of the transmitting device and the receiving device will not be changed.

[0119] It can be seen that this optional embodiment can also automatically trigger the pairing process when the access device is connected to the charging device, or trigger the pairing process according to the device pairing instruction triggered by the user, thereby enriching the triggering method of the pairing process.

[0120] Embodiment 2

[0121] See also Figure 3 , Figure 3 1 is a flow chart of another method for implementing pairing based on charging devices disclosed in an embodiment of the present invention. Figure 3 The described method can be applied to a pairing implementation device, which can be integrated in a charging device (such as a charging box). Optionally, the charging device can be a charging box corresponding to a 2.4G wireless microphone, which is not limited in the embodiment of the present invention. Figure 3 As shown, the method may include the following operations:

[0122] 201. Detect whether a device pairing instruction triggered by the user is received. When the detection result of step 201 is yes, step 202 is triggered to execute; when the detection result of step 201 is no, this process can be ended, or step 201 can be continuously triggered to execute.

[0123] 202. When a device pairing instruction triggered by the user is received, determine whether all connected devices currently connected to the charging device meet the predetermined device pairing conditions; when the judgment result of step 202 is yes, step 203 can be triggered to execute; when the judgment result of step 202 is no, the process can be terminated, step 202 can be continuously triggered, or step 202 can be triggered at intervals, which is not limited in the embodiment of the present invention.

[0124] 203. When it is determined that all the connected devices currently connected to the charging device meet the device pairing condition, determine the receiving devices and all the transmitting devices in all the connected devices.

[0125] 204. Read the device identifier uniquely corresponding to the receiving device, and after reading it, determine whether the current device access status of the charging device meets the device pairing condition. When the judgment result of step 204 is yes, trigger the execution of step 205; when the judgment result of step 204 is no, an error prompt can be output.

[0126] The current device access state of the charging device in step 204 is specifically the current device access state of the charging device at the time of executing the action of determining in step 204 .

[0127] 205. When it is determined that the current device access state of the charging device meets the device pairing condition, a device identifier uniquely corresponding to the receiving device is sent to all determined transmitting devices.

[0128] 206. Read the unique device identifier of each determined transmitting device, and after reading any transmitting device or reading the unique device identifier of each transmitting device among all transmitting devices, determine whether the current device access status of the charging device meets the device pairing condition. When the judgment result of step 206 is yes, trigger the execution of step 207; when the judgment result of step 206 is no, an error prompt can be output.

[0129] The current device access state of the charging device in step 206 is specifically the current device access state of the charging device at the time of executing the action of determining in step 206 .

[0130] 207. When it is determined that the current device access state of the charging device meets the device pairing condition, the read device identifier uniquely corresponding to the transmitting device is sent to the receiving device.

[0131] 208. After sending the device identification uniquely corresponding to the receiving device to all transmitting devices for storage and sending the device identification uniquely corresponding to each transmitting device to the receiving device for storage, it is determined that pairing between the receiving device and all transmitting devices is completed.

[0132] In the embodiment of the present invention, the pairing between a receiving device and at least one transmitting device based on the charging device mainly relies on the half-duplex communication between the charging device and the receiving device and the transmitting device connected through the serial port to realize the exchange and binding of device identifications. Taking the charging box corresponding to the 2.4G wireless microphone to realize the pairing between a receiver and two transmitters as an example, the process of half-duplex communication between the charging box and the receiver can be as follows: Figure 4 As shown, Figure 4 1 is a flow chart of a charging box performing half-duplex communication with a receiver through an access interface disclosed in an embodiment of the present invention. Figure 4 As shown, the main communication process includes: determining the read-write protocol data packet that needs to be sent to the receiver, and sending the read-write protocol data packet to the receiver; judging whether the read-write protocol data packet has been sent, if not, continuing to perform the operation of sending the read-write protocol data packet to the receiver, and before sending the read-write protocol data packet to the receiver, it can be judged whether the number of times the read-write protocol data packet is resent to the receiver exceeds a preset number (such as Figure 4 30 times shown in ), if exceeded, a prompt of timeout failure is output; if not exceeded, the above-mentioned operation of sending the read-write protocol data packet to the receiver is continued; if the read-write protocol data packet is sent, the process of receiving the response data packet fed back by the receiver is further entered, and it is determined whether the response data packet fed back by the receiver is received. If received, the communication between the charging box and the receiver is successful. If not received, it is necessary to determine whether the cumulative time for not receiving the response data packet fed back by the receiver exceeds the preset time. If not exceeded, the above-mentioned operation of determining whether the response packet fed back by the receiver is received is continued; if exceeded, the above-mentioned operation of determining whether the number of times the read-write protocol data packet is resent to the receiver exceeds the preset number is performed.

[0133] Furthermore, the pairing implementation process of the receiver end in the solution of implementing pairing between devices based on the above half-duplex communication process can be as follows: Figure 5 As shown, Figure 5 This is a flowchart of receiver pairing disclosed in an embodiment of the present invention. The main process includes:

[0134] After accessing the charging box through the corresponding serial port, the receiver waits to receive the read-write protocol data packet sent by the charging box, and determines whether the read-write protocol data packet sent by the charging box is received. If the read-write protocol data packet sent by the charging box is not received, it is determined whether the time period for not receiving the read-write protocol data packet sent by the charging box exceeds the preset time period. If it exceeds, it prompts that the pairing fails. If it does not exceed, continue to perform the above-mentioned waiting to receive the read-write protocol data packet sent by the charging box. If the read-write protocol data packet sent by the charging box is received, parse the read-write protocol data packet. Determine whether the read-write protocol data packet is used to read the device ID that uniquely corresponds to the receiver. If it is used to read the device ID that uniquely corresponds to the receiver, prepare the corresponding response protocol data packet and send it to the charging box. If it is not used to obtain the device ID that uniquely corresponds to the receiver, further determine whether it is used to write the device ID that uniquely corresponds to transmitter A. If it is used to write the unique device ID of transmitter A, prepare the corresponding response protocol data packet and send it to the charging box. If it is not used to write the unique device ID of transmitter A, further determine whether it is used to write the unique device ID of transmitter B. If it is used to write the unique device ID of transmitter B, prepare the corresponding response protocol data packet and send it to the charging box. If it is not used to write the unique device ID of transmitter B, continue to perform the above-mentioned operation of waiting for the reception of the read and write protocol data packet sent by the charging box. And, after preparing the corresponding response protocol data packet, send the response protocol data packet to the charging box, and determine whether the response protocol data packet has been sent. If it has been sent, you can continue to perform the above-mentioned operation of waiting for the reception of the read and write protocol data packet sent by the charging box. If it has not been sent, continue to perform the operation of sending the response protocol data packet to the charging box.

[0135] Furthermore, the pairing implementation process of the transmitter end in the solution of implementing pairing between devices based on the above half-duplex communication process can be as follows: Figure 6 As shown, Figure 6 It is a flowchart of transmitter-side pairing disclosed in an embodiment of the present invention.

[0136] Further, a scheme for implementing pairing between devices based on the above half-duplex communication process, a pairing implementation process on the above receiver side, and Figure 6 The pairing implementation process of the transmitter described above, the specific process of pairing between a receiver and two transmitters based on the charging box can be as follows Figure 7 As shown, Figure 7 This is a schematic diagram of a process of realizing one-to-two pairing through a charging box disclosed in an embodiment of the present invention. It mainly includes the following processes:

[0137] When pairing starts, it is determined whether the device pairing conditions are met. If not, it prompts that the pairing fails. If it is met, a protocol data packet for reading the device ID that uniquely corresponds to the receiver is sent to the receiver;

[0138] After receiving the device ID fed back by the receiver, it is determined whether the device pairing condition is currently met. If not, it prompts that the pairing fails. If so, it sends a protocol data packet to transmitter A for writing the device ID uniquely corresponding to the receiver and for reading the device ID uniquely corresponding to transmitter A;

[0139] After receiving the unique device ID of transmitter A, it is determined whether the device pairing condition is currently met. If not, it prompts that the pairing fails. If it is met, it sends a protocol data packet for writing the unique device ID of the receiver and for reading the unique device ID of transmitter B to transmitter B;

[0140] After receiving the device ID uniquely corresponding to transmitter B, it is determined whether the device pairing condition is currently met. If not, a prompt is given that the pairing fails. If so, a protocol data packet for writing the device ID uniquely corresponding to transmitter A is sent to the receiver;

[0141] After receiving the response data packet fed back by the receiver indicating successful receipt of the device ID uniquely corresponding to transmitter A, it is determined whether the device pairing condition is currently met. If not, a pairing failure is prompted. If so, a protocol data packet for writing the device ID uniquely corresponding to transmitter B is sent to the receiver;

[0142] After receiving the response data packet fed back by the receiver indicating successful reception of the device ID uniquely corresponding to transmitter B, pairing between the receiver and transmitters A and B is completed, and a prompt indicating pairing completion is given.

[0143] It should be noted that after the charging box sends a protocol data packet to any access device that needs to be paired, if no response data packet is received from the corresponding access device within the preset time length starting from the time the protocol data packet is sent, it will prompt that the pairing has failed.

[0144] It can be seen that the implementation of the method described in the embodiment of the present invention can realize the pairing control between the receiving device and the transmitting device connected to the same charging device, which can reduce the occurrence of the transmitting device pairing with the wrong receiving device, which is conducive to improving the pairing efficiency and pairing accuracy; in addition, before pairing, it is first determined whether all the connected devices of the charging device meet the predetermined device pairing conditions, which is conducive to reducing unnecessary device pairing operations, thereby helping to reduce power consumption and improve the reliability of pairing between devices completed by the charging device. In addition, in the process of pairing, whenever the unique device identifier of the access device (receiving device or transmitting device) is read, the current device access status (that is, the real-time device access status) of the charging device can be judged, which is conducive to further improving the reliability of pairing between devices completed by the charging device.

[0145] In an optional embodiment, the method may further include the following operations:

[0146] After determining that all devices currently connected to the charging device meet the device pairing condition and before determining that the pairing between the receiving device and all transmitting devices is completed, monitoring whether the current device access state of the charging device meets the predetermined error reporting condition;

[0147] When it is detected that the current device access status of the charging device meets the error reporting condition, the charging device is controlled to output an error reporting prompt.

[0148] In this optional embodiment, further optionally, monitoring whether the current device access state of the charging device satisfies a predetermined error reporting condition may include:

[0149] Monitoring whether the current device access state of the charging device is used to indicate that the device type of the current access device of the charging device is a unique device type, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error reporting condition; or,

[0150] Monitoring whether the receiving device is disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0151] monitoring whether there is at least one transmitting device disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0152] monitoring whether there is at least one transmitting device disconnected from the charging device, and when it is detected that there is a transmitting device disconnected from the charging device, determining whether the number of transmitting devices disconnected from the charging device exceeds a preset first number threshold, and when it is detected that the number of transmitting devices disconnected from the charging device exceeds the first number threshold, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0153] monitoring whether the reading time of any device identification exceeds a first preset time threshold, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0154] Monitor whether the feedback time of any device identification exceeds the second preset time threshold, and when the monitoring result is yes, determine that the current device access state of the charging device meets the predetermined error condition.

[0155] It can be seen that this optional embodiment can also monitor abnormal situations and issue error prompts during the pairing process, so that relevant personnel can promptly discover pairing abnormalities, and then promptly handle abnormal situations, which is conducive to further improving the pairing efficiency between devices; in addition, it can also realize error handling of multiple types of abnormal situations, enriching the intelligent error reporting function of the charging device during the pairing process between devices.

[0156] It should be noted that in other optional embodiments, when an access device is connected, it is also possible to intelligently determine whether the access interface matches the access device (such as whether the access interface matches the device type of the access device). If they match, step 201 can be triggered. If they do not match, a device error access prompt can be output.

[0157] In another optional embodiment, the above-mentioned determining the receiving devices and all the transmitting devices in all the access devices may include:

[0158] Determine the receiving device and all the transmitting devices in all the access devices according to the interface parameters of each access device accessing the charging device, where the interface parameters include at least one of the interface identifier, location identifier and interface type of the corresponding interface; or

[0159] Send read / write protocol data packets to each access device through the access interface of each access device and the charging device, receive response data packets fed back by each access device for the received read / write protocol data packets, and determine the receiving devices and all transmitting devices among all access devices based on the response data packets fed back by each access device for the received read / write protocol data packets.

[0160] It can be seen that this optional embodiment can also determine the receiving device and the transmitting device according to the interface parameters or the corresponding read and write protocol data packets and response data packets, which is beneficial to improving the determination efficiency and accuracy of the receiving device and the transmitting device.

[0161] In yet another optional embodiment, after sending the device identifier uniquely corresponding to the receiving device to all transmitting devices, the method may further include the following operations:

[0162] Whether a receiving response data packet fed back by a transmitting device is received is monitored within a predetermined monitoring time. When a receiving response data packet fed back by a transmitting device is received within the monitoring time, it is determined that the transmitting device has received the device identification uniquely corresponding to the receiving device.

[0163] The receiving response data packet fed back by any transmitting device at least includes a device identifier unique to the transmitting device, and reading the device identifier unique to each transmitting device may include:

[0164] For each transmitting device, if a receiving response data packet fed back by the transmitting device is received within the monitoring time period, a device identification uniquely corresponding to the transmitting device is read from the receiving response data packet fed back by the transmitting device.

[0165] It can be seen that this optional embodiment can also enable the transmitting device to feedback a receiving response data packet including the device identification uniquely corresponding to the transmitting device after sending the device identification uniquely corresponding to the receiving device to the transmitting device, which is beneficial to improving the reading efficiency of the device identification uniquely corresponding to the transmitting device.

[0166] In another optional embodiment, the above-mentioned determination of whether all connected devices currently connected to the charging device meet the predetermined device pairing condition may include:

[0167] Determine whether the device types of all the devices currently connected to the charging device include a receiving type and a transmitting type, and when the determination result is yes, determine that all the devices currently connected to the charging device meet the predetermined device pairing condition; or,

[0168] Determine whether the device types of all access devices currently connected to the charging device include a receiving type and a transmitting type. When the judgment result is yes, determine whether the number of access devices with a receiving type among all access devices is less than or equal to a preset second number threshold. When the number of access devices with a receiving type among all access devices is less than or equal to the second number threshold, determine that all access devices currently connected to the charging device meet the predetermined device pairing condition.

[0169] It can be seen that this optional embodiment can also realize intelligent judgment on whether all access devices currently connected to the charging device meet the predetermined device pairing conditions according to the device type of the access device or the combination of the device type of the access device and the number of receiving devices, which is conducive to improving the judgment efficiency and judgment accuracy.

[0170] Embodiment 3

[0171] like Figure 8 As shown, Figure 8 : is a schematic diagram of a charging device pairing implementation device disclosed in an embodiment of the present invention. Figure 8 The described device may be integrated into a charging device (such as a charging box). Optionally, the charging device may be a charging box corresponding to a 2.4G wireless microphone, which is not limited in the embodiment of the present invention. Figure 8 As shown, the device may include:

[0172] The judgment module 301 is used to judge whether all the connected devices currently connected to the charging device meet the predetermined device pairing conditions;

[0173] The device determination module 302 determines the receiving devices and all the transmitting devices in all the connected devices when the determination module 301 determines that all the connected devices currently connected to the charging device meet the device pairing condition, and the number of all the transmitting devices is greater than or equal to 1;

[0174] The first reading module 303 is used to read the device identification uniquely corresponding to the receiving device;

[0175] The second reading module 304 is used to read the device identification uniquely corresponding to each transmitting device;

[0176] The first sending module 305 is used to send the device identification uniquely corresponding to the receiving device to all transmitting devices after the first reading module 303 reads the device identification uniquely corresponding to the receiving device, so that the transmitting device that receives the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device;

[0177] The second sending module 306 is used to send the unique device identification corresponding to any transmitting device to the receiving device after the second reading module 304 reads the unique device identification corresponding to the transmitting device, so that the receiving device saves the unique device identification corresponding to the transmitting device;

[0178] The pairing determination module 307 is used to determine that the pairing between the receiving device and all transmitting devices is completed after the first sending module 305 sends the device identification uniquely corresponding to the receiving device to all transmitting devices for storage and the second sending module 306 sends the device identification uniquely corresponding to each transmitting device to the receiving device for storage.

[0179] visible, Figure 8 The described device can realize pairing control between a receiving device and a transmitting device connected to the same charging device, which can reduce the occurrence of a transmitting device pairing with an incorrect receiving device, and is beneficial to improving pairing efficiency and pairing accuracy; in addition, before pairing, it is first determined whether all devices connected to the charging device meet the predetermined device pairing conditions, which is beneficial to reducing unnecessary device pairing operations, thereby reducing power consumption, and can also improve the reliability of pairing between devices completed through the charging device.

[0180] In an optional embodiment, the judgment module 301 is also used to judge whether the current device access status of the charging device meets the device pairing condition after reading the device identifier uniquely corresponding to any target access device among all access devices; wherein the target access device is a receiving device or any transmitting device.

[0181] Among them, the first sending module 305 is specifically used to send the device identification uniquely corresponding to the receiving device to all transmitting devices after the first reading module 303 reads the device identification uniquely corresponding to the receiving device, and when the judgment module 301 judges that the current device access status of the charging device meets the device pairing condition, so that the transmitting device that receives the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device.

[0182] And, the second sending module 306 is specifically used to send the device identification uniquely corresponding to any transmitting device to the receiving device after the second reading module 304 reads the device identification uniquely corresponding to any transmitting device, and when the judgment module 301 judges that the current device access status of the charging device meets the device pairing condition, so that the receiving device saves the device identification uniquely corresponding to the transmitting device.

[0183] It can be seen that this optional embodiment can also judge the current device access status (that is, the real-time device access status) of the charging device during the pairing process when it is determined that all access devices of the charging device meet the predetermined device pairing conditions, which is beneficial to further improve the reliability of completing pairing between devices through the charging device.

[0184] In another optional embodiment, Fig. 9 As shown, the device may also include:

[0185] The monitoring module 308 is used to monitor whether the current device access state of the charging device meets the predetermined error condition after the judging module 301 determines that all the devices currently connected to the charging device meet the device pairing condition and before the pairing determination module 307 determines that the pairing between the receiving device and all the transmitting devices is completed;

[0186] The error reporting module 309 is used to control the charging device to output an error reporting prompt when the monitoring module 308 detects that the current device access status of the charging device meets the error reporting condition.

[0187] In this optional embodiment, after the judgment module 301 determines that all the connected devices currently connected to the charging device meet the device pairing condition, the monitoring module 308 can be triggered to perform the above-mentioned operation of monitoring whether the current device access status of the charging device meets the predetermined error condition.

[0188] It can be seen that this optional embodiment can also monitor abnormal situations and issue error prompts during the pairing process, so that relevant personnel can promptly discover pairing anomalies and then promptly handle abnormal situations, which is conducive to further improving the pairing efficiency between devices.

[0189] In another optional embodiment, the specific manner in which the monitoring module 308 monitors whether the current device access status of the charging device satisfies the predetermined error reporting condition may include:

[0190] Monitoring whether the current device access state of the charging device is used to indicate that the device type of the current access device of the charging device is a unique device type, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error reporting condition; or,

[0191] Monitoring whether the receiving device is disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0192] monitoring whether there is at least one transmitting device disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0193] monitoring whether there is at least one transmitting device disconnected from the charging device, and when it is detected that there is a transmitting device disconnected from the charging device, determining whether the number of transmitting devices disconnected from the charging device exceeds a preset first number threshold, and when it is detected that the number of transmitting devices disconnected from the charging device exceeds the first number threshold, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0194] monitoring whether the reading time of any device identification exceeds a first preset time threshold, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or,

[0195] Monitor whether the feedback time of any device identification exceeds the second preset time threshold, and when the monitoring result is yes, determine that the current device access state of the charging device meets the predetermined error condition.

[0196] It can be seen that this optional embodiment can also realize error reporting processing of multiple types of abnormal situations, enriching the intelligent error reporting function of the charging device during the process of pairing between devices.

[0197] In yet another optional embodiment, the specific manner in which the device determination module 302 determines the receiving devices and all the transmitting devices in all the access devices may include:

[0198] Determine the receiving device and all the transmitting devices in all the access devices according to the interface parameters of each access device accessing the charging device, where the interface parameters include at least one of the interface identifier, location identifier and interface type of the corresponding interface; or

[0199] Send read / write protocol data packets to each access device through the access interface of each access device and the charging device, receive response data packets fed back by each access device for the received read / write protocol data packets, and determine the receiving devices and all transmitting devices among all access devices based on the response data packets fed back by each access device for the received read / write protocol data packets.

[0200] It can be seen that this optional embodiment can also determine the receiving device and the transmitting device according to the interface parameters or the corresponding read and write protocol data packets and response data packets, which is beneficial to improving the determination efficiency and accuracy of the receiving device and the transmitting device.

[0201] In another optional embodiment, the monitoring module 308 is also used to send the device identifier uniquely corresponding to the receiving device to all transmitting devices in the first sending module 305, so that the transmitting device that receives the device identifier uniquely corresponding to the receiving device saves the device identifier uniquely corresponding to the receiving device, and then monitors whether a receiving response data packet fed back by a certain transmitting device is received within a predetermined monitoring period.

[0202] Furthermore, the pairing determination module 307 is further configured to determine that the transmitting device has received the device identifier uniquely corresponding to the receiving device when the monitoring module 308 receives a receiving response data packet fed back by a transmitting device within the monitoring time period.

[0203] The receiving response data packet fed back by any transmitting device at least includes a device identifier unique to the transmitting device, and the specific manner in which the second reading module 304 reads the device identifier unique to each transmitting device includes:

[0204] For each transmitting device, if a receiving response data packet fed back by the transmitting device is received within the monitoring time period, a device identification uniquely corresponding to the transmitting device is read from the receiving response data packet fed back by the transmitting device.

[0205] It can be seen that this optional embodiment can also enable the transmitting device to feedback a receiving response data packet including the device identification uniquely corresponding to the transmitting device after sending the device identification uniquely corresponding to the receiving device to the transmitting device, which is beneficial to improving the reading efficiency of the device identification uniquely corresponding to the transmitting device.

[0206] In another optional embodiment, the specific manner in which the judgment module 301 judges whether all the connected devices currently connected to the charging device meet the predetermined device pairing condition includes:

[0207] Determine whether the device types of all the devices currently connected to the charging device include a receiving type and a transmitting type, and when the determination result is yes, determine that all the devices currently connected to the charging device meet the predetermined device pairing condition; or,

[0208] Determine whether the device types of all access devices currently connected to the charging device include receiving types and transmitting types. When the judgment result is yes, determine whether the number of access devices with receiving types among all access devices is less than or equal to a preset second number threshold. When the number of access devices with receiving types among all access devices is less than or equal to the second number threshold, determine that all access devices currently connected to the charging device meet the predetermined device pairing condition.

[0209] It can be seen that this optional embodiment can also realize intelligent judgment on whether all access devices currently connected to the charging device meet the predetermined device pairing conditions according to the device type of the access device or the combination of the device type of the access device and the number of receiving devices, which is conducive to improving the judgment efficiency and judgment accuracy.

[0210] In yet another optional embodiment, Fig. 9 As shown, the device may also include:

[0211] The pairing detection module 310 is used to detect whether a device pairing instruction triggered by the user is received. When a device pairing instruction triggered by the user is detected, the trigger judgment module 301 executes the above-mentioned operation of judging whether all access devices currently connected to the charging device meet the predetermined device pairing conditions; or, detect whether there is an access device connected to the charging device. When it is detected that there is an access device connected to the charging device, the trigger judgment module 301 executes the above-mentioned operation of judging whether all access devices currently connected to the charging device meet the predetermined device pairing conditions.

[0212] Optionally, when a device pairing instruction triggered by a user is detected, the receiving response data packet fed back by any transmitting device further includes a channel identifier of a target channel corresponding to the transmitting device in the left and right channels of the receiving device.

[0213] It can be seen that this optional embodiment can also automatically trigger the pairing process when the access device is connected to the charging device, or trigger the pairing process according to the device pairing instruction triggered by the user, thereby enriching the triggering method of the pairing process.

[0214] Embodiment 4

[0215] See also Fig.10 , Fig.10 is a structural diagram of another charging device pairing implementation device disclosed in an embodiment of the present invention. Fig.10The described device may be integrated into a charging device (such as a charging box). Optionally, the charging device may be a charging box corresponding to a 2.4G wireless microphone, which is not limited in the embodiment of the present invention. Fig.10 As shown, the device may include:

[0216] A memory 401 storing executable program codes;

[0217] a processor 402 coupled to the memory 401;

[0218] The processor 402 calls the executable program code stored in the memory 402 to execute the steps in the pairing implementation method based on the charging device disclosed in the first embodiment or the second embodiment of the present invention.

[0219] Embodiment 5

[0220] An embodiment of the present invention discloses a computer storage medium, which stores computer instructions. When the computer instructions are called, they are used to execute the steps in the pairing implementation method based on the charging device disclosed in the first or second embodiment of the present invention.

[0221] Embodiment 6

[0222] The embodiment of the present invention discloses a charging device, on which a device access interface set is provided, and the device access interface set includes a first type of access interface for receiving device access and at least one second type of access interface for transmitting device access. Optionally, the charging device is used to implement the steps in the pairing implementation method based on the charging device disclosed in the first or second embodiment of the present invention, or the charging device may include any one of the pairing implementation devices based on the charging device described in the third and fourth embodiments, and further, the charging device may also be provided with a pairing button and / or an indicator light.

[0223] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.

[0224] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0225] Finally, it should be noted that the pairing implementation method and device based on the charging device disclosed in the embodiment of the present invention, and the charging device disclosed are only the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, it should be understood by those skilled in the art that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A pairing implementation method based on a charging device, characterized in that: The method comprises: Determine whether all the access devices currently connected to the charging device meet the predetermined device pairing condition; when it is determined that all the access devices currently connected to the charging device meet the device pairing condition, determine the receiving devices and all the transmitting devices in all the access devices, and the number of all the transmitting devices is greater than or equal to 1; Reading a device identifier uniquely corresponding to the receiving device, and reading a device identifier uniquely corresponding to each of the transmitting devices; After reading the device identification uniquely corresponding to the receiving device, the device identification uniquely corresponding to the receiving device is sent to all the transmitting devices, so that the transmitting device that receives the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device, and, after reading the device identification uniquely corresponding to any of the transmitting devices, the device identification uniquely corresponding to the transmitting device is sent to the receiving device, so that the receiving device saves the device identification uniquely corresponding to the transmitting device; After sending the device identification uniquely corresponding to the receiving device to all the transmitting devices for storage and sending the device identification uniquely corresponding to each transmitting device to the receiving device for storage, determining that pairing between the receiving device and all the transmitting devices is completed; Wherein, the method further comprises: After determining that all the access devices currently accessing the charging device meet the device pairing condition and before determining that the pairing between the receiving device and all the transmitting devices is completed, monitoring whether the current device access state of the charging device meets a predetermined error condition; When it is detected that the current device access state of the charging device meets the error reporting condition, the charging device is controlled to output an error reporting prompt.

2. The method for implementing pairing based on a charging device according to claim 1, characterized in that: The method further comprises: After reading the device identifier uniquely corresponding to any target access device among all the access devices, determining whether the current device access state of the charging device meets the device pairing condition; wherein the target access device is the receiving device or any of the transmitting devices; When it is determined that the current device access state of the charging device meets the device pairing condition and the target access device is the receiving device, triggering the step of sending the device identifier uniquely corresponding to the receiving device to all the transmitting devices, so that the transmitting device that receives the device identifier uniquely corresponding to the receiving device saves the device identifier uniquely corresponding to the receiving device; When it is determined that the current device access status of the charging device meets the device pairing condition and the target access device is any of the transmitting devices, the step of sending the device identifier uniquely corresponding to the transmitting device to the receiving device is triggered so that the receiving device saves the device identifier uniquely corresponding to the transmitting device.

3. The method for implementing pairing based on charging equipment according to claim 1, characterized in that: The monitoring of whether the current device access state of the charging device satisfies a predetermined error reporting condition includes: Monitoring whether the current device access state of the charging device is used to indicate that the device type of the current access device of the charging device is a unique device type, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or, monitoring whether the receiving device is disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error reporting condition; or, monitoring whether there is at least one transmitting device disconnected from the charging device, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or, monitoring whether there is at least one of the transmitting devices disconnected from the charging device, and when it is detected that there is a transmitting device disconnected from the charging device, determining whether the number of the transmitting devices disconnected from the charging device exceeds a preset first number threshold, and when it is detected that the number of the transmitting devices disconnected from the charging device exceeds the first number threshold, determining that the current device access state of the charging device meets a predetermined error condition; or, monitoring whether the reading time of any device identification exceeds a first preset time threshold, and when the monitoring result is yes, determining that the current device access state of the charging device meets a predetermined error condition; or, Monitor whether the feedback time of any device identification exceeds a second preset time threshold, and when the monitoring result is yes, determine that the current device access state of the charging device meets the predetermined error condition.

4. The method for implementing pairing based on charging equipment according to claim 3, characterized in that: The determining of the receiving devices and all the transmitting devices in all the access devices includes: Determine the receiving devices and all the transmitting devices in all the access devices according to the interface parameters of each access device accessing the charging device, wherein the interface parameters include at least one of an interface identifier, a location identifier, and an interface type of the corresponding interface; or Send read / write protocol data packets to each access device respectively through the access interface between each access device and the charging device, receive response data packets fed back by each access device for the received read / write protocol data packets, and determine the receiving devices and all transmitting devices in all the access devices according to the response data packets fed back by each access device for the received read / write protocol data packets.

5. The method for implementing pairing based on charging equipment according to claim 4, characterized in that: After sending the device identification uniquely corresponding to the receiving device to all the transmitting devices so that the transmitting device receiving the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device, the method further includes: Monitoring whether a reception response data packet fed back by a certain transmitting device is received within a predetermined monitoring time period, and when a reception response data packet fed back by a certain transmitting device is received within the monitoring time period, determining that the transmitting device has received a device identifier uniquely corresponding to the receiving device; The receiving response data packet fed back by any of the transmitting devices at least includes a device identifier uniquely corresponding to the transmitting device, and the reading of the device identifier uniquely corresponding to each of the transmitting devices includes: For each of the transmitting devices, if a receiving response data packet fed back by the transmitting device is received within the monitoring time period, a device identification uniquely corresponding to the transmitting device is read from the receiving response data packet fed back by the transmitting device.

6. The method for implementing pairing based on charging equipment according to claim 5, characterized in that: The determining whether all devices currently connected to the charging device meet a predetermined device pairing condition includes: Determine whether the device types of all the devices currently connected to the charging device include a receiving type and a transmitting type, and when the determination result is yes, determine that all the devices currently connected to the charging device meet a predetermined device pairing condition; or, Determine whether the device types of all the access devices currently connected to the charging device include a receiving type and a transmitting type. When the judgment result is yes, determine whether the number of access devices with the device type of the receiving type among all the access devices is less than or equal to a preset second number threshold. When the number of access devices with the device type of the receiving type among all the access devices is less than or equal to the second number threshold, determine that all the access devices currently connected to the charging device meet the predetermined device pairing condition.

7. The method for implementing pairing based on charging equipment according to claim 5, characterized in that: Before determining whether all devices currently connected to the charging device meet a predetermined device pairing condition, the method further includes: Detecting whether a device pairing instruction triggered by a user is received, and when the device pairing instruction triggered by the user is detected, triggering the step of determining whether all devices currently connected to the charging device meet a predetermined device pairing condition; or, Detecting whether there is an access device connected to the charging device, and when it is detected that there is an access device connected to the charging device, triggering the step of determining whether all access devices currently connected to the charging device meet a predetermined device pairing condition; When the device pairing instruction triggered by the user is detected, the receiving response data packet fed back by any of the transmitting devices also includes the channel identifier of the target channel corresponding to the transmitting device in the left and right channels of the receiving device.

8. A pairing implementation device based on a charging device, characterized in that: The device comprises: A judgment module, used to judge whether all the connected devices currently connected to the charging device meet the predetermined device pairing conditions; A device determination module, when the determination module determines that all the connected devices currently connected to the charging device meet the device pairing condition, determines the receiving devices and all the transmitting devices in all the connected devices, and the number of all the transmitting devices is greater than or equal to 1; A first reading module, used to read a device identifier uniquely corresponding to the receiving device; A second reading module is used to read a device identification uniquely corresponding to each of the transmitting devices; A first sending module, configured to send the device identification uniquely corresponding to the receiving device to all the transmitting devices after the first reading module reads the device identification uniquely corresponding to the receiving device, so that the transmitting device that receives the device identification uniquely corresponding to the receiving device saves the device identification uniquely corresponding to the receiving device; A second sending module is used to send the device identification uniquely corresponding to any of the transmitting devices to the receiving device after the second reading module reads the device identification uniquely corresponding to the transmitting device, so that the receiving device saves the device identification uniquely corresponding to the transmitting device; a pairing determination module, configured to determine that pairing between the receiving device and all the transmitting devices is completed after the first sending module sends the device identifier uniquely corresponding to the receiving device to all the transmitting devices for storage and the second sending module sends the device identifier uniquely corresponding to each transmitting device to the receiving device for storage; A monitoring module, configured to monitor whether a current device access state of the charging device satisfies a predetermined error reporting condition after the judging module determines that all devices currently connected to the charging device meet the device pairing condition and before the pairing determination module determines that pairing between the receiving device and all the transmitting devices is completed; The error reporting module is used to control the charging device to output an error reporting prompt when the monitoring module detects that the current device access status of the charging device meets the error reporting condition.

9. A charging device, characterized in that: The charging device has a set of device access interfaces, which includes a first type of access interface for access by a receiving device and at least one second type of access interface for access by a transmitting device, and the charging device is used to implement the steps in the pairing implementation method based on the charging device as described in any one of claims 1-7.

10. A pairing implementation device based on a charging device, characterized in that: The device comprises: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the pairing implementation method based on the charging device as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Wireless audio equipment pairing method and wireless audio equipment

    CN108174459A

  • Wireless earphone pairing method and device, terminal and charging box

    CN109600694A