CN102647484B - Synchronous communication network terminal address searching method - Google Patents

Synchronous communication network terminal address searching method Download PDF

Info

Publication number
CN102647484B
CN102647484B CN201210107540.0A CN201210107540A CN102647484B CN 102647484 B CN102647484 B CN 102647484B CN 201210107540 A CN201210107540 A CN 201210107540A CN 102647484 B CN102647484 B CN 102647484B
Authority
CN
China
Prior art keywords
communication
address
communication terminal
synchronous
hand over
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
CN201210107540.0A
Other languages
Chinese (zh)
Other versions
CN102647484A (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.)
CHENGDU ACTION ELECTRONICS JOINT-STOCK Co Ltd
Original Assignee
CHENGDU ACTION ELECTRONICS JOINT-STOCK 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 CHENGDU ACTION ELECTRONICS JOINT-STOCK Co Ltd filed Critical CHENGDU ACTION ELECTRONICS JOINT-STOCK Co Ltd
Priority to CN201210107540.0A priority Critical patent/CN102647484B/en
Publication of CN102647484A publication Critical patent/CN102647484A/en
Application granted granted Critical
Publication of CN102647484B publication Critical patent/CN102647484B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention relates to synchronous bus communication and discloses a synchronous communication network terminal address searching method. The method comprises the concrete steps that: a synchronous communication network system is built, wherein the synchronous communication network system comprises a communication host machine and a communication terminal, and the communication host machine and the communication terminal are connected through a synchronous communication bus; the communication host machine sends broadcast commands, the communication terminal carries out self address conversion and then sends the conversion codes to the communication host machine, the communication host machine receives the overlapping of all communication terminal conversion codes, the addresses of all communication terminals are obtained after the analysis, in addition, the addresses are verified with the communication terminals one by one, when one address is the same as the communication terminal address, the address is stored as the communication terminal address, and otherwise, the address is abandoned. After the adoption of the searching scheme provided by the invention, the communication host machine can fast search all equipment in the network no matter how big the communication terminal equipment address is, and the system can enter the normal operation state as fast as possible.

Description

A kind of synchronous communication network terminal address searching method
Technical field
The present invention relates to synchronous bus communications, relate in particular to a kind of synchronous communication network terminal address searching method.
Background technology
Build after a communications network system, communication host can not know what the communication terminal device accessing in whole communication network is.At present, common way has two kinds.One, commissioning staff inputs the numbering of communication terminal devices all in network in communication host, and it is very slow that this method has increased commissioning staff's workload and efficiency.Two, communication host carries out detection one by one according to default communication address realm or according to certain combination, obtain replying of communication terminal device, record the address of this communication terminal device, if adopt in this way communication terminal device address very large (representing such as address needs several bytes) in network, because communication host is not known the address distribution situation of communication terminal device in network, so very low of search efficiency.
Summary of the invention
For the inefficient problem of communication terminal address searching existing in above-mentioned synchronous bus communications, the invention discloses a kind of synchronous communication network communication terminal address search method.
Object of the present invention realizes by following technical proposals:
A synchronous communication network communication terminal address search method, its concrete steps are: build synchronous communication network system, described synchronous communication network system comprises communication host, communication terminal, and described communication host is connected by synchronous communication bus with communication terminal; Communication host sends broadcasting command, communication terminal carries out self address transition, then hand over word is sent to communication host, communication host is received the stack of all communication terminal hand over words, after parsing, obtain the address of all communication terminals, and these addresses are confirmed with communication terminal one by one, if one of them address is identical with communication terminal address, preserve the address that this address is this communication terminal, otherwise abandon.
Preferably, the method that above-mentioned communication terminal carries out self address transition is: each of hexadecimal communication terminal address is encoded to four hexadecimal numerals, it forms the hand over word of communication terminal address, 1 is encoded to 0002,2 are encoded to 0004, and latter one digital is encoded to previous digitally coded 2 times.
Preferably, above-mentioned communication host is received the stack of each communication terminal hand over word, receives after hand over word corresponding address position 1.
Preferably, above-mentioned communication host is resolved the hand over word of stack: its method is specially the hexadecimal hand over word after stack is converted to binary number, in binary number there is communication terminal address in 1 Wei Gai position, position, turns left from the right side, since which position of 0 number, is exactly the hexadecimal digit being applied in 1 position.
Preferably, said method also comprises the hand over word of directly preserving is reduced to communication terminal address according to coding rule.
Preferably, said method also comprises and will resolve and the communication terminal address of reduction obtains the address of all communication terminals after combining according to order, and these addresses are confirmed with communication terminal one by one.
Preferably, above-mentioned communication host is one, and it connects one or more communication terminals.
Beneficial effect of the present invention: used after search plan of the present invention, much no matter communication terminal device address has, communication host can both search all devices in network rapidly; Make system enter as early as possible normal operating condition.Whether uniquely on the one hand by address translator, can judge the address that this hand over word parses, improved the efficiency of system, and the hexadecimal numerical value that goes out to be applied according to the result fast resolving after stack, be transferred to again communication terminal, just can get rapidly the address of all communication terminals.In said method, communication host sends respectively address to communication terminal device, and communication terminal device is made accordingly and being replied, and only needs to send communications command seldom in whole communication search procedure, has greatly improved the search efficiency of system.
Accompanying drawing explanation
Fig. 1 is the flow chart that communication host of the present invention is communicated by letter with communication terminal.
Embodiment
The invention discloses a kind of synchronous communication network communication terminal address search method, the flow chart that communication host of the present invention is as shown in Figure 1 communicated by letter with communication terminal.Its concrete steps are: build synchronous communication network system, described synchronous communication network system comprises communication host, communication terminal, and described communication host is connected by synchronous communication bus with communication terminal; Communication host sends broadcasting command, communication terminal carries out self address transition, then hand over word is sent to communication host, communication host is received the stack of all communication terminal hand over words, after parsing, obtain the address of all communication terminals, and these addresses are confirmed with communication terminal one by one, if one of them address is identical with communication terminal address, preserve the address that this address is this communication terminal, otherwise abandon.Used after search plan of the present invention, much no matter communication terminal device address has, communication host can both search all devices in network rapidly, makes system enter as early as possible normal operating condition.
The method that wherein said communication terminal carries out self address transition is: each of hexadecimal communication terminal address is encoded to four hexadecimal numerals, it forms the hand over word of communication terminal address, 1 is encoded to 0002,2 are encoded to 0004, and latter one digital is encoded to previous digitally coded 2 times.That is:
Original address 1 2 3 4 5 6 7 8 9 A B C D E F
Hand over word 0002 0004 0008 0010 0020 0040 0080 0100 0200 0400 0800 1000 2000 4000 8000
In the situation that original address position is 0, communication host is not replied.
Communication host is received the stack of each communication terminal hand over word, receives after hand over word corresponding address position 1.As received, hand over word is 9 o'clock, puts 1 by 9 of appropriate address position; Receive that hand over word is 8 and, puts 1 by 8 and 9 of appropriate address position at 9 o'clock.Directly, by address location 1 corresponding to hand over word, save memory space, improve system effectiveness.In the situation that existing hand over word not identical, superpose, according to hexadecimal, calculate.As: 1+2=0002+0004=0006; 1+2+3=0002+0004+0008=000E.
Communication host is resolved the hand over word of stack: its method is specially the hexadecimal hand over word after stack is converted to binary number, in binary number there is communication terminal address in 1 Wei Gai position, position, turns left from the right side, since which position of 0 number, is exactly the hexadecimal digit being applied in 1 position.As above-mentioned hexadecimal number 0006 converts binary system to, be 110, in 110, there are two 1,0006 is two digital stacks, in 110 1 position respectively turning left from the right side, since the 1st and the 2nd of 0 number, therefore 0006 is original hexadecimal number 1 and 2 two digital stacks after resolving.For another example to convert binary system to be 1110 to above-mentioned hexadecimal number 000E, in 1110, there are three 1,000E is three digital stacks, in 1110 1 position respectively turning left from the right side, since the 1st, the 2nd and the 3rd of 0 number, so 000E is 1,2 and 3 three digital stacks of original hexadecimal number after resolving.
The hand over word of directly preserving is reduced to communication terminal address according to coding rule.
Hand over word 0002 0004 0008 0010 0020 0040 0080 0100 0200 0400 0800 1000 2000 4000 8000
Original address 1 2 3 4 5 6 7 8 9 A B C D E F
After being combined according to order, the communication terminal address of resolving and reducing obtains the address of all communication terminals, and these addresses are confirmed with communication terminal one by one, if one of them address is identical with communication terminal address, preserves the address that this address is this communication terminal, otherwise abandon.
Specific embodiment 1: if only have a communication terminal device on synchronous communication network, the address of this equipment is that 10000001(hexadecimal is 0x989681).First communication host sends broadcasting command, and this communication terminal receives after order, and calculating this self address translator is (0x02,0x00,0x01,0x00,0x02,0x00,0x00,0x40,0x01,0x00,0x00,0x02), and this hand over word is sent on communication bus.Communication host receives this hand over word, and to be reduced to hexadecimal address be 0x989681, and then communication host sends this address again to communication terminal, and communication terminal is replied this address, and communication host is just recorded the address of communication terminal.Whole communication search procedure only need to send twice communications command, very quick.
Specific embodiment 2: if there are two communication terminal devices on synchronous communication network, it is 0x989681 that the address of these two communication terminal devices is respectively 10000001(hexadecimal), 10000002(hexadecimal is 0x989682).First communication host sends broadcasting command, these two communication terminals receive after order, the address translator that calculates respectively them is (0x02, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x02) with (0x02, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x04), they send to the address translator of self on communication bus simultaneously, communication host receives the stack of these two communication terminal address translators, for (0x02, 0x00, 0x01, 0x00, 0x02, 0x00, 0x00, 0x40, 0x01, 0x00, 0x00, 0x06), then resolve and restore two communication terminal device addresses, be respectively 0x989681, 0x989682.Then communication host sends respectively two addresses to communication terminal device, and communication terminal device is made accordingly and being replied.In whole communication search procedure, only need to send 3 times communications command.
After building a communications network system, communication host can not know what the communication terminal device accessing in whole communication network is.At present, common two kinds of way search efficiencies are all very low, adopt method of the present invention can go out all communication terminal devices in communication network by fast search.
We represent by 3 bytes with mailing address, and address realm is 0x000001-0XFFFFFF.We take 1000 communication terminals is example, and these 1000 communication terminals are consecutive numbers.Communication host is before search and do not know the address information (comprise Base Serial Number and stop numbering, and whether the information such as consecutive numbers) of these 1000 communication terminals.
1. commissioning staff inputs the numbering of communication terminal devices all in network in communication host, and then mailing address is confirmed one by one according to address and the communication terminal of commissioning staff's input again.The main expense of this mode records the address of all 1000 communication terminals commissioning staff, and on the time overhead of input communication terminal address, concrete efficiency is determined by commissioning staff's efficiency.
2. communication host is searched for according to default communication address realm, and here the address realm of acquiescence is 0x000001-0xFFFFFF.Being that need to send 16777215(be 0xFFFFFF to communication host) inferior mailing address and communication terminal inquire after confirmation, if the time of inquiring after is 10ms at every turn, altogether needs 167772 seconds, approximately needs 46.6 hours.
3. communication host carries out detection one by one according to certain combination, because these combinations are communication host acquiescences, substantially all needs to have traveled through all address realms, so the time is all very long, this need to be determined according to the integrated mode of selecting.
4. if use the method in the present invention, communication host sends broadcasting command for the first time, and communication terminal replys all address translators to communication host simultaneously, because the address of communication terminal is consecutive numbers.So communication host only needs to send a broadcast address and 1000 Address Confirmations, need to send 10001 times, the time of inquiring after is 10ms at every turn, altogether needs within 10 seconds, just can search for.
Given coefficient and parameter in the above embodiments; be to provide to those skilled in the art and realize or use of the present invention; the present invention does not limit and only gets aforementioned disclosed numerical value; without departing from the present invention in the case of the inventive idea; those skilled in the art can make various modifications or adjustment to above-described embodiment; thereby protection scope of the present invention do not limit by above-described embodiment, and it should be the maximum magnitude that meets the inventive features that claims mention.

Claims (6)

1. a synchronous communication network communication terminal address search method, its concrete steps are: build synchronous communication network system, described synchronous communication network system comprises communication host, communication terminal, and described communication host is connected by synchronous communication bus with communication terminal; Communication host sends broadcasting command, communication terminal carries out self address transition, then hand over word is sent to communication host, communication host is received the stack of all communication terminal hand over words, after parsing, obtain the address of all communication terminals, and these addresses are confirmed with communication terminal one by one, if one of them address is identical with communication terminal address, preserve the address that this address is this communication terminal, otherwise abandon; The method that described communication terminal carries out self address transition is: each of hexadecimal communication terminal address is encoded to four hexadecimal numerals, it forms the hand over word of communication terminal address, 1 is encoded to 0002,2 are encoded to 0004, and latter one digital is encoded to previous digitally coded 2 times; The detailed process of the hand over word stack of described communication terminal is: the identical coding in corresponding position in the hand over word of address is retained to different coding stacks.
2. synchronous communication network communication terminal address search method as claimed in claim 1, it is characterized in that synchronous communication network communication terminal address search method as claimed in claim 2, it is characterized in that described communication host receives the stack of each communication terminal hand over word, receive after hand over word corresponding address position 1.
3. synchronous communication network communication terminal address search method as claimed in claim 2, it is characterized in that described communication host to stack hand over word resolve, its method is specially the hexadecimal hand over word after stack is converted to binary number, in binary number there is communication terminal address in 1 Wei Gai position, position, turns left from the right side, since which position of 0 number, is exactly the hexadecimal digit being applied in 1 position.
4. synchronous communication network communication terminal address search method as claimed in claim 3, is characterized in that described method also comprises the hand over word of directly preserving is reduced to communication terminal address according to coding rule.
5. synchronous communication network communication terminal address search method as claimed in claim 4, it is characterized in that described method also comprises will resolve and the communication terminal address of reduction obtains the address of all communication terminals after combining according to order, and these addresses are confirmed with communication terminal one by one.
6. synchronous communication network communication terminal address search method as claimed in claim 1, is characterized in that described communication host is one, and it connects one or more communication terminals.
CN201210107540.0A 2012-04-13 2012-04-13 Synchronous communication network terminal address searching method Active CN102647484B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210107540.0A CN102647484B (en) 2012-04-13 2012-04-13 Synchronous communication network terminal address searching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210107540.0A CN102647484B (en) 2012-04-13 2012-04-13 Synchronous communication network terminal address searching method

Publications (2)

Publication Number Publication Date
CN102647484A CN102647484A (en) 2012-08-22
CN102647484B true CN102647484B (en) 2014-11-26

Family

ID=46660057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210107540.0A Active CN102647484B (en) 2012-04-13 2012-04-13 Synchronous communication network terminal address searching method

Country Status (1)

Country Link
CN (1) CN102647484B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988444B (en) * 2020-08-19 2022-10-18 成都安可信电子股份有限公司 Method for searching address of synchronous bus rapid search terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1299202A (en) * 1999-11-22 2001-06-13 三星电子株式会社 Address searching device and method in Ethernet transducer
KR20070055953A (en) * 2005-11-28 2007-05-31 오준수 Toll-free communication methode and portable device for toll-free communication
CN101216778A (en) * 2008-01-21 2008-07-09 中国科学院计算技术研究所 RISC processor device and its instruction address conversion lookup method
CN102404181A (en) * 2010-09-08 2012-04-04 华为技术有限公司 Address corresponding relationship sending method of layer 2 protocol utilizing link state routing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1299202A (en) * 1999-11-22 2001-06-13 三星电子株式会社 Address searching device and method in Ethernet transducer
KR20070055953A (en) * 2005-11-28 2007-05-31 오준수 Toll-free communication methode and portable device for toll-free communication
CN101216778A (en) * 2008-01-21 2008-07-09 中国科学院计算技术研究所 RISC processor device and its instruction address conversion lookup method
CN102404181A (en) * 2010-09-08 2012-04-04 华为技术有限公司 Address corresponding relationship sending method of layer 2 protocol utilizing link state routing

Also Published As

Publication number Publication date
CN102647484A (en) 2012-08-22

Similar Documents

Publication Publication Date Title
CN103379136A (en) Compression method and decompression method of log acquisition data, compression apparatus and decompression apparatus of log acquisition data
US9173129B2 (en) IPV6 address management method and gateway performing the same
CN102694855A (en) Meteorological disaster early warning information publishing system and method on basis of Beidou satellite
CN104748289A (en) Wireless multiple on-line inner and outer unit communication method and air conditioning system
CN101834792A (en) Method and correlative device for configuring optical network unit of ethernet passive optical network system
CN109116758A (en) A kind of vehicle-mounted terminal system based on cloud platform
CN104378117A (en) Data compression method and device and data transmission method and system
CN104581635A (en) Method and system for transmitting locating information and device
CN102647484B (en) Synchronous communication network terminal address searching method
CN103281229A (en) Motion control bus communication method based on Ethernet physical layer
CN109038824B (en) Distributed feeder automation method
CN103036641B (en) Method for interchanging data, system and unserializing method
CN103532700A (en) Communication message encryption and decryption model of electricity consumption information collecting system
CN105450359A (en) Methods for sending and receiving user-defined binary structured protocol data
CN101105747A (en) Power station communication system and its reduction procedure implement method
CN102833360A (en) Method and device for automatically generating Internet protocol (IP) address of off-line terminal
CN104021121A (en) Method, device and server for compressing text data
CN105430665A (en) Method and system for realizing multi-network mixed scale networking
CN102938581B (en) Communication service method and system for on-line monitoring of transformer substation
CN104333500A (en) Signal conversion method, device and system
CN101415025A (en) Method, apparatus and system for processing network data
CN107276719B (en) Number decimal number odd-even number identification method for communication system
CN105354053A (en) SED file based configuration method for inter-station virtual terminator
CN104899311A (en) WebGIS (Web Geographic Information System) vector data high-efficiency transmission method
CN1161911C (en) Mapping method from the calculated value of transmission format combination to the indication of transmission format combination

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant