Background technology
Vehicle-mounted DVR belongs to the segmentation field of traditional built-in hard disk video tape recorder, and it is the emerging special product of one applied on vehicle along with digital video-audio coding techniques and grow up.Vehicle-mounted DVR is widely used in the various mobile traffic such as public transport, long-distance passenger transportation.Its major function is two aspects: one, video monitoring, carries out video recording uploaded videos information to video server, so that the acquisition of accident video information and the tracking to accident cause in vehicle operation; Its two, satellite fix, namely GPS location, carries out GPS location and uploads GPS information to GPS server in vehicle operation, so that obtain vehicle position information and route or travel by vehicle.In addition, DVR and the communication between video server and GPS server adopt 3G(3rd-generation, G mobile communication) network, and carry out uploading of video information and GPS information by 3G network.
Can know the reason of car accident and the position of car accident in time at far-end (video server and GPS server place place) when the above-mentioned functions of vehicle-mounted DVR makes vehicle occur accident, the disposal for car accident saves a large amount of control times and rescue period.
Although the application of vehicle-mounted DVR brings very large guarantee to the safe operation of vehicle, also have a lot of technical problem, make to produce some problems in the video information of far-end and the acquisition of GPS information.Such as, 3G network is adopted to carry out in the transmission of data, because vehicle is in continuous travel condition, the base station signal covering of telecom operators can change along with the change of vehicle location, the phenomenon of signal interruption may be produced in base station signal handoff procedure, if automobile navigates on the ground such as field, mountain area or tunnel, cannot can also arrive because of 3G signal, and cannot uploaded videos information and GPS information in time.
At present, for addressing these problems, propose the scheme of some video informations about vehicle-mounted DVR and GPS information benefit biography.GPS information is mended and is passed, and is namely the GPS information cannot uploaded in real time by vehicle-mounted DVR, again mends to pass to GPS server and store when network (such as 3G network) is normal.
The GPS information of existing vehicle-mounted DVR is mended biography scheme and is, when network disconnects, the GPS information that vehicle-mounted DVR uploads can be failed, at this moment the GPS information uploading failure is stamped and is retransmitted mark by vehicle-mounted DVR, and preserve in vehicle-mounted DVR this locality stores, after network recovery, vehicle-mounted DVR initiatively uploads to GPS server by with the GPS information retransmitting mark.The major defect of the program is:
1) vehicle-mounted DVR active upload GPS information, because cannot determine on server, which GPS information does not keep a record, have the generation of uploading same GPS information situation, now GPS server needs the filtration treatment of carrying out repeating data, which substantially increases operating pressure and the complexity of GPS server;
2) uploading of GPS information is controlled voluntarily by vehicle-mounted DVR, when the benefit that a large amount of vehicle-mounted DVR performs GPS information passes, higher to GPS server bandwidth requirements, and prior art cannot realize mending biography GPS information to vehicle-mounted DVR at any time and do process of in batches queuing up.
In addition, in prior art, the benefit of GPS information pass do not consider and video information upload between control problem, mend in biography process in GPS information and there will be the situation uploaded with video information and carry out simultaneously, and then the benefit that result in GPS information passes and video information upload between bandwidth contention, and the impact causing video information to be uploaded.
Summary of the invention
In view of this, the invention provides a kind of GPS information from vehicle-mounted DVR to GPS server and mend transmission method, with avoid duplicating GPS information upload situation generation and and video information upload between bandwidth contention.
The technical scheme of the application is achieved in that
Mend a transmission method from the GPS information of vehicle-mounted DVR to GPS server, comprising:
The GPS information recorded in GPS server scanning local data base, checks adjacent two GPS information acquisition time intervals in the historical data of the GPS information that vehicle-mounted DVR uploads;
If described interval greater than interval threshold, then described GPS server issues GPS information to described vehicle-mounted DVR and mends biography order;
Described GPS server receives described vehicle-mounted DVR and mends the GPS information passed, and the described GPS information passed of mending is stored in local data base.
Further, described method also comprises:
When described vehicle-mounted DVR receive GPS information that described GPS server issues mend pass order time:
If vehicle-mounted DVR uploads real-time video information, then do not respond described GPS information and mend biography order;
If vehicle-mounted DVR not uploads real-time video information, then vehicle-mounted DVR mends the content passing order according to described GPS information, and the GPS information mending biography is uploaded to described GPS server.
Further, described method also comprises:
Current GPS information from self GPS module real-time reception is saved in local disk by described vehicle-mounted DVR, uploads described Current GPS information in real time to GPS server simultaneously;
The Current GPS information that described in described GPS server real-time reception, vehicle-mounted DVR uploads, and described Current GPS information is stored in local data base.
Further, described GPS information is mended to pass to order and is comprised: the time period belonging to GPS information mending biography.
Further, information interaction is carried out by 3G network between described vehicle-mounted DVR and GPS server.
Further, vehicle-mounted DVR quantity when vehicle-mounted DVR described in described GPS server concurrent receipt mends the GPS information passed is 10 ~ 100.
Further, the GPS information recorded in the local data base that described GPS server scans is the GPS information in 3 days time ranges nearest apart from current time.
Further, whenever completing once after the GPS information benefit biography of vehicle-mounted DVR to GPS server, all through a time delays, then carry out mending from the GPS information of vehicle-mounted DVR to GPS server passing next time.
Further, described time delays is 5 ~ 10 minutes.
Further, described interval threshold is 10 ~ 60 seconds.
As can be seen from such scheme, GPS information from vehicle-mounted DVR to GPS server of the present invention mends transmission method, initiated by GPS server, determine not by the GPS information uploaded according to the GPS information that GPS server has obtained, and then avoid the generation that repetition GPS information uploads situation.Moreover, in method of the present invention, vehicle-mounted DVR first checks whether and is uploading real-time video information, if upload real-time video information, do not respond described GPS information and mend biography order, and then the benefit can not carrying out GPS information passes, so just do not have and video information upload between the generation of bandwidth contention problem, the timely transmission of video information can not be affected.In addition, in method of the present invention, be defined as 10 ~ 100 to mending the vehicle-mounted DVR quantity passing GPS information simultaneously, and then reduce the bandwidth pressure of GPS server.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, to develop simultaneously embodiment referring to accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, the GPS information from vehicle-mounted DVR to GPS server provided by the present invention mends transmission method, comprising:
The GPS information recorded in GPS server scanning local data base, checks adjacent two GPS information acquisition time intervals in the historical data of the GPS information that vehicle-mounted DVR uploads;
If described interval greater than interval threshold, then described GPS server issues GPS information to described vehicle-mounted DVR and mends biography order;
Described GPS server receives described vehicle-mounted DVR and mends the GPS information passed, and the described GPS information passed of mending is stored in local data base.
In the method, when described vehicle-mounted DVR receive GPS information that described GPS server issues mend pass order time:
If vehicle-mounted DVR uploads real-time video information, then do not respond described GPS information and mend biography order;
If vehicle-mounted DVR not uploads real-time video information, then vehicle-mounted DVR mends the content passing order according to described GPS information, and the GPS information mending biography is uploaded to described GPS server.
Wherein, the time period belonging to GPS information of biography be mended, the time period namely between described adjacent two GPS information acquisition times.
As a specific embodiment, the interval threshold in the present invention can be set to 10 ~ 60 seconds.
In addition, for ensureing uploading of real time GPS information, a specific embodiment of the present invention also comprises:
Current GPS information from GPS module real-time reception is saved in local disk by described vehicle-mounted DVR, uploads described Current GPS information in real time to GPS server simultaneously;
The Current GPS information that described in described GPS server real-time reception, vehicle-mounted DVR uploads, and described Current GPS information is stored in local data base.
In a specific embodiment of the present invention, between described vehicle-mounted DVR and GPS server, carry out information interaction by 3G network.
For reducing the bandwidth pressure of GPS server when vehicle-mounted DVR described in GPS server concurrent receipt mends the GPS information passed, in one embodiment of the present of invention, DVR quantity when vehicle-mounted DVR described in described GPS server concurrent receipt mends the GPS information passed is 10 ~ 100.
In one embodiment of the present of invention, the GPS information recorded in the local data base that described GPS server scans is the GPS information in 3 days time ranges nearest apart from current time.
In addition, in embodiments of the invention, whenever completing once after the GPS information benefit biography of vehicle-mounted DVR to GPS server, all through a time delays, carry out mending from the GPS information of vehicle-mounted DVR to GPS server passing, described time delays can be set to 5 ~ 10 minutes next time again.
Below in conjunction with Fig. 2, the idiographic flow that the GPS information from vehicle-mounted DVR to GPS server of the present invention mends transmission method is described.
As shown in Figure 2, idiographic flow of the present invention includes GPS server end flow process and vehicle-mounted DVR flow process two parts.
When vehicle-mounted DVR and GPS server normally works:
GPS module obtains the Current GPS information of vehicle position by satellite fix, and Current GPS information is sent to vehicle-mounted DVR.Wherein, GPS module can be built in vehicle-mounted DVR or with vehicle-mounted DVR carries out external connection, obtains Current GPS information and belongs to prior art scheme, repeat no more about GPS module.
Current GPS information from GPS module real-time reception is saved in local disk by described vehicle-mounted DVR, meanwhile, uploads this current GPS information by 3G network in real time to GPS server;
The Current GPS information that described in described GPS server real-time reception, vehicle-mounted DVR uploads, and described Current GPS information is stored in local data base.
The flow process of mending biography from the GPS information of vehicle-mounted DVR to GPS server is as follows.
GPS server end:
The GPS information recorded in step 101, scanning local data base, checks that same chassis carries the historical data of the GPS information that DVR uploads, and performs step 102.
In this step, the historical data of the real time GPS information that the vehicle-mounted DVR checked uploads generally can be set to from the historical data within 1 ~ 5 day of current time number forward, preferentially, can be set to from the historical data within 3 days of current time number forward.
In step 102, inspection historical data, whether adjacent two GPS information acquisition time intervals are greater than interval threshold, if had, perform step 103, otherwise perform step 105.
In this step, interval threshold can be set to 10 ~ 60 seconds, preferentially can be set to 30 seconds.
Step 103, to issue GPS information to vehicle-mounted DVR and mend and pass order, perform step 201 afterwards.
Wherein, GPS information mends the time period passing and order and comprise belonging to the GPS information will mending biography, the time period namely between described adjacent two GPS information acquisition times.
Vehicle-mounted DVR end:
Step 201, receive GPS information that described GPS server issues and mend and pass order, perform step 202 afterwards.
Step 202, judge whether to upload real-time video information, if it is perform step 203, otherwise perform step 204.
Step 203, do not respond described GPS information mend pass order.
Step 204, the content of ordering according to GPS information benefit biography, be uploaded to described GPS server by the GPS information will mending biography, perform step 104 afterwards.
GPS server end:
Step 104, receive described vehicle-mounted DVR and mend the GPS information passed, and the described GPS information passed of mending is stored in local data base, perform step 105 afterwards.
Step 105, wait for a time delays, enter step 101 afterwards.
Wherein said time delays can be set to 5 ~ 10 minutes, is preferably 5 minutes.
In said process, when vehicle-mounted DVR perform step 203 do not respond described GPS information mend pass order time, when GPS server can not receive the feedback of vehicle-mounted DVR, therefore step 103 is rested on, now can in GPS Servers installed one stand-by period, such as wait for 1 ~ 2 minute, if having passed through the feedback that the stand-by period does not also receive vehicle-mounted DVR, then return step 101.And then the problem that GPS server does not receive vehicle-mounted DVR response can be solved.
GPS information from vehicle-mounted DVR to GPS server of the present invention mends transmission method, is initiated, determine not by the GPS information uploaded, and then avoid the generation that repetition GPS information uploads situation according to the GPS information that GPS server has obtained by GPS server.Moreover, in method of the present invention, vehicle-mounted DVR first checks whether and is uploading real-time video information, if upload real-time video information, do not respond described GPS information and mend biography order, and then the benefit can not carrying out GPS information passes, so just do not have and video information upload between the generation of bandwidth contention problem, the timely transmission of video information can not be affected.In addition, in method of the present invention, be defined as 10 ~ 100 to mending the vehicle-mounted DVR quantity passing GPS information simultaneously, and then reduce the bandwidth pressure of GPS server.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.