CN110225448A - Positioning device and system for being connect with host equipment - Google Patents
Positioning device and system for being connect with host equipment Download PDFInfo
- Publication number
- CN110225448A CN110225448A CN201910419058.2A CN201910419058A CN110225448A CN 110225448 A CN110225448 A CN 110225448A CN 201910419058 A CN201910419058 A CN 201910419058A CN 110225448 A CN110225448 A CN 110225448A
- Authority
- CN
- China
- Prior art keywords
- location data
- host equipment
- data
- locating module
- control module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/10—Integrity
- H04W12/104—Location integrity, e.g. secure geotagging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/10—Integrity
- H04W12/106—Packet or message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
- H04W28/14—Flow control between communication endpoints using intermediate storage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
- H04W4/185—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals by embedding added-value information into content, e.g. geo-tagging
Abstract
The invention discloses a kind of positioning devices and system for connecting with host equipment.Wherein, positioning device, comprising: control module and locating module;Wherein, mode is connect the control module by wireless communication with the host equipment, suitable for the control instruction from the host equipment is transferred to the locating module, and the location data from the locating module is transferred to the host equipment;The locating module is connect with the control module, suitable for carrying out localization process according to the control instruction received, and generates location data corresponding with positioning result.It can be seen that the wireless connection between host equipment can be realized by control module, to enable the device to be widely used in the equipment of all kinds of shortage wired communication interfaces by designing control module and locating module in positioning device.
Description
Technical field
The present invention relates to field of computer technology, and in particular to a kind of positioning device for connecting with host equipment and is
System.
Background technique
Currently, positioning function has obtained increasingly in the every aspect of life with the tremendous development of satellite positioning tech
It is widely applied.But since many host equipments itself do not support positioning function, or only support the positioning function of low precision
Can, therefore, in order to meet the location requirement of user, need to connect by circumscribed locating module with host equipment, to realize
Precise positioning.Wherein, circumscribed locating module usually passes through data line and is connected with host equipment.For example, usb data can be passed through
Line or UART data line etc. realize wire communication connection.
But inventor has found in the implementation of the present invention, aforesaid way at least has following defects which needs
Host equipment is wanted to reserve wired communication interface, such as USB interface or UART interface.However, many host equipments are designed in factory
Stage does not reserve above-mentioned interface, therefore, causes circumscribed locating module that can not be applied in such host equipment.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State the positioning device and system for connecting with host equipment of problem.
According to an aspect of the invention, there is provided a kind of positioning device for being connect with host equipment, comprising: control
Module and locating module;Wherein,
Mode is connect the control module by wireless communication with the host equipment, is suitable for that the host equipment will be come from
Control instruction be transferred to the locating module, and the location data from the locating module is transferred to the host and is set
It is standby;
The locating module is connect with the control module, suitable for carrying out localization process according to the control instruction received,
And generate location data corresponding with positioning result.
Optionally, the control module further comprises: Transmit-Receive Unit and fault-tolerant processing unit;Wherein,
The fault-tolerant processing unit, suitable for being verified for the location data from the locating module;
If verification passes through, the location data from the locating module is transferred to the Transmit-Receive Unit, for
The location data from the locating module is transmitted to the host equipment by the Transmit-Receive Unit.
Optionally, the fault-tolerant processing unit is particularly adapted to: determining the location data from the locating module
Data format, judge the data format whether with preset satellite positioning format match;
If so, determining that verification passes through;If not, it is determined that verification failure.
Optionally, the fault-tolerant processing unit is particularly adapted to:
When verifying failure, according to the location data from the locating module described in preset fault-tolerant rule process.
Optionally, the preset fault-tolerant rule includes: to abandon data format and preset satellite positioning format mismatching
Location data.
Optionally, the preset fault-tolerant rule includes: by data format and preset satellite positioning format mismatching
Location data is cached to preset first spatial cache, so as in conjunction with the location data judgement cached in first spatial cache
The data format of the subsequently received location data from the locating module whether with preset satellite positioning format match.
Optionally, the control module further comprises: converting unit, is suitable for logical for fault-tolerant processing unit verification
The location data crossed executes format conversion processing, and the location data after format conversion processing is supplied to the Transmit-Receive Unit,
So that the Transmit-Receive Unit is transmitted to the host equipment.
Optionally, the converting unit is further used for: the location data that fault-tolerant processing unit verification passes through is delayed
It deposits to the second spatial cache.
Optionally, the control module is programmable micro-control module, and the locating module passes through with the control module
Wired communication mode connection;Wherein, the wired communication mode includes: the communication mode based on UART interface.
Optionally, the control module connects the host equipment by Blue-tooth communication method;Also, the host equipment
It include: internet of things equipment, automobile data recorder equipment, handheld POS machine equipment.
According to a further aspect of the invention, a kind of positioning system is provided, including above-mentioned positioning device and described
Host equipment.
Optionally, the host equipment further comprises:
Kernel-driven module, for receiving and processing the positioning number from the control module according to wireless communication protocol
According to.
In the positioning device and system disclosed by the invention for being connect with host equipment, including control module and fixed
Position module;Wherein, mode is connect control module by wireless communication with host equipment, suitable for referring to the control from host equipment
Order is transferred to locating module, and the location data of self-positioning module is transferred to the host equipment in the future.It can be seen that passing through
Control module and locating module are designed in positioning device, can be realized by control module wireless between host equipment
Connection, to enable the device to be widely used in the equipment of all kinds of shortage wired communication interfaces.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the structural schematic diagram of the positioning device for connecting with host equipment of one embodiment of the invention;
Fig. 2 shows the structural representations of the positioning device for connecting with host equipment of another embodiment of the present invention
Figure;
Fig. 3 shows a kind of structure chart of positioning system of further embodiment of this invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one,
Fig. 1 shows the structural schematic diagram of the positioning device for connecting with host equipment of one embodiment of the invention.
As shown in Figure 1, the device includes: control module 11 and locating module 12.Wherein, control module 11 and host equipment pass through nothing
Line communication mode connection, suitable for the control instruction from host equipment is transferred to locating module 12 and self-setting die in future
The location data of block 12 is transferred to host equipment.Locating module 12 is connect with control module 11, suitable for according to the control received
Instruction carries out localization process, and generates location data corresponding with positioning result.
Specifically, control module can be realized by all kinds of software and/or hardware modes, and major function is that forwarding host is set
The standby data transmitted between locating module.In addition, control module can also be held for data to be forwarded in repeating process
A variety of processing such as row format conversion process, completeness check, data verification, data buffer storage.Wherein, control module has channel radio
Telecommunication function, so as to be wirelessly connected with host equipment, and then the host that can be suitable for all kinds of shortage wired communication interfaces is set
In standby.
Locating module for realizing GPS (Global Positioning System, global positioning system) positioning function,
It can specifically realize by various modes, the present invention does not limit the specific structure and realization principle of locating module, as long as can be realized
Positioning function.Specifically, locating module can be connect with control module by wired mode, also, locating module and control
Molding block can integrate as a unitary device, alternatively, locating module and control module can also use split-type design side
Formula realizes which is not limited by the present invention.
It can be seen that by designing control module and locating module in positioning device, it can be by control module reality
The now wireless connection between host equipment, to enable the device to be widely used in setting for all kinds of shortage wired communication interfaces
In standby.
Embodiment two,
Fig. 2 shows the structural schematic diagrams of the positioning device for connecting with host equipment of one embodiment of the invention.
As shown in Fig. 2, the device includes: control module 21 and locating module 22, wherein control module 21 further comprises: transmitting-receiving
Unit 211, fault-tolerant processing unit 212 and converting unit 213.Wherein, the host equipment in the present embodiment includes: Internet of Things
The various kinds of equipment such as equipment (Internet of Things, abbreviation IoT), automobile data recorder equipment, handheld POS machine equipment.Wherein,
Internet of things equipment further includes the various types such as industrial internet of things equipment.In addition, the locating module 22 in the present embodiment is
High-precision GPS (Global Positioning System, global positioning system) module, can provide superelevation for host equipment
The location information of precision.Certainly, in other embodiments of the invention, the GPS mould of locating module 22 or conventional precision
Block, for providing the location information of conventional precision for host equipment, which is not limited by the present invention.
In addition, inventor has found in the implementation of the present invention, existing external GPS module can only pass through wired mode
Connect host equipment, for example, by UART (Universal Asynchronous Receiver/Transmitter, it is general different
Walk receiving-transmitting transmitter) port or (Universal Serial Bus, the universal serial bus) port USB connection.But it is existing
Wired mode connection scheme require host equipment can draw the port UART or USB port, for external high-precision GPS module
Connection uses.Thus higher requirement is proposed to the hardware of host equipment, for example, in existing IoT equipment, if host is set
It is standby that external high-precision GPS module is connected by wired mode, then it can be realized using at least one of the following two kinds mode:
In the first implementation, host equipment connects external GPS module by the port UART, and correspondingly, host equipment needs to modify
Hardware, to draw UART pin to connect GPS module.In the second implementation, host equipment is connected by USB port
External GPS module is connect, correspondingly, host equipment needs support USB-OTG (On-The-Go) function.Any of the above method all needs
Hardware supported is wanted, if existing host equipment itself is not supported to connect the function of external high-precision GPS module, must be passed through
The mode of modification host hardware solves the problems, such as this.Also, due to being wired connection mode, it must also when modifying hardware
Consider equipment later period cabling mode problem when assembled, thus further brings difficulty for hardware modifications.It can be seen that above-mentioned have
Line connection type, exploitation and assembling to host equipment bring larger difficulty, thus cause the Function Extension of equipment inconvenient.
To solve the above-mentioned problems, the positioning device in the present embodiment can pass through Blue-tooth communication method and host equipment phase
Even.Certainly, in other embodiments of the invention, positioning device can also pass through other radio connections such as WIFI and host
Equipment is connected.
To achieve the goals above, in the present embodiment, positioning device includes control module 21.The control module 21 is can
Micro-control module is programmed, for example, can realize by MCU (Microcontroller Unit, micro-control unit).The control module
On the one hand it is connected by bluetooth (Bluetooth, abbreviation BT) function with host equipment, on the other hand passes through wired connection mode
(such as UART interface or USB interface) is connected with locating module 22.In the present embodiment, control module is connected by BT standard agreement
Host equipment is connect, and locating module (i.e. external high-precision GPS module) is connected by UART mode.
It can be seen that the present invention realizes the wireless communication between host equipment and locating module by control module.It should
Control module is mainly used for realizing that the data forwarding between host equipment and locating module operates, to serve as host equipment and determine
Medium between the module of position.Specifically, control module is mainly used for realizing following both sides function: on the one hand, autonomous in the future
The control instruction of machine equipment is transferred to locating module;On the other hand, the location data of self-positioning module in future is transferred to host and sets
It is standby.
When it is implemented, host equipment receives positioning by bluetooth approach link control module, will pass through control module
The location data that module generates.Also, host equipment also needs to transmit control instruction to locating module by control module, with control
The specific works state of locating module processed.For example, can be controlled by control instruction the positioning accuracy of locating module, orientation range,
The particular contents such as location data update cycle.Also, after positioning device is connect for the first time with host equipment, need for positioning
Device carries out Initialize installation, at this point, host equipment also needs to send by control module for initial during initialization
Change the initialization control instruction of locating module.It can be seen that control module needs to forward the control instruction from host equipment extremely
Locating module.
Locating module is connected by wired communication mode with control module, for realizing the transmitting-receiving of data, so that basis connects
The location data of generation is transferred to host equipment by the control instruction received.Specifically, locating module is according to the control received
Instruction carries out localization process, and generates location data corresponding with positioning result.Wherein, from the control instruction of host equipment
It may include multiple types, for example, open positioning function instruction, close positioning function instruction, modification or setting positioning number
According to the instruction of update cycle.Wherein, the location data update cycle be used for indicate this obtain location data time with next time
Obtain the time difference between the time of location data.When it is implemented, if wishing the real-time of positioning accuracy height and positioning result
By force, then it is shorter (for example at the first time) to be arranged the location data update cycle, to promote locating module to timely update location data;Instead
It is longer (such as that the location data update cycle can be set if not high to the requirement of real-time of positioning accuracy and positioning result in it
For the second time greater than first time), to save the energy consumption of locating module.Wherein, locating module can pass through various satellites
Position algorithm is positioned, the present invention to the specific positioning method of locating module without limitation.
In addition, inventor has found in the implementation of the present invention, the data volume of the location data that locating module generates compared with
Greatly and update it is more frequent, therefore, the phenomenon that being easy to cause corrupt data if control module directly forwards location data.However,
Once corrupt data then will lead to the serious consequence of positioning failure.To solve the above-mentioned problems, the control module in the present embodiment
In addition to comprising Transmit-Receive Unit, fault-tolerant processing unit is still further comprised, it is unsuccessfully existing to avoid positioning for realizing fault tolerance
As.
Specifically, fault-tolerant processing unit is suitable for being verified for the location data from locating module;If verification passes through,
Then the location data of self-positioning module is transferred to Transmit-Receive Unit in the future, for the location data of Transmit-Receive Unit self-positioning module in future
It is transmitted to host equipment;If verification failure, according to preset location data of the fault-tolerant rule process from locating module.Pass through
Aforesaid way can prevent the location data by mistake to be forwarded to positioning failure problem caused by host equipment.Certainly, in reality
In the situation of border, fault-tolerant processing unit can also be verified for the control instruction from host equipment, to prevent mistake
Control instruction is transmitted to the problem of locating module is so as to cause locating module maloperation.
When it is implemented, fault-tolerant processing unit is when carrying out data check, it can be more according to data format, data integrity etc.
Kind factor is verified.In a kind of preferred implementation, fault-tolerant processing unit is verified according to data format: fault-tolerant place
Manage unit determine the location data from locating module data format, judge data format whether with preset satellite positioning lattice
Formula matching;If so, determining that verification passes through;If not, it is determined that verification failure.Wherein, preset satellite positioning format is for retouching
The annotation formatting for stating location data specifically includes: the information type format of location data, for judging the info class of location data
Type specifically includes six kinds of information types being mentioned below;Field lattice corresponding to every kind of information type in six kinds of information types
Formula, the information such as field quantity, field parameter that the location data including every kind of information type is included.When it is implemented, can be with
Above-mentioned preset satellite positioning format is stored in preset reference format table in advance, the reference format table is for storing each item
The general format feature (such as data leader knows symbol and data tail identifier) of location data, so as to according to the general format feature
Rapidly extracting goes out the location data as unit of item from continuous a plurality of location data.The reference format table is also used to store often
Type identification feature corresponding to kind information type, to determine the location data currently verified according to the type identification characteristics
Information type.The reference format table is further used for storing field feature corresponding to every kind of information type, so as to according to the word
Duan Tezheng determines the parameter name of the field quantity that the location data of corresponding types should include and each field, and then completes verification
Process.
Specifically, the location data that locating module generates is usually satellite positioning information.Wherein, what GPS module was sent defends
Star location data is with behavior unit (data line is also a data), and data format is as follows: $ information type, x, x, x, x, x,
X, x, x, x, x, x, x, x, wherein every row is with character $ beginning, with<CR><LF>ending, CR-Carriage Return, LF-
Line Feed indicates carriage return and line feed.It can be seen that passing through the data head identifier $ and data tail tag of identification location data
Knowledge symbol<CR><LF>can rapidly split from a plurality of location data continuously transmitted and extract location data one by one.
It can be seen that after control module receives location data, it is necessary first to, will according to data head identifier and data tail identifier
A plurality of continuous location data is split as the location data of multiple singles, so as to as unit of the location data of a single one by one
Carry out verification operation.In addition, the information type of location data includes following six seed type:
(1) GPRMC:Recommended Minimum Specific GPS/TRANSIT Data (RMC), that is, it is fixed to recommend
Position information;
(2) GPVTG:Track Made Good and Ground Speed (VTG), i.e. ground speed information;
(3) GPGGA:Global Positioning System Fix Data (GGA), i.e. global positioning information;
(4) GPGSA:GPS DOP and Active Satellites (GSA), i.e. present satellites information;
(5) GPGSV:GPS Satellites in View (GSV), i.e., visible satellite information;
(6) GPGLL:Geographic Position (GLL), i.e. geo-localisation information.
It can be seen that each type of location data for describing positioning result from different angles respectively.Therefore, for
Each location data first has to the information type for determining this location data, so as to according to the type of corresponding information type
Feature is verified.Specifically, each type of information all has fixed information format.For example, with the positioning of GPRMC type
Data instance is introduced: recommend the reference format of location information $ GPRMC as follows:
$GPRMC,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>*hh<CR><LF>;
It wherein, specifically include 14 fields, the corresponding parameter of each field is respectively as follows: frame head, UTC time, state, latitude, north latitude/south
Latitude, longitude, east longitude/west longitude, speed, azimuth, UTC date, magnetic declination, magnetic biasing angular direction, mode only NMEA0183 3.00 editions
This output and check value.It can be seen that after identifying the information type of location data, it can be according to corresponding types
Whether data format is verified, with the determining data completely comprising the content of each field, if any field deficient phenomena, then really
Fixed verification failure, to avoid incomplete data forwarding to host equipment.
It can be seen that the verification operation for location data can be realized based on preset satellite positioning format.Wherein, it defends
The specific intension of star positioning format can flexible setting according to the actual situation, which is not limited by the present invention, as long as can be realized school
Test purpose.
In an optional implementation manner, preset fault-tolerant rule includes: to abandon data format and preset satellite
The unmatched location data of bit format.In other words, when fault-tolerant processing unit discovery data format and preset satellite positioning format
When unmatched location data, i.e., verification failure when, then whole data are abandoned, to prevent faulty data transport to host equipment
Caused positioning failure problem.
In another optional implementation, inventor has found in the implementation of the present invention: in some cases, because
Be separated for location data with behavior unit, therefore, complete location data may due to the reasons such as Network Abnormal by
It is split as two (i.e. two rows) even more a plurality of (i.e. more multirow) data transmission, therefore, if by every location data after fractionation
It is individually verified, then verification can be caused to fail in default of data head identifier and/or data tail identifier.But
The achievable verification if reconfiguring at least two location datas after fractionation for a complete location data, and ensure to count
According to integrality.Therefore, in the present embodiment, the location data for the ease of combining front and back adjacent realizes checking procedure, in advance
It is provided with the first spatial cache of the location data for storing verification failure, verification can not be passed through when so as to by independent verification
A plurality of data put together the combination verification to realize a plurality of data.Correspondingly, preset fault-tolerant rule includes: by data format
It caches with the location data of preset satellite positioning format mismatching to preset first spatial cache, to combine the first caching
The location data cached in space judge the subsequently received location data from locating module data format whether in advance
If satellite positioning format match.Wherein, which is exclusively used in the location data of caching verification failure.Correspondingly,
When fault-tolerant processing unit verifies current position determination data every time, the first spatial cache is first inquired, is delayed with obtaining in the first spatial cache
The location data for the verification failure deposited, so that the location data in conjunction with the verification failure cached in the first spatial cache judges this
The data format of the current position determination data from locating module received whether with preset satellite positioning format match.And
And when determining verification failure, current position determination data is cached to the first spatial cache, so that checking procedure is inquired next time,
The rest may be inferred.When it is implemented, for the ease of sequencing and incidence relation between each location data of determination, Ke Yijin
One step stores the timestamp information and/or sequence information of the location data of each item verification failure in the first spatial cache, so as to
In the data adjacent with current position determination data that quick obtaining is stored into the first spatial cache during subsequent check, thus
Realize combination verification process.
In addition, when being combined verification, it is contemplated that there may be out-of-order possibility between pieces of data, therefore, can be with
It is combined verification in the following way: firstly, extraction is associated with current position determination data at least from the first spatial cache
The location data of one verification failure is as target data.It can specifically be obtained and current according to the timestamp of current position determination data
The time interval of the timestamp of location data is less than the location data of preset interval threshold value as target data.It then, will be current
Location data and at least one target data carry out it is various combine sequence, be directed to every kind of combination ranking results respectively and verified.
For example, combination sortord is two kinds: current position determination data is preceding, and target data is rear when target data is one;Or work as
Prelocalization data are rear, and target data is preceding;When target data is two, combination sortord is six kinds, especially by row
Column combinational algorithm determines.By the above-mentioned means, accurate verification can be realized for the location data of various random orderings, with utmostly
Ground restores location information.
In addition, optional, control module further comprises: converting unit, suitable for passing through for the verification of fault-tolerant processing unit
Location data execute format conversion processing, and the location data after format conversion processing is supplied to Transmit-Receive Unit, for receiving
Bill member is transmitted to host equipment.Specifically, due to host equipment may not be able to Direct Recognition locating module generate positioning number
According to therefore, it is necessary to, by the location data passed through execution format conversion processing, can be known with being converted to host equipment by converting unit
Other format specification.The format specification that specific conversion process can be supported according to host equipment is defined.
Further, converting unit is further used for: the location data that passes through of fault-tolerant processing unit verification is cached to the
Two spatial caches, to realize the caching and query function of location data.Wherein, the main function of the second spatial cache is to delay
Deposit data after loss of data to realize data recovery operation, to provide data backup function.When it is implemented, second is slow
Deposit space and the first spatial cache can be the same spatial cache, or different spatial caches, the present invention to this not
It limits.
In conclusion positioning device provided in this embodiment can realize the nothing between host equipment by control module
Line connection, to enable the device to be widely used in the equipment of all kinds of shortage wired communication interfaces.Also, control module energy
Fault-tolerant processing is enough realized, so that it is guaranteed that the data for being sent to host equipment are correct data.
Embodiment three,
Fig. 3 shows the structural schematic diagram for the positioning system that another embodiment of the invention provides.As shown in figure 3, this is
System includes: positioning device 31 and host equipment 30.Wherein, the specific structure and working principle of positioning device and host equipment can
Referring to the description in embodiment one, two, details are not described herein again.
Optionally, host equipment further comprises: kernel-driven module, for receiving and processing according to wireless communication protocol
Location data from control module.Specifically, due to the corresponding SDK of locating module (Software Development Kit,
Software Development Kit) only support the data of line node, it is therefore desirable to increase kernel-driven module completion bluetooth in host computer side
The dump of data, to meet requirement of the SDK for core nodes of locating module.When it is implemented, control module will position number
According to being forwarded in the SDK for corresponding to locating module on host equipment, since SDK handles location data according to wired communication mode,
Therefore, it for the location data for enabling SDK that communication to be supported to transmit, needs to complete data in bottom layer driving module
Conversion process, to ensure that it is fixed that the control module location data that agreement is sent by wireless communication can be corresponded on host equipment
The SDK of position module is successfully processed.To sum up, being realized by increasing kernel-driven module on the host device for wireless communication
The identification of the location data of agreement transmission.The major function of the kernel-driven module are as follows: by what is transmitted based on wireless communication protocol
Location data is converted to the location data based on wired communication protocol transmission, so that SDK be enable to identify.It is of course also possible to logical
Crossing makes it support wireless communication protocol the mode that SDK modifies, and which is not limited by the present invention.
In summary, the present invention is able to solve the not convenient of wired connection mode, facilitates existing equipment extension external high-precision
GPS function is spent, in the case where not modifying hardware, realizes the support to external high-precision GPS function.The present invention is not required to IoT
Host equipment carries out any hardware modifications, and the support to external high-precision GPS module is realized on existing host equipment, is realized
Wired sensor turns wireless scheme, extends external high-precision GPS module itself, realizes serial ports GPS and turn bluetooth GPS's
Scheme.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors
Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice
Program file according to an embodiment of the present invention is uploaded to code storehouse to realize by microprocessor or digital signal processor (DSP)
The some or all functions of some or all components in the device in library.The present invention is also implemented as executing here
Some or all device or device programs of described method are (for example, computer program and computer program produce
Product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more
The form of signal.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or to appoint
What other forms provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention also discloses a kind of positioning devices for connecting with host equipment of A1., comprising: control module and fixed
Position module;Wherein,
Mode is connect the control module by wireless communication with the host equipment, is suitable for that the host equipment will be come from
Control instruction be transferred to the locating module, and the location data from the locating module is transferred to the host and is set
It is standby;
The locating module is connect with the control module, suitable for carrying out localization process according to the control instruction received,
And generate location data corresponding with positioning result.
A2. the device according to claim A1, wherein the control module further comprises: Transmit-Receive Unit and
Fault-tolerant processing unit;Wherein,
The fault-tolerant processing unit, suitable for being verified for the location data from the locating module;
If verification passes through, the location data from the locating module is transferred to the Transmit-Receive Unit, for
The location data from the locating module is transmitted to the host equipment by the Transmit-Receive Unit.
A3. it the device according to claim A2, wherein the fault-tolerant processing unit is particularly adapted to: determines described next
From the data format of the location data of the locating module, judge the data format whether with preset satellite positioning format
Match;
If so, determining that verification passes through;If not, it is determined that verification failure.
A4. the device according to claim A3, wherein the fault-tolerant processing unit is particularly adapted to:
When verifying failure, according to the location data from the locating module described in preset fault-tolerant rule process.
A5. the device according to claim A4, wherein the preset fault-tolerant rule includes: discarding data format
With the location data of preset satellite positioning format mismatching.
A6. the device according to claim A4, wherein the preset fault-tolerant rule include: by data format with
The location data of preset satellite positioning format mismatching is cached to preset first spatial cache, so as to slow in conjunction with described first
It deposits the location data cached in space and judges that the data format of the subsequently received location data from the locating module is
No and preset satellite positioning format match.
A7. according to any device of claim A3-A6, wherein the control module further comprises: conversion is single
Member, the location data suitable for passing through for fault-tolerant processing unit verification execute format conversion processing, and will be at format conversion
Location data after reason is supplied to the Transmit-Receive Unit, so that the Transmit-Receive Unit is transmitted to the host equipment.
A8. the device according to claim A7, wherein the converting unit is further used for: by the fault-tolerant place
The location data that reason unit verification passes through is cached to the second spatial cache.
A9. according to any device of claim A1-A8, wherein the control module is programmable micro-control molding
Block, the locating module are connect with the control module by wired communication mode;Wherein, the wired communication mode includes:
Communication mode based on UART interface.
A10. according to any device of claim A1-A9, wherein the control module passes through Blue-tooth communication method
Connect the host equipment;Also, the host equipment includes: that internet of things equipment, automobile data recorder equipment, handheld POS machine are set
It is standby.
B11. a kind of positioning system is set including any positioning device of claim A1-A10 and the host
It is standby.
B12. the system according to claim B11, wherein the host equipment further comprises:
Kernel-driven module, for receiving and processing the positioning number from the control module according to wireless communication protocol
According to.
Claims (10)
1. a kind of positioning device for being connect with host equipment, comprising: control module and locating module;Wherein,
Mode is connect the control module by wireless communication with the host equipment, suitable for will be from the control of the host equipment
System instruction is transferred to the locating module, and the location data from the locating module is transferred to the host equipment;
The locating module is connect with the control module, suitable for carrying out localization process according to the control instruction received, and it is raw
At location data corresponding with positioning result.
2. the apparatus according to claim 1, wherein the control module further comprises: Transmit-Receive Unit and fault-tolerant place
Manage unit;Wherein,
The fault-tolerant processing unit, suitable for being verified for the location data from the locating module;
If verification passes through, the location data from the locating module is transferred to the Transmit-Receive Unit, for described
The location data from the locating module is transmitted to the host equipment by Transmit-Receive Unit.
3. the apparatus of claim 2, wherein the fault-tolerant processing unit is particularly adapted to: determining described from described
The data format of the location data of locating module, judge the data format whether with preset satellite positioning format match;
If so, determining that verification passes through;If not, it is determined that verification failure.
4. device according to claim 3, wherein the fault-tolerant processing unit is particularly adapted to:
When verifying failure, according to the location data from the locating module described in preset fault-tolerant rule process.
5. device according to claim 4, wherein the preset fault-tolerant rule includes: to abandon data format and preset
Satellite positioning format mismatching location data.
6. device according to claim 4, wherein the preset fault-tolerant rule include: by data format with it is preset
The location data of satellite positioning format mismatching is cached to preset first spatial cache, so as in conjunction with first spatial cache
The location data of middle caching judge the subsequently received location data from the locating module data format whether in advance
If satellite positioning format match.
7. according to any device of claim 3-6, wherein the control module further comprises: converting unit is suitable for
The location data passed through for fault-tolerant processing unit verification executes format conversion processing, and will determine after format conversion processing
Position data are supplied to the Transmit-Receive Unit, so that the Transmit-Receive Unit is transmitted to the host equipment.
8. device according to claim 7, wherein the converting unit is further used for: by the fault-tolerant processing unit
The location data passed through is verified to cache to the second spatial cache.
9. -8 any device according to claim 1, wherein the control module is programmable micro-control module, described
Locating module is connect with the control module by wired communication mode;Wherein, the wired communication mode includes: based on UART
The communication mode of interface.
10. a kind of positioning system, including any positioning device of claim 1-9 and the host equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910419058.2A CN110225448A (en) | 2019-05-20 | 2019-05-20 | Positioning device and system for being connect with host equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910419058.2A CN110225448A (en) | 2019-05-20 | 2019-05-20 | Positioning device and system for being connect with host equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110225448A true CN110225448A (en) | 2019-09-10 |
Family
ID=67821657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910419058.2A Withdrawn CN110225448A (en) | 2019-05-20 | 2019-05-20 | Positioning device and system for being connect with host equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110225448A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116156625A (en) * | 2023-02-21 | 2023-05-23 | 北京中集智冷科技有限公司 | Novel locator |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104656103A (en) * | 2015-01-26 | 2015-05-27 | 东南大学 | Wireless GPS positioning system and method based on Android mobile terminal |
CN205670192U (en) * | 2016-04-22 | 2016-11-02 | 桂林电子科技大学 | Big Dipper location and communicating integral general-purpose system |
-
2019
- 2019-05-20 CN CN201910419058.2A patent/CN110225448A/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104656103A (en) * | 2015-01-26 | 2015-05-27 | 东南大学 | Wireless GPS positioning system and method based on Android mobile terminal |
CN205670192U (en) * | 2016-04-22 | 2016-11-02 | 桂林电子科技大学 | Big Dipper location and communicating integral general-purpose system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116156625A (en) * | 2023-02-21 | 2023-05-23 | 北京中集智冷科技有限公司 | Novel locator |
CN116156625B (en) * | 2023-02-21 | 2024-01-02 | 北京中集智冷科技有限公司 | Novel locator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108197042B (en) | Universal asynchronous serial port based on FPGA and response method thereof | |
CN109540142A (en) | A kind of method, apparatus of robot localization navigation calculates equipment | |
US20110144802A1 (en) | Control System for Robotic Vehicles | |
JP5512041B2 (en) | Key assignment when tracing a data processing system | |
CN104423378B (en) | The method and system of Vehicle Electronic Control Unit calibration | |
US9547493B2 (en) | Self-timed user-extension instructions for a processing device | |
CN109032879A (en) | Multi-core processor memory access Data Detection verifies system and method | |
CN110943796A (en) | Timestamp alignment method, timestamp alignment device, storage medium and equipment | |
CN107014381A (en) | PLD, DSP, integrated navigation system, data processing method and device | |
CN102289361A (en) | Correlating trace data streams | |
CN109885857A (en) | Instruction issue control method, instruction execution verification method, system and storage medium | |
CN102306264A (en) | Radio frequency identification (RFID)-technology-based indoor positioning system | |
CN110225448A (en) | Positioning device and system for being connect with host equipment | |
CN105988922A (en) | Testing method and device of application program as well as server | |
Yin et al. | Real-time embedded software testing method based on extended finite state machine | |
CN103644921B (en) | It is a kind of to realize the method and apparatus that streetscape is shown | |
CN107943736A (en) | Time-triggered protocol equipment and the data handling system for including time-triggered protocol equipment | |
CN109416667A (en) | With dynamic and configurable response, serial device emulator using two storage levels | |
CN115984022B (en) | Unified account checking method and device for distributed payment system | |
CN109660310A (en) | A kind of method, apparatus, calculating equipment and the computer storage medium of clock synchronization | |
CN110221619A (en) | Unmanned flight's equipment and method for synchronizing time therein, device and storage medium | |
CN109582334A (en) | The upgrade method and device of programmable logic device | |
CN110221963A (en) | Code coverage acquisition methods and device | |
US20220345526A1 (en) | Sensor configuration method, apparatus, computer equipment and storage medium | |
US20140114475A1 (en) | Apparatus and method for sharing device resources between robot software components |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190910 |
|
WW01 | Invention patent application withdrawn after publication |