CN105450720A - GPS data collection and transmission method and device - Google Patents

GPS data collection and transmission method and device Download PDF

Info

Publication number
CN105450720A
CN105450720A CN201410523234.4A CN201410523234A CN105450720A CN 105450720 A CN105450720 A CN 105450720A CN 201410523234 A CN201410523234 A CN 201410523234A CN 105450720 A CN105450720 A CN 105450720A
Authority
CN
China
Prior art keywords
gps data
network side
side server
acquisition
gps
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.)
Granted
Application number
CN201410523234.4A
Other languages
Chinese (zh)
Other versions
CN105450720B (en
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.)
Alibaba China Co Ltd
Original Assignee
Autonavi Software 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 Autonavi Software Co Ltd filed Critical Autonavi Software Co Ltd
Priority to CN201410523234.4A priority Critical patent/CN105450720B/en
Publication of CN105450720A publication Critical patent/CN105450720A/en
Application granted granted Critical
Publication of CN105450720B publication Critical patent/CN105450720B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention discloses a GPS data collection and transmission method and device. The method comprises the steps that: a network side server stores and collects GPS data collection and transmission configuration files related to GPS data; after a collection terminal establishes connection with the network side server, the collection terminal obtains the GPS data collection and transmission configuration files from the network side server and collects GPS data according to GPS data collection configuration information in the obtained GPS data collection and transmission configuration files; and according to the GPS data collection and transmission configuration files, the collection terminal sends the collected GPS data to the network side server. According to the technical scheme, the GPS data collection and transmission configuration files are directly upgraded at the network side server, the upgrading of the GPS data transmission configuration information and the GPS data collection configuration information is relatively simple, and the accurate and timely collection of the GPS data is also ensured after the GPS data transmission configuration information and the GPS data collection configuration information are upgraded.

Description

A kind of gps data collection and transmission method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of gps data collection and transmission method and device.
Background technology
At present, GPS (GlobalPositioningSystems; Global positioning system) data as the important computations foundation of Real-time Traffic Information processing procedure, usually adopt floating car technology to obtain.
Adopting floating car technology to gather gps data, namely in vehicle-mounted acquisition terminal, load map datum and gps data capture program, gathering gps data by running gps data capture program, and on the gps data collected is uploaded onto the server; Or, on acquisition terminal is uploaded onto the server after the gps data collected is carried out map data matching.
At present, the transmission of configuration information such as gps data frequency acquisition, data back time, data back address during acquisition terminal collection gps data is all arranged in gps data capture program, due to the program that gps data capture program is an encapsulation, even if therefore only upgrade to the transmission of configuration information in this gps data capture program, also need to upgrade to the whole gps data capture program on acquisition terminal.Such as, gps data capture program bag after server end stores upgrading, gps data capture program bag after acquisition terminal downloads upgrading from server end is upgraded, the data volume related to due to whole gps data capture program bag is larger, success is downloaded and is depended on network environment, if network environment is poor may make failed download, thus cause acquisition terminal to occur the problem that the upgrading of gps data capture program is failed, and then cause acquisition terminal to gather gps data.
In sum, there is the upgrading of gps data capture program comparatively complicated in existing gps data acquisition mode, causes the upgrading failure of gps data capture program and cause acquisition terminal cannot gather the problem of gps data.
Summary of the invention
The embodiment of the present invention provides a kind of gps data collection and transmission method and device, and in order to solve in prior art, to there is the upgrading of gps data capture program comparatively complicated, thus cause gps data capture program upgrade unsuccessfully with the problem of gps data collection failure.
The concrete technical scheme that the embodiment of the present invention provides is as follows:
A kind of gps data collection and transmission method, comprising:
Acquisition terminal obtains gps data collect and transmit configuration file from network side server;
Acquisition terminal calls preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data;
The described gps data gathered, according to the gps data transmission of configuration information comprised in described gps data collect and transmit configuration file, is sent to described network side server by acquisition terminal.
A kind of gps data collection and transmitting device, comprising:
Acquiring unit, for obtaining gps data collect and transmit configuration file from network side server;
Collecting unit, for calling preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data;
Transmitting element, for according to the gps data transmission of configuration information comprised in described gps data collect and transmit configuration file, is sent to described network side server by the described gps data gathered.
In the embodiment of the present invention, store gps data collect and transmit configuration file by network side server, acquisition terminal obtains gps data collect and transmit configuration file from network side server; Acquisition terminal calls preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data; The described gps data gathered, according to the gps data transmission of configuration information comprised in described gps data collect and transmit configuration file, is sent to described network side server by acquisition terminal.Adopt technical solution of the present invention, when if desired gps data transmission of configuration information and gps data acquisition configuration information being upgraded, directly at network side server, gps data collect and transmit configuration file is upgraded, acquisition terminal obtains the gps data collect and transmit configuration file after upgrading from network side server, and carry out gps data according to the information that comprises in the gps data collect and transmit configuration file after upgrading and gather, on the one hand, the information general data amount that gps data collect and transmit configuration file comprises is less, the success rate that acquisition terminal obtains gps data collect and transmit configuration file from network side server is higher, therefore, this programme upgrading gps data transmission of configuration information and gps data acquisition configuration information comparatively simple, and can guarantee upgrading gps data transmission of configuration information and gps data acquisition configuration information after can also be timely, gather gps data exactly, on the other hand, acquisition terminal without the need to itself upgrading to gps data capture program, thus can guarantee the stability of gps data capture program.
Accompanying drawing explanation
Fig. 1 is gps data collection and transfer process figure in the embodiment of the present invention;
Fig. 2 is the flow chart that in the embodiment of the present invention, acquisition terminal receives gps data collect and transmit configuration file;
Fig. 3 is the detail flowchart that in the embodiment of the present invention, gps data bag is transferred to network side server by acquisition terminal;
Fig. 4 is the flow chart that in the embodiment of the present invention, gps data bag is sent to network side server by acquisition terminal again;
Fig. 5 is gps data collection and transmitting device structural representation one in the embodiment of the present invention;
Fig. 6 is gps data collection and transmitting device structural representation two in the embodiment of the present invention.
Embodiment
In order to solve in prior art, to there is the upgrading of gps data capture program comparatively complicated, thus cause gps data capture program upgrade unsuccessfully with the problem of gps data collection failure.In the embodiment of the present invention, when if desired gps data transmission of configuration information and gps data acquisition configuration information being upgraded, directly at network side server, gps data collect and transmit configuration file is upgraded, acquisition terminal obtains the gps data collect and transmit configuration file after upgrading from network side server, and carry out gps data according to the information that comprises in the gps data collect and transmit configuration file after upgrading and gather, on the one hand, the information general data amount that gps data collect and transmit configuration file comprises is less, the success rate that acquisition terminal obtains gps data collect and transmit configuration file from network side server is higher, therefore, this programme upgrading gps data transmission of configuration information and gps data acquisition configuration information comparatively simple, and can guarantee upgrading gps data transmission of configuration information and gps data acquisition configuration information after can also be timely, gather gps data exactly, on the other hand, acquisition terminal without the need to itself upgrading to gps data capture program, thus can guarantee the stability of gps data capture program.
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Consult shown in Fig. 1, in the embodiment of the present invention, acquisition terminal gathers gps data and the process gps data collected being transferred to network side server comprises:
Step 100: acquisition terminal obtains gps data collect and transmit configuration file from network side server.
Step 110: acquisition terminal calls preset gps data capture program according to the gps data acquisition configuration information comprised in above-mentioned gps data collect and transmit configuration file, gathers gps data.
Step 120: the gps data of collection, according to the gps data transmission of configuration information comprised in above-mentioned gps data collect and transmit configuration file, is sent to network side server by acquisition terminal.
Preferably, the acquisition terminal in the embodiment of the present invention is a single-chip microcomputer, and gps data capture program is solidificated in this single-chip microcomputer.Due to gps data capture program is solidificated in single-chip microcomputer, this gps data capture program directly can be started after starting single-chip microcomputer, therefore, it is possible to realize starting gps data capture program fast, thus avoid prior art gps data capture program is arranged in the operating system of acquisition terminal, gps data capture program could be started after only having the operating system starting acquisition terminal, because the time delay started the operating system in acquisition terminal is longer, thus cause starting the slower problem of gps data capture program.In addition, it can also be above-mentioned single-chip microcomputer configuration power supply in acquisition terminal, when there is power cutoff in the vehicle that acquisition terminal is corresponding, be that single-chip microcomputer is powered by this power supply, thus avoid the vehicle often flame-out gps data collection the caused problem of interrupting, improve the reliability that gps data gathers.
In the embodiment of the present invention, when acquisition terminal is single-chip microcomputer, in abovementioned steps 100, can when acquisition terminal to be started shooting at every turn, acquisition terminal is connected with network side server, and obtains gps data capture program translation profile from network side server.
In the embodiment of the present invention, acquisition terminal can also be intelligent terminal, the respective stored in intelligent terminal can wherein store gps data collect and transmit configuration file.Intelligent terminal can be regular the network side server that signs in obtain up-to-date gps data collect and transmit configuration file, and according to the gps data collect and transmit configuration file that the up-to-date gps data collect and transmit configuration file synchronous intelligent terminal local obtained stores.Can also be that network side server is after upgrading to gps data collect and transmit configuration file, initiatively send GPS capture program upgrading daily record to intelligent terminal, in this GPS capture program upgrading daily record, carry the up-to-date version number of gps data collect and transmit configuration file; Intelligent terminal is after the GPS capture program daily record receiving network side transmission, daily record of the GPS capture program received upgrading daily record and the local GPS capture program stored being upgraded is compared, if comparison obtains the gps data collect and transmit configuration file that network side gps data collect and transmit configuration file version stores higher than this locality, up-to-date gps data collect and transmit configuration file is obtained from network side server, and according to the synchronous local gps data collect and transmit configuration file stored of up-to-date gps data collect and transmit configuration file.The benefit of this intelligent terminal is, when gathering gps data by intelligent terminal, directly from the gps data acquisition configuration file that this locality stores, obtaining gps data acquisition configuration information and gps data transmission of configuration information, improving acquisition speed.
Therefore, when acquisition terminal is intelligent terminal, before the step 100 of the flow process described in earlier figures 1, further comprising the steps of: acquisition terminal receives the GPS capture program upgrading daily record that network side server sends; Acquisition terminal daily record of the GPS capture program received upgrading daily record and the local GPS capture program stored being upgraded is compared, if comparison obtains the gps data collect and transmit configuration file that network side gps data collect and transmit configuration file version stores higher than this locality, then perform abovementioned steps 100.
In the embodiment of the present invention, acquisition terminal obtains gps data collect and transmit configuration file to network side, as follows: acquisition terminal logging in network side server, and local device mark and project name are sent to network side server by acquisition terminal; Wherein, project name comprises: acquisition terminal location (as Beijing, Shanghai etc.), and/or the service provider that acquisition terminal is corresponding; Network side server is the port numbers that this acquisition terminal distributes; The device identification that network side server is uploaded according to acquisition terminal and project name, from the gps data capture program translation profile that the preset projects title corresponding with this device identification is corresponding, obtain the gps data capture program translation profile that the project name uploaded of acquisition terminal is corresponding, and the gps data capture program translation profile of acquisition is handed down to acquisition terminal.
Preferably, gps data acquisition configuration information can comprise: gps data frequency acquisition, gps data acquisition time section; Wherein, gps data frequency acquisition is used to indicate the frequency that acquisition terminal gathers gps data from raw GPS data, in 3 seconds, gather a gps data; Gps data acquisition time section is used to indicate acquisition terminal and gathers the gps data which receives time period, if gps data acquisition time section can be 8:00 to 20:00.Abovementioned steps 110 gathers gps data, specifically can be as follows:
Described acquisition terminal receives GPS framing signal and according to the location frequency (as gathered a gps data 1 second) given tacit consent to, gathers raw GPS data; Described acquisition terminal, according to gps data frequency acquisition, drops on from positioning time the raw GPS data in described gps data acquisition time section and obtains gps data; Wherein, described location frequency is higher than described gps data frequency acquisition.
Particularly as: in the embodiment of the present invention, gather raw GPS data according to location frequency (as every 1 second gathers 1 gps data), then the gps data gathered successively in gps data acquisition time section for A1, A2, A3, A4, A5, A6, A7, A8 ...; Acquisition terminal according to gps data frequency acquisition (as every 3 seconds gather 1 gps data from raw GPS data), then the gps data collected for A1, A4, A7 ....
Preferably, for fast, timely the gps data collected being uploaded to network side server, and reduce the data volume of gps data transmission, in the embodiment of the present invention, gps data transmission of configuration information can also comprise gps data transmission frequency (as 1 point of clockwise network side server sends a gps data), and described gps data transmission frequency is lower than described gps data frequency acquisition.In abovementioned steps 120, acquisition terminal is according to described GPS transmission of configuration information, the described gps data gathered is sent to described network side server, specifically comprise: described acquisition terminal is according to gps data transmission frequency, the gps data got is compressed, generate the gps data bag of preset format, and described gps data bag is sent to described network side server.
Particularly as: suppose that the every 1 point of clockwise network side server of acquisition terminal sends a gps data bag, it is { A1 that acquisition terminal obtains gps data from raw GPS data collection in every 3 seconds 1 gps data, A2, A3, A4, A20, A21 A40, A41, A60 ..., then the 1st minute time, to the gps data { A1 collected ... A20} compresses, and be uploaded to network side server by compressing the packet obtained, the 2nd minute time, to the gps data { A21 collected ... A40} compresses, and be uploaded to network side server by compressing the packet obtained, the rest may be inferred.
Preferably, for guaranteeing that acquisition terminal successfully can send gps data bag to network side server, in the embodiment of the present invention, gps data transmission of configuration information also comprises gps data and sends overtime duration; After abovementioned steps 120, further comprising the steps:
Acquisition terminal starts local timer and message is determined in the gps data bag reception of monitoring from network side server, if described timer reaches described gps data when sending overtime duration, the gps data bag not receiving the transmission of described network side server receives determines message, then described acquisition terminal judges whether the number of times sending described gps data bag arrives default number of retransmissions; When not arriving default number of retransmissions, described gps data bag resends to described network side server by described acquisition terminal; Otherwise described gps data bag is stored in preset buffer queue by described acquisition terminal.In the embodiment of the present invention, buffer queue takes first in first out mechanism.
Preferably, for guaranteeing that gps data bag sends successfully further, in the embodiment of the present invention, also can comprise the following steps after abovementioned steps:
Acquisition terminal detects the number of the gps data bag preserved in buffer queue;
When detecting that the number of described gps data bag is greater than 1, and when being less than or equal to preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively; When detecting that the number of described gps data bag is greater than described preset number, according to the Queue sequence of gps data bag in described buffer queue, delete the gps data bag in described buffer queue successively, until when in buffer queue, the number of gps data bag is less than or equal to described preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively.
In above process, buffer queue is fifo queue; Preset number is the empirical value pre-set according to embody rule scene, the number of the gps data bag preserved in buffer queue is arranged to the object of preset number: on the one hand, the gps data bag committed memory space of preserving in buffer queue is excessive, causes acquisition terminal processing speed slower; On the other hand, because the gps data bag preserved in buffer queue sorts according to the gps data acquisition time that gps data bag is corresponding, therefore, after acquisition terminal and network side server connect, only a preset number gps data bag nearest for distance current time is transferred to the webserver, thus ensure that the ageing of transmitted gps data bag.Such as, preset number is ten, after acquisition terminal and network side server connect, 11 gps data bags are comprised, because buffer queue is fifo queue, therefore in acquisition terminal determination buffer queue, the gps data bag being arranged in buffer queue head of the queue is all gps data bags of this buffer queue, the gps data bag that the distance current time time is the longest, acquisition terminal deletes the gps data bag being positioned at head of the queue, and sends residue ten gps data bags successively.
In the embodiment of the present invention, gps data transmission of configuration information also comprises: network side server address and port, data acquisition unique identification.Wherein, network side server address and port are that acquisition terminal carries out with network side server communicating, the entrance of transfer of data; The string number that data acquisition unique identification generates according to the device identification that acquisition terminal sends for network side server, if device identification is A001, then the data acquisition unique identification generated is: 124503433314.
In the embodiment of the present invention, data acquisition unique identification be acquisition terminal first logging in network side server time, by network side server according to the device identification of this acquisition terminal be acquisition terminal distribute unique identification, and in network side server the device identification of storage of collected terminal and the data acquisition uniquely identified corresponding relation of distribution.When logging in network side server obtains gps data collect and transmit configuration file to acquisition terminal again, data acquisition unique identification corresponding for this acquisition terminal is arranged in gps data collect and transmit configuration file and sends acquisition terminal to; When acquisition terminal uploads gps data bag to network side server, corresponding data acquisition unique identification is carried in this gps data bag, so that network side server determines the gps data bag uploaded by which acquisition terminal according to the data acquisition unique identification carried in gps data bag, so that the management to gps data.
In the embodiment of the present invention, the corresponding relation of project name and gps data collect and transmit configuration file is stored in advance in network side server, when server receives the device identification and project name that acquisition terminal uploads, from the corresponding relation prestored, obtain the gps data collect and transmit configuration file that this project name is corresponding.Particularly as, can set up in the CMDB of network side server and have good project management table, the information that gps data collect and transmit configuration file as project A comprises is as follows: network side server address is 192.168.1.100, network side server port is 10001, gps data frequency acquisition is: 3 seconds/time, and gps data acquisition time section is 8:00-20:00; Gps data transmission frequency is 60 seconds/time; It is 30 seconds that gps data sends overtime duration; Data acquisition unique identification is 124503433314.Then in CMDB, set up corresponding with project A one to be recorded as:
A,192.168.1.100,10001,3,8:00-20:00,60,30。
Optionally, consult shown in Fig. 2, in above-mentioned steps 100, the process that acquisition terminal receives the gps data collect and transmit configuration information file that network side server sends is:
Step 200: acquisition terminal sets up connection that is local and network side server.
Step 210: acquisition terminal judges whether the connection between local and network side server is successfully established, if success, then performs step 220; Otherwise, return step 200.
Step 220: acquisition terminal receives the gps data collect and transmit configuration file that network side server sends, if receive, performs step 230, if do not receive otherwise perform step 240.
Step 230: the gps data of collection, according to the gps data transmission of configuration information comprised in above-mentioned gps data collect and transmit configuration file, is sent to network side server by acquisition terminal.
Step 240: acquisition terminal is obtained from the duration of the connection establishment successful corresponding moment between this locality with network side server to current time, and judge whether this duration arrives reception file time-out duration, if arrive, then performs step 250; Otherwise, return step 220.
In the embodiment of the present invention, when acquisition terminal position network signal is poor, gps data collect and transmit configuration file bust this between acquisition terminal and network side server will be caused, namely arrive after receiving file time-out duration, acquisition terminal does not still receive the gps data collect and transmit configuration file that network side server sends.
Step 250: acquisition terminal, according to the gps data acquisition configuration information preset, gathers gps data, and according to the gps data transmission of configuration information preset to network side server transmitting GPS data.
In the embodiment of the present invention, the gps data acquisition configuration information preset and the gps data transmission of configuration information preset are the information that acquisition terminal is set in advance in this acquisition terminal when dispatching from the factory.
Adopt technique scheme, gps data collect and transmit configuration file corresponding for acquisition terminal is stored to network side server, only the GPS collect and transmit configuration file in network side server is upgraded, upgrading gps data transmission of configuration information and gps data acquisition configuration information comparatively simple, and can guarantee upgrading gps data transmission of configuration information and gps data acquisition configuration information after can also be timely, gather gps data exactly and adopt technique scheme, gps data collect and transmit configuration file corresponding for acquisition terminal is stored to network side server, only the gps data collect and transmit configuration file in network side server is upgraded, upgrading gps data transmission of configuration information and gps data acquisition configuration information comparatively simple, and can guarantee upgrading gps data transmission of configuration information and gps data acquisition configuration information after can also be timely, gather gps data exactly, further, acquisition terminal without the need to itself upgrading to gps data capture program, thus can guarantee the stability of gps data capture program.
Optionally, consult shown in Fig. 3, in above-mentioned steps 120, acquisition terminal is according to gps data transmission of configuration information, and the process gps data collected being sent to network side server is:
Step 300: acquisition terminal obtains the connection status between current time acquisition terminal and network side server, and judge that whether the annexation between current time this locality and network side server is normal, if so, perform step 310; Otherwise, set up the annexation between network side server.
Step 310: the gps data bag of collection is sent to network side server by acquisition terminal.
Step 320: acquisition terminal judges to send in overtime duration at gps data, the gps data bag whether receiving network side server transmission receives determines message, if do not receive, then performs step 330; Otherwise, terminate gps data bag transmission flow.
Step 330: acquisition terminal judges whether the number of times sending above-mentioned gps data bag arrives default number of retransmissions, if not, then resends described gps data bag to network side server, if be then stored in preset buffer queue by described gps data bag.
Optionally, consult shown in Fig. 4, in above-mentioned steps 120, after above-mentioned gps data is sent to network side server by acquisition terminal, when the gps data bag not receiving network side server transmission sends and determines message, above-mentioned gps data bag is stored in local preset buffer queue by acquisition terminal, for the gps data bag in this buffer queue, performs and operates as follows:
Step 400: acquisition terminal obtains connection status between current time acquisition terminal and network side server, and judge that whether the connection between current time this locality and network side server is normal, if so, perform step 410; Otherwise, set up the annexation between network side server.
Step 410: acquisition terminal obtains the number of the gps data bag that buffer queue comprises, and judge whether the number of the gps data bag obtained is greater than 1 and is less than preset number, if so, perform step 420: otherwise, perform step 430.
Step 420: gps data bag, according to the Queue sequence of the gps data bag in buffer queue, is sent to network side server by acquisition terminal successively.
Step 430: acquisition terminal deletes the gps data bag being arranged in buffer queue head of the queue, and according to the Queue sequence of gps data bag in buffer queue, delete the gps data bag in buffer queue successively, until when the number of the gps data bag comprised in this buffer queue is less than or equal to preset number, according to the Queue sequence of gps data bag in this buffer queue, send above-mentioned gps data bag to network side server successively.
In above process, when acquisition terminal is a single-chip microcomputer, the structural representation of this single-chip microcomputer is consulted shown in Fig. 5, concrete, this single-chip microcomputer comprises power subsystem 50, gps data acquiring unit 51, MCU (MicroControlUnit, micro-control unit) 52, gps data transmission unit 53, wherein:
Power subsystem 50, for powering for gps data acquiring unit 51, MCU52 and gps data transmission unit 53;
Gps data acquiring unit 51, is connected with gps antenna, for receiving gps data according to the location frequency of acquiescence by gps antenna, obtains raw GPS data;
MCU52, for carrying gps data capture program, and run this gps data capture program, logging in network side server obtains gps data collect and transmit configuration file, and according to the gps data acquisition configuration information comprised in gps data collect and transmit configuration file, gps data is gathered from raw GPS data, and according to the gps data transmission of configuration information comprised in gps data collect and transmit configuration file, the gps data of collection is carried out compression generation gps data bag, and send gps data bag to gps data transmission unit 53;
Gps data transmission unit 53, for providing transport services, carries out communicating and transfer of data for acquisition terminal and network side server.Gps data transmission unit 53 realizes communication and transfer of data by GSM antenna.
Adopt technique scheme, gps data capture program is solidificated in single-chip microcomputer, only start this gps data capture program and can carry out gps data collection, thus avoid in prior art to need waiting for os starting when loading gps data capture program under acquisition terminal operating system after could run gps data capture program, the problem extended when the gps data caused gathers, effectively shortens gps data and gathers time delay.In addition, being above-mentioned single-chip microcomputer configuration power supply in acquisition terminal, when power cutoff appears in the vehicle that acquisition terminal is corresponding, is that single-chip microcomputer is powered by this power supply, thus avoid the vehicle often flame-out gps data collection the caused problem of interrupting, improve the reliability that gps data gathers.
Based on technique scheme, consult shown in Fig. 6, the embodiment of the present invention also provides the another kind of implementation of gps data collection and transmitting device, and this gps data dispensing device comprises acquiring unit 60, collecting unit 61, transmitting element 62, wherein:
Acquiring unit 60, for obtaining gps data collect and transmit configuration file from network side server;
Collecting unit 61, for calling preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data;
Transmitting element 62, for according to the gps data transmission of configuration information comprised in described gps data collect and transmit configuration file, is sent to described network side server by the described gps data gathered.
Further, if described device is intelligent terminal, then described device also comprises performance element 63, for: receive the GPS capture program upgrading daily record that network side server sends; Daily record of the GPS capture program received upgrading daily record and the local GPS capture program stored being upgraded is compared; If comparison obtains the gps data collect and transmit configuration file that network side gps data collect and transmit configuration file version stores higher than this locality, then trigger acquiring unit 60.
Preferably, gps data acquisition configuration information comprises gps data frequency acquisition and gps data acquisition time section; Described collecting unit 61, specifically for: receive GPS framing signal and according to the location frequency given tacit consent to, gather raw GPS data; According to gps data frequency acquisition, drop on from positioning time the raw GPS data in described gps data acquisition time section and obtain gps data; Wherein, described location frequency is higher than described gps data frequency acquisition.
Preferably, gps data transmission of configuration information comprises gps data transmission frequency, and described gps data transmission frequency is lower than described gps data frequency acquisition;
Described transmitting element 62, specifically for: according to gps data transmission frequency, the gps data got is compressed, generate the gps data bag of preset format, and described gps data bag is sent to described network side server.
Preferably, gps data transmission of configuration information also comprises gps data and sends overtime duration; Described device also comprises judging unit 64, after described gps data bag being sent to described network side server at described transmitting element 62, start local timer and monitor from network side server gps data bag receive determine message, if described timer reaches described gps data when sending overtime duration, the gps data bag not receiving the transmission of described network side server receives determines message, then judge whether the number of times sending described gps data bag arrives default number of retransmissions; When not arriving default number of retransmissions, then trigger described transmitting element 62 and described gps data bag is resend to described network side server; Otherwise, described gps data bag is stored in preset buffer queue.
Further, described device also comprises detecting unit 65, for detecting the number of the gps data bag preserved in buffer queue; When detecting that the number of described gps data bag is greater than 1, and when being less than or equal to preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively; When detecting that the number of described gps data bag is greater than described preset number, according to the Queue sequence of gps data bag in described buffer queue, delete the gps data bag in described buffer queue successively, until when in buffer queue, the number of gps data bag is less than or equal to described preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively.
In the embodiment of the present invention, store gps data collect and transmit configuration file by network side server, acquisition terminal obtains gps data collect and transmit configuration file from network side server; Acquisition terminal calls preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data; The described gps data gathered, according to the gps data transmission of configuration information comprised in described gps data collect and transmit configuration file, is sent to described network side server by acquisition terminal.Adopt technical solution of the present invention, when if desired gps data transmission of configuration information and gps data acquisition configuration information being upgraded, directly at network side server, gps data collect and transmit configuration file is upgraded, acquisition terminal obtains the gps data collect and transmit configuration file after upgrading from network side server, and carry out gps data according to the information that comprises in the gps data collect and transmit configuration file after upgrading and gather, on the one hand, the information general data amount that gps data collect and transmit configuration file comprises is less, the success rate that acquisition terminal obtains gps data collect and transmit configuration file from network side server is higher, therefore, this programme upgrading gps data transmission of configuration information and gps data acquisition configuration information comparatively simple, and can guarantee upgrading gps data transmission of configuration information and gps data acquisition configuration information after can also be timely, gather gps data exactly, on the other hand, acquisition terminal without the need to itself upgrading to gps data capture program, thus can guarantee the stability of gps data capture program.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the embodiment of the present invention and not depart from the spirit and scope of the embodiment of the present invention.Like this, if these amendments of the embodiment of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. global position system GPS data acquisition and a transmission method, is characterized in that, comprising:
Acquisition terminal obtains gps data collect and transmit configuration file from network side server;
Acquisition terminal calls preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data;
The described gps data gathered, according to the gps data transmission of configuration information comprised in described gps data collect and transmit configuration file, is sent to described network side server by acquisition terminal.
2. the method for claim 1, is characterized in that, if described acquisition terminal is intelligent terminal, then described method comprises further:
Acquisition terminal receives the GPS capture program upgrading daily record that network side server sends;
Acquisition terminal daily record of the GPS capture program received upgrading daily record and the local GPS capture program stored being upgraded is compared, if comparison obtains the gps data collect and transmit configuration file that network side gps data collect and transmit configuration file version stores higher than this locality, then perform described acquisition terminal obtains gps data collect and transmit configuration file step from network side server.
3. the method for claim 1, is characterized in that, gps data acquisition configuration information comprises gps data frequency acquisition and gps data acquisition time section; Described acquisition terminal calls preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data, specifically comprises:
Described acquisition terminal receives GPS framing signal and according to the location frequency given tacit consent to, gathers raw GPS data;
Described acquisition terminal, according to gps data frequency acquisition, drops on from positioning time the raw GPS data in described gps data acquisition time section and obtains gps data; Wherein, described location frequency is higher than described gps data frequency acquisition.
4. the method for claim 1, is characterized in that, gps data transmission of configuration information comprises gps data transmission frequency, and described gps data transmission frequency is lower than described gps data frequency acquisition;
The described gps data gathered, according to described GPS transmission of configuration information, is sent to described network side server, specifically comprises by described acquisition terminal:
Described acquisition terminal, according to gps data transmission frequency, compresses the gps data got, and generates the gps data bag of preset format, and described gps data bag is sent to described network side server.
5. method as claimed in claim 4, it is characterized in that, gps data transmission of configuration information also comprises gps data and sends overtime duration;
After described gps data bag is sent to described network side server, comprise further:
Acquisition terminal starts local timer and message is determined in the gps data bag reception of monitoring from network side server, if described timer reaches described gps data when sending overtime duration, the gps data bag not receiving the transmission of described network side server receives determines message, then described acquisition terminal judges whether the number of times sending described gps data bag arrives default number of retransmissions;
When not arriving default number of retransmissions, described gps data bag resends to described network side server by described acquisition terminal; Otherwise described gps data bag is stored in preset buffer queue by described acquisition terminal.
6. method as claimed in claim 5, is characterized in that, also comprise:
Described acquisition terminal detects the number of the gps data bag preserved in buffer queue;
When detecting that the number of described gps data bag is greater than 1, and when being less than or equal to preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively;
When detecting that the number of described gps data bag is greater than described preset number, according to the Queue sequence of gps data bag in described buffer queue, delete the gps data bag in described buffer queue successively, until when in buffer queue, the number of gps data bag is less than or equal to described preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively.
7. global position system GPS data acquisition and a transmitting device, is characterized in that, comprising:
Acquiring unit, for obtaining gps data collect and transmit configuration file from network side server;
Collecting unit, for calling preset gps data capture program according to the gps data acquisition configuration information comprised in described gps data collect and transmit configuration file, gathers gps data;
Transmitting element, for according to the gps data transmission of configuration information comprised in described gps data collect and transmit configuration file, is sent to described network side server by the described gps data gathered.
8. device as claimed in claim 7, it is characterized in that, if described device is intelligent terminal, then described device also comprises:
Performance element, for: receive the GPS capture program upgrading daily record that network side server sends; Daily record of the GPS capture program received upgrading daily record and the local GPS capture program stored being upgraded is compared; If comparison obtains the gps data collect and transmit configuration file that network side gps data collect and transmit configuration file version stores higher than this locality, then trigger described acquiring unit.
9. device as claimed in claim 7, it is characterized in that, gps data acquisition configuration information comprises gps data frequency acquisition and gps data acquisition time section; Described collecting unit, specifically for:
Receive GPS framing signal and according to the location frequency given tacit consent to, gather raw GPS data; According to gps data frequency acquisition, drop on from positioning time the raw GPS data in described gps data acquisition time section and obtain gps data; Wherein, described location frequency is higher than described gps data frequency acquisition.
10. device as claimed in claim 7, it is characterized in that, gps data transmission of configuration information comprises gps data transmission frequency, and described gps data transmission frequency is lower than described gps data frequency acquisition;
Described transmitting element specifically for: according to gps data transmission frequency, the gps data got is compressed, generates the gps data bag of preset format, and described gps data bag is sent to described network side server.
11. devices as claimed in claim 10, it is characterized in that, gps data transmission of configuration information also comprises gps data and sends overtime duration; Described device also comprises:
Judging unit, after described gps data bag being sent to described network side server at described transmitting element, start local timer and monitor from network side server gps data bag receive determine message, if described timer reaches described gps data when sending overtime duration, the gps data bag not receiving the transmission of described network side server receives determines message, then judge whether the number of times sending described gps data bag arrives default number of retransmissions; When not arriving default number of retransmissions, then trigger described transmitting element and described gps data bag is resend to described network side server; Otherwise, described gps data bag is stored in preset buffer queue.
12. devices as claimed in claim 11, it is characterized in that, described device also comprises:
Detecting unit, for detecting the number of the gps data bag preserved in buffer queue; When detecting that the number of described gps data bag is greater than 1, and when being less than or equal to preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively; When detecting that the number of described gps data bag is greater than described preset number, according to the Queue sequence of gps data bag in described buffer queue, delete the gps data bag in described buffer queue successively, until when in buffer queue, the number of gps data bag is less than or equal to described preset number, according to the Queue sequence of gps data bag in described buffer queue, send described gps data bag to described network side server successively.
CN201410523234.4A 2014-09-30 2014-09-30 GPS data acquisition and transmission method and device Active CN105450720B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410523234.4A CN105450720B (en) 2014-09-30 2014-09-30 GPS data acquisition and transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410523234.4A CN105450720B (en) 2014-09-30 2014-09-30 GPS data acquisition and transmission method and device

Publications (2)

Publication Number Publication Date
CN105450720A true CN105450720A (en) 2016-03-30
CN105450720B CN105450720B (en) 2020-12-15

Family

ID=55560488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410523234.4A Active CN105450720B (en) 2014-09-30 2014-09-30 GPS data acquisition and transmission method and device

Country Status (1)

Country Link
CN (1) CN105450720B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612661A (en) * 2017-09-07 2018-01-19 四川九洲北斗导航与位置服务有限公司 Data communication method and device
CN108848140A (en) * 2018-05-31 2018-11-20 深圳壹账通智能科技有限公司 Event driven configuring management method, device, computer equipment and storage medium
CN109829016A (en) * 2019-01-25 2019-05-31 网宿科技股份有限公司 A kind of method of data synchronization and device
CN110211416A (en) * 2019-06-06 2019-09-06 泉州市华祥工业设计有限公司 The information transferring method and system of Internet of Things intelligent garage
CN110505177A (en) * 2018-05-16 2019-11-26 杭州海康威视数字技术股份有限公司 A kind of Information Collection System, terminal device and distance host
CN111556097A (en) * 2020-04-07 2020-08-18 深圳市海洋王照明工程有限公司 Data transmission method, acquisition station, acquisition terminal and data acquisition system
CN112414557A (en) * 2021-01-21 2021-02-26 南京微鲤科技有限公司 Temperature detection system and method of smart phone

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281244A (en) * 2008-03-04 2008-10-08 张慧春 GPS positioning data acquiring system
CN101286243A (en) * 2008-05-15 2008-10-15 北京海兰信数据科技股份有限公司 Sailing recorder and sailing recording method
CN101930629A (en) * 2010-06-09 2010-12-29 金龙联合汽车工业(苏州)有限公司 Remote updating system and method of vehicle information collecting device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281244A (en) * 2008-03-04 2008-10-08 张慧春 GPS positioning data acquiring system
CN101286243A (en) * 2008-05-15 2008-10-15 北京海兰信数据科技股份有限公司 Sailing recorder and sailing recording method
CN101930629A (en) * 2010-06-09 2010-12-29 金龙联合汽车工业(苏州)有限公司 Remote updating system and method of vehicle information collecting device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612661A (en) * 2017-09-07 2018-01-19 四川九洲北斗导航与位置服务有限公司 Data communication method and device
CN107612661B (en) * 2017-09-07 2021-06-22 四川九洲北斗导航与位置服务有限公司 Data communication method and device
CN110505177A (en) * 2018-05-16 2019-11-26 杭州海康威视数字技术股份有限公司 A kind of Information Collection System, terminal device and distance host
CN110505177B (en) * 2018-05-16 2023-06-30 杭州海康威视数字技术股份有限公司 Information collection system, terminal equipment and remote host
CN108848140A (en) * 2018-05-31 2018-11-20 深圳壹账通智能科技有限公司 Event driven configuring management method, device, computer equipment and storage medium
CN109829016A (en) * 2019-01-25 2019-05-31 网宿科技股份有限公司 A kind of method of data synchronization and device
CN109829016B (en) * 2019-01-25 2021-06-01 网宿科技股份有限公司 Data synchronization method and device
CN110211416A (en) * 2019-06-06 2019-09-06 泉州市华祥工业设计有限公司 The information transferring method and system of Internet of Things intelligent garage
CN111556097A (en) * 2020-04-07 2020-08-18 深圳市海洋王照明工程有限公司 Data transmission method, acquisition station, acquisition terminal and data acquisition system
CN111556097B (en) * 2020-04-07 2023-08-08 深圳市海洋王铁路照明技术有限公司 Data transmission method, acquisition station, acquisition terminal and data acquisition system
CN112414557A (en) * 2021-01-21 2021-02-26 南京微鲤科技有限公司 Temperature detection system and method of smart phone

Also Published As

Publication number Publication date
CN105450720B (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN105450720A (en) GPS data collection and transmission method and device
CN102510409B (en) Method and system for quickly and remotely updating program of mobile terminal by using wireless network
CN109151494B (en) Multimedia data transmission method, multimedia acquisition equipment and server
CA2564649A1 (en) System and method for efficient configuration in a fixed network automated meter reading system
WO2011006328A1 (en) System and method for updating device firmware, device management server and mobile terminal
TW201927020A (en) Method and apparatus for data transmission
JP6961969B2 (en) Servers, service provision systems, service provision methods and programs
CN104980915B (en) The method and device that CPE module firmware built in vehicle LTE-FI equipment upgrades
CN102571451A (en) Network element and method for uploading MR (Measure Report) messages by network element
CN108833542A (en) The upgrade method and TWS earphone of TWS earphone
CN103442425A (en) Paging notification method, paging method and paging device
CN104660627A (en) Communication method and communication system for upper computer and lower computer
CN111935756B (en) Data transmission method, device and equipment
CN103619040A (en) LTE automatic drive test method
CN104683260B (en) A kind of flow control methods and system
CN111818582B (en) Data transmission method and device and electronic equipment
CN105704210B (en) Charging pile information updating method and system
CN110362548B (en) Log extraction method and related equipment
KR102121555B1 (en) Mobile communication apparatus and method for managing diagnosis information thereof
CN110891092A (en) Data compression transmission method and device
CN101345775B (en) Synchronization method and system for man-computer command script document between network manager and network element
CN102780570A (en) Achieving method and system for management of cloud computing devices
CN104703214A (en) Positioning monitoring method and device
CN107659510A (en) Method, apparatus, storage medium and the buried bucket terminal of buried bucket terminal upload data
CN111200588B (en) Data transmission method based on protocol architecture of transmission layer and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20200507

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 102200, No. 8, No., Changsheng Road, Changping District science and Technology Park, Beijing, China. 1-5

Applicant before: AUTONAVI SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant