CN101631148A - Communication method for allocating dynamic addresses in serial communication protocols - Google Patents

Communication method for allocating dynamic addresses in serial communication protocols Download PDF

Info

Publication number
CN101631148A
CN101631148A CN200910194409A CN200910194409A CN101631148A CN 101631148 A CN101631148 A CN 101631148A CN 200910194409 A CN200910194409 A CN 200910194409A CN 200910194409 A CN200910194409 A CN 200910194409A CN 101631148 A CN101631148 A CN 101631148A
Authority
CN
China
Prior art keywords
slave
main frame
address
sends
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN200910194409A
Other languages
Chinese (zh)
Inventor
曹永平
周俊华
郑之开
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Weihong Electronic Technology Ltd.
Original Assignee
SHANGHAI WEIHONG TECHNOLOGYCO Ltd
Shanghai Naikai Electronic Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHANGHAI WEIHONG TECHNOLOGYCO Ltd, Shanghai Naikai Electronic Science and Technology Co Ltd filed Critical SHANGHAI WEIHONG TECHNOLOGYCO Ltd
Priority to CN200910194409A priority Critical patent/CN101631148A/en
Publication of CN101631148A publication Critical patent/CN101631148A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention relates to a communication method for allocating dynamic addresses in serial communication protocols. A host system and a slave system are communicated in the following mode: broadcasting an address request, sending out an output port signal; and receiving an input port signal. The host system and the slave system are connected in a topological serial structure to realize port extension. The communication method can also realize the functions of the host system of dynamically adding and deleting a slave computer address.

Description

The communication means of address dynamic assignment in the serial communication protocol
Technical field
The present invention relates to the industrial communication technical field, concrete relate to a kind of communication means of in serial communication protocol, realizing the address dynamic assignment.
Background technology
Under industrial environment, because the hardware port number is limited, existing input/output port (I/O mouth) number deficiency consequently can not satisfy the control requirement, at this moment often just need under the situation of the original hardware of less change port be expanded sometimes.How to design that a kind of to take port few, but the Extended Capabilities Port number is many, and can carry out real-time interpolation to the address of the slave that inserts, deletion is a problem to be solved by this invention.
Summary of the invention
Technical problem to be solved by this invention is, overcomes the defective that exists in the existing current techique, and the communication means of address dynamic assignment in a kind of serial communication protocol is provided.Can utilize serial communication expanding system port number under the situation that only changes a small amount of hardware, the dynamic assignment slave addresses is added the deletion slave addresses in real time.
In order to address the above problem technical scheme of the present invention is such:
The communication means of address dynamic assignment in the serial communication protocol includes a host computer system and the slave system that is made of a plurality of slaves that is connected with host computer system in the serial communication protocol, it is characterized in that host computer system and slave system are communicated by following mode:
The broadcast address request
Host computer system at first sends the 0xAO request toward slave system, certain is sent out 0xBX from chance (X is 16 system numbers in the slave system, back-signalling down together), expression prepares to receive main frame institute addresses distributed, main frame sends the 0xCX address signal then, certain slave continues to respond the 0xBX signal in the slave system, and presentation address is allocated successfully;
Send the output port signal
Main frame at first sends the 0xDX request toward slave system, in the slave system corresponding address send the 0xBX back-signalling from chance, expression prepares to receive the output port signal of main frame, main frame sends to all port signals that will export the slave of corresponding address then;
Receive the input port signal
Main frame at first sends the 0xEX request toward slave system, in the slave system corresponding address send the 0xBX back-signalling from chance, expression is ready for sending the input port signal and gives main frame, slave sends to main frame with all input signals then.
Described host computer system adopts topological formula serial structure to be connected with slave, and promptly host computer system connects two slaves, two slaves several slaves of respectively connecting.This kind connected mode can realize port extension.
Host computer system is when each slave of visit, slave all can be given main frame with the feedback information that whether is connected to slave on the slave port by answer signal, main frame will be learnt the connection situation of slave network after visiting all slaves that now inserted, main frame can be set up a net list that connects about the slave network in program in view of the above, and behind all slaves of visit this table is being revised renewal, interpolation and deletion slave node, thereby reach dynamic assignment, interpolation and the deletion of slave addresses at every turn.
Beneficial effect, technical solutions according to the invention, utilize the topological structure connected mode of serial communication to solve the problem of port expansion, adopt broadcast address, sent the output port signal, received three kinds of communication processs of input port signal, make main frame intercom mutually, and can also realize the dynamic interpolation and the delete function of slave addresses with slave.
Description of drawings
Describe the present invention in detail below in conjunction with the drawings and specific embodiments;
Fig. 1 is the schematic diagram of communication process of the present invention;
Fig. 2 is the schematic diagram that main frame of the present invention is connected with the slave topological structure;
Fig. 3 is for being the interface schematic diagram of slave addresses request logic chip of the present invention.
Embodiment
For technological means, creation characteristic that the present invention is realized, reach purpose and effect is easy to understand, below in conjunction with concrete diagram, further set forth the present invention.
In the present embodiment, the system communication baud rate is 113636baud/s, and each byte transmission needs 88us.In whole communication process, one co-exists in 3 kinds of communication processs, and they are respectively: broadcast address, transmission output port signal, reception input port signal.
This communication protocol cue has:
0xAO: toward the bus broadcast Address requests;
0xDx: send the output port request toward x address slave, the x scope is 0~8;
0xEx: send the input port request toward x address slave, the x scope is 0~8;
0xBx: answer signal, when slave receives request, represent the slave downlink port to have or not slave to connect for the 0th of x, this position is that the no slave of ' 0 ' representative connects, for having slave, ' 1 ' representative connects, can know the connection situation of slave network according to this main frame, add, the deletion network node, and then the slave that upgrades in the main frame connects table.
0xCx: address signal, the address that the x representative is concrete
In this communication, consider communications anti-jamming and encryption, all signals all must carry out verification by radix-minus-one complement, and communication XOR sign indicating number is 0x35.
As shown in Figure 1, system communication one is divided into 3 types communication.
The broadcast address request.Main frame at first sends the 0xAO request toward slave system, and certain sends out the 0xBX back-signalling from chance in the slave system, and expression prepares to receive main frame institute addresses distributed.Main frame sends the 0xCX address signal then, and certain slave continues to respond the 0xBX signal in the slave system, and presentation address is allocated successfully.
Send the output port signal.The at first past slave system transmission of main frame 0xDX request, corresponding address sends the 0xBX back-signalling from chance, the output port signal of expression preparation reception main frame in the slave system.Main frame sends to all port signals that will export the slave of corresponding address then.
Receive the input port signal.Main frame at first sends the 0xEX request toward slave system, in the slave system corresponding address send the 0xBX back-signalling from chance, expression is ready for sending the input port signal and gives main frame.Slave sends to main frame with all input signals then.
The address is dynamically added and the delete function implementation method is: main frame is when each slave of visit, slave all can be given main frame with the feedback information that whether is connected to slave on the slave port by answer signal, main frame will be learnt the connection situation of slave network after visiting all slaves that now inserted, main frame can be set up a net list that connects about the slave network in program in view of the above, and behind all slaves of visit this table is being revised renewal, interpolation and deletion slave node, thereby reach dynamic assignment, interpolation and the deletion of slave addresses at every turn.
Referring to Fig. 2,1 is main frame among the figure, and main frame 1 is connected with a plurality of slave topological structures, and promptly main frame 1 connects slave 2 and 6, slave 2 series connection 3,4,5 then, slave 6 series connection 7,8,9; And each slave system can also continue to add slave, to reach the purpose of Extended Capabilities Port.
Referring to Fig. 3, be provided with slave addresses request logic chip between the slave that adjoins each other.4,5,6,7 is input port in this chip, and 14,15,16 is output port, wherein:
REQ1: port one address request signal
LIVE1: whether port one is connected to from being information
REQ2: port one address request signal
LIVE2: whether port one is connected to from being information
EN1: enable to be connected on the slave receiver address signal on the port one
EN2: enable to be connected on the slave receiver address signal on the port 2
MCUREQ: this machine is to upper level clump machine request address signal
Logic chip is: ATF16V8B
More than show and described basic principle of the present invention, principal character and advantage of the present invention.The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; that describes in the foregoing description and the specification just illustrates principle of the present invention; the present invention also has various changes and modifications without departing from the spirit and scope of the present invention, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.

Claims (3)

1, the communication means of address dynamic assignment in the serial communication protocol, include a host computer system and the slave system that constitutes by a plurality of slaves that is connected with host computer system in the serial communication protocol, it is characterized in that host computer system and slave system are communicated by following mode:
The broadcast address request
Host computer system at first sends the 0xA0 request toward slave system, certain sends out the 0xBX back-signalling from chance in the slave system, and expression prepares to receive main frame institute addresses distributed, and main frame sends the 0xCX address signal then, certain slave continues to respond the 0xBX signal in the slave system, and presentation address is allocated successfully;
Send the output port signal
Main frame at first sends the 0xDX request toward slave system, in the slave system corresponding address send the 0xBX back-signalling from chance, expression prepares to receive the output port signal of main frame, main frame sends to all port signals that will export the slave of corresponding address then;
Receive the input port signal
Main frame at first sends the 0xEX request toward slave system, in the slave system corresponding address send the 0xBX back-signalling from chance, expression is ready for sending the input port signal and gives main frame, slave sends to main frame with all input signals then.
2, the communication means of address dynamic assignment in the serial communication protocol according to claim 1, it is characterized in that, described host computer system adopts topological formula serial structure to be connected with slave, and promptly host computer system connects two slaves, two slaves several slaves of respectively connecting.
3, the communication means of address dynamic assignment in the serial communication protocol according to claim 1, it is characterized in that, host computer system is when each slave of visit, slave all can be given main frame with the feedback information that whether is connected to slave on the slave port by answer signal, main frame will be learnt the connection situation of slave network after visiting all slaves that now inserted, main frame can be set up a net list that connects about the slave network in program in view of the above, and behind each all slaves of visit, this table is revised renewal, add and deletion slave node, thereby reach the dynamic assignment of slave addresses, add and deletion.
CN200910194409A 2009-08-21 2009-08-21 Communication method for allocating dynamic addresses in serial communication protocols Pending CN101631148A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910194409A CN101631148A (en) 2009-08-21 2009-08-21 Communication method for allocating dynamic addresses in serial communication protocols

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910194409A CN101631148A (en) 2009-08-21 2009-08-21 Communication method for allocating dynamic addresses in serial communication protocols

Publications (1)

Publication Number Publication Date
CN101631148A true CN101631148A (en) 2010-01-20

Family

ID=41576086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910194409A Pending CN101631148A (en) 2009-08-21 2009-08-21 Communication method for allocating dynamic addresses in serial communication protocols

Country Status (1)

Country Link
CN (1) CN101631148A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012058875A1 (en) * 2010-11-03 2012-05-10 中兴通讯股份有限公司 Method and system for serial communication
CN102868780A (en) * 2012-09-07 2013-01-09 深圳睿立方智能科技有限公司 RS-485 slave computer addressing network system and addressing method thereof
CN105242601A (en) * 2015-10-09 2016-01-13 贵州智达科技有限责任公司 Multi-compatibility bidirectional communication protocol of serial port of electric warming oven
CN105260337A (en) * 2015-11-02 2016-01-20 深圳市共济科技有限公司 Automatic addressing method and system of single-chip microcomputers
CN106200454A (en) * 2016-06-21 2016-12-07 沈阳东软医疗系统有限公司 The communication system of a kind of many MCU and method
CN107071076A (en) * 2016-12-23 2017-08-18 京信通信技术(广州)有限公司 Device address collocation method in communication system, device and system
CN110247997A (en) * 2019-06-26 2019-09-17 三维通信股份有限公司 The method, apparatus and storage medium of IP address distribution and Topology Management in DAS system
CN114936180A (en) * 2022-06-20 2022-08-23 苏州智而卓数字科技有限公司 Automatic generation method and device for serial bus equipment address and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145950A (en) * 2007-04-25 2008-03-19 中兴通讯股份有限公司 A topology management method based on multi-service transmission node
CN101477506A (en) * 2008-01-04 2009-07-08 鸿富锦精密工业(深圳)有限公司 Addressing system and method of master equipment to slave equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101145950A (en) * 2007-04-25 2008-03-19 中兴通讯股份有限公司 A topology management method based on multi-service transmission node
CN101477506A (en) * 2008-01-04 2009-07-08 鸿富锦精密工业(深圳)有限公司 Addressing system and method of master equipment to slave equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012058875A1 (en) * 2010-11-03 2012-05-10 中兴通讯股份有限公司 Method and system for serial communication
CN102868780A (en) * 2012-09-07 2013-01-09 深圳睿立方智能科技有限公司 RS-485 slave computer addressing network system and addressing method thereof
CN105242601A (en) * 2015-10-09 2016-01-13 贵州智达科技有限责任公司 Multi-compatibility bidirectional communication protocol of serial port of electric warming oven
CN105242601B (en) * 2015-10-09 2018-05-08 贵州智达科技有限责任公司 A kind of more compatible both-way communication methods of electric heater serial ports
CN105260337A (en) * 2015-11-02 2016-01-20 深圳市共济科技有限公司 Automatic addressing method and system of single-chip microcomputers
CN105260337B (en) * 2015-11-02 2018-03-02 深圳市共济科技股份有限公司 A kind of automatic addressing method and system of single-chip microcomputer
CN106200454A (en) * 2016-06-21 2016-12-07 沈阳东软医疗系统有限公司 The communication system of a kind of many MCU and method
CN107071076A (en) * 2016-12-23 2017-08-18 京信通信技术(广州)有限公司 Device address collocation method in communication system, device and system
CN110247997A (en) * 2019-06-26 2019-09-17 三维通信股份有限公司 The method, apparatus and storage medium of IP address distribution and Topology Management in DAS system
CN114936180A (en) * 2022-06-20 2022-08-23 苏州智而卓数字科技有限公司 Automatic generation method and device for serial bus equipment address and storage medium

Similar Documents

Publication Publication Date Title
CN101631148A (en) Communication method for allocating dynamic addresses in serial communication protocols
CN103248526B (en) Realize signal equipment, the method for out-of-band supervision control management
CN102760111B (en) FPGA-based (Field Programmable Gate Array) extended multi-serial port device and data receiving-transmitting method thereof
CN105260337B (en) A kind of automatic addressing method and system of single-chip microcomputer
CN103117929A (en) Communication method and system based on PCIe (peripheral component interconnect express) data exchange
CN101599004B (en) SATA controller based on FPGA
CN102802139A (en) Gateway data adapting system and method of Internet of Things
CN107622032B (en) Three-wire expansion method and circuit of I2C bus
CN105389278B (en) A kind of slave serial communication method based on CAN bus
EP3274856B1 (en) Low-power and low-latency device enumeration with cartesian addressing
CN104461979A (en) Multi-core on-chip communication network realization method based on ring bus
CN101945026B (en) Data transmission method of application layer in control area network and control area network system
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
CN105138485A (en) Serial bus address management device
CN105359122A (en) Enhanced data transfer in multi-CPU systems
CN201839452U (en) Wireless sensor network intelligent gateway
WO2015054738A1 (en) Network interface
CN101145052A (en) Real-time information interactive system between apparatuses and method
CN203378090U (en) Intelligent cloud terminal control system for stage light
CN101146104B (en) A method and device for quickly transmitting physical chip status and status change
CN101415027B (en) Communication module based on HDLC protocol, and control method for data real time forwarding and storage
CN104598403A (en) Cluster storage system based on PCIE (peripheral component interface express) switch
CN105491082A (en) Remote resource access method and switch equipment
CN102420734A (en) System for realizing topological structure of controller area network (CAN) bus
CN102841875A (en) Host computer with intelligent bus interface and security system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: SHANGHAI WEIHONG ELECTRONIC CO., LTD.

Free format text: FORMER OWNER: SHANGHAI NAIKAI ELECTRONIC TECHNOLOGY CO., LTD.

Effective date: 20120806

Free format text: FORMER OWNER: SHANGHAI WEIHONG ELECTRONIC TECHNOLOGY CO., LTD.

Effective date: 20120806

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 201114 MINHANG, SHANGHAI TO: 201108 MINHANG, SHANGHAI

TA01 Transfer of patent application right

Effective date of registration: 20120806

Address after: 201108, No. 2338, No. 29 Enterprise Park, headquarter, Shanghai Road, Minhang District

Applicant after: Shanghai Weihong Electronic Technology Ltd.

Address before: 201114, G, room 115, 778 Yue Yue Road, Shanghai, Minhang District

Applicant before: Shanghai Naikai Electronic Science and Technology Co., Ltd.

Co-applicant before: Shanghai Weihong TechnologyCo., Ltd.

C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100120