CN104656103B - A kind of wireless GPS positioning system and method based on Android mobile terminal - Google Patents
A kind of wireless GPS positioning system and method based on Android mobile terminal Download PDFInfo
- Publication number
- CN104656103B CN104656103B CN201510038909.0A CN201510038909A CN104656103B CN 104656103 B CN104656103 B CN 104656103B CN 201510038909 A CN201510038909 A CN 201510038909A CN 104656103 B CN104656103 B CN 104656103B
- Authority
- CN
- China
- Prior art keywords
- gps
- data
- android
- location
- mobile terminal
- 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.)
- Active
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
- 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/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/14—Receivers specially adapted for specific applications
-
- 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
Abstract
The invention discloses a kind of wireless GPS positioning system and method based on Android mobile terminal, the system includes:GPS OEM board card modules;A pair of control device module, the radio frequency for controlling the original location datas of GPS sends and receives;A pair 433 wireless radio frequency modules, for sending and receiving the original location datas of GPS in the way of less radio-frequency;Android data conversion modules, for Android system terminal by usb data read-write protocol achieve a butt joint receiving end controller module UART interface read-write operation.Android data control blocks, the configuration to connected device and read-write operation are completed for the application software in Android system terminal, to send location control instruction, and parse the GPS initial data strings for receiving.The present invention realizes the GPS location of wireless mode using the radio frequency of certain wave band, the high-precision original location datas of GPS are obtained by high-precision GPS OEM modules, transmitted by wireless radio frequency mode, received and parsed through by Android mobile terminal equipment, obtain high accuracy positioning data.
Description
Technical field
The present invention relates to GPS location field, more particularly to a kind of high precision wireless GPS based on Android mobile terminal
Alignment system and method.
Background technology
In the 3G epoch that smart mobile phone and panel computer are popularized rapidly, Android is the good, function expansibility of a opening
The performance of increasing income of strong intelligent operating system, its powerful function and system supports the application program based on Android well
Exploitation.With the continuous lifting of user's request, the continuous evolution of technology, Android mobile terminal equipment is used as conveniently
Mobile vehicle, the constantly more applications of fusion.
GPS location function is to be expected to trigger once again the innovation of new round mobile phone update upsurge after taking pictures, after music
Function, by bright characteristics such as the strong, demands of being close to the users of practical function, Android GPS mobile terminals turn into market
New lover.On the one hand, the positive fast lifting of GPS Mobile Industries maturity.On the other hand, the various terminals species with GPS functions is gradually
Abundant, terminal bottleneck problem will be eased.With the reduction of production cost, the reinforcement of hardware capability, GPS will have more wide
Wealthy application field.GPS positioning technology is combined with advanced mobile-terminal platform, mobile phone has been expanded to a certain extent
GPS functions, and the advantage that Android platform opening is good, autgmentability is strong also provides sky further to enrich existing capability
Between.
But although civilian GPS-Android mobile phones often occur poor signal using very universal, precision is inadequate
High the problems such as, just at present apparently, the GPS functions of mobile device are mainly to be applied in terms of personal positioning, navigation, and its GPS should
Development does not still catch up with the overall paces of mobile phone development.
The content of the invention
The invention solves the problems that a technical problem be to provide a kind of wireless GPS location based on Android mobile terminal
System and method, can realize the wireless GPS location of Android mobile terminal, and with precision higher.
One aspect of the present invention provides a kind of wireless GPS positioning system based on Android mobile terminal, the system
Including:GPS OEM board card modules, the GPS location initial data for obtaining anchor point;Controller module, it is former for receiving GPS
Beginning location data, and send the data to 433 wireless radio frequency modules;433 wireless radio frequency modules, in the way of less radio-frequency
Send the original location datas of GPS;433 wireless radio frequency modules, for receiving the original location datas of GPS in the way of less radio-frequency;
Controller module, for receiving radio frequency reception raw GPS positioning data, and sends the data to Android data conversion modules;
Android data conversion modules, realize connecing gps data radio frequency for Android system terminal by usb data read-write protocol
The read-write operation of the UART interface of admission controller module.Android data control blocks, in Android system terminal
Application software completes the configuration and read-write operation to connected device, to send location control instruction, and parses the GPS for receiving
Initial data string, the data segment that obtaining needs realizes positioning.
Another aspect of the present invention provides a kind of wireless GPS location implementation method based on Android mobile terminal,
Characterized in that, methods described includes:Gps data Receiver Module and Android data conversion modules is integrated, as
USB accessories are connected on the mobile terminal for carrying android system;Judge whether Android application software is applied to have connected
USB accessories, first enumerate the accessory for being connected to Android mobile terminal, then judge the attribute of USB accessories and the manufacture specified
Whether business, pattern and version are consistent, and the match is successful if attribute is consistent, and otherwise it fails to match;Check whether application software has company
The authority of the accessory is connect, is that connection equipment and Android mobile terminal set up connection if having permission;Otherwise, to user's request
It is that connected device and Android mobile terminal set up communication if user is its imparting authority using the authority of USB accessories
Connection, otherwise, not connects;Obtain the filec descriptor of connected device;It is input into according to above-mentioned filec descriptor establishment file
Stream and file output stream;Data are write to connected USB accessories (referred to herein as virtual UART equipment) by file output stream, is entered
Row serial ports parameter configuration;Data are write to object connected device by file output stream, location control instruction is sent, it is fixed to set
Position mode simultaneously obtains location data;By GPS initial data received in file input stream object reading connected device;
The GPS initial data for being read is parsed in application software, it is fixed with longitude, dimension, the height etc. that obtain current location
Position information completes positioning in map software using the location information after above-mentioned parsing.
The invention provides a kind of wireless GPS positioning system and method based on Android mobile terminal, its data form
As shown in figure 3, wherein GPGGA is a kind of fixed data output statement of GPS, Fig. 3 shows the key data of a frame GPS location,
Each field is explained as follows:
<1>UTC time, form is hhmmss.sss.
<2>Latitude, form is ddmm.mmmm (leading digit deficiency then mends 0).
<3>Latitude hemisphere, N or S (north latitude or south latitude).
<4>Longitude, form is dddmm.mmmm (leading digit deficiency then mends 0).
<5>Longitude hemisphere, E or W (east longitude or west longitude).
<6>Alignment quality is indicated, and 0=positioning is invalid, and 1=positioning is effective.
<7>Using number of satellite, from 00 to 12 (leading digit deficiency then mends 0).
<8>Horizontal accuracy, 0.5 to 99.9.
<9>The height of antenna plane off sea, -9999.9 to 9999.9 meters
<10>The height (- 999.9 to 9999.9) of plane that location is liftoff.
<11>In the DGPS data time limit (RTCM SC-104), finally set up the number of seconds amount of RTCM transmission.
<12>Differential reference base station label, from 0000 to 1023 (leading digit deficiency then mends 0).
<13>Verification and.
Brief description of the drawings
Accompanying drawing that is additional and forming a specification part is included in the description of certain aspects of the present disclosure.The present invention
And the module and the clearer concept of flow of the system of present invention offer, by reference to being shown in reference example and accompanying drawing
Non-limiting embodiment will be better understood.Can be more preferable by reference to one or more accompanying drawing combination description of the invention
Ground understands the present invention.
Fig. 1 shows a kind of structural representation of wireless GPS positioning system based on Android mobile terminal of present invention offer
Figure;
Fig. 2 shows that of a kind of wireless GPS positioning system based on Android mobile terminal of present invention offer is specific
The structural representation of implementation method;
Fig. 3 shows an a kind of implementation of wireless GPS positioning system based on Android mobile terminal of present invention offer
A kind of mode that the parsing of multiple serial datas is extracted in GPS initial data in mode;
Fig. 4 shows a kind of flow chart of wireless GPS location method based on Android mobile terminal of present invention offer.
Specific embodiment
The present invention is described more fully and illustrated with example embodiments of the invention with reference to the accompanying drawings.
Fig. 1 shows a kind of structural representation of wireless GPS positioning system based on Android mobile terminal of present invention offer
Figure.
As shown in figure 1, a kind of wireless GPS positioning system 100 based on Android mobile terminal includes:GPS board card modules
102nd, controller 104,433M wireless modules 106, equipment authority request 108,433M wireless modules 110, controller 112, reception
Modular converter 114, the matching 118, device file descriptor acquiring 120, iostream of equipment scope check 116, device attribute
122nd, location control instruction 124, data parsing 126 and localization process realize 128.
Wherein GPS board card modules 102, the framing signal for receiving gps satellite.Raw GPS data string such as Fig. 3 of generation
It is shown;Controller 104, for sending and receiving for control data.Main transmission and location control including raw GPS data string
The reception of instruction;433M wireless modules 106, for sending radio frequency data string;Equipment authority request 108, for user's request
Use the authority of the USB accessories;433M wireless modules 110, for receiving and postbacking data;Controller 112, for controlling number
According to send and receive.The transmission of main reception and location control instruction including raw GPS data string;Receive modular converter
114, for realizing that Android system terminal is realized to gps data radio frequency reception controller module by usb data read-write protocol
UART interface read-write operation;Equipment scope check 116, for checking what whether application software had connection with specified attribute
The authority of accessory;Device attribute matching 118, for judging whether Android application software is applied to the USB accessories for having connected,
First enumerate the accessory for being connected to Android mobile terminal, then judge USB accessories attribute and specify manufacturer, pattern and
Whether version is consistent, and the match is successful if consistent, and otherwise it fails to match;Device file descriptor acquiring 120, for by power
Limit checks that the file for managing class UsbManager acquisition connected devices by Android USB is described with after attributes match
Symbol;Iostream 122, exports according to acquired filec descriptor establishment file inlet flow FileInputStream and file
Stream FileOutputStream;Location control instruction 124, for writing data to connected GPS boards equipment, sends location control
Instruction, to set positioning method (including One-Point Location, Differential positioning) and obtain high-precision location data;Data parsing 126,
The GPS initial data received in connected device is read to input flow object to parse, obtain for android terminal device
Take required field;Localization process realizes 128.In map software, positioning is completed using the location information after above-mentioned parsing.
Fig. 2 shows that of a kind of wireless GPS positioning system based on Android mobile terminal of present invention offer is specific
The structural representation of implementation method;
An a kind of specific embodiment of the wireless GPS location method based on Android mobile terminal as shown in Figure 2
Structure include:
GPS OEM board card modules 200, the GPS location initial data for obtaining anchor point;Controller 202, for receiving
The GPS location initial data of the anchor point of acquisition, and radio-frequency module transmission is sent the data to, while receiving Android terminal
The location control instruction that equipment sends, and control instruction is sent to GPS OEM board card modules 200;433 wireless radio frequency modules
204, GPS location initial data is sent in the way of less radio-frequency and location control instruction is received;433 wireless radio frequency modules
206, for receiving raw GPS positioning data in the way of less radio-frequency and sending location control instruction;Controller 208, uses
In the raw GPS positioning data of the anchor point for receiving Receiver Module acquisition, and send the data to Android data conversions
Module 210, while receiving the location control instruction that android terminal device sends, and is sent to control instruction 433 and wirelessly penetrates
Frequency module 204;Android data conversion modules 210, it is right to be realized by usb data read-write protocol for Android system terminal
The read-write operation of the UART interface of gps data radio frequency reception controller module.Android terminal device 212, for
The configuration to connected device and read-write operation are completed in the application software of Android system terminal, including sends location control
The GPS initial data strings that instruction and parsing are received, the data segment that obtaining needs realizes positioning.
Fig. 4 shows a kind of implementation of wireless GPS positioning system based on Android mobile terminal of present invention offer
Flow chart.
A kind of flow 300 of the wireless GPS location method based on Android mobile terminal as shown in Figure 4 includes:
Step 301, gps data Receiver Module and Android USB conversions UART modules is integrated, match somebody with somebody as USB
Part is connected on the mobile terminal for carrying android system;
Step 302, judges whether Android application software is applied to the USB accessories for having connected, and first enumerates and is connected to
The accessory of Android mobile terminal, then judge whether the attribute of USB accessories is consistent with version with the manufacturer, pattern for specifying, if
Consistent then the match is successful, otherwise it fails to match;
Step 303, checks whether application software has the authority of accessory of the connection with specified attribute;
Step 304, the authority of the USB accessories is used to user's request;
Step 305, is that the USB accessories and Android mobile terminal set up connection;
Step 306, the filec descriptor that class UsbManager obtains connected device is managed by Android USB;
Step 307, according to acquired filec descriptor establishment file inlet flow FileInputStream and file output stream
FileOutputStream;
Step 308, data are write by file input stream object to connected USB accessories, carry out serial ports parameter configuration;
Step 309, data are write by file input stream object to connected device, location control instruction are sent, according to reality
The different positioning precision situations wanted needed for the use of border set different positioning methods (including One-Point Location, Differential positioning etc.),
And obtain high-precision location data;
Step 310, by GPS initial data received in file input stream object reading connected device;
Step 311, parses in application software to the GPS initial data for being read, to obtain the warp of current location
The location informations such as degree, dimension, height;
Step 312, in map software, positioning is completed using the location information after above-mentioned parsing;
With reference to the exemplary description of the foregoing present invention, those skilled in the art could be aware that the present invention has advantages below:
The invention provides a kind of wireless GPS positioning system and method based on Android mobile terminal, the system and side
Method can realize the high precision wireless GPS location based on Android mobile terminal, not only greatly improve the efficiency of positioning, also greatly
Improve positioning precision greatly.
Although the present invention embodies some specific examples and shows and describes herein, but the present invention is not limited only to shown place
Details because without departing from it is of the invention spirit and claim scope and equivalency range in, various changing can be made
Enter and structure change.Therefore, wide scope and as set forth in some sense with the scope of the present invention one
The explanation of cause is additional and claim is appropriate.
Claims (1)
1. a kind of wireless GPS location method based on Android mobile terminal, wherein based on the wireless of Android mobile terminal
GPS positioning system includes:GPS OEM board card modules, gps data rf control unit module, gps data radio frequency sending module, GPS
Data radio receiver module, Android data conversion modules and Android data control blocks;Wherein,
GPS OEM board card modules, the GPS location initial data for obtaining anchor point;
Gps data rf control unit module, for receiving the GPS location initial data of the positioning single-point for obtaining, and data is sent out
Give gps data radio frequency sending module;It is additionally operable to receive the GPS location of the positioning single-point that gps data Receiver Module is obtained
Initial data, and send the data to Android data conversion modules;
Gps data radio frequency sending module, for sending GPS location initial data in the way of less radio-frequency;
Gps data Receiver Module, for receiving GPS location initial data in the way of less radio-frequency;
Android data conversion modules, realize penetrating gps data for Android system terminal by usb data read-write protocol
The read-write operation of the UART interface of frequency controller module;
Android data control blocks, for completing the configuration to connected device in the application software of Android system terminal
And read-write operation, to send location control instruction, and the GPS initial data strings for receiving are parsed, the data segment for needing is obtained, with
Realize positioning;
Characterized in that, methods described includes:
Gps data Receiver Module and Android data conversion modules is integrated, it is connected to carrying as USB accessories
On the mobile terminal of android system;
Judge whether Android application software is applied to the USB accessories for having connected, first enumerate and be connected to Android movements eventually
The USB accessories at end, then judge whether the attribute of USB accessories is consistent with version with the manufacturer, pattern for specifying, matched if consistent
Success, otherwise it fails to match;
Check whether the application software has the authority for connecting the USB accessories, be the USB accessories and Android if having permission
Mobile terminal sets up connection;Otherwise to user's request processing authority, if user is its imparting authority, for connected device and
Android mobile terminal sets up communication connection, otherwise, not connects;
The filec descriptor that class UsbManager obtains connected device is managed by Android USB;
According to above-mentioned filec descriptor establishment file inlet flow FileInputStream and file output stream
FileOutputStream;
Data are write to connected USB accessories by file input stream object, serial ports parameter configuration is carried out, wherein, the USB accessories
As virtual UART equipment;
Data are write by file input stream object connected device, location control instruction is sent, to set positioning method and obtain
Location data;
By GPS initial data received in file input stream object reading connected device;
The GPS initial data for being read is parsed in application software, to obtain longitude, dimension and the height of current location
Location information;
In map software, positioning is completed using the location information after above-mentioned parsing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510038909.0A CN104656103B (en) | 2015-01-26 | 2015-01-26 | A kind of wireless GPS positioning system and method based on Android mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510038909.0A CN104656103B (en) | 2015-01-26 | 2015-01-26 | A kind of wireless GPS positioning system and method based on Android mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104656103A CN104656103A (en) | 2015-05-27 |
CN104656103B true CN104656103B (en) | 2017-06-16 |
Family
ID=53247457
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510038909.0A Active CN104656103B (en) | 2015-01-26 | 2015-01-26 | A kind of wireless GPS positioning system and method based on Android mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104656103B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105807299A (en) * | 2016-03-17 | 2016-07-27 | 孙红星 | Method for improving locating precision of single-frequency GNSS mobile measurement terminal |
CN107506316A (en) * | 2017-08-16 | 2017-12-22 | 北京智能管家科技有限公司 | Apparatus control method, device, terminal device and storage medium |
CN107704276A (en) * | 2017-09-05 | 2018-02-16 | 千寻位置网络有限公司 | High-precision solution method based on android system intelligent terminal |
CN109828290A (en) * | 2019-01-31 | 2019-05-31 | 泰斗微电子科技有限公司 | The method and terminal device of the information processing of positioning chip |
CN110225448A (en) * | 2019-05-20 | 2019-09-10 | 北京安云世纪科技有限公司 | Positioning device and system for being connect with host equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202798852U (en) * | 2012-09-29 | 2013-03-13 | 江苏智联天地科技有限公司 | Multifunctional intelligent industrial handset based on Android system |
CN203689226U (en) * | 2013-11-25 | 2014-07-02 | 深圳市均方根科技有限公司 | Intelligent moving terminal based on Android system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9749780B2 (en) * | 2011-02-05 | 2017-08-29 | Apple Inc. | Method and apparatus for mobile location determination |
US20140073258A1 (en) * | 2012-09-07 | 2014-03-13 | Apple Inc. | System and Method of Adaptive Out-of-Band Interference Cancellation for Coexistence |
-
2015
- 2015-01-26 CN CN201510038909.0A patent/CN104656103B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202798852U (en) * | 2012-09-29 | 2013-03-13 | 江苏智联天地科技有限公司 | Multifunctional intelligent industrial handset based on Android system |
CN203689226U (en) * | 2013-11-25 | 2014-07-02 | 深圳市均方根科技有限公司 | Intelligent moving terminal based on Android system |
Non-Patent Citations (4)
Title |
---|
Android手机低功耗GPS导航软件设计与实现;舒俊等;《电子设计工程》;20130331;第21卷(第5期);第106-109页 * |
GPS定位信息提取及应用;李冰等;《电子设计工程》;20120630;第20卷(第12期);第72-74页 * |
基于Android平台的移动终端GPS研究;倪红军;《计算机技术与发展》;20120531;第22卷(第5期);第198-201页 * |
基于北斗导航卫星移动定位系统研究与实现;万琪俊;《中国优秀硕士学位论文全文数据库 基础科学辑》;20140715(第7期);第12页第3段-第13页第1段,第23页第3段,第27页,第39页第3段-第40页第4段,图2-4,图3-2,图4-4 * |
Also Published As
Publication number | Publication date |
---|---|
CN104656103A (en) | 2015-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104656103B (en) | A kind of wireless GPS positioning system and method based on Android mobile terminal | |
CN103596631A (en) | Construction toy comprising a plurality of interconnectable building elements, set of a plurality of interconnectable building elements, and method to control and/or monitor a construction toy | |
CN104699491A (en) | Upgrade processing method and terminal device of application program | |
CN214338130U (en) | Communication module and communication system | |
CN103687061A (en) | Method and terminal for establishing connection | |
EP3190718B1 (en) | Antenna function extension apparatus and method for function extension of antenna | |
KR20070027172A (en) | Method and devices transmitting data for bluetooth mobile phone by rfid | |
CN108288994B (en) | Take big dipper multi-card communication location pronunciation equipment of WIFI function | |
CN204480290U (en) | A kind of NFC label for bluetooth connection and burning device | |
CN101409716A (en) | Method for matching communication velocity of wireless communication module and external application module | |
CN108964698B (en) | RTK base station positioning test system and method | |
CN101340718B (en) | Wireless mobile apparatus and method for setting searching time by communication network | |
CN107179724B (en) | Traffic light signal period collection system | |
CN106468773A (en) | Satellite positioning device and electronic installation | |
CN101557558A (en) | Location-based service equipment and method thereof | |
CN101470185A (en) | Use method for assisted global positioning system on tracing device terminal | |
CN104573773B (en) | A kind of smart card reader method | |
CN203588388U (en) | Mobile financial payment terminal with GPS and LBS positioning function | |
CN103487814B (en) | Psamminida based on field intensity orientation/satnav identifies other method for searching and device | |
KR101360145B1 (en) | Remote controlling system for automatic satellite | |
CN208351261U (en) | A kind of logical children's location watch of the whole network | |
CN101576388A (en) | Satellite positioning and navigation device | |
CN101788658A (en) | GSM (Global System for Mobile Communications)/GPS (Global Position System) module, GPS comprising same and use method thereof | |
CN201789510U (en) | Data card with GPS function | |
CN103078684A (en) | Method and device for automatic connection among equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |