CN207083121U - A kind of networking of wired sensor network - Google Patents

A kind of networking of wired sensor network Download PDF

Info

Publication number
CN207083121U
CN207083121U CN201721134938.8U CN201721134938U CN207083121U CN 207083121 U CN207083121 U CN 207083121U CN 201721134938 U CN201721134938 U CN 201721134938U CN 207083121 U CN207083121 U CN 207083121U
Authority
CN
China
Prior art keywords
data
node
networking
sensor network
mcu
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.)
Expired - Fee Related
Application number
CN201721134938.8U
Other languages
Chinese (zh)
Inventor
马英楠
高星
骆腾亮
赵鹏霞
米丰瑞
白鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING RESEARCH CENTER OF URBAN SYSTEM ENGINEERING
Original Assignee
BEIJING RESEARCH CENTER OF URBAN SYSTEM ENGINEERING
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 RESEARCH CENTER OF URBAN SYSTEM ENGINEERING filed Critical BEIJING RESEARCH CENTER OF URBAN SYSTEM ENGINEERING
Priority to CN201721134938.8U priority Critical patent/CN207083121U/en
Application granted granted Critical
Publication of CN207083121U publication Critical patent/CN207083121U/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The utility model discloses a kind of networking of wired sensor network, by node autonomous exploration upstream and downstream node, organizes network, avoids manual input device number to organize network;In addition, the method for real-time data transmission, reduces the pressure brought of the delay and data concentration of transmissions of data to host computer;Carry out the integrality and reliability for the data that the mode of data storage ensures using chained list;The transmission of data is to transmit host computer request of data by upstream node in network, and the node sends the requests to next node again, and transmits the data of collection upwards;Such a method avoids each node of manual identification, improves the efficiency of networking;Node just transmits data when receiving request of data upwards, avoids and converges to finish node and concentrate situation about uploading, improves the real-time of system, by the reliability for DMA and the idle utilization interrupted, improving system data transmission.

Description

A kind of networking of wired sensor network
Technical field
A kind of networking is the utility model is related to, specially a kind of networking of wired sensor network, belongs to electric signal measurement With analysis technical field.
Background technology
With the continuous development of informationization, also there is a variety of, current sensor network master in the mode of sensor network transmission Data are wirelessly organized and transmit, its is convenient, flexible, and distributed areas are wide, but its presence is easily disturbed, loses number The shortcomings of according to bag;The problem of mode of wire transmission can avoid wireless transmission method from existing, its implementation can utilize string Mouth and other method are realized.
Prior art:Patent《A kind of MEMS inertial sensor network node and network transmission mode》Utilize serial ports Mode realizes wire transmission;Its data acquisition node realizes the wired connection of serial ports using two serial interfaces, one of them Interface is connected thereto trip node, and another connects node downstream;The most important feature of the program is, in the institute of this series connection Have in node, first node requires connect to host computer, and last node is also required to be connected on host computer, final to realize One loop configuration;So, host computer sends request of data equivalent to the driving center of loop configuration to first node, The data transfer of request and first node gives second node, with this downwards, when reaching last node, directly utilizes Another interface of host computer is sent to host computer, realizes cycling through for data;
Patent《A kind of wired sensor network construction system and method》Data are realized using RJ45 Ethernet interfaces Wire transmission.Its data acquisition node utilizes the upstream and downstream of two RJ45 interfaces, respectively connecting node, realizes wired company of node Connect;System identification each sensor of being mainly characterized by of the program is by the unique encodings in equipment, and this coding obtains Must be obtained by the code tag outside handheld device scanning sensor.Afterwards again in systems by each data with passing The Data Matching of sensor collection is with the source of identification data.
But the Data Over Cable resolving pressure used at present is big;When sensor distributed quantity is more, host computer one It is secondary to have received all the sensors data, when each node data is required for complicated algorithm to parse, will be caused to host computer compared with Big pressure;Data delay is longer;Because data in final node just upload the data of first node together, this for For first node, the delay for the increasing having resulted in, when the higher real-time of system requirements;Identification for data needs The unique EIC equipment identification code of each node is relied on, and the two-dimension code label on scan node that is obtained by of the identification code obtains, Then device code and data are bound together in host computer;When number of nodes is excessive, the process of networking will be extremely cumbersome, Reduce the efficiency of overall networking.
Utility model content
The purpose of this utility model is that to solve the above problems and provides a kind of networking of wired sensor network.
The utility model is achieved through the following technical solutions above-mentioned purpose, a kind of networking of wired sensor network, bag Include MCU, the MCU connections MAX1759, and MAX1759 connection CELL and USB interface 2;The CELL connections TP-4056, And the TP-4056 is connected with the USB interface 2;The USB interface 2 connects CP2102, and described in CP2102 connections MCU;The MCU is connected with firmware download interface;The CP2102 is provided with two, one of CP2102 connections usb 1.
Preferably, the USB interface 2 is used to communicate with father node, including receives the order of father node and sent out to father node Send data.
Preferably, the usb 1 is used to send order to child node and receives the data of child node.
Preferably, data, direct memory access data are transmitted by the way of DAM and the idle interruption of serial ports when transmitting data And store, periphery and internal memory, internal memory and internal memory directly transmit, and when the data transfer is complete, serial ports can send out a serial ports free time Interrupt;This interruption can when Serial Port Transmission is completed, i.e., by it is busy switch to the free time when trigger, but in the in general serial ports free time It can't trigger.
Preferably, for the MCU data processors by the way of linked queue, Head nodes are the head node of queue, Include two pointers and an integer variable;Two pointer variable clocks point to head and the afterbody of queue, integer variable record The length of queue, when reading a new data, program can apply for the space of a back end, and data duplication is entered Space, and node is added into queue, and the space of first node is discharged, ensure the length of queue;When wireless interrupt needs When reading data, the data of intermediate node are returned all the time.
The beneficial effects of the utility model are:The utility model organizes network by node autonomous exploration upstream and downstream node, Manual input device number is avoided to organize network;In addition, the method for real-time data transmission, delay and the data of data are reduced The pressure brought of the concentration of transmissions to host computer;Carry out the integrality of the data that the mode of data storage ensures and reliable using chained list Property;The transmission of data is to transmit host computer request of data by upstream node in network, and the node sends the requests to next again Individual node, and the data of collection are transmitted upwards;Such a method avoids each node of manual identification, improves the efficiency of networking; Meanwhile node just transmits data when receiving request of data upwards, avoid and converge to the feelings that finish node concentrates upload Condition, the real-time of system is improved, the chip that main control module uses is the wireless of reliable stabilization for STM32F407VGT6 Sensor network program and realize that data high-speed real-time storage provides quick computing and disposal ability, master control is built-in Jtag interface, can be downloaded and debugging routine by firmware download interface;The chip that USB turns serial port module is CP2102, uses it The RS232 agreements of the USART interfaces of sensor network nodes and the level conversion and Control on Communication of USB2.0 agreements can be completed Work;By to DMA and the idle utilization interrupted, it is possible to achieve the transmission of cable data, improve system data transmission Reliability;In addition as the alternative scheme being wirelessly transferred, it has more preferable jamproof performance.
Brief description of the drawings
Fig. 1 is sensor network nodes hardware system block diagram provided by the utility model;
Fig. 2 is wired networking schematic diagram provided by the utility model;
Fig. 3 is wired networking DFD provided by the utility model;
Fig. 4 is sensing data flow graph provided by the utility model;
Fig. 5 is node procedure flow chart provided by the utility model;
Fig. 6 is chained list organization chart provided by the utility model;
Fig. 7 is chained list interpolation data figure provided by the utility model.
Embodiment
Below in conjunction with the accompanying drawing in the utility model embodiment, the technical scheme in the embodiment of the utility model is carried out Clearly and completely describing, it is clear that described embodiment is only the utility model part of the embodiment, rather than whole Embodiment.Based on the embodiment in the utility model, those of ordinary skill in the art are not under the premise of creative work is made The every other embodiment obtained, belong to the scope of the utility model protection.
Refer to shown in Fig. 1-7, a kind of networking of wired sensor network, including MCU, the MCU connections MAX1759, And the MAX1759 connection CELL and USB interface 2;The CELL connections TP-4056, and the TP-4056 and USB connects Mouth 2 connects;The USB interface 2 connects CP2102, and the CP2102 connections MCU;The MCU is connected with firmware download Interface;The CP2102 is provided with two, one of CP2102 connections usb 1.
A kind of method of the data transfer of the networking of wired sensor network, its method and step include:
Step 1: node connects, first the USB interface 2 of hardware is used to be connected with father node;The usb 1 of hardware in Child node connects, and is sequentially connected, to the last a node;
Step 2: debugging routine, inputs program, and debugging routine in firmware download interface, sets the USB of each node The father node of interface 2, usb 1 are child node;
Step 3: host computer sends networking request, number is transmitted by the way of DAM and the idle interruption of serial ports when transmitting data According to;After first node receives the order of host computer, mark is father node in the program of oneself, and replys father's section Child node be present in point, i.e. host computer, host computer mark;Then first node sends another string of networking commands to oneself Mouthful, after its child node receives networking commands, there is father node in mark, and reply father node;Then it is again to it another Serial ports sends networking commands, the like, to the last a node terminates networking after waiting its child node to reply time-out;
Data are passed to by step 4, data processing, father node from USB interface 2, by main control module MCU processing, and are replied Child node be present in father node, i.e. host computer, host computer mark;Then first node sends commands to another string of oneself Mouthful, data are from firmware download interface downloading data.
In order to improve stability, hardware includes main control module, firmware download interface, usb 1, USB interface 2, turn string Mouth mold block, TP-4056 power management chips, CELL batteries, MAX-1759 voltage stabilizing chips, it is described turn serial port module chip be CP2102, the chip that the main control module uses is STM32F407VGT6.
In order to prevent that transmission time is long, the wire transmission mode of data transmits data using usb 1, USB interface 2; Wherein USB interface 2 is used to communicate with father node, including receives the order of father node and send data to father node;Usb 1 For sending order to child node and receiving the data of child node.
In order to prevent serial ports receives from interrupting loss of data, passed when transmitting data by the way of DAM and the idle interruption of serial ports Transmission of data, direct memory access (DMA) data and is stored, and periphery and internal memory, internal memory and internal memory directly transmit, and work as data transfer During completion, serial ports can send out the idle interruption of a serial ports;This interruption can switch to the free time when Serial Port Transmission is completed by busy When trigger, but can't be triggered in the in general serial ports free time.
In order to ensure to need to ensure the integrality of data, the MCU data processors by the way of linked queue, Head nodes are the head node of queue, include two pointers and an integer variable;Two pointer variable clocks point to queue Head and afterbody, integer variable record the length of queue, and when reading a new data, program can apply for a data section The space of point, data duplication is entered into space, and node is added into queue, and discharge the space of first node, ensure team The length of row;When wireless interruption needs to read data, the data of intermediate node are returned all the time.
It is obvious to a person skilled in the art that the utility model is not limited to the details of above-mentioned one exemplary embodiment, and And in the case of without departing substantially from spirit or essential attributes of the present utility model, it can realize that this practicality is new in other specific forms Type.Therefore, no matter from the point of view of which point, embodiment all should be regarded as exemplary, and is nonrestrictive, this practicality is new The scope of type limits by appended claims rather than described above, it is intended that the equivalency fallen in claim is contained All changes in justice and scope are included in the utility model.Any reference in claim should not be considered as limitation Involved claim.
Moreover, it will be appreciated that although the present specification is described in terms of embodiments, not each embodiment is only wrapped Containing an independent technical scheme, this narrating mode of specification is only that those skilled in the art should for clarity Using specification as an entirety, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art It is appreciated that other embodiment.

Claims (5)

1. a kind of networking of wired sensor network, including MCU, it is characterised in that the MCU connections MAX1759, and it is described MAX1759 connection CELL and USB interface 2;The CELL connections TP-4056, and the TP-4056 connects with the USB interface 2 Connect;The USB interface 2 connects CP2102, and the CP2102 connections MCU;The MCU is connected with firmware download interface; The CP2102 is provided with two, one of CP2102 connections usb 1.
2. the networking of wired sensor network according to claim 1, it is characterised in that the USB interface 2 is used for and father Node communication, including receive the order of father node and send data to father node.
3. the networking of wired sensor network according to claim 1, it is characterised in that the usb 1 is used for son Node sends order and receives the data of child node.
4. the networking of wired sensor network according to claim 1, it is characterised in that during transmission data using DAM and The idle mode interrupted of serial ports transmits data.
5. the networking of wired sensor network according to claim 1, it is characterised in that the MCU data processors By the way of linked queue, Head nodes are the head node of queue, include two pointers and an integer variable;Two pointers Variable clock points to the head of queue and afterbody, integer variable record the length of queue.
CN201721134938.8U 2017-09-06 2017-09-06 A kind of networking of wired sensor network Expired - Fee Related CN207083121U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201721134938.8U CN207083121U (en) 2017-09-06 2017-09-06 A kind of networking of wired sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201721134938.8U CN207083121U (en) 2017-09-06 2017-09-06 A kind of networking of wired sensor network

Publications (1)

Publication Number Publication Date
CN207083121U true CN207083121U (en) 2018-03-09

Family

ID=61419373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201721134938.8U Expired - Fee Related CN207083121U (en) 2017-09-06 2017-09-06 A kind of networking of wired sensor network

Country Status (1)

Country Link
CN (1) CN207083121U (en)

Similar Documents

Publication Publication Date Title
CN101742959B (en) Wireless patient monitoring
CN103150144B (en) For the method and system that the group performance agreement in parallel computer is selected
CN104267707A (en) Environmental data multi-point real-time collecting system
CN103595456A (en) Method for achieving multimedia sensor network data transmission system
CN102156680B (en) The host apparatus of multiple connector and transmission data method and agreement selecting arrangement
CN107908587A (en) Real-time data acquisition transmitting device based on USB3.0
CN203328690U (en) ZigBee-based plug-in type wireless medical monitor
CN108199867A (en) A kind of network-building method and data transmission method of wired sensor network
CN104915906A (en) Information sensing system and realization method for family-oriented health service
CN102937944B (en) A kind of based on Arcnet serial server
CN202309736U (en) Intelligent terminal of Internet of things
CN201839449U (en) Body sensor network expanding device with mobile intelligent terminal
CN207083121U (en) A kind of networking of wired sensor network
CN107612986A (en) A kind of networking of wired sensor network and the method for data transfer
CN102348295A (en) System based on wireless data acquisition and networking method thereof
CN102156618B (en) Memory device with multiple connectors and method for transmitting data
CN202856998U (en) Wireless illumination photometer
CN204667611U (en) A kind of farm field data remote supervision system
CN104091433B (en) A kind of Digital Oscillograph data radio transmission system and method based on RFID
CN206773708U (en) Intelligent traditional Chinese medical science detection information shared system
CN202721882U (en) Street lamp control system based on Internet of things
CN205158050U (en) Record system is borrowed to computer books based on singlechip
CN205451459U (en) Miniature modularization wireless transmission's industry collector
CN101464844A (en) Control method and bus interface of RAM use right
CN203151552U (en) Family health detection product communication system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180309

Termination date: 20180906