CN117858089A - Data processing method, device, storage medium and equipment - Google Patents

Data processing method, device, storage medium and equipment Download PDF

Info

Publication number
CN117858089A
CN117858089A CN202211214325.0A CN202211214325A CN117858089A CN 117858089 A CN117858089 A CN 117858089A CN 202211214325 A CN202211214325 A CN 202211214325A CN 117858089 A CN117858089 A CN 117858089A
Authority
CN
China
Prior art keywords
vehicle
data packet
update
equipment
update 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
CN202211214325.0A
Other languages
Chinese (zh)
Inventor
马超
赵伟冰
金云梅
黄奋杰
王伟伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD 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 BYD Co Ltd filed Critical BYD Co Ltd
Priority to CN202211214325.0A priority Critical patent/CN117858089A/en
Publication of CN117858089A publication Critical patent/CN117858089A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application discloses a data processing method, a data processing device, a storage medium and equipment. The method comprises the following steps: acquiring a verification data packet of an application program of the vehicle-mounted equipment and an update data packet of the application program of the vehicle-mounted equipment; verifying the validity of the update data packet according to the verification data packet to obtain a verification result; and if the verification result indicates that the update data packet has validity, updating the application program of the vehicle-mounted equipment according to the update data packet. By the method and the device, the update safety and the update efficiency of the application program can be improved.

Description

Data processing method, device, storage medium and equipment
Technical Field
The present disclosure relates to the field of vehicles, and in particular, to a data processing method, apparatus, storage medium, and device.
Background
With the development of electronic technology and mobile interconnection technology, automobiles are becoming more and more intelligent. More and more in-vehicle devices are equipped with applications similar to mobile terminals, such as applications that can support entertainment, social, travel, etc. functions to provide a similar experience to mobile terminals. With the development of time, the application programs need to be updated iteratively so that the user experiences the latest science and technology services.
At present, when the communication quality of a cellular network environment is poor or a data packet is updated by malicious theft, data loss and data transmission failure are easily caused, or an updated data packet with viruses is obtained, so that the updating efficiency of an application program of the vehicle-mounted equipment is lower, and the updating safety of the application program of the vehicle-mounted equipment is lower.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present application is to provide a data processing method, apparatus, storage medium and device, which can improve update security and update efficiency of an application program.
An aspect of an embodiment of the present application provides a data processing method, which is applied to a vehicle-mounted device, including:
acquiring a verification data packet of an application program of the vehicle-mounted equipment and an update data packet of the application program of the vehicle-mounted equipment;
verifying the validity of the update data packet according to the verification data packet to obtain a verification result;
and if the verification result indicates that the update data packet has validity, updating the application program of the vehicle-mounted equipment according to the update data packet.
Wherein, before obtaining the verification data packet for verifying the update data packet of the application program of the vehicle-mounted device, the data processing method further comprises:
And establishing a linear communication connection between the vehicle-mounted equipment and the terminal equipment so that the vehicle-mounted equipment receives the check data packet sent by the terminal equipment through the linear communication connection.
The method for establishing the linear communication connection between the vehicle-mounted equipment and the terminal equipment comprises the following steps:
generating a network connection request, wherein the network connection request carries a Bluetooth identifier and a Bluetooth connection protocol corresponding to Bluetooth in the vehicle-mounted equipment;
sending a network connection request to terminal equipment;
receiving a network connection response message sent by the terminal equipment, wherein the network connection response message is generated based on a network connection request when the terminal equipment receives the network connection request;
and establishing direct communication connection between the vehicle-mounted equipment and the terminal equipment through Bluetooth of the vehicle-mounted equipment according to the network connection response message.
The method for acquiring the update data packet of the application program of the vehicle-mounted equipment comprises the following steps:
acquiring a communication state check data packet from terminal equipment through direct communication connection;
acquiring a data receiving state of the vehicle-mounted equipment, and generating a state indication value for reflecting the data receiving state of the vehicle-mounted equipment;
when the state indication value is an effective value, adding the state indication value into a communication state check data packet to obtain a communication state response message;
And sending the communication state response message to the terminal equipment through direct communication connection, and acquiring the update data packet from the terminal equipment.
Wherein, obtain the updated data packet from the terminal equipment, include:
acquiring equipment attribute information of the vehicle-mounted equipment;
generating an update data packet acquisition request carrying equipment attribute information;
sending an update data acquisition request to the terminal equipment through direct communication connection;
receiving an update data packet of an application program of the vehicle-mounted equipment returned by the terminal equipment through direct communication connection; the update data packet is matched with the equipment attribute information carried by the update data acquisition request.
Wherein, after verifying the validity of the update data packet according to the verification data packet, obtaining the verification result, the data processing method further comprises:
if the verification result indicates that the update data packet does not have validity, generating a retransmission request carrying the data packet identifier of the update data packet;
sending the retransmission request to the terminal equipment through direct communication connection;
receiving N updated data fragments sent by terminal equipment through direct communication connection; the N update data segments are obtained by dividing the update data packets by the terminal device.
If the verification result indicates that the update data packet has validity, updating the application program of the vehicle-mounted device according to the update data packet, including:
if the verification result indicates that the update data packet has validity, generating an update instruction about the update data packet;
and sending an update instruction to a data update module in the vehicle-mounted equipment through a gateway controller associated with the vehicle-mounted equipment, and updating an application program in the vehicle-mounted equipment through the data update module according to the update instruction.
After the application program in the vehicle-mounted equipment is updated according to the update instruction through the data update module, the data processing method further comprises the following steps:
receiving an updating result obtained by updating the application program by the data updating module through the gateway controller;
and sending the updated result to the terminal equipment through direct communication connection between the vehicle-mounted equipment and the terminal equipment so as to enable the terminal equipment to display the updated result.
An aspect of an embodiment of the present application provides a data processing apparatus, which is applied to a vehicle-mounted device, including:
the acquisition module is used for acquiring a verification data packet of the application program of the vehicle-mounted equipment and an update data packet of the application program of the vehicle-mounted equipment;
The verification module is used for verifying the validity of the update data packet according to the verification data packet to obtain a verification result;
and the updating module is used for updating the application program of the vehicle-mounted equipment according to the updating data packet if the verification result indicates that the updating data packet has validity.
Wherein the data processing apparatus further includes, before acquiring the verification data packet for verifying the update data packet of the application program of the in-vehicle device:
the establishing module is used for establishing the linear communication connection between the vehicle-mounted equipment and the terminal equipment so that the vehicle-mounted equipment receives the check data packet sent by the terminal equipment through the direct communication connection.
Wherein, the establishment module includes:
the first generation unit is used for generating a network connection request, wherein the network connection request carries a Bluetooth identifier and a Bluetooth connection protocol corresponding to Bluetooth in the vehicle-mounted equipment;
a first sending unit, configured to send a network connection request to a terminal device;
the first receiving unit is used for receiving a network connection response message sent by the terminal equipment, wherein the network connection response message is generated based on a network connection request when the terminal equipment receives the network connection request;
the establishing unit is used for establishing direct communication connection between the vehicle-mounted equipment and the terminal equipment through Bluetooth of the vehicle-mounted equipment according to the network connection response message.
Wherein, the acquisition module includes:
the first acquisition unit is used for acquiring a communication state check data packet from the terminal equipment through direct communication connection;
a second generation unit configured to acquire a data reception state of the in-vehicle apparatus, and generate a status indication value for reflecting the data reception state of the in-vehicle apparatus;
the adding unit is used for adding the state indication value into the communication state check data packet when the state indication value is an effective value to obtain a communication state response message;
and the second acquisition unit is used for sending the communication state response message to the terminal equipment through direct communication connection and acquiring the update data packet from the terminal equipment.
The second obtaining unit is specifically configured to:
acquiring equipment attribute information of the vehicle-mounted equipment;
generating an update data packet acquisition request carrying the equipment attribute information;
the update data acquisition request is sent to the terminal equipment through the direct communication connection;
receiving an update data packet of the application program of the vehicle-mounted equipment returned by the terminal equipment through the direct communication connection; and the update data packet is matched with the equipment attribute information carried by the update data acquisition request.
Wherein, after verifying the validity of the update data packet according to the check data packet, the data processing apparatus further comprises:
the generation module is used for generating a retransmission request carrying the data packet identifier of the update data packet if the verification result indicates that the update data packet does not have validity;
the retransmission module is used for transmitting a retransmission request to the terminal equipment through direct communication connection;
the receiving module is used for receiving N updated data fragments sent by the terminal equipment through direct communication connection; the N update data segments are obtained by dividing the update data packets by the terminal device.
Wherein, the update module includes:
a third generation unit for generating an update instruction about the update data packet if the verification result indicates that the update data packet has validity;
the updating unit is used for sending the updating instruction to the data updating module in the vehicle-mounted equipment through the gateway controller associated with the vehicle-mounted equipment, and updating the application program in the vehicle-mounted equipment through the data updating module according to the updating instruction.
After the data updating module updates the application program in the vehicle-mounted equipment according to the updating instruction, the updating module further comprises:
The second receiving unit is used for receiving an updating result obtained by updating the application program by the data updating module through the gateway controller;
the second sending unit is used for sending the updated result to the terminal equipment through direct communication connection between the vehicle-mounted equipment and the terminal equipment so as to enable the terminal equipment to display the updated result.
In one aspect, an embodiment of the present application provides a vehicle-mounted device, including: a processor and a memory;
the processor is connected to the memory, wherein the memory is configured to store a computer program, and when the computer program is executed by the processor, the computer device is caused to execute the method provided in the embodiment of the application.
In one aspect, the present application provides a computer readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having the processor performs the method provided in the embodiments of the present application.
In one aspect, the present application provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method provided in the embodiments of the present application.
In the embodiment of the application program updating method, when the vehicle-mounted device acquires the verification data packet of the application program of the vehicle-mounted device and the update data packet of the application program of the vehicle-mounted device, the validity of the update data packet is verified according to the verification data packet to obtain a verification result, and if the verification result indicates that the update data packet has the validity, the application program of the vehicle-mounted device is updated according to the update data packet. Therefore, the application program in the vehicle-mounted equipment can be ensured to be updated according to the effective update data packet, the problem that the application program of the vehicle-mounted equipment is required to be updated again due to failure in updating the application program of the vehicle-mounted equipment caused by the fact that the application program of the vehicle-mounted equipment is updated according to the ineffective update data packet is avoided, the updating efficiency of the application program of the vehicle-mounted equipment can be improved, and meanwhile, the updating safety of the application program of the vehicle-mounted equipment can also be improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of data interaction between a terminal device and a vehicle-mounted device provided in an embodiment of the present application;
FIG. 3 is a functional block diagram of an update apparatus according to an embodiment of the present application;
FIG. 4 is a further functional block diagram of FIG. 3;
FIG. 5 is a flow chart of updating the application of the in-vehicle device of FIG. 1;
FIG. 6 is a schematic flowchart of a data processing method according to an embodiment of the present application;
FIG. 7 is a functional block diagram of a data processing apparatus according to an embodiment of the present application;
fig. 8 is a functional block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flow chart of a data processing method according to an embodiment of the present application. The data processing method can be interactively executed by the vehicle-mounted equipment and the terminal equipment. As shown in fig. 1, the data processing method may include, but is not limited to, the following steps:
s101, acquiring a verification data packet of an application program of the vehicle-mounted device and an update data packet of the application program of the vehicle-mounted device.
Specifically, the vehicle-mounted device may acquire a verification data packet of the application program of the vehicle-mounted device, and acquire an update data packet of the application program of the vehicle-mounted device, where the verification data packet may be used to verify validity of the update data packet of the application program of the vehicle-mounted device. The verification data packet may be a database that is sent to the vehicle-mounted device in advance by the terminal device and stored in the vehicle-mounted device, and the vehicle-mounted device may be directly obtained from the database of the vehicle-mounted device. The check packet may be a check packet that the terminal device transmits to the in-vehicle device before transmitting the update packet of the application program in the in-vehicle device to the in-vehicle device, or may be a check packet that the terminal device transmits to the in-vehicle device together with transmitting the update packet of the application program in the in-vehicle device to the in-vehicle device.
Optionally, the vehicle-mounted device may request a verification data packet for verifying an update data packet of an application program of the vehicle-mounted device from the terminal device, and when the vehicle-mounted device acquires the verification data packet, acquire the update data packet of the application program of the vehicle-mounted device from the terminal device through a direct communication connection. In this way, only after the vehicle-mounted device receives the verification data packet, the update data packet of the application program of the vehicle-mounted device is obtained from the terminal device, so that the problem that the validity of the update data packet of the application program of the vehicle-mounted device cannot be verified when the verification data packet is not received can be avoided.
Optionally, the vehicle-mounted device may establish a direct communication connection between the vehicle-mounted device and the terminal device, so that data interaction between the vehicle-mounted device and the terminal device may be performed through the direct communication connection, for example, the vehicle-mounted device receives a verification data packet sent by the terminal device through the direct communication connection. The direct communication connection is a communication mode, so that data can be directly transmitted between two interactive parties without forwarding by a third party (such as a base station). It can be understood that after the direct communication connection is established between the vehicle-mounted equipment and the terminal equipment, the vehicle-mounted equipment and the terminal equipment can directly perform data communication, so that the data transmission safety between the vehicle-mounted equipment and the terminal equipment can be improved, and meanwhile, the data transmission rate can be improved, the transmission time can be shortened, and the energy consumption can be reduced. Wherein the direct communication connection may include, but is not limited to, a bluetooth connection near field communication (Near Field communication, NFC) connection, an ultrasonic connection, an electromagnetic wave connection, an infrared connection, and the like. The communication data format protocol session constraint can be carried out between the vehicle-mounted equipment and the terminal equipment so as to agree on the communication rules between the two communication parties. Wherein, the terminal device may include: smart terminals with data processing functions such as smart phones, tablet computers, notebook computers, desktop computers, wearable devices, smart home and head-mounted devices.
Optionally, the direct communication connection may be a bluetooth connection, and specific content of establishing the direct communication connection between the vehicle device and the terminal device may include: generating a network connection request, wherein the network connection request carries a Bluetooth identifier and a Bluetooth connection protocol corresponding to Bluetooth in the vehicle-mounted equipment. And sending a network connection request to the terminal equipment, and receiving a network connection response message sent by the terminal equipment, wherein the network connection response message is generated based on the network connection request when the terminal equipment receives the network connection request. And establishing direct communication connection between the vehicle-mounted equipment and the terminal equipment through Bluetooth of the vehicle-mounted equipment according to the network connection response message.
Specifically, the vehicle-mounted device acquires a bluetooth identifier and a bluetooth connection protocol corresponding to bluetooth in the vehicle-mounted device, and further, the vehicle-mounted device can send a network connection request to the terminal device according to a network connection request generated by the bluetooth identifier and the bluetooth connection protocol. The terminal equipment can scan the network connection request, and after the terminal equipment scans the network connection request of the vehicle-mounted equipment, the terminal equipment can receive the network connection request, and generates a network connection response message according to the network connection request of the vehicle-mounted equipment so as to determine that direct communication connection is established with the vehicle-mounted equipment. Further, the terminal device may send the network connection reply message to the vehicle-mounted device, and the vehicle-mounted device may receive the network connection reply message sent by the terminal device. And establishing direct communication connection between the vehicle-mounted equipment and the terminal equipment through Bluetooth in the vehicle-mounted equipment according to the network connection response message. The bluetooth in the vehicle-mounted device may be bluetooth of the vehicle-mounted device, or may be bluetooth of an upgrade device connected to the vehicle-mounted device. Specifically, when the bluetooth in the vehicle-mounted device is the bluetooth of the vehicle-mounted device, the bluetooth identifier and the bluetooth connection protocol of the bluetooth of the vehicle-mounted device can be obtained through upgrading application in the vehicle-mounted device, and a network connection request is generated according to the bluetooth identifier and the bluetooth connection protocol of the bluetooth of the vehicle-mounted device. When the Bluetooth in the vehicle-mounted equipment is the Bluetooth accessed to the upgrading device in the vehicle-mounted equipment, the network connection request can be generated by accessing the upgrading device in the vehicle-mounted equipment according to the Bluetooth identifier and the Bluetooth connection protocol of the Bluetooth of the upgrading device.
Specifically, the vehicle-mounted device may broadcast the network connection request generated according to the bluetooth identifier and the bluetooth connection protocol of the vehicle-mounted device through the broadcasting service of bluetooth. The terminal equipment can acquire a target Bluetooth identifier (namely, a Bluetooth identifier of the vehicle-mounted equipment) to be connected, and if the terminal equipment determines that the Bluetooth identifier (namely, the Bluetooth identifier of the vehicle-mounted equipment) carried in the received network connection request is the target Bluetooth identifier, the terminal equipment establishes Bluetooth connection with the vehicle-mounted equipment according to the Bluetooth identifier of the vehicle-mounted equipment. After the terminal equipment determines that Bluetooth connection is established with the vehicle-mounted equipment, a communication channel between the vehicle-mounted equipment and the terminal equipment is established by acquiring a Bluetooth connection protocol of the vehicle-mounted equipment, and then a direct communication channel between the vehicle-mounted equipment and the terminal equipment is established by Bluetooth of the terminal equipment and Bluetooth of the vehicle-mounted equipment.
Optionally, after the direct communication connection is established between the vehicle-mounted device and the terminal device, a specific manner of the vehicle-mounted device obtaining the update data packet of the application program of the vehicle-mounted device may include: the communication status check data packet may be obtained from the terminal device via a direct communication connection. And acquiring the data receiving state of the vehicle-mounted equipment, generating a state indicating value for reflecting the data receiving state of the vehicle-mounted equipment, and adding the state indicating value into the communication state check data packet when the state indicating value is a valid value to obtain a communication state response message. And sending the communication state response message to the terminal equipment through direct communication connection, and acquiring the update data packet from the terminal equipment.
Specifically, after the direct communication connection is established between the vehicle-mounted device and the terminal device, the terminal device may generate a communication status check packet for checking whether the vehicle-mounted device is in an acceptable state (i.e., the vehicle-mounted device is in a state in which it can receive data of the terminal device). After the terminal device generates the communication state check data packet, the communication state check data packet can be sent to the vehicle-mounted device through direct communication connection. The vehicle-mounted equipment receives the communication state check data packet sent by the terminal equipment through direct communication connection, and further, the vehicle-mounted equipment can acquire the data connection state of the vehicle-mounted equipment to generate a state indication value for reflecting the data receiving state of the vehicle-mounted equipment. The status indication value is used for reflecting the data receiving status of the vehicle-mounted equipment, and if the status indication value is 1, the data receiving status of the vehicle-mounted equipment is indicated to be in a receivable status (namely, the vehicle-mounted equipment can receive the data sent by the terminal equipment); when the status indication value is 0, the data receiving status of the in-vehicle apparatus is indicated as an unreceivable status (i.e., the in-vehicle apparatus cannot receive the data transmitted by the terminal apparatus). Further, when the status indication value is an effective value, the vehicle-mounted device may add the status indication value to the communication status check data packet to obtain a communication status response message, and send the communication status response message to the terminal device through direct communication connection, so as to obtain the update data packet from the terminal device. The terminal equipment can receive a communication state response message returned by the vehicle-mounted equipment through direct communication connection, wherein the communication state response message is used for indicating the terminal equipment to allow the vehicle-mounted equipment to acquire an update data packet when a state indication value is an effective value; when the status indication value is a valid value, the status indication value reflects that the data receiving status of the in-vehicle device is a receivable status. If the in-vehicle device directly transmits to the terminal device communication status response information including a status indication value (that is, the status indication value may be 0 or 1), the communication status response information indicates that the terminal device is not allowed to acquire the update packet when the status indication value is an invalid value, and reflects that the data reception status of the in-vehicle device is an unreceivable status when the status indication value is an invalid value.
Specifically, when the in-vehicle apparatus generates a status indication value for reflecting the data reception status of the in-vehicle apparatus, the field description information of the status check field, which is a field for describing the data reception status of the in-vehicle apparatus, may be acquired from the communication status check packet. Further, the in-vehicle apparatus may generate a status indication value reflecting the data reception status of the in-vehicle apparatus from the field description information of the status check field and the data reception status of the in-vehicle apparatus. For example, the field description information of the field check field is: if the data receiving state of the vehicle-mounted equipment is an acceptable state, the state indication value is 1; if the data reception state of the in-vehicle apparatus is an unacceptable state, the status instruction value is 0. Then, when the data reception state of the in-vehicle apparatus is the receivable state, the status instruction value is 1; when the data reception state of the in-vehicle apparatus is the non-receivable state, the status indication value is 0.
Specifically, as shown in table 1, table 1 is a definition rule of a communication status check packet, and as shown in table 1, the field check field is "xor check 1 byte", and the field description information of the field check field is: the abnormal state indication value is 0 (i.e., if the data reception state of the in-vehicle apparatus is an unacceptable state), or the state indication value is 1 (i.e., if the data reception state of the in-vehicle apparatus is an acceptable state). When the terminal device times out and does not receive a response message (i.e. a communication state response message) or the response message is wrong (i.e. transmission fails), the processing of retransmitting for 3 times at most is needed. The retransmission time interval is 100 ms, 300 ms, 600 ms. And if the terminal equipment does not receive a response after timeout for 2 seconds, the terminal equipment considers failure, and the Bluetooth connection is disconnected to carry out updating processing again. The normal time interval of the in-vehicle device during transmission is fixed at 50 milliseconds.
TABLE 1
Specifically, the vehicle-mounted device may obtain, from the terminal device, a verification data packet for verifying an update packet of an application program of the vehicle-mounted device through a direct communication connection. The update data packet of the application program of the vehicle-mounted device is used for carrying out iterative update (i.e. upgrading) on the application program in the vehicle-mounted device, so that the defect of the application program in the vehicle-mounted device can be repaired, and new program application can be pushed to enrich the application functions of the vehicle-mounted device, so that better business service is provided for users. The verification data packet of the update data packet is a data verification protocol, and is used for verifying the validity of the update data packet, for example, whether the update data packet is complete, whether the content is tampered, and the like can be verified through the verification data packet. The verification data packet of the update data packet is obtained through direct communication connection, so that the obtaining safety of the verification data packet can be improved.
Specifically, if the vehicle-mounted device acquires the verification data packet sent by the terminal device, the vehicle-mounted device can acquire the update data packet of the application program of the vehicle-mounted device from the terminal device through direct communication connection. After receiving the check data packet sent by the terminal device, the vehicle-mounted device may return a receiving response message for the check data packet to the terminal device, so as to notify the terminal device that the vehicle-mounted device has received the check data packet. After the terminal device sends the check data packet to the vehicle-mounted device, if the receiving response message for the check data packet returned by the vehicle-mounted device is not received within a first preset duration, the vehicle-mounted device is determined to not receive the check data packet, and the check data packet is sent to the vehicle-mounted device again through direct communication connection. After encrypting the update data packet, the terminal device sends the encrypted update data packet to the vehicle-mounted device.
Specifically, if the vehicle-mounted device receives the check data packet, the vehicle-mounted device may send a receiving response message for the check data packet to the terminal device through the direct communication channel, and after the terminal device receives the receiving response message for the check data packet sent by the vehicle-mounted device, the vehicle-mounted device may send an update data packet of an application program of the vehicle-mounted device to the vehicle-mounted device through direct communication connection. Specifically, if the vehicle-mounted device receives the check data packet, a receiving response message for the check data packet may be sent to the terminal device through the direct communication channel, and at the same time, the vehicle-mounted device sends an acquisition request for the update data packet of the application program in the vehicle-mounted device to the terminal device under the condition that the vehicle-mounted device is ready to acquire the update data packet. The terminal equipment receives an acquisition request about an update data packet of an application program in the vehicle-mounted equipment, which is sent by the vehicle-mounted equipment, and sends the update data packet of the application program in the vehicle-mounted equipment to the vehicle-mounted equipment through a direct communication channel when the vehicle-mounted equipment is in a receivable state. In this way, only after the vehicle-mounted device receives the verification data packet, the update data packet of the application program of the vehicle-mounted device is obtained from the terminal device, so that the problem that the validity of the update data packet of the application program of the vehicle-mounted device cannot be verified when the verification data packet is not received can be avoided.
Optionally, the specific manner of acquiring the update data packet from the terminal device by the vehicle-mounted device may include: acquiring equipment attribute information of the vehicle-mounted equipment, and generating an update data packet acquisition request carrying the equipment attribute information. And sending the update data acquisition request to the terminal equipment through direct communication connection. Receiving an update data packet of an application program of the vehicle-mounted equipment returned by the terminal equipment through direct communication connection; the update data packet is matched with the equipment attribute information carried by the update data acquisition request.
Specifically, the vehicle-mounted device may acquire device attribute information of the vehicle-mounted device, where the device attribute information may include a device identifier, a device manufacturer, a device model, and the like. The vehicle-mounted device can also generate an update data packet acquisition request carrying device attribute information, and send the update data packet acquisition request to the terminal device through direct communication connection. After receiving an update data packet acquisition request carrying device attribute information sent by the vehicle-mounted device, the terminal device can acquire an update database, wherein the update database comprises M candidate update data packets and configuration protocol files corresponding to each candidate update data packet, the configuration protocol files are used for indicating attribute information corresponding to the corresponding candidate update data packet, M is a positive integer, and if M can take the values of 1,2 and 3 …. Further, the terminal device may acquire, from the update database, a candidate update packet whose attribute information matches the device attribute information as an update packet of the application program of the in-vehicle device. The terminal device can send the update data packet of the application program of the vehicle-mounted device to the vehicle-mounted device through direct communication connection. For example, if the device model of the in-vehicle device is X123, the terminal device may acquire, from the update database, a candidate update packet having attribute information of X123 as an update packet of an application program of the in-vehicle device according to the device model X123. In this way, the vehicle-mounted device directly acquires the update data packet corresponding to the vehicle-mounted device from the terminal device, so that the update data packet of the application program of the vehicle-mounted device can be quickly acquired, the data quantity of data transmission can be reduced, and the acquisition efficiency of the update data packet is improved. The terminal device may parse attribute information corresponding to each candidate update data packet according to the configuration protocol file.
Optionally, the terminal device may send the M candidate update data packets in the update database and the configuration protocol file corresponding to each candidate update data packet to the vehicle-mounted device through direct communication connection, and after the vehicle-mounted device receives the M candidate update data packets and the configuration protocol file corresponding to each candidate update data packet, the device attribute information of the vehicle-mounted device may be obtained. And acquiring candidate update data packets with attribute information matched with the equipment attribute information from the M candidate update data packets according to the configuration protocol file corresponding to each update data packet, wherein the candidate update data packets are used as update data packets of application programs of the vehicle-mounted equipment. In this way, the vehicle-mounted device can acquire the update data packet of the application program in the vehicle-mounted device at one time, and the update data packet is prevented from being acquired from the terminal device for multiple times.
S102, verifying the validity of the update data packet according to the verification data packet to obtain a verification result.
Specifically, after the vehicle-mounted device acquires the update data packet, the validity of the update data packet may be verified according to the verification data packet to obtain a verification result, where the verification result may include that the update data packet has validity, or that the update data packet does not have validity. In this way, by verifying the update package, the validity of the update package can be ensured, and further, the update of the application program in the in-vehicle device according to the update package having the validity can be ensured.
Optionally, the vehicle-mounted device may verify the integrity of the update data packet according to the check data packet, and if the update data packet is determined to have no integrity according to the check data packet, determine that the update data packet has no validity; and if the updating data packet is determined to have the integrity according to the checking data packet, determining that the updating data packet has the validity. For example, the check data packet indicates that the update data packet has P bytes, and if the update data packet is P bytes, the update data packet is determined to have integrity; if the update data packet is not P bytes, it is determined that the update data packet does not have integrity.
Optionally, the vehicle-mounted device may verify the correctness of the update data packet according to the check data packet, and if the update data packet is determined to be inaccurate (i.e. the content is tampered) according to the check data packet, determine that the update data packet does not have validity; if the update data packet is determined to have accuracy (i.e. the content is not tampered) according to the check data packet, the update data packet is determined to have validity. For example, if the code value indicated in the check data packet is Q and the code value obtained by the vehicle-mounted device for coding the update data packet is not Q, determining that the update data packet is inaccurate; if the obtained code value is Q, the updated data packet is determined to be accurate.
And S103, if the verification result indicates that the update data packet has validity, updating the application program of the vehicle-mounted equipment according to the update data packet.
Specifically, if the vehicle-mounted device determines that the verification result indicates that the update data packet has validity, the application program in the vehicle-mounted device is updated according to the update data packet, so that the defect of the application program in the vehicle-mounted device can be repaired, and new program application can be pushed to enrich the application functions of the vehicle-mounted device, so that better business service is provided for a user.
Optionally, the specific way for the vehicle-mounted device to update the application program of the vehicle-mounted device according to the update data packet may include: if the verification result indicates that the update data packet has validity, an update instruction regarding the update data packet is generated. And sending an update instruction to a data update module in the vehicle-mounted equipment through a gateway controller associated with the vehicle-mounted equipment, and updating an application program in the vehicle-mounted equipment through the data update module according to the update instruction.
Specifically, if the vehicle-mounted device determines that the verification result indicates that the update data packet is valid, the vehicle-mounted device may generate an update instruction regarding the update data packet, where the update instruction is used to instruct updating of the application program in the vehicle-mounted device according to the update data packet. Further, the vehicle-mounted device can send an update instruction to a data update module in the vehicle-mounted device through a gateway controller associated with the vehicle-mounted device, and the data update module updates an application program in the vehicle-mounted device according to the update instruction. The gateway controller may refer to a CAN bus, which is a short for a controller area network (Controller Area Network, CAN), and is a serial communication network that effectively supports distributed control or real-time control. The update data packet CAN be sent to the vehicle in the vehicle-mounted device through the CAN bus, and the data update module in the vehicle CAN update the application program installed in the vehicle according to the update data packet. The upgrading device in the vehicle-mounted equipment comprises an interface connected with the vehicle, the vehicle can be connected with the interface, meanwhile, power supply can be connected, and the carrier is activated to be connected with the vehicle.
Optionally, if the vehicle-mounted device determines that the verification result indicates that the update data packet does not have validity, a retransmission request carrying a data packet identifier of the update data packet is generated, where the retransmission request may be used to instruct the terminal device to retransmit the update data packet of the application program of the vehicle-mounted device. Further, the vehicle-mounted device may send the retransmission request to the terminal device through the direct communication connection. After receiving the retransmission request sent by the vehicle-mounted device, the terminal device can acquire candidate update data packets with the identification matched with the data packet identification from the update database according to the data packet identification carried by the retransmission request, and the candidate update data packets are used as update data packets of application programs in the vehicle-mounted device. The terminal device may segment the update data packet of the application program in the vehicle-mounted device to obtain N update data segments, where N is a positive integer greater than 2, and if N may take the values of 2,3,4 and …. The terminal device may send the N update data segments to the vehicle device through a direct communication connection. Optionally, before the terminal device sends the N pieces of update data to the vehicle-mounted device, the terminal device may send a check data packet about the N pieces of update data to the vehicle-mounted device, so as to ensure that the vehicle-mounted device can receive the accurate N pieces of update data. The vehicle-mounted device can receive N updated data fragments sent by the terminal device through direct communication connection. In this way, since the previous failure of the terminal device to send the update data packet of the application program of the vehicle-mounted device to the vehicle-mounted device may be due to the failure caused by the oversized update data packet, the update data packet of the application program of the vehicle-mounted device is divided, and after N update data segments are obtained, the failure caused by the oversized update data packet can be avoided.
Fig. 2 is a schematic diagram of data interaction between a terminal device and a vehicle-mounted device, which is provided in an embodiment of the present application, and as shown in fig. 2, a data processing method in the present application may be performed by interaction between a terminal device A1 and a vehicle-mounted device A2, and as shown in fig. 2, an update application may be installed in the terminal device A1, where the update application may be connected through direct communication with the vehicle-mounted device through bluetooth of the terminal device A1. And the updating data packet is connected through direct communication and sent to the vehicle-mounted equipment, and meanwhile, the updating result of the application program in the vehicle-mounted equipment is displayed. As shown in fig. 2, the update application includes a configuration protocol file 1 and an update data packet 2, where the configuration protocol file 1 is used to indicate attribute information (such as an adapted vehicle model, an adapted vehicle manufacturer, etc.) of the update data packet, and the update application includes an update data packet compatible with multiple CAN protocols (i.e., an update data packet including multiple attribute information). As shown in fig. 2, the vehicle-mounted device A2 is composed of an upgrading device and a vehicle device, wherein the upgrading device can be plugged into the vehicle through an interface, and the upgrading device can establish direct communication connection with the terminal device A1, and receive and store an update data packet sent by the terminal device A1. Meanwhile, the update data packet CAN be sent to the CAN bus (namely the gateway controller), the update data packet is sent to the vehicle equipment, the application program installed in the vehicle equipment is updated, and the update result of the application program in the vehicle equipment is returned to the terminal equipment A1. Wherein the number of vehicle devices may be one or more. The vehicle equipment CAN acquire an update data packet from the CAN bus, update the application program in the vehicle according to the update data packet, and simultaneously return an update result to the upgrading device through the CAN bus.
As shown in fig. 3, fig. 3 is a functional block diagram of an updating device provided in the embodiment of the present application, and as shown in fig. 3, an upgrading device may include an MCU module B1, a CAN module B2, and an external plug-in module B3. As shown in fig. 3, the MCU module B1 is a core chip, and is configured to establish a direct communication connection with a terminal device, receive and store an update data packet sent by the terminal device, and integrally include a bluetooth module B11 and a storage module B12. It should be noted that the MCU module B1 includes not only the modules B11 and B12, but also the embodiments of the present application are not limited herein. The Bluetooth module B11 integrates a low-power consumption Bluetooth capability core block and is used for establishing direct communication connection with the terminal equipment to realize data interaction between the terminal equipment and the vehicle-mounted equipment. The storage module B12 integrates a storage capability core block, and is used for storing received update data packets. As shown in fig. 3, the CAN module B2 is integrated with a CAN capability core block, and is configured to receive an update instruction sent by the upgrade device, and send the update instruction to a vehicle accessing the CAN bus, so that the vehicle accessing the CAN bus obtains a finer instruction, and update an application program in the vehicle according to the update instruction. Meanwhile, the CAN module B2 CAN also receive the updating result returned by the vehicle and return the updating result to the upgrading device. The external plug-in module B3 integrates an external access capability core block and is used for accessing a vehicle, namely, the vehicle can be connected with the upgrading device through the external plug-in module B3.
As shown in fig. 4, fig. 4 is a further functional block diagram of fig. 3, and as shown in fig. 4, the upgrade apparatus may include an MCU module C1, a CAN module C2, and an external plug-in module C3. The MCU module C1 includes a processing data discrimination computation service capability, but is not limited to this single capability. The MCU module C1 comprises a Bluetooth module C11 and a storage module C12. The bluetooth module C11 is configured to carry bluetooth communication service capability, and the storage module C12 is configured to carry data packet storage service capability. The bluetooth module C11 may be used for broadcasting bluetooth services, establishing direct communication connection between the terminal device and the vehicle-mounted device, and waiting for establishing a communication pipe between the vehicle-mounted device and the terminal device, and may also be used for transmitting data. The storage module C12 is configured to cache each data unit, and the MCU module C1 may be configured to determine and calculate the data unit instruction cached by the storage module C12. Specifically, the storage module C12 includes a response unit, a verification unit, a detection unit, and a storage unit. The response unit is configured to reply a receiving response message to the terminal device after receiving data (such as an update data packet and a check data packet) sent by the terminal device. The checking unit may be configured to check data (e.g. update data packet) sent by the terminal device, and the detecting unit is configured to check an upgrade check bit of the vehicle, and when the check is successful, update the vehicle according to the update data packet, and if the check is unsuccessful, not update the vehicle. The storage unit is used for storing the data received by the upgrading device. The CAN module C2 is used for bearing the data distribution, discrimination and calculation capacity of the vehicle CAN bus protocol. The external plug-in module C3 integrates an external access capability core block and is used for accessing the vehicle, namely, the connection between the vehicle and the upgrading device can be realized through the external plug-in module C3.
Fig. 5 is a schematic flow chart of updating the application program of the in-vehicle apparatus in fig. 1, and as shown in fig. 5, step 50a is performed to start the operation of updating the application program of the in-vehicle apparatus. Meanwhile, the vehicle-mounted equipment can broadcast a network connection request, the terminal equipment can scan the network connection request of the vehicle-mounted equipment and return a network connection response message based on the network connection request, and the vehicle-mounted equipment can establish direct communication connection between the vehicle-mounted equipment and the terminal equipment based on the network connection response message. Further, the terminal device performs step 50b to detect whether the data receiving state of the vehicle-mounted device is a receivable state, that is, the terminal device may generate a communication state check packet, and send the communication state check packet to the vehicle-mounted device through the direct communication connection. The in-vehicle device may return a communication state reply message based on the communication state check packet. If the terminal device determines that the communication status reply message indicates that the vehicle-mounted device is in an acceptable status, the terminal device may execute step 50c, and send a check data packet to the vehicle-mounted device through the direct communication connection. If the communication status reply message indicates that the in-vehicle device is not in an acceptable status, the terminal device may execute step 50j, ending the operation of updating the application program in the in-vehicle device. Further, after the terminal device sends the verification data packet to the vehicle-mounted device, step 50d may be executed to send an update data packet of the application program of the vehicle-mounted device to the vehicle-mounted device. After the terminal device transmits the update data packet of the application program in the vehicle-mounted device to the vehicle-mounted device, step 50e may be performed to detect whether there is a transmission failure operation (i.e., the terminal device fails to transmit) or a response timeout operation (i.e., the vehicle-mounted device does not return a reception response message beyond a preset duration). If so, step 50f is performed to retransmit the update packet of the application program in the in-vehicle device to the in-vehicle device in response to the retransmission request. Further, after receiving the update data packet sent by the terminal device, the vehicle-mounted device may execute step 50g to check the update data packet, and if the update data packet has validity, execute step 50h to update the application program in the vehicle-mounted device according to the update data packet. If the update packet is not valid, step 50j is executed to end the update operation for the application program in the in-vehicle device. Further, the vehicle-mounted device may detect the update condition of the vehicle, and when it is detected that the update of the application program in the vehicle is completed, step 50i may be executed to perform an update success response (e.g., return an update success result to the terminal device). Further, the in-vehicle apparatus may execute step 50j, ending the operation of updating the application program in the in-vehicle apparatus.
In the embodiment of the application, through establishing the direct communication connection between the vehicle-mounted equipment and the terminal equipment, the vehicle-mounted equipment and the terminal equipment can perform data interaction through the direct communication connection without forwarding by a third party (such as a base station), so that the data transmission safety between the vehicle-mounted equipment and the terminal equipment can be improved, the data transmission rate can be improved, the transmission time can be shortened, the energy consumption can be reduced, and the data transmission cost can be further reduced. When the vehicle-mounted equipment acquires the verification data packet, acquiring the update data packet of the application program of the vehicle-mounted equipment from the terminal equipment through direct communication connection. In this way, only after the vehicle-mounted device receives the verification data packet, the update data packet of the application program of the vehicle-mounted device is obtained from the terminal device, so that the problem that the validity of the update data packet of the application program of the vehicle-mounted device cannot be verified when the verification data packet is not received can be avoided. And verifying the validity of the update data packet according to the verification data packet to obtain a verification result, and if the verification result indicates that the update data packet has the validity, updating the application program of the vehicle-mounted equipment according to the update data packet. Therefore, the application program in the vehicle-mounted equipment can be ensured to be updated according to the update data packet with the validity, the problem that the application program of the vehicle-mounted equipment is failed to be updated according to the update data packet without the validity is avoided, and the update efficiency of the application program of the vehicle-mounted equipment can be improved.
Referring to fig. 6, fig. 6 is a specific flowchart of a data processing method according to an embodiment of the present application. The data processing method can be interactively executed by the vehicle-mounted equipment and the terminal equipment. As shown in fig. 6, the data processing method may include, but is not limited to, the following steps:
s201, acquiring a verification data packet of an application program of the vehicle-mounted device and an update data packet of the application program of the vehicle-mounted device.
S202, verifying the validity of the update data packet according to the verification data packet to obtain a verification result.
Specifically, the specific content of steps S201 to S202 in the embodiment of the present application may be referred to the specific content of steps S101 to S102 in fig. 1, and the embodiment of the present application is not repeated here.
S203, if the verification result indicates that the update packet is valid, generating an update instruction about the update packet.
S204, the gateway controller associated with the vehicle-mounted equipment sends an update instruction to a data update module in the vehicle-mounted equipment, and the data update module updates the application program in the vehicle-mounted equipment according to the update instruction.
Specifically, if the vehicle-mounted device determines that the verification result indicates that the update data packet is valid, the vehicle-mounted device may generate an update instruction regarding the update data packet, where the update instruction is used to instruct updating of the application program in the vehicle-mounted device according to the update data packet. Further, the vehicle-mounted device can send an update instruction to a data update module in the vehicle-mounted device through a gateway controller associated with the vehicle-mounted device, and the data update module updates an application program in the vehicle-mounted device according to the update instruction. The gateway controller can send the update data packet to the vehicle in the vehicle-mounted device, and the data update module in the vehicle can update the application program installed in the vehicle according to the update data packet. The upgrading device in the vehicle-mounted equipment comprises an interface connected with the vehicle, the vehicle can be connected with the interface, meanwhile, power supply can be connected, and the carrier is activated to be connected with the vehicle.
S205, receiving an updating result obtained by updating the application program by the data updating module through the gateway controller.
Specifically, when the vehicle in the vehicle-mounted device updates the application program according to the update data packet, the application program may be updated to obtain an update result, where the update result may refer to that the application program is updated according to the update data packet, or may refer to that the application program is failed to be updated.
S206, the updated result is sent to the terminal equipment through direct communication connection, so that the terminal equipment displays the updated result.
Specifically, the vehicle-mounted device may connect the direct communication and send the update result to the terminal device. The terminal equipment can receive an updating result about an application program in the vehicle-mounted equipment, which is sent by the vehicle-mounted equipment, through direct communication connection. Further, the terminal device can display the update result in the terminal display interface, so that a user can view the update condition (namely, detailed description information of the update process) of the application program in the vehicle-mounted device, and the user experience of the user can be improved.
In the embodiment of the application, through establishing the direct communication connection between the vehicle-mounted equipment and the terminal equipment, the vehicle-mounted equipment and the terminal equipment can perform data interaction through the direct communication connection without forwarding by a third party (such as a base station), so that the data transmission safety between the vehicle-mounted equipment and the terminal equipment can be improved, the data transmission rate can be improved, the transmission time can be shortened, the energy consumption can be reduced, and the data transmission cost can be further reduced. When the vehicle-mounted equipment acquires the verification data packet, acquiring the update data packet of the application program of the vehicle-mounted equipment from the terminal equipment through direct communication connection. In this way, only after the vehicle-mounted device receives the verification data packet, the update data packet of the application program of the vehicle-mounted device is obtained from the terminal device, so that the problem that the validity of the update data packet of the application program of the vehicle-mounted device cannot be verified when the verification data packet is not received can be avoided. And verifying the validity of the update data packet according to the verification data packet to obtain a verification result, and if the verification result indicates that the update data packet has the validity, updating the application program of the vehicle-mounted equipment according to the update data packet. Therefore, the application program in the vehicle-mounted equipment can be ensured to be updated according to the update data packet with the validity, the problem that the application program of the vehicle-mounted equipment is failed to be updated according to the update data packet without the validity is avoided, and the update efficiency of the application program of the vehicle-mounted equipment can be improved. In addition, the terminal device can display the update result in the terminal display interface, so that a user can check the update condition of the application program (namely, the detailed description information of the update process) in the vehicle-mounted device, and the user experience of the user can be improved.
Referring to fig. 7, fig. 7 is a functional block diagram of a data processing apparatus according to an embodiment of the present application. The data processing means may be a computer program (comprising program code) running in a computer device, for example the data processing means is an application software; the data processing device may be used to execute corresponding steps in the data processing method provided in the embodiments of the present application. As shown in fig. 7, the data processing apparatus may include an acquisition module 11, a verification module 12, an update module 13, a setup module 14, a generation module 15, a retransmission module 16, and a reception module 17.
An acquiring module 11, configured to acquire a verification data packet of an application program of the vehicle-mounted device and an update data packet of the application program of the vehicle-mounted device;
the verification module 12 is configured to verify the validity of the update data packet according to the verification data packet, so as to obtain a verification result;
and the updating module 13 is configured to update the application program of the vehicle-mounted device according to the update data packet if the verification result indicates that the update data packet has validity.
Wherein the data processing apparatus further includes, before acquiring the verification data packet for verifying the update data packet of the application program of the in-vehicle device:
The establishing module 14 is configured to establish a linear communication connection between the vehicle-mounted device and the terminal device, so that the vehicle-mounted device receives the check data packet sent by the terminal device through the direct communication connection.
Wherein the setup module 14 comprises:
a first generating unit 1401, configured to generate a network connection request, where the network connection request carries a bluetooth identifier and a bluetooth connection protocol corresponding to bluetooth in the vehicle-mounted device;
a first sending unit 1402, configured to send a network connection request to a terminal device;
a first receiving unit 1403, configured to receive a network connection response message sent by the terminal device, where the network connection response message is generated based on the network connection request when the terminal device receives the network connection request;
and the establishing unit 1404 is configured to establish, according to the network connection response message, a direct communication connection between the vehicle-mounted device and the terminal device through bluetooth of the vehicle-mounted device.
Wherein the acquisition module 11 comprises:
a first obtaining unit 1101, configured to obtain a communication status check packet from a terminal device through a direct communication connection;
a second generating unit 1102, configured to acquire a data receiving state of the vehicle-mounted device, and generate a status indication value for reflecting the data receiving state of the vehicle-mounted device;
An adding unit 1103, configured to add the status indication value to the communication status check packet to obtain a communication status response message when the status indication value is an effective value;
a second obtaining unit 1104, configured to send a communication status response message to the terminal device through the direct communication connection, and obtain the update data packet from the terminal device.
The second acquiring unit 1104 is specifically configured to:
acquiring equipment attribute information of the vehicle-mounted equipment;
generating an update data packet acquisition request carrying the equipment attribute information;
the update data acquisition request is sent to the terminal equipment through the direct communication connection;
receiving an update data packet of the application program of the vehicle-mounted equipment returned by the terminal equipment through the direct communication connection; and the update data packet is matched with the equipment attribute information carried by the update data acquisition request.
Wherein, after verifying the validity of the update data packet according to the check data packet, the data processing apparatus further comprises:
a generating module 15, configured to generate a retransmission request carrying a packet identifier of the update packet if the verification result indicates that the update packet is not valid;
A retransmission module 16, configured to send a retransmission request to the terminal device through a direct communication connection;
a receiving module 17, configured to receive N update data segments sent by a terminal device through direct communication connection; the N update data segments are obtained by dividing the update data packets by the terminal device.
Wherein the update module 13 comprises:
a third generating unit 1301 configured to generate an update instruction regarding the update data packet if the verification result indicates that the update data packet has validity;
the updating unit 1302 is configured to send an update instruction to a data updating module in the vehicle-mounted device through a gateway controller associated with the vehicle-mounted device, and update an application program in the vehicle-mounted device according to the update instruction through the data updating module.
Wherein, after updating the application program in the vehicle-mounted device according to the update instruction by the data update module, the update module 13 further includes:
the second receiving unit 1303 is configured to receive, by using the gateway controller, an update result obtained by updating the application program by using the data update module;
and the second sending unit 1304 is configured to send the update result to the terminal device through a direct communication connection between the vehicle-mounted device and the terminal device, so that the terminal device displays the update result.
According to an embodiment of the present application, each module in the data processing apparatus shown in fig. 7 may be separately or all combined into one or several units to form a structure, or some (some) of the units may be further split into multiple sub-units with smaller functions, so that the same operation may be implemented without affecting the implementation of the technical effects of the embodiments of the present application. The above modules are divided based on logic functions, and in practical applications, the functions of one module may be implemented by a plurality of units, or the functions of a plurality of modules may be implemented by one unit. In other embodiments of the present application, the data processing apparatus may also include other units, and in practical applications, these functions may also be implemented with assistance from other units, and may be implemented by cooperation of a plurality of units.
In the embodiment of the application, through establishing the direct communication connection between the vehicle-mounted equipment and the terminal equipment, the vehicle-mounted equipment and the terminal equipment can perform data interaction through the direct communication connection without forwarding by a third party (such as a base station), so that the data transmission safety between the vehicle-mounted equipment and the terminal equipment can be improved, the data transmission rate can be improved, the transmission time can be shortened, the energy consumption can be reduced, and the data transmission cost can be further reduced. When the vehicle-mounted equipment acquires the verification data packet, acquiring the update data packet of the application program of the vehicle-mounted equipment from the terminal equipment through direct communication connection. In this way, only after the vehicle-mounted device receives the verification data packet, the update data packet of the application program of the vehicle-mounted device is obtained from the terminal device, so that the problem that the validity of the update data packet of the application program of the vehicle-mounted device cannot be verified when the verification data packet is not received can be avoided. And verifying the validity of the update data packet according to the verification data packet to obtain a verification result, and if the verification result indicates that the update data packet has the validity, updating the application program of the vehicle-mounted equipment according to the update data packet. Therefore, the application program in the vehicle-mounted equipment can be ensured to be updated according to the update data packet with the validity, the problem that the application program of the vehicle-mounted equipment is failed to be updated according to the update data packet without the validity is avoided, and the update efficiency of the application program of the vehicle-mounted equipment can be improved. In addition, the terminal device can display the update result in the terminal display interface, so that a user can check the update condition of the application program (namely, the detailed description information of the update process) in the vehicle-mounted device, and the user experience of the user can be improved.
Referring to fig. 8, fig. 8 is a functional block diagram of a computer device according to an embodiment of the present application. As shown in fig. 8, the above-mentioned computer device 1000 may include: processor 1001, network interface 1004, and memory 1005, and in addition, the above-described computer device 1000 may further include: a user interface 1003, and at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface, among others. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a nonvolatile memory (non-volatile memory), such as at least one magnetic disk memory. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 8, an operating system, a network communication module, a user interface module, and a device control application may be included in a memory 1005, which is a type of computer-readable storage medium.
In the computer device 1000 shown in FIG. 8, the network interface 1004 may provide network communication functions; while user interface 1003 is primarily used as an interface for providing input to a user; and the processor 1001 may be used to invoke a device control application stored in the memory 1005 to implement:
acquiring a check data packet of an update data packet of an application program of the vehicle-mounted equipment and the update data packet of the application program of the vehicle-mounted equipment;
verifying the validity of the update data packet according to the verification data packet to obtain a verification result;
and if the verification result indicates that the update data packet has validity, updating the application program of the vehicle-mounted equipment according to the update data packet.
It should be understood that the computer device 1000 described in the embodiments of the present application may perform the description of the data processing method in the embodiment corresponding to fig. 3 or fig. 6, and may also perform the description of the data processing apparatus in the embodiment corresponding to fig. 7, which is not repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
Furthermore, it should be noted here that: the embodiments of the present application further provide a computer readable storage medium, in which a computer program executed by the aforementioned data processing apparatus is stored, and the computer program includes program instructions, when executed by a processor, can perform the description of the data processing method in the embodiment corresponding to fig. 3 and 6, and therefore, a detailed description will not be given here.
In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, the program instructions may be deployed to be executed on one computer device or on multiple computer devices at one site or, alternatively, on multiple computer devices distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
It should be noted that, for simplicity of description, the foregoing method embodiments are all expressed as a series of action combinations, but it should be understood by those skilled in the art that the present application is not limited by the described order of action, as some steps may take other order or be performed simultaneously according to the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
Those of ordinary skill in the art will appreciate that implementing all or part of the processes in the methods of the embodiments described above,
those skilled in the art will appreciate that the processes implementing all or part of the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, and the program may be stored in a computer readable storage medium, and the program may include the processes of the embodiments of the methods as above when executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random-access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (11)

1. A data processing method applied to an in-vehicle apparatus, characterized by comprising:
acquiring a verification data packet of an application program of the vehicle-mounted equipment and an update data packet of the application program of the vehicle-mounted equipment;
Verifying the validity of the update data packet according to the verification data packet to obtain a verification result;
and if the verification result indicates that the update data packet has validity, updating the application program of the vehicle-mounted equipment according to the update data packet.
2. The method according to claim 1, wherein before acquiring the check packet for checking the update packet of the application of the in-vehicle device, the method further comprises:
and establishing a linear communication connection between the vehicle-mounted equipment and the terminal equipment so that the vehicle-mounted equipment receives the check data packet sent by the terminal equipment through the linear communication connection.
3. The method according to claim 2, wherein the establishing a linear communication connection between the in-vehicle device and a terminal device comprises:
generating a network connection request, wherein the network connection request carries a Bluetooth identifier and a Bluetooth connection protocol corresponding to Bluetooth in the vehicle-mounted equipment;
sending the network connection request to the terminal equipment;
receiving a network connection response message sent by the terminal equipment, wherein the network connection response message is generated based on the network connection request when the terminal equipment receives the network connection request;
And establishing direct communication connection between the vehicle-mounted equipment and the terminal equipment through Bluetooth of the vehicle-mounted equipment according to the network connection response message.
4. The method according to claim 2, wherein the acquiring the update package of the application program of the in-vehicle device includes:
acquiring a communication state check data packet from the terminal equipment through the direct communication connection;
acquiring the data receiving state of the vehicle-mounted equipment and generating a state indication value for reflecting the data receiving state of the vehicle-mounted equipment;
when the state indication value is an effective value, the state indication value is added into the communication state check data packet to obtain a communication state response message;
and sending the communication state response message to the terminal equipment through the direct communication connection, and acquiring the update data packet from the terminal equipment.
5. The method of claim 4, wherein the obtaining the update data packet from the terminal device comprises:
acquiring equipment attribute information of the vehicle-mounted equipment;
generating an update data packet acquisition request carrying the equipment attribute information;
The update data acquisition request is sent to the terminal equipment through the direct communication connection;
receiving an update data packet of the application program of the vehicle-mounted equipment returned by the terminal equipment through the direct communication connection; and the update data packet is matched with the equipment attribute information carried by the update data acquisition request.
6. The method of claim 2, wherein after verifying the validity of the update packet based on the check packet, the method further comprises:
if the verification result indicates that the update data packet does not have validity, generating a retransmission request carrying a data packet identifier of the update data packet;
sending the retransmission request to the terminal equipment through the direct communication connection;
receiving N updated data fragments sent by the terminal equipment through the direct communication connection; the N update data segments are obtained by dividing the update data packet by the terminal equipment.
7. The method according to claim 1, wherein if the verification result indicates that the update data packet is valid, updating the application program of the vehicle-mounted device according to the update data packet includes:
If the verification result indicates that the update data packet has validity, generating an update instruction about the update data packet;
and sending the update instruction to a data update module in the vehicle-mounted equipment through a gateway controller associated with the vehicle-mounted equipment, and updating an application program in the vehicle-mounted equipment through the data update module according to the update instruction.
8. The method according to claim 7, wherein after updating the application program in the in-vehicle device according to the update instruction by the data update module, the method further comprises:
receiving an updating result obtained by updating the application program by the data updating module through the gateway controller;
and sending the updating result to the terminal equipment through direct communication connection between the vehicle-mounted equipment and the terminal equipment so as to enable the terminal equipment to display the updating result.
9. A data processing apparatus, which is applied to an in-vehicle device, characterized by comprising:
the system comprises an acquisition module, a verification module and a control module, wherein the acquisition module is used for acquiring a verification data packet of an application program of the vehicle-mounted equipment and an update data packet of the application program of the vehicle-mounted equipment;
The verification module is used for verifying the validity of the update data packet according to the verification data packet to obtain a verification result;
and the updating module is used for updating the application program of the vehicle-mounted equipment according to the updating data packet if the verification result indicates that the updating data packet has validity.
10. An in-vehicle apparatus, characterized by comprising: a processor and a memory;
the processor is connected to a memory, wherein the memory is configured to store a computer program, and the processor is configured to invoke the computer program to cause the computer device to perform the method of any of claims 1-8.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any of claims 1-8.
CN202211214325.0A 2022-09-30 2022-09-30 Data processing method, device, storage medium and equipment Pending CN117858089A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211214325.0A CN117858089A (en) 2022-09-30 2022-09-30 Data processing method, device, storage medium and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211214325.0A CN117858089A (en) 2022-09-30 2022-09-30 Data processing method, device, storage medium and equipment

Publications (1)

Publication Number Publication Date
CN117858089A true CN117858089A (en) 2024-04-09

Family

ID=90542326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211214325.0A Pending CN117858089A (en) 2022-09-30 2022-09-30 Data processing method, device, storage medium and equipment

Country Status (1)

Country Link
CN (1) CN117858089A (en)

Similar Documents

Publication Publication Date Title
EP3654618B1 (en) Audio broadcasting method, device, and system, and smart broadcasting apparatus
CN103491270B (en) There is the billing system of the wireless device transaction event data of certification
KR101488268B1 (en) Push message service system and method thereof
US20200250909A1 (en) Data management method, apparatus, device, system and storage medium for smart lock
CN105933888B (en) A kind of eSIM card method for burn-recording and device based on NFC
CN110869907B (en) Method and terminal for browsing application page
CA2517548A1 (en) Update system and method for updating a scanning subsystem in a mobile communication framework
CN112650520B (en) Ammeter upgrading method and system, intelligent ammeter and storage medium
CN106850241A (en) A kind of vehicle-mounted OBD terminals and its remote upgrade method
US20100157964A1 (en) Server to guide reconnection in mobile internet, method for guiding server reconnection, and server reconnection method
CN105139204A (en) Method and system for carrying out security authentication
CN106453629B (en) A kind of automobile electronic system remote update system and its method based on mobile network
CN112087475B (en) Message pushing method and device for cloud platform component application and message server
CN105376636A (en) A verification code filling-in method, a verification code filling-in assisting method, an intelligent television set and an intelligent mobile terminal
CN111404695A (en) Token request verification method and device
CN107087293A (en) A kind of cut-in method, terminal and server
CN109936840A (en) Communication means, device and electronic equipment
CN113282310A (en) Application management method and system, vehicle-mounted device, server and readable storage medium
CN101500235B (en) Off-line authentication method, off-line authentication system and mobile terminal
CN113396600B (en) Information verification method, device, equipment and storage medium
CN109788065B (en) Off-line message transmission method and off-line message transmission device based on Beidou system
CN105282821A (en) Terminal and method for connecting the terminal with wireless fidelity WiFi access point
CN117858089A (en) Data processing method, device, storage medium and equipment
CN106231538A (en) A kind of method and apparatus of OneM2M framework apparatus bound
CN111787642B (en) Third-party application based authentication networking method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication