CN111970347A - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN111970347A
CN111970347A CN202010785319.5A CN202010785319A CN111970347A CN 111970347 A CN111970347 A CN 111970347A CN 202010785319 A CN202010785319 A CN 202010785319A CN 111970347 A CN111970347 A CN 111970347A
Authority
CN
China
Prior art keywords
power
state
data
channel
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010785319.5A
Other languages
Chinese (zh)
Other versions
CN111970347B (en
Inventor
黄宇波
黄亚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Xiaopeng Motors Technology Co Ltd
Original Assignee
Guangzhou Xiaopeng Internet of Vehicle Technology 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 Guangzhou Xiaopeng Internet of Vehicle Technology Co Ltd filed Critical Guangzhou Xiaopeng Internet of Vehicle Technology Co Ltd
Priority to CN202010785319.5A priority Critical patent/CN111970347B/en
Publication of CN111970347A publication Critical patent/CN111970347A/en
Application granted granted Critical
Publication of CN111970347B publication Critical patent/CN111970347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0841Registering performance data
    • G07C5/085Registering performance data using electronic data carriers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • 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
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries

Abstract

The embodiment of the invention provides a data transmission method and a device, wherein the method comprises the following steps: determining the current power state of the vehicle; the power state comprises a power-on state and a power-off state; when the power state is the power-on state, collecting driving state data; sending the driving state data to a server connected with a Controller Area Network (CAN) channel through the CAN channel; when the power state is converted from the power-on state to the power-off state, generating matched geographic data according to the driving state data; and sending the geographic data to the server through the CAN channel. The embodiment of the invention CAN realize time division multiplexing of the CAN channel according to the power-on period and the power-off period which are divided by the driving period of the vehicle, transmit the driving state data to the server in the power-on period and transmit the geographic data in the power-off period, thereby improving the utilization rate of the CAN channel.

Description

Data transmission method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method and a data transmission apparatus.
Background
In the automobile industry, CAN (Controller Area Network) is an ISO international standardized serial communication protocol developed to meet the requirements of safety, comfort, convenience, low pollution, and low cost in order to apply various electronic control systems. For the CAN message which is not connected with other electronic control systems and only used for data observation, the bandwidth of the CAN message often does not meet the data observation requirements of multiple functions and multiple services.
In order to realize the transmission of multifunctional multi-service data, a plurality of CAN channels are generally arranged in a vehicle, and data which is correspondingly responsible for transmission is transmitted through different CAN channels, but the communication cost of the vehicle is undoubtedly increased.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method and a corresponding data transmission apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a data transmission method, including:
determining the current power state of the vehicle; the power state comprises a power-on state and a power-off state;
when the power state is the power-on state, collecting driving state data;
sending the driving state data to a server connected with a Controller Area Network (CAN) channel through the CAN channel;
when the power state is converted from the power-on state to the power-off state, generating matched geographic data according to the driving state data;
and sending the geographic data to the server through the CAN channel.
Optionally, the step of determining the current vehicle power state comprises:
acquiring a battery control monitoring signal;
when the value of the battery control monitoring signal is a first preset value, determining that the current power state of the vehicle is a power-on state;
and when the value of the battery control monitoring signal is a second preset value, determining that the current power state of the vehicle is a power-off state.
Optionally, the step of sending the driving state data to a server connected to a Controller Area Network (CAN) channel through the CAN channel includes:
generating a power-on period message based on the power-on state and the driving state data;
sending the power-on period message to a server connected with the CAN channel through the CAN channel;
and the server is used for analyzing the power-on period message according to the power-on state to obtain the driving state data.
Optionally, the step of sending the geographic data to the server through the CAN channel includes:
generating a power-off period message based on the power-off state and the geographic data;
sending the power-off period message to the server through the CAN channel;
the server is used for analyzing the power-off period message according to the power-off state to obtain the driving state data.
Optionally, the power-up period message and the power-down period message include a plurality of signal identifiers and corresponding signal values; the step of generating a power-on period message based on the power-on state and the driving state data comprises:
determining a first target signal identifier and a corresponding first target signal value according to the driving state data;
and generating a power-on period message based on the battery control monitoring signal corresponding to the power-on state, the first target signal identifier and the first target signal value.
The step of generating a power-down period message based on the power-down state and the geographic data comprises:
determining a second target signal identification and a corresponding second target signal value according to the geographic data;
and generating a power-off period message based on the battery control monitoring signal corresponding to the power-off state, the second target signal identifier and the second target signal value.
Optionally, the step of generating the matched geographic data according to the driving state data includes:
generating matched longitude and latitude information by adopting the driving state data; the longitude and latitude information comprises longitude and latitude of the historical position of the vehicle and longitude and latitude of the current position;
and encrypting the longitude and latitude information to obtain geographic data.
Optionally, the latitude and longitude information includes longitude information and latitude information; the power-off period message comprises a plurality of signal values; the encryption processing includes:
dividing the longitude information and the latitude information into two parts respectively;
setting a first signal value to match a first portion of the longitude information;
setting a second signal value to match a second portion of the longitude information;
setting a third signal value to match the first portion of latitude information;
setting a fourth signal value to match a second portion of the latitude information.
The embodiment of the invention also discloses a data transmission device, which comprises:
a status module to determine a current power status of the vehicle; the power state comprises a power-on state and a power-off state;
the acquisition module is used for acquiring driving state data when the power state is the power-on state;
the first sending module is used for sending the driving state data to a server connected with a Controller Area Network (CAN) channel through the CAN channel;
the generating module is used for generating matched geographic data according to the driving state data when the power state is converted from the power-on state to the power-off state;
and the second sending module is used for sending the geographic data to the server through the CAN channel.
Optionally, the status module may include:
the monitoring signal acquisition submodule is used for acquiring a battery control monitoring signal;
the first state determining submodule is used for determining that the current power state of the vehicle is a power-on state when the value of the battery control monitoring signal is a first preset value;
and the second state determination submodule is used for determining that the current power state of the vehicle is a power-off state when the value of the battery control monitoring signal is a second preset value.
Optionally, the first sending module may include:
the power-on period message generation submodule is used for generating a power-on period message based on the power-on state and the driving state data;
the power-on period message sending submodule is used for sending the power-on period message to a server connected with the CAN channel through the CAN channel;
and the server is used for analyzing the power-on period message according to the power-on state to obtain the driving state data.
Optionally, the step of sending the geographic data to the server through the CAN channel includes:
the power-off period message generation submodule is used for generating a power-off period message based on the power-off state and the geographic data;
the power-off period message generation submodule is used for sending the power-off period message to the server through the CAN channel;
the server is used for analyzing the power-off period message according to the power-off state to obtain the driving state data.
Optionally, the power-up period message and the power-down period message include a plurality of signal identifiers and corresponding signal values; the power-up period message generation submodule comprises:
the first signal determining unit is used for determining a first target signal identifier and a corresponding first target signal value according to the driving state data;
and the power-on period message generating unit is used for generating a power-on period message based on the battery control monitoring signal corresponding to the power-on state, the first target signal identifier and the first target signal value.
The power-off period message generation submodule comprises:
a second signal determination unit for determining a second target signal identification and a corresponding second target signal value according to the geographical data;
and the power-off period message generating unit is used for generating a power-off period message based on the battery control monitoring signal corresponding to the power-off state, the second target signal identifier and the second target signal value.
Optionally, the generating module may include:
the longitude and latitude information submodule is used for generating matched longitude and latitude information by adopting the driving state data; the longitude and latitude information comprises longitude and latitude of the historical position of the vehicle and longitude and latitude of the current position;
and the encryption submodule is used for encrypting the longitude and latitude information to obtain geographic data.
Optionally, the latitude and longitude information includes longitude information and latitude information; the power-off period message comprises a plurality of signal values; the encryption processing includes:
dividing the longitude information and the latitude information into two parts respectively;
setting a first signal value to match a first portion of the longitude information;
setting a second signal value to match a second portion of the longitude information;
setting a third signal value to match the first portion of latitude information;
setting a fourth signal value to match a second portion of the latitude information.
The embodiment of the invention also discloses a vehicle, which comprises:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the vehicle to perform one or more methods as described above.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods described above.
The embodiment of the invention has the following advantages:
the method comprises the steps of dividing a running period of a vehicle into a power-on period and a power-off period through an electric power state of the vehicle, collecting running state data of the vehicle in the power-on period, sending the running state data to a server through a CAN channel, generating geographic data matched with the running state data when the vehicle enters the power-off period from the power-on period, and transmitting the geographic data to the server through the CAN channel, so that time division multiplexing is carried out on the CAN channel according to the power-on period and the power-off period which divide the running period of the vehicle, the running state data is transmitted to the server in the power-on period, the geographic data is transmitted in the power-off period, the utilization rate of the CAN channel is improved, and due to the fact that the geographic data are transmitted only in the power-off period, overload transmission of the CAN channel in the running process of the vehicle is avoided, and data.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a data transmission method of the present invention;
fig. 2 is a block diagram of a data transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data transmission method of the present invention is shown, which may specifically include the following steps:
step 101, determining the current power state of a vehicle; the power state comprises a power-on state and a power-off state;
the embodiment of the invention can be applied to vehicles, and the vehicles can be pure electric vehicles or vehicles containing electric power as power, such as: a gas-electric hybrid vehicle, a gasoline-electric hybrid vehicle, and the like.
The vehicle is provided with a power supply device (for example, a lithium battery pack) as a power source device to supply running energy to the vehicle. The power state may be a state in which the power supply apparatus supplies power to other components in the vehicle. The power-on state may be a state in which the power supply apparatus supplies power to other components in the vehicle normally, that is, a state after the vehicle is started. The power-off state can be a state that the power supply device stops supplying power to part or all of the devices in the vehicle, and when the power supply device stops supplying power to part of the devices, only part of the devices (such as anti-theft related devices, communication related devices and the like) in the vehicle are reserved for supplying power.
It is understood that the driving cycle of the vehicle may be divided into a power-on period corresponding to the power-on state and a power-off period corresponding to the power-off state according to the power state. The power-on period is the time when the power state of the vehicle is in the power-on state, and the power-off period is the time when the power state of the vehicle is in the power-off state.
Step 102, when the power state is the power-on state, collecting driving state data;
when the power state is the power-on state, the driving state data of the vehicle can be collected, for example: automatic driving related data, automatic parking related data, and the like.
103, sending the driving state data to a server connected with a Controller Area Network (CAN) channel through the CAN channel;
the vehicle CAN be provided with a controller area network device, the controller area network device is provided with a CAN bus, and the CAN bus is connected with each electronic module (such as a vehicle window control module) in the controller area network device. The CAN channel CAN be the CAN bus, and CAN be connected with a designated server in a wireless mode so as to transmit data with the server.
The driving state data CAN be received through the CAN channel and sent to the server, and the server CAN acquire the driving state data acquired by the observation vehicle in the power-on period.
104, when the power state is switched from the power-on state to the power-off state, generating matched geographic data according to the driving state data;
when the power state is converted from the power-on state to the power-off state, the matched geographic data is generated according to the driving state data acquired in the power-on period, and the geographic data can be data related to the geographic position of the vehicle in the power-on period.
In a specific example, when the vehicle receives a power-off command, the power state is switched from the power-on state to the power-off state, and since part of the electronic controller is not powered off immediately when the power state of the vehicle is switched to the power-off state, the electronic controller maintains the power-on state for a short time, and the electronic controller maintaining the power-on state can generate the geographic data according to the driving state data in the time.
And 105, sending the geographic data to the server through the CAN channel.
In this embodiment, the vehicle is provided with a CAN channel through which the generated geographic data is transmitted to the server during the power-off period, so that the server CAN acquire and observe the geographic data.
In the embodiment of the invention, the running period of the vehicle CAN be divided into the power-on period and the power-off period through the power state of the vehicle, the running state data of the vehicle is collected in the power-on period, the running state data is sent to the server through the CAN channel, when the vehicle enters the power-off period from the power-on period, the geographic data matched with the running state data is generated, and the geographic data is transmitted to the server through the CAN channel, so that the CAN channel is subjected to time division multiplexing according to the power-on period and the power-off period which divide the running period of the vehicle, the running state data is transmitted to the server in the power-on period, the geographic data is transmitted in the power-off period, the utilization efficiency of the CAN channel is improved, and the geographic data is transmitted only in the power-off period, so that the overload transmission of the CAN channel in the running process of the vehicle is avoided, and the.
In an alternative embodiment of the present invention, step 101 may comprise:
substep S11, obtaining a battery control monitoring signal;
the CAN channel may be connected to a BCM (Battery Control Monitoring) module, and receives a signal sent by the module, i.e., a Battery Control Monitoring signal.
A substep S12, determining that the current power state of the vehicle is a power-on state when the value of the battery control monitoring signal is a first preset value;
and a substep S13, determining that the current power state of the vehicle is a power-down state when the value of the battery control monitoring signal is a second preset value.
As an example, the first preset value may be 1, and when the value of the battery control monitoring signal acquired by the CAN channel is 1, it may be determined that the current power state of the vehicle is the power-on state. The second preset value may be 0, and when the value of the battery control monitoring signal acquired by the CAN channel is 0, it may be determined that the current power state of the vehicle is a power-on state.
The current power state of the vehicle is determined by the value of the battery control monitor signal, and in the above example, when it is detected that the value of the battery control monitor signal changes from 1 to 0, it is determined that the power state of the vehicle transitions from the power-on state to the power-off state.
In an alternative embodiment of the present invention, the step 103 may include:
a substep S21, generating a power-on period message based on the power-on state and the driving state data;
substep S22, sending the power-on period message to a server connected with the CAN channel through the CAN channel; and the server is used for analyzing the power-on period message according to the power-on state to obtain the driving state data.
The power-on period message CAN be generated based on the signal corresponding to the power-on state and the corresponding signal value (such as the battery control monitoring signal and the corresponding first preset value) thereof and the driving state data, and after the power-on period message is transmitted to the server through the CAN channel, the server CAN determine that the message content includes the driving state data according to the signal corresponding to the power-on state and the corresponding value thereof, and analyze the message.
In an alternative embodiment of the present invention, the step 105 may include:
a substep S31 of generating a power-down period message based on the power-down state and the geographic data;
substep S32, sending the power-off period message to the server through the CAN channel; the server is used for analyzing the power-off period message according to the power-off state to obtain the driving state data.
The power-off period message may be generated based on the signal corresponding to the power-off state and the corresponding signal value thereof (such as the battery control monitoring signal and the corresponding second preset value thereof) and the driving state data, and after the power-off period message is transmitted to the server through the CAN channel, the server may determine that the message content includes the geographic data according to the signal corresponding to the power-off state and the corresponding value thereof, and analyze the message.
In practical application, the CAN channel performs time division multiplexing of a power-on period and a power-off period, and the server CAN determine whether the message is matched with the driving state data or the geographic data according to the signal corresponding to the power state in the received message and the corresponding value of the signal.
In an optional embodiment of the present invention, the power-up period packet and the power-down period packet include a plurality of signal identifiers and corresponding signal values; the sub-step S21 may include: determining a first target signal identifier and a corresponding first target signal value according to the driving state data; and generating a power-on period message based on the battery control monitoring signal corresponding to the power-on state, the first target signal identifier and the first target signal value.
Different signals have different value ranges, and different signals have uniquely matched signal identities, for example: the corresponding signal and signal identification may be determined as desired.
For example: when the driving state data needs to be transmitted through the 16-bit signal, the first target identifier can be determined to be a signal A or a signal C; when the vehicle state data needs to be transmitted through the 8-bit signal, the first target identifier can be determined to be the signal B. When the vehicle state data needs to be transmitted through the 32-bit signal, the first target identifier can be determined to be the signal a and the signal C.
And after the first target signal identifier is determined, carrying out corresponding assignment on a signal corresponding to the first target signal identifier, namely a first target signal value.
And generating a power-on period message based on a battery control monitoring signal corresponding to a power-on state, the first target signal identifier and the first target signal value. And the server analyzes the power-on period message to obtain a battery control monitoring signal, the first target signal identifier and the first target signal value corresponding to the power-on state, so as to obtain the driving state data.
The sub-step S31 may include: determining a second target signal identification and a corresponding second target signal value according to the geographic data; and generating a power-off period message based on the battery control monitoring signal corresponding to the power-off state, the second target signal identifier and the second target signal value.
And after the second target signal identification is determined, carrying out corresponding assignment on the signal corresponding to the second target signal identification according to the geographic data, namely a second target signal value.
And generating a power-off period message based on the battery control monitoring signal corresponding to the power-off state, the second target signal identifier and the second target signal value. And the server analyzes the power-off period message to obtain a battery control monitoring signal, the second target signal identifier and the second target signal value corresponding to the power-off state, so as to obtain the geographic data.
In an optional embodiment of the present invention, the step of generating the matching geographic data according to the driving state data may include:
the substep S41, generating matched longitude and latitude information by adopting the driving state data; the longitude and latitude information comprises longitude and latitude of the historical position of the vehicle and longitude and latitude of the current position;
and a substep S42, encrypting the longitude and latitude information to obtain geographic data.
The driving state data may include each driving characteristic position of the driving track of the vehicle and an environment characteristic position (e.g., a parking lot entrance position) near the vehicle during driving, and the driving characteristic position and/or the environment characteristic position are converted into corresponding latitudes and longitudes, wherein the latitudes and latitudes of the historical position and the latitudes and latitudes of the current position can be obtained according to the driving characteristic position.
And encrypting the longitude and latitude to obtain matched geographic data.
In an optional embodiment of the present invention, the latitude and longitude information includes longitude information and latitude information; the power-off period message comprises a plurality of signal values; the encryption processing includes: dividing the longitude information and the latitude information into two parts respectively; setting a first signal value to match a first portion of the longitude information; setting a second signal value to match a second portion of the longitude information; setting a third signal value to match the first portion of latitude information; setting a fourth signal value to match a second portion of the latitude information.
The following illustrates the encryption process: obtaining the longitude and latitude (23.1615864, 113.3789305), the longitude and latitude coordinate and 10 of a certain position according to the driving state data7The multiplication of the power of 7 of 10 results in the corresponding value (231615864, 1133789305), and the binary value "01000000011110010100001110010100" corresponding to the longitude binary value "00001101110011100010110101111000" latitude can be represented by two 16bits signals respectively. The binary value of the longitude is divided into two parts, and the signals "SCU _ CDU _ Log _ Data _ 4" and "SCU _ CDU _ Log _ Data _ 3" are set to respective values, that is, the value of SCU _ CDU _ Log _ Data _4 is 0000110111001110 (binary) ═ 3534 (decimal) and the value of SCU _ CDU _ Log _ Data _3 is 0010110101111000 (binary) ═ 11640 (decimal). Similarly, it is possible to divide the binary value of the dimension into two parts and to divide the signals "SCU _ CDU _ Log _ Data _ 6" and "SCU _ CDU \\Log _ Data _5 "is set to a corresponding value, that is, the value of SCU _ CDU _ Log _ Data _6 is 0100000001111001 (binary) 17300 (decimal), and the value of SCU _ CDU _ Log _ Data _5 is 0100001110010100 (binary) 16505 (decimal).
The server may analyze and combine values of "SCU _ CDU _ Log _ Data _ 4", "SCU _ CDU _ Log _ Data _ 3", "SCU _ CDU _ Log _ Data _ 6", and "SCU _ CDU _ Log _ Data _ 5" to obtain longitude and latitude coordinates (23.1615864, 113.3789305).
In the embodiment of the present invention, a power-on period message may be generated when the power state is a power-on state and a power-off period message may be generated when the power state is a power-off state by using an SCU (Smart Control Unit autonomous driving intelligent controller) connected to the CAN channel.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 2, a block diagram of a data transmission apparatus according to an embodiment of the present invention is shown, and specifically, the data transmission apparatus may include the following modules:
a status module 201 for determining a current power status of the vehicle; the power state comprises a power-on state and a power-off state;
the acquisition module 202 is configured to acquire driving state data when the power state is the power-on state;
the first sending module 203 is configured to send the driving state data to a server connected to a Controller Area Network (CAN) channel through the CAN channel;
the generating module 204 is configured to generate matched geographic data according to the driving state data when the power state is switched from the power-on state to the power-off state;
and a second sending module 205, configured to send the geographic data to the server through the CAN channel.
In an optional embodiment of the present invention, the status module 201 may include:
the monitoring signal acquisition submodule is used for acquiring a battery control monitoring signal;
the first state determining submodule is used for determining that the current power state of the vehicle is a power-on state when the value of the battery control monitoring signal is a first preset value;
and the second state determination submodule is used for determining that the current power state of the vehicle is a power-off state when the value of the battery control monitoring signal is a second preset value.
In an optional embodiment of the present invention, the first transmitting module may include:
the power-on period message generation submodule is used for generating a power-on period message based on the power-on state and the driving state data;
the power-on period message sending submodule is used for sending the power-on period message to a server connected with the CAN channel through the CAN channel;
and the server is used for analyzing the power-on period message according to the power-on state to obtain the driving state data.
In an optional embodiment of the present invention, the step of sending the geographic data to the server through the CAN channel includes:
the power-off period message generation submodule is used for generating a power-off period message based on the power-off state and the geographic data;
the power-off period message generation submodule is used for sending the power-off period message to the server through the CAN channel;
the server is used for analyzing the power-off period message according to the power-off state to obtain the driving state data.
In an optional embodiment of the present invention, the power-up period packet and the power-down period packet include a plurality of signal identifiers and corresponding signal values; the power-up period message generation submodule comprises:
the first signal determining unit is used for determining a first target signal identifier and a corresponding first target signal value according to the driving state data;
and the power-on period message generating unit is used for generating a power-on period message based on the battery control monitoring signal corresponding to the power-on state, the first target signal identifier and the first target signal value.
The power-off period message generation submodule comprises:
a second signal determination unit for determining a second target signal identification and a corresponding second target signal value according to the geographical data;
and the power-off period message generating unit is used for generating a power-off period message based on the battery control monitoring signal corresponding to the power-off state, the second target signal identifier and the second target signal value.
In an optional embodiment of the present invention, the generating module 204 may include:
the longitude and latitude information submodule is used for generating matched longitude and latitude information by adopting the driving state data; the longitude and latitude information comprises longitude and latitude of the historical position of the vehicle and longitude and latitude of the current position;
and the encryption submodule is used for encrypting the longitude and latitude information to obtain geographic data.
In an optional embodiment of the present invention, the latitude and longitude information includes longitude information and latitude information; the power-off period message comprises a plurality of signal values; the encryption processing includes:
dividing the longitude information and the latitude information into two parts respectively;
setting a first signal value to match a first portion of the longitude information;
setting a second signal value to match a second portion of the longitude information;
setting a third signal value to match the first portion of latitude information;
setting a fourth signal value to match a second portion of the latitude information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiment of the invention also discloses a vehicle, which comprises:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the vehicle to perform one or more methods as described above.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods described above.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the values stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The data transmission method and the data transmission device provided by the invention are described in detail, and the principle and the implementation mode of the invention are explained by applying specific examples, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method of data transmission, comprising:
determining the current power state of the vehicle; the power state comprises a power-on state and a power-off state;
when the power state is the power-on state, collecting driving state data;
sending the driving state data to a server connected with a Controller Area Network (CAN) channel through the CAN channel;
when the power state is converted from the power-on state to the power-off state, generating matched geographic data according to the driving state data;
and sending the geographic data to the server through the CAN channel.
2. The method of claim 1, wherein the step of determining the current vehicle power state comprises:
acquiring a battery control monitoring signal;
when the value of the battery control monitoring signal is a first preset value, determining that the current power state of the vehicle is a power-on state;
and when the value of the battery control monitoring signal is a second preset value, determining that the current power state of the vehicle is a power-off state.
3. The method according to claim 1 or 2, wherein the step of sending the driving state data to a server connected to a Controller Area Network (CAN) channel through the CAN channel comprises:
generating a power-on period message based on the power-on state and the driving state data;
sending the power-on period message to a server connected with the CAN channel through the CAN channel;
and the server is used for analyzing the power-on period message according to the power-on state to obtain the driving state data.
4. The method of claim 3, wherein the step of sending the geographic data to the server over the CAN channel comprises:
generating a power-off period message based on the power-off state and the geographic data;
sending the power-off period message to the server through the CAN channel;
the server is used for analyzing the power-off period message according to the power-off state to obtain the driving state data.
5. The method of claim 4, wherein the power-up period message and the power-down period message comprise a plurality of signal identifications and corresponding signal values; the step of generating a power-on period message based on the power-on state and the driving state data comprises:
determining a first target signal identifier and a corresponding first target signal value according to the driving state data;
and generating a power-on period message based on the battery control monitoring signal corresponding to the power-on state, the first target signal identifier and the first target signal value.
The step of generating a power-down period message based on the power-down state and the geographic data comprises:
determining a second target signal identification and a corresponding second target signal value according to the geographic data;
and generating a power-off period message based on the battery control monitoring signal corresponding to the power-off state, the second target signal identifier and the second target signal value.
6. The method of claim 4, wherein the step of generating matching geographic data from the driving state data comprises:
generating matched longitude and latitude information by adopting the driving state data; the longitude and latitude information comprises longitude and latitude of the historical position of the vehicle and longitude and latitude of the current position;
and encrypting the longitude and latitude information to obtain geographic data.
7. The method of claim 6, wherein the latitude and longitude information includes longitude information and latitude information; the power-off period message comprises a plurality of signal values; the encryption processing includes:
dividing the longitude information and the latitude information into two parts respectively;
setting a first signal value to match a first portion of the longitude information;
setting a second signal value to match a second portion of the longitude information;
setting a third signal value to match the first portion of latitude information;
setting a fourth signal value to match a second portion of the latitude information.
8. A data transmission apparatus, comprising:
a status module to determine a current power status of the vehicle; the power state comprises a power-on state and a power-off state;
the acquisition module is used for acquiring driving state data when the power state is the power-on state;
the first sending module is used for sending the driving state data to a server connected with a Controller Area Network (CAN) channel through the CAN channel;
the generating module is used for generating matched geographic data according to the driving state data when the power state is converted from the power-on state to the power-off state;
and the second sending module is used for sending the geographic data to the server through the CAN channel.
9. A vehicle, characterized by comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the vehicle to perform the method of one or more of claims 1-7.
10. One or more machine readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method of one or more of claims 1-7.
CN202010785319.5A 2020-08-06 2020-08-06 Data transmission method and device Active CN111970347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010785319.5A CN111970347B (en) 2020-08-06 2020-08-06 Data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010785319.5A CN111970347B (en) 2020-08-06 2020-08-06 Data transmission method and device

Publications (2)

Publication Number Publication Date
CN111970347A true CN111970347A (en) 2020-11-20
CN111970347B CN111970347B (en) 2023-05-23

Family

ID=73364557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010785319.5A Active CN111970347B (en) 2020-08-06 2020-08-06 Data transmission method and device

Country Status (1)

Country Link
CN (1) CN111970347B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305372A (en) * 2016-04-25 2017-10-31 韩磊 The electric automobile energy monitoring of the remote monitoring of system for cloud computing framework and more draping
US20180091930A1 (en) * 2016-09-29 2018-03-29 Mobilogix, Inc. Systems and methods for vehicle access and management
EP3346251A2 (en) * 2017-01-06 2018-07-11 Hyundai Motor Company Transfer system for diagnosing vehicle and method thereof
CN108928309A (en) * 2018-07-19 2018-12-04 途客易达(天津)网络科技有限公司 intelligent control bus system and intelligent control method
CN109878605A (en) * 2019-03-21 2019-06-14 江苏小牛电动科技有限公司 A kind of electric vehicle long-distance monitorng device and method
CN110682918A (en) * 2019-10-09 2020-01-14 南京领行科技股份有限公司 Vehicle control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107305372A (en) * 2016-04-25 2017-10-31 韩磊 The electric automobile energy monitoring of the remote monitoring of system for cloud computing framework and more draping
US20180091930A1 (en) * 2016-09-29 2018-03-29 Mobilogix, Inc. Systems and methods for vehicle access and management
EP3346251A2 (en) * 2017-01-06 2018-07-11 Hyundai Motor Company Transfer system for diagnosing vehicle and method thereof
CN108928309A (en) * 2018-07-19 2018-12-04 途客易达(天津)网络科技有限公司 intelligent control bus system and intelligent control method
CN109878605A (en) * 2019-03-21 2019-06-14 江苏小牛电动科技有限公司 A kind of electric vehicle long-distance monitorng device and method
CN110682918A (en) * 2019-10-09 2020-01-14 南京领行科技股份有限公司 Vehicle control method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴阳博: "基于新能源汽车远程监控系统的数据采集和传输研究", 《佳木斯大学学报(自然科学版)》 *
唐海洲等: "基于GSM的电瓶车远程防盗跟踪系统的设计", 《电子测试》 *

Also Published As

Publication number Publication date
CN111970347B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN109067617B (en) V2X protocol consistency test method, device and system
US9352680B2 (en) Vehicle remote start attempts messaging system and method
CN201312333Y (en) Vehicle information service system
CN110519362B (en) Data uploading method and device
CN110519727B (en) CGW (Central gateway-based) and data processing method based on CGW
CN105180367A (en) Data transmitting method and system for air conditioner unit
CN107528757B (en) MVB bus data monitoring method, device and system
CN102638768B (en) Message sending, acquiring and processing method and related device and related system
CN111970347B (en) Data transmission method and device
CN107454659B (en) Terminal identification method, system, terminal equipment and base station
CN112433859A (en) Data processing method and device, electronic equipment and computer storage medium
CN111815859B (en) Charging control device, individual charging system and charging control method thereof
CN111291035B (en) Method and device for slicing data and related products
CN109547564B (en) Remote data acquisition method, device, equipment and computer readable storage medium
CN111065166A (en) Resource scheduling method of direct communication link, terminal and network side equipment
CN112188456B (en) Bluetooth device data acquisition method and device, storage medium and electronic device
CN113377393B (en) Diagnosis refreshing system and method for vehicle-mounted system main node
CN114363341A (en) Robot scheduling method, device, equipment and storage medium based on gateway
CN111866704B (en) Method, device and equipment for positioning fault bicycle and readable storage medium
CN114157685B (en) VIN code self-learning method and system for automatic driving vehicle
CN111010685A (en) Remote transmission method and system for automobile control information
CN114683911A (en) Battery swapping processing method and system, computer device and storage medium
CN116320019B (en) Data acquisition method, medium and electronic equipment
CN116095141A (en) Method, system, equipment and medium for establishing data transmission channel
CN110943880B (en) Equipment management method and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000

Applicant after: Guangzhou Xiaopeng Automatic Driving Technology Co.,Ltd.

Address before: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000

Applicant before: Guangzhou Xiaopeng Internet of vehicles Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240229

Address after: 510000 No.8 Songgang street, Cencun, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGZHOU XIAOPENG MOTORS TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: Room 46, room 406, No.1, Yichuang street, Zhongxin knowledge city, Huangpu District, Guangzhou City, Guangdong Province 510000

Patentee before: Guangzhou Xiaopeng Automatic Driving Technology Co.,Ltd.

Country or region before: China