A wireless communication control method and platform for thread-controlled instruments
By implementing a self-organizing network controller to create a wireless self-organizing network for remotely controlled instruments, the complexity of connection and data transmission blockage issues of traditional wired communication methods are solved, thus ensuring the reliability of remote control and the integrity of important instrument data.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA JILIANG UNIV
- Filing Date
- 2023-12-12
- Publication Date
- 2026-06-26
AI Technical Summary
Traditional wired communication methods in laboratory testing systems are limited by the length of communication cables, resulting in a limited testing range, inconsistent interface drivers, complex communication cables, and serious data transmission blockage problems, which affect the integrity of measurement data from important instruments.
A self-organizing network controller is used to realize a tree-topology wireless self-organizing network for threaded control instruments. The self-organizing network level is determined by instrument priority and signal strength, and different interfaces are unified by WiFi communication interface. Control commands are sent down and data is uploaded level by level, and priority determines the transmission order of data packets.
It simplifies the connection between computers and threaded instruments, extends the connection distance, solves the data transmission blocking problem, and ensures the integrity and low-latency transmission of important instrument data packets.
Smart Images

Figure CN117690279B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of instrument control technology, and in particular to a wireless communication control method and platform for threaded control instruments. Background Technology
[0002] Threaded instruments constitute a large portion of the instruments used in laboratory testing systems. Different threaded instruments have different communication interfaces. Before testing, various communication interface drivers need to be downloaded to the computer, and different communication cables are used to connect the threaded instruments to the computer. During actual testing, different control commands are issued from the computer to control the different threaded instruments. Due to the limitation of communication cable length, the coverage area of the testing system is restricted.
[0003] With the continuous development of IoT technology, people are paying increasing attention to remotely controlled instrument testing. The tree-topology self-organizing network method can effectively solve problems caused by traditional wired communication methods, such as limited testing range due to communication cable length, inconsistent interface drivers, and complex cable connections. However, as the number of instruments increases, data transmission congestion becomes more likely to occur in the tree-topology self-organizing network method. Data transmission congestion can lead to the loss of measurement data from critical thread-controlled instruments in the testing system. Summary of the Invention
[0004] In view of this, the present invention provides a wireless communication control method and platform for threaded instruments, so as to meet the requirements of reliable wireless communication control of threaded instruments in the test system.
[0005] In a first aspect, the present invention provides a wireless communication control method for threaded control instruments, comprising:
[0006] S1. Use the self-organizing network controller to realize a wireless self-organizing network with a tree topology structure for threaded instruments, and determine the self-organizing network level of the threaded instruments based on instrument priority and signal strength.
[0007] S2. Based on the link table in the self-organizing network platform, control commands are sent down level by level to the corresponding threaded control instruments.
[0008] S3. According to the connection link table in the self-organizing network platform, the instrument data is uploaded to the computer level by level. The priority of the instruments determines the order in which the instrument data is uploaded.
[0009] Secondly, the present invention provides a wireless communication control platform for threaded control instruments to implement the above-mentioned method. The wireless communication control platform includes: a computer, a wireless receiver, an ad hoc network controller, and a threaded control instrument.
[0010] The beneficial effects of this invention are:
[0011] (1) The present invention proposes a wireless communication control method and platform for threaded control instruments. It utilizes a self-organizing network controller to realize wireless communication control of the tree topology of the threaded control instruments, unifies the different communication interfaces of the threaded control instruments into WiFi communication interfaces, simplifies the complex connection of different communication cables between the computer and the threaded control instruments, and widens the connection distance between the computer and the threaded control instruments.
[0012] (2) The present invention proposes a wireless communication control method and platform for programmable instruments. Based on the importance of different programmable instruments in actual needs, the instrument priority is determined. This priority is used to allocate the wireless ad hoc network level and determine the order of data packet uploads, thus solving the data transmission congestion problem in existing technologies. This ensures the integrity and low latency of data packet transmission for important programmable instruments in a tree-structured wireless communication control platform. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 A flowchart of a wireless communication control method for threaded control instruments provided in an embodiment of the present invention;
[0015] Figure 2 This is a schematic diagram of a wireless communication control platform structure for threaded control instruments provided in an embodiment of the present invention;
[0016] Figure 3 This is a network diagram of the test system provided in an embodiment of the present invention;
[0017] Figure 4 This is a schematic diagram of an instrument self-organizing network module structure provided in an embodiment of the present invention;
[0018] Figure 5 This is a schematic diagram of a self-organizing network controller structure provided in an embodiment of the present invention. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] This application provides a wireless self-organizing network control method for programmable instruments to meet the requirements of reliable remote control of important programmable instruments in traditional testing systems.
[0021] like Figure 1 As shown in the figure, this embodiment provides a wireless self-organizing network control method for a programmable instrument, including the self-organizing network of the programmable instrument, the issuance of control commands, and the uploading of instrument data.
[0022] The aforementioned self-organizing network utilizes a self-organizing network controller to implement a tree-structured wireless self-organizing network for threaded instruments. The self-organizing network level of the threaded instruments is determined based on instrument priority and signal strength.
[0023] In one example, the specific steps include:
[0024] S101: Determine the instrument priority table based on the importance of different threaded control instruments in actual needs, and download the instrument priority table to their respective network controllers.
[0025] S102: The self-organizing network controller connects with the communication interface of the thread-controlled instrument to form an instrument self-organizing network module, and queries the type and name of the connected thread-controlled instrument to obtain the corresponding instrument priority in the instrument priority lookup table.
[0026] S103: The instrument self-organizing network module determines the network strength based on the instrument priority and signal strength of the connected thread-controlled instruments. It then assigns a self-organizing network level to the module based on this strength.
[0027] S104: The root node is the highest level of the instrument's self-organizing network module, establishing a wireless connection with the computer via a wireless receiver; the self-organizing network modules of the first-level child nodes establish wireless connections with the root node, the second-level child nodes establish wireless connections with the first-level child nodes, and so on. Based on the self-organizing network levels, a tree-like topology wireless self-organizing network is implemented in the test system for thread-controlled instruments.
[0028] S105: Wireless self-organizing network completed. The instrument self-organizing network module of each node saves its lower-level connection link table and uploads the connection heartbeat packet.
[0029] The control commands are issued by sending them down level by level to the corresponding threaded control instruments according to the link table in the ad hoc network platform.
[0030] In one example, the specific steps include:
[0031] S201: The user sends control command packets via computer. The format of the control command packet is: sending time + node ID + control command.
[0032] S202: The instrument self-organizing network module of the root node in the platform receives the control command packet and determines whether its ID number matches its own ID number. If they match, the control command packet is parsed and the control command is sent to the connected threaded controllable instruments. If they do not match, the connection link corresponding to the ID number is determined according to the connection link table, and the control command packet is forwarded to the next level node.
[0033] S203: The lower-level node receives the control command packet and determines whether its ID number matches its own ID number. If they match, the control command packet is parsed, and the control command is sent to the connected programmable instruments. If they do not match, the connection link corresponding to the ID is determined according to the connection link table, and the control command packet is forwarded to the next level node.
[0034] S204: Repeat the process until the control command is sent to the instrument self-organizing network module with the corresponding ID number and then to the connected programmable instrument.
[0035] The instrument data upload is performed by uploading instrument data to the computer level by level according to the connection link table in the ad hoc network platform. The order in which instrument data is uploaded is determined by the priority of the instruments.
[0036] In one example, the specific steps include:
[0037] S301: The programmable instrument responds after receiving the corresponding control command. If data is returned, the self-organizing network controller first requests the data window to be uploaded from the superior node.
[0038] S302: The self-organizing network controller determines whether the instrument's returned data is too large based on the data window size. If it is, the returned data is packaged into blocks according to the data window size. If it is not too large, the returned data is packaged. The packaging format is: receive timestamp + node ID + instrument priority + instrument returned data. After packaging, the data packet is uploaded to the instrument self-organizing network module of the parent node.
[0039] S303: After receiving a data packet, the upstream node determines the order in which data packets are uploaded based on the instrument priority in the packet within the buffer. Data packets with higher instrument priority are uploaded first. Lower priority data packets are uploaded only after the higher priority data packets have been uploaded or after the waiting time in the buffer has reached the waiting threshold.
[0040] S304: Upload in this manner level by level, and finally upload to the computer for display and saving.
[0041] Furthermore, the formula for determining network strength is: Z = AX + BY. Z represents network strength, X represents instrument priority, and Y represents signal strength. Network parameter A and network parameter B are set to 0.5 by default. Users can download and update the instrument priority lookup table and change the network parameters A and B for each self-organizing controller via an SD card.
[0042] Furthermore, in the wireless communication control platform, the higher-priority programmable instruments have a higher self-organizing network level. The higher the self-organizing network level, the shorter the upload link.
[0043] Furthermore, the instrument priority table is determined based on the importance of the programmable instruments used in the experimental testing system. Important programmable instruments in the testing system are set to high priority, and less important programmable instruments are set to low priority. The wireless ad hoc network controller connected to a high-priority programmable instrument uploads data packets first, while the wireless ad hoc network controller connected to a low-priority programmable instrument uploads data packets later.
[0044] Furthermore, the self-organizing network controller queries the names of connected programmable instruments by sending an SCPI query name command. The instrument priority lookup table is used to search based on the type and name of the programmable instruments in the actual test system.
[0045] Furthermore, when a node in the remote control platform for the programmed instrument is damaged during normal operation, it has a self-repair function. All nodes under the damaged node will connect to the undamaged nodes, improving the platform's stability.
[0046] like Figure 2 As shown in the figure, this application provides a remote control platform structure for programmable instruments based on instrument priority. The programmable instrument wireless self-organizing network control platform includes: a computer 101, a wireless receiver 102, a root node instrument self-organizing network module 103, a first-level sub-node instrument wireless self-organizing network module 104, a second-level sub-node instrument wireless self-organizing network module 105, and a third-level sub-node instrument wireless self-organizing network module 106.
[0047] Specifically, the programmable instrument wireless self-organizing network control platform uses a tree-structured wireless self-organizing network topology. The instrument self-organizing network module 103, acting as the root node, establishes a wireless connection with the wireless receiver 102. The instrument self-organizing network module 104, acting as a first-level sub-node, establishes a connection with the root node instrument self-organizing network module 103. The instrument self-organizing network module 105, acting as a second-level sub-node, establishes a connection with the first-level sub-node instrument wireless self-organizing network module 104. The instrument self-organizing network module 106, acting as a third-level sub-node, establishes a connection with the second-level sub-node instrument wireless self-organizing network module 105.
[0048] Furthermore, the highest node level supported by the wireless self-organizing network control platform for programmable instruments can be set by the user.
[0049] Furthermore, when the child nodes transmit data packets, they upload them level by level, and finally upload the data packets to the computer through the root node.
[0050] Furthermore, when the self-organizing network controller in the wireless self-organizing network communication platform of the programmable instrument is damaged, the downstream self-organizing network controller of the damaged self-organizing network controller will search for and reconnect to the adjacent working self-organizing network controller.
[0051] Furthermore, the wireless communication control platform for the programmable instruments allows for independent remote control of multiple automated testing systems via a single computer. In each automated testing system, different self-organizing network controllers have different ID numbers used to distinguish different programmable instruments during data transmission. (See...) Figure 3 .
[0052] Figure 4 The structure of the instrument self-organizing network module is also shown. As shown in the figure, the instrument self-organizing network module includes: a thread-controlled instrument 201 and a self-organizing network controller 202.
[0053] Specifically, the conventional programmable instrument 201 and the self-organizing network controller 202 are connected through the communication interface of the conventional programmable instrument to realize the wireless self-organizing network function of the conventional programmable instrument. The self-organizing network controller includes a GPIB interface self-organizing network controller, a USB interface self-organizing network controller, a LAN interface self-organizing network controller, an RS-232 interface self-organizing network controller, an RS-485 interface self-organizing network controller, and a CAN interface self-organizing network controller.
[0054] Figure 5 The self-organizing network controller structure provided in this application includes: a WiFi self-organizing network module 301, a processor module 302, a bus interface logic driver 303, a communication interface 304, an SD card module 305, a power supply module 306, and a DIP switch module 307.
[0055] Specifically, the DIP switch module is used to configure the networking information, interface information, etc. of the wireless ad hoc network controller.
[0056] Furthermore, the wireless self-organizing network controller supports downloading instrument priority lookup tables and networking parameters using an SD card.
[0057] Furthermore, the instrument priority lookup table is determined based on the importance of the programmable instruments used in the actual testing system.
Claims
1. A wireless communication control method for threaded control instruments, characterized in that: S1. Use the self-organizing network controller to realize a wireless self-organizing network with a tree topology structure for threaded instruments, and determine the self-organizing network level of the threaded instruments based on instrument priority and signal strength. S2. Based on the link table in the self-organizing network platform, control commands are sent down level by level to the corresponding threaded control instruments. S3. According to the connection link table in the self-organizing network platform, the instrument data is uploaded to the computer level by level. The priority of the instruments determines the order in which the instrument data is uploaded. S101: Determine the instrument priority table based on the importance of different threaded control instruments in actual needs, and download the instrument priority table to their respective network controllers. S102: The self-organizing network controller connects with the communication interface of the threaded control instrument to form an instrument self-organizing network module, and queries the type and name of the connected threaded control instrument to obtain the corresponding instrument priority in the instrument priority lookup table; S103: The instrument self-organizing network module determines the network strength based on the priority of the connected thread-controlled instruments and the signal strength; and assigns the self-organizing network level of the instrument self-organizing network module according to the network strength. S104: The root node is the highest level of the instrument self-organizing network module, and it establishes a wireless connection with the computer through a wireless receiver; the instrument self-organizing network modules of the first-level child nodes establish a wireless connection with the root node, the second-level child nodes establish a wireless connection with the first-level child nodes, and so on; according to the self-organizing network level, a wireless self-organizing network with a tree topology structure of thread-controlled instruments in the test system is realized. S105: Wireless self-organizing network completed. The instrument self-organizing network module of each node saves its lower-level connection link table and uploads the connection heartbeat packet.
2. The wireless communication control method for threaded control instruments according to claim 1, characterized in that: S2 specifically refers to: S201: The user sends a control command packet via computer; the format of the control command packet is: sending time + node ID + control command; S202: The instrument self-organizing network module of the root node receives the control command packet and determines whether its ID number matches its own ID number; if they match, it parses the control command packet and sends the control command to the connected threaded controllable instruments. If the connection does not match, the corresponding ID number is determined according to the connection link table, and the control command packet is forwarded to the next level node. S203: The lower-level node receives the control command packet and determines whether its ID number matches its own ID number. If they match, the control command packet is parsed and the control command is sent to the connected programmable instrument. If they do not match, the connection link corresponding to the ID is determined according to the connection link table, and the control command packet is forwarded to the next level node. S204: Repeat the process until the control command is sent to the instrument self-organizing network module with the corresponding ID number and then to the connected programmable instrument.
3. The wireless communication control method for threaded control instruments according to claim 1, characterized in that: S3 specifically refers to: S301: The programmable instrument responds after receiving the corresponding control command; if data is returned, the self-organizing network controller first requests the data upload window from the superior node; S302: The self-organizing network controller determines whether the instrument's returned data is too large based on the data window size; if it is, it packages the instrument's returned data into blocks according to the data window size; if it is not too large, it packages the instrument's returned data; after packaging, it uploads the data packet to the instrument self-organizing network module of the upper-level node; the packaging format is: reception timestamp + node ID + instrument priority + instrument returned data. S303: After receiving the data packet, the upper-level node determines the order of data packet uploads in the buffer according to the instrument priority in the data packet; data packets with higher instrument priority are uploaded first; low-priority data packets are uploaded after the data packets with higher instrument priority have been uploaded or after the waiting time in the buffer has reached the waiting threshold. S304: Upload in this manner level by level, and finally upload to the computer for display and saving.
4. The wireless communication control method for threaded control instruments according to claim 1, characterized in that: The formula for determining the network strength is: Z = AX + BY; Where Z represents network strength, X represents instrument priority, Y represents signal strength, and A and B represent network parameters.
5. A wireless communication control method for threaded control instruments according to claim 1, characterized in that: In the wireless communication control platform, the higher the priority of the programmable instruments, the higher the self-organizing network level. The higher the self-organizing network level, the shorter the upload link.
6. A wireless communication control platform for threaded control instruments, used to implement the method according to any one of claims 1 to 5, characterized in that: The wireless communication control platform includes: a computer, a wireless receiver, an ad hoc network controller, and a threaded control instrument.
7. A wireless communication control platform for threaded control instruments according to claim 6, characterized in that: When the self-organizing network controller in the wireless self-organizing network communication platform of the programmable instrument is damaged, the downstream self-organizing network controller of the damaged self-organizing network controller will search for and reconnect to the adjacent working self-organizing network controller.
8. A wireless communication control platform for threaded control instruments according to claim 6, characterized in that: The wireless communication control platform for the programmed instrument allows for independent remote control of multiple automatic testing systems via a single computer. In each automatic testing system, different self-organizing network controllers have different ID numbers, used to distinguish different programmed instruments during data transmission.
9. A wireless communication control platform for threaded control instruments according to claim 6, characterized in that: The self-organizing network controller includes a GPIB interface self-organizing network controller, a USB interface self-organizing network controller, a LAN interface self-organizing network controller, an RS-232 interface self-organizing network controller, an RS-485 interface self-organizing network controller, and a CAN interface self-organizing network controller. The self-organizing network controllers with different interfaces all include a WiFi self-organizing network module.