CN105306693B - A kind of mobile terminal and the method and system of train movement recording equipment information exchange - Google Patents
A kind of mobile terminal and the method and system of train movement recording equipment information exchange Download PDFInfo
- Publication number
- CN105306693B CN105306693B CN201510631417.2A CN201510631417A CN105306693B CN 105306693 B CN105306693 B CN 105306693B CN 201510631417 A CN201510631417 A CN 201510631417A CN 105306693 B CN105306693 B CN 105306693B
- Authority
- CN
- China
- Prior art keywords
- recording equipment
- mobile terminal
- train movement
- movement recording
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A kind of mobile terminal provided by the present invention and the method and system of train movement recording equipment information exchange, the method specifically include:One communications protocol between mobile terminal and train movement recording equipment is set in advance, establishes asynchronous socket communications;The mobile terminal sends the information exchange command request of a preset format by the first designated port to the train movement recording equipment;The train movement recording equipment receives the command request, transmits corresponding driving recording data to the mobile terminal by the second designated port and is shown in the mobile terminal.The present invention passes through in mobile terminal and train movement recording equipment(Including automobile data recorder or vehicular rear mirror)Between define communications protocol, employing the asynchronous Socket communication technologys realizes communication between mobile terminal and train movement recording equipment, so as to enhance traditional train movement recording equipment performance, provides users with the convenient.
Description
Technical field
The present invention relates to technical field of mobile terminals more particularly to a kind of mobile terminal and train movement recording equipment information exchanges
Method and system.
Background technology
Automobile data recorder or vehicular rear mirror can record video image and sound in vehicle travel process, be equivalent to vehicle
Black box, evidence can be provided for traffic accident.Traditional automobile data recorder or vehicular rear mirror, can not without Wifi modules
Establish wireless communication with mobile phone, can not realize by mobile phone A pp remote control shootings, live preview image, browsing automobile data recorder or
Many work(such as the picture and video, download automobile data recorder in vehicular rear mirror or the picture in vehicular rear mirror or video file
Can, certain inconvenience is brought to user.
It follows that the prior art has yet to be improved and developed.
The content of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of the prior art, provide a kind of mobile terminal with
The method and system of train movement recording equipment information exchange, it is intended to realize that user is distant by mobile phone A pp in automobile by the present invention
It controls in automobile data recorder or vehicular rear mirror shooting photo, live preview image, browsing automobile data recorder or vehicular rear mirror
Picture and video download automobile data recorder or picture or video file in vehicular rear mirror, provide more convenience to the user.
The technical proposal for solving the technical problem of the invention is as follows:
A kind of mobile terminal and the method for train movement recording equipment information exchange, wherein, including step:
S1, a communications protocol between mobile terminal and train movement recording equipment is set in advance, establishes asynchronous socket communications;
S2, the mobile terminal send the information of a preset format by the first designated port to the train movement recording equipment
Interactive command is asked;
S3, the train movement recording equipment receive the command request, are passed by the second designated port to the mobile terminal
Defeated corresponding driving recording data are simultaneously shown in the mobile terminal.
The mobile terminal and the method for train movement recording equipment information exchange, wherein, first designated port is
7878 ports, second designated port are 8787 ports;The information exchange command request of the preset format is JSON forms.
The mobile terminal and the method for train movement recording equipment information exchange, wherein, the step S3 specifically includes step
Suddenly:
S311, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving
Recording equipment sends the command request of live preview driving recording image;
S312, the train movement recording equipment receive the command request, and sending order to the mobile terminal sends successfully
Reply;
The RTSP that S313, the mobile terminal send acquisition RTSP stream medium datas to the train movement recording equipment again please
It asks;
S314, the train movement recording equipment are by built-in RSTP streaming media servers to the mobile terminal real-time Transmission
Driving recording image data.
The mobile terminal and the method for train movement recording equipment information exchange, wherein, the step S3 further includes step:
S321, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving
Recording equipment sends the command request for obtaining picture/video file in train movement recording equipment;
S322, the train movement recording equipment receive the command request, and pass through 8787 ports and sent out to the mobile terminal
Send the txt file for having recorded picture/video file routing information;
S323, the mobile terminal receive the txt file, and obtain corresponding picture/video according to the txt file
File.
The mobile terminal and the method for train movement recording equipment information exchange, wherein, the step S3 further includes step:
S331, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving
Recording equipment sends the command request for downloading picture/video file in some train movement recording equipment;
S332, the train movement recording equipment receive the command request, and to the mobile terminal send file size and
The return information of file type;
The file data that S333, mobile terminal reception are sent from train movement recording equipment from 8787 ports, and will connect
The file data of receipts is compared with the file size received before;
If S334, comparative result are equal, it is correct to judge that file data receives, and preserves the file data.
A kind of mobile terminal and the system of train movement recording equipment information exchange, wherein, including:
Module is pre-set, for setting a communications protocol between mobile terminal and train movement recording equipment in advance, is established
Asynchronous socket communications;
Sending module sends one to the train movement recording equipment by the first designated port for the mobile terminal and presets
The information exchange command request of form;
Receiving processing module receives the command request for the train movement recording equipment, by the second designated port to
The mobile terminal transmits corresponding driving recording data and is shown in the mobile terminal.
The mobile terminal and the system of train movement recording equipment information exchange, wherein, first designated port is 7878
Port, second designated port are 8787 ports;The information exchange command request of the preset format is JSON forms.
The mobile terminal and the system of train movement recording equipment information exchange, wherein, the receiving processing module specifically wraps
It includes:
First command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through
7878 ports send the command request of live preview driving recording image to the train movement recording equipment;
It sends and successfully replys unit, the command request is received for the train movement recording equipment, to the mobile terminal
It sends order and sends successfully reply;
RTSP request transmitting units send again to the train movement recording equipment for the mobile terminal and obtain RTSP streams
The RTSP requests of media data;
Image data transmission unit, for the train movement recording equipment by built-in RSTP streaming media servers to described
Mobile terminal real-time Transmission driving recording image data.
The mobile terminal and the system of train movement recording equipment information exchange, wherein, the receiving processing module further includes:
Second command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through
7878 ports send the command request for obtaining picture/video file in train movement recording equipment to the train movement recording equipment;
Txt file transmitting element receives the command request for the train movement recording equipment, and pass through 8787 ports to
The mobile terminal transmission has recorded the txt file of picture/video file routing information;
File obtaining unit receives the txt file for the mobile terminal, and obtains phase according to the txt file
Picture/the video file answered.
The mobile terminal and the system of train movement recording equipment information exchange, wherein, the receiving processing module further includes:
3rd command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through
7878 ports send the command request for downloading picture/video file in some train movement recording equipment to the train movement recording equipment;
File size replys unit, and the command request is received for the train movement recording equipment, and to the movement eventually
End sends file size and the return information of file type;
Comparing unit, the number of files sent for mobile terminal reception from train movement recording equipment from 8787 ports
According to, and by the file data of reception compared with the file size received before;
Document data saving unit if being equal for comparative result, it is correct to judge that file data receives, and preserves institute
State file data.
A kind of mobile terminal provided by the present invention and the method and system of train movement recording equipment information exchange, the method
It specifically includes:One communications protocol between mobile terminal and train movement recording equipment is set in advance, establishes asynchronous socket communications;Institute
State the information exchange command request that mobile terminal sends a preset format by the first designated port to the train movement recording equipment;
The train movement recording equipment receives the command request, and corresponding driving is transmitted to the mobile terminal by the second designated port
Record data are simultaneously shown in the mobile terminal.The present invention passes through in mobile terminal and train movement recording equipment(Including row
Vehicle recorder or vehicular rear mirror)Between define communications protocol, employ the asynchronous Socket communication technologys realize it is mobile eventually
Communication between end and train movement recording equipment, so as to enhance traditional train movement recording equipment performance, realizes user in automobile
It is interior by mobile phone A pp be remotely controlled automobile data recorder or vehicular rear mirror shoot photo, live preview image, browsing automobile data recorder or
Many work(such as the picture and video, download automobile data recorder in vehicular rear mirror or the picture in vehicular rear mirror or video file
Can, it provides users with the convenient.
Description of the drawings
Fig. 1 is mobile terminal of the present invention and the flow chart of the preferred embodiment of train movement recording equipment information interacting method.
Fig. 2 is the cell phone application and train movement recording equipment of mobile terminal of the present invention and train movement recording equipment information interacting method
Between communication scheme.
Fig. 3 is the Application Example flow chart one of mobile terminal of the present invention and train movement recording equipment information interacting method.
Fig. 4 is the Application Example flowchart 2 of mobile terminal of the present invention and train movement recording equipment information interacting method.
Fig. 5 is the Application Example flow chart 3 of mobile terminal of the present invention and train movement recording equipment information interacting method.
Fig. 6 is the Application Example flow chart four of mobile terminal of the present invention and train movement recording equipment information interacting method.
Fig. 7 is mobile terminal of the present invention and the function module of the preferred embodiment of train movement recording equipment information interaction system
Figure.
Specific embodiment
The invention discloses a kind of mobile terminal and the method and system of train movement recording equipment information exchange, to make the present invention
Object, technical solution and advantage it is clearer, clear and definite, the embodiment that develops simultaneously referring to the drawings to the present invention further specifically
It is bright.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Fig. 1 is referred to, Fig. 1 is the preferred embodiment of mobile terminal of the present invention and train movement recording equipment information interacting method
Flow chart.Mobile terminal shown in FIG. 1 and train movement recording equipment information interacting method, including:
Step S101, one communications protocol between mobile terminal and train movement recording equipment is set in advance, established asynchronous
Socket communicates.
, it is necessary to set a communications protocol between mobile terminal and train movement recording equipment in advance in the embodiment of the present invention, this
The communication between mobile phone A pp and automobile data recorder or vehicular rear mirror is realized in invention using the asynchronous Socket communication technologys.
Embodiment as shown in Figure 2, train movement recording equipment(Including automobile data recorder or vehicular rear mirror)7878 are opened as server-side
Port and mobile phone A pp carry out command communication, and the port, which is based on ICP/IP protocol, to be established Socket and communicate, and one side mobile phone is to driving
Recording equipment sends communication instruction, and such as remote control shooting downloads driving picture or video, preview travelling image, browsing pictures/video
Deng, on the other hand, train movement recording equipment pass through 7878 ports to collect send related command reply.Train movement recording equipment is also opened
It puts 8787 ports and carries out file data transfer communication with mobile phone A pp, driving picture or video commands are downloaded when user sends request
Afterwards, will file data be transmitted to mobile phone by this port.The built-in RSTP Streaming Medias of automobile data recorder or vehicular rear mirror simultaneously
Server, can real-time video transmission data to mobile phone terminal.
Communication protocol between mobile phone A pp and automobile data recorder or vehicular rear mirror uses JSON forms.Mobile phone A pp is to row
Vehicle recorder or vehicular rear mirror send the command request of JSON forms, and automobile data recorder or vehicular rear mirror equally use JSON
Form replys request.The following example of communication information of JSON forms:
{"token":0,
"msg_id":1,
"param"= "/tmp/fuse_d/2015-01-03-00-32-39.GIF"
}
Wherein, variable token represents session id, when mobile phone A pp and automobile data recorder or vehicular rear mirror are successfully established company
After connecing, this ID can be distributed automatically.Msg_id represents command identifier ID, represents a communications command, such as remote control shooting order,
Download pictures order etc..Param represents command parameter.
Step S102, described mobile terminal sends a preset format by the first designated port to the train movement recording equipment
Information exchange command request.
Step S103, the train movement recording equipment receives the command request, by the second designated port to the movement
The corresponding driving recording data of terminal transmission are simultaneously shown in the mobile terminal.
In the embodiment of the present invention, the step S103 specifically includes step:
S311, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving
Recording equipment sends the command request of live preview driving recording image;
S312, the train movement recording equipment receive the command request, and sending order to the mobile terminal sends successfully
Reply;
The RTSP that S313, the mobile terminal send acquisition RTSP stream medium datas to the train movement recording equipment again please
It asks;
S314, the train movement recording equipment are by built-in RSTP streaming media servers to the mobile terminal real-time Transmission
Driving recording image data.
Further, the step S103 further includes step:
S321, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving
Recording equipment sends the command request for obtaining picture/video file in train movement recording equipment;
S322, the train movement recording equipment receive the command request, and pass through 8787 ports and sent out to the mobile terminal
Send the txt file for having recorded picture/video file routing information;
S323, the mobile terminal receive the txt file, and obtain corresponding picture/video according to the txt file
File.
Further, the step S103 further includes step:
S331, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving
Recording equipment sends the command request for downloading picture/video file in some train movement recording equipment;
S332, the train movement recording equipment receive the command request, and to the mobile terminal send file size and
The return information of file type;
The file data that S333, mobile terminal reception are sent from train movement recording equipment from 8787 ports, and will connect
The file data of receipts is compared with the file size received before;
If S334, comparative result are equal, it is correct to judge that file data receives, and preserves the file data.
That is, the embodiment of the present invention can realize the image of live preview automobile data recorder or vehicular rear mirror, browsing respectively
The figure in picture or video file and download automobile data recorder or vehicular rear mirror in automobile data recorder or vehicular rear mirror
The multiple functions such as piece or video file, the realization flow of each function are as described above.Specific Application Example will be passed through below
The present invention will be further described.Fig. 3 is refer to, Fig. 3 is the shadow of live preview automobile data recorder of the present invention or vehicular rear mirror
As flow chart, specifically include:
S201, program start.
S202, mobile phone and automobile data recorder or vehicular rear mirror establish wifi connections.
S203, further, mobile phone establish socket companies with 7878 ports that automobile data recorder or vehicular rear mirror open up
It connects, for sending related command to the automobile data recorder or vehicular rear mirror.
S204, further, mobile phone establish socket companies with 7878 ports that automobile data recorder or vehicular rear mirror open up
It connects, for carrying out the transmission communication of file data with the vehicle recorder or vehicular rear mirror.
S205, mobile phone send " live preview travelling image " command request to automobile data recorder or vehicular rear mirror.
S206, the automobile data recorder or vehicular rear mirror receive the command request, and send and order to the mobile phone
It sends and successfully replys.
The RTSP that S207, mobile phone further send acquisition RTSP stream medium datas to automobile data recorder or vehicular rear mirror please
It asks.
S208, the automobile data recorder or vehicular rear mirror are real to the mobile phone by built-in RSTP streaming media servers
When transmit driving recording image data, mobile phone use player plays travelling image.
Further, it refer to Fig. 4, Fig. 4 is the picture/regard of live preview automobile data recorder of the present invention or vehicular rear mirror
The flow chart of frequency file, specifically includes:
S301, program start.
S302, mobile phone are established wifi with train movement recording equipment in advance and are connected.
S303, further, mobile phone establish socket companies with 7878 ports that automobile data recorder or vehicular rear mirror open up
It connects, for sending related command to the automobile data recorder or vehicular rear mirror.
S304, mobile phone send the command request of " shooting photo " to the automobile data recorder or vehicular rear mirror.
S305, the automobile data recorder or vehicular rear mirror receive the command request, and send and order to the mobile phone
It sends and successfully replys.
After S306, mobile phone receive the successful reply of shooting, remote control licence plate is completed.
Further, it refer to Fig. 5, Fig. 5 is present invention browsing automobile data recorder or picture in vehicular rear mirror or regards
The flow chart of frequency file, specifically includes:
S401, program start.
S402, mobile phone and automobile data recorder or vehicular rear mirror establish wifi connections.
S403, further, mobile phone establish socket companies with 7878 ports that automobile data recorder or vehicular rear mirror open up
It connects, for sending related command to the automobile data recorder or vehicular rear mirror.
S404, further, mobile phone establish socket companies with 7878 ports that automobile data recorder or vehicular rear mirror open up
It connects, for carrying out the transmission communication of file data with the vehicle recorder or vehicular rear mirror.
S405, mobile phone send to automobile data recorder or vehicular rear mirror and " obtain in automobile data recorder or vehicular rear mirror and scheme
The command request of piece/video file routing information ".
S406, the automobile data recorder or vehicular rear mirror receive the command request, and send and order to the mobile phone
One txt file preserves file path information in this txt file.
S407, mobile phone obtain picture/video file in automobile data recorder or vehicle-mounted back vision according to the txt file of reception
Routing information in mirror, and carry out the browsing of picture or video file.
Further, it refer to Fig. 6, Fig. 6 is that the present invention downloads automobile data recorder or picture in vehicular rear mirror or regards
The flow chart of frequency file, specifically includes:
S501, program start.
S502, mobile phone and automobile data recorder or vehicular rear mirror establish wifi connections.
S503, further, mobile phone establish socket companies with 7878 ports that automobile data recorder or vehicular rear mirror open up
It connects, for sending related command to the automobile data recorder or vehicular rear mirror.
S504, further, mobile phone establish socket companies with 7878 ports that automobile data recorder or vehicular rear mirror open up
It connects, for carrying out the transmission communication of file data with the vehicle recorder or vehicular rear mirror.
The order that S505, mobile phone send " downloading some picture/video file " to automobile data recorder or vehicular rear mirror please
It asks.
S506, the automobile data recorder or vehicular rear mirror receive the command request, and send and order to the mobile phone
Send successfully reply and the length of the file and the information of file type.
S507, mobile phone receive the length of the file and the information of file type, while are received and come from by 8787 ports
The file data of automobile data recorder/vehicular rear mirror transmission.
Whether the file data size that S508, mobile phone cycle criterion receive is consistent with requested file degree.
If S509, consistent, supporting paper data receiver finishes.Mobile phone preserves received file, and shows that file passes
Defeated success.
Therefore the present invention is by mobile terminal and train movement recording equipment(Including automobile data recorder or vehicle-mounted back vision
Mirror)Between define communications protocol, employ the asynchronous Socket communication technologys realize mobile terminal and train movement recording equipment it
Between communication, so as to enhance traditional train movement recording equipment performance, realize user in automobile by mobile phone A pp be remotely controlled go
Picture in vehicle recorder or vehicular rear mirror shooting photo, live preview image, browsing automobile data recorder or vehicular rear mirror
With video, download the various functions such as picture or video file in automobile data recorder or vehicular rear mirror, provided side to the user
Just.
Based on above-described embodiment, the present invention also provides a kind of mobile terminal and train movement recording equipment information interaction system, such as
Shown in Fig. 7, including:
Module 100 is pre-set, for setting a communications protocol between mobile terminal and train movement recording equipment in advance, is built
Step of starting something different socket communications;As detailed above.
Sending module 200 sends one by the first designated port for the mobile terminal to the train movement recording equipment
The information exchange command request of preset format;As detailed above.
Receiving processing module 300 receives the command request for the train movement recording equipment, passes through the second designated port
Corresponding driving recording data are transmitted to the mobile terminal and are shown in the mobile terminal;As detailed above.
Further, first designated port is 7878 ports, and second designated port is 8787 ports;It is described pre-
If the information exchange command request of form is JSON forms.
Further, the receiving processing module 300 specifically includes:
First command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through
7878 ports send the command request of live preview driving recording image to the train movement recording equipment;As detailed above.
It sends and successfully replys unit, the command request is received for the train movement recording equipment, to the mobile terminal
It sends order and sends successfully reply;As detailed above.
RTSP request transmitting units send again to the train movement recording equipment for the mobile terminal and obtain RTSP streams
The RTSP requests of media data;As detailed above.
Image data transmission unit, for the train movement recording equipment by built-in RSTP streaming media servers to described
Mobile terminal real-time Transmission driving recording image data;As detailed above.
Further, the receiving processing module 300 further includes:
Second command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through
7878 ports send the command request for obtaining picture/video file in train movement recording equipment to the train movement recording equipment;Specifically
As described above.
Txt file transmitting element receives the command request for the train movement recording equipment, and pass through 8787 ports to
The mobile terminal transmission has recorded the txt file of picture/video file routing information;As detailed above.
File obtaining unit receives the txt file for the mobile terminal, and obtains phase according to the txt file
Picture/the video file answered;As detailed above.
Further, the receiving processing module 300 further includes:
3rd command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through
7878 ports send the command request for downloading picture/video file in some train movement recording equipment to the train movement recording equipment;
As detailed above.
File size replys unit, and the command request is received for the train movement recording equipment, and to the movement eventually
End sends file size and the return information of file type;As detailed above.
Comparing unit, the number of files sent for mobile terminal reception from train movement recording equipment from 8787 ports
According to, and by the file data of reception compared with the file size received before;As detailed above.
Document data saving unit if being equal for comparative result, it is correct to judge that file data receives, and preserves institute
State file data;As detailed above.
In conclusion the method for a kind of mobile terminal provided by the present invention and train movement recording equipment information exchange and being
System, the method specifically include:One communications protocol between mobile terminal and train movement recording equipment is set in advance, is established asynchronous
Socket communicates;The mobile terminal sends the information of a preset format by the first designated port to the train movement recording equipment
Interactive command is asked;The train movement recording equipment receives the command request, by the second designated port to the mobile terminal
It transmits corresponding driving recording data and is shown in the mobile terminal.The present invention passes through in mobile terminal and driving
Recording equipment(Including automobile data recorder or vehicular rear mirror)Between define communications protocol, employ asynchronous Socket communication skill
Art realizes the communication between mobile terminal and train movement recording equipment, real so as to enhance traditional train movement recording equipment performance
Show user automobile data recorder or vehicular rear mirror are remotely controlled by mobile phone A pp in automobile and shoot photo, live preview image, clear
The picture and video look in automobile data recorder or vehicular rear mirror are downloaded automobile data recorder or picture in vehicular rear mirror or are regarded
The various functions such as frequency file, provide users with the convenient.
It should be appreciated that the application of the present invention is not limited to the above, it for those of ordinary skills, can
To be improved or converted according to the above description, all these modifications and variations should all belong to the guarantor of appended claims of the present invention
Protect scope.
Claims (6)
1. a kind of mobile terminal and the method for train movement recording equipment information exchange, which is characterized in that including step:
S1, a communications protocol between mobile terminal and train movement recording equipment is set in advance, establishes asynchronous socket communications;
S2, the mobile terminal send the information exchange of a preset format by the first designated port to the train movement recording equipment
Command request;
S3, the train movement recording equipment receive the command request, and phase is transmitted to the mobile terminal by the second designated port
The driving recording data answered simultaneously are shown in the mobile terminal;
First designated port is 7878 ports, and second designated port is 8787 ports;The information of the preset format
Interactive command request is JSON forms;
The step S3 specifically includes step:
S311, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving recording
Equipment sends the command request of live preview driving recording image;
S312, the train movement recording equipment receive the command request, and sending order to the mobile terminal sends successful return
It is multiple;
S313, the mobile terminal send the RTSP requests for obtaining RTSP stream medium datas to the train movement recording equipment again;
S314, the train movement recording equipment are driven a vehicle by built-in RSTP streaming media servers to the mobile terminal real-time Transmission
Recording image data.
2. mobile terminal according to claim 1 and the method for train movement recording equipment information exchange, which is characterized in that described
Step S3 further includes step:
S321, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving recording
Equipment sends the command request for obtaining picture/video file in train movement recording equipment;
S322, the train movement recording equipment receive the command request, and pass through 8787 ports and send note to the mobile terminal
The txt file of picture/video file routing information is recorded;
S323, the mobile terminal receive the txt file, and obtain corresponding picture/video text according to the txt file
Part.
3. mobile terminal according to claim 1 and the method for train movement recording equipment information exchange, which is characterized in that described
Step S3 further includes step:
S331, mobile terminal are established WIFI with train movement recording equipment in advance and are connected, and pass through 7878 ports to the driving recording
Equipment sends the command request for downloading picture/video file in some train movement recording equipment;
S332, the train movement recording equipment receive the command request, and send file size and file to the mobile terminal
The return information of type;
S333, the file data that is sent from train movement recording equipment from 8787 ports of mobile terminal reception, and by reception
File data is compared with the file size received before;
If S334, comparative result are equal, it is correct to judge that file data receives, and preserves the file data.
4. a kind of mobile terminal and the system of train movement recording equipment information exchange, which is characterized in that including:
Module is pre-set, for setting a communications protocol between mobile terminal and train movement recording equipment in advance, is established asynchronous
Socket communicates;
Sending module sends a preset format by the first designated port for the mobile terminal to the train movement recording equipment
Information exchange command request;
Receiving processing module receives the command request for the train movement recording equipment, by the second designated port to described
Mobile terminal transmits corresponding driving recording data and is shown in the mobile terminal;
First designated port is 7878 ports, and second designated port is 8787 ports;The information of the preset format
Interactive command request is JSON forms;
The receiving processing module specifically includes:
First command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through 7878 ends
Mouth sends the command request of live preview driving recording image to the train movement recording equipment;
It sends and successfully replys unit, receive the command request for the train movement recording equipment, sent to the mobile terminal
Order, which is sent, successfully replys;
RTSP request transmitting units send again to the train movement recording equipment for the mobile terminal and obtain RTSP Streaming Medias
The RTSP requests of data;
Image data transmission unit, for the train movement recording equipment by built-in RSTP streaming media servers to the movement
Terminal real-time Transmission driving recording image data.
5. mobile terminal and the system of train movement recording equipment information exchange according to claim 4, which is characterized in that described to connect
Processing module is received to further include:
Second command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through 7878 ends
Mouth sends the command request for obtaining picture/video file in train movement recording equipment to the train movement recording equipment;
Txt file transmitting element receives the command request for the train movement recording equipment, and passes through 8787 ports to described
Mobile terminal sends the txt file for having recorded picture/video file routing information;
File obtaining unit receives the txt file for the mobile terminal, and is obtained accordingly according to the txt file
Picture/video file.
6. mobile terminal and the system of train movement recording equipment information exchange according to claim 4, which is characterized in that described to connect
Processing module is received to further include:
3rd command sending unit is established WIFI with train movement recording equipment in advance for mobile terminal and is connected, and passes through 7878 ends
Mouth sends the command request for downloading picture/video file in some train movement recording equipment to the train movement recording equipment;
File size replys unit, receives the command request for the train movement recording equipment, and is sent out to the mobile terminal
Send file size and the return information of file type;
Comparing unit, for the file data that mobile terminal reception is sent from train movement recording equipment from 8787 ports, and
By the file data of reception compared with the file size received before;
Document data saving unit if being equal for comparative result, it is correct to judge that file data receives, and preserves the text
Number of packages evidence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510631417.2A CN105306693B (en) | 2015-09-29 | 2015-09-29 | A kind of mobile terminal and the method and system of train movement recording equipment information exchange |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510631417.2A CN105306693B (en) | 2015-09-29 | 2015-09-29 | A kind of mobile terminal and the method and system of train movement recording equipment information exchange |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105306693A CN105306693A (en) | 2016-02-03 |
CN105306693B true CN105306693B (en) | 2018-05-18 |
Family
ID=55203424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510631417.2A Active CN105306693B (en) | 2015-09-29 | 2015-09-29 | A kind of mobile terminal and the method and system of train movement recording equipment information exchange |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306693B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107093327B (en) * | 2017-04-21 | 2021-03-23 | 华南理工大学 | Driving collision processing method and system |
CN107248206A (en) * | 2017-07-01 | 2017-10-13 | 深圳市阿达视高新技术有限公司 | A kind of method of quick obtaining DVR video recordings track |
CN108391247A (en) * | 2018-02-02 | 2018-08-10 | 深圳市恒晨电器有限公司 | WIFI control systems and method based on P2P, vehicle-mounted Android system and mobile phone terminal |
CN108303926B (en) * | 2018-02-28 | 2020-02-11 | 杭州骑迹科技有限公司 | Electric vehicle control method and computing device |
CN112566071B (en) * | 2020-11-18 | 2023-12-12 | 深圳市豪恩汽车电子装备股份有限公司 | Mobile terminal, information communication device and method of mobile terminal |
CN117692484A (en) * | 2021-01-25 | 2024-03-12 | 华为技术有限公司 | Interaction method, terminal and system of mobile terminal and vehicle-mounted terminal |
CN112991573B (en) * | 2021-02-19 | 2023-04-28 | 滴图(北京)科技有限公司 | Data opening method and related device for automobile data recorder |
CN113689592B (en) * | 2021-08-31 | 2023-07-07 | 重庆长安汽车股份有限公司 | Short-range file transmission method and system based on WIFI network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1136953A2 (en) * | 2000-03-13 | 2001-09-26 | Honda Giken Kogyo Kabushiki Kaisha | Vehicle monitoring system |
CN101469996A (en) * | 2007-12-29 | 2009-07-01 | 厦门雅迅网络股份有限公司 | GPS vehicle-mounted terminal system with high-capacity image saving management and transmission function |
CN104144316A (en) * | 2013-05-06 | 2014-11-12 | 南京理工大学连云港研究院 | Vehicle-mounted mobile video monitoring system based on streaming media technology |
CN104333844A (en) * | 2014-11-12 | 2015-02-04 | 沈阳美行科技有限公司 | Interconnection method of vehicle-mounted terminal and smart phone |
CN104900037A (en) * | 2015-06-08 | 2015-09-09 | 深圳市凯立德科技股份有限公司 | Automobile data recorder data transmission method and automobile data recorder equipment |
-
2015
- 2015-09-29 CN CN201510631417.2A patent/CN105306693B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1136953A2 (en) * | 2000-03-13 | 2001-09-26 | Honda Giken Kogyo Kabushiki Kaisha | Vehicle monitoring system |
CN101469996A (en) * | 2007-12-29 | 2009-07-01 | 厦门雅迅网络股份有限公司 | GPS vehicle-mounted terminal system with high-capacity image saving management and transmission function |
CN104144316A (en) * | 2013-05-06 | 2014-11-12 | 南京理工大学连云港研究院 | Vehicle-mounted mobile video monitoring system based on streaming media technology |
CN104333844A (en) * | 2014-11-12 | 2015-02-04 | 沈阳美行科技有限公司 | Interconnection method of vehicle-mounted terminal and smart phone |
CN104900037A (en) * | 2015-06-08 | 2015-09-09 | 深圳市凯立德科技股份有限公司 | Automobile data recorder data transmission method and automobile data recorder equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105306693A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105306693B (en) | A kind of mobile terminal and the method and system of train movement recording equipment information exchange | |
CN1866258B (en) | Data-sharing system and data-sharing method | |
WO2019104652A1 (en) | Unmanned aerial vehicle system, and communication method and remote control device therefor | |
CN103634172A (en) | Method, device and system for processing multi-terminal cooperation information | |
CN104348531A (en) | Apparatus and method for simplifying wireless connection and data sharing | |
CN105828151B (en) | A kind of display processing method and device | |
US20060023081A1 (en) | Video camera apparatus | |
CN108429814A (en) | Method and system for transmission data among multiple devices | |
CN112511584A (en) | Multi-screen interaction method based on cloud mobile phone system, electronic equipment and storage medium | |
CN103414783A (en) | Method and device for data transmission | |
CN108200141A (en) | A kind of car data-sharing systems and method | |
CN104601589A (en) | Method of accessing broadcast television system, terminal and network side server | |
CN105959732A (en) | Method and device for pushing television program | |
CN106550487A (en) | WI FI direct-connected method and system | |
CN106302748B (en) | Cross-media personalized recommendation method and system | |
CN105812185A (en) | Communication connection method for playing device | |
CN111147950A (en) | Remote screen projection method and system for set top box | |
CN101656947A (en) | Establishing method, device and system of cross-heterogeneous-network service sharing | |
CN103561352A (en) | Monitoring system of vehicle-mounted multimedia and monitoring method thereof | |
CN105303644A (en) | Tachograph or vehicle-mounted rearview mirror photo taking checking method and system | |
CN105338654A (en) | Network sharing method, apparatus and system | |
JP2015122587A (en) | Communication device, imaging device and control method therefor, and program | |
CN105101148A (en) | Screen and operation control sharing method, system and main sharing end | |
CN104769527A (en) | Mixed media from multimodal sensors | |
JP2002064789A (en) | Image compression recording transmitter and image compression transmitter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518057, Guangdong Province, Nanshan District hi tech Zone, North Road, Thunis Road, science and Technology Park, No. 9, layer A906, layer 13 Applicant after: Shenzhen Aipei Science and Technology Co., Ltd Address before: 518057, Guangdong Province, Nanshan District hi tech Zone, North Road, Thunis Road, science and Technology Park, No. 9, layer A906, layer 13 Applicant before: Apical technology development (Shenzhen) Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |