Unlock instant, AI-driven research and patent intelligence for your innovation.

A bus polling method and device

A polling method and a polling device technology, applied in the field of network communication, can solve the problems of polling cycle increase and polling cycle impact, etc.

Active Publication Date: 2020-12-15
北京和利时系统集成有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Obviously, when the traditional polling method is normally online, the polling cycle is normal, but once a device on the bus is offline, the polling cycle will be significantly affected, and the polling cycle will be significantly increased with the increase of offline devices on the bus. increase

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
  • A bus polling method and device
  • A bus polling method and device
  • A bus polling method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0056] Embodiment 1 bus polling method

[0057] The embodiment of the present invention provides a bus polling method, comprising the following steps:

[0058] Step 401: Divide polled devices into an offline device group and an online device group;

[0059] At the initial stage of startup, the status of all devices is unknown, and the polling opportunities of all devices are equal. All polled devices can be included in the online device group, and the number of devices in the offline device group is 0.

[0060] Step 402: In the current diagnosis cycle, send n times the first polling request to each polled device in the offline device group, and send multiple second polling requests in sequence to each polled device in the online device group, n is a natural number greater than or equal to 1;

[0061] In an exemplary embodiment, the step 402 includes:

[0062] In the current diagnosis cycle, send the first polling request once to each polled device in the offline device grou...

Embodiment 2

[0087] Embodiment 2 bus polling device

[0088] The embodiment of the present invention also provides a bus polling device, including a processor and a memory, wherein: the processor is used to execute the program stored in the memory, so as to realize the steps of the bus polling method described in any one of the above .

Embodiment 3

[0089] Embodiment 3 bus polling device

[0090] Such as Figure 5 As shown, the embodiment of the present invention also provides a bus polling device, including a grouping module 501 and a polling module 502, wherein:

[0091] The grouping module 501 is configured to divide the polled devices into an offline device group and an online device group; upon receiving the first notification from the polling module 502, move the polled devices of the offline device group into the online device group; receive The second notification of the polling module 502 is to move the polled device of the online device group into the offline device group;

[0092] The polling module 502 is configured to send a first polling request n times to each polled device in the offline device group within the current diagnosis cycle, and send a plurality of second polling requests to each polled device in the online device group sequentially. Polling request, n is a natural number greater than or equal...

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 bus polling method and device. The bus polling method comprises the steps that polled equipment is divided into an offline equipment group and an online equipment group; in the current diagnosis period, a first polling request is sent to each polled device of the offline device group for n times, n is greater than or equal to 1, and a second polling request is sequentially sent to each polled device of the online device group for multiple times; when a first polling response of polled equipment of the offline equipment group is received and it is judged that the polled equipment is online according to the received first polling response, the polled equipment is moved into the online equipment group; and when the second polling response of the polled device of the online device group is not received and it is judged that the polled device is offline according to the fact that the second polling response is not received, the polled device is moved into the offline device group. According to the invention, different polling times are set for the offline device and the online device, so that the polling period is not increased because the device on the bus is offline.

Description

technical field [0001] The present application relates to but not limited to the technical field of network communication, and in particular relates to a bus polling method and device. Background technique [0002] Response protocol is a widely used communication protocol in the field of industrial automation. It has become a general industrial standard and has been widely used in the field of automatic communication. Typical response protocols include Modbus (a serial communication protocol), International Electrotechnical Commission IEC60870-5-101 standard, IEC60870-5-103 standard, etc. In the serial bus communication, the communication uses the master (Master, also known as the master station)-slave (Slave, also known as the slave station, equipment) technology. At present, in the field of industrial automation, the most widely used serial bus is a two-wire system RS485 half-duplex mode. Such as figure 1 As shown, at the same time, the master station can only initiate ...

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): G06F13/36
CPCG06F13/366
Inventor 贺学文智艳利李元鹏黄亮李剑
Owner 北京和利时系统集成有限公司