CN104678412A - Beidou or GPS dual-mode on-line positioning method - Google Patents

Beidou or GPS dual-mode on-line positioning method Download PDF

Info

Publication number
CN104678412A
CN104678412A CN201410763072.1A CN201410763072A CN104678412A CN 104678412 A CN104678412 A CN 104678412A CN 201410763072 A CN201410763072 A CN 201410763072A CN 104678412 A CN104678412 A CN 104678412A
Authority
CN
China
Prior art keywords
time
mode
information
real
map
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.)
Pending
Application number
CN201410763072.1A
Other languages
Chinese (zh)
Inventor
韦江华
刘博学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi University of Science and Technology
Original Assignee
Guangxi University of Science and Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangxi University of Science and Technology filed Critical Guangxi University of Science and Technology
Priority to CN201410763072.1A priority Critical patent/CN104678412A/en
Publication of CN104678412A publication Critical patent/CN104678412A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/33Multimode operation in different systems which transmit time stamped messages, e.g. GPS/GLONASS

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention discloses a beidou or GPS dual-mode on-line positioning method which comprises the following steps: acquiring original position information and time of a beidou mode, a GPS mode and a beidou and GPS dual mode; providing an application program layer for a java position of a user space; storing the data into a corresponding data sheet to facilitate access and acquisition of a mobile client; acquiring real-time longitude and latitude information and time of mobile equipment from a position information data sheet by a GET mode; marking the acquired position information on a beidu map by the client by calling an API of the beidu map to realize positioning and displaying of the mobile equipment on line and in real time. According to the beidou or GPS dual-mode on-line positioning method, the defects such as low reliability, small application range, high information sending difficulty and the like in the prior art can be overcome, and the advantages of high reliability, large application range and low information sending difficulty are achieved.

Description

The Big Dipper or GPS dual-mode tuning on-line method
Technical field
The present invention relates to communication technical field, particularly, relate to the Big Dipper or GPS dual-mode tuning on-line method.
Background technology
Develop rapidly along with scientific and technical, socioeconomic, especially the development of positioning system and maturation, the comprehensive strength of China is significantly improved in the woods in the world, but the synthesized competitiveness wanting China is more remarkable, we must have breakthrough from aspects such as military affairs, economy and developments in science and technology, and triones navigation system is as the system of China's independent research.It militarily can prevent from pining down by other people in the campaign in future, and we also can break through other people by same means simultaneously; Huge economic benefit can be founded every year economically, on the one hand, can save originally for the enormous expenditure of Introduced From Abroad system, on the other hand, can be demestic user's service with low price by the dipper system of oneself, allow industry department as much as possible use upper this high technology equipment, thus found larger social value and material wealth, also have on the one hand, the system that oneself can research and develop by we, render to international market, take part in international competition, obtaining of foreign money; Scientific and technical aspect, we had both developed satnav, the navigational system of oneself, had had again the tachnical storage of related fields, had had these tachnical storages, and our country just can occupy catbird seat in the science and technology competition in future.
Develop at high speed information, advocate conservation-minded society and improve constantly per capita income level and achieve common prosperity equally, ask most the modern times of fairly comfortable life, mechanization, effective service become main flow, though be individual or business unit to mobile object (as the vehicles, carry-on articles or some move detection instrument etc.) real-time online location, demand all the more large detected, the communication base station of adding some remote districts covers few, and it is large that information transmits difficulty.
Realizing in process of the present invention, inventor finds at least to exist in prior art that reliability is low, the scope of application is little and information transmits the defects such as difficulty is large.
Summary of the invention
The object of the invention is to, for the problems referred to above, propose the Big Dipper or GPS dual-mode tuning on-line method, to realize, reliability is high, the scope of application large and information transmits the little advantage of difficulty.
For achieving the above object, the technical solution used in the present invention is: the Big Dipper or GPS dual-mode tuning on-line method, comprising:
Adopt D2030C, obtained original position-information and the time of the Big Dipper, GPS, the Big Dipper and GPS dual-mode by serial ports respectively;
Through the api interface layer that the inner nuclear layer of Android, dynamic base/intermediate bonding layer, FrameWork layer i.e. location-based service provide to user's space, until user's space java position provides application layer;
Far-end Cloud Server is connected to by http protocol request in java location-based service application program, adopt POST mode the real-time position information of mobile device and Perfect Time uploaded and perform the renewal rewards theory of server mysql database again, data are saved in corresponding tables of data so as the access of mobile client, acquisition;
Page end and mobile phone terminal, set up the passage of data interaction by http protocol and server, adopt GET mode from location information data table, take real-time latitude and longitude information and the time of mobile device;
Meanwhile, the positional information got marks on Baidu's map by the API of client call Baidu map, reaches the real-time locating and displaying to mobile device online.
The Big Dipper of various embodiments of the present invention or GPS dual-mode tuning on-line method, owing to comprising: the original position-information and the time that obtain the Big Dipper, GPS, the Big Dipper and GPS dual-mode; Application layer is provided by user's space java position; Data are saved in corresponding tables of data so as the access of mobile client, acquisition; Adopt GET mode from location information data table, take real-time latitude and longitude information and the time of mobile device; The positional information got marks on Baidu's map by the API of client call Baidu map, reaches the real-time locating and displaying to mobile device online; Thus the defect that in prior art, reliability is low, the scope of application is little and information transmission difficulty is large can be overcome, to realize, reliability is high, the scope of application large and information transmits the little advantage of difficulty.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the principle of work schematic diagram of the Big Dipper of the present invention or GPS dual-mode tuning on-line method.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
According to the embodiment of the present invention, as shown in Figure 1, the Big Dipper or GPS dual-mode tuning on-line method is provided.
The Big Dipper of technical solution of the present invention or GPS bimodulus location then can overcome the difficulty that prior art exists, for people in need or enterprises and institutions provide corresponding service.
Technical scheme of the present invention, follow the development of current techniques, to develop and initiatively to use the triones navigation system of the autonomous property right of China for main starting point, utilize the technology such as current android the most popular and cloud service, around the fast-developing trend of mobile Internet, simultaneously also in order to solve individual and enterprises and institutions carry out the heavy demand etc. that the real-time online of mobile object is located.Technical scheme of the present invention, the main contents of research have several:
(1) the cutting customization of Android system;
(2) wifi on Freescale i.mx6q series platform, dual interface etc. the driving of a series of hardware interface;
(3) the D3020C Big Dipper or GPS dual-mode Real-time Obtaining location-based service is provided;
(4) PHP+MYSQL+APACHE is used to erect a far-end cloud backstage;
(5) corresponding location-based service database and tables of data is created at server;
(6) the POST method of HTTP is used to upload the particular location data of mobile device in real time to server;
(7) utilization javaScript writes the design realization realizing web page user end;
(8) android and java is used to design android cell-phone customer terminal;
(9) Json form is used to realize realizing user side resolve it by the positional information of http protocol transmission mobile terminal in a network;
(10) use the GET method of HTTP to server request downloaded resources;
(11) Baidu api is used to carry out the location exploitation of Baidu's map.
the overall design of technical scheme of the present invention
The general frame of 2.1 systems
Carrying out the background of some technical solution of the present invention researchs in early stage, object, meaning and content, and to picture demand, technology, economy, on the basis of system function requirement, development environment, tool analysis and system, software and hardware demonstration, the general frame that system realizes can be designed with that, as shown in Figure 1, an overall system architecture model more intuitively is first provided.
In Fig. 1, we can find out technical scheme of the present invention intuitively, design be roughly divided into Big Dipper positional information receiving center (Freescale i.mx6q series exploitation plate) be arranged on mobile need on the object of location, far-end Cloud Server and mobile web webpage client and a few part composition of android cell-phone customer terminal.
Understand entire system more intuitively after design framework and thought, then technical standpoint is listed in, no matter hardware, or the programming framework of software aspect and program thread, we obviously can see that on bottom Freescale i.mx6q series mobile platform, race Android4.0.4 system accepts the real-time position information of the Big Dipper or GPS dual-mode module in real time, use the POST mode of HTTP to be sent to by PHP by data by connecting wifi/ network interface card/3G simultaneously, the far-end Cloud Server that Mysql and Apache builds stores, and this server runs on ubuntu12.04, then when mobile client needs the real-time position information of mobile object, just initiatively use the GET mode of HTTP from server request data by wire/radio network, the API that such mobile client just can call Baidu's map as web webpage client and android client brushes the positional informations such as the longitude and latitude obtained from server on Baidu's map and shows in real time, and have 2D, several form of three peacekeeping satellite map selects display.
The general frame of 2.2 hardware platforms
Technical scheme of the present invention, hardware frame used by system, its processor is I.MX6Q, the compatible monokaryon of Cortex-A9 framework energy, double-core and four cores, simultaneously its most high primary frequency reaches 1.2GHZ, there is the DDR3 of 64 1GB and the LPDDR2 of 32, two passages, the NandFlash of 8GB user customizable, be less than the low-consumption power of 4W, be provided with HTML, USB, SD card, TF card, the Ethernet of 1000/100/10Mbps, multihead display, LCD, all multiplex roles such as touch-screen, 3 road UART mouths and 1 road CAN interface is also had except this this, LCD interface supports TFT LCD 1024x600, LVDS: interface supports 720p60, 1080p60, audio frequency input is MIC, it is Headphones that audio frequency exports, RTC is adopted to realize outside real-time clock, the power down holding time etc., power acquisition 5V2A voltage inputs, and have abundant software resource, all support the 3.0.35 kernel of Android 4.0.4 edition system, ubuntu12.04 and Linux.
SD card off line fast writing is supported in Android 4.0.4, USB downloads burning, the burning of monofile/multifile one key, the burning modes such as the file system programming of EXT4 form, its Uboot supports eMMC and SD card two kinds of Starting mode simultaneously, and support LVDS, LCD, HDML, VGA many kinds of display devices, support Linux3.0.35 version kernel, also equally eMMC is had with other embedded products in kernel, house dog, RTC, IO, SPI, I2C, PWM controller, LCD, touch-screen, USB, serial ports, Ethernet, WIFI, 3G, USB turns string, HDLM, VGA, NAND_FLASH, the driving of the much equipment of SD card and TF card etc., its file system supports EXT4, NFS, several file system such as FAT32 and NTFS.
2.3 software general frames
Technical scheme of the present invention, D2030C takes original position-information and the time of the Big Dipper, GPS, the Big Dipper and GPS dual-mode respectively by serial ports, through the api interface layer that the inner nuclear layer of Android, dynamic base/intermediate bonding layer, FrameWork layer i.e. location-based service provide to user's space, until user's space java position provides application layer; Far-end Cloud Server can be connected to by http protocol request with that in java location-based service application program, adopt POST mode the real-time position information of mobile device and Perfect Time uploaded and perform the renewal rewards theory of server mysql database again, data are saved in corresponding tables of data so as the access of mobile client, acquisition; Then page end and mobile phone terminal just can set up the passage of data interaction by http protocol and server, then just can adopt GET mode from location information data table, take real-time latitude and longitude information and the time of mobile device, the positional information got marks on Baidu's map by the API that simultaneously client just can call Baidu's map, reaches the real-time locating and displaying to mobile device online.
the detailed design of technical solution of the present invention
3.1 system transplantation
3.1.1 Android source code obtains and compiling
Technical scheme of the present invention, the system of employing is android4.0.4, first will obtain in android official website, its key step have following some:
(1) repo download tool is downloaded;
(2) create bin catalogue in this locality with mkfile, then enter bin catalogue and use:
gitclone https://android.googlesource.com/tools/repo
(3) enter repo catalogue after having downloaded, and be switched to Stable Branch with git checkout;
(4) with export, repo catalogue is added in the global context variable configuration file of current system;
(5) create the catalogue of android source code in this locality, in catalogue, use repo init to download android4.0.4 source code;
(6), after having downloaded, mirror image and the EXT4 form mirror image of kernel 3.0.35 is then first compiled;
(7) to use ./buid/envsetup.sh configuration surroundings and select development platform with lunch, finally compiles with make-j6.
3.1.2 U-BOOT cutting and compiling
Technical scheme of the present invention, the u-boot2010.03 version of employing, detailed customization wherein and compiling as follows:
(1) decompress(ion) tar order decompress(ion) u_boot source code;
(2) enter the path after decompress(ion), source code is carried out to the screening in cpu, board-level platform, storehouse etc.;
(3) cross tool chain is set in the configuration file starting most in path of current Android source code;
(4) compile configuration file, finally compile out u-boot.bin with make-j2.
3.1.3 system burning
The burning of system, first arrange usb pattern ndw to go to load initialization internal memory, ip and gateway environment variable that network loads then be set, compiled u-boot.bin is burnt to eMMC(inand) in reference position, size is 4M, is finally set to eMMC start-up mode; Then be burnt to after u-boot by network by compiled uImage, size is 4M, arranges the mode of interior startup kernel simultaneously; Load finally by network, the compiled file system of burning, be 16M with regard to its burning in the size below of internal memory kernel, then restart, burning work all so just completes.
3.1.4 PHP+Mysql+Apache cloud server environmental structure
(1) the building of development environment: first use apt-get command download in Ubuntu12.4, install Apache2, use local loopback address (127.0.0.1) to test on a web browser simultaneously, then continuation apt-get command download, configuration php5 write a php file tested under root directory/var/www, be also finally make apache support php mysql with apt-get command download, configuration mysql-service with downloading php5-mysql.
(2) establishment of server database: first use mysql-u root-p to log in Ubuntu SQL, then username and password is set to it with CREATE DATABASE beidou building database, then exit, and then log in mysql-u beidou-p the database that just now created for create storing mobile device location information tables of data Location_info, have major key id, No. id, equipment, longitude Lobgtitude and latitude Latitude and satellite time transfer time Time five attributes.
3.2 hardware module analyses
3.2.1 bimodulus module D3020C introduces
Technical scheme of the present invention, what the hardware platform of design adopted is model for the TD3020C Big Dipper or GPS bimodulus module provide real-time position information to system, it has volume little, low in energy consumption and support the advantage such as warm start, and module supports the Three models such as BD2 B1 mode of operation, GPS L1 mode of operation and BD2 B1/GPS L1 blend modes of operation simultaneously.Its functional framework figure and hardware interface, wherein power acquisition with VCC, V_BCKP and V_ANT as input, VCC_OUT and VCC_RF is as output, antenna is connected on PF_IN and supports BD2 B1/GPS L1 bimodulus active antenna, UART serial ports has serial ports 1(TXD1/RXD1) and serial ports 2(TXD2/RXD2) two serial ports, serial ports one exports for obtaining positional information the pattern that simultaneously also can be used to setting, regioselective, baud rate, within 48000bps ~ 115200bps scope, also has the GPIO interface that three tunnel users can customize.
First software interface agreement aspect is that statement identifier has BD, GP, GN, CC and P, and output statement format character has positional information (GGA), terrestrial coordinate positional information (GLL), effectively satellite number (GSA), satellites in view state (GSV) etc.; Read statement form arranges current system duty (SIR), arranges serial ports work baud rate (CAS01) and arranges NMEA and exports turnover rate (CAS02) three kinds.
Analyze 3.2.2 WIFI module drives
The WIFI module that technical solution of the present invention design adopts is NH387 model based on SDIO, and the driving of this WIFI module is based on sdio and mmc bus.Wherein wifi equipment and wifi are driven through the coupling flow process of respective bus.
The transmission of the packet of Wifi module and be received in the framework flow process of whole network hierarchical structure, reception for packet is first got from network equipment medium layer by interrupt response, be linked to network protocol layer by the function call of the network equipment infrastructure body of procotol interface layer again, the concrete data that then wifi is received by netif_rx function by network protocol layer pass to user's space through socket layer and virtual file system again; Same user's space outwards sends data and goes out, and first data sent to the dev_queue_device of network protocol layer by virtual file system and Netz ocket layer, the respective function finally by network equipment functional layer sends.Then the transmission of wifi packet and reception.
3.3 Software Detailed Design
3.3.1 on mobile device, position provides and upload software program design
Technical scheme of the present invention, on mobile device position provide and upload to far-end server store Software Detailed Design flow process, can find out the Software for Design of this block be roughly divided into the Big Dipper or the positional information such as GPS longitude and latitude, time service time acquisition and upload far-end server store two parts composition.
In the part that positional information obtains, first be load the view resource of local display and the initialization of display control and the Service in the service of inventory file allocation position, then declare, obtain the client of Location location-based service and the AK value that we apply for is set, then registerLocationListener(this is used) register monitoring position service function, use setLocationOption(simultaneously) whether function open positioning equipment to locating information, arrange and obtain Baidu's coordinate type, start buffer memory location, Location Request time interval and obtain the attributes such as detailed positional information and arrange, Location Request is sent to obtain the information such as the positional informations such as real-time longitude and latitude and satellite time transfer time to bimodulus module finally by requestLocation function, the request sent is asynchronous, and its rreturn value receives in onReceiveLocation function.
Real-time position information uploads partial design, when initiation Location Request, use onReceiveLocation(simultaneously) receive real-time position information after, first carry out the object instance of the container that is synchronous, safety of temporary memory location information with the StringBuffer that establishment size is 256 bytes, then will upload to the position location data in remote data storehouse and time service time data and repack and the thread uploaded of log-on message.The example that the POST mode request first building HTTP in thread is uploaded, when asking to upload in far-end and server by the form of byte stream by positional information successfully, when returning to the feedback data of the JSON data form in request end in cloud server end success data inserting to Location_info tables of data, resolve feedback data, when for true being, illustrating that positional information is uploaded and being updated successfully, otherwise failure.
3.3.2 far-end Cloud Server software program design
Configuring and putting up on the basis of far-end Cloud Server, in technical scheme of the present invention, in research and design, to the detailed process of the software of far-end Cloud Server.Can obviously see, the software operation of far-end Cloud Server is primarily of acquisition two parts composition of the position of mobile equipment Data Update of server database and the position of mobile equipment data of server database.
The detailed design php language design of Big Dipper position of mobile equipment information updating is write.First obtained by $ _ POST array variable and upgrade client from position data and ask the name variable that sends over and value by the POST of HTTP, then empty($ _ POST [name variable] is used) (wherein in technical scheme of the present invention, name variable involved by middle Data Update aspect has equipment id, the Longitude that equipment is current, Latitude and satellite time transfer time) determine whether sky, if be not empty, storing its correspondence, if be sky, export prompting with coding and lack corresponding attribute, abandon the renewal of these data, thus upgrade unsuccessfully, when all data all have property value, linked database is removed with corresponding order, wherein " beidou007 " and " beidou123321 " is the username and password of database respectively, mysql_select_db('beidou' after successful connection, $ con) select " beidou " database of the position data storing Big Dipper mobile device in server, and then with the data just now got and mysql_query($ sql) enforcing location information to be inserted in beidou database in Location_info tables of data by method, then after all operations complete, the link of operation beidou database is closed, thus ensure the safety of other data, integrality.
Same is also with php language compilation, design in the detailed design of Big Dipper position of mobile equipment data query.First by the request msg that $ _ GET array variable reception Android and Web webpage client is sended over by the GET mode of HTTP agreement, then whether effectively the property value of the equipment id received from client $ _ GET [' id'] is differentiated, if for empty equally with echo urldecode(json_encode($ result)) point out printout to lack this attribute, thus cause query manipulation failure, successful then preserve this property value; Then continue to perform aforesaid operations; Then property value and echo urldecode(json_encode($ result is used)) method goes inquiry Location_info tables of data, use json_encode($ recipe if found) method is packaged into the data of JSON form and output returns; Finally continue with mysql_close($ con) the connecting of turn-off data storehouse.
3.3.3 android client software program designs
Technical scheme of the present invention, the framework flow process of the Software for Design of android client, we can see that it is welcome the application of login interface, Baidu map K EY, checking and detection, the real-time locating and displaying of Big Dipper mobile device and Baidu's map distinctive off-line map to download several major part by user and forms.
Login interface is wherein welcome to adopt the pattern of fixing username and password; The KEY that the application of KEY can go Baidu map api to provide applies for that interface goes application; For the detection of network, verification mode be arranged on technical scheme of the present invention, in be encapsulated in separately the onGetNetworkState(int iError rewritten in a MKGeneralListener class) method come, realize, the onGetPermissionState(int iError that rewriteeing equally) realize detection and the checking of KEY in method.
Then can see to the real-time locating and displaying of Big Dipper mobile device again by show use the loading of resource, the showing three pieces form on Baidu's map of the request of real-time position information and positional information.
After finishing watching the general frame of android client software design, remove detailed realization and the data flow of the nucleus module real time position locating and displaying of looking at android Client Design with that.
Program just start first must carry out initialization to map administrative class BMapManager, then setContentView(R.layout.activity_main is used) go to load the topology file of map denotation and some resources, and the initialization of some controls used and the monitoring of event, in the design, be provided with two 2D maps and satellite map shows two select buttons, then mMapController=mMapView.getController(is used) go acquisition BeiduMap controller then to arrange attributes such as its level of zoom as Map, then go the interface class of structure map denotation MKMapViewListener after this and rewrite the picture onGetTransitRouteResult(used in map loading procedure), the method such as onMapLoadFinish(), then naturally regMapViewListener(DemoApplication.getInstance(is called) .mBMapManager, mMapListener) method removes the audiomonitor of user's map denotation, after completing these, Baidu's map just successfully can be loaded on MapView control and show by we, but our technical solution of the present invention requires it is want the real-time location of Big Dipper mobile device and detail location to describe, so we also will build the initialization of coverture pop-up window PopupOverlay layer and location-based service search MKSearch entity object, also need during initialization to build MKSearchListener() instance objects, when calling the reverseGeocode(p of MKSearch) when going to obtain specifically detailed address information, we just can rewrite onGetAddrResult(MKAddrInfo arg0 in MKSearchListener example, int arg1) in use arg0.strAddr to get certain detailed location information a bit on Baidu's map concrete.
After finishing above initialization preliminary work, can open with that a thread constantly every 1s distally Cloud Server go the real-time longitude and latitude positional information of acquisition request and time.Realizing this block first will build HttpClient object and use HttpGet(" http: // 192.168.1.103/maps/WebService/getLocation.php id=1 ") method sends out to server that book GET mode connects, request of data, works as link.Ask serviced device accept after the diffluence of InputStreamReader character just can be used to obtain the JSON formatted data that returns of server lookup, and then build JSONObject object after obtaining data and go parsing JSON data.The sendMessage(msg taking concrete positional information and be put into after the time by Handler asynchronous message mechanism in Hashtable container) method is sent to main thread and marks in real time on map.
First main thread uses GeoPoint((int after taking data) (lat * 1E6), (int) (lon * 1E6)) method obtains a location point, then CoordinateConvert.fromGcjToBaidu(p2 is used) correct, use reverseGeocode(p simultaneously) obtain this detailed location information on map, then building also initialization ItemizedOverlay layer marks this point on map, the positional information simultaneously ejecting this point describes window, finally this point is set to center show and refresh map, we just achieve and locate the real-time online of Big Dipper mobile device in android client end like this.
3.3.4 web webpage client software program design
Technical scheme of the present invention, the framework of software simulating of web webpage client.Can be clearly seen that by scheming us, webpage client by the application of login interface, KEY, KEY and outside js file loading and in real time the several part in location form.
Login interface is wherein welcome also to be log in username and password with fixing; The application way of application equally also with android client of KEY is the same; Then convertor.js file to be loaded; The realization of last real-time online positioning function still has the loading of resource and initialization, acquisition positional information and real-time three pieces, the position content design showing Big Dipper mobile device on Baidu's map.
After finishing watching the Design of Software Framework of web webpage client, we find obviously to be only core to the real-time locating and displaying of mobile device.The Software Detailed Design of nucleus module and data flow, this part write by javaScript and HTML language.
Can find out, program at the beginning some of HTML are conventional arrange after just use the mode of <script type=" " src=" " ></script> to remove loading KEY and be the convertor.js external file of Baidu's coordinate by Google's coordinate transformation and remove to arrange the title of webpage client by the <title> Big Dipper or GPS positioning system </title> mode; Then new BMap.Map(" allmap " is spent) create a whole map deMap example, then just go to arrange picture centerAndZoom, the setting of the Map attributes such as enableScrollWheelZoom and with addControl() method removes the control adding some maps, wherein has that map convergent-divergent controls, ratio controls and map denotation control etc.With BMapLib.SearchInfoWindow() the self-defined window introducing developer's information of method, adds a test mark and mark mark opens self-defining developer's messagewindow.
Finish the relevant initialization of this series of resource loading and map, and after simple test, we will to go by the GET mode of HTTP agreement to be constantly labeled on Baidu's map to the real positional information of server request mobile device thus to realize the function of locating the real-time online of mobile device.The realizing us and realize by $ .ajax technology and data communication between web and server of this block, first will arrange the url address of web web-page requests and GET request method and data layout in ajax, when asking successfully just with BMap.Point(data.Latitude, data.Longitude) location point that mobile device finally occurs and the time point finally occurred is obtained, then we just can use BMap.Convertor.translate(point, 2, translateCallback) the true longitude and latitude realizing Google is converted into Baidu's coordinate, wherein translateCallback function is used to realize the Baidu coordinate BMap.Marker(point after by conversion, icon:myIcon}) create a mark, then map.addOverlay(is used) method that marks object space adds on Baidu's map, the method simultaneously calling HTML display window ejects information and describes window, finally use map.setCenter(point) this point is set to the display of map central authorities, and with setTimeout(" myajax() ", 1000) realize every 1s whereabouts server request locating and displaying, also the effect that a kind of map refreshes is reached.So just achieve the real-time online locating and displaying function to Big Dipper mobile device.
the testing and analyzing of technical solution of the present invention
The order ground of 4.1 system testings and meaning
After a Software for Design terminates and before formal input application, the test of system, comprehensive function and performance must be carried out to software, only finish and carry out this block of system testing and just complete this design, ensure that this integrality designed, designed systemic-function, performance only in this way could be allowed more powerful, can be just only in this way the maximum affirmative to deviser and accreditation, software systems out designed by only in this way could allowing play sends out due ability and its value that will reach of creation.
Technical scheme of the present invention, after research and design, no matter all done system to software and hardware or the modules such as server end and client part, detailed test analysis.Before to the test of each functional module, first must carry out selection to the Big Dipper or GPS hardware positioning pattern and arrange; After setting station-keeping mode, continuation will select network service, wired, the wireless wifi of this platform and UNICOM 3G tri-kinds of latticed forms; Just can test Big Dipper signal process after carrying out above two steps.
4.2 Big Dipper mobile device datas upload testing and analyzing
On Big Dipper mobile device, upload to the situation that far-end Cloud Server carries out real-time position information and the time service information stored.Clearly can find out, correct real-time position information and time service temporal information can be obtained from the Big Dipper or GPS module, and can upload in far-end Cloud Server with http protocol far-end and store.
4.3 far-end Cloud Server testing and analyzing
(1) far-end Cloud Server to the real-time position information of Big Dipper mobile device and the memory module of temporal information test and verify we can by under having the ubuntu12.04 of server in operation with order line code mysql-u beidou007-p, show database and use beidou and select * from Location_info; Check.Can be clearly seen that the real-time position information of the Big Dipper No. 1 mobile device and time service information can very accurately, not lose packets of information every 3s, data are in triplicate stored in the position data table location_info in far-end server database beidou.
(2) client distally with the success of the real-time position information of server request Big Dipper mobile device after, the data that server lookup Location_info tables of data returns to client request end.
The HTTP agreement of we input reference high in the clouds and server is on a web browser with the network address of POST mode request, http: // 192.168.1.103/maps/WebService/getLocation.php id=1 is used for the data application of simulant-client, raw data with json after success returns, thus illustrates that we can have access to far-end server by the bidding protocol of this form and can get the longitude and latitude positional information and time that Big Dipper mobile device that we want occurs for the last time.
4.4 android client testing and analyzing
(1) test at android client logs interface, wherein " long range positioning logs in entrance " adopted font to glimmer and reach the effect emphasized, also the form of useful word horse race lamp logs in some as some warm tip information such as user name, password and the process of fault emergency measures to user, and what adopt is the user name name and password login that beidou and 007 is fixing simultaneously.When accurately inputting username and password, then clicking login button, will jump to as follows
Logining successfully on interface, the functional entrance that user's Big Dipper mobile device locates the off-line download map of entrance and Baidu's map online in real time can be supplied to.
(2) locating and displaying functional test on Baidu's map in real time, after logining successfully, click " Big Dipper mobile device is located online in real time " option and enter into real-time locating and displaying interface, then we just can select the type of map denotation by button, in technical scheme of the present invention, the map style display that in design, android client has 2D different with satellite map type two kinds.
No matter we obviously can see the real time position showing Big Dipper mobile device on Baidu's map that can be correct on 2D map or satellite map, and can also correct mark demonstrate this position detail location describe and the time service time.The error of wherein locating is within controlled range.
4.5 web webpage client testing and analyzing
(1) test of webpage client login interface, what system adopted is the user name name and password login that beidou and 007 is fixing.When correct input username and password logs in, just have and point out the message window logined successfully display, determine when click or close prompt window, system jumps to operation interface, for showing the interface of the real-time position information of Big Dipper mobile device in real time.
(2) in the effect of web webpage client to the online location in real time of Big Dipper mobile device.Can see the positional information that 2D, satellite and three-dimensional three kinds of map denotation types can be selected to realize correct real-time locating and displaying Big Dipper mobile device, the temporal information that the Big Dipper occurs by the form of real active window for the last time simultaneously shows.Such client just can grasp the information such as real-time time and place of Big Dipper mobile device accurately.
4.6 system testing conclusions
By to select the model selection of locating module and network and after Big Dipper signal testing etc., uploading then by the real-time position information of above Big Dipper mobile device, far-end server is to the storage of information and operation, the real-time locating and displaying of the login of android client and two kinds of map styles, the test of description and the login of web webpage client and the functional module such as the real-time display of three kinds of map styles and description, achieve Big Dipper mobile device by http protocol POST mode every 3s and lose that data and 3 times repeat in order to mode real-time positional information and time service temporal information uploaded to far-end Cloud Server store, when cellphone subscriber's end and web web page user end by the GET mode of http protocol to backstage request msg time, server can operate correctly, fast to be retrieved Location_info location information data table and is packed and send to corresponding client, when after android and web webpage client is logined successfully by fixing username and password and when taking the real-time position information that server packing sends, correctly can resolve and be labeled in real time on Baidu's map of the differently graph type such as 2D, satellite and three-dimensional, and detail location and the explicit declaration of time in addition.
In sum, through in detail, the function of system and performance test, technical scheme of the present invention, the Big Dipper based on Android platform of research or GPS dual-mode tuning on-line methodological function all realize and functional.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, although with reference to previous embodiment to invention has been detailed description, for a person skilled in the art, it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (1)

1. the Big Dipper or GPS dual-mode tuning on-line method, is characterized in that, comprising:
Adopt D2030C, obtained original position-information and the time of the Big Dipper, GPS, the Big Dipper and GPS dual-mode by serial ports respectively;
Through the api interface layer that the inner nuclear layer of Android, dynamic base/intermediate bonding layer, FrameWork layer i.e. location-based service provide to user's space, until user's space java position provides application layer;
Far-end Cloud Server is connected to by http protocol request in java location-based service application program, adopt POST mode the real-time position information of mobile device and Perfect Time uploaded and perform the renewal rewards theory of server mysql database again, data are saved in corresponding tables of data so as the access of mobile client, acquisition;
Page end and mobile phone terminal, set up the passage of data interaction by http protocol and server, adopt GET mode from location information data table, take real-time latitude and longitude information and the time of mobile device;
Meanwhile, the positional information got marks on Baidu's map by the API of client call Baidu map, reaches the real-time locating and displaying to mobile device online.
CN201410763072.1A 2014-12-12 2014-12-12 Beidou or GPS dual-mode on-line positioning method Pending CN104678412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410763072.1A CN104678412A (en) 2014-12-12 2014-12-12 Beidou or GPS dual-mode on-line positioning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410763072.1A CN104678412A (en) 2014-12-12 2014-12-12 Beidou or GPS dual-mode on-line positioning method

Publications (1)

Publication Number Publication Date
CN104678412A true CN104678412A (en) 2015-06-03

Family

ID=53313735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410763072.1A Pending CN104678412A (en) 2014-12-12 2014-12-12 Beidou or GPS dual-mode on-line positioning method

Country Status (1)

Country Link
CN (1) CN104678412A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005058A (en) * 2015-07-23 2015-10-28 柳州市百思得信息技术有限公司 Android platform-based big dipper and GPS dual-mode on-line positioning method
CN105897927A (en) * 2016-05-31 2016-08-24 四川秘无痕信息安全技术有限责任公司 Method for analyzing Google longitude and latitude
CN106060774A (en) * 2016-05-10 2016-10-26 湖南基石通信技术有限公司 Communication terminal and positioning method
CN106526641A (en) * 2015-12-07 2017-03-22 北京航空航天大学 Beidou positioning and communication system applied to rotor helicopter
CN107171923A (en) * 2016-03-07 2017-09-15 北斗天汇(北京)科技有限公司 A kind of system that user mobile phone and Big Dipper short message communication are realized based on wechat platform
CN112448791A (en) * 2020-10-30 2021-03-05 安徽江淮汽车集团股份有限公司 Method, device, storage medium and device for transmitting positioning data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235583A (en) * 2013-04-25 2013-08-07 上海理工大学 Cold-chain logistics monitoring system on basis of Beidou satellite/GPS (Global Position System) navigation and positioning
CN103324168A (en) * 2013-06-03 2013-09-25 中山菲柯特电子电器有限公司 Beidou GPS double-module vehicle-mounted intelligent control system
CN103336487A (en) * 2012-12-18 2013-10-02 沈阳中科正方新能源技术有限公司 Vehicle-mounted information system based on Beidou communication
CN104050735A (en) * 2013-03-13 2014-09-17 中国国际海运集装箱(集团)股份有限公司 Method and device for switching intelligent lock, security and protection vehicle-mounted system and security and protection monitoring system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336487A (en) * 2012-12-18 2013-10-02 沈阳中科正方新能源技术有限公司 Vehicle-mounted information system based on Beidou communication
CN104050735A (en) * 2013-03-13 2014-09-17 中国国际海运集装箱(集团)股份有限公司 Method and device for switching intelligent lock, security and protection vehicle-mounted system and security and protection monitoring system
CN103235583A (en) * 2013-04-25 2013-08-07 上海理工大学 Cold-chain logistics monitoring system on basis of Beidou satellite/GPS (Global Position System) navigation and positioning
CN103324168A (en) * 2013-06-03 2013-09-25 中山菲柯特电子电器有限公司 Beidou GPS double-module vehicle-mounted intelligent control system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
田日才 等: "GPS/GPRS车载监控终端的设计与实现", 《智能交通》 *
郑伟: "基于Android的百度地图车辆定位系统设计与实现", 《中国优秀硕士学位全文数据库 信息科技辑》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005058A (en) * 2015-07-23 2015-10-28 柳州市百思得信息技术有限公司 Android platform-based big dipper and GPS dual-mode on-line positioning method
CN106526641A (en) * 2015-12-07 2017-03-22 北京航空航天大学 Beidou positioning and communication system applied to rotor helicopter
CN106526641B (en) * 2015-12-07 2019-05-17 北京航空航天大学 A kind of Beidou positioning and communication system applied to heligyro
CN107171923A (en) * 2016-03-07 2017-09-15 北斗天汇(北京)科技有限公司 A kind of system that user mobile phone and Big Dipper short message communication are realized based on wechat platform
CN106060774A (en) * 2016-05-10 2016-10-26 湖南基石通信技术有限公司 Communication terminal and positioning method
CN106060774B (en) * 2016-05-10 2019-12-10 湖南基石通信技术有限公司 Communication terminal and positioning method
CN105897927A (en) * 2016-05-31 2016-08-24 四川秘无痕信息安全技术有限责任公司 Method for analyzing Google longitude and latitude
CN105897927B (en) * 2016-05-31 2019-10-11 四川秘无痕科技有限责任公司 A method of parsing Google longitude and latitude
CN112448791A (en) * 2020-10-30 2021-03-05 安徽江淮汽车集团股份有限公司 Method, device, storage medium and device for transmitting positioning data

Similar Documents

Publication Publication Date Title
CN104678412A (en) Beidou or GPS dual-mode on-line positioning method
CN104683438A (en) Compass or GPS (Global Positioning System) dual-mode on-line positioning method
US20220405470A1 (en) Systems and methods for updating a mobile application
EP2941717B1 (en) System and method of provisioning and reprovisioning a mobile device based on self-locating
KR101821693B1 (en) Roaming network access method and apparatus
CN106970790B (en) Application program creating method, related equipment and system
Fuad et al. Remote vehicle tracking system using GSM Modem and Google map
CN104025560B (en) Method and apparatus for providing data entry content to a remote environment
CN107710157A (en) Multi-tenant, the specific application program of tenant
US20140351800A1 (en) Establishing Platform for If-This-Than-That Rule Based Application Program Used in Mobile Communication Device
US9021427B2 (en) Conversion methods of applications of mobile devices and mobile devices and systems using the same
CN105723337B (en) For the method and system from interactive development environment incrementally composing software product
CN105496428A (en) Wearable device control implementation method and device
CN104580499A (en) Method and device for accurately labeling positions
CN109032722A (en) Update method, device and equipment, the medium of the display effect of UI component
CN105393226A (en) Automated Generation Of Scripted And Manual Test Cases
CN105005058A (en) Android platform-based big dipper and GPS dual-mode on-line positioning method
US8918091B1 (en) Wireless communication service using shared service credentials
CN106412078B (en) Accurate information method for pushing, device and system
CN104683437A (en) On-line positioning method
EP2989597A1 (en) Wireless carrier platform for service applications
CN109032573A (en) A kind of hardware programming system and method
CN102647464B (en) Server and self-service travel system adopting same
TWI471800B (en) Establishing system and method for establishing application program for mobile computing device and having capability controlling input and output interface
CN104678413A (en) On-line positioning system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150603