CN108551475A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN108551475A
CN108551475A CN201810252286.0A CN201810252286A CN108551475A CN 108551475 A CN108551475 A CN 108551475A CN 201810252286 A CN201810252286 A CN 201810252286A CN 108551475 A CN108551475 A CN 108551475A
Authority
CN
China
Prior art keywords
data
parameter
code
transmission
protocol
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.)
Pending
Application number
CN201810252286.0A
Other languages
Chinese (zh)
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 Water World Co Ltd
Original Assignee
Shenzhen Water World 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 Water World Co Ltd filed Critical Shenzhen Water World Co Ltd
Priority to CN201810252286.0A priority Critical patent/CN108551475A/en
Priority to PCT/CN2018/082025 priority patent/WO2019184000A1/en
Publication of CN108551475A publication Critical patent/CN108551475A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/008Registering or indicating the working of vehicles communicating information to a remotely located station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Present invention is disclosed a kind of data transmission method and devices, the described method comprises the following steps:Obtain the corresponding code of parameter to be transmitted;Parameter, code and conventional data are synthesized into protocol data according to preset protocol format;Outside transmission protocol data.A kind of data transmission method that the embodiment of the present invention is provided, by for the corresponding code of parametric distribution, the type of identification parameter is parsed using code, so that parameter of the mobile unit without transmitting fixed type every time, but the parameter needed according to actual conditions transmission, therefore the flexibility for improving data transmission, saves data traffic and bandwidth resources, reduces the burden of server.On this basis, user can also increase new parameter detecting function as needed, and mobile unit only need to be one code of parametric distribution increased newly, to substantially increase the autgmentability of function.

Description

Data transmission method and device
Technical field
The present invention relates to vehicle technology field, a kind of data transmission method and device are especially related to.
Background technology
With the rapid development of technology of Internet of things, the function of mobile unit is more and more abundant.Mobile unit can be to service Device uploads vehicle device alert data, vehicle device real time data etc., and user can then obtain this in real time by terminal device logs server A little data.
Currently, mobile unit with fixed protocol format to server upload data, the type of the parameter uploaded every time, And putting in order for parameter is all changeless.For example, agreement regulation uploads longitude, latitude, speed, mileage four every time Kind parameter, and four kinds of parameters must sort successively, otherwise server can not parse.
Above-mentioned data transfer mode has following drawback:
One, due to transmit the data of fixed type every time, and the data needed can not be uploaded according to actual conditions, lead The waste of data traffic and bandwidth resources has been caused, and has increased the burden of server.
Two, new parameter detecting function can not be increased on the basis of existing protocol format, it is necessary to redefine agreement lattice Formula, and protocol format is once redefined, protocol format before will be also compatible with, because hardware is not square after to user's use Just it will appear the situation incompatible with hardware other modules when upgrading, and upgrade, cause function expansibility poor.
Therefore, the flexibility of data transmission how is improved, data traffic and bandwidth resources are saved, reduces the negative of server The technical issues of load is current urgent need to resolve.
Invention content
The main object of the present invention is to provide a kind of data transmission method and device, it is intended to improve the flexible of data transmission Property, data traffic and bandwidth resources are saved, the burden of server is reduced.
To achieve these objectives, the embodiment of the present invention proposes a kind of data transmission method, the described method comprises the following steps:
Obtain the corresponding code of parameter to be transmitted;
The parameter, the code and conventional data are synthesized into protocol data according to preset protocol format;
The protocol data is transmitted outward.
Optionally, described that the parameter, the code and conventional data are synthesized by agreement according to preset protocol format The step of data includes:
It is content-data by the code and the parameter combination;
The content-data and the conventional data are combined as the protocol data.
Optionally, described to include for the step of content-data by the code and the parameter combination:
Before the code is placed in the parameter, a character string is formed.
Optionally, the described the step of content-data and the conventional data are combined as the protocol data, includes: The content-data is inserted into the position between two conventional datas, is combined as the protocol data.
Optionally, described two conventional datas are respectively device number and validation value.
Optionally, the parameter at least one, each parameter correspond to a code.
Optionally, further include before described the step of obtaining parameter to be transmitted corresponding code:
When receiving the request of detection function of newly-increased target component, increase target component detection function;
Corresponding code is distributed for the target component.
Optionally, further include before described the step of obtaining parameter to be transmitted corresponding code:
Detect whether the condition for meeting configured transmission;
When meeting the condition of configured transmission, get parms.
Optionally, the step of condition for detecting whether to meet configured transmission includes:
Judge the current time for whether reaching configured transmission according to preset time rule;
If so, judgement meets the condition of configured transmission.
Optionally, the step of condition for detecting whether to meet configured transmission includes:
Judge whether parameter reaches warning value according to preset warning rule;
If so, judgement meets the condition of configured transmission.
The embodiment of the present invention proposes that a kind of data transmission device, described device include simultaneously:
Code obtaining module, for obtaining the corresponding code of parameter to be transmitted;
Data Synthesis module, for being synthesized the parameter, the code and conventional data according to preset protocol format For protocol data;
Data transmission module, for transmitting the protocol data outward.
Optionally, the Data Synthesis module includes:
First assembled unit, for being content-data by the code and the parameter combination;
Second assembled unit, for the content-data and the conventional data to be combined as the protocol data.
Optionally, first assembled unit is used for:Before the code is placed in the parameter, a character is formed String.
Optionally, second assembled unit is used for:The content-data is inserted into the position between two conventional datas It sets, is combined as the protocol data.
Optionally, described device further includes function opening module, and the function opening module includes:
Adding unit, for when receiving the request of detection function of newly-increased target component, increasing target component detection Function;
Allocation unit, for distributing corresponding code for the target component.
Optionally, described device further includes parameter acquisition module, and the parameter acquisition module includes:
Detection unit, for detecting whether meeting the condition of configured transmission;
Acquiring unit, for when meeting the condition of configured transmission, getting parms.
Optionally, the detection unit includes:
First judging unit, for judging the current time for whether reaching configured transmission according to preset time rule;
First judging unit, if the time for currently reaching configured transmission, judgement meets the condition of configured transmission.
Optionally, the detection unit includes:
Second judgment unit, for judging whether parameter reaches warning value according to preset warning rule;
Second judging unit, if reaching warning value for parameter, judgement meets the condition of configured transmission.
The embodiment of the present invention also proposes a kind of mobile unit comprising memory, processor and at least one is stored in In the memory and it is configured as the application program executed by the processor, the application program is configurable for executing Aforementioned data transmission method.
A kind of data transmission method that the embodiment of the present invention is provided, by for the corresponding code of parametric distribution, utilizing generation Code parses the type of identification parameter so that parameter of the mobile unit without transmitting fixed type every time, but according to reality The parameter that situation transmission needs, therefore the flexibility of data transmission is improved, data traffic and bandwidth resources are saved, is reduced The burden of server.On this basis, user can also increase new parameter detecting function as needed, and mobile unit need to be only Newly-increased one code of parametric distribution, to substantially increase the autgmentability of function.
Description of the drawings
Fig. 1 is the flow chart of the data transmission method first embodiment of the present invention;
Fig. 2 is the mapping table of code and parameter in the embodiment of the present invention;
Fig. 3 is the flow chart of the data transmission method second embodiment of the present invention;
Fig. 4 is the module diagram of the data transmission device first embodiment of the present invention;
Fig. 5 is the module diagram of the Data Synthesis module in Fig. 4;
Fig. 6 is the module diagram of the parameter acquisition module in Fig. 4;
Fig. 7 is the module diagram of the detection unit in Fig. 6;
Fig. 8 is the module diagram of the detection unit in Fig. 6;
Fig. 9 is the module diagram of the data transmission device second embodiment of the present invention;
The module diagram of function opening module in Figure 10 Fig. 9.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
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.
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges It refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition to take leave " comprising " Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange Diction "and/or" includes that the whole of one or more associated list items or any cell are combined with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific terminology), there is meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless by specific definitions as here, the meaning of idealization or too formal otherwise will not be used To explain.
It includes wireless communication that those skilled in the art of the present technique, which are appreciated that " terminal " used herein above, " terminal device " both, The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and includes receiving and transmitting hardware Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment May include:Honeycomb or other communication equipments are shown with single line display or multi-line display or without multi-line The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal Digital assistants), may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its His equipment." terminal " used herein above, " terminal device " they can be portable, can transport, be mounted on the vehicles (aviation, Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet Equipment) and/or mobile phone with music/video playing function, can also be the equipment such as smart television, set-top box.
Those skilled in the art of the present technique are appreciated that server used herein above comprising but it is not limited to computer, net The cloud that network host, single network server, multiple network server collection or multiple servers are constituted.Here, cloud is by being based on cloud meter The a large amount of computers or network server for calculating (Cloud Computing) are constituted, wherein cloud computing is the one of Distributed Calculation Kind, a super virtual computer being made of the computer collection of a group loose couplings.In the embodiment of the present invention, server, Between terminal device and WNS servers can by any communication mode realize communicate, including but not limited to, be based on 3GPP, LTE, The mobile communication of WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, Infrared Transmission standard Low coverage wireless transmission method.
The data transmission method of the embodiment of the present invention, is mainly used in mobile unit, naturally it is also possible to be applied to others Electronic equipment, such as smart home device, mobile terminal, PC, this is not limited by the present invention.Below to be applied to vehicle It is described in detail for load equipment.
Referring to Fig.1, the data transmission method first embodiment for proposing the present invention, the described method comprises the following steps:
S11, the corresponding code of parameter to be transmitted is obtained.
In the embodiment of the present invention, mobile unit is the corresponding code of each parametric distribution.It needs to transmit when there is parameter When, mobile unit then obtains the corresponding code of parameter to be transmitted.The parameter transmitted every time can be a kind of, can also be two kinds Or it is a variety of, when at least two parameters, then the code of each parameter is obtained respectively.
Described parameter such as speed, mileage, longitude, dimension, tire pressure, igniting/flameout state etc..The code can be several Word, letter, symbol etc., such as 01,02,03, AA, BB.
As shown in Fig. 2, for the mapping table of parameter and code in the embodiment of the present invention.Wherein, parameter includes speed, point Fire/flameout state, tire pressure, longitude, latitude etc., their corresponding codes are 01,02,03,04,05 etc..
Further, before step S11, mobile unit also obtains the parameter for needing to transmit, specifically, mobile unit is examined The condition whether survey meets configured transmission gets parms when meeting the condition of configured transmission.
When parameter is vehicle device hardware data, since hardware data will not generally be changed, mobile unit is only in user (or when mobile unit and external equipment successful connection for the first time) outside transmission primaries, i.e., ought detect user's registration when succeeding in registration When success (or when mobile unit and external equipment successful connection for the first time), mobile unit then judges to meet transmission vehicle device hardware data The condition of this parameter.
When parameter is vehicle device software version (such as vehicle device versions, vehicle system version), mobile unit is noted in user (or when mobile unit and external equipment successful connection for the first time) outside transmission primaries when volume success, whenever software version update, Outside transmission primaries again.It ought detect user registration success (or mobile unit and external equipment successful connection for the first time) or software When version updating, mobile unit then judges the condition for meeting transmission this parameter of vehicle device software version.
When parameter is vehicle device alert data, warning value is arranged according to actual conditions in system, and user can also be according to reality It needs that warning value is arranged, and warning rule is produced according to warning value, mobile unit judges vehicle device report according to preset warning rule Whether alert this parameter of data reaches warning value, and when reaching warning value, judgement meets transmission this parameter of vehicle device alert data Condition.
Such as:When speed is more than warning value, then judgement meets the condition of transmission speed data, to carry out overspeed alarming; When acceleration is more than warning value, then judgement meets the condition of transmission acceleration, to carry out the anxious alarm of slowing down of anxious acceleration;Work as position When data (such as longitude and latitude) are more than warning value, then judgement meets the condition of transmission location data, to carry out fence alarm.
When parameter is run-length data, mobile unit, which can light a fire/stop working according to user, is used as a stroke, uploads stroke Data.I.e. when detecting that vehicle is switched to flameout state from fired state, judgement meets transmission this parameter of run-length data Condition.
When parameter is vehicle device real time data (such as longitude and latitude, speed, fired state, tire pressure), mobile unit is according to pre- If time rule judge currently whether reach transmission this parameter of vehicle device real time data time, if so, judgement meet pass The condition of defeated this parameter of vehicle device real time data.The time rule such as periodically transmission of transmission or timing, such as every 30 seconds transmission primaries, daily some or certain several moment transmission primaries etc..
S12, code, parameter and conventional data are synthesized by protocol data according to preset protocol format.
The embodiment of the present invention has preset protocol format, includes the group of the composition format and final protocol data of content-data At format.Code and parameter combination are first content-data by mobile unit, such as before code is placed in parameter, form one Character string, naturally it is also possible to which code is placed in after parameter.Then, content-data and conventional data are combined as assisting by mobile unit Data are discussed, for example content-data is inserted into the position between two conventional datas, are combined as protocol data.
For example, the composition format of protocol data is as follows:
First symbol protocol number device number content-data validation value time end mark
The protocol data includes conventional data and content-data, and conventional data includes first symbol, protocol number, device number, tests Card value, time and end mark, content-data are inserted into the position between two conventional datas of device number and validation value, certainly It can be inserted into other positions as needed, the present invention does not limit this.
It is content number by code and parameter combination since the initial data of the parameter of acquisition is the decimal system or state value According to before, it is also necessary to carry out system conversion to certain parameters according to actual conditions.Such as:For speed, octal system need to be converted to, Length range is 00-FF;For igniting/flameout state, binary system need to be converted to, respectively 0 and 1, such as 0 represents flame-out, 1 representative Igniting;For tire pressure, octal system, length range 0000-FFFF need to be converted to;For longitude, the decimal system, length is kept to fix It it is ten, front three is the number before decimal point, last position 1 represents east longitude, and 0 represents west longitude, and vice versa, such as 1139207991 represent east longitude 113.920799.
S13, outside transmission protocol data.
In the embodiment of the present invention, mobile unit is to server uploading protocol data, and server is according to preset protocol format Protocol data is resolved into user data, and is stored, then active or terminal device according to user request, to end End equipment sends user data.Terminal device receives user data and is exported, and such as shows on a display screen.
For example, it is assumed that the protocol data that server receives is:
28 01 656565 030050 68 180203 142723 29
Server resolves to protocol data:First symbol 28, protocol number 01, device number 656565, content-data 030050, Validation value 68, time 180,203 142723, end mark 29.Wherein, in content-data 030050,03 represents tire pressure, and 0050 is eight Binary data, it is 80 to be converted to the decimal system then, illustrates that tire pressure is 80kpa;Time 180,203 142723 represents on 2 3rd, 2018 14 points 23 seconds 27 minutes.
Content-data in aforementioned protocols data only includes one parameter of tire pressure, and in a particular application, content-data also may be used To include two or more parameters, because each parameter has corresponding code, therefore server can go out according to code analysis Different parameters.
In the specific implementation, user can install specific using (APP) on the terminal device, by applying login service Device and register account number, and corresponding vehicle and mobile unit are bound, mobile unit, server and terminal device establish communication successively Connection, and transmission data, certain mobile unit can also be established with terminal device and be communicated to connect.
In certain embodiments, protocol data can also be directly sent to the terminal device of user, terminal by mobile unit Equipment receives after protocol data according to preset protocol format analysis protocol data, obtains user data, and exported, such as It shows on a display screen.
To which mobile unit is more flexible in transmission data, transmits necessary data according only to actual needs every time, subtracts The transmission quantity for having lacked data, saves data traffic and bandwidth resources, reduces the pressure of server.
Further, it as shown in figure 3, in the data transmission method second embodiment of the present invention, is also wrapped before step S11 Include following steps:
S09, when receiving the request of detection function of newly-increased target component, increase target component detection function.
S10, corresponding code is distributed for target component.
In the present embodiment, user can the self-defined detection function for increasing some parameters.Mobile unit receives new gaining When marking the request of the detection function of parameter, then increase target component detection function, and corresponding code is distributed for target component.
For example, user, which is vehicle, installs tire pressure peripheral hardware, tire pressure peripheral data can pass through USB interface or serial port form and vehicle Carry equipment unicom.Terminal device receives the instruction that user opens tire pressure detection function by application, and at present soft is shown to user All peripheral hardwares that part version can be adapted to, user then select corresponding peripheral hardware.Terminal device is sent to server opens tire pressure inspection The request of brake, server forward the request to mobile unit.After mobile unit receives request, vehicle device basic training is analyzed Whether include tire pressure detection function in energy, if it is not, increasing tire pressure detection function in vehicle device basic function, and is tire pressure Corresponding code is distributed, while the tire pressure detection function in basic function is started into code with real time data mould tire pressure in the block and is closed Connection.Follow-up real time data module will increase the detection of tire pressure, and tire pressure data are then attached to vehicle device real time data by mobile unit In, it is uploaded to server.User enters the vehicle device page by terminal device or refreshes the page, and terminal device sends request The real time data of vehicle device is obtained to server, and shows user, and user can check that the vehicle device including tire pressure counts in real time According to.If vehicle does not have some peripheral hardware of actual installation or cancels some peripheral hardware, corresponding data will not be shown.
To which user can be that vehicle increases peripheral hardware, and then increases corresponding parameter detecting function according to actual needs, carry The autgmentability of function is risen.
The data transmission method of the embodiment of the present invention, by for the corresponding code of parametric distribution, being known to parse using code The type of other parameter so that mobile unit transmits need without transmitting the parameter of fixed type every time according to actual conditions The parameter wanted, therefore the flexibility of data transmission is improved, data traffic and bandwidth resources are saved, the negative of server is reduced Load.On this basis, user can also increase new parameter detecting function as needed, and mobile unit need to be only the parameter increased newly A code is distributed, to substantially increase the autgmentability of function.
Using the data transmission method of the embodiment of the present invention, have the advantages that:
(1), transmission data can adaptively practical peripheral hardware or according to user's actual requirement adjust, more humane transmission Data, application is strong, and data peripheral hardware is without limitation.
(2), safety is not lost.No matter original agreement or new agreement, the verification of safety is necessary, prevents malice Attack server.
(3), software upgrading does not interfere with use.Even if being simply updated the format of content-data if software upgrading, if certain Definition before a parameter is unreasonable (such as the range of speed is too small), can increase data format newly, original format will not change.
With reference to Fig. 4, the data transmission device first embodiment of the present invention is proposed, described device includes Code obtaining module 10, Data Synthesis module 20 and data transmission module 30, wherein:Code obtaining module 10, for obtaining parameter pair to be transmitted The code answered;Data Synthesis module 20, for parameter, code and conventional data to be synthesized agreement according to preset protocol format Data;Data transmission module 30 is used for outside transmission protocol data.
In the embodiment of the present invention, for the corresponding code of each parametric distribution.When there is parameter to need transmission, code obtains Modulus block 10 then obtains the corresponding code of parameter to be transmitted.The parameter transmitted every time can be a kind of, can also be two kinds or Person is a variety of, and when at least two parameters, Code obtaining module 10 then obtains the code of each parameter respectively.
Described parameter such as speed, mileage, longitude, dimension, tire pressure, igniting/flameout state etc..The code can be several Word, letter, symbol etc., such as 01,02,03, AA, BB.
As shown in Fig. 2, for the mapping table of parameter and code in the embodiment of the present invention.Wherein, parameter includes speed, point Fire/flameout state, tire pressure, longitude, latitude etc., their corresponding codes are 01,02,03,04,05 etc..
The embodiment of the present invention has preset protocol format, includes the group of the composition format and final protocol data of content-data At format.As shown in figure 5, Data Synthesis module 20 includes the first assembled unit 21 and the second assembled unit 22, wherein:First group Unit 21 is closed, for being content-data by code and parameter combination, such as before code is placed in parameter, forms a character String, naturally it is also possible to which code is placed in after parameter;Second assembled unit 22, for content-data and conventional data to be combined as Protocol data, for example content-data is inserted into the position between two conventional datas, it is combined as protocol data.
For example, the composition format of protocol data is as follows:
First symbol protocol number device number content-data validation value time end mark
The protocol data includes conventional data and content-data, and conventional data includes first symbol, protocol number, device number, tests Content-data can be inserted into two general numbers of device number and validation value by card value, time and end mark, the second assembled unit 22 Position between, naturally it is also possible to be inserted into other positions as needed, the present invention does not limit this.
It is content number by code and parameter combination since the initial data of the parameter of acquisition is the decimal system or state value According to before, the first assembled unit 21 also needs to carry out system conversion to certain parameters according to actual conditions.Such as:For speed, Octal system, length range 00-FF need to be converted to;For igniting/flameout state, binary system need to be converted to, respectively 0 and 1, such as 0 represents flame-out, 1 representative igniting;For tire pressure, octal system, length range 0000-FFFF need to be converted to;For longitude, keep The decimal system, length are fixed as ten, and front three is the number before decimal point, last position 1 represents east longitude, and 0 represents west longitude, instead Also can, such as 1139207991 represent east longitude 113.920799.
In the embodiment of the present invention, data transmission module 30 is to server uploading protocol data, and server is according to preset association Protocol data is resolved to user data by view format, and is stored, then active or terminal device according to user ask It asks, user data is sent to terminal device.Terminal device receives user data and is exported, and such as shows on a display screen.
For example, it is assumed that the protocol data that server receives is:
28 01 656565 030050 68 180203 142723 29
Server resolves to protocol data:First symbol 28, protocol number 01, device number 656565, content-data 030050, Validation value 68, time 180,203 142723, end mark 29.Wherein, in content-data 030050,03 represents tire pressure, and 0050 is eight Binary data, it is 80 to be converted to the decimal system then, illustrates that tire pressure is 80kpa;Time 180,203 142723 represents on 2 3rd, 2018 14 points 23 seconds 27 minutes.
Content-data in aforementioned protocols data only includes one parameter of tire pressure, and in a particular application, content-data also may be used To include two or more parameters, because each parameter has corresponding code, therefore server can go out according to code analysis Different parameters.
In certain embodiments, protocol data can also be directly sent to the terminal of user and set by data transmission module 30 Standby, terminal device receives after protocol data according to preset protocol format analysis protocol data, obtains user data, and give Output is such as shown on a display screen.
Further, which further includes parameter acquisition module 40, is used to obtain the parameter for needing to transmit.Specifically, Parameter acquisition module 40 as shown in fig. 6, include detection unit 41 and acquiring unit 42, wherein:Detection unit 41, for detect be The no condition for meeting configured transmission;Acquiring unit 42, for when meeting the condition of configured transmission, getting parms.
When parameter is vehicle device hardware data, since hardware data will not generally be changed, mobile unit is only in user (or when mobile unit and external equipment successful connection for the first time) outside transmission primaries, i.e. detection unit 41 detect when succeeding in registration When user registration success (or when mobile unit and external equipment successful connection for the first time), then judge to meet transmission vehicle device hardware data The condition of this parameter.
When parameter is vehicle device software version (such as vehicle device versions, vehicle system version), mobile unit is noted in user (or when mobile unit and external equipment successful connection for the first time) outside transmission primaries when volume success, whenever software version update, Outside transmission primaries again.I.e. detection unit 41 detects that (or mobile unit connects into user registration success for the first time with external equipment Work() or when software version update, mobile unit then judges the condition for meeting transmission this parameter of vehicle device software version.
When parameter is run-length data, mobile unit, which can light a fire/stop working according to user, is used as a stroke, uploads stroke Data.When i.e. detection unit 41 detects that vehicle is switched to flameout state from fired state, judgement meet transmission run-length data this The condition of kind parameter.
When parameter is vehicle device real time data (such as longitude and latitude, speed, fired state, tire pressure), detection unit 41 such as Fig. 7 It is shown, including the first judging unit 411 and the first judging unit 412, wherein:First judging unit 411, for according to preset Time rule judges currently whether reach the time of transmission this parameter of vehicle device real time data;First judging unit 412, if for The time for reaching transmission this parameter of vehicle device real time data then judges the condition for meeting transmission this parameter of vehicle device real time data. The time rule such as periodically transmission of transmission or timing, such as every 30 seconds transmission primaries, some daily or a few A moment transmission primaries etc..
When parameter is vehicle device alert data, warning value is arranged according to actual conditions in system, and user can also be according to reality It needs that warning value is arranged, and warning rule is produced according to warning value.At this point, detection unit 41 including second as shown in figure 8, judge Unit 413 and the second judging unit 414, wherein:Second judgment unit 413, for judging parameter according to preset warning rule Whether warning value is reached;Second judging unit 414, if reaching warning value for parameter, judgement meets the condition of configured transmission.
Such as:When speed is more than warning value, the second judging unit 414 then judges the condition for meeting transmission speed data, To carry out overspeed alarming;When acceleration is more than warning value, the second judging unit 414 then judges the item for meeting transmission acceleration Part, to carry out the anxious alarm of slowing down of anxious acceleration;When position data (such as longitude and latitude) is more than warning value, the second judging unit 414 is then Judgement meets the condition of transmission location data, to carry out fence alarm.
To which mobile unit is more flexible in transmission data, transmits necessary data according only to actual needs every time, subtracts The transmission quantity for having lacked data, saves data traffic and bandwidth resources, reduces the pressure of server.
Further, as shown in figure 9, in the data transmission device second embodiment of the present invention, which further includes Function opening module 50, as shown in Figure 10, function opening module 50 include adding unit 51 and allocation unit 52, wherein:Increase Unit 51, for when receiving the request of detection function of newly-increased target component, increasing target component detection function;Distribution is single Member 52, for distributing corresponding code for target component.
To which user can be that vehicle increases peripheral hardware, and then increases corresponding parameter detecting function according to actual needs, carry The autgmentability of function is risen.
The data transmission device of the embodiment of the present invention, data transmission method, by for the corresponding code of parametric distribution, utilizing Code parses the type of identification parameter so that parameter of the mobile unit without transmitting fixed type every time, but according to reality The parameter that border situation transmission needs, therefore the flexibility of data transmission is improved, data traffic and bandwidth resources are saved, is reduced The burden of server.On this basis, user can also increase new parameter detecting function as needed, and mobile unit only needs For newly-increased one code of parametric distribution, to substantially increase the autgmentability of function.
The present invention proposes a kind of mobile unit simultaneously comprising memory, processor and at least one is stored in storage In device and it is configured as the application program executed by processor, the application program is configurable for a kind of data of perform claim Transmission method.The data transmission method includes the following steps:Obtain the corresponding code of parameter to be transmitted;According to preset association Parameter, code and conventional data are synthesized protocol data by view format;Outside transmission protocol data.Described in the present embodiment Data transmission method is the data transmission method involved by above-described embodiment in the present invention, and details are not described herein.
It will be understood by those skilled in the art that the present invention includes being related to for executing one in operation described herein Or multinomial equipment.These equipment can specially be designed and be manufactured for required purpose, or can also include general-purpose computations Known device in machine.There is these equipment the computer program being stored in it, these computer programs selectively to activate Or reconstruct.Such computer program, which can be stored in equipment (for example, computer) readable medium or be stored in, to be suitable for Storage e-command is simultaneously coupled in any kind of medium of bus respectively, and the computer-readable medium includes but not limited to Any kind of disk (including floppy disk, hard disk, CD, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, it is read-only to deposit Reservoir), RAM (Random Access Memory, random access memory), EPROM (Erasable Programmable Read- Only Memory, Erarable Programmable Read only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.It is, readable Medium includes by any medium of equipment (for example, computer) storage or transmission information in the form of it can read.
Those skilled in the art of the present technique be appreciated that can with computer program instructions come realize these structure charts and/or The combination of each frame and these structure charts and/or the frame in block diagram and/or flow graph in block diagram and/or flow graph.This technology is led Field technique personnel be appreciated that these computer program instructions can be supplied to all-purpose computer, special purpose computer or other The processor of programmable data processing method is realized, to pass through the processing of computer or other programmable data processing methods Device come execute structure chart and/or block diagram and/or flow graph disclosed by the invention frame or multiple frames in specify scheme.
Those skilled in the art of the present technique are appreciated that in the various operations crossed by discussion in the present invention, method, flow Steps, measures, and schemes can be replaced, changed, combined or be deleted.Further, each with having been crossed by discussion in the present invention Other steps, measures, and schemes in kind operation, method, flow may also be alternated, changed, rearranged, decomposed, combined or deleted. Further, in the prior art to have and step, measure, the scheme in various operations, method, flow disclosed in the present invention It may also be alternated, changed, rearranged, decomposed, combined or deleted.
The foregoing is merely the preferred embodiment of the present invention, are not intended to limit the scope of the invention, every utilization Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of data transmission method, which is characterized in that include the following steps:
Obtain the corresponding code of parameter to be transmitted;
The parameter, the code and conventional data are synthesized into protocol data according to preset protocol format;
The protocol data is transmitted outward.
2. data transmission method according to claim 1, which is characterized in that it is described will be described according to preset protocol format The step of parameter, the code and conventional data synthesize protocol data include:
It is content-data by the code and the parameter combination;
The content-data and the conventional data are combined as the protocol data.
3. data transmission method according to claim 1, which is characterized in that described to obtain parameter to be transmitted corresponding generation Further include before the step of code:
When receiving the request of detection function of newly-increased target component, increase target component detection function;
Corresponding code is distributed for the target component.
4. according to claim 1-3 any one of them data transmission methods, which is characterized in that described to obtain parameter to be transmitted Further include before the step of corresponding code:
Detect whether the condition for meeting configured transmission;
When meeting the condition of configured transmission, get parms.
5. data transmission method according to claim 4, which is characterized in that the item for detecting whether to meet configured transmission The step of part includes:
Judge the current time for whether reaching configured transmission according to preset time rule;
If so, judgement meets the condition of configured transmission;
Alternatively,
Judge whether parameter reaches warning value according to preset warning rule;
If so, judgement meets the condition of configured transmission.
6. a kind of data transmission device, which is characterized in that including:
Code obtaining module, for obtaining the corresponding code of parameter to be transmitted;
Data Synthesis module, for the parameter, the code and conventional data to be synthesized association according to preset protocol format Discuss data;
Data transmission module, for transmitting the protocol data outward.
7. data transmission device according to claim 6, which is characterized in that the Data Synthesis module includes:
First assembled unit, for being content-data by the code and the parameter combination;
Second assembled unit, for the content-data and the conventional data to be combined as the protocol data.
8. data transmission device according to claim 6, which is characterized in that described device further includes function opening module, The function opening module includes:
Adding unit, for when receiving the request of detection function of newly-increased target component, increasing target component detection function;
Allocation unit, for distributing corresponding code for the target component.
9. according to claim 6-8 any one of them data transmission devices, which is characterized in that described device further includes that parameter obtains Modulus block, the parameter acquisition module include:
Detection unit, for detecting whether meeting the condition of configured transmission;
Acquiring unit, for when meeting the condition of configured transmission, getting parms.
10. data transmission device according to claim 9, which is characterized in that the detection unit includes:
First judging unit, for judging the current time for whether reaching configured transmission according to preset time rule;
First judging unit, if the time for currently reaching configured transmission, judgement meets the condition of configured transmission;
Alternatively,
Second judgment unit, for judging whether parameter reaches warning value according to preset warning rule;
Second judging unit, if reaching warning value for parameter, judgement meets the condition of configured transmission.
CN201810252286.0A 2018-03-26 2018-03-26 Data transmission method and device Pending CN108551475A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810252286.0A CN108551475A (en) 2018-03-26 2018-03-26 Data transmission method and device
PCT/CN2018/082025 WO2019184000A1 (en) 2018-03-26 2018-04-04 Data transmission method, apparatus, and vehicle-mounted device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810252286.0A CN108551475A (en) 2018-03-26 2018-03-26 Data transmission method and device

Publications (1)

Publication Number Publication Date
CN108551475A true CN108551475A (en) 2018-09-18

Family

ID=63517036

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810252286.0A Pending CN108551475A (en) 2018-03-26 2018-03-26 Data transmission method and device

Country Status (2)

Country Link
CN (1) CN108551475A (en)
WO (1) WO2019184000A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495547A (en) * 2018-10-26 2019-03-19 北京车和家信息技术有限公司 Signals of vehicles acquisition method, device and cloud server and vehicle
CN111130969A (en) * 2019-12-30 2020-05-08 歌尔科技有限公司 Serial port data receiving method and device, earphone, charging equipment and storage medium
CN117938318A (en) * 2024-03-25 2024-04-26 天津布尔科技有限公司 Custom protocol template generation method and system applied to Internet of vehicles

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481159A (en) * 2002-09-04 2004-03-10 北京中视联数字系统有限公司 Method for realtime transmitting and receiving stock certificate data
CN103985256A (en) * 2014-04-28 2014-08-13 深圳威易森科技有限公司 Vehicle identification data processing method, device and system
US20170206717A1 (en) * 2016-01-19 2017-07-20 Trendfire Technologies, Inc. System and method for driver evaluation, rating, and skills improvement
CN107341166A (en) * 2016-11-29 2017-11-10 安徽江淮汽车集团股份有限公司 A kind of vehicle-mounted APP recommendation method and system
CN107682439A (en) * 2017-10-12 2018-02-09 深圳市沃特沃德股份有限公司 Data transmission method and device
CN107770740A (en) * 2017-09-30 2018-03-06 蔚来汽车有限公司 Vehicle-mounted data transmission method, method of reseptance and corresponding system
CN107801213A (en) * 2017-10-23 2018-03-13 深圳市沃特沃德股份有限公司 Data transmission method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841452B (en) * 2010-04-30 2012-06-13 北汽福田汽车股份有限公司 Vehicle control local area network (LAN) CAN network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481159A (en) * 2002-09-04 2004-03-10 北京中视联数字系统有限公司 Method for realtime transmitting and receiving stock certificate data
CN103985256A (en) * 2014-04-28 2014-08-13 深圳威易森科技有限公司 Vehicle identification data processing method, device and system
US20170206717A1 (en) * 2016-01-19 2017-07-20 Trendfire Technologies, Inc. System and method for driver evaluation, rating, and skills improvement
CN107341166A (en) * 2016-11-29 2017-11-10 安徽江淮汽车集团股份有限公司 A kind of vehicle-mounted APP recommendation method and system
CN107770740A (en) * 2017-09-30 2018-03-06 蔚来汽车有限公司 Vehicle-mounted data transmission method, method of reseptance and corresponding system
CN107682439A (en) * 2017-10-12 2018-02-09 深圳市沃特沃德股份有限公司 Data transmission method and device
CN107801213A (en) * 2017-10-23 2018-03-13 深圳市沃特沃德股份有限公司 Data transmission method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中华人民共和国国家质量监督检验检疫总局等: "电动汽车远程服务与管理系统技术规范第3部分:通信协议及数据格式", 《中华人民共和国国家标准GB/T32960.3-2016》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495547A (en) * 2018-10-26 2019-03-19 北京车和家信息技术有限公司 Signals of vehicles acquisition method, device and cloud server and vehicle
CN109495547B (en) * 2018-10-26 2022-05-03 北京车和家信息技术有限公司 Vehicle signal acquisition method and device, cloud server and vehicle
CN111130969A (en) * 2019-12-30 2020-05-08 歌尔科技有限公司 Serial port data receiving method and device, earphone, charging equipment and storage medium
CN111130969B (en) * 2019-12-30 2021-06-18 歌尔科技有限公司 Serial port data receiving method and device, earphone, charging equipment and storage medium
CN117938318A (en) * 2024-03-25 2024-04-26 天津布尔科技有限公司 Custom protocol template generation method and system applied to Internet of vehicles

Also Published As

Publication number Publication date
WO2019184000A1 (en) 2019-10-03

Similar Documents

Publication Publication Date Title
CN109325009B (en) Log analysis method and device
CN109388417B (en) Communication protocol updating method, system and terminal equipment
US9208623B2 (en) Vehicle bus access point system and method
CN108551475A (en) Data transmission method and device
CN106097211B (en) Laboratory management system based on cloud platform
CN102929669A (en) Embedded software upgrading method, system and device
CN111447251A (en) System and method for collecting, monitoring and analyzing vehicle data from multiple vehicles using edge calculations
CN110795697B (en) Method and device for acquiring logic expression, storage medium and electronic device
CN105657000A (en) Message transmission method and device
CN104464349A (en) Vehicle localization management system based on car networking and implementation method of vehicle localization management system based on car networking
CN113132183B (en) Data transmission test method, device, electronic equipment and medium
CN107241681A (en) The implementation method and device of simultaneous interpretation
EP4243373A1 (en) Vehicle data transmission method, apparatus and system, and device and storage medium
ElShafee et al. Integrating social network services with vehicle tracking technologies
CN106476937A (en) A kind of intelligent anti-theft device for bicycle and system
CN105631056A (en) Advertisement flow filtering method and device and server
Ibraheem et al. Design and implementation of a low-cost secure vehicle tracking system
CN104639636A (en) Mobile vehicle-based intelligent information management system
CN104009979A (en) Method for data transmission
Yun et al. Vehicle-generated data exchange protocol for remote OBD inspection and maintenance
CN104168322A (en) Vehicle-mounted terminal data transmission method, application server, client-side and user terminal
CN105578512B (en) Method, apparatus and traffic server for mobile terminal traffic alignment
CN108259284A (en) A kind of configurable vehicle data acquisition system and analytic method
CN102542509A (en) System and method for integrating automobile images
CN109737975B (en) Map data acquisition monitoring method, device and system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180918

RJ01 Rejection of invention patent application after publication