Remote communication method and device, electronic device, and storage medium

By establishing a service connection between the user and the cloud, and establishing a Bluetooth connection between the user and the calibration box, two-way authentication is carried out, the problem of excessive power consumption of the calibration box in the existing remote test calibration technology is solved, and the remote ECU calibration or measurement with low power consumption and low bandwidth is realized, reducing the economic cost of the equipment.

CN118368605BActive Publication Date: 2025-03-11CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410379810.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-29
Publication Date
2025-03-11
Estimated Expiration
2044-03-29

AI Technical Summary

Technical Problem

In the existing remote test calibration technology, 4G/5G and WiFi are used for vehicle ECU calibration, resulting in excessive power consumption of the calibration box, affecting the long-term measurement and calibration effect, and high-frequency band RF communication and high-bandwidth transmission are wasted resources.

Method used

By establishing a service connection between the user and the cloud, establishing a Bluetooth connection between the user and the calibration box, performing two-way authentication, and when the two-way authentication is successful, communication between the cloud and the calibration box is achieved based on the service connection and the Bluetooth connection, remote ECU calibration or measurement is realized.

Benefits of technology

Bluetooth low-power (BLE) is used for wireless communication, which reduces the power consumption of the calibration box, reduces transmission bandwidth requirements, and realizes remote ECU calibration or measurement with lower economic costs, and is suitable for long-term measurement and calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118368605B_ABST
    Figure CN118368605B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a remote communication method and device, an electronic device, and a storage medium. The method includes: establishing a service connection between a user terminal and a cloud for measuring and calibrating a vehicle ECU; establishing a Bluetooth connection between the user terminal and a calibration box; connecting the calibration box to the vehicle terminal to remotely calibrate the vehicle ECU; performing two-way authentication between the calibration box and the user terminal according to the Bluetooth connection; when the two-way authentication is successful, communicating between the cloud and the calibration box according to the service connection and the Bluetooth connection; during the communication process between the cloud and the calibration box, if the calibration box is determined to be a legal calibration box stored in the cloud, remotely calibrating or measuring the vehicle's ECU based on the cloud, the user terminal, and the calibration box. Through the embodiment of the present invention, the BLE forwarding node is used to achieve low power consumption on the calibration box side, and the method requires low economic cost for transmission bandwidth.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle technology, and in particular to a remote communication method and device, electronic equipment, and a storage medium. Background Art

[0002] With the increasing number of automotive electronic control units (ECUs) in the automotive field, in order to achieve the best performance of all vehicle components, meet the growing requirements of customers and comply with relevant national standards, OEMs need to spend a lot of manpower and material resources to measure and calibrate vehicle ECUs during R&D, testing and even after-sales stages.

[0003] In the existing remote test and calibration technical solutions, 4G / 5G can be used for vehicle ECU calibration. However, the introduction of 4G / 5G will slightly increase the deployment cost of the calibration box (such as monthly mobile bandwidth fees, etc.), and the high-frequency band RF communication has high power consumption. At the same time, the use of WiFi to ensure the coverage of the wall-penetrating signal range and high-frequency transmission also has high power consumption problems, resulting in excessive power consumption of the calibration box for vehicle-following measurement and calibration, affecting the long-term measurement and calibration effects. In addition, the use of WiFi high-bandwidth transmission for calibration of the XCP protocol is also a great waste of resources. Summary of the invention

[0004] In view of the above problems, a remote communication method and device, electronic device, and storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:

[0005] A remote communication method, the method comprising:

[0006] Establishing a service connection between the user end and the cloud for vehicle ECU measurement and calibration;

[0007] Establishing a Bluetooth connection between the user terminal and the calibration box; the calibration box is connected to the vehicle terminal to remotely calibrate the vehicle ECU;

[0008] According to the Bluetooth connection, two-way authentication is performed between the calibration box and the user terminal;

[0009] When the two-way authentication is successful, communicating between the cloud and the calibration box according to the service connection and the Bluetooth connection;

[0010] During the communication between the cloud and the calibration box, if it is determined that the calibration box is a legitimate calibration box stored in the cloud, the ECU of the vehicle is remotely calibrated or measured based on the cloud, the user terminal and the calibration box.

[0011] Optionally, establishing a Bluetooth connection between the user terminal and the calibration box includes:

[0012] Obtain the Bluetooth name of the calibration box in the periodic BLE announcement;

[0013] Control the user terminal to initiate a Bluetooth connection to the calibration box based on the Bluetooth name;

[0014] A Bluetooth connection is established between the user terminal and the calibration box based on a preset PIN code.

[0015] Optionally, performing two-way authentication between the calibration box and the user terminal according to the Bluetooth connection includes:

[0016] Obtaining the MAC address of the calibration box, and generating an authentication key based on the MAC address;

[0017] Generating a first random number at the user terminal, and sending the first random number to the calibration box according to the Bluetooth connection;

[0018] generating a second random number in the calibration box, and sending the second random number to the user terminal according to the Bluetooth connection;

[0019] In the calibration box and the user terminal, combining the first random number and the second random number to generate an initialization vector;

[0020] Two-way authentication is performed according to the authentication key and the initialization vector.

[0021] Optionally, performing bidirectional authentication according to the authentication key and the initialization vector includes:

[0022] In the user terminal and the calibration box, the authentication key and the initialization vector are used to encrypt the target plaintext data according to a preset encryption algorithm to obtain first ciphertext data and second ciphertext data;

[0023] Based on the Bluetooth connection, sending the first ciphertext data generated by the user terminal to the calibration box, so as to authenticate the user terminal in the calibration box;

[0024] Based on the Bluetooth connection, the second ciphertext data generated by the calibration box is sent to the user terminal, so as to authenticate the calibration box in the user terminal.

[0025] Optionally, the communicating between the cloud and the calibration box according to the service connection and the Bluetooth connection includes:

[0026] Acquire transmission data of the calibration box to be transmitted to the cloud;

[0027] Converting the data to be transmitted into a target lightweight instruction according to a preset lightweight instruction protocol;

[0028] Encrypting the target lightweight instruction to obtain an encrypted instruction;

[0029] The encrypted instruction is transmitted to the cloud according to the service connection and the Bluetooth connection.

[0030] Optionally, the transmission data includes a target serial number of the calibration box, and the determining that the calibration box is a legal calibration box stored in the cloud includes:

[0031] In response to the cloud receiving the target serial number of the calibration box, obtaining a legitimate serial number stored in the cloud;

[0032] If the legal serial number includes the target serial number, it is determined that the calibration box is a legal calibration box stored in the cloud.

[0033] Optionally, the remote calibration or measurement of the ECU of the vehicle based on the cloud, the user terminal and the calibration box includes:

[0034] Sending measurement data or calibration data used for measuring or calibrating the ECU of the vehicle in the cloud to the user end;

[0035] In the user terminal, the measurement data or calibration data is encapsulated and encrypted according to a lightweight data protocol to obtain target encrypted data;

[0036] sending the target encrypted data to the calibration box via the Bluetooth connection;

[0037] obtaining measurement data or calibration data in the calibration box based on the target encrypted data;

[0038] The measurement data or calibration data is packaged according to a preset CAN type package protocol data and then sent to the ECU of the vehicle.

[0039] A remote communication device, comprising:

[0040] A service connection establishment module, used to establish a service connection between the user end and the cloud for vehicle ECU measurement and calibration;

[0041] A Bluetooth connection establishment module is used to establish a Bluetooth connection between the user terminal and the calibration box; the calibration box is connected to the vehicle terminal to perform remote calibration on the vehicle ECU;

[0042] A two-way authentication module, used for performing two-way authentication between the calibration box and the user terminal according to the Bluetooth connection;

[0043] A cloud box communication module, used for communicating between the cloud and the calibration box according to the service connection and the Bluetooth connection when the two-way authentication is successful;

[0044] The calibration or measurement module is used to remotely calibrate or measure the vehicle's ECU based on the cloud, the user terminal and the calibration box if it is determined that the calibration box is a legal calibration box stored in the cloud during the communication between the cloud and the calibration box.

[0045] An electronic device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the above-mentioned remote communication method when executed by the processor.

[0046] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the remote communication method as described above is implemented.

[0047] The embodiments of the present invention have the following advantages:

[0048] In the implementation of the present invention, a service connection is established between the user end and the cloud for measuring and calibrating the vehicle ECU; a Bluetooth connection is established between the user end and the calibration box; the calibration box is connected to the vehicle end to remotely calibrate the vehicle ECU; two-way authentication is performed between the calibration box and the user end according to the Bluetooth connection; when the two-way authentication is successful, communication is performed between the cloud and the calibration box according to the service connection and the Bluetooth connection; during the communication process between the cloud and the calibration box, if the calibration box is determined to be a legal calibration box stored in the cloud, the vehicle's ECU is remotely calibrated or measured based on the cloud, the user end and the calibration box, thereby using the forwarding node of BLE to achieve low power consumption on the calibration box end. The transmission bandwidth requirement is low, and the economic cost of the equipment can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0050] Figure 1a It is a schematic diagram of a calibration technology circuit in the prior art;

[0051] Figure 1bIt is another schematic diagram of the calibration technology circuit in the prior art;

[0052] Figure 1c It is a schematic diagram of a calibration technology circuit provided by an embodiment of the present invention;

[0053] Figure 2a is a flowchart of a remote communication method provided by an embodiment of the present invention;

[0054] Figure 2b It is a structural schematic diagram of a calibration box provided by an embodiment of the present invention;

[0055] Figure 2c It is a schematic diagram of the transmission process of control instructions and business instructions of a calibration box provided by an embodiment of the present invention;

[0056] Figure 2d It is a schematic diagram of a lightweight instruction protocol definition provided by an embodiment of the present invention;

[0057] Figure 2e It is a schematic diagram of a lightweight data protocol definition provided by an embodiment of the present invention;

[0058] Figure 3a is a flowchart of another remote communication method provided by an embodiment of the present invention;

[0059] Figure 3b It is a schematic diagram of a 48-bit MAC generating KEY provided by an embodiment of the present invention;

[0060] Figure 4 is a schematic diagram of a data interaction process provided by an embodiment of the present invention;

[0061] Figure 5 It is a schematic diagram of the structure of a remote communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] With the increasing number of automotive electronic control units (ECUs) in the automotive field, in order to achieve the best performance of all vehicle components, meet the growing requirements of customers and comply with relevant national standards, OEMs need to spend a lot of manpower and material resources to measure and calibrate vehicle ECUs during R&D, testing and even after-sales stages.

[0064] The mainstream calibration method is to use the XCP (universal measurement and calibration protocol) protocol to achieve ECU measurement and calibration through wired means. Calibration engineers are required to carry equipment and connect to the ECU one-to-one on the actual vehicle through the CAN / Ethernet interface to perform flashing and parameter measurement / calibration. This traditional calibration method has many disadvantages, such as high investment cost (engineers need to flash in the car for a long time, and the flashing equipment is difficult to support multiple engineers to use at the same time. The traditional calibration method will consume a lot of manpower and material resources) and low execution efficiency (if calibration problems occur, engineers may not be able to arrive at the site in time to obtain key data; some engineers may not be able to adapt to the high temperature, high cold, and high altitude environment, which affects the work). Therefore, it is imperative to optimize the ECU calibration method. Reference Figure 1a The figure shows a schematic diagram of a calibration technology circuit in the prior art. The vehicle ECU is connected to the calibration box via Ethernet or CAN bus, and the calibration box is connected to the PC (cloud server) via Ethernet or USB.

[0065] To solve the above problems, a remote calibration system in the existing technology is introduced to remotely calibrate the ECU. The calibration box is connected to the cloud server and PC through wireless communication technology to remotely flash the vehicle ECU and observe parameters. Remote calibration frees calibration engineers from the constraints of time and space, allowing them to adjust and optimize calibration parameters for multiple vehicles at any time and anywhere, thereby achieving the goal of reducing costs and increasing efficiency. Figure 1b As shown, the ECUs of multiple cars can be connected to the calibration box via Ethernet or CAN bus at the same time, and the calibration box can then achieve remote wireless connection with the PC (cloud server) through 4G / 5G / WIFI technology.

[0066] In the existing remote calibration technology solutions, the deployment cost of the calibration box using 4G / 5G is slightly higher (such as monthly mobile bandwidth fees, etc.), and the high-frequency band radio frequency communication has high power consumption. The use of WiFi to ensure the coverage of the wall-penetrating signal range and high-frequency transmission also has the problem of high power consumption, resulting in excessive power consumption of the calibration box for vehicle-following measurement and calibration, affecting the effect of long-term measurement and calibration. In addition, the use of WiFi high-bandwidth transmission for calibration of the XCP (Universal Calibration Protocol) protocol is also a great waste of resources.

[0067] In an embodiment of the present invention, the wireless communication part of the calibration box can be connected to the user end (such as a mobile phone terminal) by introducing Bluetooth low energy (BLE), and the remote cloud (calibration server) communication part uses the mobile phone 4G / 5G communication to connect to the cloud and communicate data transmission, thereby not only saving the deployment cost of the terminal box, but also reducing the power consumption of the calibration box. The BLE transmission rate of 2Mbps transmission bandwidth can fully meet the measurement and calibration of ECU based on XCP, and the economic cost is lower from the perspective of equipment hardware. Whether it is a road test scenario or a laboratory scenario, the driver or tester of each vehicle only needs to connect the mobile phone to the terminal box via Bluetooth, so that the calibration engineer can remotely measure and calibrate the ECU.

[0068] Reference Figure 1c , showing a connection diagram of remote calibration in an embodiment of the present invention; the ECUs of multiple cars can be connected to the calibration box via Ethernet or CAN bus at the same time, the calibration box and the mobile phone (i.e., the user end) are connected via Bluetooth (BLE), and then the mobile phone is connected to the PC via 4G / 5G, and the calibration engineer can perform remote calibration on the PC.

[0069] Reference Figure 2a , shows a flowchart of a remote communication method provided by an embodiment of the present invention, which may specifically include the following steps:

[0070] Step 201, establishing a service connection between a user terminal and a cloud for measuring and calibrating a vehicle ECU;

[0071] The remote communication method in the embodiment of the present invention involves a user terminal, a cloud, a calibration box, and a vehicle ECU, wherein the cloud is a remote service terminal, and the user terminal, the calibration box, and the vehicle ECU constitute a real vehicle terminal. The calibration engineer can measure or calibrate the vehicle ECU on the real vehicle terminal on the cloud.

[0072] The user terminal in the embodiment of the present invention is a terminal that can support Bluetooth connection and 4G / 5G communication, such as a mobile phone, a tablet, etc. The cloud in the embodiment of the present invention can store measurement data or calibration data for measuring or calibrating the vehicle ECU.

[0073] Before formally calibrating or measuring the ECU, it is necessary to build a remote connection link between the user end, the cloud, the calibration box, and the vehicle's ECU. Among them, a service connection can be established between the user end and the cloud based on the 4G / 5G communication network. After the service connection is established, data can be transmitted between the user end and the cloud. That is, the user end can transmit data to the cloud through the 4G / 5G communication network, and the cloud can also send data to the user end through the 4G / 5G communication network.

[0074] Step 202, establishing a Bluetooth connection between the user terminal and the calibration box; the calibration box is connected to the vehicle terminal to remotely calibrate the vehicle ECU;

[0075] In the embodiment of the present invention, the user terminal also has a Bluetooth connection function. By improving the calibration box and increasing its Bluetooth connection and communication functions, a Bluetooth connection can be established between the user terminal and the calibration box. Then, data can be transmitted between the user terminal and the calibration box based on the Bluetooth connection. The calibration box in the embodiment of the present invention can also establish a connection with the vehicle-side ECU through Ethernet / CAN to realize data transmission between the calibration box and the vehicle ECU.

[0076] It should be noted that, in the embodiment of the present invention, ECU measurement or calibration can be performed on multiple vehicles at the same time, thereby improving the speed of measurement and calibration.

[0077] After completing the service connection in step 201 and the Bluetooth connection in step 202, the embodiment of the present invention forms a data link of: vehicle ECU-calibration box-user end-cloud. In this link, low-power Bluetooth is introduced in the wireless communication part of the calibration box, so that it can be connected to the calibration box based on the user's Bluetooth connection function. Compared with directly using 4G / 5G / WIFI, it can save deployment costs, and at the same time, the power consumption of the box is low, and the transmission bandwidth meets the measurement and calibration of the ECU based on XCP, and the economic cost is lower from the perspective of device hardware.

[0078] In an embodiment of the present invention, before performing the service connection in step 201 and the Bluetooth connection in step 202, one or more of the following preparatory tasks need to be performed, including:

[0079] (1) The vehicle's ECU and calibration box are connected via CAN / Ethernet and can be powered on normally. The calibration box can also make BLE periodic announcements.

[0080] (2) The user end has installed an SDK that supports the lightweight communication command protocol (i.e., the lightweight command protocol) and can access the Internet; the lightweight command protocol can be used to encapsulate the passing data according to the lightweight command protocol at the user end during the data transmission process.

[0081] (3) The calibration engineer prepares to remotely measure and calibrate one or more automotive ECUs in a road test or experimental scenario.

[0082] In one embodiment of the present invention, the process of establishing a Bluetooth connection between the user terminal and the calibration box is as follows: during the periodic BLE announcement process of the calibration box, the user terminal can obtain the Bluetooth name of the calibration box in the periodic BLE announcement, and then control the user terminal to initiate a Bluetooth connection to the calibration box based on the Bluetooth name. For example, when the Bluetooth function is turned on by the user terminal, the Bluetooth names of nearby connectable devices can be displayed, the Bluetooth name of the calibration box can be found from the Bluetooth names of the connectable devices, and a Bluetooth connection request can be initiated to the calibration box through touch operations (such as click operations, long press operations).

[0083] During the Bluetooth connection process, in order to ensure the security of the Bluetooth connection, a PIN (Personal Identification Number) code can be pre-set for each device for Bluetooth connection. After obtaining the PIN code used by the calibration box for Bluetooth connection, a Bluetooth connection can be established between the user end and the calibration box based on the preset PIN code.

[0084] Reference Figure 2b, is a structural diagram of a calibration box in an embodiment of the present invention; the calibration box is designed from a hardware perspective to divide the device into a main control chip and a BLE Bluetooth chip, and serial communication is adopted between the chips. The main control chip may include a software level and a hardware level. The hardware level may include 3 CAN channels (i.e., CAN1, CAN2, CAN3) and UART (Universal Asynchronous Receiver / Transmitter), wherein, in order to more effectively use the BLE communication 2Mbps bandwidth transmission quantity and combine the wireless communication performance loss, the downlink service interface is composed of 3 CAN channels (single channel 500kbps, 3 channels, i.e., 1.5Mbps). UART is used for asynchronous serial communication between devices. In terms of hardware, the BLE chip can be replaced arbitrarily, such as TI BLE chip, Lexin BLE chip, and NRF BLE chip, which can be quickly iterated. The software level of the main control chip is mainly composed of 3 software modules: uplink communication module, central control module, and downlink communication module. The three modules simplify the entire architecture module and utilize the communication rate to the best state. Among them, the uplink communication module is mainly responsible for receiving and sending Bluetooth lightweight control instructions and business data transmission protocols, and completes parsing and encapsulation, and sends valid business information to the central control module for classification and processing. The central control module is mainly responsible for classifying the business and sending and configuring it to the downlink communication module. The downlink communication module is mainly responsible for the CAN port operational control and the sending and receiving of the XCP protocol.

[0085] The calibration box software business processing provided in the embodiment of the present invention is simplified and modularized, thereby reducing the time loss in the protocol transmission process; its wireless communication chip is independent and can quickly replace different BLE chip solutions; at the same time, the uplink and downlink physical channel bandwidths are reasonably allocated, which can maximize the utilization of resources and avoid waste of resources.

[0086] Reference Figure 2c , which is a schematic diagram of the transmission process of control instructions and business instructions of a calibration box in an embodiment of the present invention, wherein there are three data types in the remote calibration process: control instructions, data streams, and XCP CAN.

[0087] Control instructions:

[0088] Data flow: Control instructions ensure that after the calibration box CAN port is successfully configured with XCP service, measurement and calibration protocol data is sent through data flow, that is, to the cloud

[0089] XCP CAN: XCP data transmission can be performed between the calibration box and the ECU based on the CAN channel.

[0090] Reference Figure 2d Schematic diagram of a lightweight instruction protocol definition in an embodiment of the present invention; it includes a header, an algorithm encryption part, and a tail, wherein the header consists of a 2-byte frame start symbol (Start of Frame, SOF), a 1-byte length (the length from Control to Payload, excluding CRC), and a 1-byte frame sequence number (Frame SequenceNumber, FSN, frame sequence number is the number of data frames when subpacketizing), 1-byte message ID (MsgId, indicating the message ID sent from the App to the box and being executed, generated by the App, and the box needs to return the MsgId when replying) and Control, where Control can be composed of Reserved (from low to high (starting bit 1), the 4th bit), Direction Indicator Bit (from low to high (starting bit 1), the 3rd bit), Encryption Indicator Bit ((from low to high (starting bit 1), the 2nd bit)), and Subpacketization Indicator Bit ((from low to high (starting bit 1), the 4th bit)); Body (AES-128CBC encryption) part consists of 2 bytes of CommandID (big endian, command ID), 1 byte of Type type, 1 byte of Length length, Value value, and the tail is 2 bytes of CheckSum (big endian, checksum from the starting position to the payload data).

[0091] Reference Figure 2e The above is a schematic diagram of a lightweight data protocol definition in an embodiment of the present invention, including a 2-byte frame start character (SOF), a 2-byte frame sequence number (FSN), a 1-byte Type type, a 1-byte Length length, a Value value, and a 2-byte CheckSum.

[0092] Step 203, performing two-way authentication between the calibration box and the user terminal according to the Bluetooth connection;

[0093] After the calibration box and the user end establish a Bluetooth connection, the calibration box and the user end can communicate with each other, so that two-way authentication can be performed between the calibration box and the user end. Two-way authentication can ensure the secure transmission of data between the calibration box and the user end. Two-way authentication specifically includes security authentication of the user end in the calibration box and security authentication of the calibration box in the user end.

[0094] Step 204, when the two-way authentication is successful, communication is performed between the cloud and the calibration box based on the service connection and the Bluetooth connection;

[0095] When the calibration box and the user end have passed two-way authentication, data transmission between the calibration box and the user end is secure. The prior service connection can establish data transmission between the cloud and the user end, and the Bluetooth connection establishes data transmission between the user end and the calibration box. Therefore, by combining the service connection and the Bluetooth connection, the user end can be used as a transit node to communicate between the cloud and the calibration box.

[0096] The communication between the cloud and the calibration box includes: the cloud's security authentication process for the calibration box and the interface status synchronization process between the calibration box and the cloud.

[0097] In one embodiment of the present invention, step 204 may specifically include: obtaining transmission data to be transmitted to the cloud in the calibration box; the transmission data may include but is not limited to the target serial number of the calibration box and the physical connection status of the CAN / Ethernet service channel of the calibration box; and then converting the data to be transmitted into a target lightweight instruction according to a preset lightweight instruction protocol; and then encrypting the target lightweight instruction protocol to obtain an encrypted instruction; and then transmitting the encrypted instruction to the cloud according to the service connection and the Bluetooth connection.

[0098] Among them, the encryption processing can adopt a preset encryption algorithm, such as the AES128-CBC encryption algorithm. The key value in the AES128-CBC encryption algorithm can be generated based on the target serial number of the calibration box, and the initialization vector can be determined based on the random number between the calibration box and the user end.

[0099] For example, the calibration box and the user end use the MAC address of the calibration box as the first element to calculate the authentication KEY; the user end and the calibration box generate 4-byte random codes respectively, and exchange the random codes through the lightweight instruction protocol. After receiving the random codes, both ends use them as the second and third elements to calculate the authentication KEY (16 bytes); both ends use the generated 8-byte random code, the 8-byte random number of the calibration box to the even bits, and the 8-byte random number of the user App end to the odd bits, and combine them to generate a 16-bit initialization vector. In the calibration box, the 16-byte KEY and the 16-bit initialization vector can be used to encrypt the transmitted data according to the AES128-CBC encryption algorithm.

[0100] Step 205 , during the communication between the cloud and the calibration box, if it is determined that the calibration box is a legitimate calibration box stored in the cloud, the ECU of the vehicle is remotely calibrated or measured based on the cloud, the user end and the calibration box.

[0101] During the communication between the cloud and the calibration box, in order to prevent illegal calibration boxes from accessing the cloud, the calibration box can be judged on the cloud as a legal calibration box stored in the cloud to further ensure the security of data transmission.

[0102] In one embodiment of the present invention, in response to receiving the target serial number of the calibration box in the cloud, a legal serial number stored in the cloud can be obtained; if the legal serial number includes the target serial number, the calibration box is determined to be a legal calibration box stored in the cloud.

[0103] In practical applications, the calibration box can actively report the unique identifier serial number and the physical connection status of the box CAN / Ethernet service channel to the cloud to ensure that the cloud can uniformly manage and control multiple calibration boxes; a detection timer can be turned on in the calibration box. When the timer detects that the service physical channel has a status, the calibration box actively reports the port status of the current calibration box to the cloud, thereby ensuring that the cloud monitors the service port status in real time; after the cloud receives the calibration box SN (Serial Number, product serial number), it can match it in the cloud database to determine whether the cloud manages the SN;

[0104] If the target serial number of the calibration box is illegal, the calibration box is reported abnormally, and a notification is sent through MQTT (Message Queuing Telemetry Transport) to inform the user end that the serial number of the calibration box is unknown.

[0105] If the target serial number of the calibration box is legal, you can first set the calibration box to the online state and check whether the calibration box is online for the first time.

[0106] If the calibration box is online for the first time, a notification can be sent through MQTT to inform the user to modify the BLE PIN code of the box to reduce the frequent connection of the calibration box by other illegal devices. After the user receives the MQTT notification message, it uses the BLE transmission channel to transmit the data to the calibration box using a lightweight command encryption method; after receiving the PIN, the calibration box actively modifies the BLE communication pairing code and responds to the user with a lightweight command to inform the user of the successful modification status. The user notifies MQTT of the successful feedback status, and the cloud marks the calibration box as online and can enter the next stage

[0107] If the calibration box is not online for the first time, it means that the calibration box is legal and safe, marked as online, and can enter the next stage.

[0108] Among them, MQTT is a lightweight publish / subscribe messaging protocol that works on the TCP / IP protocol family. It is a publish / subscribe messaging protocol designed for low-bandwidth, high-latency or unstable networks. It is a publish / subscribe messaging protocol designed for remote devices with low hardware performance and poor network conditions. The MQTT protocol is lightweight, simple, open and easy to implement, so it has a wide range of applications, including communication between devices in the field of the Internet of Things (IoT). The working principle of the MQTT protocol is based on the publish / subscribe model, allowing devices to communicate through an intermediate proxy server, thereby realizing data exchange between devices.

[0109] In one embodiment of the present invention, remote calibration or measurement of the vehicle's ECU based on the cloud, the user end, and the calibration box may include the following sub-steps:

[0110] Sub-step 11, sending the measurement data or calibration data used for measuring or calibrating the ECU of the vehicle in the cloud to the user end;

[0111] Sub-step 12, encapsulating and encrypting the measurement data or calibration data in the user terminal according to the lightweight data protocol to obtain target encrypted data;

[0112] Among them, lightweight data protocols such as Figure 2e The encryption process may refer to the encryption process in step 204 .

[0113] Sub-step 13, sending the target encrypted data to the calibration box via Bluetooth connection;

[0114] Sub-step 14, obtaining measurement data or calibration data based on the target encrypted data in the calibration box;

[0115] Sub-step 15, encapsulating the measurement data or calibration data according to the preset CAN type encapsulation protocol data, and sending it to the ECU of the vehicle.

[0116] In one embodiment of the present invention, before sub-step 11, the calibration engineer can actively detect the status of the calibration box service port in the cloud. If the port is connected normally, the calibration and measurement of the automobile ECU can be started. When calibrating and measuring the automobile ECU, it is necessary to first configure the instructions and then execute the data flow configuration. The instruction configuration stage is as follows: after the corresponding A2L file is imported into the cloud according to different vehicle ECUs, when the XCP on CAN channel (i.e., the channel corresponding to the vehicle ECU) is used for measurement and calibration, a notification can be sent to the user end through MQTT. The notification may include but is not limited to the Master / slave CAN ID, service port number, and startup flag used to measure and calibrate the ECU. Then, a lightweight instruction protocol and encryption method can be used on the user end to assemble the service control instructions, and the assembled service control instructions can be sent to the calibration box through the BLE service.

[0117] After receiving the business control instruction, the calibration box starts the port XCP protocol sending and receiving function according to the business port number in the business control instruction, records the business rules to the local database, and configures the packet filtering rules based on the Slave CAN-ID. At the same time, it responds to the user end through the lightweight instruction protocol and the configuration success status of the calibration box. The user end can also respond to the cloud through MQTT notification. At this time, the cloud can perform XCP-based measurement and calibration functions, and execute sub-steps 11 to 15 in the data flow stage.

[0118] In one embodiment of the present invention, different processes can be started according to the test or calibration model. For example, when the measurement is in polling mode, the calibration box can wait for the ECU response, decapsulate the CAN message header, and send the valid XCP protocol data to the user end through the lightweight data protocol and encryption using the BLE channel. The user end notifies the cloud through MQTT. This process is repeated continuously, thereby realizing the remote polling mode measurement function.

[0119] When the measurement is in event mode, the box periodically receives the ECU measurement data, decapsulates the CAN message header, and sends the valid XCP protocol data to the user end through the lightweight data protocol and encryption using the BLE channel. The user end notifies the cloud through MQTT. This process is repeated continuously to achieve the remote event mode measurement function.

[0120] The calibration process in the embodiment of the present invention is the same as the mechanism of the measurement polling mode.

[0121] In the implementation of the present invention, a service connection is established between the user end and the cloud for measuring and calibrating the vehicle ECU; a Bluetooth connection is established between the user end and the calibration box; the calibration box is connected to the vehicle end to remotely calibrate the vehicle ECU; two-way authentication is performed between the calibration box and the user end according to the Bluetooth connection; when the two-way authentication is successful, communication is performed between the cloud and the calibration box according to the service connection and the Bluetooth connection; during the communication process between the cloud and the calibration box, if the calibration box is determined to be a legal calibration box stored in the cloud, the vehicle's ECU is remotely calibrated or measured based on the cloud, the user end and the calibration box, thereby using the forwarding node of BLE to achieve low power consumption on the calibration box end. The transmission bandwidth requirement is low, and the economic cost of the equipment can be reduced.

[0122] Reference Figure 3a , shows a flowchart of another remote communication method provided by an embodiment of the present invention, which may specifically include the following steps:

[0123] Step 301, establishing a service connection between a user terminal and a cloud for measuring and calibrating a vehicle ECU;

[0124] Step 302, establishing a Bluetooth connection between the user terminal and the calibration box; the calibration box is connected to the vehicle terminal to remotely calibrate the vehicle ECU;

[0125] Step 303, obtaining the MAC address of the calibration box, and generating an authentication key based on the MAC address;

[0126] In practical applications, the MAC address of the calibration box can be used as the first element of the authentication key, a third random number is generated in the calibration box, and the third random data number is sent to the user end according to the Bluetooth connection, and a fourth random number with the same number of bytes as the third random number is generated on the user end, and the third random number is sent to the calibration box, and then the third random number and the third random number are used as the second element and the third element of the authentication key in the calibration box and the user end, and the first element is combined with the first preset length, and the end is filled with 0 to the second preset length to obtain multiple filling elements, and the multiple filling elements are combined after performing XOR operations with the second element and the third element to obtain the authentication key. Reference Figure 3b FIG. 4 is a schematic diagram of a 48-bit MAC generating KEY in an embodiment of the present invention.

[0127] Step 304, generating a first random number at the user end, and sending the first random number to the calibration box according to the Bluetooth connection;

[0128] Step 305, generating a second random number in the calibration box, and sending the second random number to the user terminal according to the Bluetooth connection;

[0129] Step 306, in the calibration box and the user terminal, combining the first random number and the second random number to generate an initialization vector;

[0130] Step 307: Perform two-way authentication according to the authentication key and the initialization vector.

[0131] After obtaining the authentication key and the initialization vector, a preset encryption algorithm can be used in combination with the authentication key and the initialization vector to perform two-way authentication.

[0132] In one embodiment of the present invention, two-way authentication is performed according to an authentication key and an initialization vector, including: encrypting target plaintext data using an authentication key and an initialization vector according to a preset encryption algorithm in a user terminal and a calibration box, respectively, to obtain first ciphertext data and second ciphertext data; based on a Bluetooth connection, sending the first ciphertext data generated by the user terminal to the calibration box to authenticate the user terminal in the calibration box; based on a Bluetooth connection, sending the second ciphertext data generated by the calibration box to the user terminal to authenticate the calibration box in the user terminal.

[0133] In actual applications, the target plaintext data used for authentication in the user terminal and the calibration box is encrypted, and the encrypted data is sent to each other for authentication. That is, in the calibration box, the first ciphertext data can be decrypted using the authentication key and the initialization vector, and the decrypted data is compared with the pre-stored target plaintext data. If they are consistent, the user terminal authentication is successful; similarly, the second ciphertext data is decrypted using the authentication key and the initialization vector in the user terminal, and the decrypted data is compared with the pre-stored target plaintext data. If they are consistent, the calibration box authentication is successful.

[0134] Step 308, when the two-way authentication is successful, communication is performed between the cloud and the calibration box based on the service connection and the Bluetooth connection;

[0135] Step 309 , during the communication between the cloud and the calibration box, if it is determined that the calibration box is a legitimate calibration box stored in the cloud, the ECU of the vehicle is remotely calibrated or measured based on the cloud, the user end and the calibration box.

[0136] In the implementation of the present invention, a service connection is established between the user end and the cloud for measuring and calibrating the vehicle ECU; a Bluetooth connection is established between the user end and the calibration box; the calibration box is connected to the vehicle end to remotely calibrate the vehicle ECU; two-way authentication is performed between the calibration box and the user end according to the Bluetooth connection; when the two-way authentication is successful, communication is performed between the cloud and the calibration box according to the service connection and the Bluetooth connection; during the communication process between the cloud and the calibration box, if the calibration box is determined to be a legal calibration box stored in the cloud, the vehicle's ECU is remotely calibrated or measured based on the cloud, the user end and the calibration box, thereby using the forwarding node of BLE to achieve low power consumption on the calibration box end. The transmission bandwidth requirement is low, and the economic cost of the equipment can be reduced.

[0137] Reference Figure 4 It is a schematic diagram of a data interaction process in an embodiment of the present invention; data transmission is performed between the cloud, mobile phone, box (i.e., calibration box) and ECU, which can be mainly divided into the process of starting port XCP transmission and reception through XCP control instructions, the transmission process of XCP protocol data stream in the measurement process, and the transmission process of XCP protocol data stream in the calibration process, the process of stopping XCP transmission and reception through XCP control instructions, and abnormal situations in the measurement phase.

[0138] The process of starting port XCP transceiver through XCP control command: after importing the corresponding A2L file parsing according to different ECUs in the cloud, when using the XCP on CAN channel for measurement and calibration, the cloud can notify the Master / slave CAN ID, business port number, and startup flag used to measure and calibrate the ECU to the mobile phone through MQTT. The mobile phone assembles the control command through the BLE lightweight command protocol and encryption method, and sends it to the box through the BLE service. The box returns the feedback message generated based on the lightweight command protocol to the mobile phone (including the response to the XCP protocol startup success code). At the same time, the box can start port XCP transceiver. After receiving the feedback message, the mobile phone will feedback MQTT (including XCP startup success) to the cloud. At this time, the cloud can perform XCP-based measurement and calibration functions, that is, the data flow stage, which can include the transmission process of the XCP protocol data flow of the measurement process and the XCP protocol data flow of the calibration process.

[0139] The transmission process of the XCP protocol data stream in the measurement process: the cloud sends the XCP protocol related measurement data through MQTT, the mobile end encapsulates the test data into the BLE lightweight data protocol and encrypts it and sends it to the box end using the BLE channel. The box end decrypts and parses the XCP measurement data and then encapsulates it based on the CAN type encapsulation protocol data, and generates the CAN header + XCP valid measurement data and sends it to the ECU. After the measurement, the ECU feeds back the measurement data based on the CAN type encapsulation protocol to the box end, and then the box end feeds back the measurement data based on the BLE lightweight data protocol and encryption method after processing it, and the mobile end feeds back the corresponding MQTT to the cloud end.

[0140] The transmission process of the XCP protocol data stream during the calibration process: the cloud sends the XCP protocol related calibration data through MQTT, and the mobile end encapsulates the calibration data into the BLE lightweight data protocol and encrypts it and sends it to the box end using the BLE channel. The box end decrypts and parses the XCP calibration data and then encapsulates it based on the CAN type encapsulation protocol data, and generates the CAN header + XCP valid calibration data and sends it to the ECU. After calibration, the ECU feeds back the calibration data based on the CAN type encapsulation protocol to the box end, and then the box end feeds back the calibration data based on the BLE lightweight data protocol and encryption method after processing, and the mobile end feeds back the corresponding MQTT to the cloud end.

[0141] The process of stopping XCP transmission and reception through XCP control instructions: the cloud notifies the port number used to stop the ECU and the XCP protocol to the mobile phone through MQTT. The mobile phone assembles the control instructions through the BLE lightweight command protocol and encryption method, and sends them to the box through the BLE service. The box returns a feedback message generated based on the lightweight command protocol (including a response to the XCP protocol stop success code). At the same time, the box stops the port XCP protocol transmission and reception. After receiving the feedback message, the mobile phone can feedback MQTT (including the XCP stop success code) to the cloud.

[0142] Abnormal situations in the measurement phase: During the measurement process, if there is an abnormal communication between the mobile phone and the box, when the ECU sends the CAN header + XCP protocol data to the box, the box can start the 1min timeout mechanism and cache it. If the mobile phone and the box continue to communicate abnormally, the box times out and fails to connect, then it will clear the cache and stop the XCP protocol. The box can send a message packet (CAN header + send stop XCP protocol) based on the CAN type encapsulation protocol to the ECU to stop the XCP protocol.

[0143] When the box detects that the mobile phone and the box have resumed communication before the timeout, the cached data can be used to continue reporting the XCP data stream, thereby continuing the measurement service.

[0144] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0145] Reference Figure 5 , shows a schematic diagram of the structure of a remote communication device provided by an embodiment of the present invention, which may specifically include the following modules:

[0146] A service connection establishment module 501 is used to establish a service connection between a user terminal and a cloud for performing vehicle ECU measurement and calibration;

[0147] A Bluetooth connection establishing module 502 is used to establish a Bluetooth connection between the user terminal and the calibration box; the calibration box is connected to the vehicle terminal to perform remote calibration on the vehicle ECU;

[0148] A two-way authentication module 503, used for performing two-way authentication between the calibration box and the user terminal according to the Bluetooth connection;

[0149] A cloud box communication module 504, configured to communicate between the cloud and the calibration box according to the service connection and the Bluetooth connection when the two-way authentication succeeds;

[0150] The calibration or measurement module 505 is used to remotely calibrate or measure the vehicle's ECU based on the cloud, the user terminal and the calibration box during the communication between the cloud and the calibration box, if it is determined that the calibration box is a legal calibration box stored in the cloud.

[0151] In an embodiment of the present invention, the Bluetooth connection establishing module 502 may include the following submodules:

[0152] A Bluetooth name determination submodule, used to obtain the Bluetooth name of the calibration box in the periodic BLE announcement;

[0153] A Bluetooth connection initiating submodule, used to control the user end to initiate a Bluetooth connection to the calibration box based on the Bluetooth name;

[0154] The Bluetooth connection establishment submodule is used to establish a Bluetooth connection between the user terminal and the calibration box based on a preset PIN code.

[0155] In one embodiment of the present invention, the two-way authentication module 503 may include the following submodules:

[0156] An authentication key determination submodule, used to obtain the MAC address of the calibration box and generate an authentication key based on the MAC address;

[0157] A first random number generation submodule, used for generating a first random number at the user terminal, and sending the first random number to the calibration box according to the Bluetooth connection;

[0158] A second random number generation submodule, used to generate a second random number in the calibration box, and send the second random number to the user terminal according to the Bluetooth connection;

[0159] An initialization vector generation submodule, used to combine the first random number and the second random number to generate an initialization vector in the calibration box and the user terminal;

[0160] The two-way authentication submodule is used to perform two-way authentication according to the authentication key and the initialization vector.

[0161] In one embodiment of the present invention, the two-way authentication submodule may include the following units:

[0162] An encryption unit, used to encrypt the target plaintext data with the authentication key and the initialization vector according to a preset encryption algorithm in the user terminal and the calibration box respectively, to obtain first ciphertext data and second ciphertext data;

[0163] A user terminal authentication unit, configured to send the first ciphertext data generated by the user terminal to the calibration box based on the Bluetooth connection, so as to authenticate the user terminal in the calibration box;

[0164] The calibration box authentication unit is used to send the second ciphertext data generated by the calibration box to the user terminal based on the Bluetooth connection, so as to authenticate the calibration box in the user terminal.

[0165] In one embodiment of the present invention, the cloud box communication module 504 may include the following submodules:

[0166] A transmission data acquisition submodule, used to acquire the transmission data to be transmitted from the calibration box to the cloud;

[0167] A target lightweight instruction generation submodule, used for converting the data to be transmitted into a target lightweight instruction according to a preset lightweight instruction protocol;

[0168] An encrypted instruction generation submodule, used for encrypting the target lightweight instruction to obtain an encrypted instruction;

[0169] An encrypted instruction transmission module is used to transmit the encrypted instruction to the cloud according to the service connection and the Bluetooth connection.

[0170] In one embodiment of the present invention, the transmission data includes the target serial number of the calibration box, and the calibration or measurement module 505 includes the following submodules:

[0171] A legal serial number acquisition submodule, configured to acquire a legal serial number stored in the cloud in response to receiving the target serial number of the calibration box from the cloud;

[0172] The serial number judgment submodule is used to determine that the calibration box is a legal calibration box stored in the cloud if the legal serial number contains the target serial number.

[0173] In one embodiment of the present invention, the calibration or measurement module 505 includes the following submodules:

[0174] A data sending submodule, used for sending measurement data or calibration data used for measuring or calibrating the ECU of the vehicle in the cloud to the user end;

[0175] An encapsulation and encryption submodule, used to encapsulate and encrypt the measurement data or calibration data in the user terminal according to a lightweight data protocol to obtain target encrypted data;

[0176] A target encrypted data forwarding submodule, used for sending the target encrypted data to the calibration box via the Bluetooth connection;

[0177] A calibration box parsing submodule, used to obtain measurement data or calibration data based on the target encrypted data in the calibration box;

[0178] The CAN type encapsulation submodule is used to encapsulate the measurement data or calibration data according to the preset CAN type encapsulation protocol data and send it to the ECU of the vehicle.

[0179] In the implementation of the present invention, a service connection is established between the user end and the cloud for measuring and calibrating the vehicle ECU; a Bluetooth connection is established between the user end and the calibration box; the calibration box is connected to the vehicle end to remotely calibrate the vehicle ECU; two-way authentication is performed between the calibration box and the user end according to the Bluetooth connection; when the two-way authentication is successful, communication is performed between the cloud and the calibration box according to the service connection and the Bluetooth connection; during the communication process between the cloud and the calibration box, if the calibration box is determined to be a legal calibration box stored in the cloud, the vehicle's ECU is remotely calibrated or measured based on the cloud, the user end and the calibration box, thereby using the forwarding node of BLE to achieve low power consumption on the calibration box end. The transmission bandwidth requirement is low, and the economic cost of the equipment can be reduced.

[0180] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and the computer program implements the above remote communication method when executed by the processor.

[0181] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the remote communication method described above is implemented.

[0182] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0183] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0184] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0185] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0186] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0187] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0188] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0189] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0190] The above is a detailed introduction to a remote communication method and device, an electronic device, and a storage medium. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A remote communication method, characterized in that: The method comprises: Establishing a service connection between the user end and the cloud for vehicle ECU measurement and calibration; Establishing a Bluetooth connection between the user terminal and the calibration box; the calibration box is connected to the vehicle terminal to remotely calibrate the vehicle ECU; According to the Bluetooth connection, two-way authentication is performed between the calibration box and the user terminal; When the two-way authentication is successful, communicating between the cloud and the calibration box according to the service connection and the Bluetooth connection; During the communication between the cloud and the calibration box, if it is determined that the calibration box is a legitimate calibration box stored in the cloud, remotely calibrating or measuring the ECU of the vehicle based on the cloud, the user terminal and the calibration box; The remote calibration or measurement of the vehicle's ECU based on the cloud, the user terminal and the calibration box includes: Sending measurement data or calibration data used for measuring or calibrating the ECU of the vehicle in the cloud to the user end; In the user terminal, the measurement data or calibration data is encapsulated and encrypted according to a lightweight data protocol to obtain target encrypted data; sending the target encrypted data to the calibration box via the Bluetooth connection; obtaining measurement data or calibration data in the calibration box based on the target encrypted data; The measurement data or calibration data is packaged according to a preset CAN type package protocol data and then sent to the ECU of the vehicle.

2. The method according to claim 1, characterized in that The step of establishing a Bluetooth connection between the user terminal and the calibration box includes: Obtain the Bluetooth name of the calibration box in the periodic BLE announcement; Control the user terminal to initiate a Bluetooth connection to the calibration box based on the Bluetooth name; A Bluetooth connection is established between the user terminal and the calibration box based on a preset PIN code.

3. The method according to claim 1, characterized in that The step of performing two-way authentication between the calibration box and the user terminal according to the Bluetooth connection includes: Obtaining the MAC address of the calibration box, and generating an authentication key based on the MAC address; Generating a first random number at the user terminal, and sending the first random number to the calibration box according to the Bluetooth connection; generating a second random number in the calibration box, and sending the second random number to the user terminal according to the Bluetooth connection; In the calibration box and the user terminal, combining the first random number and the second random number to generate an initialization vector; Two-way authentication is performed according to the authentication key and the initialization vector.

4. The method according to claim 3, characterized in that The performing two-way authentication according to the authentication key and the initialization vector includes: In the user terminal and the calibration box, the authentication key and the initialization vector are used to encrypt the target plaintext data according to a preset encryption algorithm to obtain first ciphertext data and second ciphertext data; Based on the Bluetooth connection, sending the first ciphertext data generated by the user terminal to the calibration box, so as to authenticate the user terminal in the calibration box; Based on the Bluetooth connection, the second ciphertext data generated by the calibration box is sent to the user terminal, so as to authenticate the calibration box in the user terminal.

5. The method according to claim 1, characterized in that The communicating between the cloud and the calibration box according to the service connection and the Bluetooth connection includes: Acquire transmission data of the calibration box to be transmitted to the cloud; Converting the data to be transmitted into a target lightweight instruction according to a preset lightweight instruction protocol; Encrypting the target lightweight instruction to obtain an encrypted instruction; The encrypted instruction is transmitted to the cloud according to the service connection and the Bluetooth connection.

6. The method according to claim 5, characterized in that The transmission data includes the target serial number of the calibration box, and the step of determining that the calibration box is a legitimate calibration box stored in the cloud includes: In response to the cloud receiving the target serial number of the calibration box, obtaining a legitimate serial number stored in the cloud; If the legal serial number includes the target serial number, it is determined that the calibration box is a legal calibration box stored in the cloud.

7. A remote communication device, characterized in that: The device comprises: A service connection establishment module, used to establish a service connection between the user end and the cloud for vehicle ECU measurement and calibration; A Bluetooth connection establishment module is used to establish a Bluetooth connection between the user terminal and the calibration box; the calibration box is connected to the vehicle terminal to perform remote calibration on the vehicle ECU; A two-way authentication module, used for performing two-way authentication between the calibration box and the user terminal according to the Bluetooth connection; A cloud box communication module, used for communicating between the cloud and the calibration box according to the service connection and the Bluetooth connection when the two-way authentication is successful; A calibration or measurement module, configured to remotely calibrate or measure the vehicle's ECU based on the cloud, the user terminal, and the calibration box if the calibration box is determined to be a legitimate calibration box stored in the cloud during the communication between the cloud and the calibration box; The calibration or measurement module comprises: A data sending submodule, used for sending measurement data or calibration data used for measuring or calibrating the ECU of the vehicle in the cloud to the user end; An encapsulation and encryption submodule, used to encapsulate and encrypt the measurement data or calibration data in the user terminal according to a lightweight data protocol to obtain target encrypted data; A target encrypted data forwarding submodule, used for sending the target encrypted data to the calibration box via the Bluetooth connection; A calibration box parsing submodule, used to obtain measurement data or calibration data based on the target encrypted data in the calibration box; The CAN type encapsulation submodule is used to encapsulate the measurement data or calibration data according to the preset CAN type encapsulation protocol data and send it to the ECU of the vehicle.

8. An electronic device, characterized in that: The invention comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the remote communication method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the remote communication method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • System and method for optimizing new energy vehicle whole vehicle control parameters based on Internet

    CN105446223A

  • Authority setting method and device for vehicle diagnosis data and vehicle-mounted gateway controller

    CN111142500A