CN105704063B - Information transferring method and device applied to car-mounted terminal - Google Patents
Information transferring method and device applied to car-mounted terminal Download PDFInfo
- Publication number
- CN105704063B CN105704063B CN201410708265.7A CN201410708265A CN105704063B CN 105704063 B CN105704063 B CN 105704063B CN 201410708265 A CN201410708265 A CN 201410708265A CN 105704063 B CN105704063 B CN 105704063B
- Authority
- CN
- China
- Prior art keywords
- message
- threshold
- information
- caching
- byte
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
The application discloses a kind of information transferring method and device applied to car-mounted terminal, applied to the MCU or MIPS being arranged in car-mounted terminal.In disclosed method, information to be transmitted is obtained first, and corresponding message is generated according to information to be transmitted, the header of the message is N number of byte, and N is less than M, wherein, M is in MODBUS communications protocol, then the byte length of header transmits the message again.By disclosed method, the message capacity being transmitted reduces, and can save bandwidth resources.Particularly, the frequency that information is transmitted between MCU and MIPS is higher, can be normally reached Millisecond, the information of transmission is more, therefore by disclosed method, can save massive band width resource.
Description
Technical field
The present invention relates to field of information processing more particularly to a kind of information transferring methods and dress applied to car-mounted terminal
It sets.
Background technology
Car-mounted terminal is a kind of equipment for vehicle monitoring management, is typically mounted in various vehicles, wherein being integrated with
The multiple functions such as positioning, communication and traveling record, for being scheduled monitoring to vehicle.
MCU (micro control unit, micro-control unit) and MIPS is usually provided in car-mounted terminal at present
(microprocessor without interlocked piped stages, the microprocessor of inner interlocked pipelining-stage), institute
It states and is connected by serial ports between MCU and MIPS, and can be into the transmission of row information.For example, be arranged on MCU and vehicle
CAN bus is connected, also, the MCU can obtain information (such as electricity of speed, gear, power battery of CAN bus transmission
The parameter informations such as pressure, temperature), after MCU obtains described information, the parameter information can be transmitted to MIPS;In addition, described
MIPS also can be to various types of information such as MCU transmission times information and solicited message.Wherein, it is passed between the MCU and MIPS
When defeated information, the agreement of foundation is usually MODBUS communications protocol, is being transmitted into row information by the MODBUS communications protocol
When, the information transmitted between MCU and MIPS is message form, and the message includes header and message entity, wherein the header
M byte is generally comprised, this information to be transmitted is carried in the message entity.
But inventor has found in the research process of the application, and when car-mounted terminal is by prior art transmission information, report
Literary capacity is larger, to expend a large amount of bandwidth resources.
Invention content
To overcome the problems in correlation technique, the present invention discloses a kind of information transferring method applied to car-mounted terminal
And device.
In order to solve the above-mentioned technical problem, the embodiment of the invention discloses following technical solutions:
According to a first aspect of the embodiments of the present invention, a kind of information transferring method applied to car-mounted terminal, the party are provided
Method is applied to the microprocessor MIPS of the micro-control unit MCU or inner interlocked pipelining-stage that are arranged in car-mounted terminal, including:
Obtain information to be transmitted;
According to the information to be transmitted, corresponding message is generated, wherein the header of the message includes N number of byte, and
And N is less than M, M is the byte length of header in MODBUS communications protocol;
Transmit the message.
With reference to first aspect, in first aspect in the first possible realization method, the transmission message, including:
After generating the message, the message is cached;
Judge whether the message of caching meets preset propagation threshold, wherein the propagation threshold includes:Time threshold
Value or capacity threshold;
If the judging result shows that the message of caching meets preset propagation threshold, each report of transmission buffer
Text.
The first possible realization method with reference to first aspect, in second of possible realization method of first aspect, if
The propagation threshold is time threshold, described to judge whether the message of caching meets preset propagation threshold and include:
If non-transmitting message before, when judging whether current time and the interval of the generated time of first message are more than described
Between threshold value, if so, judgement caching the message meet preset propagation threshold;
If being transmitted across message before, judge that the interval of the generated time and the time of last transmitting message of the message are
It is no to be more than the time threshold, if so, the message of judgement caching meets preset propagation threshold;
It is described to judge whether the message of caching meets preset threshold value packet if the propagation threshold is capacity threshold
It includes:
Judge whether the capacity summation of each message of caching is more than the capacity threshold, if so, judgement caching is described
Message meets preset propagation threshold.
The first possible realization method with reference to first aspect, in first aspect in the third possible realization method, institute
It states and further includes applied to the information transferring method of car-mounted terminal:
Described information is parsed, the current operating status of vehicle is obtained;
According to the operating status, the preset propagation threshold is adjusted.
With reference to first aspect, in the 4th kind of possible realization method of first aspect, the letter applied to car-mounted terminal
Ceasing transmission method further includes:
After detecting that serial ports receives interruption, the data of acquisition serial ports transmission, and judge that the number of the byte received is
It is no to be not less than N;
If according to judging result, determines that the number of the byte received is not less than N, then parse the byte received, obtain
The message length information for including in the byte;
According to the message length information, judge whether the message for being completely received serial ports transmission;
If according to judging result, determines the message for being completely received the serial ports transmission, include in acquisition main body of the packet
Information type, and corresponding assembling storage is carried out to the message according to described information type;
If according to judging result, determine the message for not being completely received serial ports transmission, then wait for next time serial ports connect
It receives and interrupts.
According to a second aspect of the embodiments of the present invention, a kind of information carrying means applied to car-mounted terminal, the dress are provided
The microprocessor MIPS applied to the micro-control unit MCU or inner interlocked pipelining-stage being arranged in car-mounted terminal is set, including:
Acquisition module, for obtaining information to be transmitted;
Message generation module, for according to the information to be transmitted, generating corresponding message, wherein the message
Header includes N number of byte, and N is less than M, and M is the byte length of header in MODBUS communications protocol;
Transmission module is used for transmission the message.
In conjunction with second aspect, in second aspect in the first possible realization method, the transmission module includes:
Cache sub-module, for after generating the message, caching the message;
Judging submodule, for judging whether the message of caching meets preset propagation threshold, wherein the transmission
Threshold value includes:Time threshold or capacity threshold;
Submodule is transmitted, if showing that the message of caching meets preset propagation threshold for the judging result,
Each message of transmission buffer.
The first possible realization method in conjunction with second aspect, in second of possible realization method of second aspect, if
The propagation threshold is time threshold, and the judging submodule includes:
If first judging unit judges current time and the generated time of first message for non-transmitting message before
Whether interval is more than the time threshold, if so, the message of judgement caching meets preset propagation threshold;
If second judgment unit judges that the generated time of the message transmits with last for being transmitted across message before
Whether the interval of the time of message is more than the time threshold, if so, the message of judgement caching meets preset transmission threshold
Value;
If the propagation threshold is capacity threshold, the judging submodule includes:
Third judging unit, for judging whether the capacity summation of each message of caching is more than the capacity threshold, if
It is to judge that the message of caching meets preset propagation threshold.
The first possible realization method in conjunction with second aspect, in second aspect in the third possible realization method, institute
It states and further includes applied to the information carrying means of car-mounted terminal:
Parsing module obtains the current operating status of vehicle for parsing described information;
Module is adjusted, for according to the operating status, adjusting the preset propagation threshold.
In conjunction with second aspect, in the 4th kind of possible realization method of second aspect, the letter applied to car-mounted terminal
Ceasing transmitting device further includes:
Judgment module is acquired, for after detecting that serial ports receives interruption, acquiring the data of serial ports transmission, and judges to receive
Whether the number of the byte arrived is not less than N;
If message length acquisition module determines that the number of the byte received is not less than N, then for according to judging result
The byte received is parsed, the message length information for including in the byte is obtained;
Judgment module, the message for according to the message length information, judging whether to be completely received serial ports transmission;
If first processing module determines the message for being completely received the serial ports transmission, obtains for according to judging result
The information type for including in main body of the packet, and corresponding assembling storage is carried out to the message according to described information type;
If Second processing module determines the message for not being completely received the serial ports transmission, then for according to judging result
Serial ports reception next time is waited for interrupt.
Technical solution disclosed in the embodiment of the present invention can include the following benefits:
By disclosed method, the message capacity being transmitted reduces, and can save bandwidth resources.Particularly,
The frequency that information is transmitted between MCU and MIPS in the prior art is higher, can be normally reached Millisecond, and the information of transmission is more,
Therefore by disclosed method, massive band width resource can be saved.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not
It can the limitation present invention.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of workflow of information transferring method applied to car-mounted terminal shown according to an exemplary embodiment
Journey schematic diagram;
Fig. 2 is the work for the information transferring method for being applied to car-mounted terminal according to another shown in an exemplary embodiment
Flow diagram;
Fig. 3 is the work for the information transferring method for being applied to car-mounted terminal according to another shown in an exemplary embodiment
Flow diagram;
Fig. 4 is that a kind of structure of information carrying means applied to car-mounted terminal shown according to an exemplary embodiment is shown
It is intended to.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
It is existing to expend a large amount of bandwidth resources in order to solve car-mounted terminal in the prior art when transmitting information
Problem, this application discloses a kind of information transferring methods applied to car-mounted terminal and corresponding device.
Information transferring method disclosed in the present application applied to car-mounted terminal, applied to the MCU being arranged in car-mounted terminal
Or MIPS.Fig. 1 is a kind of flow chart of information transferring method applied to car-mounted terminal shown according to an exemplary embodiment,
This method includes:
Step S11, information to be transmitted is obtained.
Wherein, if this method is applied to the MCU in car-mounted terminal, the MCU is connected with the CAN bus of setting in the car
Various types of information such as speed, gear, power battery voltage, the temperature for connecing, and receiving CAN bus transmission, and by this
A little information are as information to be transmitted.
If this method is applied to the MIPS in car-mounted terminal, the information to be transmitted includes the request that the MIPS is generated
Information or the other kinds of information of MIPS acquisitions.For example, the MIPS can be with GPS (Global Positioning
System, global positioning system) be connected, the standard time informations that get of acquisition GPS, using the standard time information as
Information to be transmitted.
Step S12, according to the information to be transmitted, corresponding message is generated, wherein the header of the message includes N
A byte, and N is less than M, and M is the byte length of header in MODBUS communications protocol.
In the prior art, the MCU in car-mounted terminal and MIPS into row information when transmitting, it then follows be MODBUS communication association
View.MODBUS communications protocol is the communication protocol for the open field bus that Schneider Electric Corp. releases.When passing through
When MODBUS communications protocol carries out the information transmission between MCU and MIPS, redundancy is usually contained in the header of transmitting message,
It includes to occupy massive band width resource compared with multibyte to cause header.
And in this application, MCU or MIPS are pre-configured with proprietary protocol, after obtaining information to be transmitted, MCU or MIPS
Corresponding message is generated according to the proprietary protocol, the header in the message is N number of byte, has been generally comprised in N number of byte
The message length information of the message.The message length information is usually 3 bytes, if in the header including only message
Length information, then the value of N is 3.In addition, other information can also be carried in the header, but meet the condition that N is less than M always.
In addition, carrying information to be transmitted in the message, in main body of the packet.
Step S13, the message is transmitted.
If disclosed method is applied to the MCU being arranged in car-mounted terminal, the MCU is generating corresponding report
Wen Hou, by the message transmissions to MIPS;If disclosed method is applied to the MIPS being arranged in car-mounted terminal, institute
MIPS is stated after generating corresponding message, by the message transmissions to MCU.
A kind of information transferring method applied to car-mounted terminal is disclosed in step S11 to step S13, and this method is applied to set
It sets MCU or MIPS in car-mounted terminal, in this method, obtains information to be transmitted first, generated according to information to be transmitted
The header of corresponding message, the message is N number of byte, and N is less than M, wherein M is the byte of header in MODBUS communications protocol
Then length transmits the message again.By disclosed method, the message capacity being transmitted reduces, and can save
Bandwidth resources.Particularly, the frequency that information is transmitted between MCU and MIPS is higher, can be normally reached Millisecond, the information of transmission
It is more, therefore by disclosed method, massive band width resource can be saved.
In addition, referring to Fig. 2, the method for the transmission message disclosed in step S13, including:
Step S131, after generating the message, the message is cached.
Step S132, judge whether the message of caching meets preset propagation threshold, wherein the propagation threshold packet
It includes:Time threshold or capacity threshold, if so, the operation of step S133 is executed, if it is not, executing the operation of step S134.
If step S133, the described judging result shows that the message of caching meets preset propagation threshold, transmission is slow
The each message deposited.
If step S134, the described judging result shows that the message of caching is unsatisfactory for preset propagation threshold, continue
Cache the message.
In scheme disclosed in above-mentioned steps S131 to step S134, after generating corresponding message according to information to be transmitted,
The message is cached, and judges whether the message of caching meets preset propagation threshold, is met in the message of caching default
Propagation threshold when, then transmission buffer each message.
By the above-mentioned means, just message transmissions can be gone out when the message of generation meets preset propagation threshold, from
And reduce the frequency of MCU or MIPS transmitting messages, further save bandwidth resources.
Wherein, the preset propagation threshold includes that time threshold or capacity threshold two types, use are different types of
Propagation threshold, judge caching message whether meet preset propagation threshold method it is also different.
It is described to judge whether the message of caching meets preset transmission threshold if the propagation threshold is time threshold
Value, including:
If non-transmitting message before, when judging whether current time and the interval of the generated time of first message are more than described
Between threshold value, if so, judgement caching the message meet preset threshold value, if it is not, then judge caching the message be unsatisfactory for
Preset threshold value continues to cache the message.
In this case, the first message refers to the first message of caching.
If in addition, being transmitted across message before, generated time and the time of last transmitting message of the message are judged
Whether interval is more than the time threshold, if so, the message of judgement caching meets preset threshold value, if it is not, then judgement is slow
The message deposited is unsatisfactory for preset threshold value, continues to cache the message.
Wherein, the time threshold can be configured according to actual information transfer demands.For example, can be by the time threshold
Value is set as 1 second.It is, of course, also possible to say that the time threshold is set as other values, the application does not limit this.
In scheme disclosed above, pass through message current generated time or the generated time of message and last time
The time interval of transmitting message, judges whether the message of caching meets preset propagation threshold.In this way, when carrying out
When information is transmitted, the message of generation will not real-time Transmission, but the message is cached, until the message of a certain generation meets the time
Threshold value just goes out each message transmissions of caching.With this solution, the transmission frequency of message can be effectively reduced, further
Save bandwidth resources.Particularly, in the prior art, the time transmitted into row information between MCU and MIPS is usually Millisecond, frequency
Rate is higher.And in the application, the time threshold is arranged according to actual transmission demand, for example, can set the time threshold
It is set to 1 second, to greatly reduce the frequency of information transmission, saves bandwidth resources.
If in addition, preset propagation threshold be capacity threshold, it is described judge cache the message whether meet it is default
Threshold value include:
Judge whether the capacity summation of each message of caching is more than the capacity threshold, if so, judgement caching is described
Message meets preset propagation threshold, if it is not, then continuing to cache the message.
In the above method, after generating message, the message can be cached, until the capacity summation of each message of caching is big
In preset capacity threshold, then judges that the message of caching meets preset propagation threshold, then again pass each message of caching
Output is gone.In this way, the transmission frequency of message can be reduced, bandwidth resources are saved.
Moreover, in scheme disclosed in the present application, in message corresponding with the information to be transmitted, the byte number of header compared with
It is small, so that the capacity of entire message is smaller.It in this case, can be by packet buffer, until the report of caching after generating message
Text meets propagation threshold, then each message of caching is transferred out together.Since the capacity of each message reduces, pass together
Congestion is not easily caused in defeated process.
In addition, in the process of running, the operating status of vehicle can change, in order to grasp the operation of vehicle in time
Situation, the information transferring method disclosed in the present application applied to car-mounted terminal further include:
Described information is parsed, the current operating status of vehicle is obtained;
According to the operating status, the preset propagation threshold is adjusted.
The MCU being arranged in car-mounted terminal, can obtain the information of CAN bus transmission, and described information includes:Speed, shelves
Position, power battery voltage and temperature etc. can reflect the information of travel condition of vehicle.Also, the MCU can be by above- mentioned information
It is transmitted to MIPS.MCU or MIPS can parse above- mentioned information, and the current operating status of vehicle, and root are obtained by above- mentioned information
The preset propagation threshold is adjusted according to the operating status.
For example, when according to analysis result, when determining that vehicle current operating conditions are more stable, the propagation threshold can be improved,
Reduce the frequency of information transmission;When according to analysis result, when determining that vehicle current operating conditions are unstable, the transmission can be reduced
Threshold value, to increase the frequency of information transmission, to obtain the every terms of information of vehicle in time.
Further, referring to Fig. 3, the information transferring method applied to car-mounted terminal further includes:
Step S21, after detecting that serial ports receives interruption, the data of acquisition serial ports transmission.
Between MCU and MIPS, it is connected by serial ports.It is interrupted if MCU detects that serial ports receives, shows MIPS to described
MCU transmits data;If MIPS detects that serial ports receives and interrupts, show that MCU transmits data to the MIPS.
Step S22, judge whether the number of the byte received is not less than N, if so, the operation of step S23 is executed, if
It is no, then return to step S21, after detecting that serial ports is received and interrupted next time, to continue to data.
If step S23, according to judging result, determines that the number of the byte received is not less than N, then parse the word received
Section, obtains the message length information for including in the byte.
If the data of the byte received are not less than N, illustrate to be completely received header.Due to disclosed method
In, include message length information in the header of the message of generation, then can be obtained wherein included by parsing the header
Message length information.
Step S24, according to the message length information, judge whether the message for being completely received serial ports transmission, if so, holding
The operation of row step S25, if it is not, then return to step S21, waits for serial ports reception next time to interrupt, to detect next time
After serial ports receives interruption, data are continued to.
If step S25, according to judging result, determines the message for being completely received the serial ports transmission, obtain main body of the packet
In include information type, and corresponding assembling storage is carried out to the message according to described information type.
In the main body of the packet, information to be transmitted is carried, also, also carries the information of the information to be transmitted
Type.Described information type is usually the form of Information ID.According to the information type for including in the main body of the packet, phase can be searched
The processing function answered carries out corresponding assembling storage to the message.
Correspondingly, disclosed herein as well is a kind of information carrying means applied to car-mounted terminal, referring to Fig. 4, the device
Applied to the microprocessor MIPS of the micro-control unit MCU or inner interlocked pipelining-stage that are arranged in car-mounted terminal, including:It obtains
Module 100, message generation module 200 and transmission module 300.
Wherein, the acquisition module 100, for obtaining information to be transmitted;
The message generation module 200, for according to the information to be transmitted, generating corresponding message, wherein described
The header of message includes N number of byte, and N is less than M, and M is the byte length of header in MODBUS communications protocol;
The transmission module 300 is used for transmission the message.
The application discloses a kind of information carrying means applied to car-mounted terminal, by the device, between MCU and MIPS into
The message capacity of row transmission reduces, and can save bandwidth resources.Particularly, the frequency that information is transmitted between MCU and MIPS is higher,
Millisecond is can be normally reached, the information of transmission is more, therefore by device disclosed in the present application, can save massive band width money
Source.
Further, the transmission module 300 includes:
Cache sub-module, for after generating the message, caching the message;
Judging submodule, for judging whether the message of caching meets preset propagation threshold, wherein the transmission
Threshold value includes:Time threshold or capacity threshold;
Submodule is transmitted, if showing that the message of caching meets preset propagation threshold for the judging result,
Each message of transmission buffer.
When the propagation threshold is different form, the structure of the judging submodule is different.
Wherein, if the propagation threshold is time threshold, the judging submodule includes:
If first judging unit judges current time and the generated time of first message for non-transmitting message before
Whether interval is more than the time threshold, if so, the message of judgement caching meets preset propagation threshold;
If second judgment unit judges that the generated time of the message transmits with last for being transmitted across message before
Whether the interval of the time of message is more than the time threshold, if so, the message of judgement caching meets preset transmission threshold
Value.
If in addition, the propagation threshold is capacity threshold, the judging submodule includes:
Third judging unit, for judging whether the capacity summation of each message of caching is more than the capacity threshold, if
It is to judge that the message of caching meets preset propagation threshold.
Further, the information carrying means applied to car-mounted terminal further includes:
Parsing module obtains the current operating status of vehicle for parsing described information;
Module is adjusted, for according to the operating status, adjusting the preset propagation threshold.
Further, the information carrying means applied to car-mounted terminal further includes:
Judgment module is acquired, for after detecting that serial ports receives interruption, acquiring the data of serial ports transmission, and judges to receive
Whether the number of the byte arrived is not less than N;
If message length acquisition module determines that the number of the byte received is not less than N, then for according to judging result
The byte received is parsed, the message length information for including in the byte is obtained;
Judgment module, the message for according to the message length information, judging whether to be completely received serial ports transmission;
If first processing module determines the message for being completely received the serial ports transmission, obtains for according to judging result
The information type for including in main body of the packet, and corresponding assembling storage is carried out to the message according to described information type;
If Second processing module determines the message for not being completely received the serial ports transmission, then for according to judging result
Serial ports reception next time is waited for interrupt.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes undocumented common knowledge in the art of the invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.
Claims (8)
1. a kind of information transferring method applied to car-mounted terminal, which is characterized in that micro- applied to what is be arranged in car-mounted terminal
The microprocessor MIPS of control unit MCU or inner interlocked pipelining-stage, including:
Obtain information to be transmitted;
According to the information to be transmitted, corresponding message is generated, wherein the header of the message includes N number of byte, and N
It is the byte length of header in MODBUS communications protocol less than M, M;
After detecting that serial ports receives interruption, the data of acquisition serial ports transmission, and whether not to judge the number of the byte received
Less than N;
If according to judging result, determine that the number of byte received is not less than N, then parse the byte received, described in acquisition
The message length information for including in byte;
According to the message length information, judge whether the message for being completely received serial ports transmission;
If according to judging result, determines the message for being completely received the serial ports transmission, obtain the information for including in main body of the packet
Type, and corresponding assembling storage is carried out to the message according to described information type;
If according to judging result, the message for not being completely received the serial ports transmission is determined, then wait in serial ports reception next time
It is disconnected;
Transmit the message.
2. according to the method described in claim 1, it is characterized in that, the transmission message, including:
After generating the message, the message is cached;
Judge whether the message of caching meets preset propagation threshold, wherein the propagation threshold includes:Time threshold or
Capacity threshold;
If the judging result shows that the message of caching meets preset propagation threshold, each message of transmission buffer.
3. according to the method described in claim 2, it is characterized in that,
It is described to judge whether the message of caching meets preset propagation threshold packet if the propagation threshold is time threshold
It includes:
If non-transmitting message before, judge whether current time and the interval of the generated time of first message are more than the time threshold
Value, if so, the message of judgement caching meets preset propagation threshold;
If being transmitted across message before, judge whether the interval of the generated time and the time of last transmitting message of the message are big
In the time threshold, if so, the message of judgement caching meets preset propagation threshold;
It is described to judge whether the message of caching meets preset threshold value and include if the propagation threshold is capacity threshold:
Judge whether the capacity summation of each message of caching is more than the capacity threshold, if so, the message of judgement caching
Meet preset propagation threshold.
4. according to the method described in claim 2, it is characterized in that, the information transferring method applied to car-mounted terminal also wraps
It includes:
Described information is parsed, the current operating status of vehicle is obtained;
According to the operating status, the preset propagation threshold is adjusted.
5. a kind of information carrying means applied to car-mounted terminal, which is characterized in that micro- applied to what is be arranged in car-mounted terminal
The microprocessor MIPS of control unit MCU or inner interlocked pipelining-stage, including:
Acquisition module, for obtaining information to be transmitted;
Message generation module, for according to the information to be transmitted, generating corresponding message, wherein the header of the message
Including N number of byte, and N is less than M, and M is the byte length of header in MODBUS communications protocol;
Acquire judgment module, for when detect serial ports receive interrupt after, data of acquisition serial ports transmission, and judgement receives
Whether the number of byte is not less than N;
If message length acquisition module determines that the number of the byte received is not less than N, then parses for according to judging result
The byte received obtains the message length information for including in the byte;
Judgment module, the message for according to the message length information, judging whether to be completely received serial ports transmission;
If first processing module determines the message for being completely received the serial ports transmission, obtains message for according to judging result
The information type for including in main body, and corresponding assembling storage is carried out to the message according to described information type;
If Second processing module determines the message for not being completely received the serial ports transmission, then waits for for according to judging result
Serial ports, which receives, next time interrupts;
Transmission module is used for transmission the message.
6. device according to claim 5, which is characterized in that the transmission module includes:
Cache sub-module, for after generating the message, caching the message;
Judging submodule, for judging whether the message of caching meets preset propagation threshold, wherein the propagation threshold
Including:Time threshold or capacity threshold;
Submodule is transmitted, if showing that the message of caching meets preset propagation threshold for the judging result, is transmitted
Each message of caching.
7. device according to claim 6, which is characterized in that
If the propagation threshold is time threshold, the judging submodule includes:
If first judging unit judges the interval of current time and the generated time of first message for non-transmitting message before
Whether the time threshold is more than, if so, the message of judgement caching meets preset propagation threshold;
If second judgment unit judges the generated time of the message and last transmitting message for being transmitted across message before
Time interval whether be more than the time threshold, if so, judgement caching the message meet preset propagation threshold;
If the propagation threshold is capacity threshold, the judging submodule includes:
Third judging unit, for judging whether the capacity summation of each message of caching is more than the capacity threshold, if so, sentencing
Surely the message cached meets preset propagation threshold.
8. device according to claim 6, which is characterized in that the information carrying means applied to car-mounted terminal also wraps
It includes:
Parsing module obtains the current operating status of vehicle for parsing described information;
Module is adjusted, for according to the operating status, adjusting the preset propagation threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410708265.7A CN105704063B (en) | 2014-11-28 | 2014-11-28 | Information transferring method and device applied to car-mounted terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410708265.7A CN105704063B (en) | 2014-11-28 | 2014-11-28 | Information transferring method and device applied to car-mounted terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105704063A CN105704063A (en) | 2016-06-22 |
CN105704063B true CN105704063B (en) | 2018-09-07 |
Family
ID=56230670
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410708265.7A Active CN105704063B (en) | 2014-11-28 | 2014-11-28 | Information transferring method and device applied to car-mounted terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105704063B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381543B (en) | 2018-04-13 | 2022-11-11 | 华为技术有限公司 | Method, device and system for activating frequency domain resources |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7693086B2 (en) * | 2005-03-24 | 2010-04-06 | Seiko Epson Corporation | Data transfer control device and electronic instrument |
CN102724170A (en) * | 2011-06-03 | 2012-10-10 | 北京天地互连信息技术有限公司 | IPv6lowpan-based internet of things gateway supporting UGCCNet |
CN103348726A (en) * | 2011-01-26 | 2013-10-09 | 高通股份有限公司 | Systems and methods for communicating in network |
CN103746938A (en) * | 2014-01-13 | 2014-04-23 | 广东睿江科技有限公司 | Method and device for transmitting data packet |
-
2014
- 2014-11-28 CN CN201410708265.7A patent/CN105704063B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7693086B2 (en) * | 2005-03-24 | 2010-04-06 | Seiko Epson Corporation | Data transfer control device and electronic instrument |
CN103348726A (en) * | 2011-01-26 | 2013-10-09 | 高通股份有限公司 | Systems and methods for communicating in network |
CN102724170A (en) * | 2011-06-03 | 2012-10-10 | 北京天地互连信息技术有限公司 | IPv6lowpan-based internet of things gateway supporting UGCCNet |
CN103746938A (en) * | 2014-01-13 | 2014-04-23 | 广东睿江科技有限公司 | Method and device for transmitting data packet |
Also Published As
Publication number | Publication date |
---|---|
CN105704063A (en) | 2016-06-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111031094A (en) | Data transmission method, device, equipment and storage medium in IoT system | |
CN111343085B (en) | Routing system and method of vehicle-mounted CAN bus gateway | |
JP5843020B2 (en) | Communication apparatus and communication method | |
CN103401804B (en) | Wireless sensor network node data buffer storage transmission control system and method | |
CN107872396B (en) | Communication method with timeout control, processing device, terminal device and server | |
CN105704738B (en) | Communication control method and device | |
EP2891276B1 (en) | Method and system for dynamic selection of reliability by data publishing protocol while publishing data | |
EP2294779A1 (en) | Optimized selection of transmission protocol respecting thresholds | |
WO2021202244A1 (en) | System and method for correlating keep-alive connection communications with unary connection communications | |
CN105704063B (en) | Information transferring method and device applied to car-mounted terminal | |
US7826419B2 (en) | Method and system to improve transmission and receipt of channel descriptors | |
JP2013106203A (en) | Vehicle information processor | |
WO2014129113A1 (en) | Wireless communication apparatus and communication system | |
CN112512131B (en) | Power saving method and system for data transmission | |
CN110750486A (en) | RDMA data stream control method, system, electronic device and readable storage medium | |
CN111756588A (en) | Communication link detection method and related device | |
US11496869B2 (en) | Server, communication system, communication method and program | |
EP3739820B9 (en) | Establishing communication at optimized time instances | |
CN109787874B (en) | Real-time transceiving method, equipment and storage medium based on Linux platform | |
CN111601337B (en) | Wireless sensor network repeater exception handling method and device | |
JP2016132327A (en) | Communication control device | |
CN107465751B (en) | Communication method, device, client and computer storage medium | |
CN102457980B (en) | Data transmission method and system in sensor network | |
CN110650259A (en) | Call request response method, device, server, terminal and storage medium | |
JP2007036632A (en) | Gateway apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder |
Address after: 100176 room 502-1, floor 5, building 2, courtyard 10, keguyi street, Beijing Economic and Technological Development Zone, Daxing District, Beijing Patentee after: NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co.,Ltd. Address before: 100081, Beijing, Haidian District sorghum Bridge oblique Street No. 34, building 212, room 19 Patentee before: NEW SINGULARITY INTERNATIONAL TECHNICAL DEVELOPMENT Co.,Ltd. |
|
CP02 | Change in the address of a patent holder |