CN1949734B - Power supply two-line system real-time bus communication method - Google Patents

Power supply two-line system real-time bus communication method Download PDF

Info

Publication number
CN1949734B
CN1949734B CN200610152932A CN200610152932A CN1949734B CN 1949734 B CN1949734 B CN 1949734B CN 200610152932 A CN200610152932 A CN 200610152932A CN 200610152932 A CN200610152932 A CN 200610152932A CN 1949734 B CN1949734 B CN 1949734B
Authority
CN
China
Prior art keywords
address
node
slave unit
data
command
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.)
Active
Application number
CN200610152932A
Other languages
Chinese (zh)
Other versions
CN1949734A (en
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.)
Qingdao Topscomm Communication Co Ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN200610152932A priority Critical patent/CN1949734B/en
Publication of CN1949734A publication Critical patent/CN1949734A/en
Application granted granted Critical
Publication of CN1949734B publication Critical patent/CN1949734B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention is a two-power line system real-time bus communication method, relating to field bus communication system of real-time information transmission, especially home intelligentized network control system, used to replace the four-power line system communication system. And it is characterized: 1. sent data full-amplitude two-way modulation; 2. received data constant voltage current ring modulation; 3. completoing signal conversion by IC and directly transmitting data by asynchronous communication interface; 4. using host computer software command to replace node conflict detection circuit to complete event interrupt command; 5. event interrupt command obtains uploaded data type and directly commands to obtain uploaded data; 6. standard node device ID number coding, no repeated ID numbers, and various devices are completely compatible; and 7. ID numbers automatically log on to complete communication signal settings. And the method has characters of long communication distance, high speed, high reliability, timely nodes's data reporting, simple and convenient field debugging and programming, etc.

Description

Power supply two-line system real-time bus communication method
Technical field
The present invention relates to real time dual bus Communication Control field, relate in particular to the two-wire system bus real-time control method and the device of home intelligence.
Technical background
Rapid raising along with people's living standard, large-area family inhabitation place owning amount increases rapidly, the inhabitation place more than 200 square metres particularly, common single kind control method (as fire-proof and theft-proof, remote control switch etc.) can not satisfy actual requirement, and multiple spot polymorphic type intelligent control system more and more becomes large tracts of land domestic consumer's demand.For satisfying this demand, need response speed at 200ms with interior bus communication system.The two-wire system bus communication system that this method realizes satisfies the requirement of this Comprehensive Control promptness, its by node to message transmission time of host node less than 100ms.
In addition, along with the demand for control of field instrument control, measuring instrument collection being copied numerous multipoint unit such as collection control, fire-proof and theft-proof system, for satisfying the requirement of device power supply (DPS) and message transmission, the four-wire system communication system of band power line is more and more, needs two power buss.This method adopts two-wire system to install, and can satisfy the double requirements of power supply and communication, and its performance index satisfy above-mentioned requirements fully.The communication system of forming has that circuit is simple, transmission range is long, communication speed is fast, functional reliability is high, the easy-to-install characteristics, is the desirable upgraded product of the four-wire system system of band power line.
24 ID sign indicating numbers of standard (international unique) communications protocol is the prgraming automatized effective ways of field control system, field control, the communications protocol of its standard provides possibility for the compatibility of the devices from different manufacturers of every profession and trade, and the communication test equipment of standard has satisfied the requirement of hardware compatibility property testing.
Summary of the invention
The data message response that The present invention be directed to the requirement of home intelligence control system is fast, and data volume is not very big, and cost is lower, and simple installation is released.Its nodal information can report to host node rapidly within 100ms, so that control is as many real-time control units such as mains switches.
Use has the integrated circuit of independent intellectual property right and finishes circuit function, has solved the relative simple question of discrete device circuit function.The circuit of the complexity that integrated circuit is realized makes the signal modulation and demodulation more accurate, returns decoding circuit and has realized real electric current loop modulation, and communication speed improves greatly than the two-wire system communicating circuit speed that generally adopts at present.The UART mouth of the direct access control CPU of the interface buffer of comparator makes this bus operation directly use asynchronous communication, has simplified designer's workload.The integrated line style pressurizer of IC interior uses the band gap technology, and oneself power consumption is low, the precision of voltage regulation is high and do not need output capacitance, has significantly reduced circuit devcie quantity, has improved job stability.
Host node has designed high-precision 45mA constant current level pressure control circuit and the high-precision 30mA constant current of node modulation circuit is used, and signal produced the different disposal mode problem of conflicting when the electric current loop mode that has solved high communication speed was effectively replied with multiple spot.
For solving on-the-spot installation question, its host node to node, node to the communication modes of host node uses comparatively popular nonpolarity dual bus technology at present.According to the special login mode of ardware feature design, make communication system adopt 24 of international popular ID number automatic login protocols simultaneously with facility information.By being automatically converted to the address sign indicating number of byte after the login of ID sign indicating number, make node rapider to the signal reporting of host node, on-the-spot installation is easier with Equipment Control definition and debugging.
The interrupt signal of improvement report the abrogation of agreement conflict adopted of other circuit of part intercept circuit, reduced the testing circuit (node to physical signalling other node detection of host node be difficult for design) of node circuit to other node reporting information, simplified signal demodulating circuit, made communication system work more reliable.
Description of drawings
Fig. 1: power supply two-line system real-time bus communication method sketch;
Fig. 2: host node (controller) structure chart;
Fig. 3: node structure figure;
Fig. 4: bus signals sign indicating number source figure;
Fig. 5: ID log on command sequential chart;
Fig. 6: event interrupt command timing figure.
Embodiment
Power supply two-line system real-time bus communication method such as Fig. 1: the present invention includes standardization agreement (11) that realizes the real-time bus communication and the implementation method of using CMT100, CMT001 integrated circuit hardware (12).
The device coding mode of using 24 ID to encode has made things convenient for the automatic debug process of system, the equipment that inserts this system use international unique ID number as equipment initial log address, field adjustable uses ID log on command (possibility that does not have double sign) to carry out first device logs, write the address of byte afterwards in order, said process is installed with control definition and debugging field apparatus can not produce the problem that occurs because of node device address double sign, and the field adjustable process is very easy.With logical signal is that address event interrupt order (actual identical with the ID log on command just address the becomes byte) mode of address has greatly improved the response speed of on-the-spot realtime communication system, and system does not need to use and carries out serial bus communication for long ID number and operate.Use special-purpose CMT001, CMT100 integrated circuit (IC) design communication system, communication control interface directly connects the CPU asynchronous communication interface, makes developer's development process easier.
The bus communication physical layer has four kinds of transfer of data sign indicating number sources, a kind of multiple spot answer back code source, and as shown in Figure 4, table 1 is 5 sign indicating number source state implications:
Table 1:
ID log on command and event interrupt order need be avoided the method for colliding, and other bus requirementses of part are avoided the node detection circuit that collides, and this testing circuit is finished the detection that node is replied node.
And in the two-wire system bus communication system of band power supply, for solving its communicating circuit sign indicating number source of powerup issue is two-way asymmetric sign indicating number source, the design of asymmetric communication code source is in both sides' desirable demodulation operating state, its node to the physical signalling purpose of design of host node is to transmit signal for node to host node, want the such signal code source of node detection must be designed to the state that node also can detect, for reaching this purpose, inevitable compatible host node in its signal code source and node all can detect, can not be operated in host node and node both sides' optimum detection state (majority can not adopt electric current loop or the variable constant current modulation circuit of working voltage), and node need increase the circuit that relates to state-detection, increases the reliability that this testing circuit reduces system communication greatly.Electric current loop is used in the answer signal sign indicating number source of this method design, has greatly improved bus communication speed, owing to adopt electric current loop, other node can not detect this signal code source, avoids collision so designed host node order shielding known address scope.
Host node (controller) structure as shown in Figure 2, working power is selected DC15~30V power supply for use according to communication distance and node operating voltage, the course of work is as follows:
Sending data: CPU (22) is transmit status by R/T line traffic control CMT100 integrated circuit (23), the R/T control circuit cuts off back sign indicating number 7V pressure and connects and sends buffer circuit, sends buffer circuit and exports full width of cloth sign indicating number source TH, TL signal according to TXD buffered signal driving switch (24), (25) on bus B US1, BUS2.
Receive data: by R/T line traffic control CMT100 integrated circuit (23) is accepting state, and the control of R/T control circuit sends buffer circuit and cuts off driving switch (24), (25), makes bus break away from transtation mission circuit, and control 7V pressure is connected back decoding circuit.According to the current modulated of the 0mA/30mA of node, 15mA mirror current circuit is differentiated bus B US1, BUS2 last sign indicating number source RH, RL and RL ' signal, and feed signals is exported to CPU (22) to the RXD buffer memory through the RXD line.The 45mA constant-current circuit works when a plurality of node common modulation 30mA sign indicating numbers source RL signal takes place, and output current is constant in 45mA, and output voltage reduces automatically, varying signal sign indicating number source RL '.
The signal correspondence table:
Node structure as shown in Figure 3, the course of work is as follows:
Receive the last sign indicating number of data: bus B US1, BUS2 source TH, TL signal, demodulate TH, TL signal by the reception comparator of CMT001 integrated circuit (32) according to the full amplitude modulating signal of bus, export to the RXD line through the RXD buffer memory and give CPU (33), the input voltage that the while is adjusted comparator automatically according to the TH signal amplitude has reached best demodulation effect.When receiving circuit was worked, circuit suppressed to send the modulation of signal automatically, damaged circuit to avoid the transmitting-receiving conflict.
The communication signal that sends data: CPU (33) drives sending controling circuit by the TXD line through sending buffer memory, sending controling circuit control constant-current circuit modulation code source RH, RL signal on bus B US1, BUS2.Sign indicating number source TH, TL signal occur as bus, transmitting-receiving conflict circuit will suppress sending controling circuit and forbid output, damage circuit to avoid the transmitting-receiving conflict.
The signal correspondence table:
The ID log on command: it is present demands of social development that each equipment has the ID numbering that oneself independently has identification function, and particularly for networked devices, independently ID number is very effective false proof means, can directly obtain this equipment data by network inquiry.For making equipment directly use ID number (24 12 byte packed BCD sign indicating numbers) as initial address, login is impossible use the method for asking inspection to login (24 ID number needs logins 10 automatically 24Inferior, suppose that 1ms askes node of inspection, also needs 3 * 10 16Nian Caineng finishes), we have designed the ID log on command for this reason, imperative structures as shown in Figure 5:
(51) the ID log on command of sending for host node, host node is sent out the TH sign indicating number source (52) of 20ms after order, become accepting state RH sign indicating number source (53) afterwards, 22ms after order (59), judge total line code source, for the source-representation of RH sign indicating number does not have logging device, the order of logging off, bus state becomes the source preparation of TH sign indicating number and carries out next bus line command.There is the RL sign indicating number source (occurring RL ' sign indicating number source if multiple spot is replied) (54) of node 2ms after log on command 21ms of reporting events to reply, modulate back 2ms according to self ID sign indicating number the 0th byte the 0th bit address afterwards and return sign indicating number (0 a modulation RL sign indicating number source, 1 a modulation RH sign indicating number source) (occurring RL ' sign indicating number source if multiple spot 0 is modulated) (55).22ms (59) detection was that RL or RL ' yard source judge that ID login node is arranged after host node was finished according to order, and 24ms (5A) is the 0th byte the 0th bit address that RL or RL ', RH sign indicating number source judgement ID login node after finishing according to order.26ms became TH sign indicating number source (57) after the host node order was finished, and log on command is sent out a byte data (58) after finishing 28ms, and the 0th of these data is the 0th byte the 0th bit address that known ID logins node.Node is finished address modulation back 2ms (5B) and is entered accepting state, receive and judge self the 0th byte the 0th bit address after 1 byte data and receive whether the 0th of byte be identical, difference then withdraws from acknowledgement command, and is identical then in the 0th byte the 1st bit address by (58) (52)~(57) sequential answering ID login node.Through 0~7 of ID login node the 0th byte, 0~7 of the 1st byte ... obtain the node ID number that override is quoted after 96 repetitions that the 11st byte is 0~7, write down this node ID number, notify the login this time of this node to finish by the order of band ID address again, do not respond log on command again, after carrying out N time (N is hung the node sum by bus) like this, finish the ID login process of node.
The event interrupt order: report rapidly to the interrupting information of host node for making node, having designed with the logical signal of byte is the event interrupt order of address, structure as shown in Figure 6:
(61) the TH sign indicating number source (62) of 5ms is sent out in the event interrupt order of sending for host node, host node after order, become accepting state RH sign indicating number source (63) afterwards, and wait node reports RL sign indicating number source.Behind order 7ms (69), judge total line code source, for the source-representation of RH sign indicating number does not have the event interrupt node, exit command, bus state becomes the source preparation of TH sign indicating number and carries out next bus line command.There is the RL sign indicating number source (occurring RL ' sign indicating number source if multiple spot is replied) (64) of node 2ms after event interrupt order 6ms of event interrupt to reply, return sign indicating number (0 modulation RL sign indicating number source, 1 modulation RH sign indicating number source) (occurring RL ' sign indicating number source if multiple spot is replied) (65) according to communication the 0th bit address modulation back 2ms afterwards.7ms (69) judged that for RL or RL ' sign indicating number source the event interrupt node is arranged after host node was finished according to order, and 9ms (6A) is the 0th bit address of RL or RL ' sign indicating number source, RH sign indicating number source decision event interruption node finishing according to order after.Become TH sign indicating number source (67) after the host node order is finished after the 11ms, order is sent out a byte data (68) after finishing 13ms, the 0th the 0th bit address of interrupting node for known event.Node is finished address modulation back 2ms (6B) and is entered accepting state, judge its communication code the 0th bit address and receive whether the 0th of byte be identical after receiving 1 byte data, difference then withdraws from acknowledgement command, identical then by the 0th byte the 1st bit address of (68) (62) (63) (65) (66) (67) sequential answering event interrupt node, back no longer include to reply for 7 times confirm the position.Through obtaining the event interrupt node communication code that override is quoted after 8 repetitions, notify this Node Events interruptive command to finish by the order of node address again, do not carry out the event interrupt command response again.After finishing the event interrupt order of a node, also have the event interrupt node, will finish in next event interrupt order.

Claims (3)

1. a single-point is to the real-time bus rapid transmission method of multi-point communication, it is characterized in that: main equipment sends and interrupts receiving serial order, slave unit is suitable for the logic of hardware system and replys, the address area order shielding of the known device by the main equipment slave unit that do not meet the address area is replied again, command type is also extracted in final affirmation address, extract again and report order, wherein shielding the slave unit that does not meet the address area replys, utilize the slave unit bus acknowledge signal that the characteristics of logical AND are arranged, main equipment reports the address realm of slave unit by address range detection, do not meet the slave unit of address area again with the order shielding, through log 2Reply for N time and finish the address detected that reports slave unit, wherein N is an address realm; Use special-purpose communication IC CMT001, the hardware that CMT100 forms has solved the full two-way modulation of descending transmission data, receive the modulation of data level pressure electric current loop and when multiple spot is replied, have the function that reduces level restriction total current, main equipment receives the modulation of data level pressure electric current loop and reduce level restriction total current method when multiple spot is replied, when single node is carried out data communication, use 7V level pressure electric current loop, node integrated circuit CMT001 carries out accurate 0mA, the current digital modulation of 30mA, bus power source maintains 6.5V substantially, when multiple spot interrupts taking place, main equipment integrated circuit CMT100 can reduce output voltage during greater than 45mA automatically at the slave unit modulated current, circuit is equivalent to the 45mA current-limiting circuit, limited bus current in the case, because the interruptive command response time equals 5 haplotype data bit times, the variation of voltage can not reduce the reliability of interruptive command; The ID that the has facility information number initial address as slave unit of international unique standard universal uses the ID log on command to finish the automatic conversion of ID address and byte address.
2. the method for claim 1, it is number unique that wherein all use the device id of this bus, utilizes type, manufacturer, date of manufacture and the lot number of this equipment as can be known ID number.
3. the method for claim 1, it is characterized in that interrupting extracting the method that command type confirms to extract order again, reported event uses unified interruptive command, finds and confirms to report the address and obtain reporting command type after reporting the address, re-uses the type order and extracts data.
CN200610152932A 2006-09-21 2006-09-21 Power supply two-line system real-time bus communication method Active CN1949734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610152932A CN1949734B (en) 2006-09-21 2006-09-21 Power supply two-line system real-time bus communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610152932A CN1949734B (en) 2006-09-21 2006-09-21 Power supply two-line system real-time bus communication method

Publications (2)

Publication Number Publication Date
CN1949734A CN1949734A (en) 2007-04-18
CN1949734B true CN1949734B (en) 2010-05-19

Family

ID=38019123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610152932A Active CN1949734B (en) 2006-09-21 2006-09-21 Power supply two-line system real-time bus communication method

Country Status (1)

Country Link
CN (1) CN1949734B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729339B (en) * 2008-10-31 2012-07-18 沈阳中科博微自动化技术有限公司 Fieldbus communication card
CN102821017B (en) * 2011-06-08 2018-03-13 中兴通讯股份有限公司 The method and system of slave addresses order identification in master-slave mode fieldbus
CN102723970B (en) * 2012-07-10 2015-09-09 湖南伊迈德科技有限公司 A kind of method for transmitting signals based on power supply two-line system bus and system
CN103092801A (en) * 2013-01-29 2013-05-08 北京强联通讯技术有限公司 Bus power supply communication method
CN103914427B (en) * 2014-04-14 2016-08-31 中国人民解放军国防科学技术大学 The means of communication and device on integrated circuit chips based on three physical interconnections lines
CN108512734B (en) * 2018-06-01 2023-12-12 山东众海智能科技有限公司 Bus communication circuit and multi-wire control panel
CN114301732B (en) * 2022-03-08 2022-06-10 深圳市驰普科达科技有限公司 Circuit for realizing bus communication, bus communication system and power supply energy storage device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2550972Y (en) * 2002-06-28 2003-05-14 沈阳西东控制技术有限公司 Network house bus
CN1553674A (en) * 2003-05-26 2004-12-08 广东省电信有限公司科学技术研究院 Method for wideband connection server to obtain port numbers of its uers

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2550972Y (en) * 2002-06-28 2003-05-14 沈阳西东控制技术有限公司 Network house bus
CN1553674A (en) * 2003-05-26 2004-12-08 广东省电信有限公司科学技术研究院 Method for wideband connection server to obtain port numbers of its uers

Also Published As

Publication number Publication date
CN1949734A (en) 2007-04-18

Similar Documents

Publication Publication Date Title
CN1949734B (en) Power supply two-line system real-time bus communication method
CN102426724B (en) Integrated charging and acquisition terminal
CN103036619B (en) Single optical transport intelligent communication module and its application process
CN103916284A (en) RS485 communication interface automatic baud rate and communication address detection method
CN101309193A (en) USB-Flexray bus adapter based on micro-processor
CN202711246U (en) Application expanding system with 485 buses and 232 buses
CN206258731U (en) A kind of functional circuit of automobile driving simulator
CN101478453A (en) Handhold portable CANOPEN network data analyzer and controlling method thereof
CN105045740A (en) Conversion method and circuit for communication interfaces
CN205845285U (en) A kind of bluetooth kilowatt meter recorder
CN108132898A (en) Multiplex communication control method and communication box
CN201293793Y (en) Digital wind measurement sensor
CN104239255A (en) Universal data converter and method for Wiegand bus
CN201820120U (en) Self-adapting multibus execution mechanism controller
CN202261414U (en) GPIB/CAN interface conversion device
CN109358550A (en) A kind of detection device and detection method of communication apparatus
CN201345053Y (en) Intelligent control system for residence community
CN201341148Y (en) PCI interface type CANOPEN network data analyzer
CN209170052U (en) A kind of multi-level communication conversion module that 10kV switch controller is embedded
CN202856782U (en) Automatic receiving/transmitting and converting device for HART communication signals
CN208335458U (en) A kind of yard speed measurement signal digitization transmission system
CN202693677U (en) Three-phase electronic electric energy meter
CN2724281Y (en) Power load monitoring and managing system terminal with relay function
CN204537122U (en) Breakout box and system thereof
CN201793290U (en) Stroke indicating device for hoisting machine

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C57 Notification of unclear or unknown address
DD01 Delivery of document by public notice

Addressee: Wang Jianhua

Document name: the First Notification of an Office Action

C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: QINGDAO TOPSCOMM COMMUNICATION CO., LTD.

Free format text: FORMER OWNER: WANG JIANHUA

Effective date: 20120612

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20120612

Address after: Shinan District 266024 Shandong city of Qingdao province Ningxia road 288, building 6, 5 layers of B

Patentee after: Qingdao Topscomm Communication Co., Ltd.

Address before: 266024, Qingdao, Ningxia Road,, Qingdao Software Park 6, 5 floor, Qingdao Ding Xin Communications Co., Ltd., Shandong

Patentee before: Wang Jianhua

C56 Change in the name or address of the patentee

Owner name: QINGDAO TOPSCOMM COMMUNICATION INC.

Free format text: FORMER NAME: QINGDAO TOPSCOMM COMMUNICATION CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: Shinan District 266024 Shandong city of Qingdao province Ningxia road 288, building 6, 5 layers of B

Patentee after: Qingdao Topscomm Communication Inc.

Address before: Shinan District 266024 Shandong city of Qingdao province Ningxia road 288, building 6, 5 layers of B

Patentee before: Qingdao Topscomm Communication Co., Ltd.

CB03 Change of inventor or designer information

Inventor after: Wang Jianhua

Inventor after: Qiu Huadong

Inventor before: Wang Jianhua

CB03 Change of inventor or designer information