Summary of the invention:
The positioning system based on NB network and RF ad hoc network that in order to compensate for the shortcomings of the prior art, the present invention provides a kind of
And method, it is reasonable in design, and positioning terminal is placed on cargo, is positioned and is believed by NB network implementations real-time tracking cargo
Breath, and can carry out data based on RF ad hoc network when can not report location data under single cargo extreme case and report, can be with
Effective network signal attenuation problem for solving to generate in traditional positioning method by stack of goods or mental package, and positioning terminal
It is low in energy consumption, it is at low cost, solve problems of the prior art.
Used technical solution is the present invention to solve above-mentioned technical problem:
In a first aspect, the present invention provides a kind of positioning system based on NB network and RF ad hoc network, comprising: cloud platform,
The base station NB-IoT and at least two positioning terminals, wherein
The cloud platform includes server, and the server is used to receive and handle the data of positioning terminal transmission;
The base station NB-IoT, for being communicatively coupled with the positioning terminal;
The positioning terminal includes NB mould group, RF mould group and power module, passes through connection between each module;
The NB mould group, including communication module, memory module and control module,
The communication module is communicated to connect for being established based on NB network and the base station NB-IoT, and obtains the base station NB-IoT
The data stored in location information and positioning terminal are uploaded to cloud platform by location information;For receiving the number of RF mould group transmission
According to or send data to RF mould group;
The memory module, the data that facility information and RF mould group for storing positioning terminal are sent;Wherein, described to set
Standby information includes device id;
The control module sends or receives data by RF wireless signal for controlling RF mould group;
The RF mould group, including receiving module and sending module,
The receiving module, the data for being sent by positioning terminal around RF reception of wireless signals, and it is sent to NB
Mould group;
The sending module for receiving the data of NB mould group transmission, and is sent to by RF wireless signal and is around positioned
The RF mould group of terminal.
In a kind of positioning system based on NB network and RF ad hoc network of the present invention, the cloud platform further includes cloud
Data analysis module, the cloud data analysis module are used for the location data and positioning terminal that statistics and analysis positioning terminal uploads
The data of interior storage provide logistics management function.
In a kind of positioning system based on NB network and RF ad hoc network of the present invention, the positioning terminal further includes
NB antenna and RF antenna,
The NB antenna is connected by route with NB mould group, for improving the wireless gain of NB mould group;
The RF antenna is connected by route with RF mould group, for improving the wireless gain of RF mould group.
In a kind of positioning system based on NB network and RF ad hoc network of the present invention, the RF wireless signal is indigo plant
Tooth signal or WIFI signal or ZigBee signal or Lora signal or 433 wireless communication signals.
Second aspect, the present invention provides a kind of localization method based on NB network and RF ad hoc network, comprising:
Positioning terminal is initiated the connection by NB network to the base station NB-IoT;
If successful connection, positioning terminal obtains NB-IoT base station location information, and positioning terminal is believed positioning by NB network
The data stored in breath and positioning terminal are uploaded to cloud platform, and positioning terminal opens reception pattern, and positioning terminal is wireless by RF
Signal receives the data of the transmission of surrounding positioning terminal;Wherein, the data stored in the positioning terminal include that positioning terminal exists
The data received under reception pattern;The data received include the facility information of transmitting terminal positioning terminal;
If connection failure, positioning terminal opens sending mode, and positioning terminal sends positioning terminal by RF wireless signal
Positioning terminal of the facility information to surrounding in a receive mode, the positioning terminal for receiving facility information believe the equipment received
Breath is stored.
In a kind of localization method based on NB network and RF ad hoc network of the present invention, the positioning terminal passes through NB
Network is initiated the connection to the base station NB-IoT, comprising:
Positioning terminal accesses NB network;
Positioning terminal judges NB network signal intensity;
If NB network signal intensity is higher than setting value, positioning terminal establishes connection by NB network and the base station NB-IoT;
If NB network signal intensity is lower than setting value, positioning terminal cancels access NB network, and positioning terminal, which is opened, sends mould
Formula.
In a kind of localization method based on NB network and RF ad hoc network of the present invention, the NB network signal intensity
Higher than setting value, positioning terminal establishes connection by NB network and the base station NB-IoT, comprising:
Positioning terminal judges battery capacity value;
If battery capacity value is higher than setting value, positioning terminal establishes connection by NB network and the base station NB-IoT;
If battery capacity value is lower than setting value, positioning terminal cancels access NB network, and positioning terminal opens sending mode.
In a kind of localization method based on NB network and RF ad hoc network of the present invention, the positioning terminal passes through NB
Network is initiated the connection to the base station NB-IoT, specially positioning terminal cloud platform specify on call time through NB network to NB-
The base station IoT initiates the connection.
In a kind of localization method based on NB network and RF ad hoc network of the present invention, in the positioning terminal in cloud
Platform it is specified on call time and initiated the connection by NB network to the base station NB-IoT before, positioning terminal opens low-power consumption standby mould
Formula;Under the low-power consumption standby mode, positioning terminal does not access NB network, and closes reception pattern and sending mode.
In a kind of localization method based on NB network and RF ad hoc network of the present invention, pass through in the positioning terminal
After the data stored in location information and positioning terminal are uploaded to cloud platform by NB network, comprising:
The data stored in the location information and positioning terminal that cloud platform analyzing and positioning terminal uploads, obtain the logistics of cargo
Information, sales information and inventory information;
Cloud platform assesses the logistics information of cargo, provides logistic track function;
Cloud platform assesses the sales information of cargo, and foundation is instructed in the production and marketing for providing cargo;
Cloud platform assesses the inventory information of cargo, provides falsifying checking and administration function.
The present invention using the above scheme, provides a kind of positioning system and method based on NB network and RF ad hoc network, it
It is reasonable in design, positioning terminal is placed on cargo, NB network implementations real-time tracking cargo location information, Yi Ji are passed through
Can not report under single cargo extreme case, which can carry out data based on RF ad hoc network when location data, reports, and efficiently solves tradition
Because of the network signal attenuation problem that stack of goods or mental package generate in positioning method, and it is wireless based on NB base station location and RF
The signal transmission form of technology is all low-power consumption scheme, and NB base station location is to obtain positioning letter automatically when establishing network connection
Breath, can position as long as NB network has signal, without consuming extra electricity, meanwhile, RF networking can be passed through in cargo consolidation
Mode select the measured module reported data of electricity, it can be achieved that power consumption mean allocation, extend battery-powered time, positioning terminal
It is low in energy consumption, it is at low cost, also, cloud platform by analysis cargo location data, it can be achieved that logistics management, and assistance agent quotient into
Row stock control provides guidance foundation by analyzing product sales data for production and marketing, practical.
Specific embodiment:
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Fig. 1 is a kind of structural representation of the positioning system based on NB network and RF ad hoc network provided in an embodiment of the present invention
Figure.
As shown in Figure 1, the system includes cloud platform 110, the base station NB-IoT 120 and at least two positioning terminals 130.
Cloud platform 110 includes server and cloud data analysis module.
Server is used to receive and handle the data of the transmission of positioning terminal 130.
Specifically, server receives the facility information of the location information that positioning terminal 130 is sent and positioning terminal, server
The data are stored and are sent to cloud data analysis module and carry out data analysis.
Storage in the location data and positioning terminal that cloud data analysis module is uploaded for statistics and analysis positioning terminal 130
Data, logistics management function is provided.
Specifically, stored in location information and positioning terminal that cloud data analysis module analyzing and positioning terminal 130 uploads
Data obtain the logistics information, sales information and inventory information of cargo;
Cloud data analysis module assesses the logistics information of cargo, provides logistic track function;
Cloud data analysis module assesses the sales information of cargo, and foundation is instructed in the production and marketing for providing cargo;
Cloud data analysis module assesses the inventory information of cargo, provides falsifying checking and administration function.
The base station NB-IoT 120, for being communicatively coupled with the positioning terminal 130.
Specifically, the base station NB-IoT 120 is communicatively coupled by NB network and the NB mould group of positioning terminal 130.
Positioning terminal 130 includes NB mould group 131, RF mould group 132, power module 133, NB antenna 134 and RF antenna 135,
Pass through connection between each section.
Fig. 2 is a kind of structural representation of the positioning terminal based on NB network and RF ad hoc network provided in an embodiment of the present invention
Figure.
As shown in Fig. 2, positioning terminal includes NB mould group 131, RF mould group 132, power module 133, NB antenna 134 and RF
Antenna 135.
NB mould group 131, including communication module, memory module and control module.
Communication module is communicated to connect for being established based on NB network and the base station NB-IoT 120, and obtains the base station NB-IoT
The data stored in location information and positioning terminal 130 are uploaded to cloud platform 110 by 120 location informations;For receiving RF mould group
132 data sent send data to RF mould group 132.
Specifically, positioning terminal obtains positioning letter automatically after communication connection is established in communication module and the base station NB-IoT 120
Breath, without consuming extra electricity, can position positioning terminal 130 as long as NB network has signal, and later, communication module is logical
The server that the data stored in location information and positioning terminal 130 are uploaded to cloud platform 110 by NB network is crossed, convenient for cargo
Logistics information tracked.
Memory module, the data that facility information and RF mould group 132 for storing positioning terminal 130 are sent;Wherein, described
Facility information includes device id.
Control module sends or receives data by RF wireless signal for controlling RF mould group 132.
Specifically, main control module of the control module as positioning terminal, for controlling the networking work of RF mould group 132, when
When NB network signal is strong and power module charge value is high, control module control RF mould group 132 does not work, and positioning terminal 130 passes through
NB mould group 131 carries out communication and the transmitting-receiving of data;When NB network signal is weak or power module charge value is low, control module control
NB mould group 131 does not work, and positioning terminal 130 is communicated by RF mould group 132 with terminal is positioned about.
RF mould group 132, including receiving module and sending module.
Receiving module, the data for being sent by positioning terminal 130 around RF reception of wireless signals, and it is sent to NB mould
Group 131.
Specifically, the equipment for surrounding's positioning terminal that receiving module arrives positioning terminal 130 by RF reception of wireless signals
The memory module that information is sent to NB mould group 131 is stored.
The sending module for receiving the data of the transmission of NB mould group 131, and is sent to by RF wireless signal and is around determined
The RF mould group 132 of position terminal.
Specifically, the memory module of NB mould group 131 is whole by the positioning when positioning terminal 130 needs sending device information
The facility information at end 130 is sent to sending module, and the facility information is sent to week by RF wireless signal by sending module later
The positioning terminal 130 enclosed
Wherein, RF wireless signal includes but is not limited to Bluetooth signal, WIFI signal, ZigBee signal, Lora signal, 433
Wireless communication signal.
The power module 133, for powering to modules;Detection and distribution for electric energy.
Specifically, the NB mould group 131 of positioning terminal 130 does not work when power module 133 detects that electricity is low, positioning
Terminal 130 is communicated by RF mould group 132 with the positioning terminal of surrounding.
NB antenna 134 is connected by route with NB mould group 131, for improving the wireless gain of NB mould group 131.
RF antenna 135 is connected by route with RF mould group 132, for improving the wireless gain of RF mould group 132.
Fig. 3 is a kind of flow chart of the localization method based on NB network and RF ad hoc network provided in an embodiment of the present invention.
As shown in figure 3, this method comprises:
S301, low-power consumption standby.
At this point, positioning terminal is in low-power consumption standby mode, in this mode, positioning terminal does not access NB network, and closes
Reception pattern and sending mode are closed, to reduce the electric quantity consumption of positioning terminal, extends the power-on time of battery.
S302, above call time to.
Positioning terminal judge whether reach on calls time, specifically, positioning terminal cloud platform specify on call time it is logical
It crosses NB network to initiate the connection to the base station NB-IoT, if positioning terminal is in low-power consumption standby mode not to above calling time;If reaching
On call time, then perform the next step.
S303 opens NB network.
If positioning terminal judgement, which reaches, reports the time, then positioning terminal opens NB mould group and accesses NB network in S302.
S304, NB signal are most strong.
Specifically, positioning terminal assesses NB signal strength, if NB signal is higher than setting value, S305 is executed, otherwise, positioning
Terminal closes the communication module of NB mould group, cancels access NB network, executes S310.
S305, battery capacity highest.
Specifically, the battery capacity of positioning terminal assessment power module positions end if battery capacity value is higher than setting value
Connection is established by NB network and the base station NB-IoT in end, executes S306, and otherwise, positioning terminal closes the communication module of NB mould group,
Cancel access NB network, executes S310.
S306 obtains location information.
If positioning terminal judges that battery capacity value is higher than setting value, and has passed through NB network and NB-IoT base in S305
Connection is established at station, then positioning terminal obtains the location information of the base station NB-IoT.
S307 completes data and reports.
Specifically, positioning terminal is uploaded the data stored in the memory module of location information and NB mould group by NB network
To cloud platform.
S308 opens RF and receives.
Specifically, the receiving module in the RF mould group of positioning terminal is opened, positioning terminal in a receive mode, in the mode
Under, the data that positioning terminal is sent by positioning terminal around RF reception of wireless signals, which includes transmitting terminal positioning terminal
Facility information.
S309, storing data wait report next time.
Specifically, the receiving module in the RF mould group of positioning terminal will be received in S308 around positioning terminal send
Data be sent to NB mould group, which is stored, completes this and report by the memory module in NB mould group.
Further, positioning terminal will be called time on next time after arrival, repeat S303 and later the step of, and
In S307, the data stored in memory module and acquired location information are uploaded to cloud platform.
S310 opens RF and sends.
Specifically, positioning is eventually if positioning terminal assesses NB signal strength and is lower than setting value, or in S305 in S304
End judge battery capacity value lower than setting value, positioning terminal is cancelled access NB network after, then the hair in the RF mould group of positioning terminal
Module is sent to open.
S311, sending device information.
Specifically, positioning terminal is in sending mode, RF mould after the sending module in the RF mould group of positioning terminal is opened
The data stored in the memory module of sending module reception NB mould group in group, and sent the data to by RF wireless signal
The RF mould group of surrounding positioning terminal, wherein include the facility information of the positioning terminal in the data.
In order to better understand this method, this method is described by way of example below.
For example, positioning terminal is placed on cargo, all positioning terminals call time on specified accesses NB net
Network reports the location information of the positioning terminal to server of cloud platform, also, successful positioning terminal is reported to open RF mould group
Reception pattern;If because of stack of goods or thering is barrier the reasons such as to block when accessing NB network, causing NB signal strength weak,
Or positioning terminal self electric quantity is not high, then the RF mould group of the terminal by RF wireless signal send the facility information of the terminal to
The positioning terminal of surrounding in a receive mode, the positioning terminal for receiving facility information store that information in NB mould group,
It calls time on next time and is reported again after reaching.
It is thus achieved that can be counted based on RF ad hoc network when can not report location data under single cargo extreme case
According to reporting, the NB network signal attenuation problem because of stack of goods or mental package generation is efficiently solved, also, in cargo consolidation
When the selection measured module reported data of electricity, it can be achieved that power consumption mean allocation, extend battery-powered time, it is practical.
Meanwhile the location data that is uploaded by statistics and analysis positioning terminal of the cloud data analysis module in cloud platform and fixed
The data stored in the terminal of position, logistics information, sales information and the inventory information of available cargo, to provide logistics management function
Energy.Specifically, cloud data analysis module provides logistic track function by the logistics information of assessment cargo;By assessing cargo
Sales information, the production and marketing for providing cargo instructs foundation;By assessing the inventory information of cargo, falsifying is provided and is checked
Look into management function.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.
These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor
The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects
It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention
Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include
Within protection scope of the present invention.