CN104796440B - Method and apparatus for sending location data - Google Patents

Method and apparatus for sending location data Download PDF

Info

Publication number
CN104796440B
CN104796440B CN201410022484.XA CN201410022484A CN104796440B CN 104796440 B CN104796440 B CN 104796440B CN 201410022484 A CN201410022484 A CN 201410022484A CN 104796440 B CN104796440 B CN 104796440B
Authority
CN
China
Prior art keywords
location data
file
serial number
parameter
management server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410022484.XA
Other languages
Chinese (zh)
Other versions
CN104796440A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201410022484.XA priority Critical patent/CN104796440B/en
Publication of CN104796440A publication Critical patent/CN104796440A/en
Application granted granted Critical
Publication of CN104796440B publication Critical patent/CN104796440B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention discloses a kind of method and apparatus for sending location data.Wherein at the appointed time the location data of target terminal is acquired with preset frequency, collected location data is sequentially stored in the first file in interval, and is sequentially collected location data Allotment Serial Number.When collected location data is reported to management server, by the first file first location data and corresponding serial number be stored in the second file.Sequence in the first file according to serial number from small to large, two adjacent location datas are compared successively, and in two adjacent location datas, by in part storage to the second file different from the location data that serial number is smaller in the larger location data of serial number, the second file is finally reported to management server.By being compared to adjacent positioned data, only sends numerical value different piece and the occupancy to wireless communication resources is greatly reduced to be substantially reduced reported data amount.

Description

Method and apparatus for sending location data
Technical field
The present invention relates to the communications fields, more particularly to a kind of method and apparatus for sending location data.
Background technology
On May 17th, 2013, Ministry of Industry and Information hold " the antitheft engineering of electric bicycle Internet of Things promotes meeting ".Meeting is mainly introduced Experience and specific implementation of the Wuxi City at the antitheft aspect of electric bicycle Internet of Things, and formulation electric bicycle is discussed The antitheft standard of Internet of Things.
The antitheft cardinal principle of electric bicycle is to install antitheft positioning device for electric bicycle, which has GPS (Global Positioning System, global positioning system)Positioning function and wireless communication function, can be by electrical salf-walking The position of vehicle is reported to remote management platform in time, is shown on the electronic map by geocoding rule, to know the electricity The geographical location of dynamic bicycle.
Defect is also apparent existing for this mode, in order to realize antitheft positioning, record the frequencies of GPS positioning data compared with It is high, it is therefore desirable to which that the data volume reported is larger, to cause larger pressure to cordless communication network.
Invention content
The embodiment of the present invention provides a kind of method and apparatus for sending location data.By to adjacent location data It is compared, numerical value same section only sends the different part of numerical value, to be substantially reduced reported data amount, greatly without sending Width reduces the occupancy to wireless communication resources.
According to an aspect of the present invention, a kind of method for sending location data is provided, including:
At the appointed time in interval, the location data of target terminal is acquired with preset frequency;
Collected location data is sequentially stored in the first file, and is sequentially collected location data Allotment Serial Number;
When collected location data is reported to management server, by first location data P in the first file1 And corresponding serial number is stored in the second file;
Sequence in the first file according to serial number from small to large is successively compared two adjacent location datas, And in two adjacent location datas, by part different from the location data that serial number is smaller in the larger location data of serial number It stores into the second file;
Second file is reported to management server.
In one embodiment, the sequence in the first file according to serial number from small to large, successively to adjacent two Location data is compared, and in two adjacent location datas, will be smaller with serial number in the larger location data of serial number The different part of location data, which is stored to the step in the second file, includes:
The value of parameter i is set as 1;
In the first file, i+1 location data P is judgedi+1With i-th of location data PiBetween difference it is whether small In predetermined threshold;
If i+1 location data Pi+1With i-th of location data PiDifference be not less than predetermined threshold, then by i+1 Location data Pi+1In with i-th of location data PiDifferent part Di+1And in corresponding serial number i+1 storages to the second file;
The numerical value of parameter i is added 1, to be updated to parameter i;
Judge whether i is equal to N;
If i is not equal to N, repeats and judge i+1 location data Pi+1With i-th of location data PiBetween difference Not the step of not whether not being less than predetermined threshold;
The step of if i is equal to N, and the second file is reported to management server by execution.
In one embodiment, if i+1 location data Pi+1With i-th of location data PiBetween difference be less than The value of parameter j is then set as 1 by predetermined threshold;
Judge whether i+1+j is more than N;
When i+1+j is more than N, the step of the second file is reported to management server is executed;
When i+1+j is not more than N ,+j location data P of i+1 are judgedi+1+jWith i-th of location data PiBetween difference Whether predetermined threshold is less than;
If+j location data P of i+1i+1+jWith i-th of location data PiBetween difference be not less than predetermined threshold, then will + j location data P of i+1i+1+jIn with i-th of location data PiDifferent part Di+1+jAnd corresponding serial number i+1+j storages are arrived In second file;
The numerical value of parameter i is added into 1+j, to be updated to parameter i;
Then it executes and the step of whether i is equal to N is judged.
In one embodiment, if+j location data P of i+1i+1+jWith i-th of location data PiBetween difference it is small In predetermined threshold, then the numerical value of parameter j is added 1, to be updated to parameter j;
Then it executes and the step of whether i+1+j is more than N is judged.
In one embodiment, the step of the second file being reported to management server include:
Wireless communication connection is established with management server;
Second file is reported to management server;
It disconnects after reporting and being connect with the wireless communication of management server.
According to another aspect of the present invention, a kind of device for sending location data, including collecting unit, first are provided Storage control unit, the second storage control unit and transmission unit, wherein:
Collecting unit, at the appointed time interval, the location data of target terminal to be acquired with preset frequency;
First storage control unit, for collected location data to be sequentially stored in the first file, and by successively Sequence is collected location data Allotment Serial Number;
Second storage control unit, for when collected location data is reported to management server, by the first text First location data P in part1And corresponding serial number is stored in the second file;In the first file according to serial number from it is small to Big sequence is successively compared two adjacent location datas, and in two adjacent location datas, and serial number is larger Location data in different from the location data that serial number is smaller part storages to the second file;
Transmission unit, for the second file to be reported to management server.
In one embodiment, the value of parameter i is specifically set as 1 by the second storage control unit, in the first file, Judge i+1 location data Pi+1With i-th of location data PiBetween difference whether be less than predetermined threshold;If i+1 is fixed Position data Pi+1With i-th of location data PiDifference be not less than predetermined threshold, then by i+1 location data Pi+1In with i-th A location data PiDifferent part Di+1And in corresponding serial number i+1 storages to the second file;The numerical value of parameter i is added 1, with Just parameter i is updated;Judge whether i is equal to N;If i is not equal to N, repeats and judge i+1 location data Pi+1 With i-th of location data PiBetween difference whether be less than predetermined threshold operation;If i is equal to N, execution will be on the second file Offer the operation of management server.
In one embodiment, the second storage control unit is additionally operable in i+1 location data Pi+1It is fixed with i-th Position data PiBetween difference be less than predetermined threshold when, the value of parameter j is set as 1;Judge whether i+1+j is more than N;Work as i+1+ When j is more than N, the operation that the second file is reported to management server is executed;When i+1+j is not more than N, i+1+j is judged Location data Pi+1+jWith i-th of location data PiBetween difference whether be less than predetermined threshold;If+j location datas of i+1 Pi+1+jWith i-th of location data PiBetween difference be not less than predetermined threshold, then by i+1+j location data Pi+1+jIn with I location data PiDifferent part Di+1+jAnd in corresponding serial number i+1+j storages to the second file;The numerical value of parameter i is added 1 + j, to be updated to parameter i;Then the operation for judging whether i is equal to N is executed.
In one embodiment, the second storage control unit is additionally operable in+j location data P of i+1i+1+jWith i-th Location data PiBetween difference be less than predetermined threshold when, the numerical value of parameter j is added 1, to be updated to parameter j;Then Execute the operation for judging whether i+1+j is more than N.
In one embodiment, transmission unit is established wireless communication with management server and is connected specifically when reporting information It connects, the second file is reported to management server, disconnect after reporting and being connect with the wireless communication of management server.
For the present invention by being compared to adjacent location data, numerical value same section only sends numerical value not without sending The occupancy to wireless communication resources is greatly reduced to be substantially reduced reported data amount in same part.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without having to pay creative labor, may be used also for those of ordinary skill in the art With obtain other attached drawings according to these attached drawings.
Fig. 1 is the schematic diagram of the method one embodiment of the present invention for sending location data.
Fig. 2 is the schematic diagram of method another embodiment of the present invention for sending location data.
Fig. 3 is the schematic diagram of the device one embodiment of the present invention for sending location data.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Below Description only actually at least one exemplary embodiment is illustrative, is never used as to the present invention and its application or makes Any restrictions.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, shall fall within the protection scope of the present invention.
Unless specifically stated otherwise, positioned opposite, the digital table of the component and step that otherwise illustrate in these embodiments It is not limited the scope of the invention up to formula and numerical value.
Simultaneously, it should be appreciated that for ease of description, the size of attached various pieces shown in the drawings is not according to reality Proportionate relationship draw.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable In the case of, the technology, method and apparatus should be considered as authorizing part of specification.
In shown here and discussion all examples, any occurrence should be construed as merely illustrative, without It is as limitation.Therefore, the other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it need not be further discussed in subsequent attached drawing in a attached drawing.
Fig. 1 is the schematic diagram of the method one embodiment of the present invention for sending location data.As shown in Figure 1, this implementation The method and step of example is as follows:
Step 101, the location data of target terminal is at the appointed time acquired with preset frequency in interval.
For example, with GPS positioning data of every 10 seconds records, location data includes longitude and latitude information.In WGS84 lattice Under formula, the location data format of CHINESE REGION is:Longitude is ddd mm mmmm, and latitude is dd mm mmmm.Wherein longitude 1 second About 23 meters, about 30 meters of latitude 1 second.
Step 102, collected location data is sequentially stored in the first file, and is sequentially collected Location data Allotment Serial Number.
Step 103, when collected location data is reported to management server, first in the first file is fixed Position data P1And corresponding serial number is stored in the second file.
Step 104, the sequence in the first file according to serial number from small to large, successively to two adjacent location datas into Row compares, and in two adjacent location datas, not by location data smaller with serial number in the larger location data of serial number In same part storage to the second file.
Step 105, the second file is reported to management server.
Based on the method for sending location data that the above embodiment of the present invention provides, by adjacent location data It is compared, numerical value same section only sends the different part of numerical value, to be substantially reduced reported data amount, greatly without sending Width reduces the occupancy to wireless communication resources.
For example, the coordinate of first point recorded in the first file is(31.239151 121.502266), second Point coordinate be(31.237096 121.503811), the coordinate of third point is(31.229188 121.511782).
As can be seen that the first o'clock compared with second point, 31.239151 and 31.237096,121.502266 with 121.503811 difference then records the coordinate of first point only at latter four in the second file(31.239151, 121.502266), the coordinate of second point is(7096,3811).
See the coordinate of second and third point again, 31.237096 and 31.229188,121.503811 and 121.511782 Five differences afterwards, the then coordinate that third point is recorded in the second file are(29188,11782).Go down successively, until this Acquisition terminates.
It follows that compared to the first file, the data volume that the second file includes substantially reduces, on being substantially reduced Data volume is reported, the occupancy to wireless communication resources is greatly reduced.The content of the first file and the second file is such as in above-described embodiment Shown in table 1.
Location data First file Second file
P1 31.239151 121.502266 31.239151 121.502266
P2 31.237096 121.503811 7096,3811
P3 31.229188 121.511782 29188,11782
Table 1
Fig. 2 is the schematic diagram of method another embodiment of the present invention for sending location data.As shown in Fig. 2, specific right The method and step that adjacent positioned data are compared is as follows:
Step 201, the location data of target terminal is at the appointed time acquired with preset frequency in interval.
Step 202, collected location data is sequentially stored in the first file, and is sequentially collected Location data Allotment Serial Number.
Step 203, when collected location data is reported to management server, first in the first file is fixed Position data P1And corresponding serial number is stored in the second file.
Step 204, it is 1 by parameter i Initialize installations.
Step 205, in the first file, judge i+1 location data Pi+1With i-th of location data PiBetween difference Not whether not to be less than predetermined threshold.If i+1 location data Pi+1With i-th of location data PiDifference be not less than predetermined threshold, Then follow the steps 206;If i+1 location data Pi+1With i-th of location data PiBetween difference be less than predetermined threshold, then Execute step 209.
When carrying out judging to compare, compare since a high position by the sequence of degree, minute, second, it is different until finding first Numerical value.If for two adjacent point A and B, the longitude and latitude numerical difference of the point A of subsequent point B and front is away from respectively less than 1 Second, then it is believed that the position gap between this 2 points can be ignored, therefore skip point B, continue by next point C come with point A into Row compares, until gap was just preserved more than 1 second.
Step 206, by i+1 location data Pi+1In with i-th of location data PiDifferent part Di+1And it is corresponding In serial number i+1 storages to the second file.
Step 207, the numerical value of parameter i is added 1, to be updated to parameter i.
Step 208, judge whether i is equal to N, wherein N is the location data sum in the first file.If i is not equal to N, Execute step 205;If i is equal to N, 215 are thened follow the steps.
Here, if judging, whole location datas in the first file have handled completion, can carry out the second file Report, otherwise continues cycling through this flow, to handle the adjacent location data of lower a pair successively.
Step 209, the value of parameter j is set as 1.
Step 210, judge whether i+1+j is more than N.When i+1+j is more than N, step 215 is executed;When i+1+j is not more than N When, execute step 211.
Step 211, judge+j location data P of i+1i+1+jWith i-th of location data PiBetween difference whether be less than Predetermined threshold.If+j location data P of i+1i+1+jWith i-th of location data PiBetween difference be not less than predetermined threshold, then Execute step 212;If+j location data P of i+1i+1+jWith i-th of location data PiBetween difference be less than predetermined threshold, then Execute step 214.
Step 212, by+j location data P of i+1i+1+jIn with i-th of location data PiDifferent part Di+1+jAnd phase In the serial number i+1+j storages to the second file answered.
Step 213, the numerical value of parameter i is added into 1+j, to be updated to parameter i.Then step 208 is executed.
Step 214, the numerical value of parameter j is added 1, to be updated to parameter j.Then step 210 is executed.
Step 215, the second file is reported to management server.
In one embodiment, the step of the second file being reported to management server include:
Wireless communication connection is established with management server, the second file is reported to management server, after reporting, Disconnection is connect with the wireless communication of management server.
Due to only just establishing wireless communication connection with management server in reported data, can significantly reduce to wireless The pressure of Internet resources.
Fig. 3 is the schematic diagram of the device one embodiment of the present invention for sending location data.As shown in figure 3, the device Including collecting unit 301, the first storage control unit 302, the second storage control unit 303 and transmission unit 304.Wherein:
Collecting unit 301, at the appointed time interval, the location data of target terminal to be acquired with preset frequency.
First storage control unit 302, for collected location data to be sequentially stored in the first file, and by first Sequence is collected location data Allotment Serial Number afterwards.
Second storage control unit 303, for when collected location data is reported to management server, by first First location data P in file1And corresponding serial number is stored in the second file;According to serial number from small in the first file To big sequence, two adjacent location datas are compared successively, and in two adjacent location datas, by serial number compared with In big location data in the storage to the second file of the part different from the location data that serial number is smaller.
Transmission unit 304, for the second file to be reported to management server.
Based on the device for sending location data that the above embodiment of the present invention provides, by adjacent location data It is compared, numerical value same section only sends the different part of numerical value, to be substantially reduced reported data amount, greatly without sending Width reduces the occupancy to wireless communication resources.
Preferably, the value of parameter i is specifically set as 1 by the second storage control unit 303, in the first file, judges i-th + 1 location data Pi+1With i-th of location data PiBetween difference whether be less than predetermined threshold;If i+1 location data Pi+1With i-th of location data PiDifference be not less than predetermined threshold, then by i+1 location data Pi+1In with i-th position Data PiDifferent part Di+1And in corresponding serial number i+1 storages to the second file;The numerical value of parameter i is added 1, so as to ginseng Number i is updated;Judge whether i is equal to N;If i is not equal to N, repeats and judge i+1 location data Pi+1With i-th Location data PiBetween difference whether be less than predetermined threshold operation;If i is equal to N, executes and the second file is reported to pipe Manage the operation of server.
Preferably, the second storage control unit 303 is additionally operable in i+1 location data Pi+1With i-th of location data Pi Between difference be less than predetermined threshold when, the value of parameter j is set as 1;Judge whether i+1+j is more than N;When i+1+j is more than N When, execute the operation that the second file is reported to management server;When i+1+j is not more than N ,+j positioning numbers of i+1 are judged According to Pi+1+jWith i-th of location data PiBetween difference whether be less than predetermined threshold;If+j location data P of i+1i+1+jWith I location data PiBetween difference be not less than predetermined threshold, then by i+1+j location data Pi+1+jIn with i-th position Data PiDifferent part Di+1+jAnd in corresponding serial number i+1+j storages to the second file;The numerical value of parameter i is added into 1+j, so as to Parameter i is updated;Then the operation for judging whether i is equal to N is executed.
Preferably, the second storage control unit 303 is additionally operable in+j location data P of i+1i+1+jWith i-th of positioning number According to PiBetween difference be less than predetermined threshold when, the numerical value of parameter j is added 1, to be updated to parameter j;Then it executes and sentences Whether disconnected i+1+j is more than the operation of N.
Preferably, transmission unit 304 establishes wireless communication connection specifically when reporting information with management server, by the Two files are reported to management server, disconnect after reporting and being connect with the wireless communication of management server.
By device of the present invention being mounted on the vehicles such as electric bicycle, it can be achieved that location information is with second grade frequency Rate is acquired and preserves.And give the correct time upper, a few minutes can be spaced or even a few houres report once.It gives the correct time on carrying out, only passes Defeated different data, identical data need not repeat to transmit, reduce the data volume of transmission, be greatly reduced to wireless communication resources It occupies.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
Description of the invention provides for the sake of example and description, and is not exhaustively or will be of the invention It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage Various embodiments with various modifications of the solution present invention to design suitable for special-purpose.

Claims (10)

1. a kind of method for sending location data, which is characterized in that including:
At the appointed time in interval, the location data of target terminal is acquired with preset frequency;
Collected location data is sequentially stored in the first file, and is sequentially that collected location data is distributed Serial number;
When collected location data is reported to management server, by first location data P in the first file1And phase The serial number answered is stored in the second file;
Sequence in the first file according to serial number from small to large is successively compared two adjacent location datas, and In two adjacent location datas, by part different from the location data that serial number is smaller in the larger location data of serial number and institute In the corresponding serial number storage to the second file for stating the larger location data of serial number;
Second file is reported to management server.
2. according to the method described in claim 1, it is characterized in that,
Sequence in the first file according to serial number from small to large is successively compared two adjacent location datas, and In two adjacent location datas, by part different from the location data that serial number is smaller in the larger location data of serial number and institute The corresponding serial number for stating the larger location data of serial number stores and to the step in the second file includes:
The value of parameter i is set as 1;
In the first file, i+1 location data P is judgedi+1With i-th of location data PiBetween difference whether be less than it is predetermined Threshold value;
If i+1 location data Pi+1With i-th of location data PiDifference be not less than predetermined threshold, then by i+1 positioning Data Pi+1In with i-th of location data PiDifferent part Di+1And in corresponding serial number i+1 storages to the second file;
The numerical value of parameter i is added 1, to be updated to parameter i;
Judge whether i is equal to N, wherein N is the location data sum in the first file;
If i is not equal to N, repeats and judge i+1 location data Pi+1With i-th of location data PiBetween difference whether The step of less than predetermined threshold;
The step of if i is equal to N, and the second file is reported to management server by execution.
3. according to the method described in claim 2, it is characterized in that,
If i+1 location data Pi+1With i-th of location data PiBetween difference be less than predetermined threshold, then by the value of parameter j It is set as 1;
Judge whether i+1+j is more than N;
When i+1+j is more than N, the step of the second file is reported to management server is executed;
When i+1+j is not more than N ,+j location data P of i+1 are judgedi+1+jWith i-th of location data PiBetween difference whether Less than predetermined threshold;
If+j location data P of i+1i+1+jWith i-th of location data PiBetween difference be not less than predetermined threshold, then by i-th+ 1+j location data Pi+1+jIn with i-th of location data PiDifferent part Di+1+jAnd corresponding serial number i+1+j is stored to second In file;
The numerical value of parameter i is added into 1+j, to be updated to parameter i;
Then it executes and the step of whether i is equal to N is judged.
4. according to the method described in claim 3, it is characterized in that,
If+j location data P of i+1i+1+jWith i-th of location data PiBetween difference be less than predetermined threshold, then by parameter j Numerical value add 1, to be updated to parameter j;
Then it executes and the step of whether i+1+j is more than N is judged.
5. according to the described method of any one of claim 1-4, which is characterized in that
The step of second file is reported to management server include:
Wireless communication connection is established with management server;
Second file is reported to management server;
After reporting, disconnection is connect with the wireless communication of management server.
6. a kind of for sending the device of location data, which is characterized in that including collecting unit, the first storage control unit, the Two storage control units and transmission unit, wherein:
Collecting unit, at the appointed time interval, the location data of target terminal to be acquired with preset frequency;
First storage control unit, for collected location data to be sequentially stored in the first file, and sequentially For collected location data Allotment Serial Number;
Second storage control unit will be in the first file for when collected location data is reported to management server First location data P1And corresponding serial number is stored in the second file;In the first file from small to large according to serial number Sequentially, two adjacent location datas are compared successively, and in two adjacent location datas, are determined serial number is larger The corresponding serial number storage of the part and the serial number larger location data different from the location data that serial number is smaller in the data of position Into the second file;
Transmission unit, for the second file to be reported to management server.
7. device according to claim 6, which is characterized in that
The value of parameter i is specifically set as 1 by the second storage control unit, in the first file, judges i+1 location data Pi+1With i-th of location data PiBetween difference whether be less than predetermined threshold;If i+1 location data Pi+1It is fixed with i-th Position data PiDifference be not less than predetermined threshold, then by i+1 location data Pi+1In with i-th of location data PiDifferent portions Divide Di+1And in corresponding serial number i+1 storages to the second file;The numerical value of parameter i is added 1, to be updated to parameter i;Sentence Whether disconnected i is equal to N, and wherein N is the location data sum in the first file;If i is not equal to N, repeats and judge i+1 Location data Pi+1With i-th of location data PiBetween difference whether be less than predetermined threshold operation;If i is equal to N, execute Second file is reported to the operation of management server.
8. device according to claim 7, which is characterized in that
Second storage control unit is additionally operable in i+1 location data Pi+1With i-th of location data PiBetween difference be less than When predetermined threshold, the value of parameter j is set as 1;Judge whether i+1+j is more than N;When i+1+j is more than N, execute the second text Part is reported to the operation of management server;When i+1+j is not more than N ,+j location data P of i+1 are judgedi+1+jIt is fixed with i-th Position data PiBetween difference whether be less than predetermined threshold;If+j location data P of i+1i+1+jWith i-th of location data PiIt Between difference be not less than predetermined threshold, then by i+1+j location data Pi+1+jIn with i-th of location data PiDifferent parts Di+1+jAnd in corresponding serial number i+1+j storages to the second file;The numerical value of parameter i is added into 1+j, to be updated to parameter i; Then the operation for judging whether i is equal to N is executed.
9. device according to claim 8, which is characterized in that
Second storage control unit is additionally operable in+j location data P of i+1i+1+jWith i-th of location data PiBetween difference When less than predetermined threshold, the numerical value of parameter j is added 1, to be updated to parameter j;Then it executes and judges whether i+1+j is more than The operation of N.
10. according to the device described in any one of claim 6-9, which is characterized in that
Transmission unit specifically when reporting information, establishes wireless communication connection with management server, the second file is reported to pipe Server is managed, disconnects after reporting and being connect with the wireless communication of management server.
CN201410022484.XA 2014-01-17 2014-01-17 Method and apparatus for sending location data Active CN104796440B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410022484.XA CN104796440B (en) 2014-01-17 2014-01-17 Method and apparatus for sending location data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410022484.XA CN104796440B (en) 2014-01-17 2014-01-17 Method and apparatus for sending location data

Publications (2)

Publication Number Publication Date
CN104796440A CN104796440A (en) 2015-07-22
CN104796440B true CN104796440B (en) 2018-09-14

Family

ID=53560951

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410022484.XA Active CN104796440B (en) 2014-01-17 2014-01-17 Method and apparatus for sending location data

Country Status (1)

Country Link
CN (1) CN104796440B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106547006B (en) * 2016-12-07 2018-10-19 中国电子科技集团公司第五十四研究所 The two-parameter compression method of navigation GNSS location datas suitable for Big Dipper message transmissions
CN107277900A (en) * 2017-05-12 2017-10-20 深圳市康凯斯信息技术有限公司 A kind of energy saving method and system of shared bicycle electronic lock
CN107888510A (en) * 2017-12-28 2018-04-06 中科创能实业有限公司 Data transmission method for uplink and device
CN116056002B (en) * 2022-08-17 2023-09-22 荣耀终端有限公司 Data acquisition method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398101A (en) * 2001-07-13 2003-02-19 厦门雅迅网络股份有限公司 Method for transmitting satellite location data of vehicles
CN103034673A (en) * 2011-09-28 2013-04-10 歌乐株式会社 Object data allocation method, object data allocation system and server apparatus, client device and program thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398101A (en) * 2001-07-13 2003-02-19 厦门雅迅网络股份有限公司 Method for transmitting satellite location data of vehicles
CN103034673A (en) * 2011-09-28 2013-04-10 歌乐株式会社 Object data allocation method, object data allocation system and server apparatus, client device and program thereof

Also Published As

Publication number Publication date
CN104796440A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
US9813852B2 (en) System and method for positioning terminal
CN106556398B (en) A kind of matched method and device of route
CN104796440B (en) Method and apparatus for sending location data
CN104732603A (en) Position coordinate-based method of checking attendance of outworkers
CN104135395B (en) IDC data transmission in network quality control method and system
CN105718465A (en) Geofence generation method and device
CN105976604A (en) Bus route matching method based on GIS and bus GPS data
CN104867402B (en) A kind of method and device thereof and terminal device of offline inverse geocoding
CN105847310A (en) Position determination method and apparatus
CN105808912B (en) A kind of visual analysis method, the system of traffic track data
CN105738922B (en) The service reliability analysis method and system of aeronautical satellite constellation systems
CN103903474A (en) Motorcade travelling induction method based on K-means clustering
CN107743092A (en) Path selecting method and device
CN108712714A (en) The selection method and device of AP in a kind of interior WLAN fingerprint locations
CN105354249B (en) More account relating method, apparatus and electronic equipment
CN103838861B (en) A kind of method and display system based on three-dimension GIS dynamic display information
CN110555256A (en) GPS route simulation data generation method and device
CN104966248A (en) Meal urging method and system in case of self-help meal ordering
CN102378217A (en) Beacon node credit assessment method in localization in wireless sensor networks
CN104616065B (en) Method and apparatus for order-processing
CN107925702A (en) Method and apparatus for the binder for detecting damage
CN104125605B (en) A kind of implementation method and device for asking to set up WIFI connections
CN103279816A (en) Active window-based terminal work efficiency statistical method and system
CN110471697A (en) Configuration method and Related product
CN106454880A (en) Signaling tracking task processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant