CN106059876A - Mode switching control method, device and system for unidirectional serial bus network - Google Patents
Mode switching control method, device and system for unidirectional serial bus network Download PDFInfo
- Publication number
- CN106059876A CN106059876A CN201610456960.8A CN201610456960A CN106059876A CN 106059876 A CN106059876 A CN 106059876A CN 201610456960 A CN201610456960 A CN 201610456960A CN 106059876 A CN106059876 A CN 106059876A
- Authority
- CN
- China
- Prior art keywords
- node device
- mode
- message
- switching command
- command message
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
- H04L12/40013—Details regarding a bus controller
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a mode switching control method, a mode switching method, a device and a system for a unidirectional serial bus network. Master node equipment determines a working mode required by slave node equipment, and instructs the slave node equipment by virtue of a first mode switching instruction message or a second mode switching instruction message to switch into the required working mode; the slave node equipment is configured with two types of working modes: a receiving and forwarding working mode and a receiving and transparent transferring working mode; when the working mode is the receiving and forwarding working mode, received service messages are processed, and whether to send the processed service messages or not is judged; and when the working mode is the receiving and transparent transferring working mode, the received service messages are processed, and the service messages are sent at the same time. Thus, in the embodiments of the invention, the slave node equipment can perform switching of the working mode according to instructions from the master node equipment so as to adapt to different types of service requirements.
Description
Technical field
The present invention relates to communication technical field, particularly relate to the pattern switching control side of a kind of unidirectional serial bus network
Method, equipment and system.
Background technology
At present, the unidirectional serial bus applications such as RS485 copies the networks such as instrument in remote industrial control, long-distance intelligent;Wherein,
This network generally connects in the way of unidirectional looped network or unidirectional looped network are socketed unidirectional looped network, specifically includes the following two kinds networking side
Formula: mode one, concentrator directly constitute unidirectional looped network by unidirectional universal serial bus with some intelligence instruments;Mode two, concentrator
Forming backbone network with harvester by unidirectional looped network, each harvester is the most respectively by unidirectional universal serial bus and some intelligence instruments
Constitute unidirectional ring net.In above-mentioned networking mode, due to the unidirectional restriction by the unidirectional universal serial bus of RS485, harvester and intelligence
Instrument can only support to receive transparent transmission mode of operation, under this reception transparent transmission mode of operation, the data message received processed,
It is sent to this data message send port simultaneously, and this reception transparent transmission mode of operation is only applicable to, and data traffic is big and time delay is little
The transmission of general service message and response, be not particularly suited for that data traffic is little and the control class service message of time delay no requirement (NR)
Send and response;Therefore, how to make the different types of business demand of network-adaptive built by above-mentioned networking mode, become one
Individual technical problem urgently to be resolved hurrily.
Summary of the invention
The shortcoming of prior art in view of the above, it is an object of the invention to provide a kind of unidirectional serial bus network
Mode switch control method, mode switching method, Apparatus and system, the first mould sent according to host node device from node device
The instruction of formula switching command message or the second pattern switching command message is operated the switching of pattern, different types of to adapt to
Business demand.
For achieving the above object and other relevant purposes, the embodiment of the present invention provides the mould of a kind of unidirectional serial bus network
Formula method for handover control, described unidirectional serial bus network includes host node device, at least one is from node device;Wherein, institute
Stating host node device and constitute unidirectional looped network with at least one from node device by unidirectional universal serial bus, the method includes:
Described host node device determines the described mode of operation needed from node device;
Determine when the mode of operation of needs forwards mode of operation for receiving, send first mode switching command message, described
First mode switching command message is used for indicating the described reception forwarding mode of operation that mode of operation switched to from node device, same
Time, from during as centre from node device, described first mode switching command message is being transmitted to the down hop of self from node
Equipment;Described first mode switching command message is being returned to described host node setting from during as final jump from node device
Standby;
When determining the mode of operation of needs for receiving transparent transmission mode of operation, send the second pattern switching command message, described
Second pattern switching command message is used for indicating described mode of operation being switched to from node device to receive transparent transmission mode of operation also
Judge whether to forward described second pattern switching command message;When judging to forward described second pattern switching command message,
From during as centre from node device by described second pattern switching command message forward down hop from node device, from as
Described first mode switching command message is returned to described host node device when node device by final jump;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
Preferably, the method also includes:
Described host node device receives the first mode switching command message returned;
Described host node device determines described from the work of node device according to the first mode switching command message returned
Pattern switches to reception to forward mode of operation.
Preferably, the method also includes:
Described host node device determines described after the mode of operation of node device switches to reception to forward mode of operation, sends out
Topology learning instruction message, described topology learning instruction message is sent to be used for indicating and described read described topology learning from node device
From the nodes of node device in instruction message, after described nodes is added 1, update described nodes, by update nodes,
Self address or equipment of itself ID add in described topology learning instruction message, and from as centre from node device time,
Topology learning instruction message after interpolation being completed is transmitted to the down hop of self from node device;From as final jump from
During node device, the topology learning instruction message after interpolation being completed returns to described host node device;
Described host node device receives the topology learning instruction message returned, according in the topology learning instruction message returned
Nodes, determine the topological structure of described unidirectional looped network from node device address or ID.
Preferably, described host node device sends topology learning instruction message, including:
Described host node device sends topology learning instruction message according to setting time interval or command triggers mode.
The embodiment of the present invention also provides for the mode switching method of a kind of unidirectional serial bus network, described unidirectional universal serial bus
Network includes host node device, at least one is from node device;Wherein, described host node device by unidirectional universal serial bus with extremely
Few one constitutes unidirectional looped network from node device, and the method includes:
Described when node device receives first mode switching command message, according to described first mode switching command report
Literary composition instruction mode of operation is switched to reception forward mode of operation, meanwhile, from as centre from node device time, by described
First mode switching command message is transmitted to the down hop of self from node device;At oneself as final jump from node device
Time, described first mode switching command message is returned to described host node device;
Described when node device receives the second pattern switching command message, according to described second pattern switching command report
Mode of operation is switched to reception transparent transmission mode of operation by the instruction of literary composition, and judges whether to forward described second pattern switching command
Message;Judge forward described second pattern switching command message time, from as centre from node device time by described second
Pattern switching command message forward down hop from node device, from as final jump from node device time by described first mould
Formula switching command message returns to described host node device;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
Preferably, the method also includes:
Described mode of operation switches to from node device reception forward after mode of operation, receive described host node device and send out
The topology learning instruction message sent;
Described read described topology learning instruction message from the nodes of node device from node device, by described node
Number updates described nodes after adding 1, and adds the nodes of renewal, Self address or equipment of itself ID to described topology learning
In instruction message;
Described from node device from as centre from node device time, the topology learning instruction message after interpolation is completed
It is transmitted to the down hop of self from node device;From as final jump from node device time, the topology after interpolation is completed
Study instruction message returns to described host node device.
According to said method, embodiments provide a kind of master node device, be applied to include host node device, extremely
A few host node device from the unidirectional serial bus network of node device;Wherein, described host node device is by unidirectional
Universal serial bus constitutes unidirectional looped network with at least one from node device, and this device comprises determining that module, sending module;Wherein,
Described determine module, for determining the described mode of operation needed from node device;
Described, described sending module, for determining that module determines that the mode of operation of needs forwards mode of operation for receiving
Time, send first mode switching command message, described first mode switching command message be used for indicating described will from node device
Mode of operation switches to reception to forward mode of operation, from during as centre from node device, is cut by described first mode meanwhile
Change instruction message and be transmitted to the down hop of self from node device;From during as final jump from node device, by described the
One pattern switching command message returns to described host node device;
And described determine that module determines the mode of operation of needs for receiving transparent transmission mode of operation time, second pattern that sends is cut
Changing instruction message, described second pattern switching command message is used for indicating and described from node device, mode of operation is switched to reception
Transparent transmission mode of operation also judges whether to forward described second pattern switching command message;Judging the described second pattern switching of forwarding
During instruction message, from as centre from node device time by described second pattern switching command message forward down hop from joint
Point device, sets from described first mode switching command message being returned to described host node during as final jump from node device
Standby;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
Preferably, this device also includes:
Receiver module, for receiving the first mode switching command message of return;
Described determine module, be additionally operable to determine according to the first mode switching command message returned described from node device
Mode of operation switches to reception to forward mode of operation.
Preferably, described sending module, it is additionally operable to described that to determine that module determines described from the mode of operation of node device
After switching to reception to forward mode of operation, sending topology learning instruction message, described topology learning instruction message is used for indicating institute
State and read described topology learning instruction message from the nodes of node device from node device, after described nodes is added 1 more
New described nodes, adds to the nodes of renewal, Self address or equipment of itself ID in described topology learning instruction message;
And from during as centre from node device, the topology learning instruction message after interpolation is completed be transmitted to self down hop from
Node device, from during as final jump from node device, the topology learning instruction message after interpolation being completed returns to institute
State host node device;
Described determine module, be additionally operable to when described receiver module receives the topology learning instruction message of return, according to
Return topology learning instruction message in nodes, determine from node device address or ID described unidirectional looped network topology knot
Structure.
Preferably, described sending module, it is additionally operable to send topology learning according to setting time interval or command triggers mode
Instruction message.
According to said method, embodiments provide a kind of from node apparatus, be applied to include host node device, extremely
Few one from the unidirectional serial bus network of node device from node device;Wherein, described host node device is by unidirectional
Universal serial bus with at least one from node device constitute unidirectional looped network, this device includes: receiver module, mode switch module, send out
Send module;Wherein,
Described receiver module, is used for receiving first mode switching command message and the second pattern switching command message;
Described mode switch module, is used for when described receiver module receives first mode switching command message, according to
The instruction of described first mode switching command message mode of operation is switched to reception forward mode of operation, meanwhile, from as
Middle when node device, indicate described sending module that described first mode switching command message is transmitted to the down hop of self
From node device;From during as final jump from node device, described sending module is indicated the switching of described first mode to be referred to
Message is made to return to described host node device;
Described mode switch module, is additionally operable to when described receiver module receives the second pattern switching command message, root
According to the instruction of described second pattern switching command message, mode of operation switched to reception transparent transmission mode of operation, and judge whether to turn
Send out the second pattern switching command message described;When judging to forward described second pattern switching command message, from as centre
When node device, described sending module is indicated the down hop that described second pattern switching command message forwards to be set from node
Standby, from during as final jump from node device, indicate described sending module to be returned by described first mode switching command message
Back to described host node device;
Described sending module, is used for the instruction according to described mode switch module by described first mode switching command message
It is transmitted to self down hop from node device or described first mode switching command message is returned to described host node set
Standby;And, according to the instruction of described mode switch module described second pattern switching command message is transmitted to self next
Jump from node device or described second pattern switching command message is returned to described host node device;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
Preferably, described receiver module, it is additionally operable to switch to reception to forward mode of operation in described mode switch module
After mode of operation, receive the topology learning instruction message that described host node device sends;
Described device also includes:
More new module, for reading from the nodes of node device in described topology learning instruction message, by described node
Number updates described nodes after adding 1, and adds the nodes of renewal, Self address or equipment of itself ID to described topology learning
In instruction message;And from as centre from node device time, the topology learning after indicating described sending module interpolation to be completed
Instruction message is transmitted to self down hop from node device, and from during as final jump from node device, instruction is described to be sent out
Topology learning instruction message after sending module interpolation to be completed returns to described host node device.
Described sending module, is additionally operable to the instruction report of the topology learning after interpolation is completed by the instruction according to described more new module
Literary composition is transmitted to the down hop of self from node device;Or, the topology after interpolation being completed according to the instruction of described more new module
Study instruction message returns to described host node device.
According to said method, the embodiment of the present invention additionally provides the communication system of a kind of unidirectional serial bus network, and this is
System includes: concentrator, at least one harvester, at least one intelligence instrument;Described concentrator includes above-mentioned master node device,
Described harvester includes above-mentioned master node device and above-mentioned from node apparatus, and described intelligence instrument includes above-mentioned from node
Device;Wherein, described concentrator constitutes unidirectional looped network by unidirectional universal serial bus and at least one described harvester, each described
Harvester constitutes unidirectional ring net by unidirectional universal serial bus with at least one described intelligence instrument respectively.
According to said method, the embodiment of the present invention additionally provides the communication system of a kind of unidirectional serial bus network, and this is
System includes: concentrator, at least one intelligence instrument, and described concentrator includes above-mentioned master node device, described intelligence instrument bag
Include above-mentioned from node apparatus;Wherein, described concentrator is consisted of with at least one described intelligence instrument unidirectional universal serial bus
Unidirectional looped network.
In the embodiment of the present invention, described unidirectional serial bus network includes host node device, at least one is from node device;
Wherein, described host node device constitutes unidirectional looped network with at least one from node device by unidirectional universal serial bus;Described main joint
Point device determines the described mode of operation needed from node device, determines that the mode of operation of needs forwards mode of operation for receiving
Time, send first mode switching command message, described first mode switching command message be used for indicating described will from node device
Mode of operation switches to reception to forward mode of operation, is being cut by described first mode from during as centre from node device meanwhile
Change instruction message and be transmitted to the down hop of self from node device;From as final jump from node device time by described first
Pattern switching command message returns to described host node device;When determining the mode of operation of needs for receiving transparent transmission mode of operation,
Send the second pattern switching command message, described second pattern switching command message be used for indicating described from node device by work
Pattern switches to reception transparent transmission mode of operation, and judges whether to forward described second pattern switching command message;Judging forwarding
During described second pattern switching command message, from as centre from node device time by described second pattern switching command message
Described first mode switching command message, from node device, is returned by the down hop forwarded from during as final jump from node device
Back to described host node device;Wherein, when mode of operation forwards mode of operation for receiving, at the service message received
Reason, and judge whether that the service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, to the business received
Message processes, and is sent by described service message simultaneously.So, host node device described in the embodiment of the present invention determines described
The mode of operation needed from node device, and by described first mode switching command message or the second pattern switching command message
The described mode of operation being switched to from node device need of instruction, can adapt to different types of industry so that described from node device
Business demand.
In the embodiment of the present invention, described when node device receives the second pattern switching command message, according to described
Mode of operation is switched to reception transparent transmission mode of operation by the instruction of two modes switching command message, and judges whether to forward described the
Two modes switching command message;When judging to forward described second pattern switching command message, jumping from node from as centre
The down hop forwarded by described second pattern switching command message during equipment is from node device, from setting from node as final jump
Time standby, described first mode switching command message is returned to described host node device;Wherein, mode of operation forwards work for receiving
During operation mode, the service message received is processed, and judge whether that the service message after processing sends;Mode of operation is
When receiving transparent transmission mode of operation, the service message received is processed, described service message is sent simultaneously.So, this
Bright embodiment configures two kinds of mode of operations from node device, and pattern can be operated according to the instruction of host node device
Switching, to adapt to different types of business demand.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of the mode switch control method of the unidirectional serial bus network of the present invention;
Fig. 2 is shown as the schematic flow sheet of the mode switching method of another unidirectional serial bus network of the present invention;
Fig. 3 is shown as the composition structural representation of the master node device of the present invention;
Fig. 4 is shown as the composition structural representation from node apparatus of the present invention;
Fig. 5 is shown as the composition structural representation from node device of the present invention;
Fig. 6 is shown as the composition structural representation of the communication system of the unidirectional serial bus network of the present invention;
Fig. 7 is shown as the composition structural representation of the communication system of another unidirectional serial bus network of the present invention.
Detailed description of the invention
The embodiment of the present invention is applied to unidirectional serial bus network, and described unidirectional serial bus network includes that host node sets
Standby, at least one is from node device;Wherein, by unidirectional universal serial bus and at least one is from node device for described host node device
Constituting unidirectional looped network, therefore, described unidirectional serial bus network includes described unidirectional looped network;In actual applications, described main joint
Point device can use the device such as concentrator or harvester to realize, and described the device such as intelligence instrument can be used real from node device
Existing, such as, the device such as intelligent electric meter, Intellectual Heat Meter, intellectual water meter, intelligence gas meter.Based on the above-mentioned network architecture, the present invention implements
The pattern switching control process of the unidirectional serial bus network that example provides is as follows:
Described host node device determines the described mode of operation needed from node device, determines that the mode of operation of needs is for connecing
When receiving forwarding mode of operation, send first mode switching command message to described from node device;
Described when node device receives first mode switching command message, according to described first mode switching command report
Literary composition instruction mode of operation is switched to reception forward mode of operation, meanwhile, from as centre from node device time by described
First mode switching command message is transmitted to the down hop of self from node device;From during as final jump from node device
Described first mode switching command message is returned to described host node device;
Described host node receives the first mode switching command message returned, according to the first mode switching command report returned
Literary composition determines that described switching to from the mode of operation of node device receives forwarding mode of operation;
When described host node device determines the mode of operation of needs for receiving transparent transmission mode of operation, to described from node device
Send the second pattern switching command message;
Described when node device receives the second pattern switching command message, according to described second pattern switching command report
Mode of operation is switched to reception transparent transmission mode of operation by the instruction of literary composition, and judges whether to forward described second pattern switching command report
Literary composition;Judge forward described second pattern switching command message time, from as centre from node device time by described second mould
Formula switching command message forward down hop from node device, from as final jump from node device time by described first mode
Switching command message returns to described host node device;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
Further, for realizing the automatic study of network topology structure, described host node device determine described from node
After the mode of operation of equipment switches to reception to forward mode of operation, send open up according to setting time interval or command triggers mode
Flutter study instruction message;
Described when node device receives described topology learning instruction message, read in described topology learning instruction message
From the nodes of node device, after described nodes is added 1, update described nodes, and by the nodes updated, Self address
Or equipment of itself ID adds in described topology learning instruction message;After interpolation being completed during as centre from node device
Topology learning instruction message be transmitted to the down hop of self from node device;To from during as final jump from node device
Topology learning instruction message after having added returns to described host node device;
Described host node device receives the topology learning instruction message returned, according in the topology learning instruction message returned
Nodes, determine the topological structure of described unidirectional looped network from node device address or ID, with realize network topology structure from
Dynamic study.
In the embodiment of the present invention, host node device determines the described mode of operation needed from node device, as required
The described switching being operated pattern from node device of mode of operation instruction, can adapt to difference so that described from node device
The business demand of type;Further, described host node device switches to reception to turn from the mode of operation of node device described in determining
After sending out mode of operation, send topology learning instruction message to described from node device, be described open up from the renewal of node device hop-by-hop
Flutter the nodes in study instruction message, and constantly Self address or equipment of itself ID are appended to the instruction of described topology learning
In message, and returned to described host node by final jump topology learning instruction message after interpolation is completed by node device and set
Standby;Described host node device according to return topology learning instruction message in nodes, determine from node device address or ID
The topological structure of described unidirectional looped network, thus realize the automatic study of network topology structure rapidly, tie with sensing network topology
The change of structure.
Below in conjunction with the accompanying drawings and specific embodiment the present invention will be further described in detail.
As it is shown in figure 1, the pattern switching control flow process of the unidirectional serial bus network of embodiment of the present invention offer, it is applied to
In host node device, implement step and include:
Step S100: described host node device determines the described mode of operation needed from node device, determines the work of needs
When operation mode forwards mode of operation for receiving, proceed to step S101;Determine that the mode of operation of needs is for receiving transparent transmission mode of operation
Time, proceed to step S102;
Step S101: sending first mode switching command message, described first mode switching command message is used for indicating institute
State and from node device, mode of operation switches to reception forward mode of operation, meanwhile, from will during as centre from node device
Described first mode switching command message is transmitted to the down hop of self from node device;From setting from node as final jump
Time standby, described first mode switching command message is returned to described host node device, terminate this handling process;
Step S102: send the second pattern switching command message, described second pattern switching command message is used for indicating institute
State and from node device, mode of operation switched to reception transparent transmission mode of operation and judge whether to forward described second pattern switching to refer to
Make message;When judging to forward described second pattern switching command message, from during as centre from node device by described the
The down hop that two modes switching command message forwards from node device, from during as final jump from node device by described the
One pattern switching command message returns to described host node device;
Here, when judging to forward described second pattern switching command message, need not forward described second mould in judgement
During formula switching command message, stop forwarding described second pattern switching command message.
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
Concrete, described when node device is operated in reception forwarding mode of operation, the service message received is solved
Analysis processes, and judges whether described service message is sent to equipment of itself, the most then process described service message and stop forwarding
Described data message;Otherwise, from during as centre from node device, the down hop that described service message forwards is being set from node
Standby, from during as final jump from node device, described service message is returned to described host node device;Described set from node
For when being operated in reception transparent transmission mode of operation, the service message received is carried out dissection process, described service message is sent out simultaneously
Send.
Further, described host node device receives the first mode switching command message returned;
Described host node device determines described from the work of node device according to the first mode switching command message returned
Pattern switches to reception to forward mode of operation.
Here, the described first mode switching command message that described host node device sends carries source address and purpose
Address, described source address and destination address are described host node device Self address;Or, described first mode switching command
Message carries source device ID and purpose device id, and described source device ID and purpose device id are described host node device self
Device id;Due to described from node device before receiving described first mode switching command message, be operated in reception transparent transmission
Mode of operation, therefore, described from node device when receiving described first mode switching command message, according to described first mould
Mode of operation is switched to reception to forward mode of operation, simultaneously, it is not necessary to described first mould by the instruction of formula switching command message
Formula switching command message judges, directly described first mode switching command message is transmitted to the down hop of self from node
Equipment, by final jump from node device time described first mode switching command message is returned to described host node device;By
This, described host node device will receive the described first mode switching command message returned from node device, described return
The first mode switching command message returned determines that all mode of operations from node device in described unidirectional looped network switch to and connects
Receive and forward mode of operation.
Further, described host node device, when sending first mode switching command message, starts intervalometer timing, if
Intervalometer arrives the first mode switching command message also not receiving return when setting response time, it is determined that pattern switching rings
Should be failed, at this point it is possible to resend described first mode switching command message, again carry out from node device described in instruction
Pattern switches.
Further, described host node device receives the second pattern switching command message returned;
Described host node device determines described from the work of node device according to the second pattern switching command message returned
Pattern switches to reception transparent transmission mode of operation.
Here, the described second pattern switching command message that described host node device sends carries source address and purpose
Address, described source address and destination address are described host node device Self address;Or, described second pattern switching command
Message carries source device ID and purpose device id, and described source device ID and purpose device id are described host node device self
Device id;Due to described from node device before receiving described second pattern switching command message, be operated in reception forward
Mode of operation, therefore, described from node device when receiving described second pattern switching command message, according to described second mould
Mode of operation is switched to reception transparent transmission mode of operation by the instruction of formula switching command message, and to described second pattern switching command
Message carries out dissection process, it may be judged whether forward described second pattern switching command message, due to from described second pattern switching
The destination address parsed in instruction message is not Self address, therefore, described is cut by described first mode from node device
Change instruction message and be transmitted to self down hop from node device, by final jump from node device time described first mode is cut
Change instruction message and return to described host node device;Thus, described host node device will receive and described return from node device
The the second pattern switching command message returned, determines in described unidirectional looped network according to the second pattern switching command message of described return
All mode of operations from node device switch to reception transparent transmission mode of operation.
Further, described host node device, when sending the second pattern switching command message, starts intervalometer timing, if
Intervalometer arrives the second pattern switching command message also not receiving return when setting response time, it is determined that pattern switching rings
Should be failed, at this point it is possible to resend described second pattern switching command message, again carry out from node device described in instruction
Pattern switches.
Here, described being operated in reception transparent transmission mode of operation from node device acquiescence, to adapt to, data traffic is big and time delay
The transmission of little general service message and response;If in order to reduce forward delay time to improve forward efficiency, then described
According to the instruction of the first mode switching command message that described host node device sends, mode of operation can be cut from node device
It is changed to receive and forwards mode of operation, to adapt to that data traffic is little and the transmission of the control class service message of time delay no requirement (NR) and sound
Should, such as, the transmission of topology learning instruction message and response.
Further, in order to automatically learn and the change of sensing network topological structure, described host node device determines described
After the mode of operation of node device switches to reception to forward mode of operation, send topology learning instruction to described from node device
Message, described topology learning instruction message is used for indicating and described reads described topology learning instruction message from joint from node device
The nodes of point device, updates described nodes after adding 1 by described nodes, by update nodes, Self address or self
Device id adds in described topology learning instruction message, and from as centre from node device time, after interpolation is completed
Topology learning instruction message is transmitted to the down hop of self from node device;From during as final jump from node device, incite somebody to action
Topology learning instruction message after having added returns to described host node device;
Described host node device receives the topology learning instruction message returned, according in the topology learning instruction message returned
Nodes, determine the topological structure of described unidirectional looped network from node device address or ID.
Here, described topology learning instruction message falls within data message.
Concrete, described host node device can send topology learning instruction message in the following way:
(1) according to setting time-interval system transmission
When described host node device sends topology learning instruction message, start intervalometer timing, set when intervalometer arrives
During the time, send next topology learning instruction message, say, that use this mode can be according to intervalometer property time-count cycle
Ground sends topology learning instruction message, to realize the study automatically of network topology structure and to update.
(2) send according to command triggers mode
Concrete triggering mode is it may be that set user or the far-end network monitoring management that is connected with described host node device
During the automatic learning network topological structure of standby needs, trigger described host node device and send topology learning instruction message.
Concrete, described topology learning instruction message carries source address and destination address, described source address and destination
Location is described host node device Self address;Or, described topology learning instruction message carries source device ID and purpose sets
Standby ID, described source device ID and purpose device id are described host node device equipment of itself ID;Due to now described from node
Equipment be operated in reception forward mode of operation, therefore, described from node device when receiving described topology learning instruction message
Hop-by-hop updates the nodes in topology learning instruction message, and opens up described in constantly Self address or equipment of itself ID being appended to
Flutter in study instruction message, and described topology learning instruction message is judged, due in described topology learning instruction message
The destination address carried is not Self address, therefore, and described topology learning instruction message after interpolation is completed by node device
It is transmitted to self down hop from node device, by final jump topology learning instruction report after interpolation is completed by node device
Literary composition returns to described host node device, and described topology learning instruction message is as shown in table 1:
Table 1
Wherein, described host node device send topology learning instruction message in from the nodes of node device be zero,
The nodes from node device is read by described certain position from node device from the topology learning instruction message received,
After adding 1 by described nodes, write-back covers the nodes at origin-location, then calculates in institute according to the nodes after updating
State and topology learning instruction message adds Self address or the position of equipment of itself ID, and in the position write calculated self
Address or equipment of itself ID;Keeping source address and destination address, or, source device ID and the constant situation of purpose device id
Under, the topology learning instruction message after interpolation being completed is transmitted to the down hop of self from node device, by final jump from joint
After point device nodes after updating and Self address or equipment of itself ID add described topology learning instruction message to, will
Topology learning instruction message after having added returns to described host node device.
It should be understood that above-mentioned table 1 is merely illustrative, it is not intended that limitation of the present invention.
As in figure 2 it is shown, the pattern switching flow of the unidirectional serial bus network of embodiment of the present invention offer, it is applied to from joint
In point device, implement step and include:
Step S200: described when node device receives first mode switching command message, proceeds to step S201;Receive
During to the second pattern switching command message, proceed to step S202;
Step S201: described mode of operation is cut according to the instruction of described first mode switching command message from node device
Be changed to receive forward mode of operation, meanwhile, from as centre from node device time, by described first mode switching command message
It is transmitted to the down hop of self from node device;From during as final jump from node device, described first mode is switched
Instruction message returns to described host node device;
Here, the described first mode switching command message that described host node device sends carries source address and purpose
Address, described source address and destination address are described host node device Self address;Or, described first mode switching command
Message carries source device ID and purpose device id, and described source device ID and purpose device id are described host node device self
Device id;Due to described from node device before receiving described first mode switching command message, be operated in reception transparent transmission
Mode of operation, therefore, described from node device when receiving described first mode switching command message, according to described first mould
Mode of operation is switched to reception to forward mode of operation, simultaneously, it is not necessary to described first mould by the instruction of formula switching command message
Formula switching command message judges, directly described first mode switching command message is transmitted to the down hop of self from node
Equipment, by final jump from node device time described first mode switching command message is returned to described host node device.
Step S202: described when node device receives the second pattern switching command message, according to described second pattern
Mode of operation is switched to reception transparent transmission mode of operation by the instruction of switching command message, and judges whether to forward described second pattern
Switching command message;When judging to forward described second pattern switching command message, proceed to step S203;Need not turn in judgement
When sending out the second pattern switching command message described, proceed to step S204;
Step S203: described from node device from as centre from node device time by described second pattern switching command
Message is transmitted to down hop from node device, from during as final jump from node device by described first mode switching command report
Literary composition returns to described host node device, terminates this handling process;
Step S204: stop forwarding described second pattern switching command message, terminate this handling process;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
Here, described second pattern switching command message carries source address and destination address, described source address and mesh
Address be described host node device Self address;Or, described second pattern switching command message carries source device ID
And purpose device id, described source device ID and purpose device id are described host node device equipment of itself ID;Due to described from
Node device, before receiving described second pattern switching command message, is operated in reception and forwards mode of operation, therefore, institute
State from node device when receiving described second pattern switching command message, according to described second pattern switching command message
Mode of operation is switched to reception transparent transmission mode of operation by instruction, and carries out described second pattern switching command message at parsing
Reason, it may be judged whether forward described second pattern switching command message, owing to resolving from described second pattern switching command message
The destination address gone out not is Self address, therefore, described is forwarded by described first mode switching command message from node device
To the down hop of self from node device, by final jump from node device time described first mode switching command message is returned
To described host node device.
Further, for realizing the automatic study of network topology structure, described switching to from node device mode of operation connects
Receive after forwarding mode of operation, receive the topology learning instruction message that host node device sends;
Read from the nodes of node device in described topology learning instruction message, after described nodes is added 1, update institute
State nodes, and the nodes of renewal, Self address or equipment of itself ID are added in described topology learning instruction message;
From during as centre from node device, topology learning instruction message interpolation completed is transmitted to next of self
Jump from node device;From during as final jump from node device, topology learning instruction message interpolation completed returns to
Described host node device.
For realizing said method, the embodiment of the present invention additionally provides a kind of master node device, from node apparatus, owing to this is main
Node apparatus, the principle solving problem from node apparatus are similar to method, therefore, and the implementation process of device and enforcement principle
To see the implementation process of preceding method and to implement principles illustrated, repeat no more in place of repetition.
See Fig. 3, embodiments provide a kind of master node device, be applied to include host node device, at least one
Individual host node device from the unidirectional serial bus network of node device;Wherein, described host node device is by unidirectional serial
Bus constitutes unidirectional looped network with at least one from node device, and described device comprises determining that module 300, sending module 301;Its
In,
Described determine module 300, for determining the described mode of operation needed from node device;
Described, described sending module 301, for determining that module 300 determines that the mode of operation of needs forwards work for receiving
During pattern, sending first mode switching command message, described first mode switching command message is used for indicating and described sets from node
Standby mode of operation switch to reception forward mode of operation, meanwhile, from during as centre from node device, by described first mould
Formula switching command message is transmitted to the down hop of self from node device;From as final jump from node device time, by institute
State first mode switching command message and return to described host node device;
And described determine that module 300 determines the mode of operation of needs for receiving transparent transmission mode of operation time, send the second mould
Formula switching command message, described second pattern switching command message is used for indicating and described mode of operation is switched to from node device
Receive transparent transmission mode of operation and judge whether to forward described second pattern switching command message;Judging described second pattern of forwarding
During switching command message, from down hop during as centre from node device, described second pattern switching command message forwarded
From node device, from during as final jump from node device, described first mode switching command message is returned to described main joint
Point device;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
In being embodied as, described device also includes:
Receiver module 302, for receiving the first mode switching command message of return;
Described determine module 300, be additionally operable to determine according to the first mode switching command message returned and described set from node
Standby mode of operation switches to reception to forward mode of operation.
In being embodied as, described sending module 301, it is additionally operable to described that to determine that module 300 determines described from node device
Mode of operation switch to reception to forward after mode of operation, send topology learning instruction message, described topology learning instruction message
For indicating described reading described topology learning instruction message from the nodes of node device, by described node from node device
Number updates described nodes after adding 1, adds the nodes of renewal, Self address or equipment of itself ID to described topology learning and refers to
Make in message;And from during as centre from node device, the topology learning instruction message after interpolation being completed is transmitted to self
Down hop from node device, from topology learning instruction report during as final jump from node device, after interpolation is completed
Literary composition returns to described host node device;
Described determine module 300, be additionally operable to receive at described receiver module 302 the topology learning instruction message of return
Time, according to the nodes in the topology learning instruction message returned, determine described unidirectional looped network from node device address or ID
Topological structure.
In being embodied as, described sending module 301, specifically for sending according to setting time interval or command triggers mode
Topology learning instruction message.
A kind of preferred implementation that the dividing mode of the function above module only embodiment of the present invention is given, functional module
Dividing mode be not construed as limiting the invention.For convenience of description, each several part of apparatus described above is divided into function
Various modules or unit are respectively described.Certainly, when implementing the present invention can the function of each module or unit same or
Multiple softwares or hardware realize.
See Fig. 4, embodiments provide a kind of from node apparatus, be applied to include host node device, at least one
Individual from the unidirectional serial bus network of node device from node device;Wherein, described host node device is by unidirectional serial
Bus constitutes unidirectional looped network with at least one from node device, it is characterised in that described device includes: receiver module 400, pattern
Handover module 401, sending module 402;Wherein,
Described receiver module 400, is used for receiving first mode switching command message and the second pattern switching command message;
Described mode switch module 401, for receiving first mode switching command message at described receiver module 400
Time, according to the instruction of described first mode switching command message, mode of operation switch to reception forward mode of operation, meanwhile,
From during as centre from node device, described sending module 402 is indicated to be transmitted to by described first mode switching command message certainly
The down hop of body is from node device;From during as final jump from node device, indicate described sending module 402 by described the
One pattern switching command message returns to described host node device;
Described mode switch module 401, is additionally operable to receive the second pattern switching command message at described receiver module 400
Time, according to the instruction of described second pattern switching command message, mode of operation switched to reception transparent transmission mode of operation, and judge
Whether forward described second pattern switching command message;When judging to forward described second pattern switching command message, at self
For centre from node device time, indicate described sending module 402 by described second pattern switching command message forward down hop
From node device, from during as final jump from node device, described sending module 402 is indicated to be switched by described first mode
Instruction message returns to described host node device;
Described sending module 402, refers to the switching of described first mode for the instruction according to described mode switch module 401
Make message be transmitted to the down hop of self and return to described master from node device or by described first mode switching command message
Node device;And, according to the instruction of described mode switch module 401, described second pattern switching command message is transmitted to certainly
The down hop of body returns to described host node device from node device or by described second pattern switching command message;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether
Service message after processing sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed,
Described service message is sent simultaneously.
In being embodied as, described receiver module 400, it is additionally operable to mode of operation be switched in described mode switch module 401
After receiving forwarding mode of operation, receive the topology learning instruction message that described host node device sends;
Described device also includes:
More new module 403, for reading from the nodes of node device in described topology learning instruction message, by described joint
Count and after adding 1, update described nodes, and add the nodes of renewal, Self address or equipment of itself ID to described topology
Practise in instruction message;And from as centre from node device time, the topology after indicating described sending module 402 interpolation to be completed
Study instruction message is transmitted to self down hop from node device, from during as final jump from node device, indicates institute
State the topology learning instruction message after interpolation is completed by sending module 402 and return to described host node device.
Described sending module 402, is additionally operable to the topology learning after interpolation is completed by the instruction according to described more new module 403
Instruction message is transmitted to the down hop of self from node device;Or, according to the instruction of described more new module 403, interpolation is completed
After topology learning instruction message return to described host node device.
A kind of preferred implementation that the dividing mode of the function above module only embodiment of the present invention is given, functional module
Dividing mode be not construed as limiting the invention.For convenience of description, each several part of apparatus described above is divided into function
Various modules or unit are respectively described.Certainly, when implementing the present invention can the function of each module or unit same or
Multiple softwares or hardware realize.
Based on above-mentioned from node apparatus, embodiments provide a kind of from node device, described from node device bag
Include above-mentioned from node apparatus, below in conjunction with Fig. 5, the described particular make-up structure from node device be described in detail:
As it is shown in figure 5, should include from node device: processor 500, mode controller 501, signal processing controller 502,
Inbound port 503, go out port 504;Wherein, the input of described processor 500 is connected with described inbound port, described processor 500
Signal end be connected with the signal end of described mode controller 501;The input of described mode controller 501 and described inbound port
503 connect, and the outfan of described mode controller 501 is connected with the input of described signal processing controller 502, described signal
The outfan of processing controller 502 with described go out port 504 be connected.
Here, two kinds of mode of operations of the communication device configured of this changeable mode of operation: described mode controller 501 basis
The instruction of the control information that described processor 500 sends turns on self input path to outfan;Mode of operation switches to
When receiving forwarding mode of operation, the instruction of the control information that described mode controller 501 sends according to described processor 500 disconnects
Self input is to the path of outfan, and the outfan of described processor 500 is connected to described signal processing controller 501
Input.
In the embodiment of the present invention, configure two kinds of mode of operations, when mode of operation is for receiving transparent transmission mode of operation, by business report
Literary composition is sent in described processor 500 process, simultaneously by this service message by described mode controller 501 and described letter
Number processing controller 502 is sent to out port 504;When mode of operation forwards mode of operation for receiving, described service message is passed
Deliver to processor 500 processes, then judged whether that the service message after processing is sent to institute by described processor 500
Stating signal processing controller 502, the service message after described processor 500 will process is sent to described signal processing controller
After 502, described signal processing controller 502 service message after processing is sent to out port 504;And it is capable of above-mentioned
The switching of two kinds of mode of operations, thus adapt to different types of business demand.
In actual applications, described signal processing controller 502 includes: the first resistance, the second resistance, the first power supply,
Two power supplys and gate logic device;Described mode controller 501 uses bus buffer to realize;During described processor 500 can use
Central processor (Central Processing Unit, CPU), microprocessor (Micro Processor Unit, MPU), numeral
Signal processor (Digital signal Processor, DSP), field programmable gate array (Field Programmable
Gate Array, FPGA) or the device such as IC chip realize.
It should be understood that due to described include from node device above-mentioned from node apparatus, therefore, described receiver module
400 can be realized by described inbound port 503 from node device, described sending module 402 can be by described from node device
Going out port 504 to realize, described mode switch module 401, described more new module 403 can be by described processors from node device
500, mode controller 501 and signal processing controller 502 realize.
In sum, in the embodiment of the present invention, when mode of operation is for receiving transparent transmission mode of operation, to the data message received
Process, this data message is sent to out port simultaneously;When mode of operation forwards mode of operation for receiving, first to reception
Data message process, then judge whether will process after data message be sent to out port;Further, two kinds of work
Pattern can carry out pattern switching according to instruction, to adapt to different types of business demand, such as, and the big and time delay for adaptation flow
The transmission of little general service data message and response, need to switch to mode of operation reception transparent transmission mode;For adapting to flow
The transmission of the control class business datum message of little and time delay no requirement (NR) and response, need mode of operation switches to reception forward mould
Formula.
The embodiment of the present invention additionally provides a kind of long-distance intelligent and copies instrument system, and as shown in Figure 6, this system includes concentrator
600, at least one harvester 601, at least one intelligence instrument 602;Described concentrator 600 includes above-mentioned master node device,
Described harvester 601 includes above-mentioned master node device and from node apparatus, and described intelligence instrument includes above-mentioned filling from node
Put;Wherein, described concentrator 600 constitutes unidirectional looped network by unidirectional universal serial bus and at least one described harvester 601, each
Described harvester 601 constitutes unidirectional ring net by unidirectional universal serial bus and at least one described intelligence instrument 602 respectively.
In this system, described concentrator 600 constitutes unidirectional by unidirectional universal serial bus with harvester at least one described 601
Looped network, each described harvester 601 constitutes unidirectional ring by unidirectional universal serial bus and at least one described intelligence instrument 602 respectively
Subnet, described concentrator 600 as the host node device of this unidirectional looped network, described harvester 601 as this unidirectional looped network from
Node device, and the host node device as the unidirectional ring net constituted with self, described intelligence instrument 602 is unidirectional as this
Ring net from node device;In this system, described harvester 601 and described intelligence instrument 602 all configure reception transparent transmission work
Pattern and reception forward two kinds of mode of operations of mode of operation, described harvester 601 and described intelligence instrument 602 acquiescence to be operated in and connect
Receive transparent transmission mode of operation, to adapt to transmission and the response of the general service message that data traffic is big and time delay is little;If in order to drop
Low forward delay time is to improve forward efficiency, then the first mode that described harvester 601 can send according to concentrator 600
Mode of operation is switched to reception to forward mode of operation by the instruction of switching command message, and, described intelligence instrument 602 can root
According to the instruction of the second pattern switching command message of described harvester 601 transmission, mode of operation switch to reception forward work equally
Operation mode, to adapt to that data traffic is little and the transmission of the control class service message of time delay no requirement (NR) and response, such as, topology learning
The transmission of instruction message and response.
The embodiment of the present invention additionally provides a kind of long-distance intelligent and copies instrument system, as it is shown in fig. 7, this system includes concentrator
700, at least one intelligence instrument 701;Described concentrator includes that above-mentioned master node device, described intelligence instrument 700 include
State from node apparatus;Wherein, described concentrator 700 is by unidirectional universal serial bus and at least one described intelligence instrument 701 structure
Become unidirectional looped network.
In this system, described concentrator 700 constitutes list by unidirectional universal serial bus and at least one described intelligence instrument 701
To looped network, described concentrator 700 is as the host node device of this unidirectional looped network, and described intelligence instrument 701 is as this unidirectional looped network
From node device;In this system, the configuration of described intelligence instrument 701 receives transparent transmission mode of operation and receives forwarding mode of operation two
Plant mode of operation, it is possible to mutually switching according to the instruction of described concentrator 700, work given tacit consent to by described intelligence instrument 701
Receiving transparent transmission mode of operation, to adapt to transmission and the response of the general service data message that data traffic is big and time delay is little;As
Fruit is in order to reduce forward delay time to improve forward efficiency, then described intelligence instrument 701 can be according to described concentrator
Mode of operation is switched to reception to forward mode of operation by the instruction of the 700 first mode switching command messages sent, to adapt to number
The transmission of the control class service message of and time delay no requirement (NR) little according to flow and response, such as, the transmission of topology learning instruction message
And response.
In sum, the present invention provides.So, the present invention effectively overcomes various shortcoming of the prior art and has height
Degree industrial utilization.
The principle of above-described embodiment only illustrative present invention and effect thereof, not for limiting the present invention.Any ripe
Above-described embodiment all can be modified under the spirit and the scope of the present invention or change by the personage knowing this technology.Cause
This, have usually intellectual such as complete with institute under technological thought without departing from disclosed spirit in art
All equivalences become are modified or change, and must be contained by the claim of the present invention.
Claims (14)
1. a mode switch control method for unidirectional serial bus network, described unidirectional serial bus network includes that host node sets
Standby, at least one is from node device;Wherein, by unidirectional universal serial bus and at least one is from node device for described host node device
Constitute unidirectional looped network, it is characterised in that described method includes:
Described host node device determines the described mode of operation needed from node device;
Determine when the mode of operation of needs forwards mode of operation for receiving, send first mode switching command message, described first
Pattern switching command message is used for indicating described mode of operation being switched to from node device to receive forwarding mode of operation, meanwhile,
Setting from node from the down hop that during as centre from node device, described first mode switching command message is transmitted to self
Standby;Described first mode switching command message is being returned to described host node setting from during as final jump from node device
Standby;
When determining the mode of operation of needs for receiving transparent transmission mode of operation, send the second pattern switching command message, described second
Pattern switching command message is used for indicating described mode of operation being switched to from node device receive transparent transmission mode of operation and judge
Whether forward described second pattern switching command message;When judging to forward described second pattern switching command message, at self
For centre from node device time down hop that described second pattern switching command message is forwarded from node device, from as finally
Described first mode switching command message is returned to described host node device when node device by one jumping;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether to locate
Service message after reason sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed, simultaneously
Described service message is sent.
Method the most according to claim 1, it is characterised in that described method also includes:
Described host node device receives the first mode switching command message returned;
Described host node device determines described from the mode of operation of node device according to the first mode switching command message returned
Reception is switched to forward mode of operation.
Method the most according to claim 2, it is characterised in that described method also includes:
Described host node device determines described after the mode of operation of node device switches to reception to forward mode of operation, and transmission is opened up
Flutterring study instruction message, described topology learning instruction message is used for indicating and described reads the instruction of described topology learning from node device
From the nodes of node device in message, after described nodes is added 1, update described nodes, by update nodes, self
Address or equipment of itself ID add in described topology learning instruction message, and from during as centre from node device, will add
Topology learning instruction message after having added is transmitted to the down hop of self from node device;At oneself as final jump from node
During equipment, the topology learning instruction message after interpolation being completed returns to described host node device;
Described host node device receives the topology learning instruction message returned, according to the joint in the topology learning instruction message returned
Count, determine from node device address or ID the topological structure of described unidirectional looped network.
Method the most according to claim 3, it is characterised in that described host node device sends topology learning instruction message,
Including:
Described host node device sends topology learning instruction message according to setting time interval or command triggers mode.
5. a mode switching method for unidirectional serial bus network, described unidirectional serial bus network include host node device,
At least one is from node device;Wherein, by unidirectional universal serial bus and at least one is from node device structure for described host node device
Become unidirectional looped network, it is characterised in that described method includes:
Described when node device receives first mode switching command message, according to described first mode switching command message
Mode of operation is switched to reception to forward mode of operation by instruction, meanwhile, from during as centre from node device, by described first
Pattern switching command message is transmitted to the down hop of self from node device;From during as final jump from node device, incite somebody to action
Described first mode switching command message returns to described host node device;
Described when node device receives the second pattern switching command message, according to described second pattern switching command message
Mode of operation is switched to reception transparent transmission mode of operation by instruction, and judges whether to forward described second pattern switching command message;
When judging to forward described second pattern switching command message, from during as centre from node device, described second pattern is being cut
Change instruction message and be transmitted to down hop from node device, from during as final jump from node device, described first mode is switched
Instruction message returns to described host node device;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether to locate
Service message after reason sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed, simultaneously
Described service message is sent.
Method the most according to claim 5, it is characterised in that described method also includes:
Described mode of operation switches to from node device reception forward after mode of operation, receive what described host node device sent
Topology learning instruction message;
Described read described topology learning instruction message from the nodes of node device from node device, described nodes is added
Update described nodes after 1, and the nodes of renewal, Self address or equipment of itself ID are added to the instruction of described topology learning
In message;
Described from node device from during as centre from node device, topology learning instruction message after interpolation being completed forwards
To the down hop of self from node device;From as final jump from node device time, the topology learning after interpolation is completed
Instruction message returns to described host node device.
7. a master node device, is applied to include host node device, at least one is from the unidirectional universal serial bus net of node device
Host node device in network;Wherein, described host node device is consisted of from node device with at least one unidirectional universal serial bus
Unidirectional looped network, it is characterised in that described device comprises determining that module, sending module;Wherein,
Described determine module, for determining the described mode of operation needed from node device;
Described sending module, for described determine that module determines that the mode of operation of needs forwards mode of operation for receiving time, send out
Send first mode switching command message, described first mode switching command message be used for indicating described from node device by Working mould
Formula switch to reception forward mode of operation, meanwhile, from as centre from node device time, by described first mode switching command
Message is transmitted to the down hop of self from node device;From as final jump from node device time, by described first mode
Switching command message returns to described host node device;
And described determine that module determines the mode of operation of needs for receiving transparent transmission mode of operation time, send the second pattern switching and refer to
Message, described second pattern switching command message is made to be used for indicating and described mode of operation switches to from node device reception transparent transmission
Mode of operation also judges whether to forward described second pattern switching command message;Judging the described second pattern switching command of forwarding
During message, from during as centre from node device, the down hop that described second pattern switching command message forwards is being set from node
Standby, from during as final jump from node device, described first mode switching command message is returned to described host node device;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether to locate
Service message after reason sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed, simultaneously
Described service message is sent.
Device the most according to claim 7, it is characterised in that described device also includes:
Receiver module, for receiving the first mode switching command message of return;
Described determine module, be additionally operable to determine according to the first mode switching command message returned described from the work of node device
Pattern switches to reception to forward mode of operation.
Device the most according to claim 8, it is characterised in that described sending module, is additionally operable to determine that module is true described
Fixed described after the mode of operation of node device switches to reception to forward mode of operation, send topology learning instruction message, described
Topology learning instruction message is for reading described topology learning instruction message from node device from node device described in indicating
Nodes, updates described nodes after adding 1 by described nodes, the nodes of renewal, Self address or equipment of itself ID are added
It is added in described topology learning instruction message;And from as centre from node device time, the topology learning after interpolation is completed
Instruction message is transmitted to self down hop from node device, from during as final jump from node device, interpolation is completed
After topology learning instruction message return to described host node device;
Described determine module, be additionally operable to when described receiver module receives the topology learning instruction message of return, according to return
Topology learning instruction message in nodes, determine the topological structure of described unidirectional looped network from node device address or ID.
Device the most according to claim 9, it is characterised in that described sending module, is additionally operable to according to setting time interval
Or command triggers mode sends topology learning instruction message.
11. 1 kinds, from node apparatus, are applied to include host node device, at least one is from the unidirectional universal serial bus net of node device
In network from node device;Wherein, described host node device is consisted of from node device with at least one unidirectional universal serial bus
Unidirectional looped network, it is characterised in that described device includes: receiver module, mode switch module, sending module;Wherein,
Described receiver module, is used for receiving first mode switching command message and the second pattern switching command message;
Described mode switch module, for when described receiver module receives first mode switching command message, according to described
Mode of operation is switched to reception to forward mode of operation, meanwhile, from as centre by the instruction of first mode switching command message
When node device, indicate described sending module that described first mode switching command message is transmitted to the down hop of self from joint
Point device;From during as final jump from node device, indicate described sending module by described first mode switching command report
Literary composition returns to described host node device;
Described mode switch module, is additionally operable to when described receiver module receives the second pattern switching command message, according to institute
Mode of operation is switched to reception transparent transmission mode of operation by the instruction stating the second pattern switching command message, and judges whether to forward institute
State the second pattern switching command message;When judging to forward described second pattern switching command message, at oneself as centre from joint
During point device, indicate the down hop that described second pattern switching command message is forwarded by described sending module from node device,
From during as final jump from node device, indicate described sending module that described first mode switching command message is returned to institute
State host node device;
Described sending module, for forwarding described first mode switching command message according to the instruction of described mode switch module
Described host node device is returned to from node device or by described first mode switching command message to the down hop of self;With
And, according to the instruction of described mode switch module, described second pattern switching command message is transmitted to the down hop of self from joint
Point device or described second pattern switching command message is returned to described host node device;
Wherein, when mode of operation forwards mode of operation for receiving, the service message received is processed, and judges whether to locate
Service message after reason sends;When mode of operation is for receiving transparent transmission mode of operation, the service message received is processed, simultaneously
Described service message is sent.
12. devices according to claim 11, it is characterised in that described receiver module, are additionally operable to switch in described pattern
After mode of operation is switched to reception to forward mode of operation by module, receive the topology learning instruction report that described host node device sends
Literary composition;
Described device also includes:
More new module, for reading in described topology learning instruction message from the nodes of node device, adds 1 by described nodes
The described nodes of rear renewal, and the nodes of renewal, Self address or equipment of itself ID are added to the instruction of described topology learning
In message;And from topology learning instruction during as centre from node device, after indicating described sending module interpolation to be completed
Message is transmitted to self down hop from node device, from during as final jump from node device, indicates described transmission mould
Topology learning instruction message after interpolation is completed by block returns to described host node device.
Described sending module, is additionally operable to the topology learning instruction message after interpolation is completed by the instruction according to described more new module and turns
Issue the down hop of self from node device;Or, the topology learning after interpolation being completed according to the instruction of described more new module
Instruction message returns to described host node device.
The communication system of 13. 1 kinds of unidirectional serial bus networks, it is characterised in that described system includes: concentrator, at least one
Harvester, at least one intelligence instrument;Described concentrator includes the master node device as described in any one of claim 7 to 10,
Described harvester include the master node device as described in any one of claim 7 to 10 and as described in claim 11 or 12 from
Node apparatus, described intelligence instrument include as described in claim 11 or 12 from node apparatus;Wherein, described concentrator passes through
Unidirectional universal serial bus constitutes unidirectional looped network with at least one described harvester, and each described harvester is total by unidirectional serial respectively
Line constitutes unidirectional ring net with at least one described intelligence instrument.
The communication system of 14. 1 kinds of unidirectional serial bus networks, it is characterised in that described system includes: concentrator, at least one
Intelligence instrument, described concentrator includes that the master node device as described in any one of claim 7 to 10, described intelligence instrument include
As described in claim 11 or 12 from node apparatus;Wherein, described concentrator is by unidirectional universal serial bus and at least one institute
State intelligence instrument and constitute unidirectional looped network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610456960.8A CN106059876B (en) | 2016-06-22 | 2016-06-22 | A kind of mode switch control method, equipment and the system of unidirectional serial bus network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610456960.8A CN106059876B (en) | 2016-06-22 | 2016-06-22 | A kind of mode switch control method, equipment and the system of unidirectional serial bus network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106059876A true CN106059876A (en) | 2016-10-26 |
CN106059876B CN106059876B (en) | 2018-06-26 |
Family
ID=57169336
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610456960.8A Expired - Fee Related CN106059876B (en) | 2016-06-22 | 2016-06-22 | A kind of mode switch control method, equipment and the system of unidirectional serial bus network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106059876B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110401732A (en) * | 2019-07-29 | 2019-11-01 | 江西科然科技有限公司 | Battery management system slave addresses distribution method, system, mobile terminal and storage medium |
CN115277056A (en) * | 2022-06-09 | 2022-11-01 | 宁波新胜中压电器有限公司 | Method based on flow self-adaptive working mode and encryption and decryption device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100182927A1 (en) * | 2009-01-20 | 2010-07-22 | Samsung Electronics Co. Ltd. | Apparatus and method for transmitting control packet in broadband communication network |
US20110299386A1 (en) * | 2009-12-01 | 2011-12-08 | Fujitsu Limited | Apparatus and method for switching between redundant communication devices |
CN102523310A (en) * | 2012-01-04 | 2012-06-27 | 上海工业自动化仪表研究院 | Multifunctional HART (Highway Addressable Remote Transducer) communication interface |
US20120201254A1 (en) * | 2011-01-14 | 2012-08-09 | Alaxala Networks Corporation | Network device and its control method and computer program product |
CN104734780A (en) * | 2014-12-29 | 2015-06-24 | 东莞市启鼎光电科技有限公司 | Passive light-splitting RS-485 optical fiber bus local side system |
CN104753596A (en) * | 2014-12-29 | 2015-07-01 | 东莞市启鼎光电科技有限公司 | Multi-port terminal of passive beam splitting RS-485 optical fiber bus |
CN204480459U (en) * | 2015-01-13 | 2015-07-15 | 烟台智慧云谷云计算有限公司 | A kind of remote automatic meter reading system |
CN104881982A (en) * | 2015-05-06 | 2015-09-02 | 上海应时为节能科技有限公司 | Intelligent meter data acquiring system having self-adaptive meter reading strategy and acquiring method of intelligent meter data acquiring system |
-
2016
- 2016-06-22 CN CN201610456960.8A patent/CN106059876B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100182927A1 (en) * | 2009-01-20 | 2010-07-22 | Samsung Electronics Co. Ltd. | Apparatus and method for transmitting control packet in broadband communication network |
US20110299386A1 (en) * | 2009-12-01 | 2011-12-08 | Fujitsu Limited | Apparatus and method for switching between redundant communication devices |
US20120201254A1 (en) * | 2011-01-14 | 2012-08-09 | Alaxala Networks Corporation | Network device and its control method and computer program product |
CN102523310A (en) * | 2012-01-04 | 2012-06-27 | 上海工业自动化仪表研究院 | Multifunctional HART (Highway Addressable Remote Transducer) communication interface |
CN104734780A (en) * | 2014-12-29 | 2015-06-24 | 东莞市启鼎光电科技有限公司 | Passive light-splitting RS-485 optical fiber bus local side system |
CN104753596A (en) * | 2014-12-29 | 2015-07-01 | 东莞市启鼎光电科技有限公司 | Multi-port terminal of passive beam splitting RS-485 optical fiber bus |
CN204480459U (en) * | 2015-01-13 | 2015-07-15 | 烟台智慧云谷云计算有限公司 | A kind of remote automatic meter reading system |
CN104881982A (en) * | 2015-05-06 | 2015-09-02 | 上海应时为节能科技有限公司 | Intelligent meter data acquiring system having self-adaptive meter reading strategy and acquiring method of intelligent meter data acquiring system |
Non-Patent Citations (2)
Title |
---|
NAOYA WADA等: "《Optical packet and circuit integrated ring network with wavelength resources boundary control》", 《IEEE 2014 16TH INTERNATIONAL CONFERENCE ON TRANSPARENT OPTICAL NETWORKS (ICTON)》 * |
杨正进: "《基于在EPON的用电信息采集终端设计与实现》", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110401732A (en) * | 2019-07-29 | 2019-11-01 | 江西科然科技有限公司 | Battery management system slave addresses distribution method, system, mobile terminal and storage medium |
CN115277056A (en) * | 2022-06-09 | 2022-11-01 | 宁波新胜中压电器有限公司 | Method based on flow self-adaptive working mode and encryption and decryption device |
CN115277056B (en) * | 2022-06-09 | 2024-02-20 | 宁波新胜中压电器有限公司 | Method based on flow self-adaptive working mode and encryption and decryption device |
Also Published As
Publication number | Publication date |
---|---|
CN106059876B (en) | 2018-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103200122B (en) | A kind of software defined network is organized the processing method of table, system and controller | |
CN103684835B (en) | Link fault reporting method and processing method, and transmission node and primary node | |
CN103595626B (en) | Method for achieving dynamic path planning in ring network | |
CN103560924B (en) | System with tracking resource | |
CN103809999A (en) | Programmable logic device with integrated network-on-chip | |
JP2006217296A5 (en) | ||
RU2008132454A (en) | FORECASTED CONTROL SYSTEM FOR THE RESPONSE OF A FIELD DEVICE ON A WIRELESS NETWORK | |
CN103069756A (en) | Communication system, controller, node controlling method and program | |
CN106549774A (en) | A kind of link failure report method and forwarding unit based on software defined network | |
CN101710875A (en) | Method and device for realizing rapid re-routing | |
CN107508640A (en) | Dual loop redundancy self-healing fiber optic network construction method based on Fibre Channel technologies | |
CN105959216A (en) | Communication method, device and system of one-way serial bus network | |
CN105656776A (en) | Pseudo-wire dual-homing protection switching system, method and device | |
CN106059876A (en) | Mode switching control method, device and system for unidirectional serial bus network | |
CN102882793A (en) | Topology change message transmitting and processing method and network equipment | |
CN103312614B (en) | A kind of multicast message processing method, line card and communication equipment | |
CN105991315A (en) | Link protection method applied to SDN (software defined network), switching device and network controller | |
CN102065508A (en) | Wireless bridge forwarding equipment and method | |
CN110417761A (en) | Communication means and device based on dual-computer redundancy | |
CN105959227A (en) | Topology learning method, device and system of one-way serial bus network | |
CN102420766B (en) | Routing determination method and routing device | |
CN105763347B (en) | For method getparms, the network equipment and system | |
CN103152275A (en) | Router suitable for network on chip and allowable for configuring switching mechanisms | |
JP2015139110A (en) | Relay system and switch device | |
CN106230720A (en) | Route recovery method after a kind of equipment fault and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180626 Termination date: 20210622 |