Nothing Special   »   [go: up one dir, main page]

CN101170475A - Signaling token control method for slave station active communication in star half duplex link - Google Patents

Signaling token control method for slave station active communication in star half duplex link Download PDF

Info

Publication number
CN101170475A
CN101170475A CNA2006101230735A CN200610123073A CN101170475A CN 101170475 A CN101170475 A CN 101170475A CN A2006101230735 A CNA2006101230735 A CN A2006101230735A CN 200610123073 A CN200610123073 A CN 200610123073A CN 101170475 A CN101170475 A CN 101170475A
Authority
CN
China
Prior art keywords
slave station
main website
token
packet
send
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
CNA2006101230735A
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.)
Comba Telecom Technology Guangzhou Ltd
Original Assignee
Comba Telecom Technology Guangzhou 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 Comba Telecom Technology Guangzhou Ltd filed Critical Comba Telecom Technology Guangzhou Ltd
Priority to CNA2006101230735A priority Critical patent/CN101170475A/en
Publication of CN101170475A publication Critical patent/CN101170475A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention relates to a token control method of the slave station active communication in star-shaped half-duplex link, including the following steps: 1) a main station emits the token packets at definite time to be polled in a plurality of slave stations; 2) the slave stations send the command packets which need to be sent to the main station after receiving the token packets of the main station; 3) the main station sends the command response packets back to the slave stations after receiving the command packets; 4) if the slave stations still have the command packets which need to be sent, the command packets continue to be sent out, then back to step 3) for continue implementation, otherwise, the step 5) is implemented; 5) the slave stations send the token response packets back to the main station. Compared with the prior art, the invention has the following advantages that: the command packets of the slave stations which are sent between the receiving of the tokens and the response of the tokens are changed to active from the passive by the application of the simple technology, so as to solve the problem of active communication between the slave stations and the main station.

Description

The token control method of slave station active communication in the star half duplex link
[technical field]
The present invention relates to mobile communication and industrial control field, relate in particular to the token control method of slave station active communication in a kind of star half duplex link.
[background technology]
As the cross-application of computer technology and mobile communication technology, the centralized monitor technology plays very crucial effect in the monitoring to each distributed work node of mobile communication system.A common centralized monitoring system comprises a plurality of working ends, forms different networks according to different topological structures, has also just formed different data link.In the real world applications, the data link structure of centralized monitor can be divided into two kinds, and promptly point-to-point link and point-to-points link as shown in Figure 1, among Fig. 1 (a), only have two nodes, i.e. point-to-point links; Fig. 1 (b) then is point-to-points link.If these data link connect by half-duplex physical channel (as RS-485), then be referred to as half-duplex centralized monitor data link structure.
Usually, the node of transmission information and order is called main website, and the node that response is sent in reception information and order then is called slave station.Have only a main website in centralized monitoring system, other is all slave station.Surveillance center communicates by main website and slave station.In half-duplex centralized monitor data link, the communication link between standing and standing exists always, and the centre does not need to set up link and removes link.All websites can be received the packet on the communication link, if the destination address of packet is different with the address of our station, then abandon this packet, otherwise then do further processing.In order to prevent data collision, the website that is in the data transmit status in arbitrary moment link can only be one.Therefore, the data interaction in the centralized monitoring system between station and the station can only be taked the mode of question-response, and slave station can not initiatively be initiated communication request in theory.
In some distributed systems, because main website and each slave station distance are far away, therefore need get access to the relevant parameter information of main website from the slave station end, at this moment, the technology of slave station and main website active communication just seems particularly important.
[summary of the invention]
Purpose of the present invention will overcome above-mentioned deficiency exactly, provides a kind of slave station can initiatively communicate the token control method of slave station active communication in the star half duplex link of realizing interactive communication.
The objective of the invention is to be achieved through the following technical solutions:
The token control method of slave station active communication comprises the steps: in the star half duplex link of the present invention
1), main website regularly sends token packet poll between a plurality of slave stations;
2), after slave station receives the token packet of main website, the order bag that need are sent is sent to main website;
3), main website this slave station of Bao Houxiang that receives orders is beamed back order and is responded bag;
4), send the order bag, then continue order bag to send, get back to step 3) then and continue execution if slave station is still needed, otherwise execution in step 5);
5), slave station is beamed back token to main website and is responded bag.
In above-mentioned steps, main website receives the packet that all slave stations send, and slave station only to handle the source station be main website but the point of destination is the packet of our station, the effect of center control by this constraint performance main website.
Further, for avoiding bus collision, when the next stop is in wait state, do not allow to send token or order is wrapped on the bus.
For strengthening the reliability of communication process, exception handling can be set, i.e. main website and/or send or wait for that before the packet, default timing parameters if Data Receiving surpasses this timing parameters, then resets and handles related data again from standing in.
Compared with prior art, the present invention possesses following advantage: by using simple technology, receiving token and responding the order bag that sends slave station between this token, regain the initiative, solved the problem of slave station and main website active communication.
[description of drawings]
Fig. 1 is a data link structural principle schematic diagram, and wherein (a) is point-to-point schematic diagram, (b) then is point-to-points schematic diagram;
Principle schematic when Fig. 2 is slave station of the present invention and master station communication;
Fig. 3 is the illustraton of model of software of the present invention;
Fig. 4 receives program flow diagram for master station communication mechanism of the present invention;
Fig. 5 is master station communication mechanism router flow chart of the present invention;
Fig. 6 is slave station communication mechanism process chart of the present invention.
[embodiment]
The present invention is further illustrated below in conjunction with drawings and Examples:
In centralized monitoring system, main website needs constantly to collect the parameter of slave station, and unusual if slave station occurs, main website must report to Surveillance center at once.It is to send the inquiry command packet by timing to each slave station that the slave station parameter is collected by main website, and slave station response inquiry packet is realized.The relatively-stationary polling data bag of this frame format is called as token.The response data packet of token is referred to as token and responds bag.If because of other active communication packet that need send, be referred to as order, the response data packet of order then is referred to as order and responds bag.
See also Fig. 2, in the principle schematic of the token control method of slave station active communication, the left and right sides comprises main website and slave station respectively in the star half duplex link of the present invention, and the communication process of main website and slave station is as follows:
1), main website regularly sends token packet poll between a plurality of slave stations;
2), after slave station receives the token packet of main website, the order bag that need are sent is sent to main website;
3), main website this slave station of Bao Houxiang that receives orders is beamed back order and is responded bag;
4), send the order bag, then continue order bag to send, get back to step 3) then and continue execution if slave station is still needed, otherwise execution in step 5);
5), slave station is beamed back token to main website and is responded bag.
In above-mentioned steps, main website receives the packet that all slave stations send, and slave station only to handle the source station be main website but the point of destination is the packet of our station, the effect of center control by this constraint performance main website.
Further, for avoiding bus collision, when the next stop is in wait state, do not allow to send token or order is wrapped on the bus.
For strengthening the reliability of communication process, exception handling can be set, i.e. main website and/or send or wait for that before the packet, default timing parameters if Data Receiving surpasses this timing parameters, then resets and handles related data again from standing in.
If slave station also has order need send to main website, then constantly repeat said process.
See also Fig. 3, Fig. 3 has disclosed the software model of realizing said method, comprises the bus port driver module, and communication mechanism is realized module, token management module and application module.This software model is applied in the centralized monitoring system, below further discloses the specific implementation of its communication mechanism by the flow chart among Fig. 4 to Fig. 6.
Fig. 4 is the flow chart of master station communication mechanism reception program.After entering master station communication mechanism reception treatment progress, constantly detect whether receive packet from bus, when receiving packet, whether the detection main website is in token is responded wait state.
If being in token, main website responds wait state, then further check the type of the packet of being received, if not the order bag that slave station is sent, then respond bag for token, this token is responded the token management resume module that bag is given our station, when disposing, the main website current state is revised as idle condition, and whether the continuation testbus there is packet; If received packet is the order bag, then judge whether this main website of its point of destination, in this way, to order bag to give the our station application module and handle, continue the testbus packet, as not being, then current data packet can not be discerned, and it is abandoned, and continues to scout the bus data bag;
If main website is in token to respond state, check further then whether main website is in order and responds wait state, as not being, show that then current bag can not discern, it is abandoned the back continue the testbus data, be in order as main website and respond wait state, then analyze this order and respond bag, if this bag is the response our station, then should order to respond to wrap and give the our station application module, the main website current state is modified as continuation testbus data after the idle condition, otherwise, current bag can not be discerned, and it is abandoned, and continues the testbus data.
So constantly circulate, can guarantee the operate as normal of master station communication mechanism.
Among Fig. 5, further disclosed the flow chart of master station communication mechanism router, after entering the transmission process, constantly whether detection has packet to send on the bus, if needs are arranged, then calling the bus port driving sends packet, then, revise different states according to the type of this packet, promptly, when packet was token packet, revising the main website current state was that token is responded wait state; When packet is when order, revising that the main website current state responds wait state for order and write down the website that wait command responds is our station.After above-mentioned state information modification finishes, continue to detect whether need to send packet.
Fig. 6 is a slave station communication mechanism handling procedure flow chart, and the packet on the continuous testbus of this process when receiving packet, detects the state of our station.
When if our station is in idle condition, further check type of data packet,, its application module of giving our station is handled for the order bag, for token packet, determine at first then whether our station has the order bag to send,, give our station token management module token packet and carry out conventional treatment and get final product if do not have, if have, then call bus port and drive and will order bag to send, and revise the our station current state and be order response wait state, the packet that keeps to bus detects.
If the non-idle condition that is in of our station, then further detect our station and whether be in order response wait state, if not, show that then current bag can not discern, it is abandoned, if wait state is responded in order, then whether the packet that also need acknowledge receipt of earlier is that bag is responded in order, if not, in like manner abandon, if bag is responded in order, then will order to respond to wrap and give the processing of our station application module, judging further then whether all order bags all send finishes, and in this way, then constantly calls bus port and drives order bag transmission to be sent, revising the our station current state becomes order to respond wait state, so be circulated to all order bags send finish after, send token and respond and wrap main website, revising the our station current state is idle condition.The cycle detection that keeps bus data bag.
Description by above-mentioned specific embodiment, clearly revealed implementation of the present invention, the technology of the present invention is simple, solved the fundamental issue of slave station and main website active communication, suiting to be applied to slave station has continuous a plurality of order bag to send to the situation of main website, at this moment, the efficient of slave station active communication approaches the communication that main website initiates.
As mentioned above, although represented and described the present invention with reference to specific preferred embodiment, but it shall not be construed as the restriction to the present invention self, those skilled in the art should be understood that, under the prerequisite of the spirit and scope of the present invention that do not break away from the claims definition, can make various variations in the form and details to it.Appending claims has covered all such changes and modifications in the spirit and scope of the invention.

Claims (5)

1. the token control method of slave station active communication in the star half duplex link is characterized in that comprising the steps:
1), main website regularly sends token packet poll between a plurality of slave stations;
2), after slave station receives the token packet of main website, the order bag that need are sent is sent to main website;
3), main website this slave station of Bao Houxiang that receives orders is beamed back order and is responded bag;
4), send the order bag, then continue order bag to send, get back to step 3) then and continue execution if slave station is still needed, otherwise execution in step 5);
5), slave station is beamed back token to main website and is responded bag.
2. the token control method of slave station active communication in the star half duplex link according to claim 1, it is characterized in that: main website receives the packet that all slave stations send, and slave station only to handle the source station be main website but the point of destination is the packet of our station.
3. the token control method of slave station active communication in the star half duplex link according to claim 1 and 2 is characterized in that: when the next stop is in wait state, do not allow to send token or order is wrapped on the bus.
4. the token control method of slave station active communication in the star half duplex link according to claim 1 and 2, it is characterized in that: main website and/or send or wait for before the packet from standing in, default timing parameters if Data Receiving surpasses this timing parameters, then resets and handles related data again.
5. the token control method of slave station active communication in the star half duplex link according to claim 3, it is characterized in that: main website and/or send or wait for before the packet from standing in, default timing parameters if Data Receiving surpasses this timing parameters, then resets and handles related data again.
CNA2006101230735A 2006-10-27 2006-10-27 Signaling token control method for slave station active communication in star half duplex link Pending CN101170475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101230735A CN101170475A (en) 2006-10-27 2006-10-27 Signaling token control method for slave station active communication in star half duplex link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101230735A CN101170475A (en) 2006-10-27 2006-10-27 Signaling token control method for slave station active communication in star half duplex link

Publications (1)

Publication Number Publication Date
CN101170475A true CN101170475A (en) 2008-04-30

Family

ID=39390951

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101230735A Pending CN101170475A (en) 2006-10-27 2006-10-27 Signaling token control method for slave station active communication in star half duplex link

Country Status (1)

Country Link
CN (1) CN101170475A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105632385A (en) * 2016-03-04 2016-06-01 广州市丰海科技股份有限公司 LED display screen blind spot detection method and detection device thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105632385A (en) * 2016-03-04 2016-06-01 广州市丰海科技股份有限公司 LED display screen blind spot detection method and detection device thereof
CN105632385B (en) * 2016-03-04 2019-10-22 广州市丰海科技股份有限公司 A kind of LED display blind-spot detection method and its detection device

Similar Documents

Publication Publication Date Title
CN103634150B (en) A kind of high security CAN communication means of redundancy
CN101170473A (en) Slave station active communication method in star half duplex link
CN105657639A (en) Dual-mode device and synchronous communication realizing method thereof
CN102843390B (en) The Ethernet deterministic data transmission method of data-oriented role
CN101378333B (en) System, apparatus and method for transmitting and receiving check information message continuously
CN106612313A (en) Vehicular remote communication method
CN103107940B (en) For the redundant gateway system of device level looped network
CN102946376A (en) Method for implementing asynchronous communication
CN106506595A (en) Upgrade method based on point-to-point Internet of Things intelligent Community equipment
KR101179431B1 (en) Network Management System based on a EhterCAT And Managing Method thereof
CN103997436A (en) Link maintaining method and gateway in internet of things of elevator
CN112489409A (en) Data processing method and system for hybrid access of multi-protocol Internet of things terminal to RS485 bus
CN101170474A (en) Simple signaling token control method for slave station active communication in star half duplex link
CN112565038B (en) RS485 bus-based low-load communication method
CN101170475A (en) Signaling token control method for slave station active communication in star half duplex link
CN112929329B (en) Cluster control system based on Ethernet/IP protocol and communication method thereof
CN101170476A (en) Packet packing method for slave station active communication in star half duplex link
CN106708701A (en) Central maintenance device and method based on ARINC659 bus
CN109245864B (en) ETH-CAN communication front-end detection device based on self-feedback and error self-detection method
CN101626331B (en) Ethernet communication control method for steel and iron continuous annealing system
CN115776422B (en) EtherCAT slave station and data transmission system
CN111510362B (en) Communication method and system based on ModBus data service function
CN115834282A (en) CAN bus communication method, device, equipment and readable storage medium
CN112994998A (en) Communication node, communication method, communication device and electronic equipment
CN110601944A (en) CAN protocol communication method applied to Internet of things

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080430