Summary of the invention
Technical problem to be solved by the present invention lies in overcoming above-mentioned deficiency of the prior art, and propose a kind of nothing
Line frequency hopping and spread spectrum group network system and method, can meet the needs of wireless current application well.
The present invention proposes a kind of wireless frequency hopping and spread spectrum group network system in view of the above technical problems, including by a main side and
Multiple wireless networks from end composition, each have the function of relay forwarding from end, each support multiple frequency point communications from end, each
Spread spectrum is used under frequency point;Wherein:
It is all after powered operation, to check currently whether be in into net state, if be not in into netted since end
State then needs to initiate the request that networks, the networking of main side is waited to instruct;
It is all to be required to the online time-out operations of starting networking from holding after networking, if time-out does not communicate, need automatic
It exits network, re-initiates new networking request operation;
After main side starts powered operation, starts to receive the networking request since end, meet receiving into net operation
When from end data, the order that networks is sent from end to this, after receiving response, then this is recorded in informational table of nodes from end;Together
When, main side will timing carry out routing information acquisition from end to having networked, if get it is new do not network from end, pass through
Networked from end to it is new do not network carry out relay registry from end, level-one relay route is established, similarly, to level-one relaying
Routing iinformation is obtained from end, if it find that the new node not networked, then carry out second grade router registration, so analogize, it can be complete
The multistage routed path of Cheng Congduan is established;
Main side needs to carry out overtime management to informational table of nodes, if to, from end, time-out does not communicate in informational table of nodes
Success then needs this to delete from informational table of nodes from end.
The present invention also proposes a kind of wireless frequency hopping and spread spectrum network-building method in view of the above technical problems, by a main side and more
It is a to form wireless network from end, each have the function of relay forwarding from end, each supports multiple frequency point communications, each frequency point from end
It is lower to use spread spectrum;The network-building method includes:
It is all to check currently whether be in into net state, if be not in into netted after starting powered operation from end
State then needs to initiate the request that networks, the networking of main side is waited to instruct;
Main side after starting powered operation, starts to receive the networking request since end, meet receiving into net operation
When from end data, the order that networks is sent from end to this, after receiving response, then this is recorded in informational table of nodes from end;Together
When, main side will timing carry out routing information acquisition from end to having networked, if get it is new do not network from end, pass through
Networked from end to it is new do not network carry out relay registry from end, level-one relay route is established, similarly, to level-one relaying
Routing iinformation is obtained from end, if it find that the new node not networked, then carry out second grade router registration, so analogize, it can be complete
The multistage routed path of Cheng Congduan is established;
It is all after networking, to be required to starting from end and network online time-out operations, if time-out does not communicate, need from
It is dynamic to exit network, re-initiate new networking request operation;
Main side needs to carry out overtime management to informational table of nodes, if to, from end, time-out does not communicate in informational table of nodes
Success then needs this to delete from informational table of nodes from end.
Compared with prior art, wireless frequency hopping of the invention and spread spectrum group network system and method, by dexterously by frequency hopping
Technology, spread spectrum and ad hoc network combine, and can meet the needs of wireless current application well.
Specific embodiment
Below in conjunction with the attached drawing of this specification, presently preferred embodiments of the present invention is further described in detail.
Referring to Fig. 1 a, Fig. 1 a is the block diagram signal of wireless frequency hopping and spread spectrum group network system embodiment of the invention.The present invention
It proposes a kind of wireless frequency hopping and spread spectrum group network system 10, generally comprises: main side 1 and being connected by wireless network with the main side 1
It is several from end 2.Wherein, relay forwarding function each is all had from end 2.The wireless communication frequency of the system 10 is Sub1G, is answered
It uses frequency hopping and spread spectrum, i.e., main side 1 and supports multiple frequency points to communicate from end 2, spread spectrum is used under each frequency point.Such as
This, may be implemented to support node as much as possible under the same network environment, and realize that data communication is handled.As it can be seen that this is
System 10 is compared with being suitable for: the number of nodes of communication is big, but amount of communication data is little, and communication be not frequently apply very much, such as: object
Networking.For example, which is Automatic meter reading system, which is concentrator, and slave end 2 is intelligent electric meter.
Referring to Fig. 1 b, Fig. 1 b is the process signal of wireless frequency hopping and spread spectrum network-building method of the invention.This method include with
Lower step:
It is S101, all from end, after starting powered operation, it can check currently whether be in into net state, if be not in
Enter net state, then needs to initiate the request that networks, the networking of main side is waited to instruct.
S102, main side after starting powered operation, start to receive the networking request since end, meet networking receiving
When the slave end data of operation, the order that networks is sent from end to this, after receiving response, then this is recorded in informational table of nodes from end
In;Meanwhile main side will timing carry out routing information acquisition from end to having networked, if get it is new do not network from end,
Then by networked from end to it is new do not network carry out relay registry from end, establish level-one relay route, similarly, to level-one
Relaying obtains routing iinformation from end, if it find that the new node not networked, then carry out second grade router registration, so analogize,
It can complete to establish from the multistage routed path at end.
S103, all from end, after networking, be required to the starting online time-out operations that network needs if time-out does not communicate
Network is automatically exited from, new networking request operation is re-initiated.
S104, main side need to carry out overtime management to informational table of nodes, if in informational table of nodes from end, time-out
Success is not communicated, then this is needed to delete from informational table of nodes from end.
A referring to fig. 2, Fig. 2 a are the process signals of main side in wireless frequency hopping and spread spectrum group network system of the invention.The main side
Process generally comprise following steps:
S211, initialization RF hardware, initialize RF parameter configuration.
S212, module clock update processing.
S213, module operation processing, check RF bottom state machine.
S214, module channels processing, check whether to need replacing channel.
S215, module-external data input processing, serial data transmitting-receiving process.
S216, module RF data sending processing.
S217, the processing of module RF data receiver.
S218, module RF retransmission process.
That is, the process of main side specifically includes several aspects: main side module for power supply is started to work, and each parameter is configured,
It is handled subsequently into major cycle;Check that module channels are handled, if need to realize that frequency hopping is handled;Check external serial port data list
Member, if serial data is needed to be received and transmitted operation;And check RF modular unit, if there are data to need to receive
Or it sends.
B referring to fig. 2, Fig. 2 b are to illustrate in wireless frequency hopping and spread spectrum group network system of the invention from the process at end.Slave end
Process generally comprise following steps:
S221, initialization RF hardware, initialize RF parameter configuration.
S222, module clock update processing.
S223, module operation processing, obtain current receiving channel, check RF bottom state machine.
S224, networking operation processing.
S225, module logout operation processing.
S226, module-external data input processing, serial data transmitting-receiving process.
S227, module RF data sending processing.
S228, the processing of module RF data receiver.
That is, from the process at end specifically include it is several in terms of: from end module power start to work, configure each parameter,
It is handled subsequently into major cycle;Check whether module needs to carry out networking processing;Check whether module will carry out logout processing;It looks into
See external serial port data unit, if there are data needs to receive or send;And check RF modular unit, if there are data needs
It receives or sends.
It is the illustrative process signal of wireless frequency hopping and spread spectrum network-building method of the invention referring to Fig. 3, Fig. 3.This process
The following steps are included:
S301, the request that networks is initiated from end 1.
S302, main side carry out registration request to from end 1.
S303, it is responded from the 1 pair of request in end.
S304, main side carry out communication request to from end 1.
S305, communication response is carried out from 1 pair of end main side.There is new neighbor nodal information in response.Step S304, S305 is main
End discovery has the process from end 1 of new neighbor table mark inquiry new registration.
S306, main side copy reading from end 1 information of neighbor nodes.
S307, from end 1 responsive node information.Have in nodal information from end 2.Step S306, S307 is main side since end 1
The process of new neighbor table is obtained in response, can back up 2-3 relay address here, then confirms registration again and removes neighbours
Table.
S308, main side carry out registration request to from end 2.It is relayed from end 1.
S309, it is responded from the 2 pairs of requests in end.It is relayed from end 1.
S310, main side carry out communication request to from end 2.It is relayed from end 1.
S311, it is responded from the 2 pairs of requests in end.It is relayed from end 1.Step S310, S311 is that main side discovery has new neighbour
Occupy the process from end 2 of table mark inquiry new registration.
S312, main side copy reading from end 2 neighbor information.It is relayed from end 1.
S313, it is responded from the 2 pairs of requests in end.It is relayed from end 1.Step S312, S313 is response of the main side since end 2
The middle process for obtaining new neighbor table, can back up 2-3 relay address here, then confirm registration again and remove neighbor table.
S314, main side carry out registration request to from end 3.1 grade of relaying: from end 1;2 grades of relayings: from end 2.
S315, it is responded from the 3 pairs of requests in end.1 grade of relaying: from end 1;2 grades of relayings: from end 2.
S321, the request that networks is initiated from end 1.After hearing from end 2, neighbours can will be saved in from the ID (identity coding) at end 1
(contain RSSI/SNR) in list, and is equipped with new neighbor table mark.
S322, it is responded from the 1 pair of request in end.After hearing from end 2, the ID from end 1 in neighbor list can be disposed.
S323, the request that networks is initiated from end 2.
S324, main side carry out registration request to from end 2.It is relayed from end 1.After hearing from end 2, the upper road report of alarm can be saved
Diameter, and this reports path to have main side recent visit and refresh.
S325, it is responded from the 2 pairs of requests in end.It is relayed from end 1.
S326, main side carry out communication request to from end 2.It is relayed from end 1.
S327, it is responded from the 2 pairs of requests in end.It is relayed from end 1.
S328, main side copy reading from end 2 neighbor information.It is relayed from end 1.
S329, it is responded from the 2 pairs of requests in end.It is relayed from end 1.
S330, main side carry out registration request to from end 3.1 grade of relaying: from end 1;2 grades of relayings: from end 2.
S331, it is responded from the 3 pairs of requests in end.1 grade of relaying: from end 1;2 grades of relayings: from end 2.
S341, the request that networks is initiated from end 2.After being heard from end 3, it can save and (contain from the ID at end 2 into neighbor list
RSSI/SNR), and it is equipped with new neighbor table mark.
S342, main side carry out registration request to from end 2.It is relayed from end 1.After hearing from end 3, neighbor list can be disposed
In from end 2 ID.
S343, the request that networks is initiated from end 3.After being heard from end 2, it can save and (contain from the ID at end 3 into neighbor list
RSSI/SNR), and it is equipped with new neighbor table mark.
S344, main side carry out registration request to from end 3.1 grade of relaying: from end 1;2 grades of relayings: from end 2.After being heard from end 3,
Alarm can be saved and report path, and this reports path to have main side recent visit and refresh.
S345, it is responded from the 3 pairs of requests in end.1 grade of relaying: from end 1;2 grades of relayings: from end 2.
Referring to fig. 4, Fig. 4 is that wireless frequency hopping and the illustrative process of spread spectrum network-building method Channel Detection evacuation of the invention are shown
Meaning.When operating for the first time, three main sides 1,2,3 are all made of channel 0, and aerial idle channel is 1,2,3,4.5 channel center
The interval of frequency point be it is fixed, be respectively as follows: between channel 1 and channel 0 and be divided into 0.2988MHz;It is divided between channel 2 and channel 0
0.6988MHz;1.0488MHz is divided between channel 3 and channel 0;1.4988MHz is divided between channel 4 and channel 0.Each frequency point
Spacing value can guarantee under any one benchmark value of frequency point (the center frequency point value of channel 0) in Sub 1G that 5 interchannels are not
Interference and intermodulation effects can be generated.It is connected from end 11 with main side 1, the signal of main side 1 and main side 2 can be received simultaneously.From end 21 with
Main side 2 is connected, and can receive the signal of main side 1, main side 2 and main side 3 simultaneously.It is connected from end 31 with main side 3, main side can be received simultaneously
2 and main side 3 signal.This process generally comprises following steps:
S401, main side 1 are signaled to from end 11.
S402, suggest 1 channel of rollback of main side 1 from end 11.
The signal that S403, main side 1 are sent out, interferes to from end 21.
The signal that S404, main side 2 are sent out, interferes to from end 11.
S405, main side 2 are signaled to from end 21.
S406, suggest that main side 2 increases by 1 channel from end 21.
S407, main side 2 are signaled to from end 21.
S408, suggest 1 channel of rollback of main side 2 from end 21.
The signal that S409, main side 2 are sent out, interferes to from end 31.
The signal that S410, main side 3 are sent out, interferes to from end 21.
S411, main side 3 are signaled to from end 31.
S412, suggest that main side 3 increases by 1 channel from end 31.
Referring to Fig. 5 a, Fig. 5 a is that the process of channel resetting in main side in wireless frequency hopping and spread spectrum group network system of the invention is shown
Meaning.The process of main side channel resetting generally comprises:
S511, when from end suggest retract a channel when, main side keep present channel it is constant.
S513, it is recommended to increase when a channel, i.e., is sorted by size according to current channel number and idle channel number when from end,
Taking channel more higher leveled than current channel number is that will use channel.In this way, can be recycled with channel number in 0-4.
S515, when from holding existing suggestions rollback, having it is recommended to increase when a channel again, i.e., according to current channel number and free time
Channel number sorts by size, and taking the channel of level-one lower than current channel number is that will use channel.
Referring to Fig. 5 b, Fig. 5 b is to show in wireless frequency hopping and spread spectrum group network system of the invention from the process that end channel is reset
Meaning.The process that channel is reset from end generally comprises:
S521, from end whenever receiving illegal main side Address requests, if the affiliated channel phase of channel number and terminal itself
Deng then carrying out main side address and compare.
If S513, oneself main side address value it is small, need to change channel in channel status word, it is proposed that retract one letter
Road;If the main side address value of oneself is big, channel status word needs to change channel, it is proposed that increases a channel.
If S515, channel number are not the affiliated channels of terminal itself, this channel is marked busy flag, while opening setting
Duration does not receive this channel instruction.The specific value for setting duration, can need to select, for example, this sets with practical application
Periodically a length of 30 seconds.
It is noted that main side is received every time when the response frame at end, it is required to carry out channel status word
Parsing obtains current air channel usage, meanwhile, it checks from whether end requires replacement channel, then by setting strategy, presses
It is required that carrying out channel resetting.For example, setting strategy is to carry out channel resetting by table at the time of setting.Such as: in zero point
It carves and carries out channel resetting.So, by taking the application scenarios of aforementioned Fig. 4 signal as an example, at the zero point moment, main side 1 is according to reception
It is -1 channel to the suggestion from end 11, therefore 1 channel of main side is constant, remains channel 0;Main side 2 being built according to receiving from end 21
It discusses existing -1 channel, have+1 channel again, therefore 1 channel of main side becomes (5+0-1) %5=4, that is, becomes channel 4;Main side 3 is according to connecing
Receiving from the suggestion at end 31 is+1 channel, therefore 1 channel of main side becomes (5+0+1) %5=1, that is, becomes channel 1.
In conclusion wireless frequency hopping of the invention and spread spectrum network-building method specifically includes the following steps:
1., from end according to operating condition, check whether to need to initiate the request that networks;
2., main side according to what is received enter network data, carried out judging whether to need to issue registration request operation according to signal;
Meet networking condition and issue and request and after being successfully received response, this is added in informational table of nodes from end address;This step
Complete can directly communicate from holding into net operation;
3., main side timing search informational table of nodes in from end routing iinformation, when get directly it is passable from end road
By with the presence of new from end, then carrying out 1 grade of relay registry from end to newfound from end by what is networked, successfully connecing in table
After receiving response, recording new from end is 1 grade of transistroute and to be stored in informational table of nodes;Part is so completed from end
1 grade of relay registry;
4., when main side search 1 grade of relaying from end route information table when, it was found that it is new from end, pass through the behaviour of step 3.
Make, the registration of 2 grades of routing tables may be implemented;
5., similarly, can continue to realize more advanced routing carries out route registration from end;
6., main side need timing check the online routing iinformation from end, check whether it is new from end add network access
Network, and in time complete registration, guarantee the real-time of networking, meanwhile, find it is new from end when, if multiple registered
There is this newly information from end from end, then need to carry out judgement comparison by mutual signal, using signal more preferably road
Diameter carries out registration operation;
7., main side work while, need to check whether the channel of currently used communication occupied, if occupied,
Communication frequency point is needed replacing, to guarantee the reliable and stable operation of communication, can guarantee under the same environment by this, more set systems
System automatic running does not interfere with each other;
8., each from end, be intended to carry out judgement processing to the main side signal received, if routing can be saved, if
It can save, then need to notify main side in time, carry out routing adjustment;Meanwhile it needing to request by carrying out time-out main side from end
Processing is judged to handling lost contact state from end if not receiving legal main side request in the unit time, needs to exit online
State re-initiates networking request operation.
Compared with prior art, using the beneficial effect packet of wireless frequency hopping and spread spectrum group network system and method for the invention
It includes: by dexterously combining frequency hopping, spread spectrum and ad hoc network, wireless work as can be met well
The needs of preceding application.
Above content is only presently preferred embodiments of the present invention, is not intended to limit embodiment of the present invention, and this field is general
Logical technical staff's central scope according to the present invention and spirit can very easily carry out corresponding flexible or modification, therefore originally
The protection scope of invention should be subject to protection scope required by claims.