CN109392191A - Automobile data recorder and the communication means of terminal, automobile data recorder and storage medium - Google Patents

Automobile data recorder and the communication means of terminal, automobile data recorder and storage medium Download PDF

Info

Publication number
CN109392191A
CN109392191A CN201811448794.2A CN201811448794A CN109392191A CN 109392191 A CN109392191 A CN 109392191A CN 201811448794 A CN201811448794 A CN 201811448794A CN 109392191 A CN109392191 A CN 109392191A
Authority
CN
China
Prior art keywords
module
terminal
setting
corresponding command
data recorder
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.)
Granted
Application number
CN201811448794.2A
Other languages
Chinese (zh)
Other versions
CN109392191B (en
Inventor
高涛
王承松
王澎
王一澎
傅雪松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chuangwei Automobile Intelligent Co Ltd
Original Assignee
Shenzhen Chuangwei Automobile Intelligent Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Chuangwei Automobile Intelligent Co Ltd filed Critical Shenzhen Chuangwei Automobile Intelligent Co Ltd
Priority to CN201811448794.2A priority Critical patent/CN109392191B/en
Publication of CN109392191A publication Critical patent/CN109392191A/en
Application granted granted Critical
Publication of CN109392191B publication Critical patent/CN109392191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of automobile data recorders and the communication means of terminal, automobile data recorder and storage medium, wherein this method comprises: receiving the control message that terminal is sent, wherein control message includes module id, the corresponding command id of module id and data parameters, wherein control message is write according to self-defining communication protocol format;Respond module is determined according to module id, is responded according to the corresponding command id of module id and data state modulator respond module;The response results of module and self-defining communication protocol format generate feedback message according to response, and feedback message is sent to terminal.Communication means, automobile data recorder and the storage medium of a kind of automobile data recorder provided in an embodiment of the present invention and terminal, for realizing the real-time, interactive of automobile data recorder and terminal.

Description

Automobile data recorder and the communication means of terminal, automobile data recorder and storage medium
Technical field
The present embodiments relate to automobile data recorder technology more particularly to the communication parties of a kind of automobile data recorder and terminal Method, automobile data recorder and storage medium.
Background technique
In recent years, domestic motor market high speed development, China have become the big automobile production of the first in the world and selling market.So And flourishing relative to internet and consumer-elcetronics devices, the development of vehicle electronic device is relatively slow.Present many vehicles Main that automobile fitting market or the shop 4S often to be gone to install automobile data recorder additional after buying new car, the evidence obtaining of automobile data recorder and journey are clapped Become indispensable for car owner according to functions such as video recordings.
Traditional automobile data recorder function is relatively simple at present, therefore cannot cannot lead to the real-time communication interaction of terminal It crosses terminal automobile data recorder is carried out the operation such as to control, causes the manipulation convenient degree of automobile data recorder lower.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of automobile data recorders and the communication means of terminal, automobile data recorder And storage medium, for realizing the real-time, interactive of automobile data recorder and terminal.
In a first aspect, the embodiment of the invention provides the communication means of a kind of automobile data recorder and terminal, comprising:
The control message that terminal is sent is received, wherein the control message includes module id, the corresponding life of module id Mark and data parameters are enabled, wherein the control message is write according to self-defining communication protocol format;
Respond module is determined according to module id, is responded according to the corresponding command id of module id and data state modulator Module is responded;
The response results of module and self-defining communication protocol format generate feedback message according to response, and by the feedback Message is sent to terminal.
Optionally, the self-defining communication protocol format, including at least one of following: content item, the content item of message are big Small and content item sequence.
It is optionally, described to be responded according to the corresponding command id of module id and data state modulator respond module, Include:
Judge whether data parameters are empty;
If it is not, then being responded according to the corresponding command id of module id and data state modulator respond module;
If so, being responded according to the corresponding command id control response module of module id.
Optionally, before the control message that the reception terminal is sent, further includes: establish connection with terminal, wherein institute State connection WIFI connection, data network connection, bluetooth connection, radio frequency connection or serial ports connection.
Optionally, the communication means of automobile data recorder and terminal, further includes:
The first heartbeat message that terminal is sent is received, the connection with terminal is kept according to first heartbeat message;
Second heartbeat message is sent to terminal, so that terminal is kept according to second heartbeat message and automobile data recorder Connection.
Optionally, the module id includes at least one of following: enquiry module mark, control module mark and setting mould Block identification;Correspondingly,
When module id is that enquiry module identifies, the corresponding command id of module id includes at least one of following: being looked into It askes live preview state, inquiry video state, inquiry video recording parameter, inquire state of taking pictures, inquiry recording state, inquiry SD card shape State, parking monitor state and recorder version information;
When module id is that control module identifies, the corresponding command id of module id includes at least one of following: control Recording is taken pictures and is controlled in live preview processed, control video recording, control;
When module id is that setup module identifies, the corresponding command id of module id includes at least one of following: being set The time is set, SD card is formatted, restores factory, setting collision sensitivity, setting language, setting white balance, setting exposure, setting Light source frequency, setting voice broadcast switch, setting watermark switch, setting button prompt tone switch, 3D noise reduction switch, setting are arranged Distortion correction switch, setting record duration, resolution ratio and firmware upgrade are recorded in setting.
Optionally, the communication means of automobile data recorder and terminal, further includes:
When module id is enquiry module mark, and the corresponding command id of module id is inquiry video state, data Parameter is camera identification;
When module id is control module mark, and the corresponding command id of module id is control live preview, data Parameter is to open preview and closing preview;When the corresponding command id of module id is control video recording, data parameters are to start to record Picture and stopping video recording;When the corresponding command id of module id is control recording, data parameters are to start recording of recording and stop;
When module id is setup module mark, when the corresponding command id of module id is the setting time, data parameters For time parameter;When the corresponding command id of module id is setting sensitivity, data parameters are sensitivity parameter;Module id When corresponding command id is setting language, data parameters are category of language;The corresponding command id of module id is that setting is white When balance, data parameters are white balance parameter;When the corresponding command id of module id is setting exposure, data parameters are to expose Photometric parameter;When the corresponding command id of module id is setting light source frequency, data parameters are light source frequency parameter;Module mark Know corresponding command id to switch for setting voice broadcast, watermark switch, setting button prompt tone switch, setting 3D noise reduction is arranged When switch or setting distortion correction switch, data parameters are to open and close;The corresponding command id of module id is setting record When duration processed, data parameters are time parameter;When the corresponding command id of module id is that resolution ratio is recorded in setting, data parameters For resolution parameter.
Optionally, the communication means of automobile data recorder and terminal, further includes:
Start http-server, when receiving the http request of terminal transmission, is searched according to the http request local Resource file, and the resource file is sent to terminal.
Second aspect, the embodiment of the invention provides a kind of automobile data recorders, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing The communication means of device the realization automobile data recorder as described in any embodiment of the present invention and terminal.
The third aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the communication party of the automobile data recorder as described in any embodiment of the present invention and terminal when the program is executed by processor Method.
A kind of automobile data recorder provided in an embodiment of the present invention and the communication means of terminal, automobile data recorder and storage are situated between Matter, wherein this method comprises: receiving the control message that terminal is sent, wherein control message includes module id, module id pair The command id and data parameters answered, wherein control message is write according to self-defining communication protocol format;It is true according to module id Provisioning response module is responded according to the corresponding command id of module id and data state modulator respond module;According to response The response results and self-defining communication protocol format of module generate feedback message, and feedback message is sent to terminal.Terminal Writing for control message is carried out according to customized communication protocol rule, and is sent to automobile data recorder;Automobile data recorder is to control Message processed is received and is responded, and result and customized communication protocol rule generate feedback message according to response, and will feedback Message is sent to terminal, to realize the real-time, interactive of automobile data recorder and terminal.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to do one simply to introduce, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the communication means flow chart of a kind of automobile data recorder and terminal that the embodiment of the present invention one provides;
Fig. 2 is communication interaction logic in a kind of automobile data recorder that the embodiment of the present invention one provides and the communication means of terminal Figure;
Fig. 3 is a kind of structural schematic diagram for automobile data recorder that the embodiment of the present invention four provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.Following each embodiments In, optional feature and example are provided simultaneously in each embodiment, each feature recorded in embodiment can be combined, and be formed The embodiment of each number should not be considered merely as a technical solution by multiple optinal plans.
Embodiment one
Fig. 1 is the communication means flow chart of a kind of automobile data recorder and terminal that the embodiment of the present invention one provides, this implementation Example is applicable to the case where automobile data recorder is communicated with terminal, and this method can be realized by automobile data recorder, can specifically pass through row Software and/or hardware in vehicle recorder is implemented.
Referring to Fig. 1, the communication means of the automobile data recorder and terminal includes the following steps:
S110, the control message that terminal is sent is received, wherein control message includes module id, the corresponding life of module id Mark and data parameters are enabled, wherein control message is write according to self-defining communication protocol format.
Automobile data recorder can receive the control message of terminal transmission, wherein terminal can include but is not limited to such as move The mobile terminal of mobile phone, laptop, PAD (tablet computer) etc. and the fixed terminal of desktop computer etc..
Wherein, the module id that control message includes, the corresponding command id of module id and data parameters are customized The content item that the control message of defined may include in communications protocol format.The module that automobile data recorder includes according to control message Mark, the corresponding command id of module id and data parameters can carry out the response of control message.
Optionally, self-defining communication protocol format, including at least one of following: the content item of message, size of content item and Content item sequence.
Wherein, the content item of message specified in self-defining communication protocol format is in addition to may include module id, module It identifies outside corresponding command id and data parameters, can also include frame head mark, data parameters length and check bit.Pass through frame Leader knowledge can identify the data packet of control message, may determine that whether data parameters meet by data parameters length Regulation, may determine that whether control message can be performed by check bit.In addition, disappearing specified in self-defining communication protocol format The content item of breath may also include other content, however it is not limited to above content item.Wherein, the content item of message can be by numerical value, word Female and/or character number composition;Preferably, the content item of message be numerical value, such as can be binary system, octal system, the decimal system or Hexadecimal values.
Wherein, content item size can be understood as the byte number of defined content item, such as can be by module id Size is defined as 1 byte, the size that frame head identifies can be defined as 2 bytes, can also provide the size of check bit For 4 bytes.It is arranged by the content item of small byte, can reduces bandwidth occupancy with reduced instruction, improve the transmission of control message Efficiency has higher transmission performance in the transmission channel of low bandwidth.
Wherein, content item sequence can be understood as each content item putting in order in the corresponding data packet of control message or Transmission sequence.Illustratively, content item sequence for example can be, frame head-module id-command id-data parameters length-number According to parameter-check bit, frame head-module id-command id-data parameters-data parameters length-check bit can also be.Wherein, Content item sequence can also be other rational sortings, however it is not limited to the sequence of above content item.
By providing that content item, size of content item and the content item sequence of message can be in self-defining communication protocol format Keep communication protocol more complete.Terminal carries out writing for control message according to self-defining communication protocol format;Automobile data recorder root The parsing and response that control message is carried out according to self-defining communication protocol format, by response results according to self-defining communication protocol format It generates feedback message and feeds back to terminal, so as to complete the interaction between terminal and automobile data recorder.
S120, respond module is determined according to module id, according to the corresponding command id of module id and data parameters control Respond module processed is responded.
Wherein, respond module can be understood as automobile data recorder and carry out the corresponding module of which kind of response, such as can be Enquiry module can inquire the state of each function of automobile data recorder by enquiry module, such as can inquire automobile data recorder bat According to the functional status of function.Wherein, each respond module can uniquely correspond to a module id, and module id and response mould The corresponding relationship of block can be stored to preset storage unit, can by the corresponding relationship of enquiry module mark and respond module To determine respond module required for response control message.
Wherein, the corresponding command id of module id can be understood as the corresponding respond module of module id can be to which The operated object mark that object is operated.For example, control module can control urgent record when respond module is control module The opening and closing of picture can also control the opening and closing etc. of parking monitoring, at this point, then can be by the urgent video recording pair of control The mark and the corresponding mark of control parking monitoring answered are as command id.Wherein, disparate modules identify corresponding command id It is possible that identical, such as when the command id of the corresponding inquiry video state of enquiry module is 0x01, setup module is corresponding to be set The command id for setting the time may be 0x01.It can first pass around after module id determines respond module, then search response mould The corresponding command id of block, to guarantee correctly to respond control message.
Wherein, data parameters can be sky, can not also be sky.For example, when respond module is enquiry module, when order is marked When knowing to inquire SD card state, enquiry module directly carries out status inquiry to SD card, judges SD card for insert state or removes shape State, then data parameters can be sky at this time;For another example, when respond module is control module, when command id is that control is real-time When preview, control module is still closed it needs to be determined that carrying out control to live preview to open, and is needed to which camera control System can specifically include at this point, then data parameters are not sky and open preceding road camera live preview, close preceding road camera reality When preview, open way of escape camera live preview or close way of escape camera live preview etc..When data parameters are empty, data Parameter specifically can be 0x00;When data parameters are not sky, it can be set to 0x01,0x02 or 0x03 etc., do not limit herein It is fixed.
Optionally, it is responded according to the corresponding command id of module id and data state modulator respond module, comprising:
Judge whether data parameters are empty;If it is not, then according to the corresponding command id of module id and data state modulator Respond module is responded;If so, being responded according to the corresponding command id control response module of module id.
Wherein, when data parameters are for sky, then respond module can directly carry out the sound of control message according to command id It answers;When data parameters are not sky, then respond module need to carry out the response of control message according to command id and data parameters.It is logical It crosses and judges whether data parameters are sky, automobile data recorder can carry out a point feelings for the corresponding different command mark of different respond modules Condition response, improves the response efficiency of control message.
The response results and self-defining communication protocol format of S130, according to response module generate feedback message, and will be anti- Feedback message is sent to terminal.
Wherein it is possible to pass through preset numerical identity response results in self-defining communication protocol format.Illustratively, work as control Module id in message processed is enquiry module mark, and when command id is inquiry video state, automobile data recorder calls inquiry Module polls video state, the video state of acquisition are response results, and response results for example can be, and preceding road camera is not recorded Picture, preceding road camera is being recorded a video, way of escape camera is not recorded a video or way of escape camera is being recorded a video.Every kind of response results can be with It is corresponding with preset numerical value, such as the numerical value that preceding road camera is being recorded a video can be 0x01.
Wherein, after getting the corresponding default value of response results, which can be write corresponding to feedback message The content item of data parameters, wherein the redaction rule of feedback message is referring again to the redaction rule of control message, i.e. control message It is all write according to customized communication protocol rule with feedback message.In addition, module id and command id in feedback message With in corresponding control message module id and command id it is identical.Illustratively, when the module id in control message is Enquiry module mark, command id are inquiry video state, and response results are preceding road when recording a video, then the mould in feedback message Block identification is similarly enquiry module mark, and command id is similarly inquiry video state, and data parameters are that preceding road is being recorded a video pair The numerical value answered.
Optionally, before receiving the control message that terminal is sent, further includes: connection is established with terminal, wherein connecting WIFI connection, data network connection, bluetooth connection, radio frequency connection or serial ports connection.
Wherein, automobile data recorder and the interaction message of terminal can not only pass through the networks such as WIFI connection or data network connection Connection type transmission can also be transmitted by the radio waves mode such as bluetooth connection or radio frequency connection, can also be gone here and there by RS-232 etc. Mouth connection type transmission.Either the connection type of the connection type of high bandwidth or low bandwidth can all be realized in the present embodiment The automobile data recorder of offer and the communication means of terminal.
Optionally, the communication means of automobile data recorder and terminal further include: receive the first heartbeat message that terminal is sent, root The connection with terminal is kept according to the first heartbeat message;Second heartbeat message is sent to terminal, so that terminal is according to the second heartbeat Information and automobile data recorder keep connecting.
Wherein, automobile data recorder the first heartbeat message and terminal can keep connection status based on the received, while can return Multiple second heartbeat message is to terminal, so that terminal keeps connection status according to the second heartbeat message and automobile data recorder.Work as driving When recorder is not received by the heartbeat message of terminal transmission within a preset time interval, the company with terminal can be actively disconnected It connects, to save the resource occupation of automobile data recorder.
Fig. 2 is communication interaction logic in a kind of automobile data recorder that the embodiment of the present invention one provides and the communication means of terminal Figure.Wherein, interaction logic mainly includes the following steps:
S210, terminal write control message according to self-defining communication protocol format, and wherein control message includes module id, The corresponding command id of module id and data parameters;
S220, terminal send control message to automobile data recorder;
S230, automobile data recorder determine respond module according to module id, according to the corresponding command id of module id and Data parameters control response module is responded;
The response results of module and self-defining communication protocol format generation feedback disappear according to response for S240, automobile data recorder Breath;
S250, automobile data recorder send feedback message to terminal;
S260, terminal send the first heartbeat message to automobile data recorder;
S270, automobile data recorder keep the connection with terminal according to the first heartbeat message;
S280, automobile data recorder send the second heartbeat message to terminal;
S290, terminal keep the connection with automobile data recorder according to the second heartbeat message.
Wherein, communication interaction logic meets customer end/server mode (C/S model) between terminal and automobile data recorder, Terminal is as client, and automobile data recorder is as server.Terminal sends control message to automobile data recorder, automobile data recorder root It is responded and is fed back according to received control message, to realize the interaction between terminal and automobile data recorder.In addition, driving Recorder also can receive the first heartbeat message that terminal is sent, and keep the connection with terminal according to the first heartbeat message, while can To reply the second heartbeat message to terminal, so that terminal keeps connection status according to the second heartbeat message and automobile data recorder.
The communication means of automobile data recorder provided in this embodiment and terminal receives the control message that terminal is sent, wherein Control message includes module id, the corresponding command id of module id and data parameters, and wherein control message is according to customized Communications protocol format is write;Respond module is determined according to module id, is joined according to the corresponding command id of module id and data Number control respond module is responded;The response results of module and self-defining communication protocol format generate feedback and disappear according to response Breath, and feedback message is sent to terminal.Terminal carries out writing for control message according to customized communication protocol rule, concurrently It send to automobile data recorder;Automobile data recorder is received and is responded to control message, according to response result and customized communication Protocol rule generates feedback message, and feedback message is sent to terminal, to realize the real-time of automobile data recorder and terminal Interaction.
Embodiment two
The present embodiment has carried out specific definition on the basis of the above embodiments, to self-defining communication protocol format.This reality Example and above-described embodiment inventive concept having the same are applied, same as the previously described embodiments or corresponding term is explained, the present embodiment It repeats no more.
Optionally, in automobile data recorder and the communication means of terminal, module id includes at least one of following: inquiry mould Block identification, control module mark and setup module mark;Correspondingly,
When module id is that enquiry module identifies, the corresponding command id of module id includes at least one of following: being looked into It askes live preview state, inquiry video state, inquiry video recording parameter, inquire state of taking pictures, inquiry recording state, inquiry SD card shape State, parking monitor state and recorder version information;
When module id is that control module identifies, the corresponding command id of module id includes at least one of following: control Recording is taken pictures and is controlled in live preview processed, control video recording, control;
When module id is that setup module identifies, the corresponding command id of module id includes at least one of following: being set The time is set, SD card is formatted, restores factory, setting collision sensitivity, setting language, setting white balance, setting exposure, setting Light source frequency, setting voice broadcast switch, setting watermark switch, setting button prompt tone switch, 3D noise reduction switch, setting are arranged Distortion correction switch, setting record duration, resolution ratio and firmware upgrade are recorded in setting.
Optionally, in automobile data recorder and the communication means of terminal, further includes:
When module id is enquiry module mark, and the corresponding command id of module id is inquiry video state, data Parameter is camera identification;
When module id is control module mark, and the corresponding command id of module id is control live preview, data Parameter is to open preview and closing preview;When the corresponding command id of module id is control video recording, data parameters are to start to record Picture and stopping video recording;When the corresponding command id of module id is control recording, data parameters are to start recording of recording and stop;
When module id is setup module mark, when the corresponding command id of module id is the setting time, data parameters For time parameter;When the corresponding command id of module id is setting sensitivity, data parameters are sensitivity parameter;Module id When corresponding command id is setting language, data parameters are category of language;The corresponding command id of module id is that setting is white When balance, data parameters are white balance parameter;When the corresponding command id of module id is setting exposure, data parameters are to expose Photometric parameter;When the corresponding command id of module id is setting light source frequency, data parameters are light source frequency parameter;Module mark Know corresponding command id to switch for setting voice broadcast, watermark switch, setting button prompt tone switch, setting 3D noise reduction is arranged When switch or setting distortion correction switch, data parameters are to open and close;The corresponding command id of module id is setting record When duration processed, data parameters are time parameter;When the corresponding command id of module id is that resolution ratio is recorded in setting, data parameters For resolution parameter.
Illustratively, when module id is that enquiry module identifies, the corresponding command id of module id is inquiry video recording When state, the received control message of automobile data recorder be can be, 1FFF 00 01 01 00 (check code summary), the control message Specific explanations are as shown in table 1.Referring to table 1, the 1FFF of corresponding 2 byte of serial number 1 is frame head mark;Corresponding 1 byte of serial number 2 00 representation module is identified as enquiry module;The 01 of corresponding 1 byte of serial number 3 indicates that the corresponding command id of enquiry module is inquiry Video state;The 01 of corresponding 1 byte of serial number 4 is data parameters length;Serial number 5 corresponding 00 is data parameters, this data ginseng Number is it is believed that for sky;The data of corresponding 4 byte of data 6 are check code, which does not show in control message, the verification Code can be cyclic redundancy check.
Table 1
At this point, the feedback message for being sent to terminal can after automobile data recorder is by calling enquiry module to inquire video state To be, 1F FF 00 01 01 01 (check code summary), the specific explanations of the feedback message are as shown in table 2.Referring to table 2, serial number 1 The 1FFF of corresponding 2 byte is frame head mark;00 representation module of corresponding 1 byte of serial number 2 is identified as enquiry module;Serial number 3 The 01 of corresponding 1 byte indicates that the corresponding command id of enquiry module is inquiry video state;The 01 of corresponding 1 byte of serial number 4 For data parameters length;Serial number 5 corresponding 01 is data parameters, this data parameters corresponds to preceding road and recording a video;Data 6 are corresponding The data of 4 bytes are check code, which does not show in control message, which can be cyclic redundancy check.Wherein, Its corresponding numerical parameter can retain when no way of escape camera, and the video state of multi-path camera can also be arranged.
Table 2
Wherein, the state of each function of automobile data recorder can pass through feedback after the control instruction for receiving terminal transmission Message feedback can also automatically generate feedback message when each functional status changes and feed back to terminal to terminal.
Wherein, all disclosed numerical value are all illustrative examples in the present embodiment, frame head can be identified according to the actual situation, Each module id, the corresponding command id of each module, data parameters length, data parameters and check code sequence, numerical value and word Joint number is modified.It can also be according to the actual situation in the control message and feedback message write according to communications protocol format Content item is also increased, deleted and is replaced.It can also be according to the actual situation to the corresponding respond module of module id, command id Corresponding operation object and the corresponding numerical value of data parameters are increased, deleted and are replaced.
The communication means of automobile data recorder provided in this embodiment and terminal has carried out in detail self-defining communication protocol format The shorter and smaller refining of communication protocol that is thin to define, providing in the present embodiment, occupied bandwidth is small, can not only be passed by internetwork connection mode It is defeated, it can also be transmitted by connection types such as serial ports, communication has clear superiority on low bandwidth interface channel.In addition, this implementation Example and above-described embodiment inventive concept having the same, the technical detail of detailed description not can be found in above-mentioned reality in the present embodiment Example is applied, and the present embodiment can reach beneficial effect same as the previously described embodiments.
Embodiment three
The present embodiment, for the communication means for improving automobile data recorder and terminal, provides on the basis of the various embodiments described above The embodiment that http-server is installed in automobile data recorder, so that terminal can pass through http protocol access automobile data recorder Resource file.Same as the previously described embodiments or corresponding term explains that this embodiment is not repeated.
Optionally, the communication means of automobile data recorder and terminal, further includes:
Start http-server, when receiving the http request of terminal transmission, local resource is searched according to http request File, and resource file is sent to terminal.
Wherein it is possible to install http-server additional on automobile data recorder in advance.Start http-server in automobile data recorder Afterwards, if desired terminal accesses the photo stored on automobile data recorder, ordinary video or locks the automobile data recorders such as video and locally provides When source file, http request can be sent to automobile data recorder according to http agreement.Automobile data recorder is receiving terminal transmission Http request when, can be according to the corresponding local resource file of the address search for including in http request.
In a kind of automobile data recorder provided in this embodiment and the communication means of terminal, http is installed in automobile data recorder Server, so that terminal can pass through the resource file of http protocol access automobile data recorder.In addition, the present embodiment and above-mentioned reality Example inventive concept having the same is applied, the technical detail of detailed description not can be found in above-described embodiment in the present embodiment, and The present embodiment can reach beneficial effect same as the previously described embodiments.
Example IV
A kind of automobile data recorder is present embodiments provided, can be used for automobile data recorder and communicated with terminal.Fig. 3 is the present invention A kind of structural schematic diagram for automobile data recorder that example IV provides.Referring to Fig. 3, which includes:
One or more processors 310;
Memory 320, for storing one or more programs;
When one or more of programs are executed by one or more of processors 310, so that one or more of Processor 310 realizes the communication means of the automobile data recorder and terminal that propose such as embodiment one to three.
In Fig. 3 by taking a processor 310 as an example;Processor 310 and memory 320 can be connected by bus or other modes It connects, in Fig. 3 for being connected by bus.
Memory 320 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, such as automobile data recorder program instruction/module corresponding with the communication means of terminal in the embodiment of the present invention.Place Software program, instruction and the module that reason device 310 is stored in memory 320 by operation, thereby executing automobile data recorder The communication means of above-mentioned automobile data recorder and terminal is realized in various function application and data processing.
Memory 320 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created number according to automobile data recorder According to etc..In addition, memory 320 may include high-speed random access memory, it can also include nonvolatile memory, such as extremely A few disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 320 It can further comprise the memory remotely located relative to processor 310, these remote memories can be by being connected to the network extremely Automobile data recorder.The example of above-mentioned network include but is not limited to internet, intranet, local area network, mobile radio communication and its Combination.
In addition, in addition to processor 310 and memory 320, automobile data recorder may be used also according to the different form of automobile data recorder To include other modules or structure, for example, automobile data recorder can be the terminal with audio playing function, then it further include loudspeaking Device;For another example, automobile data recorder can be the terminal with touch function, then further includes Touch Screen, be used for display control interface, Touch control operation is carried out in control interface for user.
The automobile data recorder and automobile data recorder that the automobile data recorder and embodiment one to three that the present embodiment proposes propose Communication means belongs to same inventive concept, and the technical detail of detailed description not can be found in embodiment one to three in the present embodiment, And the present embodiment and the beneficial effect having the same of embodiment one to three.
Embodiment five
The present embodiment provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed The communication means of the automobile data recorder and terminal that propose such as embodiment one to three is realized when device executes.
The automobile data recorder and terminal that the computer readable storage medium and embodiment one to three that the present embodiment proposes propose Communication means belong to same inventive concept, not in the present embodiment the technical detail of detailed description can be found in embodiment one to Three, and the present embodiment and the beneficial effect having the same of embodiment one to three.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. the communication means of a kind of automobile data recorder and terminal characterized by comprising
The control message that terminal is sent is received, wherein the control message includes module id, the corresponding order mark of module id Knowledge and data parameters, wherein the control message is write according to self-defining communication protocol format;
Respond module is determined according to module id, according to the corresponding command id of module id and data state modulator respond module It is responded;
The response results of module and self-defining communication protocol format generate feedback message according to response, and by the feedback message It is sent to terminal.
2. the method according to claim 1, wherein the self-defining communication protocol format, including it is following at least One: content item, size of content item and the content item sequence of message.
3. the method according to claim 1, wherein described according to the corresponding command id of module id and data State modulator respond module is responded, comprising:
Judge whether data parameters are empty;
If it is not, then being responded according to the corresponding command id of module id and data state modulator respond module;
If so, being responded according to the corresponding command id control response module of module id.
4. the method according to claim 1, wherein being gone back before the control message that the reception terminal is sent It include: to establish connection with terminal, wherein the connection WIFI connection, data network connection, bluetooth connection, radio frequency connection or serial ports Connection.
5. the method according to claim 1, wherein further include:
The first heartbeat message that terminal is sent is received, the connection with terminal is kept according to first heartbeat message;
Second heartbeat message is sent to terminal, so that terminal keeps connecting according to second heartbeat message and automobile data recorder It connects.
6. the method according to claim 1, wherein the module id includes at least one of following: inquiry mould Block identification, control module mark and setup module mark;Correspondingly,
When module id is that enquiry module identifies, the corresponding command id of module id includes at least one of following: inquiry is real When preview state, inquiry video state, inquiry video recording parameter, inquiry take pictures state, inquiry recording state, inquiry SD card state, Stop monitor state and recorder version information;
When module id is that control module identifies, the corresponding command id of module id includes at least one of following: control is real When preview, control video recording, control take pictures and control recording;
When module id is that setup module identifies, the corresponding command id of module id includes at least one of following: when setting Between, format SD card, restore factory, setting collision sensitivity, setting language, setting white balance, setting exposure, setting light source Frequency, setting voice broadcast switch, setting watermark switch, setting button prompt tone switch, 3D noise reduction switch, setting distortion are arranged Correction switch, setting record duration, resolution ratio and firmware upgrade are recorded in setting.
7. according to the method described in claim 5, it is characterised by comprising:
When module id is enquiry module mark, and the corresponding command id of module id is inquiry video state, data parameters For camera identification;
When module id is control module mark, and the corresponding command id of module id is control live preview, data parameters To open preview and closing preview;The corresponding command id of module id be control video recording when, data parameters be start video recording and Stop video recording;When the corresponding command id of module id is control recording, data parameters are to start recording of recording and stop;
When module id is setup module mark, when the corresponding command id of module id is the setting time, when data parameters are Between parameter;When the corresponding command id of module id is setting sensitivity, data parameters are sensitivity parameter;Module id is corresponding Command id be setting language when, data parameters are category of language;The corresponding command id of module id is setting white balance When, data parameters are white balance parameter;When the corresponding command id of module id is setting exposure, data parameters are exposure Parameter;When the corresponding command id of module id is setting light source frequency, data parameters are light source frequency parameter;Module id pair The command id answered is that setting voice broadcast switchs, setting watermark switch, setting button prompt tone switch, setting 3D noise reduction switch Or when setting distortion correction switch, data parameters are to open and close;When the corresponding command id of module id is that setting is recorded When long, data parameters are time parameter;When the corresponding command id of module id is that resolution ratio is recorded in setting, data parameters are point Resolution parameter.
8. the method according to claim 1, wherein further include:
Start http-server, when receiving the http request of terminal transmission, local resource is searched according to the http request File, and the resource file is sent to terminal.
9. a kind of automobile data recorder, which is characterized in that the automobile data recorder includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as the communication means of automobile data recorder described in any one of claims 1-8 and terminal.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The communication means such as automobile data recorder described in any one of claims 1-8 and terminal is realized when execution.
CN201811448794.2A 2018-11-28 2018-11-28 Communication method between automobile data recorder and terminal, automobile data recorder and storage medium Active CN109392191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811448794.2A CN109392191B (en) 2018-11-28 2018-11-28 Communication method between automobile data recorder and terminal, automobile data recorder and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811448794.2A CN109392191B (en) 2018-11-28 2018-11-28 Communication method between automobile data recorder and terminal, automobile data recorder and storage medium

Publications (2)

Publication Number Publication Date
CN109392191A true CN109392191A (en) 2019-02-26
CN109392191B CN109392191B (en) 2021-03-09

Family

ID=65430173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811448794.2A Active CN109392191B (en) 2018-11-28 2018-11-28 Communication method between automobile data recorder and terminal, automobile data recorder and storage medium

Country Status (1)

Country Link
CN (1) CN109392191B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336650A (en) * 2019-07-02 2019-10-15 苏州华兴源创科技股份有限公司 A kind of Signalling exchange system and method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067405A (en) * 2013-01-11 2013-04-24 深圳市盛视科技有限公司 Method and device for cross-network safe transmission
US20130238185A1 (en) * 2012-03-07 2013-09-12 Cheng-Yi Cho Car video device enabling wireless transmission to and from portable communication device
CN105049767A (en) * 2015-08-18 2015-11-11 深圳市为有视讯有限公司 Method for generating photographing associated short video through picture pick-up device and downloading and playing short video
CN105160837A (en) * 2015-09-29 2015-12-16 爱培科科技开发(深圳)有限公司 Driving alarm information via-cloud acquisition method and system based mobile terminal
CN105721557A (en) * 2016-01-25 2016-06-29 深圳市为有视讯有限公司 Vehicle-mounted information transmission system
CN105869233A (en) * 2016-03-25 2016-08-17 奇瑞汽车股份有限公司 Travel recorder for realizing intelligent interaction, and control method thereof
CN106327609A (en) * 2015-07-07 2017-01-11 北京易车互联信息技术有限公司 Control method, device and system for automobile data recorder
CN106340162A (en) * 2015-07-07 2017-01-18 北京易车互联信息技术有限公司 Automobile data recorder, control method, device and system thereof
CN107818610A (en) * 2017-11-22 2018-03-20 深圳市沃特沃德股份有限公司 The method and device of remotely controlling vehicle mounted systematic collaboration drive recorder shooting
US20180088891A1 (en) * 2016-09-28 2018-03-29 Beijing Xiaomi Mobile Software Co., Ltd. Display method, display apparatus and driving recorder

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130238185A1 (en) * 2012-03-07 2013-09-12 Cheng-Yi Cho Car video device enabling wireless transmission to and from portable communication device
CN103067405A (en) * 2013-01-11 2013-04-24 深圳市盛视科技有限公司 Method and device for cross-network safe transmission
CN106327609A (en) * 2015-07-07 2017-01-11 北京易车互联信息技术有限公司 Control method, device and system for automobile data recorder
CN106340162A (en) * 2015-07-07 2017-01-18 北京易车互联信息技术有限公司 Automobile data recorder, control method, device and system thereof
CN105049767A (en) * 2015-08-18 2015-11-11 深圳市为有视讯有限公司 Method for generating photographing associated short video through picture pick-up device and downloading and playing short video
CN105160837A (en) * 2015-09-29 2015-12-16 爱培科科技开发(深圳)有限公司 Driving alarm information via-cloud acquisition method and system based mobile terminal
CN105721557A (en) * 2016-01-25 2016-06-29 深圳市为有视讯有限公司 Vehicle-mounted information transmission system
CN105869233A (en) * 2016-03-25 2016-08-17 奇瑞汽车股份有限公司 Travel recorder for realizing intelligent interaction, and control method thereof
US20180088891A1 (en) * 2016-09-28 2018-03-29 Beijing Xiaomi Mobile Software Co., Ltd. Display method, display apparatus and driving recorder
CN107818610A (en) * 2017-11-22 2018-03-20 深圳市沃特沃德股份有限公司 The method and device of remotely controlling vehicle mounted systematic collaboration drive recorder shooting

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金桐: ""无线数据通信记录仪系统设计"", 《工程科技Ⅱ辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336650A (en) * 2019-07-02 2019-10-15 苏州华兴源创科技股份有限公司 A kind of Signalling exchange system and method
CN110336650B (en) * 2019-07-02 2022-03-22 苏州华兴源创科技股份有限公司 Signaling interaction system and method

Also Published As

Publication number Publication date
CN109392191B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US11227598B2 (en) Method for controlling terminal by voice, terminal, server and storage medium
US20030187646A1 (en) Method of and apparatus for configuring and controlling home entertainment systems through natural language and spoken commands using a natural language server
US20150146881A1 (en) Audio output device to dynamically generate audio ports for connecting to source devices
CN106254468B (en) A kind of control system and method for intelligent back vision mirror
CN110336892B (en) Multi-device cooperation method and device
CN111694625B (en) Method and equipment for projecting screen from car box to car machine
CN107911424A (en) A kind of read-on-command function interacted with client realizes system, method and intelligent watch
US20060269220A1 (en) Reproducing system, reproducing apparatus, receiving and reproducing apparatus, and reproducing method
CN111752538B (en) Method and device for generating vehicle end scene, cloud end, vehicle end and storage medium
CN109065050A (en) A kind of sound control method, device, equipment and storage medium
CN108848410A (en) Bluetooth audio frequency transmission method, device and computer readable storage medium
CN108419108A (en) Sound control method, device, remote controler and computer storage media
CN109392191A (en) Automobile data recorder and the communication means of terminal, automobile data recorder and storage medium
CN104615432A (en) Splash screen information handling method and customer terminal
CN110781014A (en) Recording data multi-process distribution method and system based on Android device
CN113703849A (en) Screen-casting application opening method and device
US20180352040A1 (en) Method for data transmission in a transportation vehicle communication network, transportation vehicle communication network, subscribers and transportation vehicle
US8370880B2 (en) Telephone control service
CN113827953B (en) Game control system
CN113553048A (en) Low-code fusion communication integrated system
CN114866990A (en) Vehicle-mounted data processing method and device, vehicle and storage medium
CN111225313B (en) Vehicle-mounted sound resource interaction system
CN113301059A (en) Method and system for realizing interconnection of car box and car machine and related equipment
CN113098931B (en) Information sharing method and multimedia session terminal
WO2022222295A1 (en) In-vehicle video surveillance method and system, storage medium, and in-vehicle terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant