Multi-protocol wireless product detection system, method, equipment and medium

By introducing multi-protocol-supported detection modules and Dongle modules in the wireless product detection system, and using preset application layer protocols for detection, the problems of low detection efficiency and low compatibility in the prior art are solved, and efficient detection of a variety of wireless products are achieved.

CN120166415APending Publication Date: 2025-06-17ZHEJIANG REXENSE IOT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510197686.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

Due to the low compatibility of existing wireless product detection solutions, they have low detection efficiency and are difficult to effectively detect wireless products of multiple different protocols.

Method used

A multi-protocol wireless product detection system is provided. It communicates with the Dongle module through the upper computer detection module, and uses the preset application layer protocol to start the detection process. The Dongle module transmits data to the wireless product to be detected and transmits the data back to the upper computer detection module. The specific detection process can be configured.

Benefits of technology

It realizes unified detection and processing of various types of wireless products, improves detection compatibility and flexibility, and solves the problem of low detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120166415A_ABST
    Figure CN120166415A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-protocol wireless product detection system, method, device and medium, and the system is used for communicating with a Dongle module through a preset application layer protocol through an upper computer detection module, and starting a detection process based on the preset application layer protocol. The Dongle module is used for transmitting data of the upper computer detection module to the wireless product to be detected in a transparent mode and transmitting data returned by the wireless product to be detected back to the upper computer detection module, and the Dongle module does not execute service logic processing. And the to-be-detected wireless product is used for performing response operation according to the received data of the Dongle module. Finished product detection is carried out on various types of wireless finished products in the same processing mode, the specific detection process can be configured, and the problem of low detection efficiency in related technologies is solved. And the detection compatibility and flexibility of the multi-protocol wireless product are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of wireless device detection, and particularly to a multi-protocol wireless product detection system, method, device, and medium. Background Art

[0002] With the rapid development of the Internet of Things (IoT) technology, smart home products have become increasingly popular, providing consumers with a convenient and intelligent living experience. To ensure the quality and reliability of these wireless products at the time of factory shipment, manufacturers need to conduct strict tests on the wireless products to be detected. However, due to the existence of multiple different wireless communication protocols in the market, such as ZigBee, Bluetooth, WiFi, etc., this poses a significant challenge to the detection of the wireless products to be detected.

[0003] The traditional detection scheme for the wireless products to be detected relies on the serial communication between a Dongle specific to a protocol and a host computer, as well as the wireless communication between the Dongle and the wireless products to be detected. This detection method has the problem of low compatibility. Summary of the Invention

[0004] Embodiments of this application provide a multi-protocol wireless product detection system, method, device, and medium to at least solve the problem of low detection efficiency in related technologies.

[0005] In a first aspect, embodiments of this application provide a multi-protocol wireless product detection system, including: a host computer detection module, a Dongle module, and a wireless product to be detected; wherein,

[0006] The host computer detection module is used to communicate with the Dongle module through a preset application layer protocol and start a detection process based on the preset application layer protocol;

[0007] The Dongle module is used to transparently transmit the data of the host computer detection module to the wireless product to be detected and transmit the data returned by the wireless product to be detected back to the host computer detection module, where the Dongle module does not perform business logic processing;

[0008] The wireless product to be detected is used to perform response operations according to the data received from the Dongle module.

[0009] In an embodiment, when starting the detection process based on the preset application layer protocol, the host computer detection module is used to:

[0010] Receive a notification command for the wireless product to be detected to enter the detection mode;

[0011] Send instructions to the wireless product to be detected in sequence according to a predefined operation command sequence;

[0012] Analyze the status report returned by the wireless product to be detected, where the status report includes performance indicators such as RSSI signal strength and switch status;

[0013] Evaluate the status report according to preset conditions, and generate a detection result based on the evaluation result.

[0014] In one embodiment, the structure of the preset application layer protocol includes:

[0015] Frame header, version number, frame payload length, frame payload, check code, and frame tail; among them, the frame payload includes an address, a command identifier, and a command payload.

[0016] In one embodiment, the host computer detection module includes a preset detection command for driving the detection process, where the preset detection command includes:

[0017] Start and stop commands, used to activate or stop the data transmission of the Dongle module;

[0018] Information interaction commands, used to obtain and report the status or configuration information of the Dongle module;

[0019] Notification confirmation commands, used to manage the notification and confirmation of the wireless product to be detected entering the detection;

[0020] Exit detection commands, used to end the detection process.

[0021] In one embodiment, the system further includes a detection configuration module for uniformly detecting and processing multiple wireless products to be detected, where the detection configuration module includes:

[0022] Detection command configuration unit, used to define commands for the wireless product to be detected, where each command includes a unique command identifier, a description, and a parameter field to support different types of commands and their parameter settings;

[0023] Detection processing configuration unit, used to define a specific detection process, where the detection process includes operation commands, the execution behavior of the operation commands, and dependency conditions, and each operation command specifies including command direction, waiting duration after sending, number of retransmissions, and dependency conditions;

[0024] Detection result configuration unit, used to determine whether the detection is successful.

[0025] In one embodiment, the parameter fields in the detection command configuration unit support multiple data types, including strings, fixed-length byte arrays, booleans, signed integers, and unsigned integers, and each type corresponds to a specific data format and length.

[0026] In one embodiment, when determining whether the detection is successful, the detection result configuration unit is configured to:

[0027] Set a time threshold for determining a detection failure. If the success determination condition is not met within the time threshold, it is determined as a timeout failure.

[0028] In a second aspect, an embodiment of the present application provides a multi - protocol wireless product detection method. The method is applied to the above - mentioned system, and the method includes:

[0029] Communicate with the Dongle module through a preset application layer protocol and receive a notification command for the wireless product to be detected to enter the detection mode;

[0030] Send instructions to the wireless product to be detected in sequence according to a predefined operation command sequence;

[0031] Analyze the status report returned by the wireless product to be detected, where the status report includes performance indicators such as RSSI signal strength and switch status;

[0032] Evaluate the status report according to preset conditions, and generate a detection result based on the evaluation result.

[0033] In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements a multi - protocol wireless product detection system as described in the first aspect above.

[0034] In a fourth aspect, an embodiment of the present application provides a computer - readable storage medium, on which a computer program is stored. When the program is executed by a processor, it implements a multi - protocol wireless product detection system as described in the first aspect above.

[0035] The multi - protocol wireless product detection system, method, device, and medium provided by the embodiments of the present application have at least the following technical effects.

[0036] The host computer detection module is used to communicate with the Dongle module through a preset application layer protocol and start a detection process based on the preset application layer protocol. The Dongle module is used to transparently transmit the data of the host computer detection module to the wireless product to be detected and transmit the data returned by the wireless product to be detected back to the host computer detection module. Among them, the Dongle module does not perform business logic processing. The wireless product to be detected is used to perform a response operation according to the received data of the Dongle module. It realizes the finished product detection of various types of wireless finished products in the same processing manner, and the specific detection process can be configured, solving the problem of low detection efficiency in the related technology. It improves the detection compatibility and flexibility of multi-protocol wireless products.

[0037] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more concise and understandable. Brief Description of the Drawings

[0038] The drawings described herein are used to provide a further understanding of the present application and form a part of the present application. The illustrative embodiments and descriptions thereof of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the drawings:

[0039] Figure 1 is a structural block diagram of a multi-protocol wireless product detection system;

[0040] Figure 2 is the overall structure of a detection configuration file shown according to an exemplary embodiment;

[0041] Figure 3 is a flowchart of a multi-protocol wireless product detection method;

[0042] Figure 4 is the overall flowchart of a multi-protocol wireless product detection method;

[0043] Figure 5 is a structural block diagram of an electronic device shown according to an exemplary embodiment. Detailed Embodiments

[0044] In order to make the purpose, technical solutions, and advantages of the present application clearer, the present application will be described and explained below in conjunction with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present application.

[0045] Obviously, the accompanying drawings in the following description are only some examples or embodiments of the present application. For those of ordinary skill in the art, without creative efforts, the present application can also be applied to other similar scenarios based on these drawings. In addition, it can also be understood that although the efforts made in such a development process may be complex and lengthy, for those of ordinary skill in the art related to the content disclosed in the present application, some design, manufacturing, or production changes based on the technical content disclosed in the present application are only conventional technical means and should not be understood as insufficient disclosure of the content of the present application.

[0046] References to "embodiments" in this application mean that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the application. The phrase does not necessarily refer to the same embodiment each time it appears in the specification, nor is it an independent or alternative embodiment mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly understand that the embodiments described in this application can be combined with other embodiments without conflict.

[0047] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the ordinary meaning understood by those of ordinary skill in the technical field to which this application belongs. The words such as "a", "an", "one", "the" and the like involved in this application do not indicate a quantity limitation and can represent a singular or plural number. The terms "comprise", "include", "have" and any variations thereof involved in this application are intended to cover non-exclusive inclusion; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may further include unlisted steps or units, or may further include other steps or units inherent to these processes, methods, products or devices. The terms "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" involved in this application means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific order for the objects.

[0048] Existing detection schemes for wireless finished products often face the following problems:

[0049] 1. The detection tool communicates with the finished product device through a wireless Dongle to achieve data interaction for detection. This communication method is more complex and unreliable compared to the wired communication method.

[0050] 2. There are multiple different versions of the wireless Dongle due to different wireless protocols, resulting in huge development and maintenance costs.

[0051] 3. The detection tool and the wireless Dongle need to be continuously developed and invested due to different device functions and wireless protocols.

[0052] Based on the above situation, the embodiments of the present application provide a multi-protocol wireless product detection system, method, device, and medium.

[0053] In this article, it should be understood that the terms involved can be technical means for implementing a part of the present invention or other summary technical terms. For example, the terms may include:

[0054] Transparent Transmission. In the field of communication, it refers to the process where data is transmitted from the sending end to the receiving end, and intermediate devices do not perform any parsing, processing, or modification on the data content, but directly forward the received data unchanged to the next node. This transmission method ensures the integrity and originality of the data and is applicable to application scenarios that require maintaining data authenticity and consistency.

[0055] In the first aspect, the embodiments of the present application provide a multi-protocol wireless product detection system. Figure 1 It is a structural block diagram of a multi-protocol wireless product detection system, as Figure 1 shown. The system includes: a host computer detection module, a Dongle module, and a wireless product to be detected. Among them,

[0056] The host computer detection module is used to communicate with the Dongle module through a preset application layer protocol and start the detection process based on the preset application layer protocol.

[0057] The Dongle module is used to transparently transmit the data of the host computer detection module to the wireless product to be detected and transmit the data returned by the wireless product to be detected back to the host computer detection module. Among them, the Dongle module does not perform business logic processing.

[0058] The wireless product to be detected is used to perform response operations according to the data received from the Dongle module.

[0059] In summary, the embodiment of the present application provides a multi-protocol wireless product detection system. The host computer detection module is used to communicate with the Dongle module through a preset application layer protocol and start a detection process based on the preset application layer protocol. The Dongle module is used to transparently transmit the data of the host computer detection module to the wireless product to be detected and transmit the data returned by the wireless product to be detected back to the host computer detection module. Among them, the Dongle module does not perform business logic processing. The wireless product to be detected is used to perform a response operation according to the received data of the Dongle module. It realizes the finished product detection of various types of wireless finished products by using the same processing method, and the specific detection process can be configured, solving the problem of low detection efficiency in the related technology. It improves the compatibility and flexibility of multi-protocol wireless product detection.

[0060] In one embodiment, when the host computer detection module starts a detection process based on a preset application layer protocol, it is used to:

[0061] Receive a notification command for the wireless product to be detected to enter the detection mode.

[0062] Send instructions to the wireless product to be detected in sequence according to a predefined operation command sequence.

[0063] Analyze the status report returned by the wireless product to be detected. The status report includes performance indicators such as RSSI signal strength and switch status.

[0064] Evaluate the status report according to preset conditions, and generate a detection result based on the evaluation result.

[0065] Optionally, first, the host computer detection tool establishes a communication connection with the wireless product to be detected through the Dongle. Send a reserved detection instruction 0060 (device enters detection notification), instructing the wireless product to be detected to scan the Dongle and report the status. Receive an acknowledgment command 0061 (device enters detection notification confirmation) from the wireless product to be detected, indicating that the device has successfully entered the detection mode.

[0066] Subsequently, the host computer detection module sends instructions to the wireless product to be detected in sequence according to a predefined operation command sequence. Each command contains a unique CommandId, a description, and a parameter field. For switch devices (ModelId: REX_Switch): Send command 1002 (set switch status to Off), wait for 200 milliseconds; send command 1001 (set switch status to On), wait for another 200 milliseconds; send command 1005 (report switch status), and wait for the device to return a status report. The predefined operation command sequence ensures precise control of the detection process and avoids the uncertainty brought by human intervention.

[0067] Next, the host computer detection module receives and parses the status report from the wireless product to be detected, extracts the performance metrics therein, such as RSSI signal strength and switch status. Check whether the RSSI signal strength is between -40dbm and -20dbm, and whether the switch status is On. The automated analysis mechanism reduces the error of manual judgment and improves the accuracy and reliability of the detection results.

[0068] Finally, evaluate the status report according to the preset conditions, and set the timeout period to 30 seconds. If the success determination conditions are not met for a long time, it is directly determined as a timeout failure. Record the detection results and generate a report, which is saved to the database or output as a file. If all conditions are met, a "detection successful" result is generated; otherwise, a "detection failed" result is generated, and the specific failure reason is recorded. By having clear success and failure criteria, the consistency and fairness of the detection results are ensured. The automated evaluation mechanism improves the detection efficiency and reduces the influence of human factors.

[0069] In one embodiment, the structure of the preset application layer protocol includes:

[0070] Frame header, version number, frame payload length, frame payload, checksum, and frame tail; where the frame payload includes an address, a command identifier, and a command payload.

[0071] Specifically, the communication protocols of the host computer detection tool, Dongle, and wireless finished product device (i.e., wireless product) at the application layer adopt a unified format and structure. This protocol is independent of the type of wireless communication protocol to shield the differences brought by different wireless communication protocols to the detection system, thereby increasing the cost of developing and maintaining the detection system. The structure of the preset application layer protocol is shown in Table 1:

[0072] Table 1: Structure of the Preset Application Layer Protocol

[0073]

[0074] 1. Head: Frame header, with a fixed value of 0x3A, occupying 1 byte.

[0075] 2. Ver: Version number, currently fixed at 0x01, occupying 1 byte.

[0076] 3. PaylaodLength: Frame payload length, that is, indicating the Payload length, occupying 2 bytes, using little-endian order.

[0077] 4. Paylaod: Frame payload, with variable length, determined by the Payload Length field.

[0078] The Payload field is divided by command granularity and is a byte array. The data is organized in the TLV (Type Length Value) format.

[0079] Type: Occupies 1 byte. The specific types currently supported are shown in Table 2 as follows:

[0080] Table 2: Supported Types

[0081]

[0082]

[0083] Length: The length, occupies 2 bytes, in big-endian order.

[0084] Value: The value, whose length is determined by Length.

[0085] The data is organized as: Address TLV + CommandId TLV + CommandPayload TLV

[0086] 5. Check Code: The check code, using CRC code. The polynomial used for CRC is CRC-16 / ARC, in big-endian order. The source data for calculation is from Head to the last byte of Payload, that is, only the two fields of Check Code itself and Tail in the data frame do not participate in the generation calculation of the CRC code.

[0087] 6. Tail: The frame tail, using the fixed value 0x3C, occupying 1 byte.

[0088] Assume the address is 0102030405060708, 8 bytes;

[0089] The command Id is 11F0;

[0090] The command payload is 11223344556677889900, 10 bytes.

[0091] Then the data payload Payload of the communication protocol is:

[0092] 100008010203040506070820000211F030000A11223344556677889900

[0093] If the length of Payload is 29 bytes and the check code is 0x66DE, then the complete communication protocol data frame is:

[0094] 3A011D00100008010203040506070820000211F030000A1122334455667788990066DE3C。

[0095] The upper computer detection module and the Dongle, and between the Dongle and the wireless finished product device adopt a unified application protocol, which is independent of the type of wireless communication protocol, so as to shield the differences brought by different wireless communication protocols to the detection system, thereby reducing the development and maintenance costs of the detection system. Secondly, the Dongle only performs transparent transmission on the detection data and does not perform specific business processing. As long as the upper computer and the wireless finished product device negotiate the detection protocol, a large number of customized developments of the Dongle can be avoided. Finally, the upper computer tool uses a configuration method to realize the parsing and assembly of the communication data of the wireless finished product device. By configuration, the introduction of new devices and new functions can be supported without customized development and recompilation.

[0096] In one embodiment, the upper computer detection module includes preset detection commands for driving the detection process, where the preset detection commands include:

[0097] Start and stop commands, used to activate or stop the data transmission of the Dongle module;

[0098] Information interaction commands, used to obtain and report the status or configuration information of the Dongle module;

[0099] Notification confirmation commands, used to manage the notification and confirmation of the wireless product to be detected entering the detection;

[0100] Exit detection commands, used to end the detection process.

[0101] Optionally, start Dongle data transmission: Command ID: 0000. The host detection tool sends the start command 0000 to the Dongle module to activate the data transmission function of the Dongle. After receiving the command, the Dongle enters the working state, ready to receive instructions from the host detection tool and forward them to the wireless product to be detected. Stop Dongle data transmission: Command ID: 0059. After the detection is completed, the host detection tool sends the stop command 0059 to the Dongle module to make the Dongle return to the inactive state. After receiving the command, the Dongle stops the data transmission function to prevent unnecessary resource consumption or interference with other operations. Read Dongle information: Command ID: 0001. The host detection tool sends the read information command 0001 to request the current status or configuration information of the Dongle. The Dongle returns a response containing basic information such as the version number and date code. Report Dongle information: Command ID: 0002. The Dongle actively reports its own information to the system, including the version number and date code. Device enters detection notification: Command ID: 0060. When the wireless product to be detected scans the Dongle, it sends the command 0060 to notify the host detection tool that the device is ready to enter the detection mode. Device enters detection notification confirmation: Command ID: 0061. The host detection tool sends the confirmation command 0061 to the wireless product to be detected, informing it that it can enter the relevant operation and processing stage of the detection. Exit detection command: Command ID: 00F0. After the detection is completed, the host detection tool sends the exit detection command 00F0 to the wireless product to be detected and the Dongle module to indicate the end of the detection process. After receiving the command, the wireless product to be detected and the Dongle module resume the normal operation mode.

[0102] Specifically, 1. Start the Dongle. The CommandPayload structure is as shown in Table 3 below:

[0103] Table 3: CommandPayload structure for starting the Dongle

[0104]

[0105] 2. Read Dongle information. The CommandPayload has no content.

[0106] 3. Report Dongle information. The CommandPayload structure is as shown in Table 4 below:

[0107] Table 4: CommandPayload structure for reporting the Dongle

[0108]

[0109] 4. Stop the Dongle, and the CommandPayload has no content.

[0110] 5. The device enters the detection notification, and the CommandPayload structure is shown in Table 5:

[0111] Table 5: CommandPayload structure for device detection notification

[0112]

[0113] 6. Confirm the device detection notification, and the CommandPayload has no content.

[0114] 7. Exit the detection, and the CommandPayload has no content.

[0115] When describing the CommandPayload structure, field types are used, and field types are also used when configuring detection commands. The supported field types are shown in Table 6:

[0116] Table 6: Supported field types

[0117]

[0118] Through standardized preset detection commands, it is ensured that each detection step can be executed as expected, reducing detection failures caused by communication problems or human intervention. The notification confirmation mechanism guarantees the synchronization between the two parties of the detection, improving the reliability and consistency of the detection process. The predefined command sequence and automated evaluation mechanism significantly shorten the detection time, especially in the case of batch detection scenarios. The quick start and safe exit mechanisms improve the detection efficiency and reduce the ineffective waiting time.

[0119] In one embodiment, the system further includes a detection configuration module for uniformly detecting and processing multiple wireless products to be detected, where the detection configuration module includes:

[0120] A detection command configuration unit for defining commands for wireless products to be detected, where each command includes a unique command identifier, a description, and a parameter field to support different types of commands and their parameter settings.

[0121] Optionally, the command configuration file is defined in JSON format and named ModelId.json, where ModelId is the device model identifier. Each command includes a CommandId field: a unique identifier, such as 0x2001. A Description field: a descriptive explanation, such as "Set the switch state to On". A Fields field: parameter fields that support multiple data types such as strings, fixed-length byte arrays, booleans, signed integers, and unsigned integers. A standardized command definition method is provided to ensure the consistency and operability of different types of commands. Flexible parameter settings are supported, enhancing the adaptability and scalability of the system and facilitating the introduction of new devices and new functions in the future.

[0122] The detection processing configuration unit is used to define the specific detection process. Among them, the detection process includes operation commands, the execution behavior of the operation commands, and dependency conditions. Each operation command specifies the command direction, the waiting duration after sending, the number of retransmissions, and the dependency conditions.

[0123] Optionally, the detection processing configuration file is defined in JSON format and also named ModelId.json. Each detection process contains multiple operation commands, and each command is defined as follows: CommandId: the command identifier.

[0124] Direction: the command direction, up or down;

[0125] WaitDuration: the waiting duration after sending, in milliseconds;

[0126] RetryCount: the number of retransmissions;

[0127] Dependencies: the dependency conditions, which can be the successful execution results of other commands or specific parameter values.

[0128] Support for complex dependency relationships and conditional judgments enhances the complexity and accuracy of the detection process and improves the reliability of the detection results.

[0129] The detection result configuration unit is used to determine whether the detection is successful.

[0130] Optionally, the detection result configuration file is defined in JSON format and also named ModelId.json.

[0131] Each detection result configuration contains the following fields:

[0132] Timeout: the timeout period, in seconds, such as 30 seconds; Conditions: an array of success conditions.

[0133] Among them, each condition contains:

[0134] CommandId: Dependent command identifier;

[0135] Description: Condition description;

[0136] Field: Parameter name;

[0137] Value: Parameter value, which can be in the form of a single value, a list of multiple values, an interval value, less than / greater than a certain value, etc.

[0138] Clear success and failure criteria are provided to ensure the consistency and fairness of the detection results. The automated evaluation mechanism improves the detection efficiency, reduces the influence of human factors, and enhances the accuracy and reliability of the detection results.

[0139] Specifically, the detection configuration module is divided into three parts: the detection command configuration unit, the detection processing configuration unit, and the detection result configuration unit. The source data of the detection processing configuration unit and the detection result configuration unit comes from the configured detection commands or the defined reserved detection commands. The configuration is defined and described using JSON, and the configuration files are organized by device ModelId. The naming rule for the configuration files is: ModelId plus the ".json" extension. For example, if the device ModelId is Rex_LED, the configuration file name is: Rex_LED.json. Figure 2 It is the overall structure of the detection configuration file shown according to an exemplary embodiment, including four sub-nodes. The functions of each sub-node are as follows:

[0140] 1. Refrence. The reference configuration node, whose value is the device ModelId. When it is not empty, it means that the configuration of this type of device is the same as that of the device class referred to by the ModelId. When it is not empty, there are no other subsequent nodes. Using the reference node can avoid a large amount of repetitive configuration work when the detections of multiple types of devices are exactly the same.

[0141] 2. Commands. The detection command configuration node, used to define all relevant commands for this type of device, and the type is an array.

[0142] The function descriptions of each sub-node are shown in Table 7:

[0143] Table 7: Function descriptions of the detection command sub-nodes

[0144]

[0145]

[0146] 3. Processes

[0147] The detection processing configuration node, used to define the detection processing flow of such devices, is of array type. The function descriptions of each sub-node are shown in Table 8:

[0148] Table 8: Function descriptions of detection processing sub-nodes

[0149]

[0150]

[0151] 4、Results

[0152] The detection result configuration node, used to define how to judge the detection results of such devices, is of array type.

[0153] The function descriptions of each sub-node are shown in Table 9:

[0154] Table 9: Function descriptions of detection result sub-nodes

[0155]

[0156] For example, now configure the detection of a switch device. The specific requirements are as follows:

[0157] 1. The ModelId of the switch device is REX_Switch.

[0158] 2. The switch device supports the following commands:

[0159] 0060: The device enters the detection notification, which is a reserved command.

[0160] 0061: The confirmation of the device entering the detection notification, which is a reserved command.

[0161] 1001: Set the switch status to On, and the command has no parameter fields.

[0162] 1002: Set the switch status to Off, and the command has no parameter fields.

[0163] 1005: Report the switch status. The command has only one field, of boolean type, named Status.

[0164] 3. The detection process of the switch device is as follows: After receiving the device entry detection notification, specifically execute the following process:

[0165] Send a command to set the switch status to Off, wait for 200 milliseconds after sending, and do not resend;

[0166] Send a command to set the switch status to On, wait for 200 milliseconds after sending, and do not resend;

[0167] Wait for the device to report the switch status.

[0168] 4. The conditions for successful detection results of the switchgear are as follows:

[0169] The RSSI signal strength reported by the device is between -40 dbm and -20 dbm.

[0170] The status reported by the device is On.

[0171] In addition, the timeout duration is 30 seconds.

[0172] Through the detection configuration, a unified processing method is implemented to detect and process various wireless finished products. Standardized command definitions and configuration files enable the system to support multiple wireless communication protocols, reduce the need to develop dedicated Dongles for each protocol, and improve the compatibility and scalability of the system. The detection processing configuration unit supports complex dependency relationships and conditional judgments, enhancing the flexibility and accuracy of the detection process and ensuring the reliability and accuracy of the detection process.

[0173] In summary, the embodiment of the present application provides a multi-protocol wireless product detection system, including a host computer detection module for communicating with the Dongle module through a preset application layer protocol and starting a detection process based on the preset application layer protocol. The Dongle module is used to transparently transmit the data of the host computer detection module to the wireless product to be detected and transmit the data returned by the wireless product to be detected back to the host computer detection module, where the Dongle module does not perform business logic processing. The wireless product to be detected is used to perform response operations according to the received data of the Dongle module. It realizes the finished product detection of various types of wireless finished products using the same processing method, and the specific detection process can be configured, solving the problem of low detection efficiency in the related art. It improves the compatibility and flexibility of multi-protocol wireless product detection.

[0174] In a second aspect, the embodiment of the present application provides a multi-protocol wireless product detection method, Figure 3 which is a flowchart of a multi-protocol wireless product detection method, Figure 4 which is an overall flowchart of a multi-protocol wireless product detection method, as shown in Figure 3 and Figure 4 The method includes:

[0175] Step S101: Communicate with the Dongle module through a preset application layer protocol and receive a notification command for the wireless product to be detected to enter the detection mode.

[0176] The host computer detection tool establishes a communication connection with the Dongle module through a preset application layer protocol. It sends a reserved detection instruction (device enters detection notification), instructing the wireless product to be detected to scan the Dongle and report the status. It receives the confirmation command (device enters detection notification confirmation) from the wireless product to be detected, indicating that the device has successfully entered the detection mode.

[0177] Step S102: Send instructions to the wireless product to be detected in sequence according to a predefined operation command sequence.

[0178] The host computer detection module sends instructions to the wireless product to be detected in sequence according to a predefined operation command sequence. Each command contains a unique CommandId, a description, and a parameter field.

[0179] Step S103: Analyze the status report returned by the wireless product to be detected, where the status report includes performance indicators such as RSSI signal strength and switch status.

[0180] The host computer detection module receives and parses the status report from the wireless product to be detected, extracts the performance indicators therein, such as RSSI signal strength and switch status. Check whether the RSSI signal strength is between -40dbm and -20dbm, and whether the switch status is On.

[0181] Step S104: Evaluate the status report according to preset conditions, and generate a detection result based on the evaluation result.

[0182] Evaluate the status report according to preset conditions, and set the timeout time to 30 seconds. If the successful determination conditions are not met for a long time, it is directly determined as a timeout failure. Record the detection result and generate a report, which is saved to the database or output as a file. If all conditions are met, generate a result of "detection successful"; otherwise, generate a result of "detection failed" and record the specific reason for failure.

[0183] In summary, the embodiment of the present application provides a method for detecting multi-protocol wireless products. It communicates with the Dongle module through a preset application layer protocol and receives the notification command for the wireless product to be detected to enter the detection mode. It sends instructions to the wireless product to be detected in sequence according to a predefined operation command sequence. It analyzes the status report returned by the wireless product to be detected, where the status report includes performance indicators such as RSSI signal strength and switch status. It evaluates the status report according to preset conditions and generates a detection result based on the evaluation result. It realizes the finished product detection of various types of wireless finished products using the same processing method, and the specific detection process can be configured, solving the problem of low detection efficiency in the related technology. It improves the compatibility and flexibility of multi-protocol wireless product detection.

[0184] It should be noted that the multi - protocol wireless product detection method provided in this embodiment is used to implement the above - mentioned implementation manners, and those that have been described will not be repeated. As used above, terms such as "module", "unit", "sub - unit", etc. can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the above embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0185] In a third aspect, an embodiment of the present application provides an electronic device. Figure 5 It is a block diagram of an electronic device shown according to an exemplary embodiment. As Figure 5 shown, the electronic device may include a processor 51 and a memory 52 storing computer program instructions.

[0186] Specifically, the above - mentioned processor 51 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0187] Among them, the memory 52 may include a mass storage for data or instructions. By way of example and not limitation, the memory 52 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 52 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 52 may be internal or external to the data processing device. In a particular embodiment, the memory 52 is a non-volatile memory. In a particular embodiment, the memory 52 includes a read-only memory (ROM) and a random access memory (RAM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable read-only memory (EAROM), or a flash memory, or a combination of two or more of these. In a suitable case, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), where the DRAM may be a fast page mode dynamic random access memory (FPMDRAM), an extended date out dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0188] The memory 52 can be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 51.

[0189] The processor 51 reads and executes the computer program instructions stored in the memory 52 to implement any one of the multi-protocol wireless product detection systems in the above embodiments.

[0190] In one embodiment, a multi-protocol wireless product detection device may further include a communication interface 53 and a bus 50. Among them, as Figure 5 shown, the processor 51, the memory 52, and the communication interface 53 are connected through the bus 50 and complete communication with each other.

[0191] The communication interface 53 is used to implement communication between the various modules, devices, units, and / or devices in the embodiments of the present application. The communication port 53 can also implement data communication with other components such as external devices, image / data acquisition devices, databases, external storage, and image / data processing workstations.

[0192] The bus 50 includes hardware, software, or both, and couples components of a multi-protocol wireless product detection device to each other. The bus 50 includes at least one of the following, including but not limited to: Data Bus, Address Bus, Control Bus, Expansion Bus, Local Bus. By way of example and not limitation, the bus 50 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 50 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.

[0193] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed by a processor, a multi-protocol wireless product detection system provided in the first aspect is implemented.

[0194] Among them, the more specific forms that the readable storage medium can adopt may include but are not limited to: portable disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the above.

[0195] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to cause the terminal device to execute the steps of implementing a multi-protocol wireless product detection system provided in the first aspect.

[0196] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages. The program code can be executed entirely on the user device, partially on the user device, executed as an independent software package, partially on the user device and partially on a remote device, or entirely on a remote device.

[0197] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0198] The above-described embodiments only represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.

Claims

1. A multi-protocol wireless product detection system, characterized in that: include: Host computer detection module, Dongle module and wireless products to be detected; among them, The host computer detection module is used to communicate with the Dongle module through a preset application layer protocol and start the detection process based on the preset application layer protocol; The Dongle module is used to transparently transmit the data of the host computer detection module to the wireless product to be detected, and transmit the data returned by the wireless product to be detected back to the host computer detection module, wherein the Dongle module does not perform business logic processing; The wireless product to be detected is used to perform a response operation according to the data received from the Dongle module.

2. The multi-protocol wireless product detection system according to claim 1, characterized in that: When the host computer detection module starts the detection process based on the preset application layer protocol, it is used to: Receiving a notification command for the wireless product to be detected to enter a detection mode; Sending instructions to the wireless product to be detected in sequence according to a predefined operation command sequence; Analyze the status report returned by the wireless product to be detected, wherein the status report includes performance indicators of RSSI signal strength and switch status; The status report is evaluated according to preset conditions, and a detection result is generated based on the evaluation result.

3. The multi-protocol wireless product detection system according to claim 1, characterized in that: The structure of the preset application layer protocol includes: Frame header, version number, frame payload length, frame payload, checksum and frame tail; wherein the frame payload includes address, command identifier and command payload.

4. The multi-protocol wireless product detection system according to claim 1, characterized in that: The host computer detection module includes a preset detection command for driving the detection process, wherein the preset detection command includes: Start and stop commands, used to activate or stop the data transmission of the Dongle module; Information interaction command, used to obtain and report the status or configuration information of the Dongle module; Notification confirmation command, used to manage the notification and confirmation of the wireless product to be tested entering the test; Exit detection command is used to end the detection process.

5. The multi-protocol wireless product detection system according to claim 1, characterized in that: The system further includes a detection configuration module for uniformly detecting and processing a plurality of wireless products to be detected, wherein the detection configuration module includes: A detection command configuration unit, used to define commands related to the wireless product to be detected, wherein each command includes a unique command identifier, a description, and a parameter field to support different types of commands and parameter settings thereof; A detection processing configuration unit, used to define a specific detection process, wherein the detection process includes an operation command, an execution behavior of the operation command, and a dependent condition, and each operation command specifies a command direction, a waiting time after sending, a number of retransmissions, and a dependent condition; The detection result configuration unit is used to determine whether the detection is successful.

6. The multi-protocol wireless product detection system according to claim 5, characterized in that: The parameter field in the detection command configuration unit supports multiple data types, including character string, fixed-length byte array, Boolean, signed integer and unsigned integer, each type corresponding to a specific data format and length.

7. The multi-protocol wireless product detection system according to claim 5, characterized in that: When determining whether the detection is successful, the detection result configuration unit is used to: A time threshold for determining detection failure is set. If the success determination condition is not met within the time threshold, it is determined to be a timeout failure.

8. A multi-protocol wireless product detection method, characterized in that: The method is applied to the system according to any one of claims 1 to 7, and the method comprises: Communicate with the Dongle module through a preset application layer protocol, and receive a notification command for the wireless product to be detected to enter a detection mode; Sending instructions to the wireless product to be detected in sequence according to a predefined operation command sequence; Analyze the status report returned by the wireless product to be detected, wherein the status report includes performance indicators of RSSI signal strength and switch status; The status report is evaluated according to preset conditions, and a detection result is generated based on the evaluation result.

9. An electronic device, characterized in that: The invention comprises a memory and a processor, a computer program stored in the memory and executable on the processor, and the processor implements a multi-protocol wireless product detection system as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, a multi-protocol wireless product detection system according to any one of claims 1 to 7 is implemented.