Microphone pairing method and system
Writing the derived ID of the microphone through wired communication and dual-zone hot standby mechanisms solves the problem of frequency risk and low automation of microphone wireless pairing, and realizes an efficient and reliable microphone pairing process, reducing production costs and improving product quality.
Patent Information
- Application Number
- CN202510655456.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-21
- Publication Date
- 2025-08-01
AI Technical Summary
In the prior art, the wireless communication protocol pairing of microphones has problems such as high frequency risk, low degree of automation, no backup mechanism and high cost.
The wired communication protocol is used to read the microphone's hardware ID to generate the derived ID, and write to the non-volatile memory area of the paired receiver through physical tag scanning and dual-zone hot standby mechanism. Combined with the CRC32 algorithm and version number verification, we ensure the accuracy and reliability of data writing.
It realizes a high degree of automation of the microphone pairing process, reduces human operation errors, improves production efficiency and product reliability, reduces production costs, and ensures data integrity and security.
Smart Images

Figure CN120417115A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wired communication technology, and in particular to a microphone pairing method and system. Background Art
[0002] In existing factory production, pairing of USB microphones mainly relies on the automatic pairing mechanism of wireless communication protocols (such as UHF or UHF+BLE). The typical solution is as follows:
[0003] 1. UHF device pairing: After the receiver is powered on, it scans the frequency. The microphone enters pairing mode using the combination key and sends a broadcast. The receiver parses the ID in the broadcast and records it. Later, it directly connects to the microphone through the ID.
[0004] 2. UHF+BLE device pairing: The receiver scans the BLE broadcast, the microphone sends the pairing broadcast, and the receiver parses the ID and sends the working frequency via BLE to complete the pairing.
[0005] Problems with existing technologies:
[0006] High risk of cross-frequency pairing: Traditional pairing receivers and microphones use wireless pairing. When multiple production lines are operating in parallel, cross-interference of wireless signals can easily lead to device mispairing.
[0007] Low degree of automation: In existing solutions, physical label information mostly relies on manual scanning or entry, which is prone to errors or mis-attachment. The lack of wired writing capabilities makes it difficult to adapt to the management requirements of automated production lines.
[0008] No backup mechanism: Single-area write mode is often used during write operations. If an abnormality occurs during the write process (such as power failure, system interruption, etc.), data loss or damage may occur.
[0009] High cost: Reliance on shielding boxes, power adjustment, or time and space isolation measures increases equipment and labor costs.
[0010] Currently, no effective solution has been proposed to the problems existing in the prior art. Summary of the Invention
[0011] The embodiments of the present invention provide a microphone pairing method and system to solve the problems in the prior art of microphone pairing that rely on wireless communication protocols, such as high frequency crosstalk risk, low degree of automation, lack of backup mechanism, and high cost.
[0012] To achieve the above object, on the one hand, the present invention provides a microphone pairing method, which includes: S1. The host computer reads the hardware ID of the current microphone through wired communication, generates a derived ID, and generates a physical tag corresponding to the derived ID; S2. The host computer uses a scanning device to read the derived ID in the physical tag; S3. The host computer directly writes the read derived ID into the non-volatile storage area of the pairing receiver by using a dual-region hot standby mechanism through a wired communication protocol. A wired connection is pre-established between the host computer and the pairing receiver; S4. When the pairing receiver is powered on subsequently, it directly compares the derived ID written in the non-volatile storage area with the derived ID broadcast by the current microphone to be paired. If the match is successful, a communication connection with the current microphone to be paired is established.
[0013] Optionally, before the S3, it further includes: the pairing receiver and the host computer respectively calculate the first hash value of the same data, and the pairing receiver compares the two first hash values; if they are consistent, the pairing receiver and the host computer shake hands successfully and allow the interaction of wired communication protocol instructions, otherwise, the communication protocol instructions are not allowed to interact.
[0014] Optionally, after the S3, it further includes: the host computer reads the derived ID in the pairing receiver, compares the derived ID read in the pairing receiver and the derived ID read in the physical tag. If the comparison result is that the two are consistent, the non-volatile storage area of the pairing receiver is locked; if they are inconsistent, the derived ID read in the physical tag is rewritten into the non-volatile storage area of the pairing receiver.
[0015] Optionally, the reading the hardware ID of the current microphone through wired communication and generating a derived ID includes: reading the hardware ID of the current microphone chip through wired communication; calculating the second hash value by using the hardware ID and a preset salt value through a hash algorithm; splicing the production line number, production timestamp of the current microphone and the second hash value to obtain the derived ID.
[0016] Optionally, the S3 includes: the host computer writes the read derived ID into the backup area of the non-volatile storage area of the pairing receiver through a wired communication protocol, and updates the version number of the backup area; after the writing into the backup area is successful, then write the read derived ID into the main storage area of the non-volatile storage area of the pairing receiver, and update the version number of the main storage area.
[0017] Optionally, comparing the derived ID read in the pairing receiver and the derived ID read in the physical tag includes: checking whether the derived ID read in the pairing receiver and the derived ID read in the physical tag are consistent through the CRC32 algorithm and the version number.
[0018] Optionally, the wired communication is serial communication, or USB communication, or BLE communication; the pairing receiver is connected to the host computer through a USB interface.
[0019] Optionally, each production line is independently configured with a host computer and a scanning device.
[0020] On the other hand, the present invention provides a microphone pairing system, which includes: a reading and generating unit, configured to read the hardware ID of the current microphone by the host computer through wired communication and generate a derived ID, and generate a physical tag corresponding to the derived ID; a scanning unit, configured to read the derived ID in the physical tag by the host computer using a scanning device; a writing unit, configured to write the read derived ID into the non-volatile storage area of the pairing receiver directly by using a dual-area hot standby mechanism through a wired communication protocol, and a wired connection is established in advance between the host computer and the pairing receiver; a comparison unit, configured to, when the pairing receiver is powered on subsequently, directly compare the derived ID written in the non-volatile storage area with the derived ID broadcast by the current microphone to be paired, and if the match is successful, establish a communication connection with the current microphone to be paired.
[0021] Optionally, it further includes: a verification and locking unit, configured to: the host computer reads the derived ID in the pairing receiver, compares the derived ID read in the pairing receiver and the derived ID read in the physical tag, and if the comparison result is that the two are consistent, lock the non-volatile storage area of the pairing receiver; if they are inconsistent, rewrite the derived ID in the physical tag read into the non-volatile storage area of the pairing receiver.
[0022] Advantages of the present invention:
[0023] The present invention discloses a microphone pairing method and system. Among them, the method directly writes the derived ID of the microphone into the pairing receiver through a wired communication protocol, completely replacing the traditional wireless pairing method between the pairing receiver and the microphone, eliminating wireless pairing errors; through operations such as automatically scanning physical tags and writing derived IDs, the entire pairing process realizes a high degree of automation, not only improving production efficiency, but also reducing human operation errors and delays occurring in the production process. During the pairing process, a dual-area hot standby mechanism is adopted for data writing, ensuring the high reliability of the derived ID writing. Description of the Drawings
[0024] Figure 1 is a flowchart of a microphone pairing method provided by an embodiment of the present invention;
[0025] Figure 2 is a schematic structural diagram of a microphone pairing system provided by an embodiment of the present invention. Detailed Embodiments
[0026] To make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Apparently, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0027] Figure 1 is a flowchart of a microphone pairing method provided by an embodiment of the present invention. As Figure 1 shown, the method includes:
[0028] S1. The host computer reads the hardware ID of the current microphone through wired communication and generates a derived ID, and generates a physical label corresponding to the derived ID.
[0029] The current microphone is any microphone produced, referring to a microphone to be shipped that is currently executing the pairing preparation process.
[0030] In an alternative embodiment, the wired communication is serial communication, or USB communication, or BLE communication;
[0031] Serial communication: Common serial interfaces include RS-232, RS-485 or TTL-level serial ports; the chips integrated inside the current microphone can output data through these serial ports. Serial communication adopts an asynchronous transmission mode, and ensures the accurate transmission of data through preset baud rate, data bits, stop bits and parity bits. During the production process, the hardware ID of the current microphone chip is read through the serial port.
[0032] USB communication: USB is a high-speed, plug-and-play communication method. USB not only supports high-speed transmission, but also has the advantages of good compatibility and standardized interfaces, facilitating data acquisition and device management in an automated production line, and providing a stable data source for subsequent barcode generation.
[0033] BLE communication: The microphone is built with a BLE module, and transmits the hardware ID data through broadcasting or connection methods; BLE communication has the characteristics of low power consumption, low transmission delay and good stability. However, in a dense wireless environment, it may be interfered by signals of other devices. Therefore, in practical applications, it is necessary to reasonably configure the signal frequency band and power.
[0034] In an alternative embodiment, the generation of the derived ID includes:
[0035] S11. Read the hardware ID of the current microphone chip through wired communication;
[0036] The hardware ID of the current microphone refers to a unique identification information stored in the chip inside the current microphone.
[0037] S12. Calculate a second hash value by using the hardware ID and a preset salt value through a hashing algorithm;
[0038] Second hash value = SHA-256(chip hardware ID + SALT); where SALT is the preset salt value.
[0039] S13. Concatenate the production line number, production timestamp of the current microphone, and the second hash value to obtain the derived ID.
[0040] Derived ID = production line number of the current microphone + production timestamp + second hash value.
[0041] The production line number of the current microphone refers to the production line number where the microphone currently undergoing production or pairing preparation operations is located. Each production line has a unique identifier (such as numbers 01, 02, 03, etc.) in the production management system, which is used to mark on which specific production line the microphone is processed, tested, or prepared for pairing. If a microphone is produced by production line No. 3, the production line number is "03".
[0042] The production timestamp refers to the precise time node when the hardware ID of the current microphone chip is read.
[0043] This derived ID is fixed before the current microphone leaves the factory and is used to uniquely identify the device throughout the production and pairing processes. The derived ID ensures that each microphone can be accurately traced during production and subsequent use, and device mispairing caused by data confusion can be avoided.
[0044] In an alternative embodiment, the physical label is a barcode or a QR code. After generating the physical label, paste the physical label on the outer surface of the current microphone.
[0045] After obtaining the derived ID of the current microphone, use a preset encoding algorithm (such as barcode standards like Code128, Code39, etc., or QR code standards) to convert the derived ID into a set of data in a specific format. The encoded data generates barcode or QR code images through a dedicated software algorithm. These images contain complete ID information and adopt a standard geometric structure and redundancy design to ensure fault tolerance and fast reading during scanning. The generated barcode or QR code images are sent to a barcode printer, and high-resolution printing technology is used to print the images on special label paper or thermal paper. After printing, the system automatically detects the label to confirm that the image is clear, without blurring or broken codes, ensuring that subsequent scanning devices can accurately read it.
[0046] This process relies on a standardized communication interface (serial port / USB / BLE) for data transmission and uses mature barcode / QR code generation technology to produce physical tags. The entire process makes full use of automated equipment to achieve efficient and low-error data collection and information binding, greatly improving the automation level of the production line and the reliability of product traceability.
[0047] S2. The host computer uses a scanning device to read the derived ID in the physical tag.
[0048] In an optional implementation, the pairing receiver is connected to the host computer through a USB interface.
[0049] The host computer, through linkage with a scanning device (such as a barcode scanner or QR code scanner), reads the physical tag (barcode or QR code) pasted on the current microphone housing, thereby obtaining the derived ID corresponding to the current microphone.
[0050] The scanning device can establish a connection with the host computer through a wire (such as a USB interface). During the initialization process, the host computer loads the driver corresponding to the connected scanning device to ensure error-free communication with the scanning device.
[0051] The specific scanning process is as follows:
[0052] An operator or an automated robotic arm aligns the scanning device with the physical tag pasted on the microphone. The scanning device is equipped with an optical sensor and an image processing chip, which irradiate the tag with laser or LED lighting to capture the image of the barcode or QR code.
[0053] The captured image is analyzed through the image processing algorithm inside the scanning device. The software built into the scanning device automatically identifies the geometric structure of the barcode or QR code, decodes the image, and extracts the digital or character sequence contained in the tag.
[0054] After the analysis is completed, the scanning device transmits the extracted derived ID to the host computer through a preset communication protocol. During this process, the host computer receives and caches the data transmitted by the scanning device and can display the scanning results in real time to ensure that there is no loss or error in the data transmission process.
[0055] The host computer uses the scanning device to read the derived ID in the physical tag, achieving an efficient conversion from the physical tag to digital data. This process not only ensures the accuracy and stability of data reading but also provides reliable data support for subsequent writing, verification, and locking steps, thereby ensuring a one-to-one binding relationship between each current microphone and the pairing receiver.
[0056] S3. The host computer directly writes the read derived ID into the non-volatile storage area of the paired receiver by using a dual-region hot standby mechanism through a wired communication protocol. A wired connection is pre-established between the host computer and the paired receiver.
[0057] The paired receiver is any receiver produced, referring to the receiver bound to the current microphone. Writing the derived ID of the current microphone into the paired receiver actually completes the binding of the two, and subsequent pairing operations, etc. are then realized based on this binding.
[0058] Specifically, after the host computer obtains the derived ID of the current microphone, it immediately constructs a write command data packet and sends it to the paired receiver through a wired interface. After receiving the write command, the paired receiver will parse the data packet and verify the data correctness through the CRC32 algorithm. If the data is complete and the format is correct, the paired receiver will enter the write state and write the read derived ID into the pre-allocated non-volatile storage area by using a dual-region hot standby mechanism.
[0059] The host computer uses the wired communication protocol to accurately and reliably write the derived ID of the current microphone into the non-volatile storage area of the paired receiver. This one-to-one writing method greatly reduces the risk of information confusion during the multi-microphone pairing process and improves the accuracy of overall production automation and equipment traceability.
[0060] S4. When the paired receiver is powered on subsequently, it directly compares the derived ID written in the non-volatile storage area with the derived ID broadcast by the current microphone to be paired. If the match is successful, a communication connection with the current microphone to be paired is established.
[0061] The current microphone to be paired is any microphone that needs to be paired currently, referring to the target microphone that broadcasts its ID to establish communication during actual product use. When the paired receiver is powered on subsequently, it is necessary to determine whether the derived ID broadcast by the current microphone to be paired is consistent with the ID in the paired receiver, which is the real pairing process during use.
[0062] Specifically, when the paired receiver is powered on, its internal firmware starts first, performs self-checks, initializes hardware modules (including wireless receiving modules, storage modules, etc.), and reads the previously written derived ID of the current microphone stored in the non-volatile storage area.
[0063] After initialization is complete, the pairing receiver automatically enters the pairing state and is ready to listen for broadcast signals from the currently to-be-paired microphone. The pairing receiver activates its wireless receiving module (such as supporting UHF, BLE, or other short-range wireless protocols) and continuously listens for broadcast signals emitted by the currently to-be-paired microphone within a predetermined frequency band. When the currently to-be-paired microphone starts broadcasting, the pairing receiver captures the broadcast signal and uses the built-in signal processing algorithm to parse the broadcast signal into digital information, and extracts the derived ID information contained in the currently to-be-paired microphone from it.
[0064] The pairing receiver compares the derived ID extracted from the broadcast signal with the derived ID stored in the non-volatile storage area. If the derived ID extracted from the broadcast matches the stored derived ID, it indicates that the currently broadcast device is exactly the expected target microphone, that is, the current microphone in step S1; if the two do not match, the pairing receiver continues to remain in the listening state, waiting for the next valid broadcast or triggering error handling (such as timeout retry, alarm prompt, etc.).
[0065] After the derived ID comparison is successful, the pairing receiver immediately sends a confirmation signal to the currently to-be-paired microphone, or directly enters the connection establishment process. Both sides complete the handshake process using a pre-defined wireless communication protocol and establish a stable wireless data transmission link. Once the connection is successful, the pairing receiver switches from the pairing mode to the working mode. At this time, the system internally records the current device state and allows subsequent data transmission (such as audio signals, control data, etc.) to proceed normally.
[0066] The pairing receiver uses the pre-written derived ID as the identification reference, automatically captures and parses the broadcast signal of the currently to-be-paired microphone after power-on, implements the comparison operation, and quickly establishes a communication connection after successful matching. The entire process ensures the efficiency, accuracy, and security of the device pairing process through hardware self-check, software comparison, feedback confirmation, and security control and other links.
[0067] The present invention effectively replaces the traditional wireless automatic pairing technology through a series of steps such as physical label generation, barcode recognition, wired writing, and comparison pairing of the derived ID of the current microphone. This method not only reduces the production complexity but also avoids the risks of wireless signal interference and frequency hopping, greatly improving the production efficiency and product reliability. The production line adopting this method has increased the production efficiency by more than 50% compared with the traditional method, the product pairing success rate is stable above 99.9%, and the overall production cost has decreased significantly, meeting the current requirements of industrial production for automation, intelligence, and high reliability.
[0068] In an optional implementation manner, before the S3, it further includes:
[0069] The paired receiver and the host computer respectively calculate the first hash value of the same data, and the paired receiver compares the two first hash values; if they are consistent, the paired receiver and the host computer successfully shake hands and allow the interaction of wired communication protocol instructions, otherwise, the interaction of communication protocol instructions is not allowed.
[0070] To prevent data from being abnormally written, a handshake verification operation will be performed before the host computer communicates with the paired receiver. Only when the handshake is successful can the paired receiver perform subsequent writing operations.
[0071] The specific process is as follows:
[0072] (1) The host computer sends a random number (such as 8 bits) of a preset number of digits to the paired receiver;
[0073] (2) The paired receiver sends a key value of a preset number of digits (such as 8 bits) to the host computer;
[0074] (3) The host computer calculates the first hash value through the hash algorithm with the random number, the key value, and the preset salt value (the preset salt value is stipulated in advance by both parties), that is, the first hash value = sha256(random + key + salt), where random is the random number, key is the key value, and salt is the preset salt value; the paired receiver calculates the first hash value through the hash algorithm with the random number, the key value, and the preset salt value, that is, the first hash value = sha256(random + key + salt);
[0075] (4) The host computer sends the calculated first hash value to the paired receiver, and the paired receiver compares the two first hash values. If they are consistent, the paired receiver and the host computer successfully shake hands and allow the interaction of communication protocol instructions, otherwise, the interaction of communication protocol instructions is not allowed.
[0076] By adding the steps of calculating and comparing the hash value before writing the derived ID, the present invention enhances the security, reliability, and data consistency in the pairing process, and ensures the effective communication between the paired receiver and the host computer.
[0077] In an optional embodiment, after the S3, it further includes:
[0078] Verify the writing accuracy of the derived ID. After the derived ID read from the paired receiver is consistent with the derived ID in the read physical tag, lock the non-volatile storage area of the paired receiver; if they are inconsistent, rewrite the derived ID in the read physical tag into the non-volatile storage area of the paired receiver.
[0079] To further ensure the accuracy of data writing, after receiving the write confirmation, the host computer will immediately send a "READ_ID" command to the paired receiver, requesting to read the derived ID written to the non-volatile storage area of the paired receiver.
[0080] After the host computer receives the derived ID returned by the paired receiver, it compares it with the derived ID originally read from the physical tag. If the data is consistent, it confirms that the write is successful; if the data does not match, it triggers an error handling mechanism, such as resending the write command, that is, rewriting the derived ID in the read physical tag to the non-volatile storage area of the paired receiver.
[0081] Further, after the write is successful, the current microphone and the paired receiver are set to display special lighting effects to indicate that the operation is completed.
[0082] After confirming the successful write and verification, the host computer will send a "LOCK_ID" command to the paired receiver, instructing the paired receiver to set the non-volatile storage area storing the derived ID to a read-only state. This step prevents the data in this area from being accidentally modified or maliciously tampered with during subsequent operations. After the paired receiver executes the locking operation, it also returns a confirmation message of successful locking. After the host computer receives this information, the entire write and locking process is completed.
[0083] Through this series of verification and rewriting mechanisms, the system not only ensures the accuracy of the derived ID written in the paired receiver, but also effectively prevents subsequent misoperations or data tampering by locking the non-volatile storage area, further improving the stability and reliability of the entire device pairing process.
[0084] In an optional implementation, the S3 includes:
[0085] The host computer writes the read derived ID to the backup area of the non-volatile storage area of the paired receiver through a wired communication protocol, and updates the version number of the backup area;
[0086] After the write to the backup area is successful, the read derived ID is written to the main storage area of the non-volatile storage area of the paired receiver, and the version number of the main storage area is updated.
[0087] The non-volatile storage area adopts a dual-area hot standby mechanism layout, and is synchronously updated in the order of "backup first, main later" during writing; in this way, if a power failure occurs during writing to the main storage area, the backup area still retains the latest data to avoid data loss.
[0088] In an optional implementation, the verification of the accuracy of the derived ID writing includes:
[0089] Verify whether the derived ID read and written to the paired receiver is consistent with the derived ID in the read physical tag through the CRC32 algorithm and version number.
[0090] Specifically, the host computer generates a value from the derived ID in the paired receiver read by using the CRC32 algorithm, and generates a value from the derived ID in the physical tag read by the host computer by using the CRC32 algorithm. Then, the two values are compared to determine whether they are consistent.
[0091] Meanwhile, the host computer compares the version number in the main storage area or backup area of the paired receiver read with the version number written to the main storage area or backup area of the paired receiver to determine whether they are consistent.
[0092] Furthermore, when reading, the valid partition with a higher version number is preferentially selected.
[0093] Combining the version number with the CRC32 check ensures double reliability of data writing, that is, only when both the CRC32 value and the version number are consistent, is the writing considered successful and the locking operation is executed; otherwise, it is regarded as a writing failure and rewritten.
[0094] By first writing the derived ID to the backup area and updating the version number, and then writing it to the main storage area and updating the version number, the present invention ensures the reliability and integrity of data writing. The dual - zone hot - standby mechanism avoids the risk of data loss during power failure or interrupted writing process. At the same time, the version number update and verification mechanism ensures the effectiveness of each writing. In this way, the paired receiver has a high fault - tolerance ability and security during the data writing process.
[0095] In an optional embodiment, each production line is independently configured with a host computer and a scanning device.
[0096] In an environment where multiple production lines are operating in parallel, in order to prevent cross - line device data confusion, improve production efficiency and management flexibility, each production line is independently configured with a host computer and a scanning device. The scanning device on each production line independently completes the reading of the physical tag, transmits the derived ID data of the current microphone to the host computer of this production line, and then the host computer initiates the writing, verification and locking operations. Since the devices on each production line are independent of each other, if a problem such as rewrite or inconsistent verification occurs during the pairing process of one production line, this problem will not affect other production lines, which is convenient for quickly locating the fault, and through the internal retry mechanism or alarm prompt of the production line, full - time personnel can perform on - site maintenance.
[0097] Furthermore, one production line can continuously produce thousands of microphones, and each microphone sequentially completes steps such as ID reading, physical tag pasting, and paired receiver binding through an assembly line. The factory can deploy multiple production lines to run simultaneously, and each production line independently processes the pairing of its own microphones and receivers without affecting each other.
[0098] Each production line is independently configured with a host computer and a scanning device, which not only realizes the complete isolation of the data acquisition and device pairing processes, ensures the efficient parallel operation between production lines, but also provides a stable, flexible and easy-to-maintain management platform for the overall production system. With this design, the factory can ensure the accuracy and traceability of device data when multiple production lines are running simultaneously, significantly improving production efficiency and product quality.
[0099] Figure 2 It is a schematic structural diagram of a microphone pairing system provided by an embodiment of the present invention.
[0100] As Figure 2 shown, the system includes:
[0101] A reading and generating unit 201, configured to enable the host computer to read the hardware ID of the current microphone through wired communication and generate a derived ID, and generate a physical tag corresponding to the derived ID;
[0102] A scanning unit 202, configured to enable the host computer to read the derived ID in the physical tag by using a scanning device;
[0103] A writing unit 203, configured to enable the host computer to directly write the read derived ID into the non-volatile storage area of the pairing receiver by using a dual-region hot standby mechanism through a wired communication protocol, and a wired connection is pre-established between the host computer and the pairing receiver;
[0104] A comparison unit 204, configured to enable the pairing receiver to directly compare the derived ID written in the non-volatile storage area with the derived ID broadcast by the current microphone to be paired when the pairing receiver is powered on subsequently. If the match is successful, a communication connection with the current microphone to be paired is established.
[0105] In an optional embodiment, the system includes: a verification and locking unit, configured to:
[0106] Read the derived ID in the pairing receiver, compare the derived ID read in the pairing receiver and the derived ID read in the physical tag. If the comparison result is that the two are consistent, lock the non-volatile storage area of the pairing receiver; if they are inconsistent, rewrite the derived ID in the read physical tag into the non-volatile storage area of the pairing receiver.
[0107] The system of the present invention corresponds to the above-mentioned method, and the specific implementation manners of the system will not be repeated here.
[0108] Advantages of the present invention:
[0109] The present invention discloses a microphone pairing method and system. Among them, the method directly writes the derived ID of the microphone into the pairing receiver through a wired communication protocol, completely replacing the traditional wireless pairing method between the pairing receiver and the microphone, eliminating wireless pairing errors; through operations such as automatic scanning of physical tags, writing and verification of derived IDs, the entire pairing process achieves a high degree of automation, not only improving production efficiency but also reducing human operation errors and delays occurring during the production process. During the pairing process, a dual-region hot standby mechanism is adopted for data writing and verification, ensuring high reliability of the writing and storage of the derived ID; through CRC32 verification and version number verification, the integrity of the data during storage is ensured; and after the writing verification is completed, the non-volatile storage area is locked to prevent data tampering, ensuring the stability and security of the device at the time of leaving the factory. By generating a derived ID with a production line number and a timestamp and attaching it to the device shell, the risk of hardware ID exposure is solved; by adding handshake verification before writing the derived ID, effective communication between the pairing receiver and the host computer is ensured.
[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A microphone pairing method, characterized in that, Including: S1. The host computer reads the hardware ID of the current microphone through wired communication, generates a derived ID, and generates a physical tag corresponding to the derived ID; S2. The host computer uses a scanning device to read the derived ID in the physical tag; S3. The host computer directly writes the read derived ID into the non-volatile storage area of the pairing receiver by means of a dual-region hot standby mechanism through a wired communication protocol. A wired connection is pre-established between the host computer and the pairing receiver; S4. When the pairing receiver is powered on subsequently, it directly compares the derived ID written in the non-volatile storage area with the derived ID broadcast by the current microphone to be paired. If the match is successful, a communication connection with the current microphone to be paired is established.
2. The method according to claim 1, wherein Before the S3, it further includes: The pairing receiver and the host computer respectively calculate the first hash value of the same data, and the pairing receiver compares the two first hash values; if they are consistent, the pairing receiver and the host computer shake hands successfully, allowing the interaction of wired communication protocol instructions, otherwise, the interaction of communication protocol instructions is not allowed.
3. The method according to claim 2, wherein After the S3, it further includes: The host computer reads the derived ID in the pairing receiver, compares the derived ID read in the pairing receiver and the derived ID read in the physical tag. If the comparison result is that the two are consistent, the non-volatile storage area of the pairing receiver is locked; if they are inconsistent, the derived ID read in the physical tag is rewritten into the non-volatile storage area of the pairing receiver.
4. The method according to claim 3, wherein The reading the hardware ID of the current microphone through wired communication and generating a derived ID includes: Reading the hardware ID of the current microphone chip through wired communication; Calculating the second hash value by using the hardware ID and a preset salt value through a hash algorithm; Concatenating the production line number, production timestamp of the current microphone and the second hash value to obtain the derived ID.
5. The method according to claim 4, wherein The S3 includes: The host computer writes the read derived ID into the backup area of the non-volatile storage area of the pairing receiver through a wired communication protocol, and updates the version number of the backup area; After the writing into the backup area is successful, the read derived ID is written into the main storage area of the non-volatile storage area of the pairing receiver, and the version number of the main storage area is updated.
6. The method according to claim 5, characterized in that, Comparing the derived ID read in the pairing receiver and the derived ID read in the physical tag includes: Checking whether the derived ID read in the pairing receiver is consistent with the derived ID read in the physical tag through the CRC32 algorithm and version number.
7. The method according to claim 6, wherein: The wired communication is serial communication, or USB communication, or BLE communication; The pairing receiver is connected to the host computer through a USB interface.
8. The method according to claim 7, wherein: Each production line is independently configured with a host computer and a scanning device.
9. A microphone pairing system, characterized in that, Including: A reading and generating unit, configured to read the hardware ID of the current microphone by the host computer through wired communication, generate a derived ID, and generate a physical tag corresponding to the derived ID; A scanning unit, configured to read the derived ID in the physical tag by the host computer by using a scanning device; A writing unit, configured to enable a host computer to directly write the read derived ID into the non-volatile storage area of a paired receiver by using a dual-region hot standby mechanism through a wired communication protocol. A wired connection is pre-established between the host computer and the paired receiver. A comparison unit, configured to enable the paired receiver to directly compare the derived ID written in the non-volatile storage area with the derived ID broadcast by a currently to-be-paired microphone when the paired receiver is powered on subsequently. If the match is successful, a communication connection with the currently to-be-paired microphone is established.
10. The system according to claim 9, characterized in that, It further includes: A verification and locking unit, configured to: The host computer reads the derived ID in the paired receiver, compares the derived ID read in the paired receiver with the derived ID read in the physical tag. If the comparison result is that the two are consistent, the non-volatile storage area of the paired receiver is locked; if they are inconsistent, the derived ID read in the physical tag is rewritten into the non-volatile storage area of the paired receiver.