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

Address allocation method, communication device and storage medium for serial communication equipment

A technology of serial port communication and distribution method, which is applied in the direction of instrumentation, electrical digital data processing, etc., and can solve the problems of unable to solve the data communication of the main equipment, and unable to apply to communication equipment occasions, etc.

Active Publication Date: 2021-08-20
浙江中拓合控科技有限公司
View PDF9 Cites 0 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
  • Address allocation method, communication device and storage medium for serial communication equipment
  • Address allocation method, communication device and storage medium for serial communication equipment
  • Address allocation method, communication device and storage medium for serial communication equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] 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. This embodiment discloses a method for allocating addresses for serial communication devices. The serial communication device has at least two serial ports. The method can be use...

Embodiment 2

[0075] This embodiment also discloses a communication device as a slave device of a serial port communication system, which has a first serial port and a second serial port. The communication device includes an instruction acquisition module, a judgment module, a device information generation module, and an address update module, wherein: the instruction The obtaining module is used to obtain the address setting instruction sent by the upper-level slave device through the first serial port, and the address setting instruction includes the configuration address of the current-level device; the judging module is used to judge whether there is a next-level slave connected to the second serial port. equipment; a device information generating module, used to generate tail device information and pass the upper-level slave device after performing address configuration according to the address setting instruction sent by the upper-level slave device when there is no lower-level slave de...

Embodiment 3

[0080] attached Figure 4 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 connected in series through the serial port step by step, wherein the master device is configured to send an address to the first-level slave device connected to it A setting instruction, the address setting instruction includes the configuration address of the first-level slave device. After the first-level slave device is configured to perform address configuration according to the address setting instruction, the configuration address in the address setting instruction is updated according to the preset address change value and then sent to the next-level slave device, wherein the next-level slave device is It is configured to be configured according to the update address sent by the previous slave device when it is the last level, and then the address information of this level i...

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 an address assignment method for a serial port communication device. The serial port communication device has at least two serial ports, including obtaining an address setting instruction sent by an upper-level slave device through the first serial port, and judging whether there is an address setting instruction related to the second serial port. If there is no next-level slave device connected to the second serial port, the address configuration is performed according to the address setting command sent by the upper-level slave device, and the tail device information is generated and passed through the upper-level slave device one by one. If there is a next-level slave device connected to the second serial port, the configuration address in the address setting command is modified and updated according to the preset address change value, and then sent to the next-level slave device, and the next-level The tail device information of the last-level slave device forwarded by the slave device is passed to the master device step by step through the upper-level slave device. The present invention realizes the maximum redundancy of multiple gateways, can carry out auxiliary collection at the standby gateway and switch to the main working state depending on the failure situation, increases the switching flexibility of the industrial gateway redundant system, and improves the reliability and reliability of the system Workability.

Description

technical field [0001] The invention relates to the field of industrial data communication, in particular to an address allocation method, a communication device and a storage medium for serial communication equipment. 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 devi...

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/362G06F13/42
CPCG06F13/362G06F13/4282G06F2213/0002
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