CN115996253A - Method, device, computer equipment and storage medium for data transmission - Google Patents

Method, device, computer equipment and storage medium for data transmission Download PDF

Info

Publication number
CN115996253A
CN115996253A CN202111205698.7A CN202111205698A CN115996253A CN 115996253 A CN115996253 A CN 115996253A CN 202111205698 A CN202111205698 A CN 202111205698A CN 115996253 A CN115996253 A CN 115996253A
Authority
CN
China
Prior art keywords
signal
vehicle
increment
message
increment signal
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
CN202111205698.7A
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.)
Shanghai Pateo Network Technology Service Co Ltd
Original Assignee
Shanghai Pateo Network Technology Service 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 Shanghai Pateo Network Technology Service Co Ltd filed Critical Shanghai Pateo Network Technology Service Co Ltd
Priority to CN202111205698.7A priority Critical patent/CN115996253A/en
Publication of CN115996253A publication Critical patent/CN115996253A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a data transmission method, a data transmission device, computer equipment and a storage medium, wherein the method comprises the following steps: collecting vehicle signals of a target vehicle, wherein one signal in the vehicle signals corresponds to a signal identifier, and the signal identifier is used for determining the type of the vehicle signal; comparing the vehicle signal with the vehicle signal reported last time to obtain an incremental signal; generating an increment signal message according to the increment signal and a signal identifier corresponding to the increment signal; and reporting the increment signal message to a server. By implementing the embodiment of the application, the data transmission quantity can be reduced, the data transmission efficiency is improved, and the network bandwidth resources are saved.

Description

Method, device, computer equipment and storage medium for data transmission
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for data transmission.
Background
In order to improve the operation safety of the new energy automobile, the energy automobile enterprise needs to report the related data of the automobile running so as to realize the real-time supervision of the new energy automobile. In addition, the vehicle enterprise can store the acquired data in a database of the vehicle enterprise so as to be used for testing the performance of the vehicle and analyzing the driving behavior of the user.
At present, the new energy automobile mainly adopts national standard 32960 protocol or part standard 808 protocol and the like to finish reporting data, and the protocols usually adopt full reporting. That is, all data acquired by the vehicle needs to be reported, and network resource waste is easily caused under the condition of excessive signal quantity.
Disclosure of Invention
One object of the present application is to provide a method, an apparatus, a computer device, and a storage medium for data transmission, which have the advantages that a vehicle signal with a change in the collected data is reported by adopting an incremental reporting manner, and no change data is reported, so that the data transmission amount is reduced, the data transmission efficiency is improved, and the network bandwidth resources are saved.
Another object of the present invention is to provide a method, an apparatus, a computer device, and a storage medium for data transmission, which have the advantages that the type of a vehicle signal to be collected is determined by acquiring the identification information of a target vehicle, so that the collection of the vehicle signal is more targeted, and the collection efficiency of the vehicle signal is improved.
Another object of the present invention is to provide a method, an apparatus, a computer device, and a storage medium for data transmission, which are advantageous in that by reporting a signal abnormal message to a server, the server is prompted that some vehicle signals are acquired abnormally, so that a subsequent server is convenient to process the signal abnormal message that fails to be acquired.
Another object of the present invention is to provide a method, an apparatus, a computer device, and a storage medium for data transmission, which have the advantage that an incremental signal packet is generated according to an incremental signal and a signal identifier corresponding to the incremental signal, so that a packet generation policy of a vehicle signal is simpler and more flexible.
Another object of the present invention is to provide a method, an apparatus, a computer device, and a storage medium for data transmission, which have the advantages that if the number of times of no incremental signal reaches a preset threshold, the reporting frequency can be adjusted, so that the adjusted reporting frequency is smaller than the preset reporting frequency, and the problem of network bandwidth resource waste caused by too fast reporting frequency and missed change of vehicle signals can be avoided.
To achieve the above object, in a first aspect, an embodiment of the present application provides a method for data transmission, including the following steps:
collecting vehicle signals of a target vehicle, wherein one signal in the vehicle signals corresponds to a signal identifier, and the signal identifier is used for determining the type of the vehicle signal;
comparing the vehicle signal with the vehicle signal reported last time to obtain an incremental signal;
Generating an increment signal message according to the increment signal and a signal identifier corresponding to the increment signal;
and reporting the increment signal message to a server.
It can be seen that by adopting the incremental reporting mode, the vehicle signal with the collected data changed is reported, and the data without the change is not reported, so that the data transmission quantity can be reduced, the data transmission efficiency is improved, and the network bandwidth resources are saved.
In some possible embodiments, the collecting the vehicle signal of the target vehicle includes the steps of:
acquiring identification information of the target vehicle;
determining the type of a vehicle signal to be acquired according to the identification information, wherein the type of the vehicle signal comprises a driving mileage, a cruising mileage, average oil consumption or a vehicle speed;
and collecting the vehicle signal according to the type of the vehicle signal to be collected.
It can be seen that the vehicle signal acquisition strategy obtained by the embodiment of the application is configured according to the requirement, the vehicle signals in the acquisition strategy correspond to the vehicle identification information, and redundant or non-vehicle signals of the target vehicle cannot occur, so that the acquisition of the vehicle signals is more targeted, and the acquisition efficiency of the vehicle signals is improved.
In some possible embodiments, the comparing the vehicle signal with the vehicle signal reported last time, before obtaining the incremental signal, further includes the following steps:
in response to the failure of the vehicle signal acquisition, uploading a signal abnormal message to a server, wherein the signal abnormal message is used for indicating the abnormal vehicle signal acquisition; or alternatively
And responding to successful acquisition of the vehicle signal, and executing the step of comparing the vehicle signal with the vehicle signal reported last time to obtain an increment signal.
It can be seen that if the vehicle-mounted terminal detects that the acquisition of the vehicle signal fails, the vehicle-mounted terminal reports the abnormal signal message to the server so as to prompt the server that some vehicle signals are acquired abnormally, and the subsequent server is convenient to process the abnormal signal message with the acquisition failure.
In some possible embodiments, the generating an incremental signal packet according to the incremental signal and the signal identifier corresponding to the incremental signal includes the following steps:
determining the type of the increment signal according to the signal identifier corresponding to the increment signal;
determining the reporting sequence and byte length of the increment signal according to the type of the increment signal;
According to the byte length, carrying out format conversion on the increment signal to obtain a reporting message body;
and combining the reported message bodies according to the reporting sequence to obtain an increment signal message.
It can be seen that the increment signal message is generated according to the increment signal and the signal identifier corresponding to the increment signal, so that the message generation strategy of the vehicle signal is simpler and more flexible.
In some possible embodiments, the method comprises the steps of:
if the vehicle signal is compared with the vehicle signal reported last time, the number of times that no increment signal exists reaches a preset threshold value, and the reporting frequency is adjusted so that the adjusted reporting frequency is smaller than the preset reporting frequency.
It can be seen that when the number of times that the increment signal does not exist reaches the preset threshold value, the reporting frequency is adjusted, so that the adjusted reporting frequency is smaller than the preset reporting frequency, and the problem of network bandwidth resource waste caused by missed changes of the vehicle signal due to too fast reporting frequency can be avoided.
In a second aspect, embodiments of the present application provide another method for data transmission, including the steps of:
receiving an increment signal message;
analyzing the increment signal message to obtain a signal identifier corresponding to the increment signal;
And obtaining the increment signal according to the signal identifier corresponding to the increment signal.
It can be seen that the embodiment of the application only needs to process the increment signal, so that the efficiency of data processing is greatly improved, and meanwhile, the network bandwidth resource is saved.
In a third aspect, an embodiment of the present application provides an apparatus for data transmission, including:
the system comprises an acquisition module, a detection module and a control module, wherein the acquisition module is used for acquiring vehicle signals of a target vehicle, one signal in the vehicle signals corresponds to a signal identifier, and the signal identifier is used for determining the type of the vehicle signal;
the comparison module is used for comparing the vehicle signal with the vehicle signal acquired last time to obtain an incremental signal;
the generation module is used for generating an increment signal message according to the increment signal and a signal identifier corresponding to the increment signal;
and the reporting module is used for reporting the increment signal message to the server.
In a fourth aspect, embodiments of the present application provide another apparatus for data transmission, including:
the receiving module is used for receiving the increment signal message;
the analysis module is used for analyzing the increment signal message to obtain a signal identifier corresponding to the increment signal;
And the acquisition module is used for acquiring the increment signal according to the signal identifier corresponding to the increment signal.
In a fifth aspect, embodiments of the present application provide a computer device comprising a processor, a memory and a communication interface, wherein the memory stores one or more programs configured for execution by the processor, the programs being for instructions for part or all of the steps as described in the first and second aspects.
In a sixth aspect, embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program causes a computer to execute to implement some or all of the steps as described in the first and second aspects.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained based on these drawings without inventive effort for a person skilled in the art. Wherein:
Fig. 1 is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 2 is a flow chart of a method for data transmission according to an embodiment of the present application;
fig. 3 is a flowchart of another method for data transmission according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device for data transmission according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another apparatus for data transmission according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms "first," "second," "third," and "fourth" and the like in the description and in the claims of this application and in the drawings, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, result, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In order to better understand the technical solutions of the embodiments of the present application, first, a system architecture that may be related to the embodiments of the present application is described. Referring to fig. 1, a schematic system architecture is provided in an embodiment of the present application, where the system architecture may include: an in-vehicle terminal 100 and a server 200. Wherein communication between the in-vehicle terminal 100 and the server 200 can be performed through a network. The network communication may be based on any wired and wireless network including, but not limited to, the internet, wide area networks, metropolitan area networks, local area networks, virtual private networks (virtual private network, VPN), and wireless communication networks, among others.
The in-vehicle terminal 100, also called in-vehicle apparatus, in-vehicle computer, or in-vehicle machine. In this embodiment of the present application, the method may be used for collecting a vehicle signal, generating a signal packet from the vehicle signal, and communicating with the server 200, and specifically may be used for reporting the signal packet to the server 200.
The in-vehicle terminal 100 may include a processor, a memory, a communication interface, and a bus. The processor, the memory and the communication interface may be interconnected by a bus. The memory may be used to store software programs and data, and the processor may execute various functional applications and data processing of the in-vehicle terminal 100 by executing the software programs and data stored in the memory. In embodiments of the present application, the processor may be configured to collect vehicle signals. The communication interface may be used to communicate with the server 200, for example, to report signal messages to the server 200.
A vehicle box (T-box, or TCU) is a very important component in the vehicle-mounted terminal 100, mainly for communication between the outside of the car and a server and other terminals (e.g., a cellular phone). The T-box may acquire data of each electronic control unit (electronic control unit, ECU) through a controller area network (controller area network, CAN) bus, for example, a vehicle condition report, a driving report, a fuel consumption statistics, a violation query, a location track, a driving behavior, etc., and transmit the data to a server through the network, so as to realize real-time monitoring of the vehicle, or facilitate subsequent testing of performance of the vehicle and analysis of driving behavior of a user.
It should be noted that, the vehicle-mounted terminal 100 may further include devices not related to the foregoing, for example, a whole vehicle computing unit, a bluetooth module, an audio module, a video module, a battery system, a map module, and other possible functional modules, which are not described herein.
The server 200 may be one server or may be a server cluster formed by a plurality of servers. In this embodiment of the present application, the server 200 may be in communication with the vehicle-mounted terminal 100, and may specifically be configured to receive an increment signal packet sent by the vehicle-mounted terminal 100, and may also be configured to parse the increment signal packet to obtain an increment signal. The server 200 may be a cloud server, a cloud platform of internet of vehicles, a cloud server of internet of vehicles, an internet of things device, a data center network device, a cloud computing device, a computer supporting 802.11 protocol, a network device in a public land mobile network (public land mobile network, PLMN) of future evolution, etc., which is not particularly limited in the embodiments of the present application.
It is understood that the system architecture shown in fig. 1 is only one exemplary implementation of the embodiments of the present application, and the system architecture in the embodiments of the present application includes, but is not limited to, the above system architecture.
At present, the new energy automobile mainly adopts national standard 32960 protocol or portion standard 808 protocol to finish reporting of data, and the protocols generally adopt full reporting, that is to say, all data acquired by the automobile need to be reported, and network resource waste is easily caused under the condition of excessive signal quantity.
In this regard, the embodiments of the present application provide a method, an apparatus, a computer device, and a storage medium for data transmission, which aim to improve data transmission efficiency and save network bandwidth resources.
In combination with the above system architecture, a method for data transmission according to an embodiment of the present application is described below. Referring to fig. 2, fig. 2 is a flowchart of a method for data transmission according to an embodiment of the present application. As shown in fig. 2, the method is illustrated by taking an in-vehicle terminal as an example, and the method may include steps S201 to S204.
Step S201: the vehicle-mounted terminal collects vehicle signals of a target vehicle.
In the embodiment of the application, the target vehicle is a vehicle for which a vehicle signal is to be acquired. The vehicle signals may include control data and travel data generated during operation of the target vehicle, such as range, average fuel consumption, vehicle speed, residual charge, and the like. The vehicle signal may also include, without limitation, position information, remaining oil, air conditioning temperature, status of side lights, etc., or other operational data responsive to the status of the target vehicle. It is understood that each vehicle signal includes at least a signal name and a corresponding state value, for example, the vehicle signal is a remaining power, and the corresponding state value may be 80%.
In an embodiment of the present application, one of the vehicle signals corresponds to a signal identifier that is used to determine the type of vehicle signal. For example, the signal identifier of the driving range may be "0x7E01", the signal identifier of the driving range may be "0x7E02", and conversely, "0x7E01" may represent the driving range, and "0x7E02" may represent the driving range. That is, each vehicle signal has a unique signal identifier from which the type of vehicle signal can be determined.
In some possible embodiments, the collecting the vehicle signal of the target vehicle specifically includes the steps of: acquiring identification information of the target vehicle; determining the type of a vehicle signal to be acquired according to the identification information, wherein the type of the vehicle signal comprises a driving mileage, a cruising mileage, average oil consumption or a vehicle speed; and collecting the vehicle signal according to the type of the vehicle signal to be collected.
In the embodiment of the application, the identification information may be a vehicle identification code (vehicle identification number, VIN), a license plate number, or other identifications representing the identity of the vehicle. It will be appreciated that each target vehicle has a unique VIN, as well as a unique license plate number. According to the identification information of the target vehicle, the type of the vehicle of the target vehicle is identified, the type of the vehicle signal to be acquired is determined, and then the vehicle signal required by the target vehicle can be known.
For example, the data structure defines the types of 80 vehicle signals, the vehicle-mounted terminal acquires the VIN of the target vehicle through an in-vehicle network (such as a CAN network), and determines that 60 types of vehicle signals to be acquired of the target vehicle exist according to the VIN, so that the vehicle-mounted terminal only acquires 60 vehicle signals of the target vehicle in a targeted manner, and the vehicle signals of the remaining 20 vehicle signals which do not exist of the target vehicle are not acquired. It can be seen that the vehicle signal acquisition strategy obtained by the embodiment of the application is configured according to the requirement, the vehicle signals in the acquisition strategy correspond to the identification information, and no redundant vehicle signals or no vehicle signals of the target vehicle can be generated, so that the acquisition of the vehicle signals is more targeted, and the acquisition efficiency of the vehicle signals is improved.
Step S202: and the vehicle-mounted terminal compares the vehicle signal with the vehicle signal reported last time to obtain an increment signal.
In the embodiment of the application, the increment signal is a vehicle signal with data change, wherein the vehicle signal acquired at this time is compared with the vehicle signal reported last time. For example, the driving distance in the vehicle signal collected this time is 35km, the remaining power is 98%, the driving distance in the vehicle signal reported last time is 30km, and the remaining power is 98%. It will be appreciated that, in the acquired vehicle signal, the data of the driving range changes, while the data of the remaining power does not change, compared with the vehicle signal reported last time, the incremental signal is only the driving range. For example, if 80 vehicle signals are successfully acquired, 60 vehicle signals are changed compared with the last reported vehicle signal, and then the increment signals are 60.
In some possible embodiments, before performing step S202, the following steps may be further included: and in response to the failure of the vehicle signal acquisition, uploading a signal abnormal message to a server, wherein the signal abnormal message is used for indicating the abnormal vehicle signal acquisition.
In this embodiment of the present application, the failure in acquiring the vehicle signal may refer to that one or more signals to be acquired do not acquire data, or may refer to that one or more signals to be acquired acquire abnormal data. If the data of the remaining power is usually 0-100% and the collected remaining power is 120%, the data of the remaining power is abnormal at this time. For example, if there are 80 vehicle signals to be collected by the target vehicle, but only 60 vehicle signals are successfully collected this time, and the remaining 20 vehicle signals are failed to be collected, the abnormal signal message of the vehicle signal which is failed to be collected may be set to "0000", and the vehicle-mounted terminal uploads the abnormal signal message to the server.
It can be seen that if the vehicle-mounted terminal detects that the acquisition of the vehicle signal fails, the vehicle-mounted terminal reports the abnormal signal message to the server so as to prompt the server that some vehicle signals are acquired abnormally, and the subsequent server is convenient to process the abnormal signal message with the acquisition failure.
Optionally, if the vehicle-mounted terminal detects that the collected signal data is abnormal, the abnormal data can be directly deleted, so that the storage space is saved.
In some possible embodiments, if the vehicle signal is compared with the vehicle signal reported last time, the number of times that no incremental signal exists reaches a preset threshold, and the reporting frequency is adjusted so that the adjusted reporting frequency is smaller than the preset reporting frequency.
For example, the preset reporting frequency of the remaining power is once every 3 seconds, and the number of times that the increment signal is not present reaches the preset threshold (assumed to be 5 times). That is, the data of the remaining power is not changed for 5 consecutive times. At this time, the reporting frequency is adjusted, so that the adjusted reporting frequency is smaller than the preset reporting frequency. For example, the reporting frequency of the residual electric quantity is adjusted from a preset frequency of every 3 seconds to a frequency of every 5 seconds.
It can be seen that when the number of times that the increment signal does not exist reaches the preset threshold value, the reporting frequency is adjusted, so that the adjusted reporting frequency is smaller than the preset reporting frequency, and the problem of network bandwidth resource waste caused by missed changes of the vehicle signal due to too fast reporting frequency can be avoided.
It should be noted that the reporting frequency of each vehicle signal may be identical or not, which is not limited in this application, and specific values are set by a technician according to actual situations.
Step S203: and the vehicle-mounted terminal generates an increment signal message according to the increment signal and a signal identifier corresponding to the increment signal.
In some possible embodiments, generating the increment signal packet according to the increment signal and the signal identifier corresponding to the increment signal may include the following steps: determining the type of the increment signal according to the signal identifier corresponding to the increment signal; determining the reporting sequence and byte length of the increment signal according to the type of the increment signal; according to the byte length, carrying out format conversion on the increment signal to obtain a reporting message body; and combining the reported message bodies according to the reporting sequence to obtain an increment signal message.
In the embodiment of the application, the user-defined protocol is adopted to report the vehicle signal, and the data structure of the reported message body can refer to the following table. Wherein one signal identifier corresponds to one vehicle signal. For example, if the data structure defines the type of 80 vehicle signals, the signal identifiers may be "0x7E01, 0x7E02, 0x7E03 … … 0x7E4F, 0x7E50". The byte length is determined according to the data length of the vehicle signal, and the larger the data length of the vehicle signal is, the larger the byte length is, for example, the byte length of the driving mileage is 4 bytes; conversely, if the data length of the vehicle signal is small, the byte length of the remaining oil amount is represented by 1 byte.
It should be noted that, the signal identifiers in the data structures shown in the following table are only examples, and the embodiment of the present application only defines that one vehicle signal corresponds to one signal identifier, and the format of the signal identifier is not limited, but may be other permutation and combination of numbers, letters or symbols, which is not limited. The vehicle signal types in the embodiments of the present application may include, but are not limited to, those listed in the following table, and in some possible implementations, may further include a vehicle speed, a remaining power, location information, an air-conditioning temperature, a side light status, etc., or other operation data capable of reflecting a target vehicle status, etc., which is not limited herein, and the corresponding data structure may refer to the following table.
Signal identifier Byte length Vehicle signal Data type
0x7E01 4 Mileage of travel byte
0x7E02 2 Endurance of journeyProgram(s) byte
0x7E03 1 Residual oil quantity byte
For example, the acquired incremental signal is a driving range, and the corresponding state value is 1222km. The signal identifier corresponding to the driving mileage is '0 x7E 01', the byte length is 4 bytes, and if hexadecimal message is selected, the increment signal message can be '7E 01000004c 6'. In the embodiment of the present application, the message is taken as an example in hexadecimal, and octal and binary may also be used, which is not limited herein. Wherein "0x" in the signal identifier indicates that the signal identifier is numbered in hexadecimal, and can be omitted in the message.
For example, the obtained incremental signal is a driving distance and a remaining oil quantity, the state value corresponding to the driving distance is 1222km, the state value corresponding to the remaining oil quantity is 69L, the incremental signal is subjected to format conversion according to the byte length of the type of the incremental signal to obtain a report message body, the report message body of the driving distance can be 7E01000004c6, the report message body of the remaining oil quantity can be 7E0345, and then the report message bodies are combined according to the report sequence (for example, the report sequence can be the sequence according to the signal identifier) to obtain an incremental signal message 7E01000004c67E 0345.
In some possible embodiments, any combination of reported message bodies may be reported, and the incremental signal message of the driving mileage and the remaining oil amount may also be "7E03457E01000004c6". It can be seen that the incremental signal message generating strategy is simpler and more flexible than the national standard 32960 protocol or the standard 808 protocol.
In some possible embodiments, the incremental signal message may further include identification information of the target vehicle, where the identification information may include, but is not limited to, VIN, license plate number, etc. information that may identify the identity of the target vehicle. In the embodiment of the application, the identification information of the target vehicle can be used as the head of the increment signal message, and the identity of the target vehicle can be quickly identified when the server analyzes the message, so that the data can be conveniently classified and arranged or subsequently called to test the performance of the automobile and analyze the driving behavior of the user.
Step S204: and the vehicle-mounted terminal reports the increment signal message to a server.
The vehicle-mounted terminal reports the increment signal message to the server through the T-box, so that the server can read and analyze the reported increment signal data. Optionally, when the vehicle-mounted terminal collects the vehicle signal data, the collected vehicle signal data can be stored in the vehicle-mounted terminal, so that the vehicle-mounted terminal can conveniently use the stored vehicle signal data as other processing.
It can be seen that the vehicle-mounted terminal reports the vehicle signal data to the server in an incremental reporting mode, that is, reports the vehicle signal with the collected data changed, and the data without the change is not reported. The data transmission quantity can be reduced, the data transmission efficiency is improved, and the network bandwidth resources are saved.
In connection with the above system architecture, another method for data transmission according to the embodiments of the present application is described below. Referring to fig. 3, fig. 3 is a flowchart of another data transmission method according to an embodiment of the present application. As shown in fig. 3, the method is illustrated by taking an example that the execution subject of the method is a server, and the method may include step S301, step 302, and step S303.
Step S301: the server receives the increment signal message.
Step S302: and the server analyzes the increment signal message to obtain a signal identifier corresponding to the increment signal.
Step S303: and the server obtains the increment signal according to the signal identifier corresponding to the increment signal.
Specifically, after receiving the increment signal message sent by the vehicle-mounted terminal, the server analyzes the increment signal message. In the embodiment of the application, the signal identifier of the increment signal can be obtained from the increment signal message, and the signal identifier is used as a query index, so that the type of the increment signal is determined. And then determining the byte length according to the type of the increment signal, and further completing the analysis of the increment signal message to obtain the increment signal and corresponding data. The server may store, forward, or otherwise process the obtained incremental signal and corresponding data, which is not limited.
Reference descriptions of the signal identifiers may refer to the foregoing definitions, and are not repeated herein. It can be seen that in the embodiment of the application, the server only needs to process the increment signal, so that the efficiency of data processing is greatly improved, and meanwhile, the network bandwidth resource is saved.
In some possible embodiments, if the server identifies the message as a signal abnormal message, the message may be discarded, thereby saving network resources.
Optionally, the server may further obtain identification information including the target vehicle from the incremental signal packet, and may quickly identify the identity of the target vehicle according to the identification information, so as to conveniently classify, sort, or subsequently invoke the incremental data to test the performance of the automobile and analyze the driving behavior of the user.
The foregoing details the method of embodiments of the present application, and the apparatus of embodiments of the present application is provided below.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 4, when the data transmission device is a vehicle-mounted terminal, the data transmission device 400 includes:
an acquisition module 401, configured to acquire vehicle signals of a target vehicle, where one of the vehicle signals corresponds to a signal identifier, and the signal identifier is used to determine a type of the vehicle signal;
the comparison module 402 is configured to compare the vehicle signal with a vehicle signal collected last time to obtain an incremental signal;
a generating module 403, configured to generate an incremental signal packet according to the incremental signal and a signal identifier corresponding to the incremental signal;
And the reporting module 404 is configured to report the increment signal packet to a server.
In some possible embodiments, the acquisition module 401 is specifically configured to acquire identification information of the target vehicle; determining the type of a vehicle signal to be acquired according to the identification information, wherein the type of the vehicle signal comprises a driving mileage, a cruising mileage, average oil consumption or a vehicle speed; and collecting the vehicle signal according to the type of the vehicle signal to be collected.
In some possible embodiments, the apparatus 400 for data transmission further includes a determining module 405 for determining whether the vehicle signal is successfully collected. If so, the compare module 402 is invoked. If not, the reporting module 404 is invoked to execute the step of uploading a signal abnormal message to the server, wherein the signal abnormal message is used for indicating that the vehicle signal acquisition is abnormal.
In some possible embodiments, the generating module 403 is specifically configured to determine a type of the incremental signal according to a signal identifier corresponding to the incremental signal; determining the reporting sequence and byte length of the increment signal according to the type of the increment signal; according to the byte length, carrying out format conversion on the increment signal to obtain a reporting message body; and combining the reported message bodies according to the reporting sequence to obtain an increment signal message.
In some possible embodiments, the apparatus 400 for data transmission further includes an adjustment module 406 configured to adjust the reporting frequency if the number of times that the incremental signal does not exist reaches the preset threshold value, so that the adjusted reporting frequency is smaller than the preset reporting frequency.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another data transmission device according to an embodiment of the present application. As shown in fig. 5, when the data transmission device is a server, the data transmission device 500 includes a receiving module 501, an analyzing module 502, and an obtaining module 503. The detailed description of the individual modules follows:
a receiving module 501, configured to receive an incremental signal packet;
the parsing module 502 is configured to parse the incremental signal packet to obtain a signal identifier corresponding to the incremental signal;
and the obtaining module 503 is configured to obtain an increment signal according to a signal identifier corresponding to the increment signal.
It should be noted that the implementation of the respective modules of fig. 4 and 5 may also correspond to the respective descriptions of the method embodiments shown with reference to fig. 2 or 3.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 6, the computer device 600 includes a processor 601, a memory 602, and a communication interface 603, wherein the memory 602 stores one or more programs 604. The processor 601, memory 602, and communication interface 603 may be connected by a bus 605.
When the computer device is an in-vehicle terminal, the program 604 is configured to execute instructions for:
collecting vehicle signals of a target vehicle, wherein one signal in the vehicle signals corresponds to a signal identifier, and the signal identifier is used for determining the type of the vehicle signal;
comparing the vehicle signal with the vehicle signal reported last time to obtain an incremental signal;
generating an increment signal message according to the increment signal and a signal identifier corresponding to the increment signal;
and reporting the increment signal message to a server.
In some possible embodiments, the above-mentioned program 604 is specifically configured to execute the following instructions in terms of the acquisition of the vehicle signal of the target vehicle:
acquiring identification information of the target vehicle;
determining the type of a vehicle signal to be acquired according to the identification information, wherein the type of the vehicle signal comprises a driving mileage, a cruising mileage, average oil consumption or a vehicle speed;
and collecting the vehicle signal according to the type of the vehicle signal to be collected.
In some possible embodiments, before comparing the vehicle signal with the vehicle signal reported last time to obtain the increment signal, the program 604 is further configured to execute instructions for:
In response to the failure of the vehicle signal acquisition, uploading a signal abnormal message to a server, wherein the signal abnormal message is used for indicating the abnormal vehicle signal acquisition; or alternatively
And responding to successful acquisition of the vehicle signal, and executing the step of comparing the vehicle signal with the vehicle signal reported last time to obtain an increment signal.
In some possible embodiments, the program 604 is specifically configured to execute the following instructions in generating an incremental signal packet according to the incremental signal and the signal identifier corresponding to the incremental signal:
determining the type of the increment signal according to the signal identifier corresponding to the increment signal;
determining the reporting sequence and byte length of the increment signal according to the type of the increment signal;
according to the byte length, carrying out format conversion on the increment signal to obtain a reporting message body;
and combining the reported message bodies according to the reporting sequence to obtain an increment signal message.
In some possible embodiments, the program 604 is further configured to execute instructions for:
if the vehicle signal is compared with the vehicle signal reported last time, the number of times that no increment signal exists reaches a preset threshold value, and the reporting frequency is adjusted so that the adjusted reporting frequency is smaller than the preset reporting frequency.
When the computer device is a server, the program 604 is configured to execute the following instructions:
receiving an increment signal message;
analyzing the increment signal message to obtain a signal identifier corresponding to the increment signal;
and obtaining the increment signal according to the signal identifier corresponding to the increment signal.
Those skilled in the art will appreciate that only one memory and processor is shown in fig. 6 for ease of illustration. In an actual terminal or server, there may be multiple processors and memories. The memory 602 may also be referred to as a storage medium or storage device, etc., and embodiments of the present application are not limited in this regard.
It should be appreciated that in embodiments of the present application, the processor 601 may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processing, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field-programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like.
It should also be appreciated that the memory 602 referred to in embodiments of the present application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. The volatile memory may be random access memory (random access memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and direct memory bus RAM (DR RAM).
It is noted that when the processor 601 is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, a memory (storage module) is integrated in the processor.
It should be noted that the memory 602 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The bus 605 may include a power bus, a control bus, a status signal bus, and the like in addition to a data bus. But for clarity of illustration, the various buses are labeled as buses in the figures.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method. To avoid repetition, a detailed description is not provided herein.
In various embodiments of the present application, the sequence number of each process does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks (illustrative logical block, ILB) and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
The present application also provides a computer storage medium storing a computer program that is executed by a processor to implement some or all of the steps of a method of any one of the data transmission methods described in the method embodiments above.
The present application also provides a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of a method of data transmission as any one of the method embodiments described above.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of data transmission, comprising the steps of:
collecting vehicle signals of a target vehicle, wherein one signal in the vehicle signals corresponds to a signal identifier, and the signal identifier is used for determining the type of the vehicle signal;
Comparing the vehicle signal with the vehicle signal reported last time to obtain an incremental signal;
generating an increment signal message according to the increment signal and a signal identifier corresponding to the increment signal;
and reporting the increment signal message to a server.
2. The method of claim 1, said acquiring vehicle signals of a target vehicle, comprising the steps of:
acquiring identification information of the target vehicle;
determining the type of a vehicle signal to be acquired according to the identification information, wherein the type of the vehicle signal comprises a driving mileage, a cruising mileage, average oil consumption or a vehicle speed;
and collecting the vehicle signal according to the type of the vehicle signal to be collected.
3. The method of claim 1, wherein the comparing the vehicle signal with the last reported vehicle signal, before obtaining the incremental signal, further comprises the steps of:
in response to the failure of the vehicle signal acquisition, uploading a signal abnormal message to a server, wherein the signal abnormal message is used for indicating the abnormal vehicle signal acquisition; or alternatively
And responding to successful acquisition of the vehicle signal, and executing the step of comparing the vehicle signal with the vehicle signal reported last time to obtain an increment signal.
4. The method according to claim 1, wherein the generating the increment signal message according to the increment signal and the signal identifier corresponding to the increment signal includes the following steps:
determining the type of the increment signal according to the signal identifier corresponding to the increment signal;
determining the reporting sequence and byte length of the increment signal according to the type of the increment signal;
according to the byte length, carrying out format conversion on the increment signal to obtain a reporting message body;
and combining the reported message bodies according to the reporting sequence to obtain an increment signal message.
5. The method of claim 1, further comprising the step of:
if the vehicle signal is compared with the vehicle signal reported last time, the number of times that no increment signal exists reaches a preset threshold value, and the reporting frequency is adjusted so that the adjusted reporting frequency is smaller than the preset reporting frequency.
6. A method of data transmission, comprising the steps of:
receiving an increment signal message;
analyzing the increment signal message to obtain a signal identifier corresponding to the increment signal;
and obtaining the increment signal according to the signal identifier corresponding to the increment signal.
7. An apparatus for data transmission, comprising:
the system comprises an acquisition module, a detection module and a control module, wherein the acquisition module is used for acquiring vehicle signals of a target vehicle, one signal in the vehicle signals corresponds to a signal identifier, and the signal identifier is used for determining the type of the vehicle signal;
the comparison module is used for comparing the vehicle signal with the vehicle signal acquired last time to obtain an incremental signal;
the generation module is used for generating an increment signal message according to the increment signal and a signal identifier corresponding to the increment signal;
and the reporting module is used for reporting the increment signal message to the server.
8. An apparatus for data transmission, comprising:
the receiving module is used for receiving the increment signal message;
the analysis module is used for analyzing the increment signal message to obtain a signal identifier corresponding to the increment signal;
and the acquisition module is used for acquiring the increment signal according to the signal identifier corresponding to the increment signal.
9. A computer device comprising a processor, a memory and a communication interface, wherein the memory stores one or more programs configured for execution by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-6.
10. A computer storage medium having instructions stored therein, which when executed by a processor, implement the method of any of the preceding claims 1-6.
CN202111205698.7A 2021-10-15 2021-10-15 Method, device, computer equipment and storage medium for data transmission Pending CN115996253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111205698.7A CN115996253A (en) 2021-10-15 2021-10-15 Method, device, computer equipment and storage medium for data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111205698.7A CN115996253A (en) 2021-10-15 2021-10-15 Method, device, computer equipment and storage medium for data transmission

Publications (1)

Publication Number Publication Date
CN115996253A true CN115996253A (en) 2023-04-21

Family

ID=85992556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111205698.7A Pending CN115996253A (en) 2021-10-15 2021-10-15 Method, device, computer equipment and storage medium for data transmission

Country Status (1)

Country Link
CN (1) CN115996253A (en)

Similar Documents

Publication Publication Date Title
CN111930407B (en) Vehicle ECU software upgrading method and system, vehicle TBOX microcontroller and SOC terminal
US11887408B2 (en) Service event response tailoring
CN111131231A (en) Method and equipment for accessing data of vehicle-mounted terminal into Internet of vehicles monitoring platform
CN104753551A (en) Vehicle-mounted terminal device, driving consumption data acquiring method and system
CN108228379B (en) Log statistical method, collecting server, distributed server and summarizing server
CN112187936A (en) Vehicle data processing method, device, equipment, storage medium and vehicle
JP7522216B2 (en) Certificate list update method and device
CN115223273B (en) TCU data monitoring method and device, terminal equipment and storage medium
US11474889B2 (en) Log transmission controller
CN114401286A (en) Data uploading method and system based on vehicle-mounted terminal, storage medium and vehicle
CN102761626B (en) A kind of In-vehicle networking node address and upgrade method
CN115996253A (en) Method, device, computer equipment and storage medium for data transmission
CN115835162A (en) Vehicle-end data acquisition device and method, computer program product and vehicle
CN117806927A (en) Automobile virtual calibration method and device, electronic equipment and storage medium
CN115118577A (en) Method and device for determining remote upgrade abnormal reason, electronic equipment and storage medium
CN115803737A (en) Log management device and security attack detection/analysis system
CN111935199A (en) Vehicle-mounted software version information synchronization method, device and system and vehicle
CN112235195B (en) Method for processing reported data and related equipment
WO2024016251A1 (en) Log reporting method and apparatus
CN112671547B (en) Resource allocation method, device and system for service slices in vehicle
US20230176210A1 (en) Wireless communication control device, wireless communication device, and wireless communication control method
CN116821798B (en) Fault early warning server, method and computer storage medium
CN118672237A (en) Fault analysis method, system, storage medium, electronic device, and program product
CN115220991A (en) Data monitoring method, vehicle-mounted controller and automobile
KR101452346B1 (en) System and method for processing vehicle information

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