CN103064889A - Method for fast responding to global position system (GPS) inquiry - Google Patents

Method for fast responding to global position system (GPS) inquiry Download PDF

Info

Publication number
CN103064889A
CN103064889A CN2012105306103A CN201210530610A CN103064889A CN 103064889 A CN103064889 A CN 103064889A CN 2012105306103 A CN2012105306103 A CN 2012105306103A CN 201210530610 A CN201210530610 A CN 201210530610A CN 103064889 A CN103064889 A CN 103064889A
Authority
CN
China
Prior art keywords
task
gps
priority
inquiry
resolved
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
CN2012105306103A
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.)
QuanZhou HaoJie Information Technology Development Co Ltd
Original Assignee
QuanZhou HaoJie Information Technology Development Co Ltd
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 QuanZhou HaoJie Information Technology Development Co Ltd filed Critical QuanZhou HaoJie Information Technology Development Co Ltd
Priority to CN2012105306103A priority Critical patent/CN103064889A/en
Publication of CN103064889A publication Critical patent/CN103064889A/en
Pending legal-status Critical Current

Links

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)
  • Navigation (AREA)

Abstract

The invention relates to a global position system (GPS), in particular to a method of a service side for fast responding to GPS inquiry of a client side. A method for fast responding to global position system (GPS) inquiry comprises the following steps: (1) the client side transmits GPS inquiring requests to the service side; (2) the service side inquires the GPS data needing requiring according to data information of the GPS inquiring requests, returning to incapable inquiry instructions and reminding at the client side if inquiry cannot be performed, and performing the following processing if the inquiry is finished: the service side divides the GPS inquiry into different task types, and the different types respectively correspond to different priorities; and simultaneously the service side creates two threading, namely a task detection threading and a map processing threading for processing the tasks of different priorities; and (3) the service side analyzes the GPS data of the tasks being processed in the map processing threading, and updates the analyzed data to an interface of the client side. By means of the fast response GPS inquire method, the service side can fast respond to the GPS inquiry of the client side, and reporting loss of the progress of the service side can be avoided.

Description

Respond fast the method for GPS inquiry
Technical field
The present invention relates to gps system, especially about the method for the GPS of the quick customer in response end of service end inquiry.
Background technology
Development along with automobile industry, a large amount of vehicles all is equipped with GPS equipment (being client), the client for the real time position of vehicle also require more and more accurate, if many clients are enquiring vehicle positions or the history of the checking vehicle record that travels simultaneously, these all need to parse the particular location of vehicle, with these position display on map, this just causes the many tasks of service end to be asked simultaneously, process simultaneously many tasks, may cause the service end process to be hung, what detail location was resolved also may be detailed not, processes which task delay disposal so will consider which priority of task, which type for the treatment of mechanism to go to process these tasks with, the client need not be waited for for a long time, and the position that parses is also more accurate, and efficient is also higher.
Summary of the invention
Therefore, the present invention proposes a kind of method of quick response GPS inquiry, and service end is responded fast for the GPS inquiry of client, and the generation of avoiding the service end process to hang.
The following technical scheme of the concrete employing of the present invention:
The method of response GPS inquiry comprises the steps: fast
(1) client is sent the GPS query requests to service end;
(2) gps data that will inquire about at data base querying according to the data message of GPS query requests of service end, if can't inquire, then returning can't query statement and point out in client, if inquire, then be handled as follows: service end is divided into the different task type with the GPS inquiry, the different priority of dissimilar respectively correspondences; Service end creates 2 threads simultaneously: task detects thread and map processing threads, carries out the task of different priorities and processes;
(3) service end is resolved the gps data of the task of processing in the map processing threads, with the Data Update after resolving to the interface of client.
Further, service end is divided into 5 kinds of task type: UDP with the GPS inquiry asks map parsing, DB point request analysis, DB to ask certain vehicle-state parsing, the parsing of DB request historical record, free time to be resolved, the different priority of dissimilar respectively correspondences, be respectively: it is the I level that UDP request map is resolved, DB point request analysis II level, it is the III level that DB asks certain vehicle-state to be resolved, it is the IV level that DB request historical record is resolved, the free time parsing is the V level, wherein the priority of I level is the highest, and the priority of V is minimum.
Further, this task detects the priority Check processing that thread carries out task type, and gives the map processing threads with the highest task of current priority that detects and carry out processing; In this map processing threads, if being lower than task, the handled task of map processing threads detects the highest task of current priority that thread detects, then the map processing threads suspends current handled low priority task immediately, then go to process high-priority task, until high-priority task is handled, return to process again low priority task just now, if the highest task of current priority that the task detection detected task priority of thread and map processing threads detect is same one-level, then the map processing threads is processed first the task in the hand, then goes to process the detected task of thread that detects again.
The present invention is by technique scheme, can allow the GPS inquiry of the quick customer in response end of service end, simultaneously also Optimized Service end and the generation of avoiding the service end process to hang.By the method, the client requests of GPS client need not wait for that for a long time the map location that parses simultaneously is also more accurate, and efficient is also higher.
Embodiment
Now the present invention is further described in conjunction with embodiment.
The method of this embodiment comprises the steps:
(1) when the client wants enquiring vehicle information, then sends the GPS query requests by client to service end.
(2) gps data that will inquire about at data base querying according to the data message of GPS query requests of service end, if can't inquire, then returning can't query statement, and point out in client, if inquire, then enter step (3), be handled as follows:
(3) service end is divided into the parsing of 5 kinds of task type: UDP request maps with the GPS inquiry, DB point request analysis, DB asks certain vehicle-state to be resolved, DB request historical record is resolved, free time resolves, the different priority of dissimilar respectively correspondences, be respectively: it is the I level that UDP request map is resolved, DB point request analysis II level, it is the III level that DB asks certain vehicle-state to be resolved, it is the IV level that DB request historical record is resolved, the free time parsing is the V level, wherein the priority of I level is the highest, the priority of V is minimum, the priority of each task type is different, and processing sequence is also just different.Specific as follows:
UDP request map is resolved, refer to that namely the data of accepting directly walk UDP(User Datagram Protocol, User Datagram Protoco (UDP)) mode, UDP is a kind of connectionless transport layer protocol in the OSI Reference Model, and the simple unreliable information transfer service towards things is provided.Because UDP do not belong to the connecting-type agreement, it is little to have a resource consumption, and the advantage that processing speed is fast is faster at the transmission side data face velocity, so that priority should be is the highest.
DB(Date Base, database) some request analysis, namely refer to when the client inquires about the particular location of certain vehicle at certain time point, after request sends, obtain the data such as corresponding longitude and latitude in the database, the IP that the computer of longitude and latitude data and client is corresponding sends to service end, and service end pair warp and weft degree is resolved, return the employed client of client in the result that will resolve by middleware software, the client just can view the specifying information of the historical point of vehicle.
DB asks certain vehicle-state to be resolved, refer to that namely the client inquires about the present real-time status of certain vehicle or particular location, after request sends, from database, obtain corresponding gps data, then the IP that the computer of longitude and latitude data and client is corresponding sends to service end, service end pair warp and weft degree is resolved, and returns the employed client of client in the result that will resolve by middleware software, and the client just can view the specifying information of the historical point of vehicle.
DB request historical record is resolved, refer to that namely the client checks the specifying information of Vehicle Driving Cycle in historical certain period time period, after request sends, from database, obtain all gps datas of corresponding time period, then the IP that the computer of longitude and latitude data and client is corresponding sends to service end, service end pair warp and weft degree is resolved, because the data that historical record is resolved are a large amount of often, the longitude and latitude of all gps datas to resolved one time, required cost chronic, and historical record resolves and not have the locator data analysis request urgent, so that priority should be lower than is front several, needs to wait for after the high task of priority is finished dealing with and processing.
Free time resolves, and namely refers to when process is in the free time, automatically historical GPS longitude and latitude data is resolved, and can directly obtain corresponding detailed data when inquiring about with convenient next time, because this class request seldom, so priority is minimum.
Preferably, the priority numeral is worth littlely, and priority is higher, and every adjacent rank spacing value is 3.
Service end creates 2 threads simultaneously: task detects thread and map processing threads.This task detects the priority Check processing that thread carries out task type, processes first to determine which request task, and which task aftertreatment, and give the map processing threads with the highest task of current priority that detects and carry out processing.
What this map processing threads adopted is separate threads, block Main form when preventing from resolving mass data, in this map processing threads: detect the highest task of current priority that thread detects if the handled task of map processing threads is lower than task, then the map processing threads suspends current handled low priority task immediately, then go to process high-priority task, until high-priority task is handled, return to process again low priority task just now, if the highest task of current priority that the task detection detected task priority of thread and map processing threads detect is same one-level, then the map processing threads is processed first the task in the hand, then goes to process the detected task of thread that detects again;
(4) service end is resolved the gps data of the task of processing in the map processing threads, with the Data Update after resolving to the interface of client.
Although specifically show and introduced the present invention in conjunction with preferred embodiment; but the those skilled in the art should be understood that; within not breaking away from the spirit and scope of the present invention that appended claims limits; can make a variety of changes the present invention in the form and details, be protection scope of the present invention.

Claims (3)

1. respond fast the method for GPS inquiry, comprise the steps:
(1) client is sent the GPS query requests to service end;
(2) gps data that will inquire about at data base querying according to the data message of GPS query requests of service end, if can't inquire, then returning can't query statement and point out in client, if inquire, then be handled as follows: service end is divided into the different task type with the GPS inquiry, the different priority of dissimilar respectively correspondences; Service end creates 2 threads simultaneously: task detects thread and map processing threads, carries out the task of different priorities and processes;
(3) service end is resolved the gps data of the task of processing in the map processing threads, with the Data Update after resolving to the interface of client.
2. the method for quick response GPS inquiry according to claim 1, it is characterized in that: service end is divided into 5 kinds of task type: UDP request maps with the GPS inquiry and resolves, DB point request analysis, DB asks certain vehicle-state to be resolved, DB request historical record is resolved, free time resolves, the different priority of dissimilar respectively correspondences, be respectively: it is the I level that UDP request map is resolved, DB point request analysis II level, it is the III level that DB asks certain vehicle-state to be resolved, it is the IV level that DB request historical record is resolved, the free time parsing is the V level, wherein the priority of I level is the highest, and the priority of V is minimum.
3. the method for quick response GPS inquiry according to claim 1, it is characterized in that: this task detects the priority Check processing that thread carries out task type, and gives the map processing threads with the highest task of current priority that detects and carry out and process; In this map processing threads, if being lower than task, the handled task of map processing threads detects the highest task of current priority that thread detects, then the map processing threads suspends current handled low priority task immediately, then go to process high-priority task, until high-priority task is handled, return to process again low priority task just now, if the highest task of current priority that the task detection detected task priority of thread and map processing threads detect is same one-level, then the map processing threads is processed first the task in the hand, then goes to process the detected task of thread that detects again.
CN2012105306103A 2012-12-11 2012-12-11 Method for fast responding to global position system (GPS) inquiry Pending CN103064889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105306103A CN103064889A (en) 2012-12-11 2012-12-11 Method for fast responding to global position system (GPS) inquiry

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105306103A CN103064889A (en) 2012-12-11 2012-12-11 Method for fast responding to global position system (GPS) inquiry

Publications (1)

Publication Number Publication Date
CN103064889A true CN103064889A (en) 2013-04-24

Family

ID=48107519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105306103A Pending CN103064889A (en) 2012-12-11 2012-12-11 Method for fast responding to global position system (GPS) inquiry

Country Status (1)

Country Link
CN (1) CN103064889A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120486A (en) * 2018-08-28 2019-01-01 珠海格力电器股份有限公司 WiFi module data transmission method, Transmission system, intelligent appliance data transmission system
CN113010750A (en) * 2019-12-20 2021-06-22 深圳市帝迈生物技术有限公司 Query method and device for sample analyzer, sample analyzer and medium
CN113821708A (en) * 2020-06-19 2021-12-21 广东美的厨房电器制造有限公司 Cooking information acquisition method and device, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1378762A (en) * 1999-10-12 2002-11-06 塔斯金·萨卡亚 Downloading geographical data to mobile station and displaying map
CN1484205A (en) * 2002-09-18 2004-03-24 王舜清 Device and method for high intelligent real time traffic managemant
CN1904935A (en) * 2005-07-26 2007-01-31 同济大学 System and method for implementing traffic information service by network technology
CN101287215A (en) * 2008-05-26 2008-10-15 深圳华为通信技术有限公司 Method, system and device for triggering terminal matters based on position of terminal
CN101469996A (en) * 2007-12-29 2009-07-01 厦门雅迅网络股份有限公司 GPS vehicle-mounted terminal system with high-capacity image saving management and transmission function
CN101976205A (en) * 2010-05-27 2011-02-16 福州开睿动力通信科技有限公司 Electronic map technology-based talkback mobile phone task scheduling management system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1378762A (en) * 1999-10-12 2002-11-06 塔斯金·萨卡亚 Downloading geographical data to mobile station and displaying map
CN1484205A (en) * 2002-09-18 2004-03-24 王舜清 Device and method for high intelligent real time traffic managemant
CN1904935A (en) * 2005-07-26 2007-01-31 同济大学 System and method for implementing traffic information service by network technology
CN101469996A (en) * 2007-12-29 2009-07-01 厦门雅迅网络股份有限公司 GPS vehicle-mounted terminal system with high-capacity image saving management and transmission function
CN101287215A (en) * 2008-05-26 2008-10-15 深圳华为通信技术有限公司 Method, system and device for triggering terminal matters based on position of terminal
CN101976205A (en) * 2010-05-27 2011-02-16 福州开睿动力通信科技有限公司 Electronic map technology-based talkback mobile phone task scheduling management system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109120486A (en) * 2018-08-28 2019-01-01 珠海格力电器股份有限公司 WiFi module data transmission method, Transmission system, intelligent appliance data transmission system
CN113010750A (en) * 2019-12-20 2021-06-22 深圳市帝迈生物技术有限公司 Query method and device for sample analyzer, sample analyzer and medium
CN113821708A (en) * 2020-06-19 2021-12-21 广东美的厨房电器制造有限公司 Cooking information acquisition method and device, terminal and storage medium

Similar Documents

Publication Publication Date Title
US10235878B2 (en) Intelligent traffic cloud control system
EP3772862A1 (en) Vehicle information interacting method, device, apparatus and storage medium
CN107872528B (en) Message pushing method and device
JP6120473B2 (en) Public transport vehicle driving prediction method, apparatus and device
JP7227320B2 (en) TRAFFIC DATA ANALYSIS METHOD, APPARATUS, DEVICE, VEHICLE, STORAGE MEDIUM AND PROGRAM
US8649962B2 (en) Planning a route for a convoy of automobiles
CA2760342C (en) Management of roadside service requests
RU2017135412A (en) MANAGEMENT OF VEHICLE NAVIGATION THROUGH CROSSROADS
CN113486051B (en) Industrial Internet identification analysis method, system, node and storage medium
US9640074B2 (en) Permissions-based tracking of vehicle positions and arrival times
CN111325428A (en) Work order pushing method and device and storage medium
US20170187840A1 (en) System and method for acquiring, processing and updating global information
CN104683457A (en) Concurrency control method and device
US20210108930A1 (en) Method and apparatus for recommending a travel plan, device and storage medium
CN102801803A (en) Vehicle monitoring system base on B/S architecture
US20160316313A1 (en) M2M-based information processing method and M2M service platform
CN103064889A (en) Method for fast responding to global position system (GPS) inquiry
US20170374154A1 (en) Generating a response to a client device in an internet of things domain
US11290843B2 (en) Method for measuring sensing range of vehicle, device and medium
CN113347275A (en) Edge node scheduling method and system based on geographic coordinates of user terminal
EP1426879B1 (en) Building a geographic database
CN104917731A (en) Method and system for improving data display speed, server and browser
US11626024B2 (en) Distributed connected aircraft cockpit flight management system as a network node with API service capabtilities
CN110365599B (en) Openflow switch forwarding channel rapid updating system and method thereof
CN117369427A (en) Automatic driving visualization method, device, system and storage medium

Legal Events

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

Application publication date: 20130424