CN101374082A - Single bus sensor network protocol - Google Patents
Single bus sensor network protocol Download PDFInfo
- Publication number
- CN101374082A CN101374082A CNA2007100709982A CN200710070998A CN101374082A CN 101374082 A CN101374082 A CN 101374082A CN A2007100709982 A CNA2007100709982 A CN A2007100709982A CN 200710070998 A CN200710070998 A CN 200710070998A CN 101374082 A CN101374082 A CN 101374082A
- Authority
- CN
- China
- Prior art keywords
- node
- frame
- data
- main frame
- sensor network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Communication Control (AREA)
Abstract
The invention relates to a unibus sensor network protocol which follows the ISO/OSI standard model and provides a physical layer, a data link layer and an application layer. The physical layer defines a substrate communication medium, a driving mode and the form of a connecting terminal. The unibus sensor network protocol is characterized in that the data link layer defines the space size of the address of a node and the addressing method, the maximal transmitting data byte number, the composition method of data frames, the verification method and the arbitration method; during the compunctions process, the data of the application layer is transmitted in a manner of being packed in the data field of the link layer, the data of the application layer include the operating codes, the channel numbers, the command codes, the parameters related to the command codes, the transmitted data, the filling data, and the length, the parameters and the data total length of the parameter data of one frame. The unibus sensor network protocol supports both the master-slave communication mode and the event/action communication mode and improve the flexibility of network organization; supports a bit-based non-destructive bit-by-bit arbitration mode; meets the real-time requirement; supports the node event, the action configuration and the channel operation of the node; reduces the burdens of the host machine; facilitates the integration of the nodes; and reduces the production cost of the product.
Description
Technical field
The present invention relates to a kind ofly in industries such as weaving, chemical industry, food, water treatment, generally use a large amount of transducers, actuator and controller to finish the monitoring and the automated network control system of industry spot flow process, be specifically related to a kind of digitlization communication network protocol.
Background technology
The on-site monitoring equipment type and the quantity of industrial process are a lot, grain feelings detection system as 50,000 tons of capacity comprises distinct devices such as a plurality of transducers, transmitter, actuator, controller, wherein only the grain temperature sensor just needs more than 4000, and is distributed in the guarded region of circumference 2 sq-kms.Characteristics based on the industrial process on-site supervision, if adopt the mode of traditional analog sensor+main frame+multi pass acquisition card or slave computer, need to use a large amount of cable, terminal, groove box, crane span structure, field wiring will be very complicated, and the adjustment of supervisory control system, operation, maintenance and maintenance workload are very big, failure location and isolation are also very complicated, and system reliability is relatively poor.
It is on-the-spot that field bus protocol (as LonWorks, DeviceNet, Profibus) and network sensor agreement (as IEEE 1451 Smart Sensor, Dallas 1-wire) are introduced control with network technology, make equipment such as transducer interconnected by the mode and the main frame/host computer of universal serial bus or daisy chain, changing analog signal and control command is the digitlization transmission, this has simplified field wiring greatly, also makes main frame can handle more complicated control task.But existing protocol not exclusively is fit to the parts foremost (as transducer, actuator and controller etc.) of PMS, mainly due to: (1) is for cost consideration, node calculating and storage resources are less, and existing communication agreement stack (as TCP/IP, DeviceNet etc.) is all complicated; (2) link layer protocol of partial bus is suitable for Data Communication in Computer Networks (as Ethernet), and individual node transmission data are less in the sensor network, and the transmission content is also comparatively simple; (3) the sensor network real-time requires height, and for some asynchronous event, feedback is also handled in real time.
In addition, existing major applications layer protocol is divided into two classes, and a class is used customized according to transducer itself, as Dallas temperature sensor DS18B20 (1-wire agreement), can not expand on the function, but easy to use, need not revise sensor internal soft (Gu) hardware designs; Another kind of is general, and as the node based on the LonWorks network, agreement only provides internodal communication mechanism, and the developer also needs to carry out secondary development according to node characteristic and application background.Because preceding kind of mode be only towards fixation application, poor expandability, the mode of then planting then requires the developer of transducer/actuator to grasp user's application background, and adaptability is limited.
Therefore, provide a kind of developer of being independent of and user, the application layer protocol that possesses autgmentability simultaneously again is necessary.Based on autgmentability application layer protocol research, between the developer of transducer and user, set up a transparent access interface, with the exploitation of accelerating network sensor node, simplify transducer and the integrated of application and use.
Summary of the invention
In order to address the aforementioned drawbacks, the present invention proposes a low-cost communications protocol of simple and effective real-time monobus, adopt differential driving, support optional many speed rates and transmission range requirement, but the address dynamic-configuration and the hot plug of communication node support that multiple communication mode is principal and subordinate, incident/action.Agreement should be simplified as much as possible, and to adapt to the requirement of transducer/actuator parts, the actuator parts only possess limited memory cell, control logic and disposal ability usually, simultaneously certain fault-tolerance will be arranged, and can accomplish the automatic isolation of defective device.
To achieve these goals, the present invention adopts following technology to solve the problems referred to above:
(1) introduces frame type at link layer, show message such as differentiation incident, master-slave communication, node identification, improve the response speed of node, make in the application layer and need not distinguish in real time and the non real-time incident by message priority to asynchronous event.Kept the master-slave communication mode simultaneously, simplified realization from node.
(2) introducing incident/action model in application layer is the object that a plurality of passages are formed with node abstraction, has defined some event sources and action on each passage.These abstract each network nodes that make become the assembly that is similar in the software model, possess attribute, incident and method, and the user need not understand it and realize details, and the developer need not be concerned about also how node is called.
A kind of single bus sensor network protocol is followed the ISO/OSI master pattern, and has realized physical layer, data link layer and application layer.
Physical layer definition bottom communication media and type of drive, and splicing ear form.This agreement mainly uses twisted-pair feeder to be communication media, adopts the half duplex communication of differential driving.Each node bus controller is realized effective communication by the foldback circuit state.Mode for the node power supply defines in addition.The communication media that adopts other is not got rid of in the definition of physical layer, as adopting modes such as RF, power line modulation.
The address space size and the addressing method of data link layer defined node, maximum transmitted data byte number, the composition mode of Frame, verification mode, arbitration mode etc.Data link layer mainly contains following characteristics:
● support principal and subordinate, incident/two kinds of communication modes of action.Under master slave mode, host node can and single, a plurality of or all are from carrying out communication between the node.Under incident/pattern, host node when these incidents take place, can initiatively send incident frame from node to from the more predetermined incidents of node, will trigger all nodes relevant with this incident like this and make corresponding processing or action.
● support to arbitrate mode by turn based on the non-destructive of position.The data of transmitting on the regulation bus have only two states: ' 1 ' (recessiveness) and ' 0 ' (dominance), adopt line and mode, when promptly a plurality of nodes send data simultaneously on bus, on the bus final logical signal be all signals with.This mode has guaranteed to still have in collision a data bit can send success, thus can lost data or waste bandwidth, can obtain the rate of information transmission of a maximum.
● the multilayer verification of adopting CRC check and supplementary verification to combine.Sending node adopts identical check polynomial with receiving node in the CRC check, and the method that receiving node calculates CRC is identical with sending node.Receiving node carries out computing to it, if on behalf of CRC check, the operation result unanimity promptly pass through after receiving the CRC sequence that sending node sends.The supplementary verification comprises: fill-error promptly using the position completion method to carry out in the information encoded, the 6th consecutive identical bit level occurred; Form error, promptly a machine made potential field contains one or more non-tagmeme.If receiving node is not found crc error, fill-error, form error, just represent this frame correctly to be received, so " recessiveness " that receiving node will be during confirming the gap writes sending node with the position of one " dominance " is recognized; Otherwise can not make affirmation.
● introduce and confirm and acknowledgement mechanism.The effect of affirmation mechanism is when data that sending node sends are found not have mistake after the CRC check of receiving node and supplementary verification, receiving node will confirm that on behalf of these frame data, " recessiveness " position that the position of gap in order to one " dominance " writes sending node is recognized, send successfully.Acknowledgement mechanism is main corresponding with the response bits A position of control domain, when the A position is " dominance ", represents this frame to reply.If receiving node is agreed this frame is given a response, will make and to reply replying " recessiveness " that the position of gap with one " dominance " write sending node.
Characteristics at spot sensor, application layer has realized four generic operations to sensor node, be convenient to obtain in real time collection in worksite ground data and make fast processing, and can be according to the work characteristics of different sensors, realization has greatly improved the application versatility of agreement to the customization of working sensor mode and the customization of data collection mode.Simultaneously, the data structure of application layer is simple, can satisfy the instructions for use of various transducers again, and producer can contrast agreement and develop application node easily, has strengthened the application applicability of agreement.According to application layer protocol, can on a sensor node, realize can reaching 63 digital sensorses or 504 Boolean value output sensors at most by the integrated of a plurality of transducers, save the development cost of transducer producer, improve the economic serviceability of agreement.Application layer mainly contains following characteristics:
● support main-from the data access mode of interrupting, increase the flexibility of networking.
● Node Events and action can be disposed, thereby have alleviated the burden of main frame, improve the response speed of network.
● the data structure of simplifying, the real-time collection and the fast processing of support data.
● the channel operation of support node is beneficial to integrated, reduction production cost of products.
● support the setting of custom parameter, satisfy different developers' demand.
Invention effect and advantage
1, supports principal and subordinate, incident/two kinds of communication modes of action, increase the flexibility of networking.
2, support to arbitrate mode by turn based on the non-destructive of position.When two or more nodes are wanted accesses network simultaneously, can not require the high node retransmission data of priority, thus can lost data or waste bandwidth.
3, bus control unit possesses fault tolerance, bus can be resetted from error condition, and can find and the isolated fault node; Node provides certain node state inquiry, and main frame is realized simple failure diagnosis and fault processing mechanism on this basis;
4, real-time requirement.For some important alarm signals, can in certain time limit, be delivered to host node.Take the communication mode of incident/action, avoided some sensor network only to support master-slave communication, anomalous event must detect the problem that could find by host node, and, communication more at interstitial content loaded than under the big situation, also can satisfy the requirement of real-time.
5, the channel operation of the configuration of support node incident and action and node has alleviated the burden of main frame, be beneficial to simultaneously node integrated, reduce production cost of products.
Description of drawings
Fig. 1 sensor network structure.
Embodiment
The relative physical media of the present invention is independent, and Interface design can receive the variation on the network communication circuit, but and undefined physical media.
Agreement has been stipulated by the process of identification frame realization from node plug and play characteristic.After inserting bus from node first or receiving the host node reset frame, be changed to reset mode from node.What be in reset mode sends the identification frame from node when bus is idle, treat that host node is confirmed after, enter running status from node.Only be in running status from node, could normal receive and send data.
Host node can be safeguarded one from node table, the attribute of this each node of table record and configuration information.When host node find one new for node, then this node is added in the table, inquire about and write down the relevant attribute of newly added node subsequently, as node type, title, passage, and relevant configuration information write this node, these configuration informations are from the configuration software on upper strata.Needing from node after the configuration: (1) receives the incident frame and triggers corresponding actions; (2) send the incident frame according to internal state, arrive the upper limit as temperature; (3) receive the request of main frame and replying.
Whether host node can be made regular check on the existence from node, confirm to lose efficacy from node.When behind node failure, host node should upgrade internal node and state table thereof.
As shown in Figure 1, the sensor network bus is taked the mode of monobus, and the 1st, the passage of data transmission in network; 2,3: host node, have only one to be in active state, another is in stand-by state.4: from node: the monitoring field conditions according to the requirement of host node, sends corresponding data.
The open system interconnection network model of ISO/OSI standard definition has seven layers, and the present invention follows this standard, and has realized physical layer, data link layer and application layer.
The main effect of data link layer is the reinforcement to the function of physical layer transmission original bit stream, and the physical connection that may make mistakes that physical layer is provided is transformed into the data link of zero defect in logic.Therefore its function that need provide comprises link-attached foundation, dismounting and separates; Frame is delimited and frame synchronization; Sequential control; Error detection occurs and recovery etc.
This agreement is used fixing data frame format, and frame structure is as shown in table 1
Frame is initial | Arbitration territory (ABT) | Control domain | Length | Data field | The verification territory | Confirm territory (CFM) | Acknowledge | The frame knot |
Frame type (TY P) | Address field (ADD) | ||||||||
1 | 3 | 2 * 8 | MARU | 4 | (0-15) * 8 | 17 | 2 | 2 | 6 |
Each frame comprises frame initial (SOF), arbitration territory (ABT), control domain (CTL), length field (LEN), data field (DATA), verification territory (CRC), affirmation territory (CFM), Acknowledge (ACK), nine parts of frame end (EOF), and the arbitration territory comprises frame type (TYP), address field (ADD).When bus was idle, any node can send data.If just arbitrate when having a plurality of nodes to send data simultaneously by the arbitration territory.
● frame initial (SOF)
Frame is initial to account for one, when main frame need transmit or receive data, at first must wait for the bus free time.Just can begin to send one ' 0 ' expression when bus is idle begins to send or received frame subsequently.
● arbitration territory (ABT)
The arbitration territory comprises frame type and address two parts, and its function is exactly simultaneously during competition bus, to determine which the node acquisition bus right to use by certain arbitration mechanism as a plurality of nodes.During the arbitration, each sending node all compares the level of transmission position and monitored bus level.If level is identical, then this node can continue to send.If what send is " recessiveness " level and monitor and look one " dominance " level, this node has just lost arbitration so, must withdraw from transmit status.
Frame type (TYP) comprises reset frame, identification frame, successive frame, incident frame, normal frames and three expansion frames.The function of reset frame be main frame by sending reset frame, make all main and subordinate nodes return to initial condition.When powering on, enter initial condition automatically when main frame with from node.The function of identification frame is when node is in initial condition, promptly rigidly connect into network or host reset, must with main-machine communication, finish identification, change over to and just can carry out normal data transmission after the operating state.The function of successive frame is to show that this frame is the continuation of previous frame, and its content depends on previous video frames.Can there be 0 to 8 successive frame a frame back.The function of incident frame is when having predefined incident to take place from node, can utilize the incident frame to obtain bus transfer data.The function of normal frames is that main frame is by polling mode and single from node transmission data.The expansion frame is a retention frame.
In dissimilar frames, address field (ADD) has different implications.Address style has three kinds, host address, node address, incident.These three kinds of address spaces all are independently.
Host address is that main frame provides when resetting, and is mainly used in when a plurality of main frame is arranged on consolidated network to arbitrate, and selects an active main frame.For node, can ignore host address.
Node address is that main frame is used for selecting to want nodes in communication in master-slave communication.Node address comprises broadcast address and multicast address.Node address is structureless, and application need guarantees that node address does not repeat on consolidated network.
Event number is the special address space of a class, and node arrive set point as temperature, or certain optoelectronic switch opens to main frame or some special events of other node reports with incident.
● control domain (CTL)
Control domain accounts for four, and whether wherein the M position is used to identify this frame successive frame, if then this position is " dominance ", otherwise this position is " recessiveness "; Whether the A position is used to identify this frame and needs to reply, if then this position is " dominance ", otherwise this position is " recessiveness "; Whether the R position is used to identify this frame is retransmit frames, if then this position is " dominance ", otherwise this position is " recessiveness "; The U position of control domain is for keeping the position.
● length field (LEN)
Length field has been indicated the byte number in the data field.The data word joint number that Frame length allows: 0,1,7 ..., 15}.Other numerical value do not allow to use.The data length code, as shown in table 2.
● data field (DATA)
Data fields is made up of the transmission data in the Frame.It can be 0~15 byte, and every byte has comprised 8 positions, at first sends MSB.
● verification territory (CRC)
The verification territory has cyclic redundancy sequence (CRC Sequence) and CRC to define symbol (CRCdelimiter) composition.Calculate for carrying out CRC, the multinomial coefficient that is removed is given by there not being the bit stream of filling, and the composition of forming these bit streams is: frame is initial, arbitration territory, control domain, length field, data field (if having), and the coefficient of 15 lowest orders is 0.This multinomial is removed (its coefficient is a mould with 2) by following multinomial generator:
X 15+X 14+X 10+X 8+X 7+X 4+X 3+1
The remainder of this polynomial division is exactly the CRC sequence (CRCSequence) that sends on the bus.After the CRC sequence is that CRC defines symbol, and it comprises independent " recessiveness " position.
● confirm territory (CFM)
Confirm that length of field is 2 positions, comprise affirmation gap (Confirm Slot) and affirmation and define symbol (Confirm Delimiter).Confirming the gap, transmitter sends one " recessiveness " position, and when receiver correctly receives effective message, " recessiveness " that receiver will be during confirming gap (Confirm SLOT) writes transmitter with the position of one " dominance " is recognized.Confirming to define symbol is to confirm to answer second position in territory, and is a position that is necessary for " recessiveness ".
● Acknowledge (ACK)
Acknowledge length is 2 positions, comprises to reply gap (ACK Slot) and reply and define symbol (ACK Delimiter).Replying the gap, transmitter sends one " recessiveness " position.When the A territory of control domain is " dominance ", represent that this frame need reply, if this frame confirms and can reply that then receiver " recessiveness " that will be during replying gap (ACK SLOT) writes transmitter with the position of one " dominance " is made and to be replied through receiver.Replying and defining symbol is second position of Acknowledge, and is a position that is necessary for " recessiveness ".
● frame end (EOF)
Represent the end of a frame with 1 " recessiveness " position.
The present invention allows to follow between each application layer of standard and can operate mutually.In order to realize mutual operation, each application layer corresponding application must be to move with a protocol stack, and each protocol stack all meets standard of the present invention.But not all application program all must all meet standard of the present invention, but application program is only utilized some part in the protocol stack, and some the additional vertical protocol subset in the protocol stack is used to support main service of using exactly.
Communication in the network can be divided into two classes according to the main body difference, and a class is initiated by main frame, as reset frame, normal frames etc.; One class is initiated by slave, sends out the incident frame, successive frame etc.The operation of being initiated by main frame to slave all sends data in the mode of normal frames, from node to the response of main frame then with the mode return data of successive frame.Can also interrupt mode send the incident frame to bus from node, main frame and other tubercle are made corresponding processing or action after listening to the incident frame of bus.The packing data of application layer transmits in the data field of link layer in the communication process.When data send, high-order transmission earlier.Some symbol implication such as tables 3 of using in the application layer data
Sequence number | Symbol | | Explanation | |
1 | |
2 | Command code. | |
2 | CH_NUM | 6 | Channel number. | |
3 | |
4 | The length of this frame parameter data, parameter, the length overall of data. | |
4 | |
4 | Command code. | |
5 | PAR | 8*n | The parameter that and instruction is relevant. | |
6 | DATA | 8*n | The data that send. | |
7 | |
4 | Padding data. |
According to the difference of Action Target, can be divided into to the operation of node with to the operation of passage.Passage 0 is the overall passage of each node acquiescence, promptly the operation of passage 0 is operation to node.Because of passage 0 is a logical channel, rest channels is the physical channel, so slightly different with the operation to other passage to the operation of passage 0.Now different orders is distinguished in the mode of instruction.
Mobile host computers and between the node mainly with master-communicate from mode.Main frame by 4 kinds of operations to be configured the input and output with data from node.The action type code sees Table 4.
● READ: main frame obtains the field data of gathering from node by the READ operation.
● WRITE: main frame, is realized the driving from node to from the node dateout by the WRITE operation.
● GET: main frame is operated attribute configuration and the state information of obtaining from node by GET.
● SET: main frame can make from node and can move according to predetermined mode with the SET operation to carry out the setting of attribute, incident and action etc. from node.
Mobile host computers is to generic command data structure such as table 5 from nodal operation.
Illustrate:
1. access path 0 is equal to node is operated.
2. be and link layer data length coupling, parameter length can not surpass 13 bytes.
With a high position the preceding mode transmit.
As receive the order that needs return data from node, then data are returned its data structure such as table 6 by normal frames
Illustrate: the OP in the return data and CMD are the same with OP and the CMD in the command frame that fetches data, and are convenient to main frame and distinguish it is response to which order.
When node was in different states, its response was also different, its response mode such as table 7
From node state | Verification | Order is supported | Response |
Off-line | - | - | Do not have |
Hang up | Wrong | - | Do not have |
Hang up | By | - | Confirm |
Online | Wrong | - | Do not have |
Online | By | Not | Confirm |
Online | By | Be | Confirm+reply |
Main frame is to returning the response mode such as the table 8 of frame
Host Status | Verification | Response |
- | Wrong | Do not have |
Busy | By | Confirm |
Be ready to | By | Confirm+reply |
Node has the register of following several types:
● the node state register has two bytes, its each represent a kind of Status Type, the implication that begins every from highest order is as follows:
(1) 0: normal; 1: fault;
(2) 0: online; 1: off-line;
(3) 0: work online; 1: online hang-up;
(4) ~ (16) self-defined.
Wherein (1), (2), (3) three each nodes of state all must be realized.The user can also customize other Status Type according to the needs of oneself.
● the nodal community register has totally 32 of 4 bytes.Being allocated as follows of the attribute of node and property register:
(1) port number: use first byte representation, wherein 0 passage does not participate in counting.The logical channel number can not be above 63.
(2) general register number: belong to the general register number of passage 0, with second byte representation.
(3) the passage similarities and differences: whether the contained passage of this node is same type.So-called same type, promptly except that the physical port difference, its state, attribute, data structure, parameter etc. are all adopted identical form.Highest order with the 3rd byte represents that " 0 " expression is identical, and " 1 " expression is different.
(4) register access unit: the visit unit of single register in the passage 0, " 0 " is 8, " 1 " is 16.Second bit representation with the 3rd byte.
(5) Custom Attributes: attribute described above is a set form, and its implication must not be changed with order, and each node must be realized.The user can increase self-defining attribute according to the needs of oneself backward.
● the node general register is an option, and the user can set its number and implication according to the demand of oneself.The general address begins layout from 00H.This instruction is reading format in batches, and first byte indicates the address of initial general register in the parameter, and second byte indicates the general register number that address from then on begins to read.The total length that reads can not surpass 11 bytes.
● the node control register is a byte, and from highest order, its every implication is as follows:
(1) puts 1, wake node up;
(2) put 1, hang up node;
(3) put the unloading node.
After receiving back instruction and carry out corresponding operating from node, automatically with the control register zero clearing.
Passage has the register of following several types:
● the channel status register: each passage has only the status register of one 2 byte that 18 state values can be arranged, except that the stationary state that each passage must be realized, and the state of self-defined passage as required.Stationary state is as follows, begins the precedence preface of its sequence number corresponding states register by highest order.
(1) 0: normal; 1: fault
(2) 0: operation; 1: standby;
(3) 0: in the data transaction; 1: DSR;
(4) ~ (8) self-defined.
● the channel attributes register comprises three bytes, and first byte illustrates the general register number that this passage comprises; Its every implication of per two bytes is as follows:
(1) inputs or outputs type." 1 " is input, and " 0 " is output.
(2) switching value or digital quantity." 1 " is switching value, and fixing each passage can only have maximum 16 switching values, 8 of less thaies get low level, high-order meaningless." 0 " is digital quantity
(3) ~ (5) data type.
000: unsigned int, 8 bit switch amounts;
001: the two integers of no symbol, 16 bit switch amounts;
010: the two integers of symbol are arranged;
011: the sixteen bit floating type;
100: the packed BCD sign indicating number;
101: character string.
(6) register access unit: " 0 " is 8, and " 1 " is 16.
(7) ~ (8) Custom Attributes, as undefined, then fill " 0 ".
The 3rd byte meaning is self-defined.
● the passage general register is an option, and the user can set its number and implication according to the demand of oneself.Register address begins layout from 00H.This instruction is reading format in batches, and first byte indicates the address of originating register in the parameter, and second byte indicates the register number that address from then on begins to read.Recommendation is achieved as follows the general register function:
(1) register 0: passage calibration value parameter;
(2) register 1: the passage upper limit parameter;
(3) register 2: passage lower limit parameter;
(4) register 3: the passage custom parameter.
● channel control register: can start passage by instruction and bring into operation or order it to stop.Channel register is a byte, and from highest order, its every implication is as follows:
(1) puts 1, passage is stopped;
(2) put 1, start passage;
(3) put 1, the negate of passage operating state;
(4) put 1, carry out passage by the value in the passage general register 0 and demarcate;
(5) put 1, carry out the passage upper limit by the value in the passage general register 1 and set;
(6) put 1, carry out the passage lower limit set by the value in the passage general register 2.
(7) put 1, carry out the self-defined setting of passage by the value in the passage general register 3.
(1) ~ (3) be the control command that must realize, (4) ~ (6) recommend to realize.
After receiving back instruction and carry out corresponding operating from node, automatically with the control register zero clearing.
Event type has fundamental type and customization type, and is as follows:
● event type
1. fault;
2. get over the upper limit;
3. get over lower limit;
4. the increment absolute value upper limit;
5. increment absolute value lower limit;
6. state changes (or data change);
7. be timed to;
8 ~ 255. is self-defined.
● event number is made up of two bytes.Event number is generated by main frame.
Event argument is with a byte representation:
(1) 00H, the setting incident;
(2) 01H presses event number cancellation incident;
(3): 02H, cancel all incidents of this passage.
Claims (6)
1. single bus sensor network protocol, follow the ISO/OSI master pattern, and physical layer, data link layer and application layer have been realized, physical layer definition bottom communication media and type of drive, and splicing ear form is characterized in that: the address space size and the addressing method of data link layer defined node, maximum transmitted data byte number, the composition mode of Frame, verification mode, arbitration mode; The packing data of application layer transmits in the data field of link layer in the communication process, and the data of application layer comprise length, the parameter of data, padding data and this frame parameter data of the relevant parameter of command code, channel number, command code, and instruction, transmission, the length overall of data.
2. single bus sensor network protocol according to claim 1, it is characterized in that: each frame of data link layer comprises frame initial (SOF), arbitration territory (ABT), control domain (CTL), length field (LEN), data field (DATA), verification territory (CRC), affirmation territory (CFM), Acknowledge (ACK), nine parts of frame end (EOF), and the arbitration territory comprises frame type (TYP), address field (ADD).
3. single bus sensor network protocol according to claim 2, it is characterized in that: frame type comprises reset frame, identification frame, successive frame, incident frame, normal frames and three expansion frames, the function of reset frame be main frame by sending reset frame, make all main and subordinate nodes return to initial condition; Identification frame function be when node is in initial condition, must with main-machine communication, finish identification; The function of successive frame is to show that this frame is the continuation of previous frame, and its content depends on previous video frames, and can there be 0 to 8 successive frame a frame back; The function of incident frame is when having predefined incident to take place from node, can utilize the incident frame to obtain bus transfer data; The function of normal frames is that main frame is by polling mode and single from node transmission data; The expansion frame is a retention frame.
4. single bus sensor network protocol according to claim 2, it is characterized in that: address style has host address, node address, incident, host address is that main frame provides when resetting, be mainly used in when a plurality of main frame is arranged on consolidated network and arbitrate, select an active main frame; Node address is that main frame is used for selecting to want nodes in communication in master-slave communication; Event number is the special address space of a class, and node comes to main frame or some special events of other node reports with incident.
5. single bus sensor network protocol according to claim 1 is characterized in that: to be configured the input and output with data from node, main frame obtains the field data of gathering from node by the READ operation to application layer host by 4 kinds of operations; Main frame, is realized the driving from node to from the node dateout by the WRITE operation; Main frame is operated attribute configuration and the state information of obtaining from node by GET; Main frame can make from node and can move according to predetermined mode with the SET operation to carry out the setting of attribute, incident and action etc. from node.
6. single bus sensor network protocol according to claim 1 or 5, it is characterized in that: node has four kinds of registers, comprise node state register, nodal community register, node general register, node control register, each passage of node all has four kinds of registers, comprises channel status register, channel attributes register, passage general register, channel control register.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100709982A CN101374082A (en) | 2007-08-24 | 2007-08-24 | Single bus sensor network protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007100709982A CN101374082A (en) | 2007-08-24 | 2007-08-24 | Single bus sensor network protocol |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101374082A true CN101374082A (en) | 2009-02-25 |
Family
ID=40448024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2007100709982A Pending CN101374082A (en) | 2007-08-24 | 2007-08-24 | Single bus sensor network protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101374082A (en) |
Cited By (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101945031A (en) * | 2010-10-21 | 2011-01-12 | 广州数控设备有限公司 | Method for implementing mutual communication of slave stations of high-speed field bus |
CN102164030A (en) * | 2011-02-15 | 2011-08-24 | 杭州矽力杰半导体技术有限公司 | Single-port communication circuit and communication method thereof |
CN101668014B (en) * | 2009-09-24 | 2012-07-18 | 桂林电子科技大学 | Communication method of manufacturing grid service center and resource nodes |
CN102722744A (en) * | 2012-05-25 | 2012-10-10 | 无锡里外半导体科技有限公司 | Wireless sensor implemented by using radio frequency identification (RFID) tag |
CN102902653A (en) * | 2012-10-09 | 2013-01-30 | 天津市松正电动汽车技术股份有限公司 | Serial communication protocol for controller |
CN103236962A (en) * | 2013-05-10 | 2013-08-07 | 郑声友 | Field bus transmission method |
CN104065502A (en) * | 2013-03-19 | 2014-09-24 | 王盘龙 | Collision-and-layering preventing device system for intelligent transmission of Internet-of-things data |
CN104811273A (en) * | 2015-04-02 | 2015-07-29 | 福州大学 | Implement method for high speed single bus communication |
CN104992545A (en) * | 2015-07-08 | 2015-10-21 | 中国科学院声学研究所北海研究站 | Underwater detection relay platform system |
CN107147657A (en) * | 2017-05-31 | 2017-09-08 | 飞智控(天津)科技有限公司 | Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus |
CN107317733A (en) * | 2017-07-20 | 2017-11-03 | 深圳市禧龙电器有限公司 | Wireless communications method, slave, main frame, system and readable storage medium storing program for executing |
CN107682467A (en) * | 2017-10-01 | 2018-02-09 | 北京迪利科技有限公司 | A kind of bus address distribution that communication is realized by powering step by step is with knowing method for distinguishing |
WO2018040057A1 (en) * | 2016-09-01 | 2018-03-08 | Huizhou Tcl Mobile Communication Co.,Ltd | Methods for plant state data transmission and associated sensing and control devices |
CN108116344A (en) * | 2016-11-29 | 2018-06-05 | 罗伯特·博世有限公司 | For running the method and apparatus of sensing system and sensing system |
CN109947073A (en) * | 2017-12-21 | 2019-06-28 | 英飞凌科技股份有限公司 | Short pulse width modulation code/unilateral nibble transmission sensor of data rate and automatic protocol detection with raising |
CN111337073A (en) * | 2018-12-19 | 2020-06-26 | 西蒙兹精密产品公司 | Configurable distributed smart sensor system |
CN111337072A (en) * | 2018-12-19 | 2020-06-26 | 西蒙兹精密产品公司 | Configurable distributed smart sensor system |
CN111901214A (en) * | 2020-07-22 | 2020-11-06 | 积成电子股份有限公司 | Power monitoring serial communication method and system based on optimized polling mechanism |
CN112025704A (en) * | 2020-08-25 | 2020-12-04 | 杭州湖西云百生科技有限公司 | Real-time distributed robot control method and system based on memory type database |
CN112083955A (en) * | 2020-08-19 | 2020-12-15 | 许继集团有限公司 | Data processing method for fire-fighting system of transformer substation |
CN112291130A (en) * | 2020-12-03 | 2021-01-29 | 国创新能源汽车智慧能源装备创新中心(江苏)有限公司 | Networking system and method of field bus |
CN112765072A (en) * | 2021-01-28 | 2021-05-07 | 北京方天长久科技股份有限公司 | Serial interconnection bus data frame format and transmission method |
CN112929950A (en) * | 2021-03-11 | 2021-06-08 | 南昌凯峰软件有限责任公司 | Self-organizing network access method based on preamble |
CN116578521A (en) * | 2023-07-14 | 2023-08-11 | 深圳中安辰鸿技术有限公司 | Single-bus communication method, device, system and equipment |
CN116614159A (en) * | 2023-07-21 | 2023-08-18 | 西安矽源半导体有限公司 | Twisted pair isolation type communication transmission method for battery monitoring |
-
2007
- 2007-08-24 CN CNA2007100709982A patent/CN101374082A/en active Pending
Cited By (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668014B (en) * | 2009-09-24 | 2012-07-18 | 桂林电子科技大学 | Communication method of manufacturing grid service center and resource nodes |
CN101945031A (en) * | 2010-10-21 | 2011-01-12 | 广州数控设备有限公司 | Method for implementing mutual communication of slave stations of high-speed field bus |
CN102164030B (en) * | 2011-02-15 | 2014-01-29 | 矽力杰半导体技术(杭州)有限公司 | Single-port communication circuit and communication method thereof |
CN102164030A (en) * | 2011-02-15 | 2011-08-24 | 杭州矽力杰半导体技术有限公司 | Single-port communication circuit and communication method thereof |
CN102722744A (en) * | 2012-05-25 | 2012-10-10 | 无锡里外半导体科技有限公司 | Wireless sensor implemented by using radio frequency identification (RFID) tag |
CN102722744B (en) * | 2012-05-25 | 2014-09-24 | 无锡里外半导体科技有限公司 | Wireless sensor implemented by using radio frequency identification (RFID) tag |
CN102902653A (en) * | 2012-10-09 | 2013-01-30 | 天津市松正电动汽车技术股份有限公司 | Serial communication protocol for controller |
CN104065502A (en) * | 2013-03-19 | 2014-09-24 | 王盘龙 | Collision-and-layering preventing device system for intelligent transmission of Internet-of-things data |
CN103236962A (en) * | 2013-05-10 | 2013-08-07 | 郑声友 | Field bus transmission method |
CN103236962B (en) * | 2013-05-10 | 2017-10-13 | 郑声友 | Fieldbus transmission method |
CN104811273A (en) * | 2015-04-02 | 2015-07-29 | 福州大学 | Implement method for high speed single bus communication |
CN104811273B (en) * | 2015-04-02 | 2018-10-30 | 福州大学 | A kind of implementation method of high speed monobus communication |
CN104992545A (en) * | 2015-07-08 | 2015-10-21 | 中国科学院声学研究所北海研究站 | Underwater detection relay platform system |
CN109478046B (en) * | 2016-09-01 | 2022-04-08 | Tcl通讯科技(成都)有限公司 | Transmission method of equipment state data, related sensing equipment and control equipment |
CN109478046A (en) * | 2016-09-01 | 2019-03-15 | 惠州Tcl移动通信有限公司 | The transmission method of device status data, relevant sensing equipment and control equipment |
WO2018040057A1 (en) * | 2016-09-01 | 2018-03-08 | Huizhou Tcl Mobile Communication Co.,Ltd | Methods for plant state data transmission and associated sensing and control devices |
CN108116344A (en) * | 2016-11-29 | 2018-06-05 | 罗伯特·博世有限公司 | For running the method and apparatus of sensing system and sensing system |
CN107147657B (en) * | 2017-05-31 | 2020-06-02 | 一飞智控(天津)科技有限公司 | Coding and decoding method and communication equipment suitable for multi-machine reliable communication |
CN107147657A (en) * | 2017-05-31 | 2017-09-08 | 飞智控(天津)科技有限公司 | Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus |
CN107317733A (en) * | 2017-07-20 | 2017-11-03 | 深圳市禧龙电器有限公司 | Wireless communications method, slave, main frame, system and readable storage medium storing program for executing |
CN107682467A (en) * | 2017-10-01 | 2018-02-09 | 北京迪利科技有限公司 | A kind of bus address distribution that communication is realized by powering step by step is with knowing method for distinguishing |
CN109947073A (en) * | 2017-12-21 | 2019-06-28 | 英飞凌科技股份有限公司 | Short pulse width modulation code/unilateral nibble transmission sensor of data rate and automatic protocol detection with raising |
CN111337073A (en) * | 2018-12-19 | 2020-06-26 | 西蒙兹精密产品公司 | Configurable distributed smart sensor system |
CN111337072A (en) * | 2018-12-19 | 2020-06-26 | 西蒙兹精密产品公司 | Configurable distributed smart sensor system |
CN111901214B (en) * | 2020-07-22 | 2022-03-18 | 积成电子股份有限公司 | Power monitoring serial communication method and system based on optimized polling mechanism |
CN111901214A (en) * | 2020-07-22 | 2020-11-06 | 积成电子股份有限公司 | Power monitoring serial communication method and system based on optimized polling mechanism |
CN112083955A (en) * | 2020-08-19 | 2020-12-15 | 许继集团有限公司 | Data processing method for fire-fighting system of transformer substation |
CN112025704A (en) * | 2020-08-25 | 2020-12-04 | 杭州湖西云百生科技有限公司 | Real-time distributed robot control method and system based on memory type database |
CN112291130A (en) * | 2020-12-03 | 2021-01-29 | 国创新能源汽车智慧能源装备创新中心(江苏)有限公司 | Networking system and method of field bus |
CN112765072A (en) * | 2021-01-28 | 2021-05-07 | 北京方天长久科技股份有限公司 | Serial interconnection bus data frame format and transmission method |
CN112929950A (en) * | 2021-03-11 | 2021-06-08 | 南昌凯峰软件有限责任公司 | Self-organizing network access method based on preamble |
CN112929950B (en) * | 2021-03-11 | 2023-03-17 | 南昌凯峰软件有限责任公司 | Self-organizing network access method based on preamble |
CN116578521A (en) * | 2023-07-14 | 2023-08-11 | 深圳中安辰鸿技术有限公司 | Single-bus communication method, device, system and equipment |
CN116614159A (en) * | 2023-07-21 | 2023-08-18 | 西安矽源半导体有限公司 | Twisted pair isolation type communication transmission method for battery monitoring |
CN116614159B (en) * | 2023-07-21 | 2024-04-26 | 西安矽源半导体有限公司 | Twisted pair isolation type communication transmission method for battery monitoring |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101374082A (en) | Single bus sensor network protocol | |
CN102360206B (en) | Control system with a plurality of spatially distributed stations and method for transmitting data in said control system | |
CN100588169C (en) | User, master unit, communication system and operation method thereof | |
CN101374094B (en) | Data transmission method | |
CN100521637C (en) | Optical fiber-based high speed serial industrial real-time communication bus system and its control method | |
CN100357922C (en) | A general input/output architecture, protocol and related methods to implement flow control | |
CN101111807B (en) | Control system having a plurality of spatially distributed stations, and method for transmitting data in such a control system | |
CN102326363B (en) | Microcontroller with can module using buffer description table | |
US5414813A (en) | Direct transfer from a receive buffer to a host in a token-passing type network data transmission system | |
CN112799992B (en) | Fieldbus chip architecture | |
CN101976074A (en) | Industrial control system based on field bus and control network | |
EP1675312A1 (en) | Multi-protocol field device emulator | |
CN100546262C (en) | A kind of broadband aviation electronic bus testing apparatus and method of operation thereof | |
CN110224914B (en) | Method and system for data aggregation in industrial communication protocols | |
CN102035688B (en) | Design method for rapidly controlling network link access | |
CN101399654A (en) | Serial communication method and apparatus | |
JP2010537296A (en) | Control node and control unit | |
AU2007203541A1 (en) | Redundancy coupler for industrial communications networks | |
CN106873541A (en) | A kind of EtherCAT Distributed Servo kinetic control systems based on DSP | |
US5278848A (en) | Bidirectional communication method | |
CN101013315A (en) | General numerical control system based on full digital ring bus | |
CN103685578B (en) | The data transmission method of master-slave equipment | |
CN115065575B (en) | Data transmission system based on CAN bus controller and electronic equipment | |
CN101106504A (en) | Distributed communication system for intelligent independent robot based on CAN bus | |
CN201072431Y (en) | Broadband aviation electronic bus testing 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 | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Open date: 20090225 |