Summary of the invention
Main purpose of the present invention is to provide a kind of network-building method and device, is intended to the cost reducing networking.
For achieving the above object, a kind of network-building method provided by the invention comprises the following steps:
When radio network center and wireless terminal set up network be connected time, obtain the information of described wireless terminal;
The first wireless terminal that there is preset routing algorithm in the wireless terminal of current networking is determined according to the information of described wireless terminal;
Described first wireless terminal is output control signals to, for described first wireless terminal according to the second wireless terminal that whether there is failed cluster in the described first wireless terminal region of described control signal search according to default time slot;
When there is the second wireless terminal of failed cluster, the first wireless terminal searching described second wireless terminal is set as repeater;
Control described repeater according to described preset routing algorithm wireless signal emission, networked by described repeater for described second wireless terminal.
Preferably, the described repeater of described control, according to described preset routing algorithm wireless signal emission, is also comprised after being networked for described second wireless terminal by described repeater:
Detecting real-time is current sets up the 3rd wireless terminal that whether there is off-grid in the described wireless terminal that network is connected with radio network center;
When existence the 3rd wireless terminal, send a control signal to according to default time slot and currently to set up repeater preset in the described wireless terminal that network is connected with radio network center, determine whether can search described 3rd wireless terminal in described preset repeater region for described preset repeater according to described control signal;
When searching the 3rd wireless terminal, the described preset repeater searching described 3rd wireless terminal is appointed as the new repeater of described 3rd wireless terminal;
Control described preset repeater according to described preset routing algorithm wireless signal emission, networked by described preset repeater for described 3rd wireless terminal.
Preferably, described wireless terminal comprises the wireless terminal of battery powered wireless terminal and Power supply; The wireless terminal of described Power supply is embedded with described preset routing algorithm.
Preferably, the described repeater of described control comprises according to described preset routing algorithm wireless signal emission:
Control described repeater by frequency hopping and frequency division multiplexing algorithm wireless signal emission.
Preferably, the described repeater of described control comprises according to described preset routing algorithm wireless signal emission:
Control described repeater by time division multiplexing algorithm wireless signal emission.
In addition, for achieving the above object, the present invention also provides a kind of network device to comprise:
Acquisition module, for set up when radio network center and wireless terminal network be connected time, obtain the information of described wireless terminal;
Determination module, for determine current networking according to the information of described wireless terminal wireless terminal in there is the first wireless terminal of preset routing algorithm;
Output module, for outputing control signals to described first wireless terminal according to default time slot, for described first wireless terminal according to the second wireless terminal that whether there is failed cluster in the described first wireless terminal region of described control signal search;
Setting module, for when there is the second wireless terminal of failed cluster, is set as repeater by the first wireless terminal searching described second wireless terminal;
Control module, for controlling described repeater according to described preset routing algorithm wireless signal emission, is networked by described repeater for described second wireless terminal.
Preferably, described network device also comprises:
Detecting module, to set up for detecting real-time is current the 3rd wireless terminal that whether there is off-grid in the described wireless terminal that network is connected with radio network center;
Sending module, for when existence the 3rd wireless terminal, send a control signal to according to default time slot and currently to set up repeater preset in the described wireless terminal that network is connected with radio network center, determine whether can search described 3rd wireless terminal in described preset repeater region for described preset repeater according to described control signal;
Designated module, for when searching the 3rd wireless terminal, is appointed as the new repeater of described 3rd wireless terminal by the described preset repeater searching described 3rd wireless terminal;
Processing module, for controlling described preset repeater according to described preset routing algorithm wireless signal emission, is networked by described preset repeater for described 3rd wireless terminal.
Preferably, described wireless terminal comprises the wireless terminal of battery powered wireless terminal and Power supply; The wireless terminal of described Power supply is embedded with described preset routing algorithm.
Preferably, described control module is specifically for controlling described repeater by frequency hopping and frequency division multiplexing algorithm wireless signal emission.
Preferably, described control module is specifically for controlling described repeater by time division multiplexing algorithm wireless signal emission.
The present invention by radio network center and wireless terminal set up network be connected time, obtain the information of described wireless terminal and determine to exist in the wireless terminal of current networking the first wireless terminal of preset routing algorithm; Export control signal according to default time slot and control the second wireless terminal whether described first wireless terminal search exists failed cluster; When there is the second wireless terminal of failed cluster, the first wireless terminal searching described second wireless terminal is set as repeater; Control described repeater according to described preset routing algorithm wireless signal emission, thus achieve networking.Because this reducing the cost of networking.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of network-building method, with reference to Fig. 1, in one embodiment, this network-building method comprises:
Step S10, when radio network center and wireless terminal set up network be connected time, obtain the information of described wireless terminal;
Step S20, determines the first wireless terminal that there is preset routing algorithm in the wireless terminal of current networking according to the information of described wireless terminal;
Step S30, outputs control signals to described first wireless terminal according to default time slot, for described first wireless terminal according to the second wireless terminal that whether there is failed cluster in the described first wireless terminal region of described control signal search;
Step S40, when there is the second wireless terminal of failed cluster, is set as repeater by the first wireless terminal searching described second wireless terminal;
Step S50, is controlled described repeater according to described preset routing algorithm wireless signal emission, is networked for described second wireless terminal by described repeater.
The network-building method that the present embodiment provides is mainly used in the access of the wireless terminal in Internet of Things, wireless terminal access is preferably the foundation of repeater particularly, makes detailed description in following examples by for the process of establishing of the networking of wireless terminal in Star Network and repeater.
In the present embodiment, a Star Network is made up of a radio network center and several wireless terminals.When distance between wireless terminal and radio network center exceedes the maximum transmission distance of wireless terminal and radio network center, repeater force transfer must be passed through.
It should be noted that the power dissipation ratio due to repeater is comparatively large, for saving networking cost, wireless terminal is divided into two classes, a class is battery-powered wireless terminal, and another kind of is the wireless terminal with Power supply.Wherein, be embedded with routing algorithm with the wireless terminal of Power supply, when certain Power supply wireless terminal of needs takes on repeater function use, enable embedded routing algorithm, then now this wireless terminal had both served as wireless terminal simultaneously also as repeater.Particularly, radio network center can identify this wireless terminal as battery powered wireless terminal by the status indicator preset when registering in wireless terminal be still the wireless terminal of Power supply, facilitates radio network center correctly can select repeater.
Be understandable that, the first wireless terminal can be set up with radio network center network be connected in the wireless terminal of any one or multiple Power supply, namely can be the repeater of a jumping, also can be the repeater of two jumpings, or the repeater of multi-hop; Second wireless terminal can be in all wireless terminals of failed cluster wherein any one or multiple, comprise the wireless terminal of battery powered wireless terminal and Power supply.
When radio network center and wireless terminal set up network be connected time, radio network center obtains the information of wireless terminal, and the wireless terminal of Power supply is identified according to the information state of wireless terminal, namely determine the first wireless terminal that there is preset routing algorithm in the wireless terminal of current networking.Radio network center controls the first wireless terminal according to the time slot output control signal preset and searches for the second wireless terminal that whether there is failed cluster in the first wireless terminal region.When there is the second wireless terminal of failed cluster, then the first wireless terminal searching the second wireless terminal is set as repeater by radio network center; And control repeater according to preset routing algorithm wireless signal emission, networked by repeater for the second wireless terminal.This process lasts goes down, and finds the wireless terminal of more far-end, finally realizes the networking of all wireless terminals and the foundation of repeater.If there is no the second wireless terminal of failed cluster, then illustrate and completed the networking of all wireless terminals and the foundation of repeater, achieve networking.
When it should be noted that the first wireless terminal that there is multiple preset routing algorithm, the control signal that each first wireless terminal presets time slot output according to radio network center respectively searches for the second wireless terminal that whether there is failed cluster in oneself region; If when searching second wireless terminal, then radio network center searches in multiple first wireless terminals of the second wireless terminal all, random appointment one of them as repeater according to preset routing algorithm wireless signal emission, networked by repeater for the second wireless terminal; If when searching multiple second wireless terminal, then radio network center is respectively each second wireless terminal and sets one and search for repeater in the first wireless terminal of this second wireless terminal, and controls the networking of this second wireless terminal launched by each repeater wireless signal according to preset routing algorithm.
The present invention by radio network center and wireless terminal set up network be connected time, export control signal according to default time slot and control the wireless terminal that the first wireless network terminal searches for the failed cluster in the first wireless network region, and control repeater and network according to the wireless terminal of preset routing algorithm wireless signal emission with the failed cluster searched.Until the networking of all wireless terminals and the foundation of repeater, thus realize networking.Relative to prior art, decrease the foundation of repeater, the present invention can reduce networking cost.
Further, with reference to Fig. 2, based on above-described embodiment, in the present embodiment, also comprise after above-mentioned steps S50:
Step S60, detecting real-time is current sets up the 3rd wireless terminal that whether there is off-grid in the described wireless terminal that network is connected with radio network center;
Step S70, when existence the 3rd wireless terminal, send a control signal to according to default time slot and currently to set up repeater preset in the described wireless terminal that network is connected with radio network center, determine whether can search described 3rd wireless terminal in described preset repeater region for described preset repeater according to described control signal;
Step S80, when searching the 3rd wireless terminal, is appointed as the new repeater of described 3rd wireless terminal by the described preset repeater searching described 3rd wireless terminal;
Step S90, is controlled described preset repeater according to described preset routing algorithm wireless signal emission, is networked for described 3rd wireless terminal by described preset repeater.
In the present embodiment, the 3rd wireless terminal sets up all wireless terminals that network is connected, and can be battery powered wireless terminal, also can be the wireless terminal of Power supply, the 3rd wireless terminal can be one or more; Preset repeater is embedded with the preset routing algorithm consistent with above-described embodiment, i.e. the wireless terminal of Power supply, and preset repeater can be one or more.
When radio network center and wireless terminal are set up after network is connected, detecting real-time is current sets up the 3rd wireless terminal that whether there is off-grid in the wireless terminal that network is connected with radio network center; Particularly, if the 3rd wireless terminal due to mobile or with the impact of other factors such as the repeater that the 3rd wireless terminal is networked moves and be disconnected the connection with original repeater time, the original repeater be connected with the 3rd wireless terminal finds to be connected to the 3rd wireless terminal, then the information of the 3rd wireless terminal is reported radio network center in time, after radio network center receives the information of the 3rd wireless terminal, broadcast transmission finds the instruction of the 3rd wireless terminal.Send a control signal to according to default time slot and currently to set up repeater preset in the wireless terminal that network is connected with radio network center, preset repeater performs and searches according to control signal the operation that whether there is the 3rd wireless terminal in preset repeater region after receiving the control signal that radio network center sends over; And whether Real-Time Monitoring can search the 3rd wireless terminal.When searching the 3rd wireless terminal, the preset repeater searching the 3rd wireless terminal is appointed as the new repeater of the 3rd wireless terminal; Namely which preset repeater can find the 3rd wireless terminal, then this preset repeater is using the new repeater as the 3rd wireless terminal.If when having multiple preset repeater to be found by the 3rd wireless terminal, then specify one of them preset repeater as the new repeater of the 3rd wireless terminal at random; If can not find the 3rd wireless terminal, then announce the 3rd wireless terminal off-grid.Radio network center controls preset repeater according to the preset routing algorithm wireless signal emission consistent with above-described embodiment, is networked by preset repeater for the 3rd wireless terminal.Be understandable that, according to actual conditions, multiple 3rd wireless terminal can share a preset repeater, also can use multiple preset repeater respectively.The Row sum-equal matrix thus the networking state of Real-Time Monitoring the whole network is gone forward side by side, therefore can improve the reliability of networking.
In the present embodiment, routing algorithm comprises frequency hopping and frequency division multiplexing algorithm, and time division multiplexing algorithm.Control repeater and comprise control repeater by frequency hopping and frequency division multiplexing algorithm wireless signal emission according to preset routing algorithm wireless signal emission, or comprise control repeater by time division multiplexing algorithm wireless signal emission; It should be noted that the frequency resource due to the whole network is limited, repeater can decide to enable frequency hopping and frequency division multiplexing algorithm according to the number of current available frequency resources and still enable time division multiplexing algorithm and complete relay task.When below will perform relay task with repeater, two kinds of situations when frequency resource is many and when frequency resource is fewer are example, to repeater by frequency hopping and frequency division multiplexing algorithm wireless signal emission, or elaborated by time division multiplexing algorithm wireless signal emission:
Particularly, if when the frequency resource of current the whole network is many, namely frequency resource takes it easy, then radio network center controls each repeater and enables embedded preset routing algorithm selection by hop algorithm and frequency division multiplexing algorithm wireless signal emission, completes relay task.Such as, all wireless terminals that repeater is connected with it jump to 436.1 frequencies and carry out wireless telecommunications as working frequency points and radio network center, and another repeater jumps to 321 frequencies as its working frequency points with all wireless terminals that it connects; Wherein, repeater can carry out communication by oneself frequency own be connected wireless terminal; The rest may be inferred, carries out communication between each repeater by different frequent points.Be understandable that, the distribution of frequency can be arranged according to actual needs, does not do further restriction at this.Now, the communication of repeater and radio network center adopts working frequency points, and the communication of repeater and remote wireless terminal adopts relaying frequency.
If when the frequency resource of current the whole network is fewer, namely frequency resource is nervous, then radio network center control repeater is enabled embedded preset routing algorithm selection and completed relay task by time division multiplexing algorithm; Such as, the time resource mean allocation time slot of balance the whole network, gives a repeater by the time slot allocation of first 100 seconds, gives another repeater by the time slot allocation of next 100 seconds, the rest may be inferred, carries out wireless telecommunications between each repeater by the different time points on same frequency.Be understandable that, the distribution of above-mentioned time slot can be arranged according to actual needs, does not do further restriction at this.It should be noted that in the process of time slot allocation, can according to the needs of each repeater to time slot, distribution according to need time slot amount; Also preferred allocation control can be carried out according to the priority of repeater application.In the process of work, each repeater is sent to radio network center by by information such as the quality of services in the number of the remote wireless terminal of relaying and communication process in time, according to circumstances distributes time slot unitedly by radio network center.
The present embodiment meets when frequency is not enough, carries out wireless telecommunications by time division multiplexing algorithm; When frequency is sufficient, leads to and frequency hopping and frequency division multiplexing algorithm can be utilized to carry out wireless telecommunications; Solve the problem of communication blocking, avoid signal disturbing each other.
The present invention also provides a kind of network device, and with reference to Fig. 3, in one embodiment, network device provided by the invention comprises:
Acquisition module 100, for set up when radio network center and wireless terminal network be connected time, obtain the information of described wireless terminal;
Determination module 200, for determine current networking according to the information of described wireless terminal wireless terminal in there is the first wireless terminal of preset routing algorithm;
Output module 300, for outputing control signals to described first wireless terminal according to default time slot, for described first wireless terminal according to the second wireless terminal that whether there is failed cluster in the described first wireless terminal region of described control signal search;
Setting module 400, for when there is the second wireless terminal of failed cluster, is set as repeater by the first wireless terminal searching described second wireless terminal;
Control module 500, for controlling described repeater according to described preset routing algorithm wireless signal emission, is networked by described repeater for described second wireless terminal.
The network-building method that the present embodiment provides is mainly used in the access of the wireless terminal in Internet of Things, wireless terminal access is preferably the foundation of repeater particularly, makes detailed description in following examples by for the process of establishing of the networking of wireless terminal in Star Network and repeater.
In the present embodiment, a Star Network is made up of a radio network center and several wireless terminals.When distance between wireless terminal and radio network center exceedes the maximum transmission distance of wireless terminal and radio network center, repeater force transfer must be passed through.
It should be noted that the power dissipation ratio due to repeater is comparatively large, for saving networking cost, wireless terminal is divided into two classes, a class is battery-powered wireless terminal, and another kind of is the wireless terminal with Power supply.Wherein, be embedded with routing algorithm with the wireless terminal of Power supply, when certain Power supply wireless terminal of needs takes on repeater function use, enable embedded routing algorithm, then now this wireless terminal had both served as wireless terminal simultaneously also as repeater.Particularly, radio network center can identify this wireless terminal as battery powered wireless terminal by the status indicator preset when registering in wireless terminal be still the wireless terminal of Power supply, facilitates radio network center correctly can select repeater.
Be understandable that, the first wireless terminal can be set up with radio network center network be connected in the wireless terminal of any one or multiple Power supply, namely can be the repeater of a jumping, also can be the repeater of two jumpings, or the repeater of multi-hop; Second wireless terminal can be in all wireless terminals of failed cluster wherein any one or multiple, comprise the wireless terminal of battery powered wireless terminal and Power supply.
When radio network center and wireless terminal set up network be connected time, radio network center obtains the information of wireless terminal, and the wireless terminal of Power supply is identified according to the information state of wireless terminal, namely determine the first wireless terminal that there is preset routing algorithm in the wireless terminal of current networking.Radio network center controls the first wireless terminal according to the time slot output control signal preset and searches for the second wireless terminal that whether there is failed cluster in the first wireless terminal region.When there is the second wireless terminal of failed cluster, then the first wireless terminal searching the second wireless terminal is set as repeater by radio network center; And control repeater according to preset routing algorithm wireless signal emission, networked by repeater for the second wireless terminal.This process lasts goes down, and finds the wireless terminal of more far-end, finally realizes the networking of all wireless terminals and the foundation of repeater.If there is no the second wireless terminal of failed cluster, then illustrate and completed the networking of all wireless terminals and the foundation of repeater, achieve networking.
When it should be noted that the first wireless terminal that there is multiple preset routing algorithm, the control signal that each first wireless terminal presets time slot output according to radio network center respectively searches for the second wireless terminal that whether there is failed cluster in oneself region; If when searching second wireless terminal, then radio network center searches in multiple first wireless terminals of the second wireless terminal all, random appointment one of them as repeater according to preset routing algorithm wireless signal emission, networked by repeater for the second wireless terminal; If when searching multiple second wireless terminal, then radio network center is respectively each second wireless terminal and sets one and search for repeater in the first wireless terminal of this second wireless terminal, and controls the networking of this second wireless terminal launched by each repeater wireless signal according to preset routing algorithm.
The present invention by radio network center and wireless terminal set up network be connected time, export control signal according to default time slot and control the wireless terminal that the first wireless network terminal searches for the failed cluster in the first wireless network region, and control repeater and network according to the wireless terminal of preset routing algorithm wireless signal emission with the failed cluster searched.Until the networking of all wireless terminals and the foundation of repeater, thus realize networking.Relative to prior art, decrease the foundation of repeater, the present invention can reduce networking cost.
Further, with reference to Fig. 4, based on above-described embodiment, in the present embodiment, above-mentioned network device also comprises:
Detecting module 600, to set up for detecting real-time is current the 3rd wireless terminal that whether there is off-grid in the described wireless terminal that network is connected with radio network center;
Sending module 700, for when existence the 3rd wireless terminal, send a control signal to according to default time slot and currently to set up repeater preset in the described wireless terminal that network is connected with radio network center, determine whether can search described 3rd wireless terminal in described preset repeater region for described preset repeater according to described control signal;
Designated module 800, for when searching the 3rd wireless terminal, is appointed as the new repeater of described 3rd wireless terminal by the described preset repeater searching described 3rd wireless terminal;
Processing module 900, for controlling described preset repeater according to described preset routing algorithm wireless signal emission, is networked by described preset repeater for described 3rd wireless terminal.
In the present embodiment, the 3rd wireless terminal sets up all wireless terminals that network is connected, and can be battery powered wireless terminal, also can be the wireless terminal of Power supply, the 3rd wireless terminal can be one or more; Preset repeater is embedded with the preset routing algorithm consistent with above-described embodiment, i.e. the wireless terminal of Power supply, and preset repeater can be one or more.
When radio network center and wireless terminal are set up after network is connected, detecting real-time is current sets up the 3rd wireless terminal that whether there is off-grid in the wireless terminal that network is connected with radio network center; Particularly, if the 3rd wireless terminal due to mobile or with the impact of other factors such as the repeater that the 3rd wireless terminal is networked moves and be disconnected the connection with original repeater time, the original repeater be connected with the 3rd wireless terminal finds to be connected to the 3rd wireless terminal, then the information of the 3rd wireless terminal is reported radio network center in time, after radio network center receives the information of the 3rd wireless terminal, broadcast transmission finds the instruction of the 3rd wireless terminal.Send a control signal to according to default time slot and currently to set up repeater preset in the wireless terminal that network is connected with radio network center, preset repeater performs and searches according to control signal the operation that whether there is the 3rd wireless terminal in preset repeater region after receiving the control signal that radio network center sends over; And whether Real-Time Monitoring can search the 3rd wireless terminal.When searching the 3rd wireless terminal, the preset repeater searching the 3rd wireless terminal is appointed as the new repeater of the 3rd wireless terminal; Namely which preset repeater can find the 3rd wireless terminal, then this preset repeater is using the new repeater as the 3rd wireless terminal.If when having multiple preset repeater to be found by the 3rd wireless terminal, then specify one of them preset repeater as the new repeater of the 3rd wireless terminal at random; If can not find the 3rd wireless terminal, then announce the 3rd wireless terminal off-grid.Radio network center controls preset repeater according to the preset routing algorithm wireless signal emission consistent with above-described embodiment, is networked by preset repeater for the 3rd wireless terminal.Be understandable that, according to actual conditions, multiple 3rd wireless terminal can share a preset repeater, also can use multiple preset repeater respectively.The Row sum-equal matrix thus the networking state of Real-Time Monitoring the whole network is gone forward side by side, therefore can improve the reliability of networking.
In the present embodiment, routing algorithm comprises frequency hopping and frequency division multiplexing algorithm, and time division multiplexing algorithm.Control repeater and comprise control repeater by frequency hopping and frequency division multiplexing algorithm wireless signal emission according to preset routing algorithm wireless signal emission, or comprise control repeater by time division multiplexing algorithm wireless signal emission; It should be noted that the frequency resource due to the whole network is limited, repeater can decide to enable frequency hopping and frequency division multiplexing algorithm according to the number of current available frequency resources and still enable time division multiplexing algorithm and complete relay task.When below will perform relay task with repeater, two kinds of situations when frequency resource is many and when frequency resource is fewer are example, to repeater by frequency hopping and frequency division multiplexing algorithm wireless signal emission, or elaborated by time division multiplexing algorithm wireless signal emission:
Particularly, if when the frequency resource of current the whole network is many, namely frequency resource takes it easy, then radio network center controls each repeater and enables embedded preset routing algorithm selection by hop algorithm and frequency division multiplexing algorithm wireless signal emission, completes relay task.Such as, all wireless terminals that repeater is connected with it jump to 436.1 frequencies and carry out wireless telecommunications as working frequency points and radio network center, and another repeater jumps to 321 frequencies as its working frequency points with all wireless terminals that it connects; Wherein, repeater can carry out communication by oneself frequency own be connected wireless terminal; The rest may be inferred, carries out communication between each repeater by different frequent points.Be understandable that, the distribution of frequency can be arranged according to actual needs, does not do further restriction at this.Now, the communication of repeater and radio network center adopts working frequency points, and the communication of repeater and remote wireless terminal adopts relaying frequency.
If when the frequency resource of current the whole network is fewer, namely frequency resource is nervous, then radio network center control repeater is enabled embedded preset routing algorithm selection and completed relay task by time division multiplexing algorithm; Such as, the time resource mean allocation time slot of balance the whole network, gives a repeater by the time slot allocation of first 100 seconds, gives another repeater by the time slot allocation of next 100 seconds, the rest may be inferred, carries out wireless telecommunications between each repeater by the different time points on same frequency.Be understandable that, the distribution of above-mentioned time slot can be arranged according to actual needs, does not do further restriction at this.It should be noted that in the process of time slot allocation, can according to the needs of each repeater to time slot, distribution according to need time slot amount; Also preferred allocation control can be carried out according to the priority of repeater application.In the process of work, each repeater is sent to radio network center by by information such as the quality of services in the number of the remote wireless terminal of relaying and communication process in time, according to circumstances distributes time slot unitedly by radio network center.
The present embodiment meets when frequency is not enough, carries out wireless telecommunications by time division multiplexing algorithm; When frequency is sufficient, leads to and frequency hopping and frequency division multiplexing algorithm can be utilized to carry out wireless telecommunications; Solve the problem of communication blocking, avoid signal disturbing each other.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.