CN113098654A - User running state detection method and device of high-speed industrial communication system - Google Patents

User running state detection method and device of high-speed industrial communication system Download PDF

Info

Publication number
CN113098654A
CN113098654A CN201911340830.8A CN201911340830A CN113098654A CN 113098654 A CN113098654 A CN 113098654A CN 201911340830 A CN201911340830 A CN 201911340830A CN 113098654 A CN113098654 A CN 113098654A
Authority
CN
China
Prior art keywords
checking
message
user node
error
communication system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911340830.8A
Other languages
Chinese (zh)
Inventor
康良川
王明东
邵枝晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Neuron Network Technology Co ltd
Original Assignee
Beijing Neuron Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Neuron Network Technology Co ltd filed Critical Beijing Neuron Network Technology Co ltd
Priority to CN201911340830.8A priority Critical patent/CN113098654A/en
Publication of CN113098654A publication Critical patent/CN113098654A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Abstract

The invention relates to a user running state detection method of a high-speed industrial communication system. According to the user state detection method and device of the high-speed industrial communication system disclosed by the invention, the state of the user node can be quickly and effectively obtained by checking the message sent by the user node and counting the checking errors, so that effective countermeasures can be started in time when the user node fails or is offline. The high-speed industrial communication system is mainly used for solving the problems that the traditional industrial field bus is low in bandwidth, cannot simultaneously bear real time and non-real time and is complex in network structure, can support IPV6 address communication, can support time-triggered industrial control communication, can support TSN, and can support safety mechanisms such as white lists, depth detection, data encryption and the like.

Description

User running state detection method and device of high-speed industrial communication system
Technical Field
The invention belongs to the field of industrial control and communication, and particularly relates to a user running state detection method and device of a high-speed industrial communication system.
Background
In an industrial bus, the state of a user needs to be acquired in time, such as offline, offline or online, and particularly, the state of the user needs to be acquired in time, so that a control node can report a fault when judging that the fault occurs, and a countermeasure can be started as soon as possible.
The high-speed industrial communication system is a brand-new high-speed industrial control bus, and the method for detecting the offline state of the user is different because the high-speed industrial control bus is different from the basic communication mechanism of other existing industrial buses (such as a CAN bus).
At present, no scheme related to the detection of the user operation state of the high-speed industrial communication system exists in the prior art.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for detecting a user operating status to acquire the status of the user in time according to the characteristics of the high-speed industrial communication system.
According to a first aspect of the present invention, there is provided a user operation state detection method for a high-speed industrial bus system, comprising:
receiving a message sent by a user node;
checking the message;
counting the number of error checking results in the process of checking the message; and
and when the number of the error check results is larger than a preset threshold value, judging that the user node is in an off-line state.
According to a second aspect of the present invention, there is provided a user operation state detection apparatus of a high-speed industrial bus system, comprising:
a receiving unit, configured to receive a message sent by a user node;
the checking unit is used for checking the message;
the statistical unit is used for counting the number of error checking results in the process of checking the message; and
and the judging unit is used for judging that the user node is in an off-line state when the number of the error checking results is greater than a preset threshold value.
According to a third aspect of the present invention, there is provided an electronic apparatus comprising:
a processor;
a memory communicatively connected to the processor and storing computer instructions that, when executed by the processor, cause the processor to perform the method of the first aspect.
According to a fourth aspect of the present invention, there is provided a non-transitory computer readable storage medium storing computer instructions which, when executed by a processor, cause the processor to perform the method of the first aspect.
According to the method and the device for detecting the user running state of the high-speed industrial communication system, the state of the user node can be quickly and effectively obtained by checking the message sent by the user node and counting the checking errors, and effective countermeasures can be started in time when the user node fails or is offline.
Drawings
For further clarity of explanation of the features and technical content of the present invention, reference should be made to the following detailed description of the present invention and accompanying drawings, which are provided for reference and description purposes only and are not intended to limit the present invention.
In the following drawings:
fig. 1 is a schematic diagram of a high-speed industrial communication system.
Fig. 2 is a schematic diagram of a user node transmitting a time slot message to a control node in a high-speed industrial communication system according to an embodiment of the present invention.
Fig. 3 is a flowchart of a user operation state detection method of a high-speed industrial communication system according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a user operation state detection apparatus of a high-speed industrial communication system according to an embodiment of the present invention.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention disclosed are described below with reference to specific embodiments, and those skilled in the art can understand the advantages and effects of the present invention from the disclosure of the present specification. The invention is capable of other and different embodiments and its several details are capable of modification and various other changes, which can be made in various details within the specification and without departing from the spirit and scope of the invention. The drawings of the present invention are for illustrative purposes only and are not drawn to scale. The following embodiments will further explain the related art of the present invention in detail, but the disclosure is not intended to limit the scope of the present invention.
The high-speed industrial communication system is mainly used for solving the problems that the traditional bus of the industrial field is low in bandwidth, cannot simultaneously bear real time and non-real time and is complex in network structure, can support IPV6 address communication, can support time-triggered industrial control communication, can support TSN, and can support safety mechanisms such as white lists, depth detection, data encryption and the like.
In the embodiment of the invention, the method and the device for detecting the user running state of the high-speed industrial communication system are provided, the state of the user node can be quickly and effectively obtained by checking and counting the error of the check on the message sent by the user node, and effective countermeasures can be started in time when the user node fails or is offline.
Fig. 1 is a schematic diagram of a high-speed industrial communication system. As shown in fig. 1, the high-speed industrial communication system is an industrial field bus system which adopts a two-wire non-bridging medium, has multiple nodes, high bandwidth and time sensitivity, is used for automatically controlling the transmission and application of real-time data and non-real-time data of an industrial field such as process control, discrete control and the like, and is compatible with applications such as ISO/IEC/IEEE 8802-3 ethernet and IPv 6. The high-speed industrial communication system has the characteristics of high bandwidth, high real-time performance, long distance and high reliability transmission, is simple to wire and install, provides convenient network maintenance and supports the utilization of the existing cable assets.
The basic reference model of the network architecture of the high-speed industrial communication system is shown in fig. 1. A high-speed industrial communication system can support 254 active nodes, one of which is a Control Node (CN) and the other of which is a Terminal Node (also called a user Node (TN)). The control node is responsible for managing, distributing and recovering system resources, pushing system configuration to all nodes in real time, distributing communication bandwidth and the like. The high-speed industrial communication system uses bus type networking and provides fixed bandwidth data service and variable bandwidth data service supporting burst data in a mode of system pre-configuration or dynamic application; the high-speed industrial communication system can provide reliable and deterministic load bearing for periodically sampled data, bursty control and alarm and IPv4/IPv6 data in an ISO/IEC/IEEE 8802-3 Ethernet grid mode. The high-speed industrial communication system has a high-precision clock synchronization function and provides deterministic data transmission service for time-sensitive and non-time-sensitive services based on time triggering.
Fig. 2 is a schematic diagram of a user node transmitting a time slot message to a control node in a high-speed industrial communication system according to an embodiment of the present invention. The CN is responsible for the configuration and management work of the whole network and also comprises the work of bandwidth allocation for the communication between the TNs; the TN uses the allocated bandwidth resources for information exchange to accomplish specific control tasks.
The minimum time slice unit in the high-speed industrial communication system is a time slot (TimeSlot), and a plurality of (for example, 64) time slots (TimeSlot) form one Frame (Frame). And a plurality of (e.g., 256) frames (frames) constitute one Super-Frame (Super-Frame).
As shown in fig. 2, each small box represents one time slot, and the user nodes TN1 and TN2 are allocated three time slots, respectively. It will be appreciated by those skilled in the art that the subscriber nodes TN1 and TN2 may each be assigned any number of time slots depending on the configuration of the high speed industrial communication system.
The basic composition of the high-speed industrial communication system and the allocation unit of the system resources are described above. On the basis of the above description, a user operation state detection method of the high-speed industrial communication system proposed by the present application is described in detail below. As shown in fig. 3, the method comprises the steps of:
step S201, receiving a message sent by a user node.
In order to acquire the state of the user node, the control node needs to acquire a message from the user node. In one embodiment, the control node may receive a message for a time slot of a user node in a frame. In a preferred embodiment, the control node may receive a message of the first time slot of the user node in a frame. In an alternative embodiment, the message acquired by the control node from the user node is a message of multiple time slots in one frame, for example, 2, 3, and so on. As shown in fig. 2, the control node CN obtains the messages of three time slots of the user node TN 1.
Step S202, the message is checked.
After the control node acquires the message sent by the user node, the control node checks the received message. In one embodiment, the control node checks the entirety of the message for one slot of the user node in one frame. In one embodiment, when the message acquired by the control node from the user node is a message of a plurality of time slots in one frame, the control node checks the message in each of the at least one time slot.
In a preferred embodiment, the way of checking is a Cyclic Redundancy Check (CRC). Other verification methods may be used in the art and are within the scope of the present disclosure.
Step S203, counting the number of error check results in the process of checking the message.
After the received message is checked, the checking result may be correct or the checking result may be incorrect. For the verification result to be erroneous, the number of errors needs to be counted. In one embodiment, for a message of a time slot, if the overall check result of the message of the time slot is an error, the message is recorded as an error check result. In a preferred embodiment, the number of error check results in the statistical verification of the message may be the number of statistically continuous error check results. That is, if a correct check result occurs during the process of counting the number of error check results, the error check results that have been counted need to be cleared, and then the error check results need to be counted again.
And step S204, when the number of the error checking results is larger than a preset threshold value, judging that the user node is in an off-line state.
When the user node is offline, the error check result count is continuously increased, and the control node can detect that the user node is offline according to the change of the error count value.
And when judging whether the user node is offline, the control node compares the counted number of error checking results with a preset threshold, if the number of error checking results is less than the preset threshold, the control node judges that the user node is not offline, and if the number of error checking results is more than or equal to the preset threshold, the control node judges that the user node is offline. Therefore, the control node can report the fault state, and is convenient for starting the countermeasure as soon as possible.
In addition, the setting of the threshold value can be based on the specific application scene or application environment of the high-speed industrial communication system. In one embodiment, if the application scenario or application environment is good, e.g. there is little interference, the threshold may be set relatively low; however, if the application scenario or environment is poor, e.g. there is strong interference, the threshold may be set higher. It can generally be considered that the better the application environment, the lower the threshold setting, while the worse the application environment, the higher the threshold setting.
In fact, the setting of the threshold value can be determined by a person skilled in the art by combining various factors, and any other way of setting the threshold value, which can be known by a person skilled in the art under the teaching of the present invention, falls within the scope covered by the present application.
According to the user running state detection method of the high-speed industrial communication system, the state of the user node can be quickly and effectively acquired by checking the message sent by the user node and counting the checking errors, and effective countermeasures can be started in time when the user node fails or is offline.
According to another embodiment, the invention also provides a user operation state detection device of the high-speed industrial communication system. As shown in fig. 4, the apparatus includes:
a receiving unit 301, configured to receive a message sent by a user node.
In order to acquire the status of the user node, the receiving unit 301 needs to acquire a message from the user node. In one embodiment, the receiving unit 301 may receive a message of one time slot of a user node in one frame. In a preferred embodiment, the receiving unit 301 may receive a message of a first time slot of a user node in one frame. In an alternative embodiment, the message acquired by the receiving unit 301 from the user node is a message of multiple slots in one frame, for example, 2, 3, and so on.
A checking unit 302, configured to check the message.
And after the information sent by the user node is acquired, checking the received information. In one embodiment, the checking unit 302 checks the entirety of the message of one slot of the user node in one frame. In one embodiment, when the message acquired from the user node is a message of a plurality of slots in one frame, the checking unit 302 checks the message in each of the at least one slot.
In a preferred embodiment, the way of checking is a Cyclic Redundancy Check (CRC). Other verification methods may be used in the art and are within the scope of the present disclosure.
A counting unit 303, configured to count the number of error checking results in the process of checking the message.
After the received message is checked, the checking result may be correct or the checking result may be incorrect. For the verification result to be erroneous, the number of errors needs to be counted. In one embodiment, for a message of a time slot, if the overall check result of the message of the time slot is an error, the message is recorded as an error check result.
In a preferred embodiment, the counting unit 303 counts the number of error checking results in checking the message, and may count the number of consecutive error checking results. That is, if a correct check result occurs during the process of counting the number of error check results, the error check results that have been counted need to be cleared, and then the error check results need to be counted again.
A determining unit 304, configured to determine that the user node is in an offline state when the number of the error checking results is greater than a preset threshold.
When the user node is disconnected, the error check result count is continuously increased, and the user node can be detected to be offline according to the change of the error count value.
When determining whether the user node is offline, the counted number of error checking results is compared with a preset threshold, if the number of error checking results is smaller than the preset threshold, the determining unit 304 determines that the user node is not offline, and if the number of error checking results is greater than or equal to the preset threshold, the determining unit 304 determines that the user node is offline. Therefore, the control node can report the fault state, and is convenient for starting the countermeasure as soon as possible.
In addition, the setting of the threshold value can be based on the specific application scene or application environment of the high-speed industrial communication system. In one embodiment, if the application scenario or application environment is good, e.g. there is little interference, the threshold may be set relatively low; however, if the application scenario or environment is poor, e.g. there is strong interference, the threshold may be set higher. It can generally be considered that the better the application environment, the lower the threshold setting, while the worse the application environment, the higher the threshold setting.
In fact, the setting of the threshold value can be determined by a person skilled in the art by combining various factors, and any other way of setting the threshold value, which can be known by a person skilled in the art under the teaching of the present invention, falls within the scope covered by the present application.
According to the user running state detection device of the high-speed industrial communication system, the state of the user node can be quickly and effectively acquired by checking the message sent by the user node and counting the checking errors, and effective countermeasures can be started in time when the user node fails or is offline.
Referring to fig. 5, fig. 5 provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method and refinement scheme shown in fig. 3 when executing the computer program.
The processor may be a general-purpose processor, such as a central processing unit CPU and an image processing unit GPU, but in practical applications, the processor may also be a neural network dedicated processor, such as a pulse array machine, a machine learning processor, and the like, and of course, the processor may also be a processor combining a general-purpose processor and a neural network dedicated processor, and the present application is not limited to the specific representation form of the processor.
The electronic device may include a data processing apparatus, a robot, a computer, a printer, a scanner, a tablet computer, a smart terminal, a mobile phone, a vehicle data recorder, a navigator, a sensor, a camera, a server, a cloud server, a camera, a video camera, a projector, a watch, an earphone, a mobile storage, a wearable device, a vehicle, a household appliance, and/or a medical device.
The vehicles comprise airplanes, ships and/or vehicles; the household appliances comprise a television, an air conditioner, a microwave oven, a refrigerator, an electric cooker, a humidifier, a washing machine, an electric lamp, a gas stove and a range hood; the medical equipment comprises a nuclear magnetic resonance apparatus, a B-ultrasonic apparatus and/or an electrocardiograph.
Embodiments of the present application also provide a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method and refinement scheme shown in fig. 3.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform the method and refinement scheme as shown in fig. 3.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that the acts and modules referred to are not necessarily required in this application.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A user running state detection method of a high-speed industrial bus system comprises the following steps:
receiving a message sent by a user node;
checking the message;
counting the number of error checking results in the process of checking the message; and
and when the number of the error check results is larger than a preset threshold value, judging that the user node is in an off-line state.
2. The method of claim 1, wherein the receiving the message sent by the user node comprises a message for at least one time slot of the receiving user node within a frame, and wherein checking the message comprises checking the message in each of the at least one time slot.
3. The method of claim 2, wherein the counting the number of error checking results in checking the message comprises counting the number of error checking results obtained by checking the entire message in one time slot as one error checking result.
4. The method according to any one of claims 1 to 3, wherein the check is performed in a cyclic redundancy check.
5. A user operation state detection apparatus of a high-speed industrial bus system, comprising:
a receiving unit, configured to receive a message sent by a user node;
the checking unit is used for checking the message;
the statistical unit is used for counting the number of error checking results in the process of checking the message; and
and the judging unit is used for judging that the user node is in an off-line state when the number of the error checking results is greater than a preset threshold value.
6. The apparatus of claim 5, wherein the message sent by the receiving user node comprises a message for at least one time slot of the receiving user node within one frame; the checking unit is further configured to check a message in each of the at least one time slot.
7. The apparatus of claim 6, wherein the statistical unit is further configured to count an error check result obtained by checking the entire message in one slot as one error check result.
8. The apparatus according to any one of claims 5 to 7, wherein the check is performed in a cyclic redundancy check.
9. An electronic device, comprising:
a processor;
a memory communicatively coupled to the processor and storing computer instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions that, when executed by a processor, cause the processor to perform the method of any one of claims 1-4.
CN201911340830.8A 2019-12-23 2019-12-23 User running state detection method and device of high-speed industrial communication system Pending CN113098654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911340830.8A CN113098654A (en) 2019-12-23 2019-12-23 User running state detection method and device of high-speed industrial communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911340830.8A CN113098654A (en) 2019-12-23 2019-12-23 User running state detection method and device of high-speed industrial communication system

Publications (1)

Publication Number Publication Date
CN113098654A true CN113098654A (en) 2021-07-09

Family

ID=76663105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911340830.8A Pending CN113098654A (en) 2019-12-23 2019-12-23 User running state detection method and device of high-speed industrial communication system

Country Status (1)

Country Link
CN (1) CN113098654A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783759A (en) * 2010-01-19 2010-07-21 浙江吉利汽车研究院有限公司 Bus error recovery processing method
CN106656712A (en) * 2016-12-30 2017-05-10 深圳市优必选科技有限公司 Bus abnormality processing method and robot controller
CN108696297A (en) * 2017-04-10 2018-10-23 华为技术有限公司 Equipment state detecting method and device in power line communication network
CN108737574A (en) * 2018-06-28 2018-11-02 郑州云海信息技术有限公司 A kind of node off-line judgment method, device, equipment and readable storage medium storing program for executing
CN109218126A (en) * 2017-06-30 2019-01-15 中兴通讯股份有限公司 The method, apparatus and system of monitoring node existing state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783759A (en) * 2010-01-19 2010-07-21 浙江吉利汽车研究院有限公司 Bus error recovery processing method
CN106656712A (en) * 2016-12-30 2017-05-10 深圳市优必选科技有限公司 Bus abnormality processing method and robot controller
CN108696297A (en) * 2017-04-10 2018-10-23 华为技术有限公司 Equipment state detecting method and device in power line communication network
CN109218126A (en) * 2017-06-30 2019-01-15 中兴通讯股份有限公司 The method, apparatus and system of monitoring node existing state
CN108737574A (en) * 2018-06-28 2018-11-02 郑州云海信息技术有限公司 A kind of node off-line judgment method, device, equipment and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
CN100365994C (en) Method and system for regulating ethernet
JP2010028654A (en) Communication apparatus and oam frame transmission method
US11128344B2 (en) Channel switching processing method, device and system, storage medium, and electronic device
CN110601945A (en) Dual-redundancy CAN bus communication system and communication method
CN113114792A (en) Equipment ad hoc network method and device and air conditioning system
CN115174490A (en) Data transmission method and network application terminal
CN107483084B (en) Broadband carrier networking method, site and system
CN104717257A (en) Method and device for transmitting data messages
CN113098654A (en) User running state detection method and device of high-speed industrial communication system
CN109831335B (en) Data monitoring method, monitoring terminal, storage medium and data monitoring system
US20230020974A1 (en) Service Monitoring Method, Apparatus, and System
CN106717064B (en) Data transmission method, device and system of time division duplex wireless data transmission system
CN113098795A (en) Reserved bandwidth allocation method and device based on dynamic network in high-speed industrial bus communication system
CN113098737B (en) User node admission control method and device and electronic equipment
CN111740881B (en) Network card link detection method, system, equipment and computer storage medium
CN114422412B (en) Equipment detection method and device and communication equipment
CN109756384B (en) Data source state determination method and device and computer readable storage medium
CN112312373A (en) Channel optimization method, system and computer readable storage medium
CN113037584B (en) Node state detection method, device, equipment and storage medium
CN106412657B (en) A kind of method and system of set-top box programming sequence code
US9942123B2 (en) Device and method for monitoring communication in network including a plurality of nodes
CN113098744B (en) User node discovery method and device, electronic equipment and storage medium
CN113757932B (en) Air conditioner communication fault processing method and device, computer equipment and storage medium
CN114666425B (en) Communication method and device of wind power plant control equipment
CN114584630B (en) Communication method and device based on field bus protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210709

RJ01 Rejection of invention patent application after publication