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

CN104219247A - Method for accessing IP network to wireless multimedia sensor network - Google Patents

Method for accessing IP network to wireless multimedia sensor network Download PDF

Info

Publication number
CN104219247A
CN104219247A CN201410486749.1A CN201410486749A CN104219247A CN 104219247 A CN104219247 A CN 104219247A CN 201410486749 A CN201410486749 A CN 201410486749A CN 104219247 A CN104219247 A CN 104219247A
Authority
CN
China
Prior art keywords
data
network
packet
sensor network
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410486749.1A
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.)
Shanghai Institute of Microsystem and Information Technology of CAS
Original Assignee
Shanghai Institute of Microsystem and Information Technology of CAS
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 Shanghai Institute of Microsystem and Information Technology of CAS filed Critical Shanghai Institute of Microsystem and Information Technology of CAS
Priority to CN201410486749.1A priority Critical patent/CN104219247A/en
Publication of CN104219247A publication Critical patent/CN104219247A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a method for processing an IP network to a wireless multimedia sensor network. The method is characterized in that the virtual gateway mode is utilized to access the wireless multimedia sensor network to the IP network; the virtual gateway obey that the wireless multimedia sensor network can be accessed through the application program of SOCKET network programming code; the virtual gateway is capable of dynamically loading to convert IP data and multimedia sensor network protocol data on different operation platforms and is corresponding to a network driving program of an operation system. According to the method, a virtual gateway middleware is developed to solve the problem of transparent transmission of data of the wireless multimedia sensor network and the IP network and the problem of poor transferability and universality of the application program of the wireless multimedia sensor network.

Description

A kind of method of wireless multimedia sensor network access IP network
Technical field
The present invention relates to wireless multimedia sensor network and access the problem of other networks as IP network, can be used for the wireless multimedia sensor network system running proprietary protocol, belong to areas of information technology.
Background technology
Along with the development of wireless sensor network technology, the type of data packet transmitted in a network has developed into the packet of multiple media types gradually from more single packet, application program also becomes large gradually to the demand of data, the form that existing web application directly accesses wireless network card data can not meet the needs of exploitation, how to make IP packet " transparent transmission " wireless multimedia sensor network, how to increase the transplantability of application, how significantly to alleviate the burden of developer, become in wireless multimedia sensor network the problem needing to solve.
The trend of network field IPization, have influence on wireless multimedia sensor network equally, but due to the multiple services feature of wireless multimedia sensor network, need transmission of video, image, voice, the data of the different service types such as data, consider the environment of wireless channel, corresponding procotol also will be adapted to the feature of wireless multimedia sensor network, general IP network agreement is not suitable for wireless multimedia sensor network, but, wireless multimedia sensor network also needs to be linked into IP network, therefore, just need to provide a kind of method and mechanism to complete this function.
The access to netwoks API of wireless multimedia sensor network existence self, but, in common network programming, general is all adopt SOCKET specification programmed method to visit network, and in order to increase portability and the standardization of application program, application program need not be revised namely can accesses network resource, also in order to reduce Develop Application System difficulty, better complete wireless sensor network and be linked into IP network, so, need a set of standardized method to realize above-mentioned functions.
In prior art, IP network packet directly can not arrive wireless multimedia sensor node, the method that wireless multimedia sensor network realizes IPization can be directly on wireless network card, build IP network protocol stack, like this, a wireless network card is an IP network node, but, the feature of wireless multimedia sensor network makes it adopt in this way and improper, wireless multimedia sensor network node communication has run the agreement being different from IP network, the packet of IP form can not identify by wireless multimedia sensor network, therefore, have impact on the compatibility of network, can not realize interconnecting with the IP network be most widely used, this becomes a defect of wireless multimedia sensor network, another method realizing wireless multimedia sensor network access IP network adopts gateway device [CN.200910033224.1, Sun Lijuan etc. " interconnected method of wireless multimedia sensor network and wireless local area network Internet ".], development agreement translation function on original basis, realize IP data and arrive wireless multimedia sensor network node, but this mode needs to increase extra hardware device, need, specially for the exploitation of this gateway device is different from the program of wireless multimedia sensor network node, to increase the input on time and cost.Original wireless multimedia sensor network realizes IPization and there is above-described problem.
In process of application development, original technology adopts the distinctive API of wireless sensor network to carry out access to netwoks, so just bring difficulty to the concurrent development in development process, Application developer must wait for that structure that wireless network card firmware development personnel complete protocol stack just can carry out the exploitation of network portion later, the nonstandardized technique of the api function of access to netwoks simultaneously, difficulty is brought to the transplantability of application program and versatility, when latticed form changes, application program also just fails, Application developer carries out new exploitation for new latticed form, reduce operating efficiency, the duplication of labour, therefore, this also become wireless multimedia sensor network can not with a weak point of SOCKET network programming specification compatibility.
In order to overcome the deficiency in prior art, therefore, the application intends a kind of access of the wireless multimedia sensor network based on virtual gateway of exploitation IP network middleware, achieves protocol conversion, wireless multimedia sensor network is integrated in IP network.
Summary of the invention
A kind of wireless multimedia sensor network is the object of the present invention is to provide to access the method for IP network, the present invention is based on wireless multimedia sensor network form, build a kind of virtual gateway based on operating system platform, described virtual gateway can make IP packet " transparent transmission " wireless multimedia sensor network at software view, and the network topology structure figure of whole scheme can describe as Fig. 1.
In FIG, multi-medium data comprises video, image, voice, data are transmitted in by the wireless multimedia sensor network that wireless network card is formed, and its network topology structure can be various ways, such as star-like, net type, tree-like etc.PC and handheld device run IP network protocol stack, operating system internal delivery be the form of IP packet, the data format transmitted in wireless network card is the protocol package form of wireless multimedia sensor network, can " transparent transmission " wireless multimedia sensor network in order to realize IP packet, Develop Application System is made to have versatility, need to build virtual gateway on PC and handheld device, be used for the conversion of agreement.Hierarchical chart residing for this virtual gateway is as shown in Figure 2:
Virtual gateway is mainly present in PC and handheld device, application program is positioned at the superiors, and SOCKET specification is deferred in writing of application program, that is, had virtual gateway, the application program deferring to SOCKET network programming specification just can access this wireless multimedia sensor network.Application program realizes network application, has good transplantability, when change latticed form time, application program need hardly to make a change just can continue use, improve the versatility of application program and cross-platform characteristic.
Operating system aspect is responsible for the interface between application program and operating system, be application program and operating system API is provided, comprise SOCKET API, operating system internal maintenance IP stack, when relating to concrete latticed form, just carry out data interaction downwards by the form of network driver, virtual gateway is here concerning the network driver can regarding respective operations system operating system as.
Virtual gateway specifically realizes at software view, when data arrive virtual gateway from application program through operating system, the form of its particularly IP packet, in order to allow wireless multimedia sensor network node recognition IP packet, need to analyze IP data packet head, convert to corresponding to the data packet format in wireless multimedia sensor network, its data packet head has identical meaning.When the length of IP packet is very long, virtual gateway also will complete the Fragmentation of packet, simultaneously, data payload is also copied and enters new packet, like this, just complete the conversion of IP packet wireless multimedia sensor network data bag from top to bottom, achieve the transparent transmission of IP packet; When data are sent to virtual gateway from wireless network card driving from the bottom up, virtual gateway is responsible for the data packet format in wireless multimedia sensor network to be converted to can by the Standard IP data bag of IP network identification, simultaneously, according to the flag bit in wireless multimedia sensor network packet header, judge whether the operation that packages, finally, virtual gateway upwards passes to operating system the IP packet obtained, and then passes to application program.
WLAN Device Driver is specifically responsible for driving wireless network card, mainly to the operation of hardware, carries out data interaction with wireless network card, and wireless network card is specifically responsible for the skyborne wireless multimedia sensor network data of transmitting-receiving, completes transfer of data.
The specific implementation framework of virtual gateway as shown in Figure 3, the downlink of virtual gateway is the data first issuing IP form from operating system, data can issue data receiver queue stored in operating system, in queue, a reception event or semaphore can be there is, indicate that this queue exists data, datacycle distributes thread 1 and waits for this event, when this occurs, when namely there are data in queue, this datacycle distributes thread 1 and brings into operation, and the operating system data issued in data receiver queue are transported in wireless network card driving data transmit queue, and complete the operation of burst in this process, whether burst is determine according to the MTU in two heterogeneous networks, herein, wireless sensor network MTU is confined to the restriction of physical condition, the MTU of IP bag is greater than the MTU value in wireless multimedia sensor network, therefore, need the data length checking IP bag, if IP packet length is greater than wireless multimedia sensor network MTU, then carry out burst, if be less than, then do not carry out any operation, be directly transported to wireless network card driving data transmit queue.Stored in wireless network card driving data transmit queue after data fragmentation after burst.There is action listener mechanism equally in wireless network card driving data transmit queue, when data arrive, circulation distributes thread 2 and runs, and data are taken out from wireless network card driving data transmit queue, driven by wireless network card and data are sent to wireless network card, and then sent by antenna.
Virtual gateway to uplink for from wireless network card drive receive data after, these data are data of wireless multimedia sensor network form, receive watcher thread 1 to be responsible for data to be transported to wireless network card driving data receiving queue from wireless network card, there is event or semaphore equally in corresponding queue, internal data buffer thread of joining the team is started working, first it carry out burst whether judgement according to the flag bit in packet header, if there is no burst, then direct stored in the queue of IP data receiver, if fragment data, then stored in internal data buffer queue, often arrive a burst, then stored in the buffer structure that burst is corresponding, after all bursts arrive, check that thread can detect that all bursts receive, at this one-phase, the packet completing wireless multimedia sensor network form is converted to the process of IP formatted data bag, after completing group bag, arrange corresponding event to be used for starting reception watcher thread 2, data stored in the queue of IP data receiver, if because the reason of wireless multimedia sensor network channel or other reasons cause packet loss, fragment data can not all be received, data can be deposited in buffer queue always, if when channel is very bad, the situation that buffer queue is full can be caused, at this moment, a time-out check thread can be there is, corresponding timeouts is set, also all burst is not received after the time overstepping the time limit of bag corresponding in buffer queue, then overtime thread can clear up the corresponding data structure of buffer queue, and the reliability of transfer of data is safeguarded by upper strata.After the queue of IP data receiver receives data, by arranging reception event or semaphore, start wait for this event or semaphore submit operating system data thread, be used for IP data from IP data receiver queue submitting to operating system.
In sum, in general independent development wireless multimedia sensor network, due to the private ownership of wireless multimedia sensor network agreement, make IP network packet directly can not arrive wireless sensor network node, the network of IPization is not entered in wireless multimedia sensor network access.The invention provides the method for a kind of wireless multimedia sensor network access IP network.
Under there is something special, run proprietary protocol between wireless multimedia sensor network node, IP network packet directly can not arrive wireless multimedia sensor node; The SOCKET program norm generally used in an ip network is no longer applicable herein, application program wants accesses network, need self-developing network interface API, add burden so not only to wireless network card firmware development person, also add burden to Application developer, in practical situations both, because the private ownership of network interface API simultaneously, incompatible IP network, application program does not have good transplantability.The present invention is on the basis of prior art, by development of virtual gateway middleware, makes the packet in IP network can arrive wireless multimedia sensor network node; Application program directly can pass through SOCKET program norm accesses network node, thus alleviates the burden of Application developer, is a kind of method running the wireless multimedia sensor network access IP network of private network agreement.
The present invention is on the basis of prior art, development of virtual gateway middleware, solve the problem of the problem of wireless multimedia sensor network IP network data transparent transmission and wireless multimedia sensor network application migration, poor universality, mainly have the following advantages:
1. wireless multimedia sensor network access IP network adopts the mode of virtual gateway, namely adopts the mode of software and non-hardware to realize.This virtual gateway can dynamic load in different operating system platforms, completes the conversion of IP data and wireless multimedia sensor network protocol data;
2. by the form of virtual gateway, make to adopt the application program of SOCKET program norm not need change just can access wireless multimedia sensor network, make application program have versatility and transplantability;
3. by virtual gateway, ip network number, can directly by IP address access wireless multimedia sensor network node according to can transparent transmission wireless multimedia sensor network;
4. do not need to increase extra gateway hardware equipment, only need, by virtual dynamic load gateway middleware, just can realize the conversion of agreement between heterogeneous networks;
5. do not need extra hardware device and on the wireless sensor network node of resource-constrained, build complicated IP stack, make the packet in IP network can arrive wireless multimedia sensor network node;
6. application program can by SOCKET program norm access wireless sensor network node, avoid the wireless multimedia sensor network access API developing private network agreement, alleviate the burden of Application developer, add standard and the transplantability of program development.
Accompanying drawing explanation
The network topology structure figure of the whole scheme of Fig. 1;
Fig. 2 virtual gateway place hierarchical chart;
Fig. 3 virtual gateway realize framework;
Virtual gateway hierarchical chart under Fig. 4 Window system;
Fig. 5 divides packet procedures;
Fig. 6 group packet procedures related data structures schematic diagram;
Fig. 7 group packet procedures.
Embodiment
Below, substantive distinguishing features of the present invention and significant progress is set forth further by embodiment.But the present invention is only confined to by no means the embodiment introduced.
In concrete enforcement, platform is mainly PC and handheld device, runs Windows operating system, handheld device runs Windows CE, be described in detail specific embodiment for PC.Its concrete level Organization Chart as shown in Figure 4.
Defer to the application call Windows API of SOCKET specification, data enter operating system from APP, Windows operating system safeguards an IP stack, and NDIS interface is externally provided, to be used for the physical network card of adaptive heterogeneous networks form, here, virtual gateway is implemented in NDIS lower floor, be used for obtaining the IP packet that gets off from operating system transmission, at virtual gateway, IP packet completes point packet procedures and is converted into the data of wireless multimedia sensor network form, the wireless multimedia sensor network data obtained from wireless network card completes group packet procedures here and this data packet format is converted to the form of IP network packet, complete the conversion of agreement.Wireless network card Stream Drivers is used for driving wireless network card, namely transmits the radio communication plate of wireless multimedia sensor network data, and under Windows architecture, the general method adopting stream to drive is developed.
In the application program aspect of Windows Development System, mainly exploitation meets the application program of SOCKET network program specification, its development language can adopt C/C++, the development language that java etc. are different is developed, these application programs are all finally realize the mutual of application program and operating system by calling Window operating system API, although Windows with Wince operating system realizes not identical in operating system nucleus, but its operating system interface being supplied to application program is identical substantially, the SOCKET network standard is a group network API in the form of expression of Windows operating system, like this, application program and operating system just can complete the mutual of data, application program can pass to Windows operating system data, Windows operating system also can pass to application program data.
Windows, Wince operating system safeguards an IP stack, such as achieve tcp state machine in transport layer aspect, achieve the agreements such as UDP, IP, be supplied to the network driver interface of an outside NDIS, be used for adapting to different communication network cards, a unified structure is achieved in operating system aspect, according to the difference arranged, data finally flow to different physical network cards, here, data have flowed to by the NDIS interface that operating system provides the wireless sensor network radio communication network interface card running proprietary protocol.
NDIS interface provides the functions such as Microsoft Loopback Adapter registration, unloading, can ensure virtual gateway identify by operating system, NDIS serves the function formed a connecting link, to on as the interface of operating system, to under can carry out data interaction with virtual gateway, NDIS interface is also the interface that operating system provides, here in virtual gateway by calling NDIS interface function, copies data virtual gateway can be entered into from operating system, also from virtual gateway, copies data to operating system, thus data interaction and flowing can be completed.
In virtual gateway, its specific implementation framework as shown in Figure 3, in Windows operating system system, employing C language is developed, can be compile in BSP bag under Wince environment, also can compile in APP SDK, the option of compiling will carry out careful setting and can realize.There is corresponding event and thread in each queue of virtual gateway, whether event is used for mark mark has data to enter into queue, and the generation of thread waits event also performs, and finally completes data submitting layer by layer in different levels.
In virtual gateway realizes, needed the process of the subpackage of IP packet and group bag, the detailed process of subpackage as
Shown in Fig. 5, in the process of subpackage, the information in IP packet header is converted into the header packet information in wireless multimedia sensor network, in this process, has carried out Header compression, but has not lost effective information.Data payload has then been divided in each fragment packets, and data are only make simple copy.In the process of subpackage, first, not burst, burst first packet, burst tundish, burst end handbag flag bit are set in wireless multimedia sensor network packet header, burst side-play amount is set in the header, Packet Identifier (ID) is set, carried IP handbag type identification is set.Then, the IP header packet information carried in wireless multimedia sensor network bag is set, comprise other information in IP destination address, raw address and IP head, if at the same network segment, then can use short address form, whether can be arranged at the mark of the same network segment in the IP handbag type identification in wireless multimedia sensor network packet header.Other information in IP head can be compressed in wireless multimedia sensor network packet format.The object of compression is the ratio in order to increase useful data transmission, reduces the waste of resource.Finally, UDP, TCP, ICMP are set and wrap in field in wireless multimedia sensor network bag, comprise port information etc.The load of data field then needs the detailed position calculating needs segmentation, data payload is split, be filled in first packet, tundish and Mo Bao, certainly, if length is not too large, Data Segmentation is only divided into two panels, then final only can exist first packet and Mo Bao, length long enough, then have multiple tundish and occur, the length of Data Segmentation has been just not only also two panels.
Group packet procedures as shown in Figure 7, in group packet procedures, its data structure as shown in Figure 6, intuitively, be a two-dimensional chain table, from laterally, which constitute a chained list, the representative of each subpackage management data structures can process an IP bag, the length representative of the chained list number of its IP bag processed.A packet ID can be there is and be used for identifying different IP packets in each IP packet, as subpackage managerial structure in Fig. 6, there is packet ID record in its inside, be used for representing an IP bag, the corresponding information that this data structure storage has IP to wrap, its filling is filled by the wireless multimedia sensor network data burst packet header constantly received, specifically the packet header of first bag is filled, below it, the chained list of carry just represents the wireless multimedia sensor network burst that this IP all wrap split one-tenth, along with the continuous arrival of data, corresponding burst finds the position in this chained list according to its side-play amount and inserts, after being received etc. all subpackages, just the reception watcher thread 2 be similar in Fig. 3 can be started, complete the anabolic process of subpackage, in whole process, check that thread has constantly checked whether, to be used for guaranteeing the startup organizing packet procedures.Time-out check is according to the timeout flag in subpackage managerial structure, be used for judging whether all fragment datas of an IP bag within the scope of certain hour all receive, if do not had, then can clean out, discharge the resource shared by it, avoid occurring that some incomplete IP bags take the situation of resource, if packet loss phenomenon is serious always, then can consume a large amount of resource of receiver, namely time-out check has been this function.
In an IP packet fragmentation chained list, there is memory management structure, it is first packet, tundish or end bag that flag bit wherein can be used for differentiation, and these flag bits play an important role in judging that whether data are complete and namely having checked whether.As shown in FIG., data fragmentation is order, and whole chained list is dynamic construction, considers in the process sent, fragment data may not be that order sends, namely it is out of order for being defaulted as, after data fragmentation arrives, according to the flag bit in packet header, judge first packet, Mo Bao and side-play amount, thus find this burst position in this chained list, ensure that the correctness of fragment data order, decrease the burden in group packet procedures.This memory management structure points to load data, the data field of the merging composition IP packet of these data.
Group packet procedures as shown in Figure 7, group packet procedures is fill IP packet header according to the packet header content of first bag, and wireless multimedia sensor network burst first packet provides the effective information of IP packet, in this process, the information of compression will restore, and completes the filling in IP packet header.The process of reduction is the inverse process of point packet procedures, according to the corresponding relation that different network protocol in point packet procedures is formed, restores in the process of group bag.Data field in IP bag carries out Copy Merged by each fragment data, and it needs constantly to calculate IP bag data field copy targeting address in the process of Copy Merged, prevents makeing mistakes of data assembling, finally completes the assembling of data field, complete group packet procedures.
After virtual gateway completes, need to develop WLAN Device Driver, be used for driving wireless multimedia sensor network network interface card, in Windows operating system system, spi bus can be adopted to carry out communicating of processor and wireless multimedia sensor network network interface card, therefore, driver can adopt Windows to flow driving and develop, virtual gateway is by this driving, wireless multimedia sensor network bag is sent to wireless multimedia sensor network network interface card, and then data are gone out by radio transmitting, same, after wireless multimedia sensor network network interface card receives data, virtual gateway is consigned to by this driving, realize the transmission of the mutual of data and information.
Finally, below the full name of the english abbreviation related in present specification and Chinese translation are summarized in, in order to avoid cause ambiguity.
IP Internet Protocol Internet Protocol
API Application Programming Interface application programming interfaces
MTU Maximum Transmission Unit MTU
PC Personal Computer personal computer
NDIS Network Driver Interface Specification NDIS
Wince Windows CE Microsoft embedded OS
TCP Transmission Control Protocol transmission control protocol
UDP User Datagram Protocol User Datagram Protoco (UDP)
BSP Board Support Package board suppot package
APP Application application program
SDK Software Development Kit SDK
ID Identity identifies
SPI Serial Peripheral Interface Serial Peripheral Interface (SPI)
Windows Microsoft's Window operating system
Window CE Windows Embedded Compact Microsoft embedded OS
Socket hole/socket socket, for describing IP address and port
C/c++ java programming language.

Claims (10)

1. a method for wireless multimedia sensor network access IP network, is characterized in that adopting the mode of virtual gateway to realize wireless multimedia sensor network access IP network;
1. the application program that described virtual gateway defers to SOCKET network programming specification just can access this radio multimedia sensor network network;
2. described virtual gateway dynamic on different operating platforms loads, and completing the conversion of IP data and multimedia sensor network protocol data, is the network driver of respective operations system.
2., by method according to claim 1, it is characterized in that described virtual gateway is present in PC and handheld device, application program is positioned at the superiors, and SOCKET specification is deferred in writing of application program; Application program provides operating system API.
3., by method according to claim 1, it is characterized in that what described virtual gateway specifically realized at software view; When data arrive virtual gateway from application program through operating system, with the form of IP packet, for making wireless multimedia sensor network node recognition IP packet, need to analyze IP data packet head, convert to corresponding to the data packet format in wireless multimedia sensor network, two data packet heads have identical meaning; When the length of IP packet is very long, virtual gateway will complete the Fragmentation of packet, simultaneously, data payload is also copied and enters new packet, like this, just complete the conversion of IP packet wireless multimedia sensor network data bag from top to bottom, achieve the transparent transmission of IP packet; When data are sent to virtual gateway from wireless network card driving from the bottom up, virtual gateway is responsible for the data packet format in wireless multimedia sensor network to be converted to can by the Standard IP data bag of IP network identification, simultaneously, according to the flag bit in wireless multimedia sensor network packet header, judge whether the operation that packages, finally, virtual gateway upwards passes to operating system the IP packet obtained, and then passes to application program;
WLAN Device Driver is specifically responsible for driving wireless network card, is the operation to hardware, carries out data interaction with wireless network card, and wireless network card is specifically responsible for the skyborne wireless multimedia sensor network data of transmitting-receiving, completes transfer of data.
4., by the method described in any one of claim 1-3, it is characterized in that:
A, the downlink of described virtual gateway is the data first issuing IP form from operating system, data can issue data receiver queue stored in operating system, in queue, a reception event or semaphore can be there is, indicate that this queue exists data, datacycle distributes thread 1 and waits for this event, when this occurs, when namely there are data in queue, datacycle distributes thread 1 and brings into operation, and the operating system data issued in data receiver queue are transported in wireless network card driving data transmit queue, and complete the operation of burst in this process, whether burst is determine according to the MTU in two heterogeneous networks, the MTU of IP bag is greater than the MTU value in wireless multimedia sensor network, if IP packet length is greater than wireless multimedia sensor network MTU, then carry out burst, if be less than, then do not carry out any operation, be directly transported to wireless network card driving data transmit queue, stored in wireless network card driving data transmit queue after the data fragmentation after burst.There is action listener mechanism equally in wireless network card driving data transmit queue, when data arrive, circulation distributes thread 2 and runs, and data are taken out from wireless network card driving data transmit queue, driven by wireless network card and data are sent to wireless network card, and then sent by antenna;
B, virtual gateway to uplink for from wireless network card drive receive data after, these data are data of wireless multimedia sensor network form, receive watcher thread 1 to be responsible for data to be transported to wireless network card driving data receiving queue from wireless network card, there is event or semaphore equally in corresponding queue, internal data buffer thread of joining the team is started working, first it carry out burst whether judgement according to the flag bit in packet header, if there is no burst, then direct stored in the queue of IP data receiver, if fragment data, then stored in internal data buffer queue, often arrive a burst, then stored in the buffer structure that burst is corresponding, after all bursts arrive, check that thread can detect that all bursts receive, at this one-phase, the packet completing wireless multimedia sensor network form is converted to the process of IP formatted data bag, after completing group bag, arrange corresponding event to be used for starting reception watcher thread 2, data stored in the queue of IP data receiver, if because the reason of wireless multimedia sensor network channel or other reasons cause packet loss, fragment data can not all be received, data can be deposited in buffer queue always, if when channel is very bad, the situation that buffer queue is full can be caused, there is a time-out check thread, corresponding timeouts is set, also all burst is not received after the time overstepping the time limit of bag corresponding in buffer queue, then overtime thread can clear up the corresponding data structure of buffer queue, and the reliability of transfer of data is safeguarded by upper strata, after the queue of IP data receiver receives data, by arranging reception event or semaphore, start wait for this event or semaphore submit operating system data thread, be used for IP data from IP data receiver queue submitting to operating system.
5., by method according to claim 4, it is characterized in that the wireless sensor network MTU described in A is confined to the restriction of physical condition.
6., by method according to claim 2, when it is characterized in that the Windows operating system that PC runs, the operation level of virtual net block is:
1. defer to the application call Windows API of SOCKET specification, data enter operating system from APP, and Windows operating system safeguards an IP stack, and externally provides NDIS interface, to be used for the physical network card of adaptive heterogeneous networks form;
2. virtual gateway is implemented in NDIS lower floor, be used for obtaining the IP packet that gets off from operating system transmission, at virtual gateway, IP packet completes point packet procedures and is converted into the data of wireless multimedia sensor network form, the wireless multimedia sensor network data obtained from wireless network card completes group packet procedures here and this data packet format is converted to the form of IP network packet, completes the conversion of agreement;
3. wireless network card Stream Drivers is used for driving wireless network card, and namely transmit the radio communication plate of wireless multimedia sensor network data, the method for adopting Current drive under Windows architecture is developed;
Wherein, a) application program of SOCKET network program specification is met in the application program aspect exploitation of Windows Development System, the application program of exploitation is all finally realize the mutual of application program and operating system by calling Window operating system API, the SOCKET network standard is a group network API in the form of expression of Windows operating system, and application program and operating system just can complete the mutual of data;
B) Windows, Wince operating system safeguards an IP stack, such as achieve tcp state machine in transport layer aspect, achieve UDP and IP agreement, be supplied to the network driver interface of an outside NDIS, adapt to different communication network cards, a unified structure is achieved in operating system aspect, according to the difference arranged, data finally flow to different physical network cards, and the NDIS interface that data are provided by operating system has flowed to the wireless sensor network radio communication network interface card running proprietary protocol;
C) NDIS interface provides Microsoft Loopback Adapter to register, unloads function, ensure virtual gateway identify by operating system, NDIS serves the function formed a connecting link, to on as the interface of operating system, to under can carry out data interaction with virtual gateway, NDIS interface is also the interface that operating system provides, by calling NDIS interface function in virtual gateway, from operating system, copies data enters into virtual gateway or from virtual gateway copies data to operating system, thus completes data interaction and flowing.
7., by method according to claim 6, it is characterized in that:
A) exploitation described in uses C/C++ or Java programming language when meeting the application program of SOCKET network program specification;
Although b) Windows with Wince realizes not identical in operating system nucleus, the operating system interface being supplied to application program is identical; Application program can pass to Windows operating system data, and contrary Windows operating system also can pass to application program data.
8. by method according to claim 7, it is characterized in that in Windows operating system system, adopt C language exploitation, be compile in BSP bag under Wince environment, or compile in APP SDK, the option of compiling will carry out careful setting and can realize; There is corresponding event and thread in each queue of virtual gateway, whether event is used for mark mark has data to enter into queue, and the generation of thread waits event also performs, and finally completes data submitting layer by layer in different levels.
9., by method according to claim 4, it is characterized in that:
A, subpackage
In the process of subpackage, information in IP packet header is converted into the header packet information in wireless multimedia sensor network, carried out Header compression not losing under effective information prerequisite, data payload has then been divided in each fragment packets, and data are only make simple copy;
In the process of a) subpackage, first, not burst, burst first packet, burst tundish, burst end handbag flag bit are set in wireless multimedia sensor network packet header, burst side-play amount is set in the header, Packet Identifier (ID) is set, carried IP handbag type identification is set;
B) then, the IP header packet information carried in wireless multimedia sensor network bag is set, comprise other information in IP destination address, raw address and IP head, if at the same network segment, then can use short address form, whether can be arranged at the mark of the same network segment in the IP handbag type identification in wireless multimedia sensor network packet header.Other information in IP head can be compressed in wireless multimedia sensor network packet format.The object of compression is the ratio in order to increase useful data transmission, reduces the waste of resource;
C) last, UDP, TCP, ICMP are set and wrap in field in wireless multimedia sensor network bag, comprise port information; The load of data field then needs the detailed position calculating needs segmentation, splits, be filled in first packet, tundish and Mo Bao to data payload;
B, group bag
Group packet procedures is fill IP packet header according to the packet header content of first bag, and wireless multimedia sensor network burst first packet provides the effective information of IP packet, and in this process, the information of compression will restore, and completes the filling in IP packet header; The process of reduction is the inverse process of point packet procedures, according to the corresponding relation that different network protocol in point packet procedures is formed, restores in the process of group bag; Data field in IP bag carries out Copy Merged by each fragment data, and it needs constantly to calculate IP bag data field copy targeting address in the process of Copy Merged, prevents makeing mistakes of data assembling, finally completes the assembling of data field, complete group packet procedures.
10., by method according to claim 6, it is characterized in that the driver relating to wireless network card during virtual gateway operation level is 3. is:
In Windows operating system system, spi bus is adopted to carry out communicating of processor and wireless multimedia sensor network network interface card; Driver can adopt Windows to flow driving and develop, and virtual gateway, by this driving, sends to wireless multimedia sensor network network interface card wireless multimedia sensor network bag, and then data are gone out by radio transmitting; Same, after wireless multimedia sensor network network interface card receives data, consign to virtual gateway by this driving, realize the transmission of the mutual of data and information.
CN201410486749.1A 2014-09-22 2014-09-22 Method for accessing IP network to wireless multimedia sensor network Pending CN104219247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410486749.1A CN104219247A (en) 2014-09-22 2014-09-22 Method for accessing IP network to wireless multimedia sensor network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410486749.1A CN104219247A (en) 2014-09-22 2014-09-22 Method for accessing IP network to wireless multimedia sensor network

Publications (1)

Publication Number Publication Date
CN104219247A true CN104219247A (en) 2014-12-17

Family

ID=52100381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410486749.1A Pending CN104219247A (en) 2014-09-22 2014-09-22 Method for accessing IP network to wireless multimedia sensor network

Country Status (1)

Country Link
CN (1) CN104219247A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018127A (en) * 2017-03-07 2017-08-04 西安电子科技大学 The Internet of Things virtual gateway and node access authentication method of a kind of compatible various protocols
CN108234397A (en) * 2016-12-14 2018-06-29 中国航空工业集团公司西安航空计算技术研究所 A kind of heterogeneous network data transmission method for uplink and method of reseptance based on channel
CN108763109A (en) * 2018-06-13 2018-11-06 成都心吉康科技有限公司 Date storage method, device and its application
CN108881400A (en) * 2018-05-28 2018-11-23 济南万联信息科技有限公司 A kind of system for realizing that multi-channel data uploads in real time based on more network interface cards
CN109089278A (en) * 2018-09-29 2018-12-25 中国联合网络通信集团有限公司 A kind of interface test method and device
CN110493191A (en) * 2019-07-16 2019-11-22 视联动力信息技术股份有限公司 Windows platform data forwarding method, device, electronic equipment and readable storage medium storing program for executing
CN111726201A (en) * 2020-06-15 2020-09-29 哈工大机器人(合肥)国际创新研究院 AIRT-ROS virtual network card packet loss solution method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859339A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Communication system and method for realizing IP cross-domain inter communication by edge media gateway
CN101682587A (en) * 2007-04-13 2010-03-24 Hart通信基金会 The radio network gateway of support of wireless communication agreement under process control environment
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859339A (en) * 2005-04-30 2006-11-08 华为技术有限公司 Communication system and method for realizing IP cross-domain inter communication by edge media gateway
CN101682587A (en) * 2007-04-13 2010-03-24 Hart通信基金会 The radio network gateway of support of wireless communication agreement under process control environment
CN102045896A (en) * 2010-11-22 2011-05-04 中山爱科数字科技有限公司 Virtual Internet-of-things gateway system capable of realizing multiprotocol and network self-adapting

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234397A (en) * 2016-12-14 2018-06-29 中国航空工业集团公司西安航空计算技术研究所 A kind of heterogeneous network data transmission method for uplink and method of reseptance based on channel
CN107018127A (en) * 2017-03-07 2017-08-04 西安电子科技大学 The Internet of Things virtual gateway and node access authentication method of a kind of compatible various protocols
CN107018127B (en) * 2017-03-07 2019-12-06 西安电子科技大学 Internet of things virtual gateway compatible with multiple protocols and node access authentication method
CN108881400A (en) * 2018-05-28 2018-11-23 济南万联信息科技有限公司 A kind of system for realizing that multi-channel data uploads in real time based on more network interface cards
CN108881400B (en) * 2018-05-28 2019-05-28 济南万联信息科技有限公司 A kind of system for realizing that multi-channel data uploads in real time based on more network interface cards
CN108763109A (en) * 2018-06-13 2018-11-06 成都心吉康科技有限公司 Date storage method, device and its application
CN108763109B (en) * 2018-06-13 2022-04-26 成都心吉康科技有限公司 Data storage method and device and application thereof
CN109089278A (en) * 2018-09-29 2018-12-25 中国联合网络通信集团有限公司 A kind of interface test method and device
CN110493191A (en) * 2019-07-16 2019-11-22 视联动力信息技术股份有限公司 Windows platform data forwarding method, device, electronic equipment and readable storage medium storing program for executing
CN111726201A (en) * 2020-06-15 2020-09-29 哈工大机器人(合肥)国际创新研究院 AIRT-ROS virtual network card packet loss solution method
CN111726201B (en) * 2020-06-15 2023-09-12 合肥哈工轩辕智能科技有限公司 AIRT-ROS virtual network card packet loss solving method

Similar Documents

Publication Publication Date Title
CN104219247A (en) Method for accessing IP network to wireless multimedia sensor network
US11178259B2 (en) Methods and apparatus for regulating networking traffic in bursty system conditions
US8254903B2 (en) System and method for remotely operating a wireless device using a server and client architecture
CN105531684B (en) The port general PCI EXPRESS
CN100421417C (en) System and method for TCP offload
US7751401B2 (en) Method and apparatus to provide virtual toe interface with fail-over
US20100050189A1 (en) Method and system for socket API call emulation
EP3550799A1 (en) Heterogeneous multi-protocol stack method, device and system
US8621030B2 (en) Techniques to copy an operating system
CN101669100A (en) Method and system for managing a plurality of i/o interfaces with an array of multicore processor resources in a semiconductor chip
CN103248467A (en) In-chip connection management-based RDMA communication method
CN103441939A (en) Multifunctional boundary router based on IPv6 wireless sensor network
CN109842523A (en) A kind of firmware upgrade method, device, equipment and storage medium
CN108228309B (en) Data packet sending and receiving method and device based on virtual machine
CN107870879A (en) A kind of data-moving method, accelerator board, main frame and data-moving system
CN107276826A (en) A kind of capacitor network collocation method and device
US20140379847A1 (en) Accelerated sockets
KR101559089B1 (en) Communication protocol for sharing memory resources between components of a device
US7502870B1 (en) Method for receiving network communication and apparatus for performing the same
CN103716221A (en) On-line migration method of virtual machine in wide area network under future network NDN (Named Data Network)
CN202351855U (en) Upgrading system for IO (Input/Output) expansion board
US7069561B1 (en) Method and system for communication between application programs and a network
US8131864B2 (en) Methods and systems for communicating with storage systems using slim IP stacks
CN101030927B (en) Interface telecommunication between OSS subsystems based on middleware
US7529812B2 (en) Socket connections over a serial link

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141217

WD01 Invention patent application deemed withdrawn after publication