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

Serial port communication system and communication method

A technology of serial communication and communication method, which is applied in the field of industrial data communication and can solve the problems of inability to solve the data communication of the main equipment and the occasions where the communication equipment cannot be applied.

Active Publication Date: 2021-06-11
浙江中拓合控科技有限公司
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, although this prior art can realize the automatic allocation of slave device addresses and data communication, it requires that the buses of all device interfaces be connected together, and all slave devices can simultaneously receive the data sent by the master device, and the communication interfaces all include a Group bus and a group of strobe signals, so it cannot be applied to some current communication equipment occasions with only a few serial communication interfaces, and cannot solve the problem of using a master device to communicate with multiple slave devices through a single serial communication interface.

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 and communication method
  • Serial port communication system and communication method
  • Serial port communication system and communication method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] Serial port communication is a widely used single-bus data communication, which is widely used in computer serial interface and data communication between devices. It is easy to use, fast, and is a full-duplex communication method, and two devices can initiate data transmission and reception at the same time. Among them, the serial port usually adopts the RS232 standard. The serial port communication allows one-to-one connection, and does not allow one-to-many and many-to-many networking. Therefore, when there is a master device and multiple slave devices, and each device only has a serial port communication interface, this How to implement data communication between the master device and multiple slave devices through a single serial port communication interface becomes a problem to be solved. The serial port communication system disclosed in this embodiment includes a master device and multiple slave devices, and the master device and multiple slave devices are connec...

Embodiment 2

[0048] attached figure 2 This embodiment discloses a communication method for a serial port communication system, wherein the communication system includes a master device and a plurality of slave devices, and the master device and the plurality of slave devices are connected in series through serial ports step by step. This communication method can also be applied to various serial communication systems disclosed in Embodiment 1 above. The method specifically includes the following steps:

[0049] Step S1, the master device sends an address setting instruction to the first-level slave device, and the address setting instruction includes the configuration address of the first-level slave device.

[0050]In some embodiments, the master device has at least one serial port, and the slave device has at least two serial ports. First connect the TX and RX of one serial port of the master device, and connect the TX and RX of the two serial ports of the slave device respectively. ....

Embodiment 3

[0090] attached Figure 10 This embodiment discloses a method for allocating addresses for serial communication devices, and the method is used for slave devices with at least two serial ports. The slave device can be used in a serial port communication system, which includes a master device and multiple slave devices, wherein the master device is connected in series with multiple slave devices through a serial port, where the serial port can be an RS232 bus, and of course it can also be other Serial bus, of course, this communication method can also be applied to slave devices of various serial communication systems disclosed in Embodiment 1 above. In this embodiment, the address allocation method can be used in a serial port communication system. The serial port communication system has at least one serial port, and the slave device has at least two serial ports. The TX and RX of the two serial ports of the device are connected. And connect the serial port of the master de...

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 and communication method. The serial port communication system comprises a master device and a plurality of slave devices, the master device and the slave devices are connected in series step by step through serial ports, the master device is configured to send an address setting instruction to a first-stage slave device connected with the master device, and the address setting instruction comprises a configuration address of the first-stage slave device; the first-level slave device is configured to perform address configuration according to the address setting instruction, update a configuration address in the address setting instruction according to a preset address change value, and send the updated configuration address to the next-level slave device; the master device is configured to compare the received address information of the last-stage slave device with the stored number of slave devices to confirm whether a fault exists, and the master device achieves a one-master multi-slave communication mode through a single serial port.

Description

technical field [0001] The invention relates to the field of industrial data communication, in particular to a serial port communication system and a communication method. Background technique [0002] Serial port communication is a widely used single-bus data communication, which is widely used in computer serial interface and data communication between devices. Serial port communication is easy to use and fast. It is a full-duplex communication method, and data transmission and reception can be initiated between two devices at the same time. At present, the serial port communication usually adopts the RS232 standard, and the serial port communication only allows one-to-one connection, but does not allow one-to-many and many-to-many networking, so the communication address is not involved in the use of serial port communication. However, in many applications, there is one master device and multiple slave devices, and each device only has a serial communication interface. ...

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/362G06F13/42
CPCG06F13/362G06F13/4282G06F2213/0002Y02P90/02
Inventor 林宏飞聂浩占志良陈海东
Owner 浙江中拓合控科技有限公司
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