Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment is the present invention
A part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
Currently, still using the mode of manual intervention, this mode is very big in the number crossing to motor-car vehicle-mounted data
The efficiency of transmission for affecting data also will affect the stability of traffic control and data management at the same time.
In view of the above-mentioned problems, Fig. 1 is that data are automatic between a kind of wlan network EMU car ground provided in an embodiment of the present invention
Communication means flow diagram, as shown in Figure 1, comprising:
101, when receiving the registration information packet that the mobile unit having connected in wlan network is sent, the registration is parsed
The registration information of mobile unit in packet, if the registration information of the mobile unit belongs to this category vehicle, generation is succeeded in registration
Response bag includes FTP information in the response bag that succeeds in registration;
102, the response bag that succeeds in registration is sent to the mobile unit, so that the mobile unit is according to the note
FTP information in volume successful respond packet connects FTP service;
103, the file destination that the mobile unit is sent by the FTP service is received.
It should be noted that the executing subject of the embodiment of the present invention is GCS Ground Communication System, or arbitrarily can be realized
The entity or virtual unit of above-mentioned communication function.
It is understood that providing method of the embodiment of the present invention be directed to EMU and inspection and repair shop GCS Ground Communication System it
Between data transmission, then communication object is between mobile unit and GCS Ground Communication System.Preferably, the embodiment of the present invention is logical
It crosses wlan network to be connected into mobile unit, so that the communication interconnection of mobile unit and GCS Ground Communication System is realized, so as to enough
According to automatic transmission.
Further, since application environment is in wlan network, so mobile unit is equal in all embodiments of the invention
Refer to onboard wireless transmission device.
Specifically, in a step 101, it is to be understood that the object of communication of the embodiment of the present invention can be any one
Or multiple mobile units for being connected into wlan network.Wherein, wlan network is general to be pre-set WALN in inspection and repair shop
Network.The registration information packet is the data packet comprising communication related registration information that mobile unit is sent.So, pass through parsing
The registration information packet can know the registration relevant information for sending the mobile unit of the registration information packet, and judge the mobile unit
Registration relevant information whether belong to this category vehicle.This category vehicle, which refers to, belongs to all motor-cars of local inspection and repair shop, corresponding, does not belong to
Outer category vehicle can be marked as in the motor-car of local inspection and repair shop.When judging mobile unit is to belong to this category vehicle, then accordingly
Just need to establish communication connection by WLAN, and generate the response bag that succeeds in registration and reply to mobile unit.Preferably,
The embodiment of the present invention uses traditional File Transfer Protocol FTP to carry out data transmission.
Further, in a step 102, after the response bag that will succeed in registration is sent to mobile unit, mobile unit can
FTP service is connected according to the FTP information in the response bag that succeeds in registration, it is to be understood that FTP is substantially a client computer
Or server system, then GCS Ground Communication System, which needs to provide corresponding FTP information, could inform the mobile unit being connected into such as
What accesses determining FTP, and by parsing the FTP information carried in the response bag that succeeds in registration, mobile unit can be connected and be used
FTP service.
Finally, in step 103, mobile unit can realize the transmission of file destination by FTP service.It is understood that
It is that file destination provided by the embodiment of the present invention refers to one or more file required for GCS Ground Communication System, the target
File can inform mobile unit by GCS Ground Communication System, can also by mobile unit according to certain ordering rule, such as: hot spot feelings
Sequence partial document before examination is sent to GCS Ground Communication System by condition, new and old sequence, the method for determination of specific file destination and
The quantity embodiment of the present invention is not specifically limited herein.
Data automated communications method between wlan network EMU car provided in an embodiment of the present invention ground, when EMU enters inspection
It repairs in institute's wlan network coverage area, onboard wireless transmission device automatically accesses specified SSID, and carries out vehicle-mounted data and pass automatically
Ground-based server is transported to, vehicle-mounted data communications security, timeliness, Stability and veracity is enhanced, reduces human cost,
It improves work efficiency.
On the basis of the above embodiments, in the registration for receiving the mobile unit having connected in wlan network and sending
Before packet, the method also includes:
Send udp broadcast message to the mobile unit, include at least in the udp broadcast message server ip address with
And TCP port information, so that the mobile unit parses the server ip address and TCP port in the udp broadcast message
Information generates registration information packet.
By the content of above-described embodiment it is found that in registration information packet of the embodiment of the present invention by parsing mobile unit transmission
Mobile unit registration information come be confirmed whether can and the mobile unit establish communication connection.Further, the present invention is implemented
The generating process of registration information packet provided by example is triggered from GCS Ground Communication System to the mode that mobile unit sends UDP message
's.
It is understood that UDP message is a kind of connectionless transport layer protocol, can provide towards things it is simple not
Reliable information transfer service, then enabling to each to be connected into the vehicle of WLAN by sending udp broadcast message to mobile unit
The transmission information can be received by carrying equipment, and make corresponding response, i.e. offer registration information packet.
Specifically, ground communication Transmission system provided in an embodiment of the present invention uses udp broadcast mode, periodically to WLAN net
The onboard wireless transmission device fixed port having connected in network sends broadcast, and announcement server IP address, TCP PORT COM etc.
Information.After mobile unit receives the udp broadcast message, it can be communicated according to server ip address, the TCP in message information
Port information sends registration information packet corresponding to each mobile unit.
On the basis of the above embodiments, in the mesh for receiving the mobile unit and being sent by the FTP service
After marking file, the method also includes:
The file end of transmission confirmation packet that the mobile unit is sent is received, the file end of transmission confirmation packet is used for
Confirm the file destination whether end of transmission;
File end of transmission confirmation packet is parsed, if file destination end of transmission, carries out corresponding log
Record and file process.
By the content of above-described embodiment it is found that GCS Ground Communication System provided in an embodiment of the present invention can with mobile unit it
Between establish automated communications connection, and download file destination required for GCS Ground Communication System.
It is understood that mobile unit may have loss of data or data delay etc. during sending data
Special status just can guarantee that GCS Ground Communication System can completely receive target text then needing to carry out to confirm accordingly
Part.And even if data transmission is normal, it is also desirable to which corresponding file management and processing could provide perfect logistics.
Preferably, the embodiment of the present invention can be led to the ground after mobile unit sends file destination by mobile unit
Letter system sends a file end of transmission confirmation packet, and GCS Ground Communication System is by resolution file end of transmission packet, if target is literary
Part has not passed also, then informs that mobile unit continues to resume, if file destination has passed, carries out corresponding log recording and text
Part processing.Log recording can be the transmission duration of record file destination, transmission time, file size, average transmission speed etc.
Information.File process can be the processing such as to be achieved, backed up to file.
On the basis of the above embodiments, when the registration information for receiving the mobile unit transmission having connected in wlan network
Bao Shi parses the registration information of mobile unit in the registration information packet, if the registration information of the mobile unit is not belonging to this
Belong to vehicle, then generates registration reject response bag;
The registration reject response bag is sent to the mobile unit, so that the mobile unit is refused according to the registration
Exhausted response bag disconnects communication connection.
By the content of above-described embodiment it is found that the embodiment of the present invention can parse in the registration information packet of mobile unit transmission
Registration information, if vehicle where mobile unit is the case where belonging to this category vehicle, then replying the response bag that succeeds in registration.
Likewise, the case where embodiment of the present invention is not belonging to this category vehicle for vehicle where mobile unit, can also set to vehicle-mounted
It is standby to respond response, that is, send registration reject response bag.So, after mobile unit receives registration reject response bag, i.e.,
Communication connection is disconnected, the communication resource is saved.
On the basis of the above embodiments, in the mesh for receiving the mobile unit and being sent by the FTP service
Before marking file, the method also includes:
The listed files packet that the mobile unit is sent is received, includes the newest of preset quantity in the listed files packet
Data;
The listed files packet, and the data filtering that will have been transmitted in the listed files packet are parsed, only includes to generate
The file destination does not transmit listed files response bag;
The listed files response bag of not transmitting is sent to the mobile unit, is needed so that the mobile unit confirms
The file destination sent.
By the content of above-described embodiment it is found that the automated communications method that the embodiment of the present invention is established, GCS Ground Communication System energy
Enough receive the file destination from mobile unit.Further, preferred for the determination embodiment of the present invention of file destination
By the way of a kind of GCS Ground Communication System informing.
Specifically, after response bag is replied in the registration that mobile unit receives GCS Ground Communication System, it is to be understood that
This, which is registered and replys response bag, to be the response bag that succeeds in registration, it is also possible to be registration reject response bag, when being registration reject response
Bao Shi, due to will disconnect communication connection, then the transmission of file destination is then unnecessarily carried out, so the situation of the embodiment of the present invention
Just in succeed in registration response bag the case where.
So, after mobile unit, which receives, succeeds in registration response bag, communication system a file column can be sent to the ground
Table packet contains the latest data of preset quantity in this document list packet.It should be noted that latest data refers to acquisition duration
Data in preset time range, preset quantity can be configured according to the actual situation, and the embodiment of the present invention does not make this to have
Body limits.After GCS Ground Communication System receives listed files packet, resolution file list packet filters out GCS Ground Communication System and has transmitted
File after, to onboard wireless transmission device transmission do not transmit listed files response bag, it is to be understood that the file transmitted
GCS Ground Communication System no longer needs, therefore rather than file destination, then the file for including in not transmitting listed files response bag
That is file destination needed for GCS Ground Communication System.
Further, after mobile unit, which receives, does not transmit listed files response bag, parsing is not transmitted listed files and is answered
Packet is answered, likewise, connecting upper FTP service according to FTP information, and communication system sends file destination to the ground by FTP service.
Fig. 2 is data automated communications method flow between another wlan network EMU car ground provided in an embodiment of the present invention
Schematic diagram, as shown in Figure 2, comprising:
201, communication system sends registration information packet to the ground, so that the GCS Ground Communication System parses the registration information
The registration information of mobile unit in packet;
If 202, receiving the response bag that succeeds in registration that the GCS Ground Communication System is sent, succeeds in registration and answer according to
Answer the FTP information connection FTP service in packet;
203, file destination is sent to the GCS Ground Communication System by the FTP service.
It should be noted that the executing subject of the embodiment of the present invention is mobile unit, or arbitrarily can be realized above-mentioned
The entity or virtual unit of communication function.
It is understood that providing method of the embodiment of the present invention be directed to EMU and inspection and repair shop GCS Ground Communication System it
Between data transmission, then communication object is between mobile unit and GCS Ground Communication System.Preferably, the embodiment of the present invention is logical
It crosses wlan network to be connected into mobile unit, so that the communication interconnection of mobile unit and GCS Ground Communication System is realized, so as to enough
According to automatic transmission.
Further, since application environment is in wlan network, so mobile unit is equal in all embodiments of the invention
Refer to onboard wireless transmission device.
Specifically, in step 201, it is to be understood that for the mobile unit that any one is communicated,
Network can be accessed to verify whether to qualify in such a way that communication system to the ground sends registration information packet.So, lead to
The registration relevant information for parsing the mobile unit that the registration information packet can know the transmission registration information packet is crossed, and judges the vehicle
Whether the registration relevant information for carrying equipment belongs to this category vehicle.
Further, in step 202, if GCS Ground Communication System is after the inspection to registration relevant information, discovery hair
It send the mobile unit of registration information packet to belong to this category vehicle, the response bag that succeeds in registration can be generated, and this is succeeded in registration
Response bag is sent to this mobile unit, enables mobile unit corresponding according to the FTP information access in the response bag that succeeds in registration
FTP service in.
Finally, in step 203, by FTP service, communication system sends GCS Ground Communication System institute to mobile unit to the ground
The file destination needed.
Complete procedure executes automatically, realizes vehicle-mounted data and is transmitted automatically by wlan network.
On the basis of the above embodiments, before the communication system to the ground sends registration information packet, the method
Further include:
Receive the udp broadcast message of GCS Ground Communication System transmission;
The server ip address and TCP port information in the udp broadcast message are parsed, registration information packet is generated.
It is described file destination is sent to the GCS Ground Communication System by the FTP service after, the method is also
Include:
After the file destination is sent, file end of transmission confirmation packet is sent to the GCS Ground Communication System, with
The file end of transmission confirmation packet is parsed for the GCS Ground Communication System.
The method also includes:
If the registration reject response bag that the GCS Ground Communication System is sent is received, according to the registration reject response bag
Disconnect communication connection.
It is described file destination is sent to the GCS Ground Communication System by the FTP service before, the method is also
Include:
Listed files packet is sent to the GCS Ground Communication System, includes the newest number of preset quantity in the listed files packet
According to so that the GCS Ground Communication System parses the listed files packet, generation does not only transmit file comprising the file destination
List response bag;
It receives the described of GCS Ground Communication System transmission and does not transmit listed files response bag, and confirm what needs were sent
The file destination.
Fig. 3 is data automated communications method the whole series work between a kind of wlan network EMU car ground provided in an embodiment of the present invention
Make flow diagram, as shown in figure 3, and combine above process embodiment content, a whole set of workflow can be divided into S1-S7:
S1: ground communication Transmission system uses udp broadcast mode, and the onboard wireless periodically having connected into wlan network passes
Transfer device fixed port sends broadcast, includes the information such as server ip address, TCP PORT COM in broadcasted content.
S2: after onboard wireless transmission device receives ground communications Transmission system udp broadcast message, parsing broadcasting packet,
According to server ip address, TCP PORT COM in broadcasting packet, communication transmission system sends registration information packet to the ground.
S3: after ground communications Transmission system receives the registration information of onboard wireless transmission device, registration information is parsed, such as
Vehicle where fruit onboard wireless transmission device belongs to this category vehicle, replys the response bag that succeeds in registration, registration to onboard wireless transmission device
Successful respond packet includes FTP information;If vehicle where onboard wireless transmission device is not belonging to this category vehicle, onboard wireless transmission is set
It is standby to reply registration reject response bag.
S4.1: onboard wireless transmission device receives registration and replys response bag, and response bag, response bag note are replied in parsing registration
When volume success, communication transmission system sends listed files packet to the ground, and the latest data of preset quantity is only included in listed files.
S4.2: onboard wireless transmission device receives registration and replys response bag, and response bag, response bag note are replied in parsing registration
When volume refusal, terminate communication connection.
S5: after ground communications Transmission system receives listed files packet, resolution file list packet filters out system and has transmitted
File after, to onboard wireless transmission device transmission do not transmit listed files response bag.
S6: onboard wireless transmission device receives do not transmit listed files response bag after, parsing is not transmitted listed files and is answered
Packet is answered, upper FTP service is connected according to the response message that succeeds in registration, and communication transmission system sends target text to the ground by FTP
Part.
S7: after onboard wireless transmission device is sent, communication transmission system has sent file end of transmission to the ground
Confirmation packet.
Wherein: ground communications Transmission system described in Fig. 3, that is, GCS Ground Communication System provided in an embodiment of the present invention, it is vehicle-mounted
Radio transmission apparatus, that is, mobile unit provided in an embodiment of the present invention.It is understood that after step s 7, the present invention is implemented
Example further include S8 (being not shown in Fig. 3): ground communications Transmission system receive transmission file finish confirmation packet after, resolution file pass
Complete packet is finished, carries out log recording and file process.
It should be noted that mode provided in an embodiment of the present invention is circulation implementation procedure, i.e., S1-S8 mistake is executed repeatedly
Journey, until all file destinations of mobile unit are all successfully sent to the GCS Ground Communication System.
Fig. 4 is a kind of GCS Ground Communication System structure chart provided in an embodiment of the present invention, as shown in figure 4, the ground communication
System includes: registration module 401, successful respond module 402 and file reception module 403, in which:
Registration module 401 is used for when receiving the registration information packet that the mobile unit having connected in wlan network is sent,
The registration information of mobile unit in the registration information packet is parsed, if the registration information of the mobile unit belongs to this category vehicle,
Generation is succeeded in registration response bag, includes FTP information in the response bag that succeeds in registration;
Successful respond module 402 is used to the response bag that succeeds in registration being sent to the mobile unit, for the vehicle
It carries the FTP information that equipment is succeeded in registration according in response bag and connects FTP service;
File reception module 403 is for receiving the file destination that the mobile unit is sent by the FTP service.
Specific registration module 401, successful respond module 402 and the file reception module 403 of how passing through is to WLAN net
Data automated communications can be used for executing data automated communications between wlan network EMU car shown in FIG. 1 ground between network EMU car ground
The technical solution of embodiment of the method, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
GCS Ground Communication System provided in an embodiment of the present invention, when EMU enters in inspection and repair shop wlan network coverage area,
Onboard wireless transmission device automatically accesses specified SSID, and carries out vehicle-mounted data and be transmitted to ground-based server automatically, enhances vehicle
Data communications security, timeliness, Stability and veracity are carried, human cost is reduced, improves work efficiency.
The embodiment of the present invention provides a kind of GCS Ground Communication System, comprising: at least one processor;And with the processor
At least one processor of communication connection, in which:
Fig. 5 is the structural block diagram of GCS Ground Communication System provided in an embodiment of the present invention, referring to Fig. 5, the ground communication system
System, comprising: processor (processor) 510,520, memory communication interface (Communications Interface)
(memory) 530 and bus 540, wherein processor 510, communication interface 520, memory 530 are completed mutually by bus 540
Between communication.Processor 510 can call the logical order in memory 530, to execute following method: when receiving WLAN net
When the registration information packet that the mobile unit having connected in network is sent, the registration letter of mobile unit in the registration information packet is parsed
Breath generates the response bag that succeeds in registration, the response bag that succeeds in registration if the registration information of the mobile unit belongs to this category vehicle
In include FTP information;The response bag that succeeds in registration is sent to the mobile unit, so that the mobile unit is according to
FTP information in the response bag that succeeds in registration connects FTP service;Receive what the mobile unit was sent by the FTP service
File destination.
The embodiment of the present invention discloses a kind of computer program product, and the computer program product is non-transient including being stored in
Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt
When computer executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, when receiving WLAN
When the registration information packet that the mobile unit having connected in network is sent, the registration letter of mobile unit in the registration information packet is parsed
Breath generates the response bag that succeeds in registration, the response bag that succeeds in registration if the registration information of the mobile unit belongs to this category vehicle
In include FTP information;The response bag that succeeds in registration is sent to the mobile unit, so that the mobile unit is according to
FTP information in the response bag that succeeds in registration connects FTP service;Receive what the mobile unit was sent by the FTP service
File destination.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage
Medium storing computer instruction, the computer instruction make the computer execute side provided by above-mentioned each method embodiment
Method, for example, when receiving the registration information packet that the mobile unit having connected in wlan network is sent, parse the registration
The registration information of mobile unit in packet, if the registration information of the mobile unit belongs to this category vehicle, generation is succeeded in registration
Response bag includes FTP information in the response bag that succeeds in registration;The response bag that succeeds in registration is sent to described vehicle-mounted set
It is standby, so that the mobile unit FTP information in response bag that succeeds in registration according to connects FTP service;Receive the vehicle
Carry the file destination that equipment is sent by the FTP service.
Fig. 6 is a kind of mobile unit structure chart provided in an embodiment of the present invention, as shown in fig. 6, the mobile unit includes:
Registration information sending module 601, FTP link block 602 and file sending module 603, in which:
Registration information sending module 601 sends registration information packet for communication system to the ground, for the ground communication
The registration information of mobile unit in registration information packet described in system analysis;
If FTP link block 602 is used to receive the response bag that succeeds in registration that the GCS Ground Communication System is sent, basis
FTP information in the response bag that succeeds in registration connects FTP service;
File sending module 603 is used to file destination being sent to the GCS Ground Communication System by the FTP service.
It is specific how right by registration information sending module 601, FTP link block 602 and file sending module 603
Between wlan network EMU car ground data automated communications can be used for executing between wlan network EMU car shown in Fig. 2 ground data from
The technical solution of dynamic communication means embodiment, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
Mobile unit provided in an embodiment of the present invention, it is vehicle-mounted when EMU enters in inspection and repair shop wlan network coverage area
Radio transmission apparatus automatically accesses specified SSID, and carries out vehicle-mounted data and be transmitted to ground-based server automatically, enhances Vehicular data
According to communications security, timeliness, Stability and veracity, human cost is reduced, is improved work efficiency.
The embodiment of the present invention provides a kind of mobile unit, comprising: at least one processor;And with the processor communication
At least one processor of connection, in which:
Fig. 7 is the structural block diagram of mobile unit provided in an embodiment of the present invention, referring to Fig. 7, the mobile unit, comprising:
Processor (processor) 710, communication interface (Communications Interface) 720, memory (memory) 730
With bus 740, wherein processor 710, communication interface 720, memory 730 complete mutual communication by bus 740.Place
Reason device 710 can call the logical order in memory 730, to execute following method: communication system sends registration letter to the ground
Breath packet, so that the GCS Ground Communication System parses the registration information of mobile unit in the registration information packet;If receiving described
The response bag that succeeds in registration that GCS Ground Communication System is sent, then the FTP information connection FTP in the response bag that succeeds in registration according to take
Business;File destination is sent to the GCS Ground Communication System by the FTP service.
The embodiment of the present invention discloses a kind of computer program product, and the computer program product is non-transient including being stored in
Computer program on computer readable storage medium, the computer program include program instruction, when described program instructs quilt
When computer executes, computer is able to carry out method provided by above-mentioned each method embodiment, for example, communication system to the ground
System sends registration information packet, so that the GCS Ground Communication System parses the registration information of mobile unit in the registration information packet;
If receiving the response bag that succeeds in registration that the GCS Ground Communication System is sent, the FTP in the response bag that succeeds in registration according to
Information connects FTP service;File destination is sent to the GCS Ground Communication System by the FTP service.
The embodiment of the present invention provides a kind of non-transient computer readable storage medium, the non-transient computer readable storage
Medium storing computer instruction, the computer instruction make the computer execute side provided by above-mentioned each method embodiment
Method, for example, communication system sends registration information packet to the ground, so that the GCS Ground Communication System parses the registration information
The registration information of mobile unit in packet;If the response bag that succeeds in registration that the GCS Ground Communication System is sent is received, according to institute
State the FTP information connection FTP service in the response bag that succeeds in registration;File destination is sent to describedly by the FTP service
Face communication system.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.