Summary of the invention
The invention provides a kind of data transmission method, system and equipment,, in time to transmit important information of vehicles and vehicle image, guarantee user's regular traffic.
In order to achieve the above object, the invention provides a kind of data transmission method, be applied to comprise the bayonet socket management system of bayonet socket front end and bayonet socket service end, described bayonet socket front end capture through vehicle the time, generate information of vehicles and vehicle image; The method comprises the following steps:
Described bayonet socket front end send carry described information of vehicles the information of vehicles message to described bayonet socket service end before, described bayonet socket front end improves the priority of described information of vehicles message, so that described information of vehicles message prior is given described bayonet socket service end by Internet Transmission;
After described bayonet socket service end received described information of vehicles message, if described information of vehicles is the information of designated vehicle, described bayonet socket service end was that described vehicle image is reserved link information;
The vehicle image message that described vehicle image is carried in described bayonet socket front end transmission, to described bayonet socket service end, receives described vehicle image message by described bayonet socket service end according to described reservation link information.
Described bayonet socket service end knows that described information of vehicles is that the mode of the information of designated vehicle comprises:
When described bayonet socket service end obtains in described information of vehicles message to carry designated identification, determine that described information of vehicles is the information of designated vehicle; Wherein, described designated identification is after described bayonet socket front end determines that according to the designated vehicle set of safeguarding in advance described information of vehicles is the information of designated vehicle, to add in described information of vehicles message; Perhaps,
The designated vehicle set that described bayonet socket service end is safeguarded in advance according to self determines that described information of vehicles is the information of designated vehicle.
The vehicle image message that described vehicle image is carried in described bayonet socket front end transmission, to described bayonet socket service end, also comprises before:
If it is the information of designated vehicle that described bayonet socket front end is determined described information of vehicles, described bayonet socket front end improves the priority of described vehicle image message, so that described vehicle image message prior is given described bayonet socket service end by Internet Transmission.
The priority of the described vehicle image message after the priority of the described information of vehicles message after raising is better than improving; Perhaps,
The priority of the described vehicle image message after the priority of the described information of vehicles message after raising equals to improve; Perhaps,
The priority of the described information of vehicles message after the priority of the described vehicle image message after raising is better than improving.
Described bayonet socket service end receives described vehicle image message according to described reservation link information, also comprises afterwards:
Described bayonet socket service end is closed and is discharged reservation link information corresponding to described vehicle image message.
The invention provides a kind of bayonet socket front end, be applied to comprise the bayonet socket management system of described bayonet socket front end and bayonet socket service end, described bayonet socket front end capture through vehicle the time, generate information of vehicles and vehicle image; This bayonet socket front end comprises:
The information of vehicles message processing module (MPM), be used for before information of vehicles message that described information of vehicles is carried in transmission is to described bayonet socket service end, improve the priority of described information of vehicles message, so that described information of vehicles message prior is given described bayonet socket service end by Internet Transmission;
Information of vehicles message sending module, be used for sending and carry the information of vehicles message of described information of vehicles to described bayonet socket service end;
Vehicle image message sending module, be used for sending and carry the vehicle image message of described vehicle image to described bayonet socket service end.
Described information of vehicles message processing module (MPM), also be used for after the designated vehicle set according to safeguarding in advance determines that described information of vehicles is the information of designated vehicle, add designated identification in described information of vehicles message, described designated identification is used to indicate the information that described information of vehicles is designated vehicle.
Also comprise:
The vehicle image message processing module (MPM), be used for when definite described information of vehicles is the information of designated vehicle, transmission is carried the vehicle image message of described vehicle image to before described bayonet socket service end, improve the priority of described vehicle image message, so that described vehicle image message prior is given described bayonet socket service end by Internet Transmission.
The priority of the described vehicle image message after the priority of the described information of vehicles message after raising is better than improving; Perhaps,
The priority of the described vehicle image message after the priority of the described information of vehicles message after raising equals to improve; Perhaps,
The priority of the described information of vehicles message after the priority of the described vehicle image message after raising is better than improving.
The invention provides a kind of bayonet socket service end, be applied to comprise the bayonet socket management system of bayonet socket front end and described bayonet socket service end, described bayonet socket front end capture through vehicle the time, generate information of vehicles and vehicle image; This bayonet socket service end comprises:
Information of vehicles message receiver module, be used for receiving the information of vehicles message with high priority that carries described information of vehicles;
Link information reservation process module, be used for when described information of vehicles is the information of designated vehicle, for described vehicle image is reserved link information;
Vehicle image message receiver module, be used for receiving according to the link information of reserving for described vehicle image the described vehicle image message that carries described vehicle image.
Described link information reservation process module, concrete being used for determines that described information of vehicles is the information of designated vehicle when the described information of vehicles message of acquisition carries designated identification; Wherein, described designated identification is after described bayonet socket front end determines that according to the designated vehicle set of safeguarding in advance described information of vehicles is the information of designated vehicle, to add in described information of vehicles message; Perhaps,
The designated vehicle set of safeguarding in advance according to self determines that described information of vehicles is the information of designated vehicle.
Described vehicle image message receiver module, concrete for receiving the vehicle image message with high priority that carries described vehicle image.
Described link information reservation process module, also be used for closing and discharging reservation link information corresponding to described vehicle image message.
The invention provides a kind of bayonet socket management system, comprise above-mentioned bayonet socket front end, and above-mentioned bayonet socket service end.
Compared with prior art, the present invention has the following advantages at least:
The bayonet socket front end is by separately being transferred to the bayonet socket service end with information of vehicles, vehicle image, and high priority is set for the message of information of vehicles, make the information of vehicles message prior of high priority transmit in network, can guarantee preferentially information of vehicles to be transferred to the bayonet socket service end.After the bayonet socket service end receives information of vehicles, be preferably the bayonet socket front end that need to report important information and reserve link information, thereby assurance bayonet socket front end is in time uploaded important vehicle image.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Embodiment one
The embodiment of the present invention one proposes a kind of data transmission method, is applied to comprise the bayonet socket management system of bayonet socket front end and bayonet socket service end, connects by network between this bayonet socket front end and bayonet socket service end, and as shown in Figure 2, the method comprises the following steps:
Step 201, bayonet socket front end capture through vehicle the time, generate information of vehicles and vehicle image.Wherein, this information of vehicles includes but not limited to: number plate of vehicle, car plate color, by date, time etc.
Step 202, the bayonet socket front end adds information of vehicles in the information of vehicles message to, and for this information of vehicles message, high priority is set, namely improve the priority (compare with the message that does not carry out the priority adjustment, the priority of information of vehicles message improves) of information of vehicles message.
The information of vehicles message prior that step 203, bayonet socket front end will have a high priority by Internet Transmission to the bayonet socket service end.Wherein, in the network transmission process of information of vehicles message,, because this information of vehicles message has high priority, based on QoS (Quality of Service, service quality), guarantee, the information of vehicles message prior can be transferred to the bayonet socket service end.
Step 204, after the bayonet socket service end received the information of vehicles message, if information of vehicles is the information of designated vehicle, this bayonet socket service end was that vehicle image is reserved link information.Be that vehicle image is reserved FTP (File Transfer Protocol, file transfer protocol (FTP)) connection resource, port or bandwidth etc. as the bayonet socket service end.Wherein, the bayonet socket service end knows that information of vehicles is that the mode of the information of designated vehicle comprises:
Mode one: when the bayonet socket front end determines that according to the designated vehicle set of safeguarding in advance information of vehicles is the information of designated vehicle (as illegal vehicle, belong to the vehicle etc. of deploying to ensure effective monitoring and control of illegal activities), this bayonet socket front end carries designated identification in the information of vehicles message (it is the information of designated vehicle that this designated identification is used for this information of vehicles of expression, the vehicle image that information of vehicles is corresponding need to preferentially report), after the bayonet socket service end receives the information of vehicles message, if the bayonet socket service end is resolved to designated identification from the information of vehicles message, the bayonet socket service end determines that information of vehicles is the information of designated vehicle.
Mode two: after the bayonet socket service end received the information of vehicles message, the designated vehicle set of safeguarding in advance according to self determined that information of vehicles is the information of designated vehicle.
Need to prove, when the employing mode for the moment, need to be in the bayonet socket front end relevant information (can for storing after the relevant information that receives the designated vehicle that sends from the bayonet socket service end) of pre-stored designated vehicle; When employing mode two, need to be in the relevant information of the pre-stored designated vehicle of bayonet socket service end.
Step 205, bayonet socket front end will be carried the vehicle image message transmissions of vehicle image to the bayonet socket service end.
For aforesaid way one, when the bayonet socket front end determines that information of vehicles is the information of designated vehicle, the bayonet socket front end is that the vehicle image message that carries vehicle image arranges high priority and (namely improves the priority of vehicle image message, compare with the message that does not carry out the priority adjustment, the priority of vehicle image message improves) so that the vehicle image message prior with high priority by Internet Transmission to the bayonet socket service end.
The priority of the vehicle image message after wherein, the priority of the information of vehicles message after raising is better than improving; The priority of the vehicle image message after perhaps, the priority of the information of vehicles message after raising equals to improve; The priority of the information of vehicles message after perhaps, the priority of the vehicle image message after raising is better than improving.Transmit by network than the message prior that does not carry out the message of priority adjustment or low priority is set as long as guarantee to have the vehicle image message of high priority and information of vehicles message in practical application.
Determining information of vehicles when the bayonet socket front end is not that while specifying the information of vehicle, the bayonet socket front end can arrange low priority for the vehicle image message of a carrying cart image, with the message prior that guarantees to have high priority by Internet Transmission to the bayonet socket service end.
Step 206, the bayonet socket service end receives the vehicle image message by the link information of reserving for vehicle image.
Wherein, because above-mentioned steps is reserved link information for the vehicle image message that carries vehicle image, therefore, can use the link information priority treatment of reservation to carry the vehicle image message of vehicle image, thereby guarantee that the bayonet socket front end in time is transferred to the bayonet socket service end with the vehicle image of designated vehicle (important image).
Step 207, the link information of reservation corresponding to vehicle image message is closed and discharged to the bayonet socket service end.
In sum, the bayonet socket front end is by separately being transferred to the bayonet socket service end with information of vehicles, vehicle image, and, for the message of information of vehicles arranges high priority, make the message prior of high priority transmit in network, can guarantee preferentially information of vehicles to be transferred to the bayonet socket service end.
After the bayonet socket service end receives information of vehicles, according to the designated identification in information of vehicles or information of vehicles, be preferably the bayonet socket front end that need to report important information (being the relevant information of designated vehicle) and reserve link resources/bandwidth, guarantee that the bayonet socket front end in time is transferred to the bayonet socket service end with important image (vehicle image of designated vehicle).
Embodiment two
The embodiment of the present invention two proposes a kind of data transmission method, be applied to comprise the bayonet socket management system of bayonet socket front end and bayonet socket service end, this embodiment determines for the bayonet socket front end whether information of vehicles is the information of designated vehicle, and as shown in Figure 3, the method comprises the following steps:
Step 301, bayonet socket front end capture through vehicle, generate information of vehicles, vehicle image.
Step 302, the bayonet socket front end adds information of vehicles in the information of vehicles message to, and for this information of vehicles message, high priority is set, and namely improves the priority of information of vehicles message.
Preferably, when the bayonet socket front end determines that according to the designated vehicle set of safeguarding in advance information of vehicles is the information of designated vehicle (as illegal vehicle, belong to the vehicle etc. of deploying to ensure effective monitoring and control of illegal activities), this bayonet socket front end carries designated identification (it is the information of designated vehicle that this designated identification is used for this information of vehicles of expression, and the vehicle image that information of vehicles is corresponding need to preferentially report) in the information of vehicles message.
The information of vehicles message prior that step 303, bayonet socket front end will have a high priority by Internet Transmission to the bayonet socket service end.
Step 304, the bayonet socket service end receives the information of vehicles message, resolve and find to carry designated identification in the information of vehicles message, the bayonet socket service end knows that information of vehicles is the information of designated vehicle, and is vehicle image reservation link information (the bayonet socket front end that is this information of vehicles is reserved link information) corresponding to information of vehicles.
Concrete, a link resources pond being provided in the bayonet socket service end, and for the bayonet socket front end of high priority, having reserved a part of resource pool, the bayonet socket front end of other priority is shared remaining link resources pond.Therefore, the bayonet socket service end can be the bayonet socket front end of information of vehicles and reserves link resources, namely from the link resources (as FTP connection, port or bandwidth) of reserving, distributes one to this bayonet socket front end.
Step 305, bayonet socket front end will be carried the vehicle image message transmissions of vehicle image to the bayonet socket service end.
Preferably, the bayonet socket front end can be the vehicle image message that carries vehicle image high priority is set so that the vehicle image message prior with high priority by Internet Transmission to the bayonet socket service end.And for the vehicle image of common vehicle (non-designated vehicle), the bayonet socket front end can be the vehicle image message that carries vehicle image low priority is set, thus guarantee other message priors with high priority by Internet Transmission to the bayonet socket service end.
Step 306, the bayonet socket service end receives the vehicle image message by the link information of reserving for vehicle image.Concrete, because the bayonet socket service end has been reserved link to the bayonet socket front end, so the bayonet socket service end can be preferentially by the vehicle image message that carry vehicle image of this reservation link reception from this bayonet socket front end.
Step 307, the link information of reservation corresponding to vehicle image message is closed and discharged to the bayonet socket service end.Wherein, after the bayonet socket front end was uploaded vehicle image and completed, the bayonet socket service end was with connection closed, and the connection resource of release busy.
Embodiment three
The embodiment of the present invention three proposes a kind of data transmission method, be applied to comprise the bayonet socket management system of bayonet socket front end and bayonet socket service end, this embodiment determines for the bayonet socket service end whether information of vehicles is the information of designated vehicle, and as shown in Figure 4, the method comprises the following steps:
Step 401, bayonet socket front end capture through vehicle, generate information of vehicles, vehicle image.
Step 402, the bayonet socket front end adds information of vehicles in the information of vehicles message to, and for this information of vehicles message, high priority is set, and namely improves the priority of information of vehicles message.
The information of vehicles message prior that step 403, bayonet socket front end will have a high priority by Internet Transmission to the bayonet socket service end.
Step 404, when the bayonet socket service end determines that information of vehicles is the information of designated vehicle, for vehicle image corresponding to information of vehicles reserved link information (the bayonet socket front end that is this information of vehicles is reserved link information).
Concrete, after receiving the information of vehicles message, if the designated vehicle set of safeguarding in advance according to self finds that the information of vehicles that carries in the information of vehicles message is the information of designated vehicle, the bayonet socket front end that is this information of vehicles is reserved link resources, namely from the link resources (as FTP connection, port or bandwidth) of reserving, distributes one to this bayonet socket front end.If find that the information of vehicles that carries in the information of vehicles message is not the information of specifying vehicle, distributes one to this bayonet socket front end from common link resources.
Step 405, bayonet socket front end will be carried the vehicle image message transmissions of vehicle image to the bayonet socket service end.
Step 406, the bayonet socket service end receives the vehicle image message by the link information of reserving for vehicle image.Concrete, because the bayonet socket service end has been reserved link to the bayonet socket front end, so the bayonet socket service end can be preferentially by the vehicle image message that carry vehicle image of this reservation link reception from this bayonet socket front end.
Step 407, the link information of reservation corresponding to vehicle image message is closed and discharged to the bayonet socket service end.Wherein, after the bayonet socket front end was uploaded vehicle image and completed, the bayonet socket service end was with connection closed, and the connection resource of release busy.
Embodiment four
As shown in Figure 5, based on the inventive concept same with said method, the embodiment of the present invention four proposes a kind of bayonet socket management system, comprise bayonet socket front end 51 and bayonet socket service end 52, the function of bayonet socket front end 51 and bayonet socket service end 52 is as described in the various embodiments described above, described bayonet socket front end capture through vehicle the time, generate information of vehicles and vehicle image; Wherein:
Described bayonet socket front end 51, be used for before information of vehicles message that described information of vehicles is carried in transmission is to described bayonet socket service end 52, improve the priority of described information of vehicles message, so that described information of vehicles message prior is given described bayonet socket service end 52 by Internet Transmission; And transmission is carried the vehicle image message of described vehicle image to described bayonet socket service end 52;
Described bayonet socket service end 52, be used for after receiving described information of vehicles message, if described information of vehicles is the information of designated vehicle, for described vehicle image is reserved link information; And according to described reservation link information, receive described vehicle image message.
Below in conjunction with specific embodiment, bayonet socket front end 51 and bayonet socket service end 52 are further elaborated.
Embodiment five
As shown in Figure 6, based on the inventive concept same with said method, the embodiment of the present invention five has also proposed a kind of bayonet socket front end, is applied to comprise the bayonet socket management system of described bayonet socket front end and bayonet socket service end, described bayonet socket front end capture through vehicle the time, generate information of vehicles and vehicle image; This bayonet socket front end comprises:
Information of vehicles message processing module (MPM) 61, be used for before information of vehicles message that described information of vehicles is carried in transmission is to described bayonet socket service end, improve the priority of described information of vehicles message, so that described information of vehicles message prior is given described bayonet socket service end by Internet Transmission;
Information of vehicles message sending module 62, be used for sending and carry the information of vehicles message of described information of vehicles to described bayonet socket service end;
Vehicle image message sending module 63, be used for sending and carry the vehicle image message of described vehicle image to described bayonet socket service end.
Described information of vehicles message processing module (MPM) 61, also be used for after the designated vehicle set according to safeguarding in advance determines that described information of vehicles is the information of designated vehicle, add designated identification in described information of vehicles message, described designated identification is used to indicate the information that described information of vehicles is designated vehicle.
This bayonet socket front end also comprises:
Vehicle image message processing module (MPM) 64, be used for when definite described information of vehicles is the information of designated vehicle, transmission is carried the vehicle image message of described vehicle image to before described bayonet socket service end, improve the priority of described vehicle image message, so that described vehicle image message prior is given described bayonet socket service end by Internet Transmission.
The priority of the described vehicle image message after wherein, the priority of the described information of vehicles message after raising is better than improving; Perhaps,
The priority of the described vehicle image message after the priority of the described information of vehicles message after raising equals to improve; Perhaps,
The priority of the described information of vehicles message after the priority of the described vehicle image message after raising is better than improving.
Embodiment six
As shown in Figure 7, based on the inventive concept same with said method, the embodiment of the present invention six has also proposed a kind of bayonet socket service end, be applied to comprise the bayonet socket management system of bayonet socket front end and described bayonet socket service end, described bayonet socket front end capture through vehicle the time, generate information of vehicles and vehicle image; This bayonet socket service end comprises:
Information of vehicles message receiver module 71, be used for receiving the information of vehicles message with high priority that carries described information of vehicles;
Link information reservation process module 72, be used for when described information of vehicles is the information of designated vehicle, for described vehicle image is reserved link information;
Vehicle image message receiver module 73, be used for receiving according to the link information of reserving for described vehicle image the described vehicle image message that carries described vehicle image.
Described link information reservation process module 72, concrete being used for determines that described information of vehicles is the information of designated vehicle when the described information of vehicles message of acquisition carries designated identification; Wherein, described designated identification is after described bayonet socket front end determines that according to the designated vehicle set of safeguarding in advance described information of vehicles is the information of designated vehicle, to add in described information of vehicles message; Perhaps,
The designated vehicle set of safeguarding in advance according to self determines that described information of vehicles is the information of designated vehicle.
Described vehicle image message receiver module 73, concrete for receiving the vehicle image message with high priority that carries described vehicle image.
Described link information reservation process module 72, also be used for closing and discharging reservation link information corresponding to described vehicle image message.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into a plurality of submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number, just to describing, does not represent the quality of embodiment.
Above disclosed be only several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.