Summary of the invention
The invention provides a kind of data transmission method, system and equipment,, guarantee user's regular traffic with timely transmission important information of vehicles and vehicle image.
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, when described bayonet socket front end captures the vehicle of process, generate information of vehicles and vehicle image; This method may further comprise the 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 described information of vehicles priority of messages, so that described information of vehicles message is preferentially given described bayonet socket service end by Network 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 receives described vehicle image message by described bayonet socket service end according to described reservation link information to described bayonet socket service end.
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 to carry designated identification in the described information of vehicles message, 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 the 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 also comprises to described bayonet socket service end 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 described vehicle image priority of messages, so that described vehicle image message is preferentially given described bayonet socket service end by Network Transmission.
Described vehicle image priority of messages after described information of vehicles priority of messages after the raising is better than improving; Perhaps,
Described vehicle image priority of messages after described information of vehicles priority of messages after the raising equals to improve; Perhaps,
Described information of vehicles priority of messages after described vehicle image priority of messages after the raising is better than improving.
Described bayonet socket service end receives described vehicle image message according to described reservation link information, also comprises afterwards:
The reservation link information of described vehicle image message correspondence is closed and discharged to described bayonet socket service end.
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, when described bayonet socket front end captures the vehicle of process, 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 described information of vehicles priority of messages, so that described information of vehicles message is preferentially given described bayonet socket service end by Network Transmission;
Information of vehicles message sending module, be used to send carry described information of vehicles the information of vehicles message to described bayonet socket service end;
Vehicle image message sending module, be used to send carry described vehicle image the vehicle image message to described bayonet socket service end.
Described information of vehicles message processing module (MPM), also be used for after determining that according to the designated vehicle set of safeguarding in advance described information of vehicles is the information of designated vehicle, add designated identification in described information of vehicles message, it is the information of designated vehicle that described designated identification is used to indicate described information of vehicles.
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 the described bayonet socket service end, improve described vehicle image priority of messages, so that described vehicle image message is preferentially given described bayonet socket service end by Network Transmission.
Described vehicle image priority of messages after described information of vehicles priority of messages after the raising is better than improving; Perhaps,
Described vehicle image priority of messages after described information of vehicles priority of messages after the raising equals to improve; Perhaps,
Described information of vehicles priority of messages after described vehicle image priority of messages after the 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, when described bayonet socket front end captures the vehicle of process, generate information of vehicles and vehicle image; This bayonet socket service end comprises:
Information of vehicles message receiver module is used to receive the information of vehicles message with high priority that carries described information of vehicles;
Link information reservation process module is 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 is used for receiving the described vehicle image message that carries described vehicle image according to the link information of reserving for described vehicle image.
Described link information reservation process module specifically is used for determining 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 the 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 specifically is used to receive the vehicle image message with high priority that carries described vehicle image.
Described link information reservation process module also is used to close and discharge the reservation link information of described vehicle image message correspondence.
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 of high priority preferentially in network, transmit, 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 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 invention is described in detail.
Embodiment one
The embodiment of the 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 the bayonet socket service end, and as shown in Figure 2, this method may further comprise the steps:
Step 201 when the bayonet socket front end captures the vehicle of process, generates 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 high priority is set for this information of vehicles message, promptly improve information of vehicles priority of messages (compare with the message that does not carry out the priority adjustment, the information of vehicles priority of messages improves).
Step 203, bayonet socket front end will have the information of vehicles message of high priority and preferentially give the bayonet socket service end by Network Transmission.Wherein, in the network transmission process of information of vehicles message,, then guarantee, can give the bayonet socket service end information of vehicles message prioritised transmission based on QoS (Quality of Service, service quality) because this information of vehicles message has high priority.
Step 204, after the bayonet socket service end received the information of vehicles message, if information of vehicles is the information of designated vehicle, then this bayonet socket service end was that vehicle image is reserved link information.As the bayonet socket service end is that vehicle image is reserved FTP (File Transfer Protocol, file transfer protocol (FTP)) connection resource, port or bandwidth etc.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 (this designated identification is used to represent that this information of vehicles is the information of designated vehicle, the vehicle image of information of vehicles correspondence need 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, then 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 in the bayonet socket front end, store the relevant information (can for storing after the relevant information that receives the designated vehicle that sends from the bayonet socket service end) of designated vehicle in advance; When employing mode two, need store the relevant information of designated vehicle in advance in the bayonet socket service end.
Step 205, bayonet socket front end will be carried the vehicle image message transmissions of vehicle image and be given the bayonet socket service end.
At aforesaid way one, when the bayonet socket front end determines that information of vehicles is the information of designated vehicle, then the bayonet socket front end is that the vehicle image message that carries vehicle image is provided with high priority and (promptly improves the vehicle image priority of messages, compare with the message that does not carry out the priority adjustment, the vehicle image priority of messages improves) preferentially give the bayonet socket service end so that have the vehicle image message of high priority by Network Transmission.
Wherein, the vehicle image priority of messages after the information of vehicles priority of messages after the raising is better than improving; Perhaps, the vehicle image priority of messages after the information of vehicles priority of messages after the raising equals to improve; Perhaps, the information of vehicles priority of messages after the vehicle image priority of messages after the raising is better than improving.Preferentially transmit than the message 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 the practical application by network.
Determining information of vehicles when the bayonet socket front end is not that then the bayonet socket front end can be provided with low priority for the vehicle image message that carries vehicle image when specifying the information of vehicle, preferentially gives the bayonet socket service end by Network Transmission to guarantee the message with high priority.
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 (important images) of designated vehicle.
The link information of the reservation of vehicle image message correspondence is closed and discharged to step 207, 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, make the message of high priority preferentially in network, transmit for the message of information of vehicles is provided with high priority, 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 designated identification in the information of vehicles or information of vehicles, be preferably the bayonet socket front end that need 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 images (vehicle image of designated vehicle).
Embodiment two
The embodiment of the 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 at the bayonet socket front end whether information of vehicles is the information of designated vehicle, and as shown in Figure 3, this method may further comprise the steps:
Step 301, the bayonet socket front end captures the vehicle of process, generates 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 promptly improves the information of vehicles priority of messages.
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 (this designated identification is used to represent that this information of vehicles is the information of designated vehicle, and the vehicle image of information of vehicles correspondence need preferentially report) in the information of vehicles message.
Step 303, bayonet socket front end will have the information of vehicles message of high priority and preferentially give the bayonet socket service end by Network Transmission.
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, then the bayonet socket service end knows that information of vehicles is the information of designated vehicle, and is the vehicle image reservation link information (the bayonet socket front end that is this information of vehicles is reserved link information) of information of vehicles correspondence.
Concrete, a link resources pond being provided in the bayonet socket service end, and having reserved a part of resource pool for the bayonet socket front end of high priority, 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, promptly distributes one to give this bayonet socket front end from the link resources of reserving (as FTP connection, port or bandwidth).
Step 305, bayonet socket front end will be carried the vehicle image message transmissions of vehicle image and be given 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, and preferentially gives the bayonet socket service end by Network Transmission so that have the vehicle image message of high priority.And at 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, thereby guarantees that other messages with high priority preferentially give the bayonet socket service end by Network Transmission.
Step 306, the bayonet socket service end receives the vehicle image message by the link information of reserving for vehicle image.Concrete, give the bayonet socket front end because the bayonet socket service end has been reserved link, so the bayonet socket service end can preferentially link the vehicle image message that carries vehicle image that receives from this bayonet socket front end by this reservation.
The link information of the reservation of vehicle image message correspondence is closed and discharged to step 307, bayonet socket service end.Wherein, after the bayonet socket front end was uploaded vehicle image and finished, the bayonet socket service end was with connection closed, and the connection resource of release busy.
Embodiment three
The embodiment of the 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 at the bayonet socket service end whether information of vehicles is the information of designated vehicle, and as shown in Figure 4, this method may further comprise the steps:
Step 401, the bayonet socket front end captures the vehicle of process, generates 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 promptly improves the information of vehicles priority of messages.
Step 403, bayonet socket front end will have the information of vehicles message of high priority and preferentially give the bayonet socket service end by Network Transmission.
Step 404 is when the bayonet socket service end determines that information of vehicles is the information of designated vehicle, for the vehicle image of information of vehicles correspondence is 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 of safeguarding in advance according to self set 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 then is this information of vehicles is reserved link resources, promptly distributes one to give this bayonet socket front end from the link resources of reserving (as FTP connection, port or bandwidth).If finding the information of vehicles that carries in the information of vehicles message is not the information of specifying vehicle, then distribute one to give 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 and be given 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, give the bayonet socket front end because the bayonet socket service end has been reserved link, so the bayonet socket service end can preferentially link the vehicle image message that carries vehicle image that receives from this bayonet socket front end by this reservation.
The link information of the reservation of vehicle image message correspondence is closed and discharged to step 407, bayonet socket service end.Wherein, after the bayonet socket front end was uploaded vehicle image and finished, 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 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, when described bayonet socket front end captures the vehicle of process, 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 described information of vehicles priority of messages, so that described information of vehicles message is preferentially given described bayonet socket service end 52 by Network 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 is 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 receive described vehicle image message according to described reservation link information.
Below in conjunction with specific embodiment bayonet socket front end 51 and bayonet socket service end 52 are further set forth.
Embodiment five
As shown in Figure 6, based on the inventive concept same with said method, the embodiment of the 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, when described bayonet socket front end captures the vehicle of process, 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 described information of vehicles priority of messages, so that described information of vehicles message is preferentially given described bayonet socket service end by Network Transmission;
Information of vehicles message sending module 62, be used to send carry described information of vehicles the information of vehicles message to described bayonet socket service end;
Vehicle image message sending module 63, be used to send carry described vehicle image the vehicle image message to described bayonet socket service end.
Described information of vehicles message processing module (MPM) 61, also be used for after determining that according to the designated vehicle set of safeguarding in advance described information of vehicles is the information of designated vehicle, add designated identification in described information of vehicles message, it is the information of designated vehicle that described designated identification is used to indicate described information of vehicles.
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 the described bayonet socket service end, improve described vehicle image priority of messages, so that described vehicle image message is preferentially given described bayonet socket service end by Network Transmission.
Wherein, the described vehicle image priority of messages after the described information of vehicles priority of messages after the raising is better than improving; Perhaps,
Described vehicle image priority of messages after described information of vehicles priority of messages after the raising equals to improve; Perhaps,
Described information of vehicles priority of messages after described vehicle image priority of messages after the 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 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, when described bayonet socket front end captures the vehicle of process, generate information of vehicles and vehicle image; This bayonet socket service end comprises:
Information of vehicles message receiver module 71 is used to receive the information of vehicles message with high priority that carries described information of vehicles;
Link information reservation process module 72 is 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 is used for receiving the described vehicle image message that carries described vehicle image according to the link information of reserving for described vehicle image.
Described link information reservation process module 72 specifically is used for determining 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 the 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 specifically is used to receive the vehicle image message with high priority that carries described vehicle image.
Described link information reservation process module 72 also is used to close and discharge the reservation link information of described vehicle image message correspondence.
Wherein, each module 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, module in the 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 among the 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 present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.