Embodiment
Below in conjunction with the drawings and specific embodiments, further illustrate the technical scheme of the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those skilled in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of data transmission method, Apparatus and system, for improving the efficiency of the integrality of low performance network node processor protection transmission data.
It in wireless communications environment, on the impact of integrity of data transmission, is mainly following several aspect: receiving node and sending node both sides' asynchronism(-nization) step; There is communication frequency difference in receiving node and sending node both sides; Receiving node and sending node both sides are subject to the co-channel interference of other network node data transmission.
For the above-mentioned problem that affects integrity of data transmission, the embodiment of the present invention is set up the scan mechanism of transfer of data frequency in receiving node side.The group of frequencies that receiving node provides according to network management center is carried out initialization setting, then according to this group of frequencies predeterminated frequency, carry out frequency sweep at a slow speed, this frequency sweeping method has fabulous effect to the Security Data Transmission of low-speed wireless communication network, particularly, receiving node carries out frequency sweep required function modular structure as shown in Figure 1, comprising: network node, frescan and frequency slots.
Particularly, all-network node all arranges frequency slots, the preset transmission frequency of the transfer of data that is useful in system in this frequency slots, and by transmission bandwidth, all transmission frequencies are divided into a plurality of transmission frequency groups, each transmission frequency group has a unique identify label (ID, IDentity) authentication code.After network management center sets the transmission frequency group of certain network node, the frescan of this network node will carry out the scan round of transmission frequency by the group of frequencies of setting.If transmission frequency is n, each transmission frequency group comprises m transmission frequency, and the number k=n/m of transmission frequency group, if there is remainder, puts into last transmission frequency group, and n, m, k are positive integer.After the transmission frequency of each network node is set, this network node can only be used a transmission frequency group in definite k transmission frequency group to carry out transfer of data.Understandable, when communicating between network node, sending node and receiving node are all used identical transmission frequency group to carry out transfer of data.
The information acquisition system network that the following embodiment of the present invention be take under wireless communications environment is example, and in view of the versatility of this computation model, various embodiments of the present invention can further expand to all information gathering network systems or other self-organizing network field.
Refer to Fig. 1, an embodiment of the data transmission method in the embodiment of the present invention comprises:
101, sending node is determined transmission frequency in predetermined transmission frequency group, and to acceptance point, send Frame according to described transmission frequency, in described Frame, comprise a plurality of lead codes, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration;
Because the sending node in network and receiving node may occur that under initial condition operating frequency is inconsistent, cause two send out transmission frequencies may the frequencies of occurrences with the asynchrony phenomenons of jumping, the integralities of impact transmission data.
In the embodiment of the present invention, sending node determines that in predetermined transmission frequency group a frequency is as transmission frequency, and to acceptance point, send Frame according to this transmission frequency, and in this Frame, adding a plurality of lead codes, lead code is used for notifying receiving node receiving data frames.Sending node sends the maximum frequency sweep of total duration covering receiving node of lead code and intercepts duration; to solve the imperfection problem of transfer of data; and the impact due to the concrete mode that not intercepted by the frequency sweep of receiving node; so; network node functional processor and system resource are required to all low height, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
Particularly, the total duration of lead code that sending node sends must be greater than the frequency sweep of receiving node and intercept duration, wherein, send the total duration of lead code for the product at the lead code quantity of transmission and the transmission interval of each lead code, the frequency sweep duration of receiving node is that this receiving node is in default transmission frequency group, according to each transmission frequency, by frequency, scan the omnidistance required time of interception data frame, so, even if work as sending node and receiving node under the poorest synchronous situation, also can solve sending node and receiving node both sides' Frequency Synchronization problem.As shown in Figure 3, for example, each transmission frequency group comprises m transmission frequency, so the scanning of receiving node intercept duration for from first frequency start scanning intercept, scanning always listens to the required duration of m frequency, and the total duration of lead code that sending node sends can cover this scanning and intercepts duration.
102, receive the return information that described receiving node sends.
Receive the return information that this receiving node sends, this return information receives for feeding back the Frame that sending node sends.
In the embodiment of the present invention, sending node is determined transmission frequency in predetermined transmission frequency group, and to acceptance point, send Frame according to described transmission frequency, in Frame, comprise a plurality of lead codes, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of receiving node and intercepts duration, make receiving node must listen to the Frame that sending node sends, thereby be consistent with this sending node operating frequency, to improve sending node to the integrality of the transmission data of receiving node transmission, simultaneously, impact due to the concrete mode that not intercepted by the frequency sweep of receiving node, so, network node functional processor and system resource are required to all low height, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
For ease of understanding, with another embodiment, describe the data transmission method in the embodiment of the present invention in detail below, refer to Fig. 4, another embodiment of the data transmission method in the embodiment of the present invention comprises:
201, sending node is selected the best transmission channel of data transmission quality, as send the transmission channel of Frame to receiving node, and the information of described transmission channel is sent to described receiving node;
In the network configuration of distributed frame layout, and work in all-network node under communication under non-emissive state all in the state of intercepting, so will be in the node layout of this distributed network, while realizing the transfer of data between node, the data transmission channel that must create a good communication quality, after data transmission procedure finishes, this transmission channel is automatically closed or is disappeared.
Sending node selection signal transmission quality is best, signal disturbs minimum transmission channel, as send the transmission channel of Frame to receiving node, and the relevant information of this transmission channel is sent to this receiving node, to notify this receiving node according to the transmission channel group receiving data frames of selecting, sending node selects the process of the best transmission channel of signal transmission quality to complete by prior art, and selection mode is not done concrete restriction.
202, in predetermined transmission frequency group, determine transmission frequency, and to acceptance point, send Frame according to described transmission frequency, in described Frame, comprise a plurality of lead codes, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration;
Because the sending node in network and receiving node may occur that under initial condition operating frequency is inconsistent, cause two send out transmission frequencies may the frequencies of occurrences with the asynchrony phenomenons of jumping, the integralities of impact transmission data.
In the embodiment of the present invention, sending node determines that in predetermined transmission frequency group a transmission frequency, as transmission frequency, sends Frame to acceptance point, adds a plurality of lead codes in this Frame, and lead code is used for notifying receiving node receiving data frames.Sending node sends the maximum frequency sweep of total duration covering receiving node of lead code and intercepts duration; to solve the imperfection problem of transfer of data; and the impact due to the concrete mode that not intercepted by the frequency sweep of receiving node; so; network node functional processor and system resource are required to all low height, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
Particularly, the total duration of lead code that sending node sends must be greater than the frequency sweep of receiving node and intercept duration, wherein, send the total duration of lead code for the product at the lead code quantity of transmission and the transmission interval of each lead code, the frequency sweep duration of receiving node is that this receiving node is in default transmission frequency group, according to each transmission frequency, by frequency, scan the omnidistance required time of interception data frame, so, even if work as sending node and receiving node under the poorest synchronous situation, also can solve sending node and receiving node both sides' Frequency Synchronization problem.As shown in Figure 3, for example, each transmission frequency group comprises m transmission frequency, so the scanning of receiving node intercept duration for from first frequency start scanning intercept, scanning always listens to the required duration of m frequency, and the total duration of lead code that sending node sends can cover this scanning and intercepts duration.
If do not receive the return information that described receiving node sends in 203 preset durations, reselect transmission frequency in described predetermined transmission frequency group, and again send described Frame to described receiving node according to the described transmission frequency reselecting;
According to system practical situations, at the preset duration of waiting for receiving node return information of sending node side, whether sending node judgement receives the return information that described receiving node sends in preset duration, the Frame that this return information sends for replying sending node.
Further, if in preset duration, sending node does not receive the return information that this receiving node sends, and in described predetermined transmission frequency group, determines a transmission frequency again, and again to this receiving node, sends described Frame according to again definite transmission frequency.
If in preset length, sending node does not receive the return information that this receiving node sends, show may be interfered in this transmission frequency and make data transmission fails or receive data failure, therefore, redefine transmission frequency and again transmit described Frame, particularly, in predetermined transmission frequency group, redefine a transmission frequency, the Frame that resends bust this or take defeat according to the transmission frequency redefining.
It should be noted that, sending node resends bust this or the number of times of the Frame that takes defeat, and relevant with predetermined transmission frequency group bandwidth or system applies object, for example, resending Frame number of times is 3 times, does not do concrete restriction herein.
If do not receive the return information that described receiving node sends in 204 preset durations, change the transmission path of described Frame, and according to Frame described in the transmission path after change;
If after the transmission frequency redefining, the transmission frequency redefining according to this sends after described Frame to this receiving node again, in preset duration, do not receive yet the return information that this receiving node sends, be considered as such data frame transfer failure, change the transmission path of this Frame, and according to this Frame of transmission path after change.
Particularly, the support of the Routing Protocol by network management center is carried out the replacing of data transfer path and is processed, the transmission path of change Frame is from medium access control (MAC, Medium Access Control) protocol layer enters Routing Protocol layer, in Routing Protocol layer, change the transmission path of described Frame, and return to MAC protocol layer.Formerly should realize integrity of data transmission computational methods by MAC protocol layer, modification by the Routing Protocol layer that turns back to its upper strata to transmission path, and then return to MAC protocol layer and continue to send described Frame, by the seamless fusion of route layer and MAC layer, integrity of data transmission between network node is improved.
It should be noted that, can be after gravity treatment transmission frequency sends Frame failure again, change immediately the transmission path of Frame, also can be after continuous several times gravity treatment transmission frequency sends the failure of Frame number of times, change again the transmission path of Frame, be not construed as limiting, specifically transmission times can be by system intialization again herein.
205, receive the return information that described receiving node sends.
In the embodiment of the present invention, first sending node selects the best transmission channel of signal transmission quality, as send the transmission channel of Frame to receiving node, and notify receiving node, improve the success rate of transfer of data, integrality, in predetermined transmission frequency group, determine transmission frequency, and to acceptance point, send Frame according to described transmission frequency, in Frame, comprise a plurality of lead codes, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of receiving node and intercepts duration, make receiving node must listen to the Frame that sending node sends, thereby be consistent with this sending node operating frequency, improve sending node to the integrality of the transmission data of receiving node transmission, simultaneously, impact due to the concrete mode that not intercepted by the frequency sweep of receiving node, so, to network node functional processor and system resource, require not high, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission, if data send unsuccessfully, redefining transmission frequency sends again, if again send unsuccessfully, change the transmission path of the Frame that sends, and again send this Frame according to the transmission path after change, to improve the integrality of transfer of data.
It is more than the data transmission method the embodiment of the present invention of describing from sending node side, from receiving node side, the data transmission method the embodiment of the present invention is described below, refer to Fig. 5, another embodiment of the data transmission method in the embodiment of the present invention comprises:
301, receiving node is according to each transmission frequency in predetermined transmission frequency group, and frequency sweep is intercepted the Frame that described sending node sends;
Sending node in network and receiving node may occur that under initial condition operating frequency is inconsistent, and the integrality of impact transmission data, so, first to solve the inconsistent problem of both sides' operating frequency that receives.Transmission frequency due to sending node transmission Frame, it is a frequency of determining in predetermined transmission frequency group, so, consistent with receiving node operating frequency for guaranteeing sending node, receiving node, according to each transmission frequency in predetermined transmission frequency group, intercepts by frequency frequency sweep the Frame that this sending node sends, and the poorest situation is from predetermined transmission frequency group first frequency, scanning listens to last frequency, just listens to the Frame that sending node sends.
In the embodiment of the present invention, the Frame that receiving node frequency sweep is intercepted sending node transmission does not adopt complicated hop algorithm, and use simple cycle sweep method, be consider network node resource and computing capability limited, its complicated frequency hopping mathematical computations behavior can not be brought into play the oepration at full load effect of network node.
302, when listening to the Frame of described sending node transmission, to described sending node, send a reply information.
When receiving node listens to the Frame of this sending node transmission, to this sending node, send a reply information, to notify this sending node to receive this Frame, can determine consistent with sending node operating frequency simultaneously.
In the embodiment of the present invention, receiving node is according to each transmission frequency in predetermined transmission frequency group, frequency sweep is intercepted the Frame that described sending node sends, when listening to the Frame of described sending node transmission, to described sending node, send a reply information, notify this sending node to receive this Frame, can determine consistent with sending node operating frequency simultaneously, after reaching and synchronizeing with sending node operating frequency, improve the integrality that receives and send data, the mode of intercepting due to frequency sweep is simpler, so, to network node functional processor and system resource, require all low, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
Describe the data transmission method in the embodiment of the present invention below in detail, refer to Fig. 6, another embodiment of the data transmission method in the embodiment of the present invention comprises:
401, receiving node receives the information of the transmission channel of sending node transmission;
In the network configuration of distributed frame layout, and work in all-network node under communication under non-emissive state all in the state of intercepting, so will be in the node layout of this distributed network, while realizing the transfer of data between node, the data transmission channel that must create a good communication quality, after data transmission procedure finishes, this transmission channel is automatically closed or is disappeared.
Receiving node receives the information of the transmission channel of sending node transmission.
402, in described transmission channel, the Frame that described sending node sends is intercepted in scanning;
Receiving node scans in this transmission channel intercepts the Frame that described sending node sends.
403, receiving node is according to each transmission frequency in predetermined transmission frequency group, and frequency sweep is intercepted the Frame that described sending node sends;
Sending node in network and receiving node may occur that under initial condition operating frequency is inconsistent, and the integrality of impact transmission data, so, first to solve the inconsistent problem of both sides' operating frequency that receives.Transmission frequency due to sending node transmission Frame, it is a frequency of determining in predetermined transmission frequency group, so, consistent with receiving node operating frequency for guaranteeing sending node, receiving node, according to each transmission frequency in predetermined transmission frequency group, intercepts by frequency frequency sweep the Frame that this sending node sends, and the poorest situation is from predetermined transmission frequency group first frequency, scanning listens to last frequency, just listens to the Frame that sending node sends.
In the present embodiment, the Frame that receiving node frequency sweep is intercepted sending node transmission does not adopt complicated hop algorithm, and use simple cycle sweep method, be consider network node resource and computing capability limited, its complicated frequency hopping mathematical computations behavior can not be brought into play the oepration at full load effect of network node.
404, when listening to the Frame of described sending node transmission, to described sending node, send a reply information.
When receiving node listens to the Frame of this sending node transmission, to this sending node, send a reply information, to notify this sending node to receive this Frame.
In the embodiment of the present invention, receiving node receives the transmitting channel information that sending node is selected, and in described transmission channel, the Frame that described sending node sends is intercepted in scanning, improves success rate, the integrality of transfer of data.Receiving node is according to each transmission frequency in predetermined transmission frequency group; frequency sweep is intercepted the Frame that described sending node sends; after reaching and synchronizeing with sending node operating frequency; improve the integrality that receives and send data; the mode of intercepting due to frequency sweep is simpler; so, network node functional processor and system resource are required all low, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
Data transmission device in the embodiment of the present invention is described below, refers to Fig. 7, an embodiment of the data transmission device in the embodiment of the present invention comprises:
Determining unit 701, determines transmission frequency for the transmission frequency group predetermined;
Transmitting element 702, sends Frame for the described transmission frequency of determining according to determining unit 701 to acceptance point, comprises a plurality of lead codes in described Frame, and the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration;
Receiving element 703, the return information sending for receiving described receiving node.
In the embodiment of the present invention, the process of function is separately realized in each unit of data transmission device, refers to the detailed content of aforementioned middle description embodiment illustrated in fig. 2, repeats no more herein.
In the embodiment of the present invention, determining unit 701 is determined transmission frequency in predetermined transmission frequency group, the described transmission frequency that transmitting element 702 is determined according to determining unit 701 sends Frame to acceptance point, in described Frame, comprise a plurality of lead codes, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration, receiving element 703 receives the return information that described receiving node sends, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration, make receiving node must listen to the Frame that sending node sends, thereby be consistent with this sending node operating frequency, to improve sending node to the integrality of the transmission data of receiving node transmission, simultaneously, impact due to the concrete mode that not intercepted by the frequency sweep of receiving node, so, network node functional processor and system resource are required to all low height, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
For ease of understanding, refer to Fig. 8, another embodiment of the data transmission device in the embodiment of the present invention comprises:
Determining unit 801, determines transmission frequency for the transmission frequency group predetermined;
Transmitting element 802, sends Frame for the described transmission frequency of determining according to determining unit 801 to acceptance point, comprises a plurality of lead codes in described Frame, and the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration;
Receiving element 803, the return information sending for receiving described receiving node.
Further, determining unit 801 if also do not receive for preset duration the return information that described receiving node sends, redefines transmission frequency in described predetermined transmission frequency group;
Transmitting element 802, also for again sending described Frame to described receiving node according to the described transmission frequency redefining.
It should be noted that, described data transmission device can further include:
Changing unit 804, if do not receive for preset duration the return information that described receiving node sends, changes the transmission path of described Frame, and according to Frame described in the transmission path after change;
Changing unit 804, specifically for entering from MAC protocol layer the transmission path of changing described Frame Routing Protocol layer, and returns to MAC protocol layer.
Further, determining unit 801, also for selecting the best transmission channel of data transmission quality, as send the transmission channel of described Frame to described receiving node;
Transmitting element 802, also for sending to described receiving node by the information of described transmission channel.
In the embodiment of the present invention, the process of function is separately realized in each unit of data transmission device, refers to the detailed content of earlier figures 2 and middle description embodiment illustrated in fig. 4, repeats no more herein.
Determining unit 801 is selected the best transmission channel of data transmission quality, as send the transmission channel of described Frame to described receiving node, transmitting element 802 sends to described receiving node by the information of described transmission channel, determining unit 801 is determined transmission frequency in predetermined transmission frequency group, transmitting element 802 sends Frame according to the definite transmission frequency of determining unit 801 to acceptance point, in described Frame, comprise a plurality of lead codes, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration, receiving element 803 receives the return information that described receiving node sends.If do not receive the return information that described receiving node sends in preset duration, 801 of determining units redefine transmission frequency in described predetermined transmission frequency group, transmitting element 802 sends described Frame to described receiving node again according to the described transmission frequency redefining, if do not receive the return information that described receiving node sends in preset duration, changing unit 804 is changed the transmission path of described Frame, and according to Frame described in the transmission path after change, specifically for entering from MAC protocol layer the transmission path of changing described Frame Routing Protocol layer, and return to MAC protocol layer, wherein, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration, make receiving node must listen to the Frame that sending node sends, thereby be consistent with this sending node operating frequency, improve sending node to the integrality of the transmission data of receiving node transmission, simultaneously, impact due to the concrete mode that not intercepted by the frequency sweep of receiving node, so, to network node functional processor and system resource, require not high, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission, if data send unsuccessfully, redefining transmission frequency sends again, if again send unsuccessfully, change the transmission path of the Frame that sends, and again send this Frame according to the transmission path after change, to improve the integrality of transfer of data.
Refer to Fig. 9, another embodiment of the data transmission device in the embodiment of the present invention comprises:
Intercept unit 901, for each transmission frequency of the transmission frequency group according to predetermined, frequency sweep is intercepted the Frame that described sending node sends;
Send information unit 902, for when intercepting unit 901 while listening to the Frame of described sending node transmission, to described sending node, send a reply information.
In the embodiment of the present invention, the process of function is separately realized in each unit of data transmission device, refers to the detailed content of aforementioned middle description embodiment illustrated in fig. 5, repeats no more herein.
In the embodiment of the present invention, intercept unit 901 according to each transmission frequency in predetermined transmission frequency group, frequency sweep is intercepted the Frame that described sending node sends, when intercepting unit 901 while listening to the Frame that described sending node sends, send information unit 902 and send a reply information to described sending node, notify this sending node to receive this Frame, can determine consistent with sending node operating frequency simultaneously, after reaching and synchronizeing with sending node operating frequency, improve the integrality that receives and send data, the mode of intercepting due to frequency sweep is simpler, so, to network node functional processor and system resource, require all low, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
Refer to Figure 10, another embodiment of the data transmission device in the embodiment of the present invention comprises:
Intercept unit 1001, for each transmission frequency of the transmission frequency group according to predetermined, frequency sweep is intercepted the Frame that described sending node sends;
Send information unit 1002, for when intercepting unit 1001 while listening to the Frame of described sending node transmission, to described sending node, send a reply information.
It should be noted that, the data transmission device in the embodiment of the present invention can further include:
Receive information unit 1003, also for receiving the information of the transmission channel of described sending node transmission;
The described unit 1001 of intercepting, also for intercepting in described transmission channel scanning the Frame that described sending node sends.
In the embodiment of the present invention, the process of function is separately realized in each unit of data transmission device, refers to the detailed content of earlier figures 5 and middle description embodiment illustrated in fig. 6, repeats no more herein.
In the embodiment of the present invention, receive the information that information unit 1003 receives the transmission channel of described sending node transmission, intercept unit 1001 and in described transmission channel, scan the Frame of intercepting described sending node transmission, in described transmission channel, the Frame that described sending node sends is intercepted in scanning, improve the success rate of transfer of data, integrality, intercept unit 1001 according to each transmission frequency in predetermined transmission frequency group, frequency sweep is intercepted the Frame that described sending node sends, when intercepting unit 1001 while listening to the Frame that described sending node sends, send information unit 1002 and send a reply information to described sending node, after reaching and synchronizeing with sending node operating frequency, improve the integrality that receives and send data, the mode of intercepting due to frequency sweep is simpler, so, to network node functional processor and system resource, require all low, in low performance network node processor, can improve the efficiency of the integrality of protected data transmission.
The embodiment of the present invention has also been introduced a kind of data transmission system, refers to Figure 11, and the data transmission system in the embodiment of the present invention comprises:
Sending node 1101, receiving node 1102;
Described sending node 1101, for determining transmission frequency in predetermined transmission frequency group, the described transmission frequency of determining according to described determining unit sends Frame to acceptance point, in described Frame, comprise a plurality of lead codes, the total duration of transmission of described a plurality of lead codes is greater than the frequency sweep of described receiving node and intercepts duration, receives the return information that described receiving node sends;
Described receiving node 1102, be used for according to each transmission frequency of predetermined transmission frequency group, frequency sweep is intercepted the Frame that described sending node sends, and when the described unit of intercepting is while listening to the Frame that described sending node sends, to described sending node, sends a reply information.
In the embodiment of the present invention, the process of function is separately realized in each unit of data transmission system, refers to earlier figures 1 to the detailed content of middle description embodiment illustrated in fig. 10, repeats no more herein.
It will be appreciated by those skilled in the art that all or part of step realizing in above-described embodiment method is to come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
Above a kind of data transmission method provided by the present invention, Apparatus and system are described in detail, for those skilled in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.