CN-122002329-A - Multi-master-slave multi-monitoring weighing communication networking method and system
Abstract
The invention relates to the technical field of industrial wireless communication and automatic control, in particular to a weighing communication networking method and system with multiple masters and multiple slaves, which comprises the steps of obtaining a data load to be distributed, generating a mixed broadcast frame with a specific transmitting authority indication, starting an instruction receiving window with preset duration, extracting a dynamic authorization token field to carry out matching verification with a local identifier, responding to matching of the dynamic authorization token field and the local identifier, triggering an uplink instruction transmitting process after a preset radio frequency protection time interval exists in an instruction cache queue of a slave communication node, responding to mismatching of the dynamic authorization token field and the local identifier, or keeping a radio frequency transmitting silence state in an instruction receiving window by the slave communication node.
Inventors
- HE JUN
- GU LINDE
- XU JIE
- Gao Yingneng
- HAN YUQI
Assignees
- 浙江蓝箭称重技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260410
Claims (8)
- 1. The weighing communication networking method with multiple masters and multiple slaves is characterized by comprising the following steps: Configuring a multi-master one-slave communication network, wherein the network comprises a unique master communication node and a plurality of slave communication nodes, and presetting a slave communication node identification list; the main communication node periodically executes a broadcast communication flow, including: step S1, acquiring a data load to be distributed, and generating a mixed broadcast frame, wherein the data structure of the mixed broadcast frame comprises a data load field and a dynamic authorization token field; S2, extracting a target identifier from the slave communication node identifier list according to the current polling index value, writing the target identifier into the dynamic authorization token field, and generating a mixed broadcast frame with a specific transmitting authority indication; Step S3, broadcasting the mixed broadcast frame through a wireless communication channel, immediately switching to a receiving monitoring state after the broadcasting is completed, and starting an instruction receiving window with preset duration; Step S4, each slave communication node receives and analyzes the mixed broadcast frame, extracts the data load field to update the local state, and extracts the dynamic authorization token field to carry out matching verification with the local identifier; Step S5, responding to the matching of the dynamic authorization token field and the local identifier, and triggering an uplink instruction transmitting flow after a preset radio frequency protection time interval when an instruction to be transmitted exists in an instruction cache queue of the slave communication node; And step S6, in response to the fact that the dynamic authorization token field is not matched with the local identifier or the instruction cache queue is empty, the slave communication node keeps a radio frequency emission silence state in the instruction receiving window, and unless the dynamic authorization token field indicates a global registration mode, the unregistered slave communication node is allowed to execute an access flow according to preset rules.
- 2. The multi-master-slave multi-monitor weighing communication networking method according to claim 1, wherein said extracting the target identifier from the slave communication node identifier list according to the current polling index value comprises: The master communication node maintaining an internal poll counter; performing modular operation on the total number of slave communication nodes based on the internal polling counter to acquire a current polling index value; Performing table look-up operation in the slave communication node identification list according to the current polling index value, and determining a target slave communication node which only obtains uplink transmission permission in the current communication period; After the transmission of the hybrid broadcast frame is completed, an increment operation is performed on the internal poll counter to update the authorized target of the next broadcast.
- 3. The multi-master-slave multi-monitor weighing communication networking method of claim 1, wherein the data structure of the hybrid broadcast frame comprises: a synchronization header sequence at the frame head for realizing clock synchronization of the slave communication node and the master communication node; a data load field following the synchronization header sequence, for carrying application layer data to be distributed; the dynamic authorization token field is positioned behind the data load field and is used for indicating the exclusive transmitting right attribution of an uplink channel in the current communication period; and the cyclic redundancy check code is positioned at the tail of the frame and is used for verifying the integrity of data transmission.
- 4. The method for weighing communication networking with multiple masters and multiple slaves and multiple listens according to claim 1, wherein the method is characterized in that the method is switched to a receiving listening state immediately after broadcasting is completed, and an instruction receiving window with preset duration is opened, and comprises the following steps: The master communication node starts a high-precision timer at the end time of sending the mixed broadcast frame; Controlling the radio frequency transceiver unit to switch from a transmitting mode to a receiving mode; Monitoring a carrier signal and a protocol preamble in a wireless communication channel for the duration of the instruction receiving window; In response to not detecting a valid upstream control command frame within the command reception window, the master communication node turns off the reception mode and enters a low power state or waits for the next broadcast period.
- 5. The method for weighing communication networking with multiple masters and multiple slaves and multiple listens according to claim 1, wherein triggering the uplink command transmission flow after the preset radio frequency protection time interval comprises: the slave communication node calculates the time difference between the receiving end time of the mixed broadcast frame and the planned uplink instruction transmitting time; ensuring that the time difference is larger than or equal to a preset receiving and transmitting switching protection time so as to avoid overlapping interference with the preamble broadcasting signal; Extracting an instruction to be sent from the instruction cache queue, and packaging the instruction to be sent into a control instruction frame conforming to a protocol format; And transmitting the control instruction frame in a burst transmission mode, and immediately clearing the corresponding entry in the instruction cache queue after the transmission is completed.
- 6. The multi-master-slave multi-monitor weighing communication networking method of claim 4, further comprising: analyzing and executing the control instruction frame in response to the master communication node receiving a valid control instruction frame in the instruction receiving window; updating internal state parameters of the master communication node based on the execution result; And encoding the updated state parameters into the data load field of the mixed broadcast frame of the next communication period to realize state feedback of the slave communication node.
- 7. The multi-master-slave multi-monitor weighing communication networking method of claim 1, wherein said slave communication node maintains a radio frequency transmit silence state comprising: The slave communication node switching off its transmit power amplifier for the duration of the instruction receive window; only maintaining the receiving circuit in an operating state to ensure continuous listening to the mixed broadcast frames of a subsequent period; and the risk of co-channel interference generated by a plurality of slave communication nodes simultaneously trying to compete for an uplink channel is eliminated through a forced silencing mechanism of a physical layer.
- 8. A multi-master-slave multi-monitor weighing communication networking system, characterized in that it is applied to the method of any one of claims 1-7, comprising: a master communication node module for managing network communication timing and data distribution, comprising: A frame generation unit, configured to construct a hybrid broadcast frame containing the dynamic authorization token field based on data to be distributed and polling logic; the main control receiving and transmitting unit is used for broadcasting the mixed broadcast frame and managing the instruction receiving window; A plurality of slave communication node modules for receiving data and contention transmission instructions, each slave communication node module comprising: the analysis monitoring unit is used for receiving and analyzing the mixed broadcast frame and extracting the data load field and the dynamic authorization token field; The logic judgment unit is used for comparing the dynamic authorization token field with a local identifier and generating a transmitting enabling signal or a silencing control signal by combining the state of the instruction cache queue; and the slave transmitting unit is used for responding to the transmission enabling signal and transmitting a control instruction frame after the radio frequency protection time gap.
Description
Multi-master-slave multi-monitoring weighing communication networking method and system Technical Field The invention relates to the technical field of industrial wireless communication and automatic control, in particular to a weighing communication networking method and system with multiple masters and multiple slaves. Background Because the electromagnetic environment of the industrial site is complex, and the plurality of control terminals often need to monitor the weighing data in real time and issue control instructions at the same time, the wireless channel resource competition is intense; In order to solve the problem of multipoint communication, the prior proposal generally adopts a competition access mechanism based on random back-off, but the proposal can operate when the number of nodes is small, and because the proposal highly depends on a random conflict detection and retransmission mechanism, and signal collision is very easy to generate under a multi-controller high concurrency environment, the robustness of a communication link is poor, the response delay has uncertainty, and the strict requirements on the real-time performance of data and the certainty of control instructions under a high-precision weighing scene are difficult to support, so how to eliminate the physical collision generated by the concurrency control of multiple nodes while ensuring the real-time performance of weighing data broadcast, and improve the reliability of instruction transmission and the timeliness of system response becomes a technical problem to be solved. Disclosure of Invention The invention aims to provide a multi-master-slave multi-monitoring weighing communication networking method and system, which aim to solve the problem of wireless channel conflict caused by multi-node concurrency control in an industrial weighing scene, and the method and system have the following specific technical scheme that a random competition mechanism is converted into deterministic time division multiplexing logic through embedding a dynamic authorization token in a broadcasting frame, so that the real-time performance of weighing data broadcasting is ensured, the collision of a physical layer is eliminated, and the robustness and response certainty of industrial control in a complex electromagnetic environment are improved: A weighing communication networking method with multiple masters and multiple slaves comprises the following steps: Configuring a multi-master one-slave communication network, wherein the network comprises a unique master communication node and a plurality of slave communication nodes, and presetting a slave communication node identification list; the main communication node periodically executes a broadcast communication flow, including: step S1, acquiring a data load to be distributed, and generating a mixed broadcast frame, wherein the data structure of the mixed broadcast frame comprises a data load field and a dynamic authorization token field; S2, extracting a target identifier from the slave communication node identifier list according to the current polling index value, writing the target identifier into the dynamic authorization token field, and generating a mixed broadcast frame with a specific transmitting authority indication; Step S3, broadcasting the mixed broadcast frame through a wireless communication channel, immediately switching to a receiving monitoring state after the broadcasting is completed, and starting an instruction receiving window with preset duration; Step S4, each slave communication node receives and analyzes the mixed broadcast frame, extracts the data load field to update the local state, and extracts the dynamic authorization token field to carry out matching verification with the local identifier; Step S5, responding to the matching of the dynamic authorization token field and the local identifier, and triggering an uplink instruction transmitting flow after a preset radio frequency protection time interval when an instruction to be transmitted exists in an instruction cache queue of the slave communication node; And step S6, in response to the fact that the dynamic authorization token field is not matched with the local identifier or the instruction cache queue is empty, the slave communication node keeps a radio frequency emission silence state in the instruction receiving window, and unless the dynamic authorization token field indicates a global registration mode, the unregistered slave communication node is allowed to execute an access flow according to preset rules. Preferably, extracting the target identifier from the slave communication node identifier list according to the current polling index value includes: The master communication node maintaining an internal poll counter; performing modular operation on the total number of slave communication nodes based on the internal polling counter to acquire a current polling index value; Performing table look-up ope