CN101222400A - Road traffic information acquisition sensor network node device and data transmission method thereof - Google Patents

Road traffic information acquisition sensor network node device and data transmission method thereof Download PDF

Info

Publication number
CN101222400A
CN101222400A CNA2008100573934A CN200810057393A CN101222400A CN 101222400 A CN101222400 A CN 101222400A CN A2008100573934 A CNA2008100573934 A CN A2008100573934A CN 200810057393 A CN200810057393 A CN 200810057393A CN 101222400 A CN101222400 A CN 101222400A
Authority
CN
China
Prior art keywords
data
register
mailbox
communication controller
dsp
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
Application number
CNA2008100573934A
Other languages
Chinese (zh)
Other versions
CN101222400B (en
Inventor
张和生
国彬
王强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jiaotong University
Original Assignee
Beijing Jiaotong University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jiaotong University filed Critical Beijing Jiaotong University
Priority to CN2008100573934A priority Critical patent/CN101222400B/en
Publication of CN101222400A publication Critical patent/CN101222400A/en
Application granted granted Critical
Publication of CN101222400B publication Critical patent/CN101222400B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a network node device for a traffic information acquisition sensor, comprising a digital signal processor DSP, a network communication controller, a CAN communication controller and/or a signal conditioning circuit and/or a serial communication circuit, wherein, the network communication controller is used for large capacity data communication between the DSP and the communication network; the CAN communication controller is used for digital communication of high real time with a CAN interface; the signal conditioning circuit is used for exchanging input signals of an analogue quantity sensor, a switching value sensor and an impulse sequence sensor so as to satisfy the requirements of the DSP on the input signals; the serial communication circuit is used for short distance data communication and for maintaining and conditioning the node device. The device can be connected with various sensors, ensures that the prior traffic information acquisition sensors form a network, has the functions of a fieldbus and the Ethernet data communication, changes the deployment and the operation way of the prior traffic information collecting sensors and can obtain integrated traffic information.

Description

Road traffic information acquisition sensor network node device and data transmission method thereof
Technical field
The present invention relates to network technology and use particularly a kind of road traffic state information acquisition sensor network node device and data transmission method thereof.
Background technology
The physical basis of acquisition of road traffic information is a physical sensors.At present, in road traffic system, used sensor type is many, as loop coil transducer, video image sensors, microwave remote sensor, infrared sensor, sonac or the like.
Accurately obtain road traffic state, the use of transducer also is a key factor.The characteristics of the use of existing transducer are:
● multiple sensors is that a kind of application service and a kind of transducer are multiple application service.For example use coil pickoff, microwave remote sensor, sonac or the like in the traffic administration; The data of isochrone coil sensor except being used for traffic control, also be used for to traffic state information issue, the volume of traffic induce, the application of aspects such as transport services evaluation.
● transducer is disposed separate, function singleness, for example video monitoring need independent optical-fiber network transmit, go in ring coil by traffic control system transmit, radar, infrared sensor all have oneself cover transmitting device.
Existing transducer is disposed and the problem of utilization is:
● it is huge to take Internet resources, and every kind of transducer all will dispose independent data line, and installation work becomes the groundwork that transducer is disposed;
● existing transducer deployment way has produced the magnanimity isomeric data, because existing transducer lacks online disposal ability, these data all need to be uploaded to the traffic control center by data transmission network, therefore for data transmission network resource requirement height;
● the mass data that existing transducer deployment way produces requires high to the disposal ability of background system and causes increasing day by day towards the integrated complexity of overall integrated application;
● existing transducer lacks online disposal ability, and the traffic state information of the various application needs of intelligent transportation system again can not be online, in real time, obtain exactly.
China's development of ITS an urgent demand changes the mode that existing traffic state information is gathered.The sensor network that the transducer formation traffic behavior that has the traffic state information collection now is obtained is one of optimal path that solves existing issue.
Summary of the invention
The objective of the invention is to overcome the defective that existing technology exists, provide a kind of and can in same device, insert multi-source heterogeneous transducer, provide and have field bus communication and data network ability to communicate, and sensor node apparatus with online data disposal ability, make existing transducer constitute sensor network, the comprehensive traffic state information of covering path traffic space and time can be provided.
For achieving the above object, road traffic information acquisition sensor network node device provided by the invention comprises digital signal processor DSP and the network communication controller and the CAN communication controller that link to each other respectively with described digital signal processor DSP, wherein:
Described network communication controller is used for carrying out data communication with communication network under described digital signal processor DSP control,
Described CAN communication controller is used for carrying out communication with the device of band CAN interface,
Described digital signal processor DSP is used to finish to described network communication controller, the corresponding control of described CAN communication controller and data processing.
Road traffic information acquisition sensor network node device of the present invention, wherein said network communication controller is made of ethernet controller, isolating transformer, RJ45 interface.
Road traffic information acquisition sensor network node device of the present invention, wherein said digital signal processor DSP comprise an eCAN control module, and described CAN communication controller is by eCAN control module, optical coupling isolator, and the CAN control unit interface constitutes.
Road traffic information acquisition sensor network node device of the present invention, wherein said digital signal processor DSP is connected with signal conditioning circuit, described signal conditioning circuit is used for the input signal of the transducer of the transducer of the transducer of analog quantity output, switching value output and pulse train output is carried out conversion, to satisfy the requirement of digital signal processor DSP to input signal.
Road traffic information acquisition sensor network node device of the present invention, wherein said digital signal processor DSP is connected with serial interface circuit, described digital signal processor DSP also comprises a SCI module, described serial interface circuit comprises SCI module, optical coupling isolator, RS232 transceiver, and described serial interface circuit is used for short distance and transmits data and maintenance and debugging section point apparatus.
Road traffic information acquisition sensor network node device of the present invention, it is the chip of TMS320F2812 that wherein said digital signal processor adopts model, it is the chip of CS8900A that described ethernet controller adopts model, it is HR601627 that described isolating transformer adopts model, it is PCA82C250 that described CAN control unit interface adopts model, described optical coupling isolator model is 6N137, and described RS232 transceiver model is MAX3232.
Road traffic information acquisition sensor network node device of the present invention, wherein said network communication controller use the NTCIP agreement to carry out network communication, and described CAN communication controller uses the CAN agreement to carry out the transfer of data collection.
Another object of the present invention is to overcome the defective that existing technology exists, and a kind of data transmission method of road traffic information acquisition sensor network node device is provided.
For achieving the above object, the data transmission method of road traffic information acquisition sensor network node device provided by the invention, this method inputs to digital signal processor DSP with sensor input signal through CAN communication controller and/or signal conditioning circuit, and the data of digital signal processor DSP being handled by network communication controller transfer to the traffic control central computer by communication network, these method execution following steps:
Step 1, the device initialization comprises DSP initialization, network communication controller initialization, the initialization of CAN controller;
Step 2, described DSP receives the order that the traffic control central computer sends by described network communication controller, resolves this order, whether carries out sensor data acquisition, if then change next step over to; Otherwise, send query messages or wait to the traffic control central computer;
Step 3, bus is carried out transfer of data if the order of traffic control central computer is indication CAN, then starts described CAN communication controller and carries out transfer of data; If carry out direct data capture, then start described signal conditioning circuit image data;
Step 4, storage also checks whether the sensing data memory space reaches requirement, if, then stop data acquisition, the cleaning internal memory, and change step 6 over to; Otherwise continue operation;
Step 5 is carried out data processing, and described DSP handles the sensing data of being gathered, and the stores processor result;
Step 6 according to the order of traffic control central computer, is carried out transfer of data by described network communication controller to the traffic control central computer with sensor data information;
Step 7 turns back to step 2, waits for data acquisition process next time.
Data transmission method of the present invention, the step that wherein said CAN communication controller carries out transfer of data is:
A, transmission flow
Step 1, described DSP of initialization and eCAN module thereof comprise:
(1) enable CAN module clock,
(2) CANTX and CANRX are set as CAN communication pin,
(3) configuration bit time configuration register CANBTC,
(4) configuration receives mask register CANGAM,
(5) configuration main control register CANMC,
(6) all positions of removing message control register MSGCTRLn;
Step 2 configuration sends mailbox, comprising:
(1) corresponding position among the clear to send request set register CANTRS;
(2) remove corresponding position among the mailbox enable register CANME, shielding mailbox;
(3) the message flag symbol register MSGID of loading mailbox;
(4) write data length is to the data length code DLC district of message controlled area register MSGCTRL;
(5) corresponding position is set among the mailbox enable register CANME and enables mailbox.
Step 3 sends message, comprising:
(1) writes message to the corresponding data field that sends mailbox;
(2) the corresponding marker bit initiation message being set in sending request register CANTRS sends;
(3) etc. corresponding mailbox sends the set of response flag bit among the response register CANTA to be sent;
(4) after successfully transmission or termination send, module will send should be mutually of request set register CANTRS and reset;
Step 4 sends and finishes, and returns and calls the place;
B, reception flow process
Described DSP of step 1 initialization and eCAN module thereof comprise:
(1) enable CAN module clock,
(2) CANTX and CANRX are set as CAN communication pin,
(3) configuration bit time configuration register CANBTC,
(4) configuration receives mask register CANGAM,
(5) configuration main control register CANMC;
(6) all positions of removing message control register MSGCTRLn.
Step 2 configuration receives mailbox, comprising:
(1) corresponding positions among the removing mailbox enable register CANME, the shielding mailbox;
(2) write identifier to corresponding message flag register MSGID;
(3) if the reception mask register enable bit AME of message flag register MSGID puts 1, then corresponding the reception shields and must be configured;
(4) mailbox direction register CANMD is set, corresponding mailbox configurations position is received mailbox;
(5), need be configured Coverage Control register CANOPC if data are protected in the mailbox;
(6) corresponding positions among the mailbox enable register CANME is set, enables mailbox.
Step 3 receives message
Inquire about the corresponding positions RMPx that the reception message of corresponding mailbox correspondence hangs up among the register CANRMP and whether put 1, accept data and finish, do not finish as yet, continue inquiry otherwise receive if then show mailbox.
Step 4 receives and finishes, and returns and calls the place.
Data transmission method of the present invention, the step that wherein said network communication controller carries out transfer of data is:
The described network communication controller of step 1 initialization;
Step 2 detects whether there are the data of automatic network, if having then step 3, otherwise step 7;
Step 3 judges whether it is the arp address resolution protocol data, if then change the ARP handling procedure over to, continues after finishing; Otherwise step 2;
Step 4 judges whether it is the udp user datagram protocol data, if then change the UDP handling procedure over to; Change step 6 after finishing over to; Otherwise step 5;
Step 5 judges whether it is the tcp transmission control protocol data, if then program changes the TCP handling procedure over to, changes step 6 over to after finishing;
Data after step 6 will be handled are at last sent into described DSP and are handled, and change step 2 over to after finishing;
Step 7 detects described DSP the data that need transmission, then changes step 8 over to if having, otherwise changes step 2 over to;
If step 8 has and selects udp protocol, then handle according to udp protocol, data are sent to the traffic control central computer; Change step 2 then over to, otherwise change step 9 over to;
Whether step 9 is Transmission Control Protocol, if then handle according to Transmission Control Protocol, data is sent to the traffic control central computer, changes step 2 after the transmission over to, otherwise changes step 2 over to.
The advantage of road traffic information acquisition sensor network node device of the present invention and data transmission method thereof is: constitute sensor network owing to will have transducer now, adopt sensor node apparatus to insert existing transducer, and it is handled, result is transferred to the traffic control central computer by data network interface.This device has changed the method that single, the single function of present transport information is gathered, and satisfies the demand of traffic administration to comprehensive traffic information, can be widely used in the acquisition system of existing road transport information.
The characteristics of road traffic information acquisition sensor network node device of the present invention have:
● have the function of bottom field bus communication and upper layer data network communication, can the requirement of real time high data communication and the demand of Large Volume Data communication;
● have the transducer of online access analog quantity output, switching value output and the output of pulse train amount, comprised present acquisition of road traffic information type of sensor commonly used, as coil pickoff, microwave remote sensor, sonac, infrared sensor etc.;
● this device can the multi-source heterogeneous sensor information of online processing, can carry out online fusion and obtain the zone-to-zone travel state information, satisfies needed data type of traffic administration and information characteristics.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, in the hope of purpose of the present invention, feature and advantage are obtained more deep understanding.
Description of drawings
Fig. 1 is the block diagram of the traffic information acquisition system of road traffic information acquisition sensor network node device structure of the present invention and formation thereof;
Fig. 2 inserts the block diagram of various kinds of sensors for road traffic information acquisition sensor network node device of the present invention;
Fig. 3 is CAN communication controller block diagram in the road traffic information acquisition sensor network node device of the present invention;
Fig. 4 is network communication controller block diagram in the road traffic information acquisition sensor network node device of the present invention;
Fig. 5 is the circuit theory diagrams of CAN communication controller in the road traffic information acquisition sensor network node device of the present invention;
Fig. 6 is serial communication circuit schematic diagram in the road traffic information acquisition sensor network node device of the present invention;
Fig. 7 is the circuit theory diagrams of network communication controller in the road traffic information acquisition sensor network node device of the present invention;
Fig. 8 is the circuit theory diagrams of DSP in the road traffic information acquisition sensor network node device of the present invention;
Fig. 9 is the current-voltage conversion circuit schematic diagram of signal conditioning circuit in the road traffic information acquisition sensor network node device of the present invention;
Figure 10 is the voltage modulate circuit schematic diagram of signal conditioning circuit in the road traffic information acquisition sensor network node device of the present invention;
Figure 11 is the level-conversion circuit schematic diagram of signal conditioning circuit in the road traffic information acquisition sensor network node device of the present invention;
Figure 12 is the flow chart of road traffic information acquisition sensor network node device data processing of the present invention;
Figure 13 carries out the flow chart of Data Receiving for CAN communication controller among the present invention;
Figure 14 carries out the flow chart that data send for CAN communication controller among the present invention;
Figure 15 carries out the flow chart that data send for network communication controller among the present invention.
Embodiment
The technical scheme that adopts towards the sensor network node device of road traffic state information gathering provided by the invention comprises digital signal processor DSP and network communication controller, CAN communication controller and/or signal conditioning circuit and/or serial interface circuit.Network communication controller is used for DSP and communication network carries out the big data quantity communication; The CAN communication controller is used for carrying out the high fieldbus level communication of real-time with the device of band CAN interface, comprises the sensing data of gathering band CAN interface; Signal conditioning circuit carries out conversion to the input signal of analog sensor, Boolean value output sensor and pulse train transducer, satisfies the requirement of DSP to input signal.This device can insert the polymorphic type transducer, the transducer that the existing road traffic behavior is obtained constitutes network, function with real-time data communication and Large Volume Data communication, has data processing function, can obtain the zone-to-zone travel state information, satisfy the demand of traffic administration comprehensive traffic information.
Referring to Fig. 1, will have transducer now and constitute sensor network, adopt sensor node to insert existing transducer, and it is handled, result is transferred to top level computer by data network interface.
Network node device is a core with DSP TMS320F2812, comprises the CAN communication controller, network communication controller, signal conditioning circuit, the serial interface circuit that link to each other respectively with described digital signal processor DSP.The CAN communication controller is used for carrying out communication with the device of band CAN interface, and the device of band CAN interface also comprises the transducer of band CAN interface, as the geomagnetic type transducer of band CAN interface; The CAN communication controller is made of the eCAN control module in the digital signal processor DSP, optical coupling isolator 6N137 and CAN control unit interface PCA82C250.Network communication controller is used for carrying out data communication with communication network under described digital signal processor DSP control, and network communication controller is made of ethernet controller CS8900A, isolating transformer HR601627, RJ45 interface.Digital signal processor DSP is used to finish to network communication controller, the corresponding control of CAN communication controller and data processing.Serial interface circuit comprises SCI module, optical coupling isolator 6N137 and the RS232 transceiver MAX3232 in the digital signal processor DSP, and serial interface circuit is used for short distance and transmits data and maintenance and debugging section point apparatus.Signal conditioning circuit is used for the input signal of the transducer of the transducer of the transducer of analog quantity output, switching value output and pulse train output is carried out conversion, to satisfy the requirement of digital signal processor DSP to input signal.
With embodiment road traffic information acquisition sensor network node device of the present invention is elaborated below.
Referring to Fig. 2, the transducer of traffic information collection is divided into the transducer of band CAN interface and tradition not with the transducer of CAN interface.The transducer of band CAN interface, as the geomagnetic sensor of band CAN interface, the CAN communication controller of process sensor network nodes enters data in the network node device.Not with the transducer of communication interface, the transducer that comprises analog quantity output, as temperature sensor, sonac, the transducer such as the coil pickoff of switching value output, the transducer of pulse train output such as video sensor etc. pass through signal conditioning circuit such as current-voltage conversion circuit (at the analog sensor such as the AD590 of electric current output) respectively, voltage regulator circuit (at voltage output transducer such as sonac), level-conversion circuit (at switching value output transducer such as coil pickoff and pulse train transducer such as video sensor) enters sensor network nodes.
CAN communication controller: be used for to be with the data of the transducer of CAN interface to be input to network node and to carry out the communication of the demanding fieldbus level of real-time data with the device of being with the CAN interface.Referring to Fig. 3 and Fig. 5, the CAN communication controller comprises that eCAN module, optical coupling isolator 6N137, the CAN control unit interface PCA82C250 among the DSP is formed by connecting.CAN communication controller and DSP are connected to: the signal that enters DSP is CANRXA, and sending signal from DSP is CANTXA.The CAN communication controller uses the CAN agreement to carry out sensor data acquisition.
Network communication controller: be used for node apparatus and traffic control central computer and carry out data and instruction communication, comprise ethernet controller CS8900A, the isolating transformer HR601627 and the RJ45 interface that link to each other successively by bus with DSP.Referring to Fig. 4 and Fig. 7, and being connected to of DSP: data/address bus D0~D15, address wire CSA1~3, control line xzcs0and1, XRD, XWE.Network communication controller uses the NTCIP bus protocol to carry out network communication.
Serial interface circuit comprises SCI module, optical coupling isolator 6N137, RS232 transceiver MAX3232.Referring to Fig. 6, be used for the node apparatus short distance and transmit data, and the maintenance of node apparatus and debugging.
Signal conditioning circuit: comprise have current-voltage conversion circuit, voltage regulator circuit, level-conversion circuit.Referring to Fig. 9, the sensor signal conditioning circuit of current analog amount output comprises current-to-voltage converting circuit and voltage regulator circuit.Referring to Figure 10, the sensor signal conditioning circuit of voltage analog output comprises the voltage modulate circuit.Referring to Figure 11, the sensor signal conditioning circuit of switching value output comprises level-conversion circuit.
Below multi-sensor information of the present invention being carried out data transmission method is elaborated as follows.
The sensor information of network collection by CAN communication controller and/or signal conditioning circuit input pickup network node device, and is transmitted through the network to the traffic control central computer by network communication controller with handled data, and this method is carried out following steps:
Step 1, the device initialization comprises DSP and related peripheral chip initiation, network communication controller initialization, the initialization of CAN controller;
Step 2, described DSP receives the order that the traffic control central computer sends by described network communication controller, resolves this order, whether carries out sensor data acquisition, if then change next step over to; Otherwise, send query messages or wait and change step 2 over to the traffic control central computer;
Step 3, bus is carried out transfer of data if the order of traffic control central computer is indication CAN, then starts described CAN communication controller and carries out transfer of data; If carry out direct data capture, then start described signal conditioning circuit image data;
Step 4, storage also checks whether the sensing data memory space reaches requirement, if then stop data acquisition, the cleaning internal memory, and change step 6 over to; Otherwise continue operation;
Step 5 is carried out data processing, and described DSP handles the sensing data of being gathered, and the stores processor result;
Step 6 according to the order of traffic control central computer, is carried out transfer of data by described network communication controller to the traffic control central computer with sensor data information;
Step 7 turns back to step 2, waits for data acquisition process next time.
The CAN communication controller carries out the method for transfer of data and is in the embodiment of this method:
A, transmission flow
Step 1, described DSP of initialization and eCAN module thereof comprise:
(1) enable CAN module clock,
(2) CANTX and CANRX are set as CAN communication pin,
(3) configuration bit time configuration register CANBTC,
(4) configuration receives mask register CANGAM,
(5) configuration main control register CANMC,
(6) all positions of removing message control register MSGCTRLn;
Step 2 configuration sends mailbox, comprising:
(1) corresponding position among the clear to send request set register CANTRS;
(2) remove corresponding position among the mailbox enable register CANME, shielding mailbox;
(3) the message flag symbol register MSGID of loading mailbox;
(4) write data length is to the data length code DLC district (MSGCTRL.3~0) of message controlled area register MSGCTRL;
(5) corresponding position is set among the mailbox enable register CANME and enables mailbox.
Step 3 sends message, comprising:
(1) writes message to the corresponding data field that sends mailbox;
(2) the corresponding marker bit initiation message being set in sending request register CANTRS sends;
(3) etc. corresponding mailbox sends the set of response flag bit among the response register CANTA to be sent;
(4) after successfully transmission or termination send, module will send should be mutually of request set register CANTRS and reset;
Step 4 sends and finishes, and returns and calls the place;
B, reception flow process
Described DSP of step 1 initialization and eCAN module thereof comprise:
(1) enable CAN module clock,
(2) CANTX and CANRX are set as CAN communication pin,
(3) configuration bit time configuration register CANBTC,
(4) configuration receives mask register CANGAM,
(5) configuration main control register CANMC;
(6) all positions of removing message control register MSGCTRLn.
Step 2 configuration receives mailbox, comprising:
(1) corresponding positions among the removing mailbox enable register CANME, the shielding mailbox;
(2) write identifier to corresponding message flag register MSGID;
(3) if the reception mask register enable bit AME of message flag register MSGID puts 1, then corresponding the reception shields and must be configured;
(4) mailbox direction register CANMD is set, corresponding mailbox configurations position is received mailbox;
(5), need be configured Coverage Control register CANOPC if data are protected in the mailbox;
(6) corresponding positions among the mailbox enable register CANME is set, enables mailbox.
Step 3 receives message
Inquire about the corresponding positions RMPx that the reception message of corresponding mailbox correspondence hangs up among the register CANRMP and whether put 1, accept data and finish, do not finish as yet, continue inquiry otherwise receive if then show mailbox.
Step 4 receives and finishes, and returns and calls the place.
Referring to Figure 16, in the embodiment of this method, network communication controller carries out transfer of data and carries out following steps:
The described network communication controller of step 1 initialization;
Step 2 detects whether there are the data of automatic network, if having then step 3, otherwise step 7;
Step 3 judges whether it is ARP (Address Resolution Protocol, address resolution protocol) data, if then change the ARP handling procedure over to, continues after finishing; Otherwise step 2;
Step 4 judges whether it is UDP (User Datagram Protocol, User Datagram Protoco (UDP)), if then change the UDP handling procedure over to; Change step 6 after finishing over to; Otherwise step 5;
Step 5 judges whether it is TCP (Transfer Control Protocol, transmission control protocol), if then program changes the TCP handling procedure over to, changes step 6 over to after finishing;
Data after step 6 will be handled are at last sent into described DSP and are handled, and change step 2 over to after finishing;
Step 7 detects described DSP the data that need transmission, then changes step 8 over to if having, otherwise changes step 2 over to;
If step 8 has and selects udp protocol, then handle according to udp protocol, data are sent to the traffic control central computer; Change step 2 then over to, otherwise change step 9 over to;
Whether step 9 is Transmission Control Protocol, if then handle according to Transmission Control Protocol, data is sent to the traffic control central computer, changes step 2 after the transmission over to, otherwise changes step 2 over to.
Road traffic information acquisition sensor network node device of the present invention has following technique effect:
1 has the function of bottom field bus communication and upper layer data network communication: this device can carry out the demanding transfer of data of real-time by the bottom fieldbus, after treatment, transfers to the traffic control central computer through data network.
2 have the transducer of the output of online access analog quantity, switching value output and digital quantity output: this device has comprised present acquisition of road traffic information transducer commonly used such as coil pickoff, microwave remote sensor, sonac, infrared sensor or the like.
3 have online processing capacity: this device can the multi-source heterogeneous sensor information of online processing, can carry out the online zone-to-zone travel state information that obtains, and satisfies needed data type of traffic administration and information characteristics.
4 have the multifunctional virtual sensor function: this device inserts the polymorphic type transducer and can provide comprehensive traffic information through online processing, and from the angle of top level computer system, this installs just as the multifunctional virtual transducer.
The present invention has changed the method for present traffic information collection, and the demand of traffic administration to comprehensive traffic information satisfied in the variation from single, single function transducer to polymorphic type Multifunction Sensor network.Network node has the polymorphic type of access transducer, online processing capacity.Device meets existing communication standard, can be widely used in the acquisition system of existing road transport information.
Above-described embodiment is described preferred implementation of the present invention; be not that scope of the present invention is limited; do not breaking away under the prerequisite that the present invention relates to spirit; various distortion and improvement that the common engineers and technicians in this area make technical scheme of the present invention all should fall in the definite protection range of claims of the present invention.

Claims (10)

1. road traffic information acquisition sensor network node device is characterized in that: comprise digital signal processor DSP and the network communication controller and the CAN communication controller that link to each other respectively with described digital signal processor DSP, wherein:
Described network communication controller is used for carrying out data communication with communication network under described digital signal processor DSP control,
Described CAN communication controller is used for carrying out communication with the device of band CAN interface,
Described digital signal processor DSP is used to finish to described network communication controller, the corresponding control of described CAN communication controller and data processing.
2. road traffic information acquisition sensor network node device according to claim 1 is characterized in that: wherein said network communication controller is made of ethernet controller, isolating transformer, RJ45 interface.
3. road traffic information acquisition sensor network node device according to claim 2, it is characterized in that: wherein said digital signal processor DSP comprises an eCAN control module, described CAN communication controller is by eCAN control module, optical coupling isolator, and the CAN control unit interface constitutes.
4. road traffic information acquisition sensor network node device according to claim 3, it is characterized in that: wherein said digital signal processor DSP is connected with signal conditioning circuit, described signal conditioning circuit is used for the input signal of the transducer of the transducer of the transducer of analog quantity output, switching value output and pulse train output is carried out conversion, to satisfy the requirement of digital signal processor DSP to input signal.
5. road traffic information acquisition sensor network node device according to claim 4, it is characterized in that: wherein said digital signal processor DSP is connected with serial interface circuit, described digital signal processor DSP also comprises a SCI module, described serial interface circuit comprises SCI module, optical coupling isolator, RS232 transceiver, and described serial interface circuit is used for short distance and transmits data and maintenance and debugging section point apparatus.
6. road traffic information acquisition sensor network node device according to claim 5, it is characterized in that: it is the chip of TMS320F2812 that wherein said digital signal processor adopts model, it is the chip of CS8900A that described ethernet controller adopts model, it is HR601627 that described isolating transformer adopts model, it is PCA82C250 that described CAN control unit interface adopts model, described optical coupling isolator model is 6N137, and described RS232 transceiver model is MAX3232.
7. according to the arbitrary described road traffic information acquisition sensor network node device of claim 1-6, it is characterized in that: wherein said network communication controller uses the NTCIP agreement to carry out network communication, and described CAN communication controller uses the CAN agreement to carry out transfer of data.
8. data transmission method that is used for the arbitrary described road traffic information acquisition sensor network node device of claim 1-6, this method inputs to digital signal processor DSP with sensor input signal through CAN communication controller and/or signal conditioning circuit, and the data of digital signal processor DSP being handled by network communication controller transfer to the traffic control central computer by communication network, and it is characterized in that: this method is carried out following steps:
Step 1, the device initialization comprises DSP initialization, network communication controller initialization, the initialization of CAN controller;
Step 2, described DSP receives the order that the traffic control central computer sends by described network communication controller, resolves this order, whether carries out sensor data acquisition, if then change next step over to; Otherwise, send query messages or wait and change step 2 over to the traffic control central computer;
Step 3, bus is carried out transfer of data if the order of traffic control central computer is indication CAN, then starts described CAN communication controller and carries out transfer of data; If carry out direct data capture, then start described signal conditioning circuit image data;
Step 4, storage also checks whether the sensing data memory space reaches requirement, if then stop data acquisition, the cleaning internal memory, and change step 6 over to; Otherwise continue operation;
Step 5 is carried out data processing, and described DSP handles the sensing data of being gathered, and the stores processor result;
Step 6 according to the order of traffic control central computer, is carried out transfer of data by described network communication controller to the traffic control central computer with sensor data information;
Step 7 turns back to step 2, waits for data acquisition process next time.
9. data transmission method according to claim 8 is characterized in that: the step that wherein said CAN communication controller carries out transfer of data is:
A, transmission flow
Step 1, described DSP of initialization and eCAN module thereof comprise:
(1) enable CAN module clock,
(2) CANTX and CANRX are set as CAN communication pin,
(3) configuration bit time configuration register CANBTC,
(4) configuration receives mask register CANGAM,
(5) configuration main control register CANMC,
(6) all positions of removing message control register MSGCTRLn;
Step 2 configuration sends mailbox, comprising:
(1) corresponding position among the clear to send request set register CANTRS;
(2) remove corresponding position among the mailbox enable register CANME, shielding mailbox;
(3) the message flag symbol register MSGID of loading mailbox;
(4) write data length is to the data length code DLC district of message controlled area register MSGCTRL;
(5) corresponding position is set among the mailbox enable register CANME and enables mailbox.
Step 3 sends message, comprising:
(1) writes message to the corresponding data field that sends mailbox;
(2) the corresponding marker bit initiation message being set in sending request register CANTRS sends;
(3) etc. corresponding mailbox sends the set of response flag bit among the response register CANTA to be sent;
(4) after successfully transmission or termination send, module will send should be mutually of request set register CANTRS and reset;
Step 4 sends and finishes, and returns and calls the place;
B, reception flow process
Described DSP of step 1 initialization and eCAN module thereof comprise:
(1) enable CAN module clock,
(2) CANTX and CANRX are set as CAN communication pin,
(3) configuration bit time configuration register CANBTC,
(4) configuration receives mask register CANGAM,
(5) configuration main control register CANMC;
(6) all positions of removing message control register MSGCTRLn.
Step 2 configuration receives mailbox, comprising:
(1) corresponding positions among the removing mailbox enable register CANME, the shielding mailbox;
(2) write identifier to corresponding message flag register MSGID;
(3) if the reception mask register enable bit AME of message flag register MSGID puts 1, then corresponding the reception shields and must be configured;
(4) mailbox direction register CANMD is set, corresponding mailbox configurations position is received mailbox;
(5), need be configured Coverage Control register CANOPC if data are protected in the mailbox;
(6) corresponding positions among the mailbox enable register CANME is set, enables mailbox.
Step 3 receives message
Inquire about the corresponding positions RMPx that the reception message of corresponding mailbox correspondence hangs up among the register CANRMP and whether put 1, accept data and finish, do not finish as yet, continue inquiry otherwise receive if then show mailbox.
Step 4 receives and finishes, and returns and calls the place.
10. according to Claim 8 or 9 described data transmission methods, it is characterized in that: the step that wherein said network communication controller carries out transfer of data is:
The described network communication controller of step 1 initialization;
Step 2 detects whether there are the data of automatic network, if having then step 3, otherwise step 7;
Step 3 judges whether it is the arp address resolution protocol data, if then change the ARP handling procedure over to, continues after finishing; Otherwise step 2;
Step 4 judges whether it is the udp user datagram protocol data, if then change the UDP handling procedure over to; Change step 6 after finishing over to; Otherwise step 5;
Step 5 judges whether it is the tcp transmission control protocol data, if then program changes the TCP handling procedure over to, changes step 6 over to after finishing;
Data after step 6 will be handled are at last sent into described DSP and are handled, and change step 2 over to after finishing;
Step 7 detects described DSP the data that need transmission, then changes step 8 over to if having, otherwise changes step 2 over to;
If step 8 has and selects udp protocol, then handle according to udp protocol, data are sent to the traffic control central computer; Change step 2 then over to, otherwise change step 9 over to;
Whether step 9 is Transmission Control Protocol, if then handle according to Transmission Control Protocol, data is sent to the traffic control central computer, changes step 2 after the transmission over to, otherwise changes step 2 over to.
CN2008100573934A 2008-02-01 2008-02-01 Road traffic information acquisition sensor network node device and data transmission method thereof Expired - Fee Related CN101222400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100573934A CN101222400B (en) 2008-02-01 2008-02-01 Road traffic information acquisition sensor network node device and data transmission method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100573934A CN101222400B (en) 2008-02-01 2008-02-01 Road traffic information acquisition sensor network node device and data transmission method thereof

Publications (2)

Publication Number Publication Date
CN101222400A true CN101222400A (en) 2008-07-16
CN101222400B CN101222400B (en) 2010-09-08

Family

ID=39631990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100573934A Expired - Fee Related CN101222400B (en) 2008-02-01 2008-02-01 Road traffic information acquisition sensor network node device and data transmission method thereof

Country Status (1)

Country Link
CN (1) CN101222400B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483011B (en) * 2009-02-11 2010-11-10 北京交通大学 Sensor network for obtaining urban road traffic state
CN102149225A (en) * 2011-04-28 2011-08-10 北京交通大学 Bullet train state monitoring system and multifunctional hybrid gateway thereof
CN101739822B (en) * 2009-03-11 2012-07-18 北京交通大学 Sensor network configuring method for regional traffic state acquisition
CN103236915A (en) * 2013-04-24 2013-08-07 深圳市极致兴通科技有限公司 Synchronous Ethernet power port module
CN104299428A (en) * 2014-10-13 2015-01-21 安徽科力信息产业有限责任公司 Efficient -communication intelligent traffic signal control system
CN105118314A (en) * 2015-09-27 2015-12-02 电子科技大学中山学院 NTCIP-based instant messaging intelligent traffic guidance screen control system
CN105118315A (en) * 2015-09-27 2015-12-02 电子科技大学中山学院 Intelligent traffic guidance screen control system compatible with NTCIP
CN108255098A (en) * 2017-12-12 2018-07-06 贵州航天控制技术有限公司 Servo mechanism feedback control circuit and CAN bus communication means based on bus
CN109981431A (en) * 2019-03-15 2019-07-05 西安微电子技术研究所 A kind of CAN controller data storage circuitry and date storage method
CN110603786A (en) * 2017-03-08 2019-12-20 罗伯特·博世有限公司 Method for mitigating voltage-based attacks on key agreement over a Control Area Network (CAN)
CN110968964A (en) * 2019-12-24 2020-04-07 交通运输部公路科学研究所 Multi-source traffic sensor-based system observability research method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060265489A1 (en) * 2005-02-01 2006-11-23 Moore James F Disaster management using an enhanced syndication platform
CN2904152Y (en) * 2006-02-13 2007-05-23 同济大学 Multi-source data acquiring system
CN100538761C (en) * 2007-08-27 2009-09-09 北京交通大学 Built-in intelligent fault diagnosing device and method based on the data fusion pattern-recognition

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483011B (en) * 2009-02-11 2010-11-10 北京交通大学 Sensor network for obtaining urban road traffic state
CN101739822B (en) * 2009-03-11 2012-07-18 北京交通大学 Sensor network configuring method for regional traffic state acquisition
CN102149225A (en) * 2011-04-28 2011-08-10 北京交通大学 Bullet train state monitoring system and multifunctional hybrid gateway thereof
CN103236915A (en) * 2013-04-24 2013-08-07 深圳市极致兴通科技有限公司 Synchronous Ethernet power port module
CN103236915B (en) * 2013-04-24 2016-02-10 深圳市极致兴通科技有限公司 Synchronous ethernet electricity mouth module
CN104299428A (en) * 2014-10-13 2015-01-21 安徽科力信息产业有限责任公司 Efficient -communication intelligent traffic signal control system
CN105118315A (en) * 2015-09-27 2015-12-02 电子科技大学中山学院 Intelligent traffic guidance screen control system compatible with NTCIP
CN105118314A (en) * 2015-09-27 2015-12-02 电子科技大学中山学院 NTCIP-based instant messaging intelligent traffic guidance screen control system
CN110603786A (en) * 2017-03-08 2019-12-20 罗伯特·博世有限公司 Method for mitigating voltage-based attacks on key agreement over a Control Area Network (CAN)
CN110603786B (en) * 2017-03-08 2022-01-04 罗伯特·博世有限公司 Method for operation of a node in a communication network
CN108255098A (en) * 2017-12-12 2018-07-06 贵州航天控制技术有限公司 Servo mechanism feedback control circuit and CAN bus communication means based on bus
CN109981431A (en) * 2019-03-15 2019-07-05 西安微电子技术研究所 A kind of CAN controller data storage circuitry and date storage method
CN109981431B (en) * 2019-03-15 2021-09-14 西安微电子技术研究所 CAN bus controller data storage circuit and data storage method
CN110968964A (en) * 2019-12-24 2020-04-07 交通运输部公路科学研究所 Multi-source traffic sensor-based system observability research method
CN110968964B (en) * 2019-12-24 2023-11-17 交通运输部公路科学研究所 Research method for system observability based on multi-source traffic sensor

Also Published As

Publication number Publication date
CN101222400B (en) 2010-09-08

Similar Documents

Publication Publication Date Title
CN101222400B (en) Road traffic information acquisition sensor network node device and data transmission method thereof
CN100568315C (en) The multi-sensor access device of acquisition of road traffic information and data fusion method thereof
CN112671638B (en) Gateway structure for multi-protocol conversion
CN101483011B (en) Sensor network for obtaining urban road traffic state
EP1097409B1 (en) Internet utility interconnect method
CN106683463B (en) A kind of green light phase passage device and its application method based on satellite navigation system
CN108063799A (en) A kind of serial distributed simulation amount airborne data acquisition system
CN101826979A (en) Intelligent home appliance system
CN103338488A (en) Network switching method, terminal, controller, gateway and system
CN103595598A (en) Remote transparent transmission serial server based on fiber and control mode thereof
CN201805556U (en) Information inquiry device, wireless transmission apparatus and MODBUS slave station
CN106657364A (en) Internet of things device and gateway device
CN113115248A (en) High-voltage power transmission equipment on-line monitoring system based on Lora
CN113115346A (en) Gateway multi-protocol conversion device based on 5G and method thereof
CN110708503A (en) Intelligent gateway system of Internet of things
CN109120063B (en) Plug-and-play sensor monitoring method, system and acquisition unit thereof
CN202929101U (en) Data processing device used for electric energy meter and electric gatherer
CN104967657A (en) Internet of things system and realization method thereof
CN102096992A (en) OPC communication-based energy consumption monitoring system and building method thereof
CN209590631U (en) Data acquisition device and system based on bluetooth Mesh network
CN110336825A (en) A kind of multiprotocol network fusion method and device based on IPv6 gateway
CN108737550A (en) A kind of robot interface's device and robot based on robot centralized control system
CN202998504U (en) Multifunctional wireless control intelligent gateway
CN105182807B (en) A kind of data processing method of the data acquisition processing system based on 3G network
CN209070718U (en) Water meter data collecting equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100908

Termination date: 20140201