Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for updating communication state

A technology of communication status and update method, applied in the field of communication, can solve the problems that the master station cannot report equipment communication failure, data cannot be refreshed, communication failure between the master station and equipment, etc., and achieve the effect of solving the communication status of equipment

Active Publication Date: 2021-11-16
北京和利时系统集成有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In actual communication, there is a situation of interleaving: among N requests, when there are m (m<N) requests that are always unanswered, but the remaining N-m requests are answered, which will cause the data in m requests to continue It cannot be refreshed. Once the actual m requests contain key data, it should be regarded as a communication failure between the master station and the device. However, according to the conventional online or offline calculation method of the device, the master station may not be able to report the communication failure of the device.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for updating communication state
  • Method and device for updating communication state
  • Method and device for updating communication state

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] figure 2 It is a schematic diagram of the method for updating the communication status of the embodiment of the present invention, such as figure 2 As shown, the communication status update method of this embodiment includes:

[0060] S11. After sending a round of requests, count the number of consecutive timeouts of each request contained in a round of requests.

[0061] In an exemplary embodiment, a round of requests may include N requests respectively, where N is a positive integer;

[0062] In an exemplary embodiment, counting the number of consecutive timeouts of each request included in a round of requests includes:

[0063] Each request is counted in the following manner: if the request times out in this round, add 1 to the number of consecutive timeouts corresponding to the request; if a response to the request is received in this round, set the number of consecutive timeouts to is zero;

[0064] Wherein, the number of consecutive timeouts of a request ref...

Embodiment 2

[0078] The calculation scheme of the device communication state in Embodiment 2 of the present invention is as follows:

[0079] Among the N requests, each request is configured with its own communication status weight W (W≥0), the default value is 1, the larger the W, the greater the weight of the request for judging the communication status of the device, and the smaller the W, the smaller the weight of the request for judging the communication status of the device The smaller the weight of W is, it means that the request does not participate in the communication state calculation.

[0080] We define the comprehensive calculation value CW of the device communication state as:

[0081]

[0082] Among them, i is the request number, i∈[1,N], Ci is the current continuous timeout times of the request number i (corresponding to the request Qi) (the initial value of Ci is 0, the timeout of the request number i is accumulated by 1 once, and the master station receives When the d...

example 1

[0096]Example 1: We assume that the communication state weight of each request is 1, and formula (2) is applied at this time. Obviously, after going through a complete round of polling sequence, CW will become 6. Since CW0=5, CW≥ CW0, at this time, it is considered that the communication status between the master station and the slave station is suspicious; after a complete round of polling sequence, CW will become 12, because CW1=10, satisfying CW≥CW1, at this time, it is considered that the master station and the slave station Station communication status failure.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a communication state update method, which includes: after sending a round of requests, counting the number of consecutive timeouts of each request contained in a round of requests; according to the number of consecutive timeouts of each request and the preset Calculate the comprehensive value of the communication state according to the weight of the communication state of each request; compare the comprehensive value of the communication state with the preset threshold value; update the communication state according to the comparison result. The invention also discloses a communication state updating device. The method and device provided by the invention can accurately judge the equipment communication state in the interleaving situation.

Description

technical field [0001] The present invention relates to the communication field, in particular to a communication state updating method and device in the communication field. Background technique [0002] The Modbus protocol is a widely used response communication protocol in the field of industrial automation and has become a general industrial standard. Modbus protocol is divided into Modbus RTU protocol based on serial port (RS-232, RS-422, RS-485) and Modbus TCP protocol based on TCP / IP Ethernet. Modbus communication uses master (Master, also called master station)-slave (Slave, also called slave station, equipment) technology, master station initializes transmission (query, Query, also called request, sequential query is called polling), slave station according to The master station queries the data provided and responds accordingly. The master station can communicate with the slave stations alone, and can also communicate with all slave stations in a broadcast manner...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/26H04L12/24
CPCH04L41/06H04L41/0631H04L43/0823H04L43/0852H04L43/16
Inventor 贺学文房茂彬熊辉
Owner 北京和利时系统集成有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More