CN104698481A - Beidou or GPS dual-mode online positioning system - Google Patents
Beidou or GPS dual-mode online positioning system Download PDFInfo
- Publication number
- CN104698481A CN104698481A CN201410773869.XA CN201410773869A CN104698481A CN 104698481 A CN104698481 A CN 104698481A CN 201410773869 A CN201410773869 A CN 201410773869A CN 104698481 A CN104698481 A CN 104698481A
- Authority
- CN
- China
- Prior art keywords
- time
- big dipper
- map
- real
- data
- 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
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
- G01S19/421—Determining position by combining or switching between position solutions or signals derived from different satellite radio beacon positioning systems; by combining or switching between position solutions or signals derived from different modes of operation in a single system
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 online positioning system which comprises a position receiving center capable of receiving messages sent by multiple satellites, a far-end cloud server connected with the position receiving center through an Internet module, a Web page client side and an Android mobile phone client side. The Web page client side and the Android mobile phone client side are respectively connected with the far-end cloud server through the Internet module. The Beidou or GPS dual-mode online positioning system can overcome the defects of low reliability, small application range, large information transmission difficulty and the like in the prior art so as to achieve the advantages of high reliability, large application range and small information transmission difficulty.
Description
Technical field
The present invention relates to communication technical field, particularly, relate to a kind of Big Dipper or GPS dual-mode tuning on-line system.
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 a kind of Big Dipper or GPS dual-mode tuning on-line system, 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: a kind of Big Dipper or GPS dual-mode tuning on-line system, comprise the position receiving center that can receive the message that multiple satellite sends, by the far-end Cloud Server that Internet module is connected with described position receiving center, and the Web page client be connected with described far-end Cloud Server respectively by Internet module and Android phone client.
Further, each satellite, is specially the TD3020C Big Dipper or GPS dual-mode module.
The Big Dipper of various embodiments of the present invention or GPS dual-mode tuning on-line system, owing to comprising the position receiving center that can receive the message that multiple satellite sends, by the far-end Cloud Server that Internet module is connected with position receiving center, and the Web page client be connected with far-end Cloud Server respectively by Internet module and Android phone client; 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 system.
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, a kind of Big Dipper or GPS dual-mode tuning on-line system is provided.
The Big Dipper of the present embodiment or GPS dual-mode tuning on-line system, comprising:
The Big Dipper of technical solution of the present invention or GPS dual-mode 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.
We can find out technical scheme of the present invention intuitively in FIG, 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.1Android 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) with ./buid/envsetup.sh configuration surroundings with select development platform with lunch, finally compile with make-j6.
3.1.2U-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 the gateway environment variable of network loading is then set, compiled u-boot.bin is burnt to the reference position in eMMC (inand), 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.4PHP+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 dual-mode 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 BD2B1 mode of operation, GPS L1 mode of operation and BD2B1/GPS L1 blend modes of operation simultaneously.Its functional framework 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 BD2B1/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.
Software interface agreement aspect, first be that statement identifier has BD, GP, GN, CC and P, 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.
3.2.2WIFI module drive analysis
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 to register monitoring position service function, use setLocationOption () function whether to open positioning equipment to locating information simultaneously, 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, after using onReceiveLocation () to receive real-time position information simultaneously, 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 use empty ($ _ POST [name variable]) (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 after successful connection (' beidou', $ con) select " beidou " database of the position data storing Big Dipper mobile device in server, and then enforcing location information to be inserted in beidou database in Location_info tables of data by the data just now got and mysql_query ($ sql) 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 page client are sended over by the GET mode of http protocol, then whether effectively the property value of the equipment id received from client $ _ GET [' id'] is differentiated, if point out printout to lack this attribute with echo urldecode (json_encode ($ result)) equally for empty, thus cause query manipulation failure, successful then preserve this property value; Then continue to perform aforesaid operations; Then use property value and echo urldecode (json_encode ($ result)) method to go inquiry Location_info tables of data, be packaged into the data of JSON form by json_encode ($ recipe) method and output returns if found; Finally continue connecting with mysql_close ($ con) turn-off data storehouse.
3.3.3android client software program design
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 onGetNetworkState (int iError) method that rewrites in a MKGeneralListener class and come, realized, in onGetPermissionState (int iError) method rewritten, realize detection and the checking of KEY equally.
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 to go to load topology file and some resources of map denotation, 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 use mMapController=mMapView.getController () to go to obtain 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 picture onGetTransitRouteResult () used in map loading procedure, the methods such as onMapLoadFinish (), then regMapViewListener (DemoApplication.getInstance () .mBMapManager is naturally called, 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 the reverseGeocode (p) calling MKSearch goes 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.Realize this block first will build HttpClient object and use HttpGet (" http: // 192.168.1.103/maps/WebService/getLocation.php/id=1 ") method to send out to server that book GET mode connects, request of data, work 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.Take concrete positional information and be put into after the time and be sent to main thread by sendMessage (msg) method of Handler asynchronous message mechanism in Hashtable container and mark in real time on map.
First main thread uses GeoPoint ((int) (lat*1E6) after taking data, (int) (lon*1E6)) method obtains a location point, then CoordinateConvert.fromGcjToBaidu (p2) is used to correct, use reverseGeocode (p) to obtain this detailed location information on map simultaneously, 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.4web webpage client software program designs
Technical scheme of the present invention, the framework of software simulating of web webpage client.We can be clearly seen that, 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 spend new BMap.Map (" allmap ") and create a whole map deMap example, then just go to arrange picture centerAndZoom, the setting of the Map attributes such as enableScrollWheelZoom and remove the control adding some maps by addControl () method, wherein has that map convergent-divergent controls, ratio controls and map denotation control etc.With the self-defined window introducing developer's information of BMapLib.SearchInfoWindow () method, add 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 protocol 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 the method using map.addOverlay () to mark object space is added on Baidu's map, the method simultaneously calling HTML display window ejects information and describes window, finally use map.setCenter (point) that 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 protocol of we input reference high in the clouds and server is on a web browser with the network address of POST mode request, the http: // 192.168.1.103/maps/WebService/getLocation.php/id=1 data application being used for 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.4android 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.5web 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.
4.5web 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.
(3) 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 systemic-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 (2)
1. a Big Dipper or GPS dual-mode tuning on-line system, it is characterized in that, comprise the position receiving center that can receive the message that multiple satellite sends, by the far-end Cloud Server that Internet module is connected with described position receiving center, and the Web page client be connected with described far-end Cloud Server respectively by Internet module and Android phone client.
2. the Big Dipper according to claim 1 or GPS dual-mode tuning on-line system, is characterized in that, each satellite, is specially the TD3020C Big Dipper or GPS dual-mode module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410773869.XA CN104698481A (en) | 2014-12-12 | 2014-12-12 | Beidou or GPS dual-mode online positioning system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410773869.XA CN104698481A (en) | 2014-12-12 | 2014-12-12 | Beidou or GPS dual-mode online positioning system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104698481A true CN104698481A (en) | 2015-06-10 |
Family
ID=53345802
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410773869.XA Pending CN104698481A (en) | 2014-12-12 | 2014-12-12 | Beidou or GPS dual-mode online positioning system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104698481A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104971471A (en) * | 2015-06-18 | 2015-10-14 | 中山市迈进高尔夫用品有限公司 | Golf ball with positioning device and positioning system with golf ball |
CN105005058A (en) * | 2015-07-23 | 2015-10-28 | 柳州市百思得信息技术有限公司 | Android platform-based big dipper and GPS dual-mode on-line positioning method |
-
2014
- 2014-12-12 CN CN201410773869.XA patent/CN104698481A/en active Pending
Non-Patent Citations (2)
Title |
---|
吴海超: ""基于STM32卫星定位车载终端硬件系统设计"", 《万方数据知识服务平台》 * |
郑伟: ""基于Android的百度地图车辆定位系统设计与实现"", 《中国优秀硕士学位全文数据库 信息科技辑》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104971471A (en) * | 2015-06-18 | 2015-10-14 | 中山市迈进高尔夫用品有限公司 | Golf ball with positioning device and positioning system with golf ball |
CN105005058A (en) * | 2015-07-23 | 2015-10-28 | 柳州市百思得信息技术有限公司 | Android platform-based big dipper and GPS dual-mode on-line positioning method |
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 | |
Fuad et al. | Remote vehicle tracking system using GSM Modem and Google map | |
KR101821693B1 (en) | Roaming network access method and apparatus | |
CN106970790B (en) | Application program creating method, related equipment and system | |
US20140228042A1 (en) | System and Method of Provisioning and Reprovisioning a Mobile Device Based on Self-locating | |
US9021427B2 (en) | Conversion methods of applications of mobile devices and mobile devices and systems using the same | |
WO2016173348A1 (en) | Network access method and mobile communications terminal | |
CN107710157A (en) | Multi-tenant, the specific application program of tenant | |
CN105723337B (en) | For the method and system from interactive development environment incrementally composing software product | |
CN103069370A (en) | Methods, apparatuses and computer program products for automatically generating suggested information layers in augmented reality | |
CN105229634A (en) | Data migration framework | |
CN109032722A (en) | Method, device, equipment and medium for updating display effect of UI component | |
CN105496428A (en) | Wearable device control implementation method and device | |
CN105005058A (en) | Android platform-based big dipper and GPS dual-mode on-line positioning method | |
US20110214115A1 (en) | Method and appartus for providing a high level mobile virtual machine | |
KR102652384B1 (en) | Method, system, and non-transitory computer readable record medium for controlling device based internet of things using messenger bot | |
CN106412078B (en) | Accurate information method for pushing, device and system | |
KR101376790B1 (en) | Smart-phone with self-guiding function, and self-guiding system based on smart phone | |
EP2989597A1 (en) | Wireless carrier platform for service applications | |
CN104683437A (en) | On-line positioning method | |
CN102647464B (en) | Server and self-service travel system adopting same | |
CN107992498A (en) | A kind of method and system for importing data to data warehouse | |
CN112394932A (en) | Automatic browser webpage skin changing method and device | |
CN104698481A (en) | Beidou or GPS dual-mode online 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 |
Application publication date: 20150610 |
|
RJ01 | Rejection of invention patent application after publication |