The method for switching network and system of NB-IoT terminals
Technical field
The present invention relates to arrowband internet of things field, a kind of method for switching network of NB-IoT terminals is especially related to
And system.
Background technology
NB-IoT is the abbreviation based on cellular arrowband Internet of Things (Narrow Band-Internet of Things), is
A kind of technology of Internet of things, is an important branch of all things on earth internet, with low cost, low-power consumption, extensively cover the features such as, it is fixed
Positioned at carrier-class, based on the low rate Internet of Things market for authorizing frequency spectrum, gather around and have broad application prospects.NB-IoT is Internet of Things
(IoT) the emerging technology in one, field, supports that low power consuming devices are connected in the cellular data of wide area network, and also referred to as low-power consumption is wide
Domain net (LPWA).NB-IoT supports stand-by time is long, efficient connection to network connectivity requirements higher device.
In numerous applications of Internet of Things, NB-IoT terminals (i.e. the internet-of-things terminal based on NB-IOT) are usually required that always
In presence, however, the coverage of current NB-IOT networks is still limited, when NB-IoT terminals are in NB-IOT networks
Coverage outside when, NB-IoT terminals are then in going offline state, it is impossible to transmit data, influence NB-IoT stability and can
By property, so that user cannot understand field conditions, Consumer's Experience is influenceed.
Therefore, how to ensure that NB-IoT terminals are constantly in presence, improve the stability and reliability of NB-IoT, be
The technical problem of current urgent need to resolve.
The content of the invention
The main object of the present invention is the method for switching network and system for providing a kind of NB-IoT terminals, it is intended to improve NB-
The stability and reliability of IoT.
To achieve these objectives, the embodiment of the present invention proposes a kind of method for switching network of NB-IoT terminals, methods described bag
Include following steps:
When NB-IoT terminals detect NB-IoT net drops, start GPRS and search net register flow path to access GPRS network;
Whether NB-IoT terminal judges meet NB-IoT entry conditions;
When the NB-IoT entry conditions are met, the NB-IoT terminals start NB-IoT and search net register flow path to switch
Return the NB-IoT networks.
Alternatively, the step of whether the NB-IoT terminal judges meet NB-IoT entry conditions includes:
When reaching the interval time of default start by set date, the NB-IoT terminals judge to meet NB-IoT trip bars
Part.
Alternatively, the span of the interval time is 20-40 minutes.
Alternatively, the step of whether the NB-IoT terminal judges meet NB-IoT entry conditions includes:
When NB-IoT enabled instructions are received, the NB-IoT terminals judge to meet NB-IoT entry conditions.
Alternatively, also include before the step of whether the NB-IoT terminal judges meet NB-IoT entry conditions:
The NB-IoT terminals send positional information by the GPRS network to the system server;
User terminal obtains the positional information from the system server, and exports the positional information;When receiving
When starting order, NB-IoT enabled instructions are sent to the system server;
The system server receives the NB-IoT enabled instructions, and the NB-IoT enabled instructions is sent to described
NB-IoT terminals.
Alternatively, the step of output positional information includes:Show the positional information and/or voice broadcast institute
State positional information.
Alternatively, the positional information is the LBS information of location information or GPRS.
Alternatively, methods described also includes:
System server pushes the current network online information of the NB-IoT terminals to user terminal;
The user terminal shows network connection state according to the network online information.
Alternatively, the network online information includes NB-IoT online information and GPRS online information, the user terminal
The step of showing network connection state according to the network online information includes:
When the network online information is NB-IoT online information, the user terminal displays NB-IoT icons;
When the network online information is GPRS online information, the user terminal displays GPRS icons.
Alternatively, the NB-IoT terminals start NB-IoT and search net register flow path to switch back into the step of the NB-IoT networks
Suddenly include:
The NB-IoT terminals close GPRS module, and open NB-IoT modules, carry out NB-IoT and search net registration;
When NB-IoT searches net to succeed in registration, the NB-IoT networks are accessed;
When NB-IoT searches net registration failure, start GPRS and search net register flow path to access the GPRS network again.
Alternatively, the step of startup GPRS searches net register flow path to access GPRS network includes:
NB-IoT modules are closed, and opens GPRS module, carried out GPRS and search net registration;
When GPRS searches net to succeed in registration, the GPRS network is accessed.
The embodiment of the present invention proposes a kind of network switching system of NB-IoT terminals simultaneously, and the system includes NB-IoT ends
End, the NB-IoT terminals are used for:
When detecting NB-IoT net drops, start GPRS and search net register flow path to access GPRS network;Judge whether full
Sufficient NB-IoT entry conditions;When the NB-IoT entry conditions are met, start NB-IoT and search net register flow path to switch back into
State NB-IoT networks.
Alternatively, the NB-IoT terminals are used for:
When reaching the interval time of default start by set date, judgement meets the NB-IoT entry conditions.
Alternatively, the NB-IoT terminals are used for:
When NB-IoT enabled instructions are received, the NB-IoT terminals judge to meet NB-IoT entry conditions.
Alternatively, the system also includes system server and user terminal, and the NB-IoT terminals are additionally operable to:By institute
State GPRS network and send positional information to the system server;
The system server is used for:The positional information is forwarded to the user terminal;Receive the user terminal hair
The NB-IoT enabled instructions sent, and the NB-IoT enabled instructions are sent to the NB-IoT terminals;
The user terminal is used for:The positional information that the system server sends is received, and exports the positional information;
When startup order is received, NB-IoT enabled instructions are sent to the system server.
Alternatively, the user terminal is used for:Show positional information described in the positional information and/or voice broadcast.
Alternatively, the system server is additionally operable to:The current network of the NB-IoT terminals is pushed to user terminal to exist
Line information;
The user terminal is additionally operable to:Network connection state is shown according to the network online information.
Alternatively, the network online information includes NB-IoT online information and GPRS online information, the user terminal
For:
When the network online information is NB-IoT online information, NB-IoT icons are shown;
When the network online information is GPRS online information, GPRS icons are shown.
Alternatively, the NB-IoT terminals include GPRS module, NB-IoT modules and control module, and the control module is used
In:
When the NB-IoT enabled instructions are received, the GPRS module is closed, and open the NB-IoT modules, entered
Row NB-IoT searches net registration;When NB-IoT searches net to succeed in registration, the NB-IoT networks are accessed;Lost when NB-IoT searches net registration
When losing, start GPRS and search net register flow path to access the GPRS network again.
Alternatively, the NB-IoT terminals include GPRS module, NB-IoT modules and control module, and the control module is used
In:
When NB-IoT net drops are detected, the NB-IoT modules are closed, and open the GPRS module, carried out
GPRS searches net registration;When GPRS searches net to succeed in registration, the GPRS network is accessed.
The method for switching network and system of a kind of NB-IoT terminals that the embodiment of the present invention is provided, by being NB-IoT ends
End increases GPRS module to support the access of GPRS network, realizes NB-IoT networks to the switching of GPRS network, and by timing
Start NB-IoT networks or start the mode of NB-IoT networks according to NB-IoT enabled instructions, realize GPRS network to NB-IoT nets
The switching of network, so as to without the support of mobile operator network sides, be achieved that NB-IoT networks with GPRS network without seaming and cutting
Change, the universe network coverage can be almost realized to NB-IoT terminals, both maintained the low-power consumption advantage of NB-IoT terminals, also ensure that
NB-IoT terminals can be always on, improves the stability and reliability of NB-IoT, greatly extends range of application, lifting
Consumer's Experience.
Brief description of the drawings
Fig. 1 is the flow chart of the method for switching network of the NB-IoT terminals of first embodiment of the invention;
Fig. 2 is the circuit connection diagram of NB-IoT terminals in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for switching network of the NB-IoT terminals of second embodiment of the invention;
Fig. 4 is the flow chart of the method for switching network of the NB-IoT terminals of third embodiment of the invention;
Fig. 5 is that location server judges the default of NB-IoT terminals position according to positional information in the embodiment of the present invention
In the range of flow chart the step of whether have NB-IoT base stations;
Fig. 6 is that location server calculates showing for NB-IoT terminals and the distance between NB-IoT base stations in the embodiment of the present invention
It is intended to;
Fig. 7 is the module diagram of the network switching of the NB-IoT terminals of fourth embodiment of the invention;
Fig. 8 is the module diagram of the NB-IoT terminals in Fig. 7;
Fig. 9 is the module diagram of the network switching of the NB-IoT terminals of fifth embodiment of the invention;
Figure 10 is the module diagram of the network switching of the NB-IoT terminals of sixth embodiment of the invention;
Figure 11 is the module diagram of the location server in Figure 10;
Figure 12 is the module diagram of the analysis judge module in Figure 11.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
It is exemplary to scheme the embodiment of description, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " " used herein, " one
It is individual ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that what is used in specification of the invention arranges
Diction " including " refer to the presence of the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
One or more other features, integer, step, operation, element, component and/or their group.It should be understood that when we claim unit
Part is " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also exist
Intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connection or wireless coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes or any cell of listing item and all combines.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), with art of the present invention in those of ordinary skill general understanding identical meaning.Should also
Understand, those terms defined in such as general dictionary, it should be understood that with the context with prior art
The consistent meaning of meaning, and unless by specific definitions as here, will not otherwise use idealization or excessively formal implication
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " user terminal " both include wireless communication
The equipment of number receiver, the equipment of its wireless signal receiver for only possessing non-emissive ability, and including receiving and transmitting hardware
Equipment, its have can on bidirectional communication link, perform two-way communication reception and transmitting hardware equipment.This equipment
Can include:Honeycomb or other communication equipments, it has single line display or multi-line display or is shown without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can
With combine voice, data processing, fax and/or its communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), it can include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
Go through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, its have and/or conventional laptop and/or palmtop computer including radio frequency receiver or its
His equipment." terminal " used herein above, " user terminal " they can be portable, can transport, installed in the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " user terminal " can also be communication terminal, on
Network termination, music/video playback terminal, for example, can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or the equipment such as mobile phone, or intelligent television, Set Top Box with music/video playing function.
Embodiment one
Reference picture 1, propose first embodiment of the invention NB-IoT terminals method for switching network, methods described include with
Lower step:
When S11, NB-IoT terminal detect NB-IoT net drops, start GPRS and search net register flow path to access GPRS nets
Network.
In the embodiment of the present invention, NB-IoT terminals are improved.As shown in Fig. 2 NB-IoT terminals not only include NB-
The power amplifier (PowerAmplifier, PA) of IoT modules and transmitting radio frequency, also add general packet radio service technology
(General Packet Radio Service, GPRS) module, match circuit, RF switch and control module.
The bandwidth of the frequency range of NB-IOT and GPRS is about the same, therefore can be with duplex radio frequency PA during sending signal;And carry out
The offline mode of NB-IOT and GPRS is defined, and offline mode refers to that the radio frequency part of NB-IOT and GPRS is stopped, and is in
Line (falling net) state;Control module is used to control RF switch changeable connection GPRS module or NB-IoT modules, so that
GPRS and NB-IoT enters networked mode or offline mode, so that NB-IoT terminals access GPRS network or NB-IoT nets
Network, is received and sending signal by GPRS network or NB-IoT networks.In view of the low power consumption characteristic of NB-IoT, NB-IoT terminals can
Preferentially to use NB-IoT networks.
In this step S11, when NB-IoT net drops are detected, control module then controls RF switch to be switched to GPRS
Module, and close NB-IoT modules so that NB-IOT is in offline mode, opens GPRS module, carries out GPRS and searches net registration, when
When GPRS searches net and succeeds in registration, GPRS network is accessed, NB-IOT terminals is constantly in presence.
Whether S12, NB-IoT terminal judges meet NB-IoT entry conditions.When NB-IoT entry conditions are met, enter
Step S13.
In this step S12, after NB-IoT terminals access GPRS network, then judge whether to meet NB-IoT entry conditions.
Alternatively, NB-IoT terminals have preset the interval time of start by set date, when the interval of default start by set date
When time reaches, NB-IoT terminals then judge to meet NB-IoT entry conditions.Interval time can set according to actual needs, such as
Between its span may be set in 20-40 minutes, preferably 30 minutes, i.e.,:After GPRS network is accessed, NB-IoT terminals are opened
Beginning timing, starts a NB-IoT and searches net register flow path, until accessing NB-IoT networks every Preset Time (such as 30 minutes).
Alternatively, when NB-IoT enabled instructions are received, NB-IoT terminals then judge to meet NB-IoT entry conditions.
NB-IoT enabled instructions can derive from user terminal, and be forwarded by system server, and this mode will in a second embodiment
It is described in detail.NB-IoT enabled instructions can also derive from location server, and be sent by system server, this mode
To be described in detail in the third embodiment.
S13, NB-IoT terminal start NB-IoT and search net register flow path to switch back into NB-IoT networks.
In this step S13, when NB-IoT entry conditions are met, NB-IoT terminals then start NB-IoT and search net registration flow
Journey, is switched to NB-IoT modules, and close GPRS module so that GPRS is in flight mould by control module control RF switch
Formula, opens NB-IoT modules, carries out NB-IoT and searches net registration, when NB-IoT searches net to succeed in registration, accesses NB-IoT networks.
When NB-IoT searches net registration failure, then start GPRS and search net register flow path to access GPRS network again, i.e.,:Control
Molding block controls RF switch to be switched to GPRS module again, and closes NB-IoT modules so that NB-IOT is in offline mode, opens
GPRS module is opened, GPRS is carried out and is searched net registration, when GPRS searches net to succeed in registration, access GPRS network, make NB-IOT terminals one
Presence, and return to step S12 are directly in, wait NB-IoT next time to start.
The method for switching network of the NB-IoT terminals of the embodiment of the present invention, by for NB-IoT terminals increase GPRS module come
Support the access of GPRS network, realize NB-IoT networks to the switching of GPRS network, and by start by set date NB-IoT networks or
Start the mode of NB-IoT networks according to NB-IoT enabled instructions, GPRS network to the switching of NB-IoT networks is realized, so that nothing
The support of mobile operator network sides is needed, the seamless switching of NB-IoT networks and GPRS network is achieved that, almost can be to NB-
IoT terminals realize the universe network coverage, have both maintained the low-power consumption advantage of NB-IoT terminals, also ensure that NB-IoT terminals can one
It is straight online, the stability and reliability of NB-IoT are improve, range of application is greatly extended, improve Consumer's Experience.
Embodiment two
Reference picture 3, propose second embodiment of the invention NB-IoT terminals method for switching network, methods described include with
Lower step:
When S21, NB-IoT terminal detect NB-IoT net drops, start GPRS and search net register flow path to access GPRS nets
Network, and positional information is sent to system server by GPRS network.
In this step S21, start GPRS and search net register flow path to access the idiographic flow and first embodiment of GPRS network
In step S11 it is identical, will not be repeated here.
After GPRS network is accessed, for mobile operator networks (such as GPRS network) to the unfixed spy of IP address of terminal
Point, NB-IoT terminals take connected mode long to realize that low time delay is transmitted in real time with system server.In order to ensure data channel
Unimpeded, length has been connected by timing to the scheme of system server transmission idle data bag to be set up before safeguarding the two
Connecting path long, the idle data bag is also called heartbeat packet.
In this step S21, after GPRS network is accessed, NB-IoT terminals are sent out by GPRS network timing to system server
Positional information is sent, the positional information can be location information, such as global positioning system (Global Positioning
System, GPS) information, Beidou satellite navigation system (BeiDou Navigation Satellite System, BDS) information,
GLONASS satellite navigation system (GLONASS) information etc., or GPRS based on location-based service (LocationBased
Service, LBS) information.
S22, user terminal obtain positional information, and output position information from system server.Judge whether to receive and open
Dynamic order, when startup order is received, into step S23.
In this step S22, positional information is sent to user terminal by system server, user terminal receiving position information,
And on screen display location information or voice broadcast positional information pointing out user.Wherein, when positional information for positioning is believed
During breath, user terminal directly parses the location information and obtains position coordinates, so as to obtain NB-IoT terminal present positions area
Domain;When LBS information of the positional information for GPRS, user terminal calculates NB-IoT ends then according to the three-point fox method of GPRS
The position coordinates at end, so as to obtain NB-IoT terminal present positions region.
In certain embodiments, when LBS information of the positional information for GPRS, system server is by the LBS information of GPRS
It is sent to location server (such as GPRS address servers);Location server calculates NB- according to the three-point fox method of GPRS
The position coordinates of IoT terminals, and it is sent to system server;Position coordinates is sent to user terminal by system server again, is used
Family terminal obtains NB-IoT terminal present positions region according to position coordinates.
After user learns NB-IoT terminal present positions region, the arrangement information according to NB-IOT networks judges NB-
Whether IoT terminal present positions region has the NB-IOT network coverages, when the NB-IOT network coverages are determined with, then can be to
User terminal issue starts order, after user terminal receives startup order, then into step S24, is sent to system server
NB-IoT enabled instructions.
S23, user terminal send NB-IoT enabled instructions to system server.
In this step S23, after user terminal receives startup order, then send NB-IoT startups to system server and refer to
Order.
S24, system server receive NB-IoT enabled instructions, and NB-IoT enabled instructions are sent into NB-IoT terminals.
In this step S24, after system server receives the NB-IoT enabled instructions of user terminal transmission, by GPRS nets
NB-IoT enabled instructions are sent to NB-IoT terminals by network.
S25, NB-IoT terminal receive NB-IoT enabled instructions, and starting NB-IoT according to NB-IoT enabled instructions searches net registration
Flow is switching back into NB-IoT networks.
In this step S25, after NB-IoT terminals receive NB-IoT enabled instructions, then judge to meet NB-IoT trip bars
Part, starts NB-IoT and searches net register flow path to switch back into NB-IoT networks according to NB-IoT enabled instructions.Wherein, NB-IoT is started
It is identical with the step S13 in first embodiment to switch back into the idiographic flow of NB-IoT networks to search net register flow path, does not go to live in the household of one's in-laws on getting married herein
State.
Further, system server also pushes the current network online information of NB-IoT terminals, user to user terminal
Terminal shows network connection state always according to network online information.The network online information include NB-IoT online information and
GPRS online information.When network online information is NB-IoT online information, user terminal displays NB-IoT icons represent current
Network connection state for NB-IoT networks it is online;When network online information is GPRS online information, user terminal displays
GPRS icons, represent current network connection state for GPRS network is online.So as to so that user can at any time understand NB-IoT
The current network connection state of terminal.
For example:In step S21, after NB-IoT terminals access GPRS network, by GPRS network to system server
The message that GPRS succeeds in registration is sent, system server then pushes GPRS online information to user terminal, and user terminal is then by net
Network icon is changed into GPRS from NB-IoT, represents current network connection state for GPRS network is online.In step S25, NB-IoT
After terminal accesses NB-IoT networks, the message that NB-IoT succeeds in registration, system are sent to system server by NB-IoT networks
Server then pushes NB-IoT online information to user terminal, and network icon is then changed into NB-IoT, table by user terminal from GPRS
Show current network connection state for NB-IoT networks are online.
In the specific implementation, specific application (APP) can be in the user terminal installed, user terminal is connect by the application
Receive and export the positional information of NB-IoT terminals, and reception system server network online information and display network connection shape
State, and receive the startup order of user and send NB-IoT enabled instructions, etc. to system server.
The method for switching network of the NB-IoT terminals of the present embodiment, is supported by increasing GPRS module for NB-IoT terminals
The access of GPRS network, realizes NB-IoT networks to the switching of GPRS network, then obtain NB-IoT terminals by user terminal
Positional information, so that user issues the startup order of NB-IoT according to the deployment information of positional information and NB-IoT networks, realizes
GPRS network to NB-IoT networks switching, so as to without the support of mobile operator network sides, be achieved that NB-IoT networks
With the seamless switching of GPRS network, the universe network coverage can be almost realized to NB-IoT terminals, both maintain NB-IoT terminals
Low-power consumption advantage, also ensure that NB-IoT terminals can be always on, improve the stability and reliability of NB-IoT, greatly
Range of application is extended, Consumer's Experience is improved.
Embodiment three
Reference picture 4, propose third embodiment of the invention NB-IoT terminals method for switching network, methods described include with
Lower step:
When S31, NB-IoT terminal detect NB-IoT net drops, start GPRS and search net register flow path to access GPRS nets
Network, and positional information is sent to system server by GPRS network.
This step S31 is identical with the step S21 in second embodiment, will not be repeated here.
S32, the positional information of location server reception system server forwarding, NB-IoT terminals are judged according to positional information
Whether there are NB-IoT base stations in the preset range of position.When having NB-IoT in the preset range of NB-IoT terminals position
During base station, into step S33;When there is no NB-IoT base stations in the preset range of NB-IoT terminals position, location-based service
Device refuses response, and continues to next positional information and judged.
In the present embodiment, location server judged according to positional information be in the preset range of NB-IoT terminals position
The no idiographic flow for having NB-IoT base stations is preferably as shown in figure 5, comprise the following steps:
S321, the position coordinates that NB-IoT terminals are determined according to positional information.
In this step S321, when positional information is location information, location server parses the location information, direct access
The position coordinates of NB-IoT terminals.When LBS information of the positional information for GPRS, three-point fix of the location server according to GPRS
Method, calculates the position coordinates of NB-IoT terminals.Wherein, the three-point fox method of GPRS is the calculating of comparative maturity in the prior art
Method, will not be described here.
S322, the NB-IoT base stations that the region nearest from NB-IoT terminals is found according to position coordinates.
In this step S322, administrative region of the location server according to where position coordinates obtains NB-IoT terminals;According to
Rank ascending order in administrative region is searched with the presence or absence of NB-IoT base stations in administrative region step by step, once find a line
When there is NB-IoT base stations in the domain of administrative division, then stop continuing to search for, and the NB-IoT base stations that will be found are used as from NB-IoT ends
The NB-IoT base stations in the nearest region in end.The ascending order of the administrative region rank is for example at county level, area's level, city-level, provincial
Deng.
For example, location server first look for NB-IoT terminals where administrative areas at the county level domain in whether have NB-IoT bases
Stand;When there are NB-IoT base stations in administrative areas at the county level domain, then stop continuing to search for, and by the NB-IoT bases in administrative areas at the county level domain
The NB-IoT base stations stood as the region nearest from NB-IoT terminals;When there is no NB-IoT base stations in administrative areas at the county level domain, then
Continue to search for whether there are NB-IoT base stations in area level administrative region, the rest may be inferred.
Further, in order to save server lookup operation time, preferably only carried out in the administrative region of pre-set level
Search, such as only searched in city-level administrative region, typically not across city, the region trans-city to some can be with special setting.
For example, when at county level and area level administrative region all without NB-IoT base stations, location server continues to search for city-level
Whether there is NB-IoT base stations in administrative region;When there are NB-IoT base stations in city-level administrative region, then stop continuing to search for, and
Using the NB-IoT base stations in city-level administrative region as the region nearest from NB-IoT terminals NB-IoT base stations;When city-level is administrative
When there is no NB-IoT base stations in region, still stop continuing to search for, and directly judge the default model of NB-IoT terminals position
Enclosing interior does not have NB-IoT base stations.
S323, calculate the distance between NB-IoT terminals and the NB-IoT base stations found.
In this step S323, after location server finds the NB-IoT base stations in the region nearest from NB-IoT terminals, obtain
The position coordinates of the NB-IoT base stations, and the current position coordinates meter of position coordinates and NB-IoT terminals according to NB-IoT base stations
Calculate distance therebetween.
As shown in Figure 6, it is assumed that D is NB-IoT terminals, position coordinates is (x, y, z), and A, B, C are three from NB-IoT terminals
The NB-IoT base stations in nearest region, position coordinates is respectively (x0, y0, z0), (x1, y1, z1), (x2, y2, z2), position clothes
Business device according to below equation calculate NB-IoT terminal Ds respectively with the distance between NB-IoT base stations A, B, C d0, d1, d2:
d02=(x0-x)2+(y0-y)2+(z0-z)2;
d12=(x1-x)2+(y1-y)2+(z1-z)2;
d22=(x2-x)2+(y2-y)2+(z2-z)2。
Whether there is in S324, the NB-IoT base stations found of judgement with the distance between NB-IoT terminals less than or equal to threshold
The NB-IoT base stations of value.When exist with the distance between NB-IoT terminals less than or equal to threshold value NB-IoT base stations when, enter
Step S325;When in the absence of with the distance between NB-IoT terminals less than or equal to threshold value NB-IoT base stations when, into step
S326。
The threshold value can set as needed, it is alternatively possible to maximum coverage range according to NB-IoT base stations sets
Determine threshold value.For example, third generation partner program (3rd Generation Partnership Project, 3GPP) is specified
10km as threshold value, judge to whether there is in NB-IoT base stations with the distance between NB-IoT terminals less than or equal to 10km's
Whether NB-IoT base stations, such as judge foregoing d0, d1, d2 less than or equal to 10km respectively.
There are NB-IoT base stations in S325, the preset range of judgement NB-IoT terminals position.
When exist in the base station found with the distance between NB-IoT terminals less than or equal to threshold value NB-IoT base stations when,
As when any one is less than 10km in foregoing d0, d1, d2, location server then judges the default model of NB-IoT terminals position
There are NB-IoT base stations in enclosing.
There is no NB-IoT base stations in S326, the preset range of judgement NB-IoT terminals position.
When in the base station found in the absence of the NB-IoT base stations with the distance between NB-IoT terminals less than or equal to threshold value
When, when such as foregoing d0, d1, d2 are all higher than 10km, location server is then judged in the preset range of NB-IoT terminals position
There is no NB-IoT base stations.Additionally, when location server only searches NB-IoT base stations in the administrative region of pre-set level, if
NB-IoT base stations are not found, there is no NB-IoT base stations in the preset range for yet judging NB-IoT terminals position.
It will be understood by those skilled in the art that the default model except judging NB-IoT terminals position using aforesaid way
Whether have outside NB-IoT base stations in enclosing, can also be differentiated using other manner of the prior art, it is numerous to list herein
Repeat.
S33, location server send announcement information to system server.
In this step S33, when there is NB-IoT base stations in the preset range of NB-IoT terminals position, location server
Then announcement information is sent to system server.The announcement information can inform system server NB-IoT terminals position
Preset range in have NB-IoT base stations information, or NB-IoT start order.
When S34, system server receive announcement information, NB-IoT enabled instructions are sent to NB-IoT terminals.
In this step S34, the announcement information that system server receiving position server sends passes through according to announcement information
GPRS network sends NB-IoT enabled instructions to NB-IoT terminals.
When S35, NB-IoT terminal receive NB-IoT enabled instructions, start NB-IoT and search net register flow path to switch back into
NB-IoT networks.
In this step S35, after NB-IoT terminals receive NB-IoT enabled instructions, judgement meets NB-IoT entry conditions,
NB-IoT is then started according to NB-IoT enabled instructions and searches net register flow path to switch back into NB-IoT networks, wherein, start NB-IoT
It is identical with the step S13 in first embodiment to switch back into the idiographic flow of NB-IoT networks to search net register flow path, does not go to live in the household of one's in-laws on getting married herein
State.
The method for switching network of the NB-IoT terminals of the present embodiment, is supported by increasing GPRS module for NB-IoT terminals
The access of GPRS network, realizes NB-IoT networks to the switching of GPRS network, then send position by NB-IoT terminal to server
Confidence ceases, so that server is judged in the preset range of NB-IoT terminals position based on the positional information of NB-IoT terminals
Whether there are NB-IoT base stations, realize GPRS network to the switching of NB-IoT networks, so that without the branch of mobile operator network sides
Hold, be achieved that the seamless switching of NB-IoT networks and GPRS network, can almost realize that universe network covers to NB-IoT terminals
Lid, had both maintained the low-power consumption advantage of NB-IoT terminals, also ensured that NB-IoT terminals can be always on, improve NB-IoT's
Stability and reliability, greatly extend range of application, improve Consumer's Experience.
Example IV
Reference picture 7, proposes the network switching system of the NB-IoT terminals of fourth embodiment of the invention, and the system includes
NB-IoT terminals, the NB-IoT terminals are used for:
When detecting NB-IoT net drops, start GPRS and search net register flow path to access GPRS network;As access GPRS
After network, judge whether to meet NB-IoT entry conditions;When NB-IoT entry conditions are met, start NB-IoT and search net registration flow
Journey is switching back into NB-IoT networks.
As shown in figure 8, NB-IoT terminals include GPRS module, NB-IoT modules and control module, the control module is used
In:
When NB-IoT net drops are detected, NB-IoT modules are closed so that NB-IoT is in offline mode, and opens
GPRS module, carries out GPRS and searches net registration, when GPRS searches net to succeed in registration, accesses GPRS network, and judge whether to meet NB-
IoT entry conditions;
When NB-IoT entry conditions are met, GPRS module is closed so that GPRS is in offline mode, and opens NB-IoT
Module, carries out NB-IoT and searches net registration, when NB-IoT searches net to succeed in registration, accesses NB-IoT networks, when NB-IoT searches net note
During volume failure, restart GPRS and search net register flow path to access GPRS network again.
In the present embodiment, NB-IoT terminals have preset the interval time of start by set date, when default start by set date
When interval time reaches, control module then judges to meet NB-IoT entry conditions.Interval time can set according to actual needs,
Between being may be set in 20-40 minutes such as its span, preferably 30 minutes, i.e.,:After GPRS network is accessed, control module is opened
Beginning timing, starts a NB-IoT and searches net register flow path, until accessing NB-IoT networks every Preset Time (such as 30 minutes).
The network switching system of the NB-IoT terminals of the present embodiment, is supported by increasing GPRS module for NB-IoT terminals
The access of GPRS network, realizes NB-IoT networks to the switching of GPRS network, and by way of start by set date NB-IoT networks,
GPRS network to the switching of NB-IoT networks is realized, so as to without the support of mobile operator network sides, be achieved that NB-IoT
Network and the seamless switching of GPRS network, can almost realize the universe network coverage to NB-IoT terminals, both maintain NB-IoT
The low-power consumption advantage of terminal, also ensures that NB-IoT terminals can be always on, improves the stability and reliability of NB-IoT, pole
Big extends range of application, improves Consumer's Experience.
Embodiment five
Reference picture 9, proposes the network switching system of the NB-IoT terminals of fifth embodiment of the invention, and the system includes
NB-IoT terminals, system server and user terminal.
NB-IoT terminals in the present embodiment are essentially identical with the NB-IoT terminals of fourth embodiment, but judge whether to meet
The mode of NB-IoT entry conditions is different, specially:After NB-IoT terminals access GPRS network, taken to system by GPRS network
Business device sends positional information, and the positional information can be location information, such as GPS information, BDS information, GLONASS information,
Can also be the LBS information of GPRS;When the NB-IoT enabled instructions of system server transmission are received, then judge to meet NB-
IoT entry conditions, start NB-IoT and search net register flow path to switch back into NB-IoT networks according to NB-IoT enabled instructions.
System server:For receiving the positional information of NB-IoT terminals and being transmitted to user terminal;Receive user terminal
The NB-IoT enabled instructions of transmission, and NB-IoT enabled instructions are sent to NB-IoT terminals.
User terminal:For the positional information that reception system server sends, and output position information;When receiving startup
During order, NB-IoT enabled instructions are sent to system server.
After user terminal obtains positional information, display location information or voice broadcast positional information are pointing out on screen
User.Wherein, when positional information is location information, user terminal directly parses the location information and obtains position coordinates, so that
Obtain NB-IoT terminal present positions region;When LBS information of the positional information for GPRS, user terminal is then according to GPRS
Three-point fox method, the position coordinates of NB-IoT terminals is calculated, so as to obtain NB-IoT terminal present positions region.
After user learns NB-IoT terminal present positions region, the arrangement information according to NB-IOT networks judges NB-
Whether IoT terminal present positions region has the NB-IOT network coverages, when the NB-IOT network coverages are determined with, then can be to
User terminal issue starts order, after user terminal receives startup order, NB-IoT enabled instructions is sent to system server.
In certain embodiments, the system also includes location server (such as GPRS address servers), works as positional information
For GPRS LBS information when, the LBS information of GPRS is sent to location server by system server;Location server according to
The three-point fox method of GPRS, calculates the position coordinates of NB-IoT terminals, and is sent to system server;System server again will
Position coordinates is sent to user terminal, and user terminal obtains NB-IoT terminal present positions region according to position coordinates.
Further, system server also pushes the current network online information of NB-IoT terminals, user to user terminal
Terminal shows network connection state always according to network online information.The network online information include NB-IoT online information and
GPRS online information.When network online information is NB-IoT online information, user terminal displays NB-IoT icons represent current
Network connection state for NB-IoT networks it is online;When network online information is GPRS online information, user terminal displays
GPRS icons, represent current network connection state for GPRS network is online.So as to so that user can at any time understand NB-IoT
The current network connection state of terminal.
For example:After NB-IoT terminals access GPRS network, GPRS is sent to system server by GPRS network and is noted
The successful message of volume, system server then pushes GPRS online information to user terminal, and user terminal is then by network icon by NB-
IoT is changed into GPRS, represents current network connection state for GPRS network is online.After NB-IoT terminals access NB-IoT networks,
The message that NB-IoT succeeds in registration is sent to system server by NB-IoT networks, system server is then pushed to user terminal
Network icon is then changed into NB-IoT by NB-IoT online information, user terminal from GPRS, represents that current network connection state is
NB-IoT networks are online.
In the specific implementation, specific application (APP) can be in the user terminal installed, user terminal is connect by the application
Receive and export the positional information of NB-IoT terminals, and reception system server network online information and display network connection shape
State, and receive the startup order of user and send NB-IoT enabled instructions, etc. to system server.
The network switching system of the NB-IoT terminals of the present embodiment, is supported by increasing GPRS module for NB-IoT terminals
The access of GPRS network, realizes NB-IoT networks to the switching of GPRS network, then obtain NB-IoT terminals by user terminal
Positional information, so that user issues the startup order of NB-IoT according to the deployment information of positional information and NB-IoT networks, realizes
GPRS network to NB-IoT networks switching, so as to without the support of mobile operator network sides, be achieved that NB-IoT networks
With the seamless switching of GPRS network, the universe network coverage can be almost realized to NB-IoT terminals, both maintain NB-IoT terminals
Low-power consumption advantage, also ensure that NB-IoT terminals can be always on, improve the stability and reliability of NB-IoT, greatly
Range of application is extended, Consumer's Experience is improved.
Embodiment six
Reference picture 10, proposes the network switching system of the NB-IoT terminals of sixth embodiment of the invention, and the system includes
NB-IoT terminals, system server and location server, the NB- in NB-IoT terminals and the 5th embodiment in the present embodiment
IoT terminals are identical, will not be described here.Wherein:
System server:For receiving the positional information of NB-IoT terminals transmission, and it is transmitted to location server;Work as reception
To location server send announcement information when, send NB-IoT enabled instructions to NB-IoT terminals.
Location server:For the positional information of reception system server forwarding, NB-IoT ends are judged according to positional information
Whether there are NB-IoT base stations in the preset range for holding position, when having NB- in the preset range of NB-IoT terminals position
During IoT base stations, announcement information is sent to system server.
As shown in figure 11, location server includes receiver module, analysis judge module and notification module, and receiver module is used for
The positional information of reception system server forwarding, analysis judge module judges NB-IoT terminals position according to positional information
Whether NB-IoT base station is had in preset range, and notification module in the preset range for working as NB-IoT terminals position for having NB-
During IoT base stations, announcement information is sent to system server, the announcement information can inform system server NB-IoT terminals
The information, or NB-IoT for having NB-IoT base stations in the preset range of position start order.
As shown in figure 12, analysis judge module includes position determination unit, base station inquiry unit, metrics calculation unit and sentences
Other unit, wherein:
Position determination unit:Position coordinates for determining NB-IoT terminals according to positional information.
When positional information is location information, position determination unit parses the location information, direct access NB-IoT terminals
Position coordinates.When LBS information of the positional information for GPRS, position determination unit is calculated according to the three-point fox method of GPRS
Go out the position coordinates of NB-IoT terminals.Wherein, the three-point fox method of GPRS is the computational methods of comparative maturity in the prior art,
This is not repeated.
Base station inquiry unit:NB-IoT base stations for finding the region nearest from NB-IoT terminals according to position coordinates.
Administrative region of the base station inquiry unit according to where position coordinates obtains NB-IoT terminals;According to administrative region rank
Ascending order is searched with the presence or absence of NB-IoT base stations in administrative region step by step, once find in an administrative region exist
During NB-IoT base stations, then stop continuing to search for, and the NB-IoT base stations that will be found are used as the region nearest from NB-IoT terminals
NB-IoT base stations.The ascending order of the administrative region rank is for example at county level, area's level, city-level, provincial etc..
For example, base station inquiry unit first look for NB-IoT terminals where administrative areas at the county level domain in whether have NB-IoT bases
Stand;When there are NB-IoT base stations in administrative areas at the county level domain, then stop continuing to search for, and by the NB-IoT bases in administrative areas at the county level domain
The NB-IoT base stations stood as the region nearest from NB-IoT terminals;When there is no NB-IoT base stations in administrative areas at the county level domain, then
Continue to search for whether there are NB-IoT base stations in area level administrative region, the rest may be inferred.
Further, in order to save server lookup operation time, preferably only carried out in the administrative region of pre-set level
Search, such as only searched in city-level administrative region, typically not across city, the region trans-city to some can be with special setting.
For example, when at county level and area level administrative region all without NB-IoT base stations, base station inquiry unit continues to search for city
Level whether there is NB-IoT base stations in administrative region;When there are NB-IoT base stations in city-level administrative region, then stop continuing to search for,
And using the NB-IoT base stations in city-level administrative region as the region nearest from NB-IoT terminals NB-IoT base stations;When city-level row
When there is no NB-IoT base stations in the domain of administrative division, still stop continuing to search for, and lookup result is directly notified judgement unit or logical
Cross metrics calculation unit and notify that judgement unit, judgement unit then can directly judge the preset range of NB-IoT terminals position
There is no NB-IoT base stations inside.
Metrics calculation unit:For calculating the distance between NB-IoT terminals and NB-IoT base stations.
The position coordinates of the NB-IoT base stations that metrics calculation unit is found, and position coordinates according to NB-IoT base stations and
The current position coordinates of NB-IoT terminals calculates distance therebetween.
As shown in Figure 6, it is assumed that D is NB-IoT terminals, position coordinates is (x, y, z), and A, B, C are three from NB-IoT terminals
The NB-IoT base stations in nearest region, position coordinates is respectively (x0, y0, z0), (x1, y1, z1), (x2, y2, z2), distance meter
Calculate unit according to below equation calculate NB-IoT terminal Ds respectively with the distance between NB-IoT base stations A, B, C d0, d1, d2:
d02=(x0-x)2+(y0-y)2+(z0-z)2;
d12=(x1-x)2+(y1-y)2+(z1-z)2;
d22=(x2-x)2+(y2-y)2+(z2-z)2。
Judgement unit:For when existing with the distance between NB-IoT terminals less than or equal to threshold value in NB-IoT base stations
During NB-IoT base stations, there are NB-IoT base stations in the preset range for judging NB-IoT terminals position.
Judgement unit judges to whether there is in the NB-IoT base stations found and is less than or waits with the distance between NB-IoT terminals
In the NB-IoT base stations of threshold value.The threshold value can set as needed, it is alternatively possible to the maximum according to NB-IoT base stations is covered
Lid scope carrys out given threshold.For example, the 10km that 3GPP is specified is used as threshold value, whether judgement unit judges deposited in NB-IoT base stations
Whether NB-IoT base station of the distance less than or equal to 10km between NB-IoT terminals, such as judge foregoing d0, d1, d2 respectively
Less than or equal to 10km.
When exist in the base station found with the distance between NB-IoT terminals less than or equal to threshold value NB-IoT base stations when,
As when any one is less than 10km in foregoing d0, d1, d2, judgement unit then judges the preset range of NB-IoT terminals position
Inside there are NB-IoT base stations.
When in the base station found in the absence of the NB-IoT base stations with the distance between NB-IoT terminals less than or equal to threshold value
When, when such as foregoing d0, d1, d2 are all higher than 10km, judgement unit then judges do not have in the preset range of NB-IoT terminals position
There are NB-IoT base stations.Additionally, when base station inquiry unit only searches NB-IoT base stations in the administrative region of pre-set level, if
NB-IoT base stations are not found, judgement unit also judges do not have NB-IoT bases in the preset range of NB-IoT terminals position
Stand.
It will be understood by those skilled in the art that the default model except judging NB-IoT terminals position using aforesaid way
Whether have outside NB-IoT base stations in enclosing, location server can also be differentiated using other manner of the prior art, herein
Do not enumerate and repeat.
The network switching system of the NB-IoT terminals of the present embodiment, is supported by increasing GPRS module for NB-IoT terminals
The access of GPRS network, realizes NB-IoT networks to the switching of GPRS network, then send position by NB-IoT terminal to server
Confidence ceases, so that server is judged in the preset range of NB-IoT terminals position based on the positional information of NB-IoT terminals
Whether there are NB-IoT base stations, realize GPRS network to the switching of NB-IoT networks, so that without the branch of mobile operator network sides
Hold, be achieved that the seamless switching of NB-IoT networks and GPRS network, can almost realize that universe network covers to NB-IoT terminals
Lid, had both maintained the low-power consumption advantage of NB-IoT terminals, also ensured that NB-IoT terminals can be always on, improve NB-IoT's
Stability and reliability, greatly extend range of application, improve Consumer's Experience.
It should be noted that:The network switching system of the NB-IoT terminals that above-described embodiment is provided and the net of NB-IoT terminals
Network changing method embodiment belongs to same design, and it implements the skill during process refers to embodiment of the method, and embodiment of the method
Art feature is corresponded in system embodiment and is applicable, and is repeated no more here.
User terminal described in the embodiment of the present invention, can be the mobile terminals such as mobile phone, flat board, or PC
Deng fixed terminal.
It will be understood by those skilled in the art that the present invention includes being related to for performing in operation described herein
Or multinomial equipment.These equipment can be for needed for purpose and specially design and manufacture, or general-purpose computations can also be included
Known device in machine.These equipment have computer program of the storage in it, and these computer programs are optionally activated
Or reconstruct.Such computer program can be stored in equipment (for example, computer) computer-readable recording medium or store and be suitable to
Storage e-command is simultaneously coupled in any kind of medium of bus respectively, and the computer-readable medium is included but is not limited to
Any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, it is read-only to deposit
Reservoir), RAM (RandomAccess Memory, random access memory), EPROM (Erasable Programmable Read-
OnlyMemory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable
Read-OnlyMemory, EEPROM), flash memory, magnetic card or light card.It is, readable Jie
Matter include being stored in the form of it can read by equipment (for example, computer) or transmission information any medium.
Those skilled in the art of the present technique be appreciated that can be realized with computer program instructions these structure charts and/or
The combination of the frame in each frame and these structure charts and/or block diagram and/or flow graph in block diagram and/or flow graph.This technology is led
Field technique personnel be appreciated that can by these computer program instructions be supplied to all-purpose computer, special purpose computer or other
The processor of programmable data processing method is realized, so that by the treatment of computer or other programmable data processing methods
Device is come the scheme specified in the frame or multiple frame that perform structure chart disclosed by the invention and/or block diagram and/or flow graph.
Those skilled in the art of the present technique are appreciated that in various operations, method, the flow discussed in the present invention
Step, measure, scheme can be replaced, changed, combined or deleted.Further, it is each with what is discussed in the present invention
Other steps, measure in kind operation, method, flow, scheme can also be replaced, changed, reset, decomposed, combined or deleted.
Further, it is of the prior art with various operations, method, the flow disclosed in the present invention in step, measure, scheme
Can also be replaced, changed, reset, decomposed, combined or deleted.
Above by reference to the preferred embodiments of the present invention have been illustrated, not thereby limit to interest field of the invention.This
Art personnel do not depart from the scope of the present invention and essence, can have various flexible programs to realize the present invention, for example as one
The feature of individual embodiment can be used for another embodiment and obtain another embodiment.It is all to use institute within technology design of the invention
Any modification, equivalent and the improvement made, all should be within interest field of the invention.