Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Serial port communication system, method and device and electronic equipment

A serial port communication, serial port technology, applied in the field of communication, can solve the problem of not supporting the simultaneous acquisition of multi-master data, and achieve the effect of improving integrity and security

Inactive Publication Date: 2020-05-15
BEIJING LIKONG HUACON TECH
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Therefore, the technical problem to be solved by the present invention is to overcome the defect that the existing question-and-answer serial communication method does not support simultaneous data collection of multiple master stations, thereby providing a serial communication system, method, device and electronic equipment

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
  • Serial port communication system, method and device and electronic equipment
  • Serial port communication system, method and device and electronic equipment
  • Serial port communication system, method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] The embodiment of the present application provides a serial port communication system, such as figure 1 As shown, the serial communication system includes:

[0029] A plurality of slave stations, the plurality of slave stations are respectively connected to the serial bus for communication.

[0030] Exemplarily, the slave station can be any field device that can communicate with the master station. The embodiment of the present application does not limit the type of the slave station. Those skilled in the art can determine according to actual needs. Multiple slave stations and serial ports For the bus communication connection, the embodiment of the present application does not limit the number of slave stations. Such as figure 1 As shown, the serial port communication system in the embodiment of the present application includes four slave stations, that is, slave station 1, slave station 2, slave station 3, and slave station 4.

[0031] An embedded device, one side o...

Embodiment 2

[0037] The embodiment of the present application also provides a serial communication method, which is used in the serial communication system described in Embodiment 1, such as figure 2 As shown, the serial communication method includes:

[0038] Step 201, polling and collecting data of multiple slave stations.

[0039] As an optional implementation manner of the present application, step 201 includes: sequentially sending a data request instruction to each of the slave stations in a polling manner; receiving the slave station data uploaded by each of the slave stations.

[0040] Exemplarily, by simulating the mode of the master station to issue instructions, the multiple slave stations in the serial communication system are sent data request instructions according to the target communication protocol in a polling manner, and the target communication protocol can be the Modbus protocol, or It is a serial port communication protocol such as R485, and the embodiment of the pr...

Embodiment 3

[0050] The embodiment of the present application also provides a serial communication device, which is used in the serial communication system described in Embodiment 1, such as Figure 4 shown, including:

[0051] Acquisition module 401, used for polling and collecting multiple slave station data;

[0052] The storage module 402 is configured to cache the collected slave station data in a plurality of preset simulated slave stations supporting multiple connections, and each of the simulated slave stations is communicatively connected to the target serial port link;

[0053] The feedback module 403 is configured to feed back data to the master station when receiving a data request instruction sent by any master station through the target serial port link.

[0054] As an optional implementation manner of the present application, the collection module 401 is configured to sequentially send data request instructions to each of the slave stations in a polling manner; and receive ...

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 serial port communication system, method and device and electronic equipment, and relates to the technical field of communication. The serial port communication system comprises a plurality of slave stations which are respectively in communication connection with a serial port bus, and an embedded device, wherein one side of the embedded device is connected with the serial port bus through a first serial port, the other side of the embedded device is in communication connection with a plurality of main stations through a plurality of second serial ports, each main station is in communication connection with a target number of the second serial ports and the second serial ports connected between the different main stations are different. Each main station can finish communication by independently occupying one or more serial ports, isolation communication between different main stations is realized, therefore, the situations of mutual communication influence and data communication chaos due to the fact that polling data sending between different main stations is not effectively controlled when multiple main stations carry out question and answer type serialport protocol communication can be avoided, meanwhile, a communication serial port is independently distributed to each main station, and the integrity and safety of data transmission of multi-main-station communication are improved.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a serial port communication system, method, device and electronic equipment. Background technique [0002] Serial communication (Serial Communication) refers to a communication method for data transmission between the master station and the slave station through the serial bus according to the communication protocol. Serial port communication is a half-duplex mode. When using a question-and-answer serial port protocol (such as Modbus protocol) for communication, the master station sends request commands to multiple slave stations through the serial port in a polling manner, and when the slave station receives the request command, it replies with a response command. , that is, the slave station can only respond passively. When there are multiple master stations, the slave station cannot distinguish which master station sent the request command. [0003] In the prior art, fo...

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 Applications(China)
IPC IPC(8): G06F13/42G06F13/40
CPCG06F13/4068G06F13/4282
Inventor 王刚
Owner BEIJING LIKONG HUACON TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products