CN116582905A - Vehicle data transmission method and device, electronic equipment and storage medium - Google Patents

Vehicle data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116582905A
CN116582905A CN202310606252.8A CN202310606252A CN116582905A CN 116582905 A CN116582905 A CN 116582905A CN 202310606252 A CN202310606252 A CN 202310606252A CN 116582905 A CN116582905 A CN 116582905A
Authority
CN
China
Prior art keywords
vehicle
communication link
data
mobile terminal
vehicle data
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
CN202310606252.8A
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.)
Chongqing Selis Phoenix Intelligent Innovation Technology Co ltd
Original Assignee
Chengdu Seres 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 Chengdu Seres Technology Co Ltd filed Critical Chengdu Seres Technology Co Ltd
Priority to CN202310606252.8A priority Critical patent/CN116582905A/en
Publication of CN116582905A publication Critical patent/CN116582905A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/009Security arrangements; Authentication; Protecting privacy or anonymity specially adapted for networks, e.g. wireless sensor networks, ad-hoc networks, RFID networks or cloud networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • H04W12/084Access security using delegated authorisation, e.g. open authorisation [OAuth] protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • H04W36/0022Control or signalling for completing the hand-off for data sessions of end-to-end connection for transferring data sessions between adjacent core network technologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/44Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • 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

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to the technical field of vehicles, and provides a vehicle data transmission method, a device, electronic equipment and a storage medium. The method comprises the following steps: responding to the starting of the vehicle, establishing a first communication link with a cloud end, and establishing a second communication link with a mobile terminal, wherein the second communication link is established based on a short-range wireless communication technology; in response to receiving an instruction to transmit first vehicle data, determining a communication quality of the first communication link, and a resource utilization of the on-board unit; and transmitting the first vehicle data to the mobile terminal using the second communication link in response to the communication quality being less than the first threshold or the resource usage being greater than the second threshold. The method provided by the embodiment of the application can ensure that the vehicle data is completely uploaded to the cloud, thereby improving the resource utilization rate and protecting the data integrity.

Description

Vehicle data transmission method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a vehicle data transmission method, device, electronic apparatus, and storage medium.
Background
With the development of the internet of vehicles, more and more vehicle data and diagnostic data can interact with the cloud. In the running process of the vehicle, state data of each electronic control unit (Electronic Control Unit, ECU) in the vehicle are generally collected and reported to the cloud through a vehicle-mounted remote communication device (TBOX), and the data are processed in the cloud through big data to obtain results of vehicle health state, user travel, driving behavior analysis and the like for a user to check.
In practical application, when a vehicle is parked in an underground garage or is driven to pass through a remote road section or a tunnel, or when the traffic flow is large, network shake often occurs, so that partial data is lost. In addition, when the TBOX starts to perform some on-board entertainment operations such as Over-the-Air Technology (OTA) upgrade and use of high network bandwidth and high resource consumption, the TBOX load is very high, which affects the reporting of vehicle data to the cloud. Further, when the vehicle ends running, the connection is disconnected in advance due to network reasons and the cloud end, and the last section of data and the actual running end time cannot be collected.
Disclosure of Invention
In view of the above, the embodiments of the present application provide a vehicle data transmission method, apparatus, electronic device, and storage medium, so as to solve the problem in the prior art that vehicle data cannot be completely and timely uploaded to the cloud.
In a first aspect of an embodiment of the present application, there is provided a vehicle data transmission method, including:
responding to the starting of the vehicle, establishing a first communication link with a cloud end, and establishing a second communication link with a mobile terminal, wherein the second communication link is established based on a short-range wireless communication technology;
In response to receiving an instruction to transmit first vehicle data, determining a communication quality of the first communication link, and a resource utilization of the on-board unit;
and transmitting the first vehicle data to the mobile terminal using the second communication link in response to the communication quality being less than the first threshold or the resource usage being greater than the second threshold.
In a second aspect of the embodiment of the present application, there is provided a vehicle data transmission method, including:
establishing a second communication link with the vehicle-mounted unit and establishing a third communication link with the cloud;
receiving first vehicle data sent by a vehicle-mounted unit;
periodically determining whether the network quality of the third communication link is greater than a third threshold, if so, transmitting the first vehicle data to the cloud end by using the third communication link, and if not, temporarily storing the first vehicle data to the mobile terminal until the network quality of the third communication link is greater than the third threshold;
receiving a logout instruction sent by the vehicle-mounted unit, and logging out a second communication link;
and sending the first vehicle data to the cloud end in response to determining that the mobile terminal comprises the first vehicle data which is not sent to the cloud end.
In a third aspect of the embodiment of the present application, there is provided a vehicle data transmission method, including:
Establishing a first communication link with the vehicle-mounted unit and establishing a third communication link with the mobile terminal;
receiving first vehicle data sent by a vehicle-mounted unit through a first communication link; or alternatively
Receiving first vehicle data sent by the mobile terminal through a third communication link; or alternatively
Receiving specific data of first vehicle data sent by the vehicle-mounted unit through a first communication link, and receiving the first vehicle data sent by the mobile terminal through a third communication link;
in response to determining that the specific data has been received, save other data than the specific data in the first vehicle data;
wherein the specific data includes data having a data priority higher than a sixth threshold value, and data having a data validity period smaller than a seventh threshold value.
In a fourth aspect of an embodiment of the present application, there is provided a vehicle data transmission apparatus including:
the system comprises an establishing module, a communication module and a communication module, wherein the establishing module is configured to respond to the starting of a vehicle, establish a first communication link with a cloud end and establish a second communication link with a mobile terminal, and the second communication link is established based on a short-range wireless communication technology;
a determination module configured to determine a communication quality of the first communication link, and a resource utilization of the on-board unit, in response to receiving an instruction to transmit the first vehicle data;
And a transmission module configured to transmit the first vehicle data to the mobile terminal using the second communication link in response to the communication quality being less than the first threshold or the resource usage being greater than the second threshold.
A fifth aspect of an embodiment of the present application provides a vehicle data transmission apparatus, including:
the establishing module is configured to establish a second communication link with the vehicle-mounted unit and establish a third communication link with the cloud;
the receiving module is configured to receive first vehicle data sent by the vehicle-mounted unit;
the determining module is configured to periodically determine whether the network quality of the third communication link is greater than a third threshold, if so, the first vehicle data is transmitted to the cloud end by using the third communication link, and if not, the first vehicle data is temporarily stored to the mobile terminal until the network quality of the third communication link is greater than the third threshold;
the receiving module is further configured to receive a log-out instruction sent by the vehicle-mounted unit, and log out the second communication link;
the sending module is configured to send the first vehicle data to the cloud end in response to determining that the mobile terminal comprises the first vehicle data which is not sent to the cloud end.
A sixth aspect of an embodiment of the present application provides a vehicle data transmission apparatus, including:
The establishing module is configured to establish a first communication link with the vehicle-mounted unit and a third communication link with the mobile terminal;
a receiving module configured to receive first vehicle data transmitted by the on-board unit over a first communication link; or alternatively
Receiving first vehicle data sent by the mobile terminal through a third communication link; or alternatively
Receiving specific data of first vehicle data sent by the vehicle-mounted unit through a first communication link, and receiving the first vehicle data sent by the mobile terminal through a third communication link;
a saving module configured to save, in response to determining that the specific data has been received, other data than the specific data among the first vehicle data;
wherein the specific data includes data having a data priority higher than a sixth threshold value, and data having a data validity period smaller than a seventh threshold value.
In a seventh aspect of the embodiments of the present application, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the above method when executing the computer program.
In an eighth aspect of the embodiments of the present application, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the above method.
Compared with the prior art, the embodiment of the application has the beneficial effects that: according to the embodiment of the application, the communication links are respectively established for the vehicle-mounted unit and the cloud end as well as the vehicle-mounted unit and the mobile terminal, when the network quality of the communication links of the vehicle-mounted unit and the cloud end is poor or the resource utilization rate of the vehicle-mounted unit is high, the communication links of the vehicle-mounted unit and the mobile terminal are used, firstly, vehicle data are transmitted to the mobile terminal, and then the vehicle data are uploaded to the cloud end by the mobile terminal, so that the vehicle data can be completely uploaded to the cloud end, the resource utilization rate is improved, and the data integrity is protected.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a flow of data reporting by a TBOX of a vehicle.
Fig. 3 is a flow chart of a vehicle data transmission method according to an embodiment of the present application.
Fig. 4 is a flow chart of a vehicle data transmission method according to an embodiment of the present application.
Fig. 5 is a flow chart of a vehicle data transmission method according to an embodiment of the present application.
Fig. 6 is a flowchart of a vehicle data transmission method according to an embodiment of the present application.
Fig. 7 is a flowchart of a vehicle data transmission method according to an embodiment of the present application.
Fig. 8 is a flowchart of a vehicle data transmission method according to an embodiment of the present application.
Fig. 9 is a signal interaction diagram of a vehicle data transmission method according to an embodiment of the present application.
Fig. 10 is a schematic diagram of a vehicle data transmission device according to an embodiment of the present application.
Fig. 11 is a schematic diagram of a vehicle data transmission device according to an embodiment of the present application.
Fig. 12 is a schematic diagram of a vehicle data transmission device according to an embodiment of the present application.
Fig. 13 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
A vehicle data transmission method and apparatus according to embodiments of the present application will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario according to an embodiment of the present application. The application scenario may include a cloud server 1, a mobile terminal 2, a vehicle 3, and a network 4.
The cloud server 1 may be a server that provides a vehicle management service, for example, a background server that receives a request transmitted by the mobile terminal 2 or the vehicle 3 with which a communication connection is established, and the background server may receive and analyze a request transmitted by the mobile terminal 2 or the vehicle 3, and generate a processing result. The cloud server 1 may be a server, a server cluster formed by a plurality of servers, or a cloud computing service center, where the servers together form a vehicle management platform, which is not limited in the embodiment of the present application.
The mobile terminal 2 may be hardware or software. When the mobile terminal 2 is hardware, it may be various electronic devices having a display screen and supporting communication with the server 1 and the vehicle 3, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like; when the mobile terminal 2 is software, it may be installed in an electronic device as described above. The mobile terminal 2 may be implemented as a plurality of software or software modules or as a single software or software module, as the embodiments of the present application are not limited in this regard. Further, various applications may be installed on the mobile terminal 2, such as a data processing application, an instant messaging tool, social platform software, a search class application, a shopping class application, and the like.
The vehicle 3 may be hardware or software. When the vehicle 3 is hardware, it may be various electronic devices having a display screen and supporting communication with the server 1 and the mobile terminal 2, including but not limited to an in-vehicle control unit, an in-vehicle entertainment system, and the like; when the vehicle 3 is software, it may be installed in the electronic apparatus as described above. The vehicle 3 may be implemented as a plurality of software or software modules, or as a single software or software module, as the embodiments of the application are not limited in this regard. The vehicle 3 has an on-board unit therein. The on-board unit has a communication function, a simple processing function and a limited memory function.
The network 4 may be a wired network using coaxial cable, twisted pair and optical fiber connection, or may be a wireless network capable of implementing interconnection of various communication devices without wiring, for example, bluetooth (Bluetooth), near field communication (Near Field Communication, NFC), infrared (Infrared), etc., which is not limited in the embodiment of the present application.
The user may establish a communication connection with the server 1 directly through the vehicle 3 via the network 4 to receive or transmit information related to the vehicle data. On the other hand, the user may establish a communication connection with the server 1 via the network 4 through the mobile terminal 2 to receive or transmit information related to the vehicle data.
It should be noted that the specific types, numbers and combinations of the server 1, the mobile terminal 2, the vehicle 3 and the network 4 may be adjusted according to the actual requirements of the application scenario, which is not limited in the embodiment of the present application.
In the above-mentioned process, in the vehicle driving process, the state data of each ECU in the vehicle is generally collected and reported to the cloud through the TBOX, and the data is processed by big data in the cloud to obtain the results of vehicle health state, user journey, driving behavior analysis and the like for the user to check.
Fig. 2 is a schematic diagram of a flow of data reporting by a TBOX of a vehicle. As shown in fig. 2, the TBOX may report the running data to an automotive remote service provider (Telematics Service Provider, TSP), where the TSP pushes the received running data to a big data module, and the big data module analyzes the data to obtain a running data report, and sends the running data report to the user, where information such as the viewing situation of the user may also be fed back to the big data module for further integration.
In practical application, when a vehicle is parked in an underground garage or is driven to pass through a remote road section or a tunnel, or when the traffic flow is large, network shake often occurs, so that partial data is lost. In addition, when the TBOX starts to perform some on-board entertainment operations such as Over-the-Air Technology (OTA) upgrade and use of high network bandwidth and high resource consumption, the TBOX load is very high, which affects the reporting of vehicle data to the cloud. Further, when the vehicle ends running, the connection is disconnected in advance due to network reasons and the cloud end, and the last section of data and the actual running end time cannot be collected.
Specifically, the failure of the vehicle data to be transmitted in its entirety may be the following:
1. when the vehicle starts, the TBOX cannot log in due to the fact that the vehicle stops at places with bad networks such as a garage and a basement, and therefore vehicle data cannot be reported, and data loss is caused. If the TBOX memory is used to buffer related data and retries until the network and cloud are open, the memory and network overhead of the TBOX must be increased, resulting in an increase in TBOX load.
2. When the vehicle runs, the vehicle runs through a tunnel, a culvert or a street with poor network, and the TBOX is not connected with the cloud end to cause the traffic to go off. The TBOX will retry to log in again until successful after coming off line, and report the data again. TBOX down can also cause interruption of current trip data, which in turn causes mid-portion data loss.
3. When the vehicle is in the condition of high consumption network bandwidth such as navigation, vehicle-mounted entertainment, OTA upgrading and the like in the running process of the vehicle, the TBOX network, a central processing unit (Central Processing Unit, CPU) and the memory are high in consumption, and the data reported to the cloud end by the vehicle are blocked, delayed and even lost.
4. When the vehicle runs, the cloud can not know exactly when to finish the journey and data of a period of time before the journey is finished because of the poor network places such as parking garages, basements and the like, so that the journey is interrupted in advance, and the data is lost.
In view of this, the embodiment of the application provides a vehicle data transmission method, which establishes communication links for a vehicle-mounted unit and a cloud end and for the vehicle-mounted unit and a mobile terminal respectively, when the network quality of the communication links of the vehicle-mounted unit and the cloud end is poor or the resource utilization rate of the vehicle-mounted unit is high, the communication links of the vehicle-mounted unit and the mobile terminal are used for transmitting vehicle data to the mobile terminal at first, and then the vehicle data is uploaded to the cloud end by the mobile terminal, so that the vehicle data can be ensured to be completely uploaded to the cloud end, the resource utilization rate is improved, and the data integrity is protected.
Fig. 3 is a flow chart of a vehicle data transmission method according to an embodiment of the present application. The vehicle data transmission method of fig. 3 may be performed by an on-board unit in the vehicle 3 of fig. 1. As shown in fig. 3, the vehicle data transmission method includes:
in step S301, in response to the vehicle start, a first communication link is established with the cloud end, and a second communication link is established with the mobile terminal.
Wherein the second communication link is established based on a short-range wireless communication technology.
In step S302, in response to receiving an instruction to transmit first vehicle data, a communication quality of a first communication link of the first vehicle data, and a resource usage rate of a vehicle-mounted unit of the first vehicle data are determined.
In step S303, the first vehicle data is transmitted to the mobile terminal using the first vehicle data second communication link in response to the first vehicle data communication quality being less than the first threshold, or the first vehicle data resource usage being greater than the second threshold.
In the embodiment of the application, the vehicle-mounted unit can be TBOX, has communication capability and can communicate with the cloud and the mobile terminal. At the same time, the on-board unit also has data processing and storage capabilities. However, the processing power and storage capacity of the current on-board units are limited due to factors such as hardware size.
The on-board unit is installed in the vehicle, and when the vehicle starts, the on-board unit starts simultaneously. After the vehicle-mounted unit is started, a first communication link can be established with the cloud end, and a second communication link can be established with the mobile terminal. The mobile terminal may be a mobile phone of a user. That is, after the vehicle-mounted unit is started, two real-time communication links are respectively established with the cloud end and the mobile terminal, so that a transmission path is provided for subsequent vehicle data reporting.
In particular, the first communication link may be established based on mobile communication technologies, including, for example, 4G, 5G, etc. communication technologies. The second communication link may be established based on a short-range wireless communication technology. Short-range wireless communication technologies include, for example, communication technologies such as bluetooth, near field communication (Near Field Communication, NFC), radio frequency identification (Radio Frequency Identification, RFID), and the like.
In the running process of the vehicle, the vehicle-mounted unit needs to collect various vehicle data in real time and report the data to the cloud so that the cloud can record and analyze the data. The vehicle data may include, among other things, vehicle status data, vehicle travel data, vehicle interaction data, vehicle diagnostic data, and the like. The vehicle-mounted unit periodically reports the vehicle data to the cloud end, or temporarily reports the vehicle data to the cloud end when a sudden state exists. That is, the vehicle-mounted unit periodically reports the vehicle data according to the period in the instruction after receiving the instruction for periodically reporting the vehicle data. Or the vehicle-mounted unit reports the vehicle data immediately after receiving the command of reporting the vehicle data temporarily.
In an embodiment of the application, the communication quality of the first communication link and the resource utilization rate of the vehicle-mounted unit are determined in response to receiving an instruction for transmitting the first vehicle data. The on-board unit may first determine the communication quality of the first communication link and the resource usage of the on-board unit before reporting the vehicle data. That is, the on-board unit preferably uses the first communication link for vehicle data transmission, and it is necessary to determine the communication quality of the first communication link prior to transmission. Further, since mobile communication requires higher resources for both communication parties than near field communication, it is also necessary to determine the resource usage of the on-board unit before transmission.
In the embodiment of the application, the first vehicle data is transmitted to the mobile terminal by using the second communication link in response to the communication quality being smaller than the first threshold or the resource utilization being larger than the second threshold. When the communication quality of the first communication link is less than the first threshold, it may be considered that the current first communication link cannot support reliable transmission of vehicle data. On the other hand, when the resource utilization rate of the vehicle-mounted unit is greater than the second threshold, the remaining available resources of the current vehicle-mounted unit can be considered to be incapable of meeting the resources required when uploading the vehicle data to the cloud.
In practical application, when the communication quality of the first communication link between the vehicle-mounted unit and the cloud end is poor, for example, less than a first threshold, the vehicle-mounted unit repeatedly tries to establish network connection with the cloud end until the login is successful. This approach can result in a network reconnection at all times, increasing the burden on the on-board unit, and because the on-board unit itself has limited storage capacity, it will not typically store the vehicle data locally, and thus the vehicle data at this stage will also be lost. On the other hand, when the resource utilization rate of the vehicle-mounted unit is higher, for example, the resource utilization rate is greater than the second threshold value, the vehicle-mounted unit simultaneously processes the event of uploading the vehicle data to the cloud end, and the problems of blocking, delay, even packet loss and the like may occur, so that the reliable transmission of the vehicle data is also affected.
In view of this, the second communication link may be selected to be used to transmit the vehicle data to the mobile terminal first and then to be uploaded to the cloud by the mobile terminal. The mobile terminal can select to directly forward the vehicle data to the cloud end when the network quality is good according to the network quality between the mobile terminal and the cloud end, or asynchronously forward the vehicle data when the network quality is poor, namely, forward the vehicle data after the network quality is good.
In the embodiment of the application, the second communication link is established based on the short-range wireless communication technology, is hardly influenced by factors such as network coverage and the like, and can reliably transmit data in most of time and occasions. Meanwhile, the terminal resources required by the short-range wireless communication are fewer, and the vehicle-mounted unit can transmit the vehicle data to the mobile terminal only by calling a small amount of resources. Further, the specific values of the first threshold and the second threshold may be set according to actual needs, which will not be described herein.
According to the technical scheme provided by the embodiment of the application, the communication links are respectively established for the vehicle-mounted unit and the cloud end as well as the vehicle-mounted unit and the mobile terminal, when the network quality of the communication links of the vehicle-mounted unit and the cloud end is poor or the resource utilization rate of the vehicle-mounted unit is high, the communication links of the vehicle-mounted unit and the mobile terminal are used, firstly, vehicle data are transmitted to the mobile terminal, and then the mobile terminal uploads the vehicle data to the cloud end, so that the vehicle data can be completely uploaded to the cloud end, the resource utilization rate is improved, and the data integrity is protected.
In the embodiment of the application, the second communication link can be established based on the Bluetooth technology. The process of establishing the first communication link between the vehicle-mounted unit and the cloud terminal and the process of establishing the second communication link between the vehicle-mounted unit and the mobile terminal may be that the vehicle-mounted unit sends an authentication request to the cloud terminal in response to the vehicle start. If the cloud end cannot receive the authentication request sent by the vehicle-mounted unit or the vehicle-mounted unit cannot receive the authentication response message sent by the cloud end, the current vehicle-mounted unit can be considered to be unable to establish a communication link with the cloud end. At this time, the vehicle-mounted unit may send an authentication request to the mobile terminal through bluetooth, and the mobile terminal sends an authentication response message carrying a session token (token) to the vehicle-mounted unit after the mobile terminal passes the authentication, thereby completing establishment of a second communication link between the vehicle-mounted unit and the mobile terminal. And then, the vehicle-mounted unit periodically sends a heartbeat message to the cloud end, and when receiving a heartbeat response message sent by the cloud end, the vehicle-mounted unit directly establishes a first communication link with the cloud end without carrying out identity authentication on the vehicle-mounted unit again.
That is, the in-vehicle unit may complete authentication of the vehicle information at the mobile terminal, and the authentication may be performed based on the vehicle identification stored in the mobile terminal in advance, including digital key information of the vehicle, user information, vehicle information, and the like. The mobile terminal then assigns a token to the on-board unit. When the mobile terminal forwards the vehicle data to the cloud, the vehicle data and the token can be uploaded to the cloud together to serve as a certificate of the session between the mobile terminal and the vehicle-mounted unit. Meanwhile, when the vehicle data is sent to the mobile terminal through the second communication link, the vehicle-mounted terminal does not need to authenticate with the mobile terminal again, and only needs to carry the token when the vehicle data is sent.
On the other hand, when the networks of the vehicle-mounted unit and the cloud end are unobstructed, the cloud end can receive an authentication request sent by the vehicle-mounted unit and send an authentication response message to the vehicle-mounted unit after authentication is completed, so that the establishment of a first communication link between the vehicle-mounted unit and the cloud end is completed. Subsequently, a second communication link between the on-board unit and the mobile terminal may be established when the communication quality of the first communication link is less than a first threshold, or the resource usage of the on-board unit is greater than a second threshold.
Fig. 4 is a flow chart of a vehicle data transmission method according to an embodiment of the present application. Steps S401 to S403 in the embodiment shown in fig. 4 are the same as steps S301 to S303 in the embodiment shown in fig. 3, and are not described here again. As shown in fig. 4, the vehicle data transmission method further includes:
in step S404, the communication quality of the first communication link, and the resource usage of the on-board unit are periodically determined.
In step S405, in response to the communication quality being greater than or equal to the first threshold and the resource usage being less than or equal to the second threshold, a query message is sent to the mobile terminal.
The query message is used for querying whether the vehicle data in the mobile terminal is uploaded to the cloud end.
In step S406, a query response message sent by the mobile terminal is received, the query response message indicates that the first vehicle data in the mobile terminal has been uploaded to the cloud end, and the vehicle-mounted unit receives an instruction for transmitting the second vehicle data, and transmits the second vehicle data to the cloud end using the first communication link.
In the embodiment of the application, after the second communication link is selected to be used for transmitting the vehicle data, session maintenance can be performed on the first communication link, the communication quality of the first communication link and the resource utilization rate of the vehicle-mounted unit are periodically determined, so that when the communication quality of the first communication link is recovered and the residual resources of the vehicle-mounted unit can meet the vehicle data transmission requirement, the communication link for transmitting the vehicle data is switched to the first communication link. That is, in response to the communication quality being greater than or equal to the first threshold value and the resource usage rate being less than or equal to the second threshold value, the communication link over which the vehicle data transmission is performed may be switched to the first communication link.
In the switching process, in order to ensure the order of the vehicle data, it is necessary to ensure that the vehicle data in the mobile terminal is all uploaded to the cloud end, and then the vehicle-mounted unit uploads the subsequent vehicle data to the cloud end through the first communication link. That is, when it is determined that the communication quality is greater than or equal to the first threshold and the resource usage rate is less than or equal to the second threshold, a query message may be first sent to the mobile terminal for querying whether the vehicle data in the mobile terminal has been all uploaded to the cloud. And then receiving an inquiry response message sent by the mobile terminal, and when the inquiry response message indicates that the first vehicle data in the mobile terminal is completely uploaded to the cloud, transmitting the second vehicle data by using the first communication link after the vehicle-mounted unit receives the instruction for uploading the second vehicle data again. The instruction for uploading the second vehicle data is different from the instruction for uploading the first vehicle data, and the second vehicle data and the first vehicle data may be different vehicle data or the same vehicle data. For example, the first vehicle data may be vehicle travel data, and the second vehicle data may be vehicle safety data, in which case the second vehicle data is different vehicle data from the first vehicle data. As another example, both the first vehicle data and the second vehicle data may be vehicle speed data among the vehicle travel data, and when the vehicle travels at a constant speed, the vehicle speed data transmitted in adjacent times may be the same data, i.e., the second vehicle data is the same vehicle data as the first vehicle data at this time.
According to the technical scheme provided by the embodiment of the application, the communication quality of the first communication link and the resource utilization rate of the vehicle-mounted unit are periodically determined, so that when the communication quality is recovered and the resource utilization rate is reduced to the required range, the communication quality is switched back to the first communication link to perform vehicle data transmission, thereby realizing session maintenance of the vehicle-mounted unit and the cloud end and improving the vehicle data transmission efficiency.
In the embodiment of the application, the communication quality of the first communication link can be determined by periodically acquiring any one or more of the heartbeat response signal, the packet loss rate and the residual bandwidth of the first communication link.
On the one hand, the vehicle-mounted unit can establish heartbeat with the cloud end when being electrified and started, periodically send heartbeat signals to the cloud end, and count received heartbeat response conditions. And when the continuous N heartbeat responses are normal, judging that the current vehicle-mounted unit is connected with the cloud network. Wherein N is a positive integer.
On the other hand, the packet loss rate of the first communication link may be counted, and when the packet loss rate is less than or equal to a preset threshold, for example, 10%, the communication quality of the current first communication link may be considered to be able to meet the requirement.
In yet another aspect, the remaining bandwidth of the first communication link may also be counted. For example, when other users in the vehicle are currently watching movies online using an audiovisual system, the remaining bandwidth of the first communication link may be small and reliable transmission of vehicle data cannot be supported. Otherwise, if there is not much data going to and from the cloud end, the remaining bandwidth of the first communication link is larger, and the communication quality of the first communication link can be considered to be better. It will be appreciated that the heartbeat response signal, the packet loss rate and the remaining bandwidth of the first communication link may be used alone or in combination to determine the communication quality of the first communication link, without limitation.
Fig. 5 is a flow chart of a vehicle data transmission method according to an embodiment of the present application. Step S501 to step S503 in the embodiment shown in fig. 5 are the same as step S301 to step S303 in the embodiment shown in fig. 3, and are not described here again. As shown in fig. 5, the vehicle data transmission method further includes:
in step S504, in response to the vehicle being turned off, a log-out instruction is transmitted to the mobile terminal to cause the mobile terminal to log out of the second communication link.
In the embodiment of the application, the vehicle-mounted unit and the cloud terminal can carry out safety communication based on the token uploaded to the cloud terminal by the mobile terminal, and safety authentication is not required to be carried out when the vehicle-mounted unit establishes a communication link with the cloud terminal each time. In order to further ensure the data security, the second communication link can be interrupted after the current running is finished, and the valid period of the safety communication between the vehicle-mounted unit and the cloud based on the token is limited to the current running. That is, when the vehicle is shut down, the in-vehicle unit may transmit a log-out instruction to the mobile terminal. After receiving the logout instruction, the mobile terminal logs out of the second communication link, disconnects the connection with the vehicle-mounted unit, and invalidates the token created at the time. It should be noted that, if the mobile terminal further stores the vehicle data that is not uploaded to the cloud after logging out of the second communication link, the mobile terminal may cancel the token created this time after the vehicle data is completely uploaded to the cloud.
According to the technical scheme provided by the embodiment of the application, after the vehicle is shut down, the logout instruction is sent to the mobile terminal, so that the mobile terminal logs out of the second communication link, the safety of vehicle data is improved, and the reliability of vehicle data transmission is improved.
Fig. 6 is a flowchart of a vehicle data transmission method according to an embodiment of the present application. Step S601 to step S603 in the embodiment shown in fig. 4 are the same as step S301 to step S303 in the embodiment shown in fig. 3, and are not described here again. As shown in fig. 6, the vehicle data transmission method further includes:
in step S604, in response to the communication quality being less than the fourth threshold, or the resource usage rate being greater than the fifth threshold, the on-board unit transmits specific data of the first vehicle data to the cloud using the first communication link, and transmits the first vehicle data to the mobile terminal using the second communication link.
Wherein the fourth threshold is greater than the first threshold, the fifth threshold is less than the second threshold, the specific data includes data having a higher data priority than the sixth threshold, and data having a data validity period less than the seventh threshold.
In practice, the network quality of the first communication link may be in a state of being able to transmit but not being reliable enough. For example, there is a network connection between the on-board unit and the cloud, but the packet loss rate is close to 10%. On the other hand, the resource usage of the on-board unit may also be in a higher but not completely impossible state to transmit. At this time, if some important data, such as vehicle safety data with higher data priority, or some time-efficient data, such as real-time data collected by the vehicle-mounted sensor, is included in the vehicle data, the specific data may be directly attempted to be transmitted through the first communication link. Meanwhile, in order to ensure the reliability of data transmission, the characteristic data can be synchronously transmitted to the mobile terminal. And uploading all the vehicle data to a cloud end by the mobile terminal, judging whether the data received from the mobile terminal is the received data or not by the cloud end, discarding if so, and storing if not.
Further, to ensure that the data is ordered, a time stamp may be added to the particular data, or a data frame number may be added. Furthermore, all specific data can be packaged, and a data packet identifier can be added. After receiving the vehicle data uploaded by the mobile terminal, the cloud terminal firstly judges whether the data packet is a received data packet through the data packet identifier, if so, discards the data packet, if not, further judges whether each frame of data in the data packet or data corresponding to each time stamp is stored, if so, discards the frame of data or the data corresponding to the time stamp, and if not, stores the frame of data or the data corresponding to the time stamp.
According to the technical scheme provided by the embodiment of the application, when the communication quality of the first communication link and the resource utilization rate of the vehicle-mounted unit meet specific requirements, the characteristic data in the vehicle data can be simultaneously transmitted through the first communication link and the second communication link, so that the vehicle data transmission efficiency can be improved on the basis of meeting the vehicle data transmission reliability.
In the embodiment of the present application, the values of the first to seventh thresholds may be set according to actual needs, which is not limited herein.
Fig. 7 is a flowchart of a vehicle data transmission method according to an embodiment of the present application. The vehicle data transmission method of fig. 7 may be performed by the mobile terminal 2 of fig. 1. As shown in fig. 7, the vehicle data transmission method includes:
in step S701, a second communication link is established with the on-board unit, and a third communication link is established with the cloud.
In step S702, first vehicle data transmitted by an in-vehicle unit is received.
In step S703, it is periodically determined whether the network quality of the third communication link is greater than a third threshold, if yes, the first vehicle data is transmitted to the cloud end using the third communication link, and if not, the first vehicle data is temporarily stored to the mobile terminal until the network quality of the third communication link is greater than the third threshold.
In step S704, a log-out instruction sent by the in-vehicle unit is received, and the second communication link is logged out.
In step S705, in response to determining that the mobile terminal includes the first vehicle data that is not transmitted to the cloud terminal, the first vehicle data is transmitted to the cloud terminal.
In the embodiment of the application, the mobile terminal can establish a second communication link with the vehicle-mounted unit and establish a third communication link with the cloud. Wherein the second communication link may be established based on bluetooth technology. The mobile terminal receives first vehicle data sent by the vehicle-mounted unit, periodically determines whether the network quality of a third communication link is greater than a third threshold, if so, uses the third communication link to transmit the first vehicle data to the cloud, and if not, temporarily stores the first vehicle data to the mobile terminal until the network quality of the third communication link is greater than the third threshold. Further, the mobile terminal may also receive a log-out instruction sent by the vehicle-mounted unit, and log out the second communication link. After logging out of the second communication link, the mobile terminal judges whether the vehicle data which is not sent to the cloud end are included in the second communication link, and if yes, the vehicle data are sent to the cloud end.
According to the technical scheme provided by the embodiment of the application, when the network quality of the communication link between the vehicle-mounted unit and the cloud end is poor or the resource utilization rate of the vehicle-mounted unit is high, the communication link between the vehicle-mounted unit and the mobile terminal is used, the vehicle data is firstly transmitted to the mobile terminal and then uploaded to the cloud end by the mobile terminal, so that the vehicle data can be ensured to be completely uploaded to the cloud end, the resource utilization rate is improved, and the data integrity is protected.
Fig. 8 is a flowchart of a vehicle data transmission method according to an embodiment of the present application. The vehicle data transmission method of fig. 8 may be performed by the server 1 of fig. 1, which may be a cloud server.
As shown in fig. 8, the vehicle data transmission method includes:
in step S801, a first communication link is established with the in-vehicle unit and a third communication link is established with the mobile terminal.
In step S802, first vehicle data transmitted by an on-board unit through a first communication link is received; or alternatively
Receiving first vehicle data sent by the mobile terminal through a third communication link; or alternatively
The method comprises the steps of receiving specific data of first vehicle data sent by an on-board unit through a first communication link, and receiving the first vehicle data sent by a mobile terminal through a third communication link.
In step S803, in response to determining that the specific data has been received, other data than the specific data among the first vehicle data is saved.
Wherein the specific data includes data having a data priority higher than a sixth threshold, and data having a data validity period smaller than a seventh threshold.
In the embodiment of the application, the cloud end can establish a first communication link with the vehicle-mounted unit and establish a third communication link with the mobile terminal. Further, the cloud end can receive first vehicle data sent by the vehicle-mounted unit through a first communication link; or when the network quality of the first communication link is smaller than a first threshold value or the resource utilization rate of the vehicle-mounted unit is larger than a second threshold value, receiving first vehicle data sent by the mobile terminal through a third communication link; or when the network quality of the first communication link is smaller than the fourth threshold value or the resource utilization rate of the vehicle-mounted unit is larger than the fifth threshold value, receiving the specific data of the first vehicle data sent by the vehicle-mounted unit through the first communication link, and receiving the first vehicle data sent by the mobile terminal through the third communication link.
Further, when the cloud terminal receives the first vehicle data sent by the mobile terminal through the third communication link, only other data except the specific data in the first vehicle data may be saved when it is determined that the specific data has been received. That is, the cloud end can determine whether the specific data in the first data received from the mobile terminal is the received data, if yes, discard the specific data, and if not, save the specific data.
According to the technical scheme provided by the embodiment of the application, the cloud terminal receives the vehicle data through the first communication link between the vehicle-mounted unit and the mobile terminal or the second communication link between the vehicle-mounted unit and the mobile terminal respectively or simultaneously, so that the vehicle data can be completely uploaded to the cloud terminal, the resource utilization rate is improved, and the data integrity is protected.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
Fig. 9 is a signal interaction diagram of a vehicle data transmission method according to an embodiment of the present application. As shown in fig. 9, first, when the vehicle is started, the on-board unit establishes a first communication link with the cloud end and a second communication link with the mobile terminal, so as to simultaneously open the on-board unit to the cloud end, and the on-board unit performs two-channel data transmission to the mobile terminal. The vehicle-mounted unit data can be directly reported to the cloud end under the current situation, and can also be reported to the mobile terminal according to Bluetooth, and the mobile terminal is reported to the cloud end. Communication with the cloud is through the internet, such as a mobile network, and the vehicle-mounted unit and the mobile terminal are connected through Bluetooth. And setting a data reporting channel strategy in the vehicle-mounted unit, and selecting a data reporting channel according to the real-time vehicle end, the cloud end, the mobile terminal network and other conditions.
When the mobile terminal is started, the vehicle-mounted unit and the cloud end are connected, and if the vehicle-mounted unit is not communicated with the cloud end network, the mobile terminal is used as a data reporting object based on Bluetooth single sign-on. The mobile terminal is trusted and the vehicle unit information is transferred to the mobile terminal by establishing a bluetooth connection. If the mobile terminal can be connected with the cloud end, the data are directly reported to the cloud end, a session token is distributed for the vehicle-mounted unit, the token is transmitted to the cloud end for storage, and the vehicle-mounted unit subsequently uses the token to directly interact with the cloud end. If the mobile terminal is not connected with the cloud end, the mobile terminal firstly caches relevant vehicle data, distributes a session token for the vehicle-mounted unit, and transmits the token to the cloud end for storage after the session is established between the mobile terminal and the cloud end. The vehicle-mounted unit establishes a cloud channel by using a token, and when the vehicle-mounted unit is connected with the cloud, the vehicle-mounted unit end marks the cloud and the mobile terminal double-data channel can be used, and the vehicle-mounted unit end reports data according to a data channel strategy.
In the running process, on a road section with severe network jitter or poor network, the vehicle-mounted unit with double data channels can not drop the line and report data to the mobile terminal according to the data channel strategy, and the data channels keep session based on Bluetooth and report data to the cloud based on the mobile terminal. And the vehicle-mounted unit end establishes a heartbeat mechanism, sends heartbeat to the cloud end for monitoring network conditions, can mark that the cloud end and the mobile terminal double-data channel can be used after the heartbeat is recovered to be normal, and is switched to the vehicle-mounted unit to directly report the cloud end when the mobile terminal data processing is completed.
In running, detecting that the network overhead of the vehicle-mounted unit end is large, such as the situation that the CPU and the memory are used higher due to the fact that OTA upgrading, vehicle-mounted entertainment and navigation are carried out or high-density vehicle body diagnosis is carried out, the vehicle-mounted unit data channel is set to be transmitted to the mobile terminal through Bluetooth.
And when the mobile terminal receives a log-out instruction, ending the whole journey.
The vehicle data transmission method provided by the embodiment of the application can realize double data channels, single sign-on, session maintenance, network load balancing and data channel switching.
The specific implementation steps of the double data channels are as follows:
1. and the vehicle-mounted unit opens a double data channel, establishes network connection with the cloud and establishes Bluetooth connection with the mobile terminal.
2. Setting a data channel selection strategy, and in the communication process, a cloud channel of a vehicle running end is generally arranged. When the vehicle end and the cloud network are disconnected and shake (the network can be measured according to the heartbeat), or the vehicle end itself occupies too large network bandwidth, memory and CPU load are too high (for example, more than 80%), the Bluetooth data channel is switched away.
3. The vehicle data of the mobile terminal is uploaded to the cloud through the network connection between the mobile terminal and the cloud, and the uploading mode can be direct forwarding or asynchronous forwarding, wherein the asynchronous forwarding can firstly temporarily store the vehicle data under the condition that the network is bad when the running is finished, and then upload the vehicle data after the network between the mobile terminal and the cloud is recovered.
The specific implementation steps of single sign-on are as follows:
1. in general, a vehicle needs to log in the cloud when powered on, if the network is not good, the network retries until the login is successful, and then vehicle data, other diagnosis data and reminding data begin to be reported.
2. The vehicle-mounted unit starts the dual-channel data transmission, and vehicle data of the vehicle-mounted unit can travel to the cloud end or the mobile terminal. When the vehicle-mounted unit is started and electrified, connection can be established with the two sides, namely connection is established with the cloud end and the mobile terminal, if the cloud end completes login authentication, the cloud end reports, and if the cloud end does not complete, the mobile terminal is walked.
3. The vehicle end and the mobile phone Bluetooth communication are safe and reliable, the mobile terminal stores digital key information, user information and vehicle information, and even if the network is disconnected, the mobile phone APP locally caches the information, so that authentication login can be completed for the vehicle end, and the mobile terminal can be used as a background to receive the vehicle end reporting data.
4. After the vehicle information authentication is completed, the mobile terminal distributes a session token to the vehicle terminal, the session of the vehicle terminal is started, and the vehicle data of the vehicle-mounted unit is started to be reported to the mobile terminal.
5. If the mobile terminal is allowed by the signal, the mobile terminal is connected with the cloud terminal and pushes the token to the cloud terminal to serve as a vehicle-end session certificate. If the signal is not allowed at the moment, the mobile terminal firstly caches the vehicle data and asynchronously retries. When the mobile terminal is connected with the cloud end, reporting vehicle data to the cloud end, and updating the vehicle state to be online.
6. After the vehicle end takes the token distributed by the mobile terminal, the login process is not carried out, the token is started and the heartbeat of the cloud is carried, and after the heartbeat is normally established, the vehicle end and the cloud data channel are opened.
The specific implementation steps of session maintenance are as follows:
1. and after the vehicle-mounted unit is powered on, a heartbeat is established with the cloud, and the heartbeat request and response conditions are counted periodically to serve as the health index of the cloud network to be kept active all the time.
2. If the heartbeat is jittered, the data channel is converted into a mobile phone channel if the data packet loss rate reaches 10% or even is directly disconnected with the cloud network. And collecting and reporting the vehicle state data through the mobile phone, so as to realize session maintenance.
3. When the cloud heartbeat is recovered to be healthy, namely, when the network packet loss rate is 0, the data channel is switched back to the cloud end for reporting.
The specific implementation steps of the network load balancing are as follows:
1. due to the adoption of the double data channels, in the normal running process, the vehicle-mounted unit can report data through the cloud or the mobile terminal.
2. And setting a network load balancing strategy, and switching the data channel into the mobile terminal in order to lighten the load of the vehicle-mounted unit when the broadband occupation of the vehicle-mounted unit is too large, such as more than 80% of the maximum broadband occupation, and the memory and CPU utilization rate is too high, such as more than 80%.
The specific implementation steps of the data channel switching are as follows:
1. when the data channel is a mobile terminal, the vehicle data is forwarded to the cloud end through the mobile terminal.
2. When the vehicle end and the cloud end recover communication conditions, for example, network signals are good, and the vehicle-mounted unit is switched back to the cloud end channel without large load.
3. In the switching process, in order to ensure the ordering of the vehicle data, the vehicle-mounted unit is informed of the switching until the pushing of the vehicle data of the mobile terminal is completed and no vehicle data remains.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 10 is a schematic diagram of a vehicle data transmission device according to an embodiment of the present application. As shown in fig. 10, the vehicle data transmission device includes:
the establishing module 1001 is configured to establish a first communication link with the cloud end and a second communication link with the mobile terminal in response to the vehicle starting.
Wherein the second communication link is established based on a short-range wireless communication technology.
A determination module 1002 is configured to determine a communication quality of the first communication link, and a resource usage of the on-board unit, in response to receiving an instruction to transmit the first vehicle data.
A transmission module 1003 configured to transmit the first vehicle data to the mobile terminal using the second communication link in response to the communication quality being less than the first threshold, or the resource usage being greater than the second threshold.
According to the technical scheme provided by the embodiment of the application, the communication links are respectively established for the vehicle-mounted unit and the cloud end as well as the vehicle-mounted unit and the mobile terminal, when the network quality of the communication links of the vehicle-mounted unit and the cloud end is poor or the resource utilization rate of the vehicle-mounted unit is high, the communication links of the vehicle-mounted unit and the mobile terminal are used, firstly, vehicle data are transmitted to the mobile terminal, and then the mobile terminal uploads the vehicle data to the cloud end, so that the vehicle data can be completely uploaded to the cloud end, the resource utilization rate is improved, and the data integrity is protected.
Fig. 11 is a schematic diagram of a vehicle data transmission device according to an embodiment of the present application. As shown in fig. 11, the vehicle data transmission device includes:
the establishing module 1101 is configured to establish a second communication link with the on-board unit and establish a third communication link with the cloud;
a receiving module 1102 configured to receive first vehicle data sent by the on-board unit;
a determining module 1103 configured to periodically determine whether the network quality of the third communication link is greater than a third threshold, if yes, transmitting the first vehicle data to the cloud end using the third communication link, if not, temporarily storing the first vehicle data to the mobile terminal until the network quality of the third communication link is greater than the third threshold;
the receiving module 1102 is further configured to receive a log-out instruction sent by the vehicle-mounted unit, and log out the second communication link;
the sending module 1104 is configured to send the first vehicle data to the cloud end in response to determining that the first vehicle data not sent to the cloud end is included in the mobile terminal.
According to the technical scheme provided by the embodiment of the application, when the network quality of the communication link between the vehicle-mounted unit and the cloud end is poor or the resource utilization rate of the vehicle-mounted unit is high, the communication link between the vehicle-mounted unit and the mobile terminal is used, the vehicle data is firstly transmitted to the mobile terminal and then uploaded to the cloud end by the mobile terminal, so that the vehicle data can be ensured to be completely uploaded to the cloud end, the resource utilization rate is improved, and the data integrity is protected.
Fig. 12 is a schematic diagram of a vehicle data transmission device according to an embodiment of the present application. As shown in fig. 12, the vehicle data transmission device includes:
an establishing module 1201 configured to establish a first communication link with the on-board unit and a third communication link with the mobile terminal;
a receiving module 1202 configured to receive first vehicle data transmitted by the on-board unit over a first communication link; or alternatively
Receiving first vehicle data sent by the mobile terminal through a third communication link; or alternatively
Receiving specific data of first vehicle data sent by the vehicle-mounted unit through a first communication link, and receiving the first vehicle data sent by the mobile terminal through a third communication link;
the saving module 1203 is configured to save other data than the specific data among the first vehicle data in response to determining that the specific data has been received.
Wherein the specific data includes data having a data priority higher than a sixth threshold value, and data having a data validity period smaller than a seventh threshold value.
According to the technical scheme provided by the embodiment of the application, the cloud terminal receives the vehicle data through the first communication link between the vehicle-mounted unit and the mobile terminal or the second communication link between the vehicle-mounted unit and the mobile terminal respectively or simultaneously, so that the vehicle data can be completely uploaded to the cloud terminal, the resource utilization rate is improved, and the data integrity is protected.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Fig. 13 is a schematic diagram of an electronic device according to an embodiment of the present application. As shown in fig. 13, the electronic device 13 of this embodiment includes: a processor 1301, a memory 1302 and a computer program 1303 stored in the memory 1302 and executable on the processor 1301. The steps of the various method embodiments described above are implemented when the processor 1301 executes the computer program 1303. Alternatively, the processor 1301 when executing the computer program 1303 implements the functions of the modules/units in the above-described apparatus embodiments.
The electronic device 13 may be a desktop computer, a notebook computer, a palm computer, a cloud server, or the like. The electronic device 13 may include, but is not limited to, a processor 1301 and a memory 1302. It will be appreciated by those skilled in the art that fig. 13 is merely an example of the electronic device 13 and is not limiting of the electronic device 13 and may include more or fewer components than shown, or different components.
Processor 1301 may be a central processing unit (Central Processing Unit, CPU) or other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like.
The memory 1302 may be an internal storage unit of the electronic device 13, for example, a hard disk or a memory of the electronic device 13. The memory 1302 may also be an external storage device of the electronic device 13, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 13. Memory 1302 may also include both internal and external storage units of electronic device 13. The memory 1302 is used to store computer programs and other programs and data required by the electronic device.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment 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, where the integrated units may be implemented in a form of hardware or a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. The computer program may comprise computer program code, which may be in source code form, object code form, executable file or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (13)

1. A method of vehicle data transmission, the method performed by an on-board unit, comprising:
responding to the starting of the vehicle, establishing a first communication link with a cloud end, and establishing a second communication link with a mobile terminal, wherein the second communication link is established based on a short-range wireless communication technology;
in response to receiving an instruction to transmit first vehicle data, determining a communication quality of the first communication link and a resource utilization of the on-board unit;
and transmitting the first vehicle data to a mobile terminal using the second communication link in response to the communication quality being less than a first threshold or the resource usage being greater than a second threshold.
2. The method according to claim 1, wherein the method further comprises:
periodically determining a communication quality of the first communication link and a resource utilization of the on-board unit;
responding to the communication quality being greater than or equal to a first threshold value and the resource utilization rate being less than or equal to a second threshold value, sending a query message to the mobile terminal, wherein the query message is used for querying whether vehicle data in the mobile terminal is uploaded to a cloud end;
and receiving an inquiry response message sent by the mobile terminal, responding to the inquiry response message to indicate that the first vehicle data in the mobile terminal is uploaded to the cloud, and transmitting the second vehicle data to the cloud by using the first communication link after the vehicle-mounted unit receives an instruction for transmitting the second vehicle data.
3. The method according to claim 1, wherein the method further comprises:
and in response to the vehicle shutdown, sending a log-out instruction to the mobile terminal so as to enable the mobile terminal to log out of the second communication link.
4. A method according to any one of claims 1 to 3, wherein establishing a first communication link with the cloud end and a second communication link with the mobile terminal in response to vehicle start-up comprises:
Responding to the starting of the vehicle, and sending an authentication request to the cloud;
responding to the fact that the authentication response message sent by the cloud is not received, sending an authentication request to the mobile terminal, and establishing a second communication link with the mobile terminal;
and periodically sending a heartbeat message to the cloud end, and establishing the first communication link with the cloud end in response to receiving the heartbeat response message sent by the cloud end.
5. The method of claim 2, wherein the periodically determining the communication quality of the first communication link comprises:
periodically acquiring any one or more of a heartbeat response signal, a packet loss rate and a residual bandwidth of the first communication link to determine communication quality of the first communication link;
the periodically determining the resource usage of the on-board unit includes:
any one or more of a memory usage rate of the on-board unit and a processor usage rate of the on-board unit are periodically obtained to determine a communication quality of the first communication link.
6. The method according to claim 1, wherein the method further comprises:
in response to the communication quality being less than a fourth threshold or the resource usage being greater than a fifth threshold, the on-board unit transmitting specific data of the first vehicle data to the cloud using the first communication link, and transmitting the first vehicle data to a mobile terminal using the second communication link;
Wherein the fourth threshold is greater than the first threshold, the fifth threshold is less than the second threshold, the specific data includes data having a higher data priority than a sixth threshold, and data having a data validity period less than a seventh threshold.
7. A method of vehicle data transmission, the method performed by a mobile terminal, comprising:
establishing a second communication link with the vehicle-mounted unit and establishing a third communication link with the cloud;
receiving first vehicle data sent by the vehicle-mounted unit;
periodically determining whether the network quality of the third communication link is greater than a third threshold, if so, transmitting the first vehicle data to the cloud end by using the third communication link, and if not, temporarily storing the first vehicle data to the mobile terminal until the network quality of the third communication link is greater than the third threshold;
receiving a logout instruction sent by the vehicle-mounted unit, and logging out the second communication link;
and sending the first vehicle data to the cloud end in response to determining that the mobile terminal comprises the first vehicle data which is not sent to the cloud end.
8. A method for transmitting vehicle data, the method being performed by a cloud, comprising:
Establishing a first communication link with the vehicle-mounted unit and establishing a third communication link with the mobile terminal;
receiving first vehicle data sent by the vehicle-mounted unit through a first communication link; or alternatively
Receiving first vehicle data sent by the mobile terminal through a third communication link; or alternatively
Receiving specific data of first vehicle data sent by the vehicle-mounted unit through a first communication link, and receiving the first vehicle data sent by the mobile terminal through a third communication link;
in response to determining that the specific data has been received, save other data than the specific data in the first vehicle data;
wherein the specific data includes data having a data priority higher than a sixth threshold, and data having a data validity period smaller than a seventh threshold.
9. A vehicle data transmission device, characterized by comprising:
the system comprises an establishing module, a cloud end establishing module and a mobile terminal, wherein the establishing module is configured to respond to the starting of a vehicle, establish a first communication link with the cloud end and establish a second communication link with the mobile terminal, and the second communication link is established based on a short-range wireless communication technology;
a determination module configured to determine a communication quality of the first communication link, and a resource utilization of the on-board unit, in response to receiving an instruction to transmit first vehicle data;
And a transmission module configured to transmit the first vehicle data to a mobile terminal using the second communication link in response to the communication quality being less than a first threshold or the resource usage being greater than a second threshold.
10. A vehicle data transmission device, characterized by comprising:
the establishing module is configured to establish a second communication link with the vehicle-mounted unit and establish a third communication link with the cloud;
a receiving module configured to receive first vehicle data transmitted by the on-board unit;
the determining module is configured to periodically determine whether the network quality of the third communication link is greater than a third threshold, if yes, the first vehicle data is transmitted to the cloud end by using the third communication link, and if not, the first vehicle data is temporarily stored to a mobile terminal until the network quality of the third communication link is greater than the third threshold;
the receiving module is further configured to receive a log-out instruction sent by the vehicle-mounted unit, and log out the second communication link;
the sending module is configured to send the first vehicle data to the cloud end in response to determining that the first vehicle data which is not sent to the cloud end is included in the mobile terminal.
11. A vehicle data transmission device, characterized by comprising:
the establishing module is configured to establish a first communication link with the vehicle-mounted unit and a third communication link with the mobile terminal;
a receiving module configured to receive first vehicle data transmitted by the on-board unit over a first communication link; or alternatively
Receiving first vehicle data sent by the mobile terminal through a third communication link; or alternatively
Receiving specific data of first vehicle data sent by the vehicle-mounted unit through a first communication link, and receiving the first vehicle data sent by the mobile terminal through a third communication link;
a save module configured to save, in response to determining that the specific data has been received, other data than the specific data among the first vehicle data;
wherein the specific data includes data having a data priority higher than a sixth threshold, and data having a data validity period smaller than a seventh threshold.
12. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when the computer program is executed.
13. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 6.
CN202310606252.8A 2023-05-26 2023-05-26 Vehicle data transmission method and device, electronic equipment and storage medium Pending CN116582905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310606252.8A CN116582905A (en) 2023-05-26 2023-05-26 Vehicle data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310606252.8A CN116582905A (en) 2023-05-26 2023-05-26 Vehicle data transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116582905A true CN116582905A (en) 2023-08-11

Family

ID=87535613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310606252.8A Pending CN116582905A (en) 2023-05-26 2023-05-26 Vehicle data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116582905A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117315824A (en) * 2023-09-28 2023-12-29 小米汽车科技有限公司 Method and device for acquiring car key signals and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846431A (en) * 2016-09-18 2018-03-27 腾讯科技(深圳)有限公司 Car-mounted terminal communication means and car-mounted terminal
US20180262891A1 (en) * 2015-06-11 2018-09-13 3M Innovative Properties Company Electronic access control systems and methods using near-field communications, mobile devices and cloud computing
CN110738755A (en) * 2019-10-28 2020-01-31 江西博能上饶客车有限公司 Vehicle-mounted terminal data transmission method, system, mobile terminal and storage medium
CN111107600A (en) * 2019-12-30 2020-05-05 联想(北京)有限公司 Method and device for switching link
CN111786899A (en) * 2020-07-15 2020-10-16 深圳市有方科技股份有限公司 Internet of things communication method and related equipment
CN112367642A (en) * 2020-10-30 2021-02-12 东风汽车集团有限公司 Vehicle-mounted network load balancing method based on TBOX and mobile phone
CN112492546A (en) * 2020-12-01 2021-03-12 广州优胜汽车科技有限公司 Automobile control method and system and readable storage medium
CN113411375A (en) * 2021-05-08 2021-09-17 长沙智能驾驶研究院有限公司 Information processing method, device and computer storage medium
CN114415636A (en) * 2022-01-20 2022-04-29 重庆长安汽车股份有限公司 Vehicle state monitoring and management system and method
CN115599070A (en) * 2022-09-26 2023-01-13 成都赛力斯科技有限公司(Cn) Vehicle diagnosis method, system, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180262891A1 (en) * 2015-06-11 2018-09-13 3M Innovative Properties Company Electronic access control systems and methods using near-field communications, mobile devices and cloud computing
CN107846431A (en) * 2016-09-18 2018-03-27 腾讯科技(深圳)有限公司 Car-mounted terminal communication means and car-mounted terminal
CN110738755A (en) * 2019-10-28 2020-01-31 江西博能上饶客车有限公司 Vehicle-mounted terminal data transmission method, system, mobile terminal and storage medium
CN111107600A (en) * 2019-12-30 2020-05-05 联想(北京)有限公司 Method and device for switching link
CN111786899A (en) * 2020-07-15 2020-10-16 深圳市有方科技股份有限公司 Internet of things communication method and related equipment
CN112367642A (en) * 2020-10-30 2021-02-12 东风汽车集团有限公司 Vehicle-mounted network load balancing method based on TBOX and mobile phone
CN112492546A (en) * 2020-12-01 2021-03-12 广州优胜汽车科技有限公司 Automobile control method and system and readable storage medium
CN113411375A (en) * 2021-05-08 2021-09-17 长沙智能驾驶研究院有限公司 Information processing method, device and computer storage medium
CN114415636A (en) * 2022-01-20 2022-04-29 重庆长安汽车股份有限公司 Vehicle state monitoring and management system and method
CN115599070A (en) * 2022-09-26 2023-01-13 成都赛力斯科技有限公司(Cn) Vehicle diagnosis method, system, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117315824A (en) * 2023-09-28 2023-12-29 小米汽车科技有限公司 Method and device for acquiring car key signals and storage medium

Similar Documents

Publication Publication Date Title
CN112055024B (en) Authority verification method and device, storage medium and electronic equipment
US10298492B2 (en) System and method for interworking between vehicle controller and external resource
CN106792681B (en) Intrusion detection method, device and equipment for Internet of vehicles
US20200183373A1 (en) Method for detecting anomalies in controller area network of vehicle and apparatus for the same
CN105991412A (en) Method and device for pushing message
CN116582905A (en) Vehicle data transmission method and device, electronic equipment and storage medium
US20220314988A1 (en) Vehicle speed control method, apparatus and device
EP3836619B1 (en) Direct connection communication method, access control and mobility management function entity and terminal
CN111833612A (en) Method and system for transmitting image early warning information in intelligent traffic system
WO2018218535A1 (en) Information processing method, device and system
CN107241216A (en) Maintain the method and device of the stable transmission of critical data
CN110572476B (en) Remote control method, device and equipment
US20220329292A1 (en) Method and communication apparatus for transmitting and receiving data
EP2928105A2 (en) Content delivery architecture
US20160203520A1 (en) Providing sponsored data to a vehicle
CN104081728B (en) Network management
CN106911789B (en) Data transmission method, transmission system and device based on user collaborative environment
US11894887B2 (en) Method and communication device for transmitting and receiving camera data and sensor data
KR20220130022A (en) Apparatus, system and method for security and performance monitoring of network
CN114489730A (en) Remote upgrading method, terminal equipment and computer readable storage medium
CN114286039A (en) Audio and video call method and system
US20220345934A1 (en) Method and communication device for transmitting or receiving data by using available buffer size
WO2015154653A1 (en) Transmission method for authentication information, and terminal
CN111629354A (en) Wireless communication method and device
CN114710403B (en) Data scheduling method, device, equipment, medium and program product

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
TA01 Transfer of patent application right

Effective date of registration: 20240116

Address after: No. 13 Xingxiang Road, Zengjia Town, High tech Zone, Shapingba District, Chongqing, 400039

Applicant after: Chongqing Selis Phoenix Intelligent Innovation Technology Co.,Ltd.

Address before: 610095 No. 2901, floor 29, unit 1, building 1, No. 151, Tianfu Second Street, high tech Zone, China (Sichuan) pilot Free Trade Zone, Chengdu, Sichuan Province

Applicant before: Chengdu Thalys Technology Co.,Ltd.

TA01 Transfer of patent application right