Vehicle control method and device
By unpacking and processing of vehicle status control and feedback messages, the reliability of vehicle remote control is improved, and the problem of poor vehicle remote control is solved, and the stability of data bidirectional transmission is ensured.
Patent Information
- Application Number
- CN202410981417.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The reliability of vehicles is poor during remote control, especially the inability to achieve two-way reliable transmission of data, which limits the remote control effect of vehicles in cloud services or Internet of Vehicles.
By obtaining the body status information of the target vehicle, unpacking and processing status control messages and feedback messages, generating multiple control data frames and feedback data frames, realizing remote control and data reliability for vehicles with cloud services or Internet of Vehicles system. transmission.
It improves the reliability of remote control of the vehicle, ensures rapid and stable transmission of data in single-frame bidirectional and single-frame communication channels, and improves control efficiency and reliability.
Smart Images

Figure CN119052272A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a vehicle control method and device. Background Art
[0002] With the rapid development of network information technology and big data technology, in-vehicle multimedia technology has become increasingly important in vehicle control. At the same time, based on in-vehicle multimedia technology, the interaction between vehicles and mobile terminals has become more and more convenient and efficient. Vehicles allow connections to be established between mobile terminals and vehicles through the cloud or the Internet of Vehicles system, so that customers can control some functions of the vehicle through the APP of the mobile terminal. However, this control can only be applied to vehicles with cloud services or Internet of Vehicles systems, and it is impossible to achieve reliable two-way transmission of data, resulting in poor reliability of vehicle remote control. Summary of the invention
[0003] In view of this, the present invention provides a vehicle control method and device to solve the problem of poor reliability when a vehicle is remotely controlled through a terminal in the related art.
[0004] In the first aspect, the present invention provides a vehicle control method, which includes: obtaining the body state information of the target vehicle with established Bluetooth connection, the body state information includes the control state and communication path type of each target control in the target vehicle; sending corresponding state control data to each target control based on the body state information, the state control data includes multiple control data frames, and the control data frame is obtained by unpacking the state control message corresponding to the control state based on the communication path type; receiving the state feedback information reported by the target vehicle based on the state control data to obtain the control result message corresponding to the target control in the target vehicle, the state feedback information includes multiple feedback data frames, and the feedback data frame is obtained by unpacking the state feedback message corresponding to the control state based on the communication path type. Through the above process, the vehicle with cloud service or Internet of Vehicles system can be remotely controlled, and the two-way reliable transmission of data can be realized, which improves the reliability of remote control of the vehicle.
[0005] In some optional implementations, sending corresponding state control data to each target control based on the vehicle body state information includes:
[0006] For any target control, obtain the control state of the target control and the corresponding communication path type;
[0007] Generate corresponding status control message based on the control status;
[0008] Unpacking the state control message based on the communication path type to obtain multiple control data frames;
[0009] Generate status control data based on multiple control data frames and send them to the corresponding target controls.
[0010] In some optional implementations, unpacking the state control message based on the communication path type includes:
[0011] Obtaining the communication volume threshold corresponding to the communication path type;
[0012] Get the message data volume of the status control message;
[0013] Comparing the message data volume with the communication volume threshold to obtain a first comparison result;
[0014] When the first comparison result indicates that the message data volume is greater than the communication volume threshold, the state control message is unpacked to obtain a plurality of control data frames.
[0015] In some optional implementations, generating state control data based on a plurality of control data frames includes:
[0016] Obtaining message integrity check data of the status control message, as well as control split identifier and control frame integrity check data corresponding to each control data frame;
[0017] Based on the control splitting identifier, the message integrity check data and the control frame integrity check data, the state control data is obtained.
[0018] In some optional implementations, generating status feedback information includes:
[0019] After splicing and verifying the control splitting identifier, message integrity check data and control frame integrity check data, the control instruction of the control is obtained;
[0020] Based on the control instruction, the control state of the corresponding target control in the target vehicle is controlled and a control result message is obtained;
[0021] Based on the control result message, state feedback information corresponding to the state control data is generated.
[0022] In some optional implementations, generating state feedback information corresponding to the state control data based on the control result message includes:
[0023] Get the result data volume of the control result message;
[0024] Compare the result data volume with the communication volume threshold to obtain a second comparison result;
[0025] When the second comparison result indicates that the result data volume is greater than the communication volume threshold, the control result message is unpacked to obtain multiple feedback data frames;
[0026] Based on the multiple feedback data frames, state feedback information corresponding to the state control data is generated.
[0027] In some optional implementations, generating state feedback information corresponding to the state control data based on multiple feedback data frames includes:
[0028] Obtain result integrity check data of the control result message, as well as feedback splitting identifiers and feedback frame integrity check data corresponding to each feedback data frame;
[0029] Based on the feedback splitting identifier, the feedback frame integrity check data and the feedback frame integrity check data, the status feedback information is obtained.
[0030] In some optional implementations, before acquiring the vehicle body status information of the target vehicle with which the Bluetooth connection has been established, the method further includes:
[0031] Get device information of the pairable device;
[0032] Based on the device information, determine the target vehicle from the pairable devices, and send a connection request to the target vehicle, the connection request including a key encryption value, the key encryption value being calculated based on a key obtained from a vehicle identification code of the target vehicle;
[0033] Receiving confirmation information fed back by the target vehicle in response to the connection request, the confirmation information is used to indicate that the key encryption value is the same as the original key value stored in the target vehicle;
[0034] A Bluetooth connection is established with the target vehicle based on the confirmation information.
[0035] In some optional implementations, obtaining the vehicle body status information of the target vehicle to which the Bluetooth connection has been established includes:
[0036] Sending a vehicle body status acquisition request to a target vehicle with which a Bluetooth connection has been established, so that the target vehicle acquires the control status and communication path type of each target control in the vehicle body;
[0037] Receive body state information fed back by the target vehicle based on the control state of each target control and the communication path type.
[0038] In the second aspect, the present invention provides a vehicle control device, which mainly includes: an information acquisition module, a data sending module, and an information feedback module; wherein the information acquisition module is used to obtain the body state information of the target vehicle that has established a Bluetooth connection; the body state information includes the control state and communication path type of each target control in the target vehicle; the data sending module is used to send corresponding state control data to each target control based on the body state information, the state control data includes a plurality of control data frames, and the control data frame is obtained by unpacking the state control message corresponding to the control state based on the communication path type; the information feedback module is used to receive the state feedback information reported by the target vehicle based on the state control data to obtain the control result message corresponding to the target control in the target vehicle, the state feedback information includes a plurality of feedback data frames, and the feedback data frame is obtained by unpacking the state feedback message corresponding to the control state based on the communication path type. Through the above modules, a vehicle with a cloud service or a vehicle networking system can be remotely controlled, and bidirectional reliable transmission of data can be realized, thereby improving the reliability of remote control of the vehicle.
[0039] In a third aspect, the present invention provides a vehicle, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the vehicle control method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0040] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the vehicle control method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 is a schematic diagram of an application environment of an embodiment of the present invention;
[0043] Figure 2 is a flow chart of a vehicle control method according to an embodiment of the present invention;
[0044] Figure 3 is a data flow diagram of a vehicle control method according to an embodiment of the present invention;
[0045] Figure 4is a structural block diagram of a vehicle control device according to an embodiment of the present invention;
[0046] Figure 5 Schematic diagram of the hardware structure of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0048] The terms "first" and "second" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. "Multiple" in the present invention may mean at least two, for example, two, three or more, which is not limited in the embodiments of the present invention.
[0049] See also Figure 1 , Figure 1 3 is a schematic diagram of an application environment provided by an embodiment of the present invention, which includes a display 101, a processor 102 and a memory 103 that may be included in a mobile terminal 100. The mobile terminal 100 can be connected to a vehicle terminal 200 for communication via a network 300. The vehicle terminal 200 can be used to provide services (such as control services, etc.) for a computing program installed on a client. A database 201 can be set on the vehicle terminal 200 or independently of the vehicle terminal 200 to provide data storage services for the vehicle terminal 200. In addition, a processing engine 202 is set in the vehicle terminal 200, and the processing engine 202 can be used to execute the steps executed by the vehicle terminal 200.
[0050] Optionally, the mobile terminal 100 may be, but is not limited to, a terminal that can calculate data, such as a mobile terminal (e.g., a tablet computer), a laptop computer, a PC (Personal Computer), etc. The above network may include, but is not limited to, a wireless network or a wired network. Among them, the wireless network includes: Bluetooth, WIFI (Wireless Fidelity) and other networks that implement wireless communication. The above wired network may include, but is not limited to: a wide area network, a metropolitan area network, and a backup management vehicle terminal cluster. The above vehicle terminal 200 may include, but is not limited to, any hardware device that can perform calculations.
[0051] In addition, in this embodiment, the above vehicle control method can also be applied to an independent processing device with a relatively powerful processing capability, but is not limited to it, without the need for data interaction. For example, the processing device can be, but is not limited to, a terminal device with a relatively powerful processing capability, that is, each operation in the above vehicle control method can be integrated into an independent processing device. The above is only an example, and this embodiment does not make any limitation to this.
[0052] Optionally, in this embodiment, the above vehicle control method can be executed by the vehicle terminal 200, or by the mobile terminal 100, or by both the vehicle terminal 200 and the mobile terminal 100. The vehicle control method of the embodiment of the present invention executed by the mobile terminal 100 can also be executed by a client installed thereon.
[0053] According to an embodiment of the present invention, a vehicle control method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0054] In this embodiment, a vehicle control method is provided, which can be used in the above-mentioned mobile terminal. Figure 2 is a flow chart of a vehicle control method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0055] Step S201, obtaining the vehicle body status information of the target vehicle to which the Bluetooth connection has been established.
[0056] The vehicle body status information includes the control status and communication path type of each target control in the target vehicle.
[0057] In some optional embodiments, when acquiring the body status information of a target vehicle with which a Bluetooth connection has been established, a body status acquisition request can be sent to the target vehicle with which a Bluetooth connection has been established, so that the target vehicle acquires the control status and communication path type of each target control in the body; and then the body status information fed back by the target vehicle based on the control status and communication path type of each target control is received.
[0058] Specifically, a Bluetooth connection is first established between the mobile terminal and the target vehicle, and then a vehicle body status acquisition request is sent to the target vehicle. When the target vehicle receives the vehicle body status acquisition request sent by the mobile terminal, the target vehicle acquires the control status and communication path type of the target control among the multiple powered-on controls (such as multiple powered-on non-power domain components: including but not limited to the entertainment domain host, lights, door and window controllers, independent amplifiers and other components); then, the vehicle body status information is generated based on the acquired control status and communication path type of each target control, and the vehicle body status information is fed back to the mobile terminal. Among them, the types of communication paths include but are not limited to LIN type communication paths, CAN type communication paths, Flexray type communication paths, and Ethernet type communication paths.
[0059] The vehicle control method provided in this embodiment obtains the control state of the target control to inform the mobile terminal of the target control that can currently perform state control in the target vehicle and the current state of the target control, thereby avoiding invalid calls to the target control by the mobile terminal. At the same time, by obtaining the communication path type of the target control, the state control message used to control the target control can be split into multiple control data frames, thereby realizing the single-frame bidirectional fast and stable transmission of big data on the Bluetooth communication channel, thereby improving the control efficiency and reliability of the target control.
[0060] In some optional embodiments, before obtaining the body status information of the target vehicle with which a Bluetooth connection has been established, the device information of the pairable device may be obtained first; based on the device information, the target vehicle is determined from the pairable devices, and a connection request is sent to the target vehicle, the connection request including a key encryption value, the key encryption value being calculated based on the key obtained from the vehicle identification code of the target vehicle; receiving confirmation information fed back by the target vehicle in response to the connection request, the confirmation information being used to characterize that the key encryption value is the same as the original key value stored in the target vehicle; and establishing a Bluetooth connection with the target vehicle based on the confirmation information.
[0061] Specifically, the mobile terminal obtains the device information of the pairable device through the terminal Bluetooth module, selects the target vehicle that needs to be paired from the pairable devices, and sends a pairing request to the target vehicle. When the target vehicle receives the pairing request sent by the mobile terminal through the terminal Bluetooth module, it sends its own vehicle identification code to the mobile terminal through the target vehicle Bluetooth module. When the mobile terminal receives the vehicle identification code sent by the target vehicle, it obtains the key corresponding to the vehicle identification code through a third party, and calculates the key encryption value of the key through the agreed encryption algorithm, and then generates a connection request based on the key encryption value, and sends the connection request to the target vehicle; when the target vehicle receives the connection request sent by the mobile terminal, it obtains the key encryption value in the connection request, and then compares the key encryption value with the original key value stored by itself. When the key encryption value is the same as the original key value, it indicates that the mobile terminal is a legally registered terminal device. At this time, a confirmation message for the connection request is generated, and the confirmation message is fed back to the mobile terminal, so that the mobile terminal establishes a Bluetooth connection with the target vehicle based on the confirmation message.
[0062] In some optional implementations, after the mobile terminal establishes a Bluetooth connection with the target vehicle, a heartbeat signal may also be sent to the target vehicle to verify the normal initialization of the link and ensure the identification and processing of abnormal scenarios during function implementation.
[0063] Step S202: sending corresponding status control data to each target control based on the vehicle body status information.
[0064] The state control data includes a plurality of control data frames, and the control data frames are obtained by unpacking the state control message corresponding to the control state based on the communication path type.
[0065] In some optional embodiments, when sending corresponding status control data to each target control based on the vehicle body status information, for any target control, the control status of the target control and the corresponding communication path type are obtained; the corresponding status control message is generated based on the control status; the status control message is unpacked based on the communication path type to obtain multiple control data frames; the status control data is generated based on the multiple control data frames, and sent to the corresponding target control.
[0066] In some optional embodiments, the status control message is unpacked based on the communication path type of each target control to obtain multiple control data frames. The communication volume threshold corresponding to the communication path type is first obtained; then the message data volume of the status control message is obtained; then the message data volume is compared with the communication volume threshold to obtain a first comparison result; when the first comparison result indicates that the message data volume is greater than the communication volume threshold, the status control message is unpacked to obtain multiple control data frames.
[0067] Specifically, when the vehicle body status information sent by the target vehicle is received, the control status and communication path type of each target control are first obtained; when the control status of the target control indicates that the target control is in a powered-on and controllable state (such as no fault occurs), a corresponding status control message is generated based on the control status control instruction to control the current state of the target control (such as music playing, light show, door and window opening and closing, etc.). At the same time, when the status control message is sent down, in order to realize the single-frame bidirectional fast and stable transmission of big data on the Bluetooth communication channel, the status control message can be unpacked based on the communication path type, such as unpacking the status control message exceeding 244 bytes to form several control data frames with frames less than 244 bytes, or performing differentiated unpacking according to the communication path type of the target control on the target vehicle (LIN type communication path, CAN type communication path, Flexray type communication path, and Ethernet type communication path), such as splitting the status control message of the LIN type communication path into 8-byte control data frames, splitting the status control message of the CAN type communication path into 64-byte control data frames, and splitting the status control message of the Flexray payload type communication path into 254-byte control data frames; finally, the status control data is generated based on multiple control data frames and sent down to the corresponding target control.
[0068] In some optional implementations, when the state control data is generated based on multiple control data frames, the message integrity check data of the state control message, as well as the control split identifier and control frame integrity check data corresponding to each control data frame can be obtained; based on the control split identifier, the message integrity check data and the control frame integrity check data, the state control data is obtained. Among them, the control frame integrity check data can be cyclic redundancy check data.
[0069] Specifically, first obtain the message digest of the state control message, and use the message digest as the integrity verification data of the state control message to verify the integrity of the state message; the control split identifier corresponding to the control data frame is used to identify the position of the control data frame in the state control message; the control frame integrity verification data can be obtained by performing a hash operation on the content corresponding to the control data frame, and is used to verify the integrity of the control data frame. Then, each control split identifier is correspondingly spliced with the corresponding message integrity verification data and control frame integrity verification data to obtain multiple control data frames, and the multiple control data frames are used as state control data.
[0070] Among them, the message digest can be obtained by iterating the state control message and the random salt value by a key derivation function for a target number of iterations. The random salt value can be generated by a random number, and can also be generated by a random number and a universal unique identification code of the target vehicle. In other embodiments, the information value of the state control message can be obtained first, and then the message integrity check data of the state control message is generated based on the dynamically generated random matrix and the information value to further improve the reliability of the message integrity check data; the information value of the state control message can be obtained by calculating the content corresponding to the state control message through a hash algorithm.
[0071] Step S203, receiving status feedback information reported by the target vehicle based on the status control data.
[0072] The state feedback information includes a plurality of feedback data frames, and the feedback data frames are obtained by unpacking the state feedback message corresponding to the control state based on the communication path type.
[0073] In some optional implementations, when generating status feedback information, the control split identifier, message integrity verification data and control frame integrity verification data can be spliced and verified to obtain a control instruction; based on the control instruction, the control state of the corresponding target control in the target vehicle is controlled and a control result message is obtained; based on the control result message, status feedback information corresponding to the status control data is generated.
[0074] Specifically, when the target vehicle receives the corresponding status control data sent by the mobile terminal to each target control based on the vehicle body status information, the status control data corresponding to any target control is first parsed to obtain multiple control data frames. Since each control frame data includes a control splitting identifier, message integrity verification data and control frame integrity verification data; therefore, based on the control splitting identifier, message integrity verification data and control frame integrity verification data corresponding to each control frame data, the multiple control frame data can be spliced (that is, the multiple control frame data are spliced in sequence according to the control splitting identifier) and verified (such as performing message integrity verification and control frame integrity verification on the spliced control frame data) to obtain the control instruction; then, based on the control instruction, the corresponding target control in the target vehicle is controlled in control status and a control result message is obtained; finally, based on the control result message, status feedback information corresponding to the status control data is generated.
[0075] In some optional embodiments, when generating state feedback information corresponding to the state control data based on the control result message, for the communication path type of any target control, obtain a communication volume threshold corresponding to the communication path type; obtain the result data volume of the control result message; compare the result data volume with the communication volume threshold to obtain a second comparison result; when the second comparison result indicates that the result data volume is greater than the communication volume threshold, unpack the control result message data to obtain multiple feedback data frames; based on the multiple feedback data frames, generate state feedback information corresponding to the state control data.
[0076] Specifically, when feeding back status feedback information, in order to realize the single-frame bidirectional fast and stable transmission of big data on the Bluetooth communication channel, the control result message can be unpacked based on the communication path type, such as unpacking the status control message exceeding 244 bytes to form several feedback data frames with frames less than 244 bytes, or performing differentiated unpacking according to the communication path type (LIN type communication path, CAN type communication path, Flexray type communication path, and Ethernet type communication path) of the target control on the target vehicle, such as splitting the status control message of the LIN type communication path into 8-byte feedback data frames, splitting the status control message of the CAN type communication path into 64-byte feedback data frames, and splitting the status control message of the Flexray payload type communication path into 254-byte feedback data frames; finally, the status feedback information is generated based on multiple feedback data frames and fed back to the mobile terminal.
[0077] In some optional implementations, when generating state feedback information corresponding to state control data based on multiple feedback data frames, first obtain result integrity verification data of the control result message, as well as feedback splitting identifier and feedback frame integrity verification data corresponding to each feedback data frame; based on the feedback splitting identifier, the feedback frame integrity verification data and the feedback frame integrity verification data, obtain the state feedback information.
[0078] Specifically, first obtain the message digest of the control result message, and use the message digest as the integrity verification data of the control result message to verify the integrity of the status message; the control split identifier corresponding to the feedback data frame is used to identify the position of the feedback data frame in the control result message; the feedback frame integrity verification data can be obtained by performing a hash operation on the content corresponding to the feedback data frame, and is used to verify the integrity of the feedback data frame. Then, each control split identifier is correspondingly spliced with the corresponding message integrity verification data and feedback frame integrity verification data to obtain multiple feedback data frames, and the multiple feedback data frames are used as status control data.
[0079] Among them, the message digest can be obtained by iterating the control result message and the random salt value by a key derivation function for a target number of iterations. The random salt value can be generated by a random number, and can also be generated by a random number and a universal unique identification code of the target vehicle. In other embodiments, the information value of the control result message can be obtained first, and then the message integrity check data of the control result message is generated based on the dynamically generated random matrix and the information value to further improve the reliability of the message integrity check data. Among them, the information value of the control result message can be obtained by calculating the content corresponding to the control result message through a hash algorithm.
[0080] In some optional implementations, the state control data and the state feedback information may be encrypted by an encryption algorithm before transmission, wherein the encryption algorithm may include an AES encryption algorithm or an RSA encryption algorithm.
[0081] The vehicle control method provided in this embodiment first obtains the body state information of the target vehicle with established Bluetooth connection, the body state information includes the control state and communication path type of each target control in the target vehicle; sends corresponding state control data to each target control based on the body state information, the state control data includes multiple control data frames, and the control data frame is obtained by unpacking the state control message corresponding to the control state based on the communication path type; receives the state feedback information reported by the target vehicle based on the state control data to obtain the control result message corresponding to the target control in the target vehicle, the state feedback information includes multiple feedback data frames, and the feedback data frame is obtained by unpacking the state feedback message corresponding to the control state based on the communication path type. Through the above process, vehicles with cloud services or Internet of Vehicles systems can be remotely controlled, and bidirectional reliable data transmission can be achieved, which improves the reliability of remote control of vehicles.
[0082] See also Figure 3 The process of the vehicle control method provided in the embodiment of the present application is described in detail below with a specific example.
[0083] Step 1: Obtain the vehicle body status information of the target vehicle with which the Bluetooth connection has been established.
[0084] Specifically, first, the software SDK1 of the mobile terminal runs to search for the BLE Bluetooth running on the software SDK2 of the target vehicle and initiates a connection. The target vehicle completes security authentication through the key and determines that the mobile terminal is a legally registered device. Its communication link is: mobile terminal->BLE ECU (vehicle low-energy Bluetooth control module)->ZCU (zone controller)->CCU (central computing unit); the target vehicle powers on non-power domain components on demand: including but not limited to entertainment domain host, lights, door and window controllers, independent power amplifiers and other components. The mobile terminal and the target vehicle establish an application layer heartbeat signal to verify the normal initialization of the link and ensure the identification and processing of abnormal scenarios during the implementation of the function. The target vehicle then provides feedback on the target controls (components) that have completed startup, and informs the mobile terminal of the components that are currently online. Avoid invalid calls.
[0085] When the target vehicle completes security authentication through the key, the vehicle identification code (vehicle unique number) VIN can be sent to the mobile terminal through the BLE ECU device. The mobile terminal applies for the key from the car manufacturer OEM through the VIN and sends the calculated key value back to the BLE ECU. If the key calculation result matches, the identity authentication is completed and communication can be carried out.
[0086] Step 2: Send corresponding status control data to each target control based on the vehicle body status information.
[0087] Step three, receiving the state feedback information reported by the target vehicle based on the state control data to obtain the control result message of the corresponding target control in the target vehicle.
[0088] Among them, the mobile terminal sends the state control data to be parsed by the target vehicle through the above data link (mobile terminal->BLE ECU (low-energy Bluetooth control module)->ZCU (zone controller)->CCU (central computing unit)) through the APP application layer communication protocol (private protocol including unique code and vehicle control information (including body control commands, body status information)), and the target vehicle calls the components inside to execute the corresponding functions. Function examples: music playback, light show, door and window opening and closing, etc. Specific:
[0089] As the sender: The mobile terminal and the BLE ECU device of the target vehicle have the need to send large data files. Use the unpacking / packing component to unpack large data packets exceeding 244 bytes to form several single-frame data frames less than 244 bytes. Differentiate the unpacking according to the vehicle communication bus (LIN / CAN / Flexray / Ethernet) where the terminal actuator of the business is located. For example, the payload of LIN is 8 bytes, the payload of CAN is 64 bytes, and the Flexray payload is 254 bytes. Customize the unpacking for the final vehicle communication bus and send it. Each frame of payload contains the data packet sequence number (split identifier), E2E protocol data bit (message integrity check data), and CRC check data bit (frame integrity check data).
[0090] As the receiving end: When receiving files, the BLE ECU devices of the mobile terminal and the target vehicle determine the integrity of the data based on the E2E protocol data bits and CRC check data bits, and use the unpacking / packing component to reassemble several single-frame data into a complete large-volume file based on the data packet sequence number. When there is a problem with data integrity (frame loss, missing data packet signal, transmission interruption), the receiving end sends a request to request the sending end to resend, or resend the lost frame part.
[0091] After the target vehicle's BLE ECU device completes the data packet restoration, it serves as the entry point for the target vehicle's BLE data and determines the next action of the data based on the data type: 1) the action to be performed locally; 2) the data needs to be further transmitted to the downstream controller (entertainment domain controller IVI, remote communication controller TBOX, central domain controller CCU). Since the sender has customized the unpacking for the final vehicle communication bus, the target vehicle's BLE ECU sends data based on the vehicle's (communication path type) communication buses (LIN / CAN / Flexray / Ethernet) and meets the various communication protocols. Since the target vehicle's BLE ECU is generally a controller with low computing power, the mobile terminal unpacks the data in advance based on the terminal bus, which can realize the bidirectional transmission of big data between the various buses of the vehicle. This allows a large number of business needs to be realized.
[0092] At the same time, this method can realize the control of vehicles by mobile terminals in areas and time periods without 4G and 5G network coverage, and is also applicable to vehicles without cloud TSP services and remote communication controllers TBOX. In addition, since this method uses local security verification, there is no need to open the cloud interface, avoid cloud attacks, and the link is more reliable. Due to the short link, the instability of the cellular network and the risk of insufficient cloud server resources are avoided, and the control speed is faster.
[0093] In this embodiment, a vehicle control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" refers to a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0094] This embodiment provides a vehicle control device, such as Figure 4 As shown, including:
[0095] The information acquisition module 401 is used to acquire the vehicle body status information of the target vehicle to which the Bluetooth connection has been established; the vehicle body status information includes the control status and communication path type of each target control in the target vehicle.
[0096] The data sending module 402 is used to send corresponding state control data to each target control based on the vehicle body state information. The state control data includes multiple control data frames. The control data frames are obtained by unpacking the state control message corresponding to the control state based on the communication path type.
[0097] The information feedback module 403 is used to receive the status feedback information reported by the target vehicle based on the status control data to obtain the control result message corresponding to the target control in the target vehicle. The status feedback information includes multiple feedback data frames, and the feedback data frame is obtained by unpacking the status feedback message corresponding to the control state based on the communication path type.
[0098] In some optional implementations, the information acquisition module 401 includes:
[0099] The request sending unit is used to send a vehicle body status acquisition request to a target vehicle with which a Bluetooth connection has been established, so that the target vehicle obtains the control status and communication path type of each target control in the vehicle body.
[0100] The state acquisition unit is used to receive the body state information fed back by the target vehicle based on the control state of each target control and the communication path type.
[0101] In some optional implementations, the information acquisition module 401 includes:
[0102] The information acquisition unit is used to acquire device information of a pairable device.
[0103] The connection request unit is used to determine the target vehicle from the pairable devices based on the device information and send a connection request to the target vehicle, wherein the connection request includes a key encryption value, which is calculated based on the key obtained from the vehicle identification code of the target vehicle.
[0104] The information receiving unit is used to receive confirmation information fed back by the target vehicle in response to the connection request, where the confirmation information is used to indicate that the key encryption value is the same as the original key value stored in the target vehicle.
[0105] The connection establishing unit is used to establish a Bluetooth connection with the target vehicle based on the confirmation information.
[0106] In some optional implementations, the data sending module 402 includes:
[0107] The data acquisition unit is used to acquire the control state of any target control and the corresponding communication path type.
[0108] The message generation unit is used to generate a corresponding state control message based on the control state.
[0109] The message unpacking unit is used to unpack the state control message based on the communication path type to obtain multiple control data frames.
[0110] The state data generating unit is used to generate state control data based on multiple control data frames and send it to the corresponding target control.
[0111] In some optional implementations, the first message unpacking unit includes:
[0112] The communication threshold acquisition subunit is used to acquire the communication volume threshold corresponding to the communication path type.
[0113] The data volume acquisition subunit is used to acquire the message data volume of the status control message.
[0114] The data volume comparison subunit is used to compare the message data volume with the communication volume threshold to obtain a first comparison result.
[0115] The unpacking processing subunit is used to unpack the state control message to obtain multiple control data frames when the first comparison result indicates that the message data volume is greater than the communication volume threshold.
[0116] In some optional implementations, the state data generating unit includes:
[0117] The first data acquisition subunit is used to acquire the message integrity verification data of the status control message, and the control split identifier and control frame integrity verification data corresponding to each control data frame.
[0118] The state data generating subunit is used to obtain the state control data based on the control splitting identifier, the message integrity check data and the control frame integrity check data.
[0119] In some optional implementations, the information feedback module 403 includes:
[0120] The communication threshold acquisition unit is used to acquire the communication volume threshold corresponding to the communication path type of any target control.
[0121] The data volume acquisition unit is used to acquire the result data volume of the control result message.
[0122] The data volume comparison unit is used to compare the result data volume with the communication volume threshold to obtain a second comparison result.
[0123] The unpacking processing unit is used to unpack the control result message to obtain multiple feedback data frames when the data volume of the second comparison result representation result is greater than the communication volume threshold.
[0124] The information generating unit is used to generate state feedback information corresponding to the state control data based on multiple feedback data frames.
[0125] Specifically, after splicing and verifying the control splitting identifier, message integrity verification data and control frame integrity verification data, a control instruction is obtained; based on the control instruction, the control state of the corresponding target control in the target vehicle is controlled and a control result message is obtained; based on the control result message, state feedback information corresponding to the state control data is generated.
[0126] In some optional implementations, the information generating unit includes:
[0127] The second data acquisition subunit is used to acquire result integrity verification data of the control result message, and feedback splitting identifiers and feedback frame integrity verification data corresponding to each feedback data frame.
[0128] The feedback information production subunit is used to obtain status feedback information based on the feedback splitting identifier, the feedback frame integrity check data and the feedback frame integrity check data.
[0129] The vehicle control device provided in this embodiment first obtains the body state information of the target vehicle with established Bluetooth connection through the information acquisition module; the body state information includes the control state and communication path type of each target control in the target vehicle; then the corresponding state control data is sent to each target control based on the body state information through the data sending module, and the state control data includes multiple control data frames, which are obtained by unpacking the state control message corresponding to the control state based on the communication path type; finally, the state feedback information reported by the target vehicle based on the state control data is received based on the information feedback module to obtain the control result message corresponding to the target control in the target vehicle, and the state feedback information includes multiple feedback data frames, which are obtained by unpacking the state feedback message corresponding to the control state based on the communication path type. Through the above modules, vehicles with cloud services or Internet of Vehicles systems can be remotely controlled, and bidirectional reliable data transmission can be achieved, thereby improving the reliability of remote control of vehicles.
[0130] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0131] The vehicle control device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0132] The embodiment of the present invention further provides a vehicle having the above Figure 4 Vehicle controls shown.
[0133] See also Figure 5 , Figure 5 is a schematic diagram of a vehicle structure provided by an optional embodiment of the present invention, such as Figure 5 As shown, the vehicle includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the vehicle, including instructions stored in or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple vehicles can be connected, and each device provides some necessary operations (for example, as a storage vehicle terminal array, a group of blade storage vehicle terminals, or a multi-processor system). Figure 5 A processor 10 is taken as an example.
[0134] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0135] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0136] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created based on the use of a vehicle displayed on a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the vehicle via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a vehicle-mounted terminal cluster, a mobile communication network, and combinations thereof.
[0137] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0138] The vehicle further includes a communication interface 30 for the vehicle to communicate with other devices or a communication network.
[0139] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0140] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A vehicle control method, It is characterized in that The method comprises: Acquire body state information of a target vehicle with which a Bluetooth connection has been established, wherein the body state information includes a control state and a communication path type of each target control in the target vehicle; Sending corresponding state control data to each of the target controls based on the vehicle body state information, the state control data including a plurality of control data frames, the control data frames being obtained by unpacking the state control message corresponding to the control state based on the communication path type; Receive status feedback information reported by the target vehicle based on the status control data to obtain a control result message corresponding to the target control in the target vehicle, wherein the status feedback information includes multiple feedback data frames, and the feedback data frames are obtained by unpacking the status feedback message corresponding to the control status based on the communication path type.
2. The method according to claim 1, It is characterized in that The sending corresponding state control data to each of the target controls based on the vehicle body state information includes: For any of the target controls, obtaining the control state of the target control and the corresponding communication path type; Generate a corresponding status control message based on the control state; Unpacking the state control message based on the communication path type to obtain multiple control data frames; The state control data is generated based on the multiple control data frames and sent to the corresponding target control.
3. The method according to claim 2, It is characterized in that The unpacking of the state control message based on the communication path type includes: Obtaining a communication volume threshold corresponding to the communication path type; Obtaining the message data volume of the status control message; Comparing the message data volume with the communication volume threshold to obtain a first comparison result; When the first comparison result indicates that the message data volume is greater than the communication volume threshold, the status control message is unpacked to obtain a plurality of control data frames.
4. The method according to claim 3, It is characterized in that The generating of the state control data based on a plurality of the control data frames comprises: Acquire message integrity check data of the status control message, and control split identifier and control frame integrity check data corresponding to each of the control data frames; The state control data is obtained based on the control split identifier, the message integrity check data and the control frame integrity check data.
5. The method according to claim 4, It is characterized in that Generating the state feedback information includes: After splicing and verifying the control splitting identifier, the message integrity check data and the control frame integrity check data, a control control instruction is obtained; Based on the control instruction, control the state of the corresponding target control in the target vehicle and obtain a control result message; Based on the control result message, the state feedback information corresponding to the state control data is generated.
6. The method according to claim 5, It is characterized in that The generating, based on the control result message, the state feedback information corresponding to the state control data comprises: Obtaining the result data volume of the control result message; Comparing the result data volume with the communication volume threshold to obtain a second comparison result; When the second comparison result indicates that the result data volume is greater than the communication volume threshold, unpacking the control result message to obtain a plurality of feedback data frames; Based on the plurality of feedback data frames, the state feedback information corresponding to the state control data is generated.
7. The method according to claim 6, It is characterized in that The generating the state feedback information corresponding to the state control data based on the plurality of feedback data frames comprises: Obtaining result integrity check data of the control result message, and feedback splitting identifiers and feedback frame integrity check data corresponding to each of the feedback data frames; The status feedback information is obtained based on the feedback splitting identifier, the feedback frame integrity check data and the feedback frame integrity check data.
8. The method according to claim 1, It is characterized in that Before acquiring the vehicle body status information of the target vehicle with which the Bluetooth connection has been established, the method further includes: Get device information of the pairable device; Based on the device information, determine a target vehicle from the pairable devices, and send a connection request to the target vehicle, the connection request including a key encryption value, the key encryption value being calculated based on a key obtained from a vehicle identification code of the target vehicle; Receiving confirmation information fed back by the target vehicle in response to the connection request, the confirmation information is used to indicate that the key encryption value is the same as the original key value stored in the target vehicle; A Bluetooth connection with the target vehicle is established based on the confirmation information.
9. The method according to claim 1, It is characterized in that The acquisition of the vehicle body status information of the target vehicle with which the Bluetooth connection has been established includes: Sending a vehicle body status acquisition request to the target vehicle with which the Bluetooth connection has been established, so that the target vehicle acquires the control status and communication path type of each target control in the vehicle body; Receive body state information fed back by the target vehicle based on the control state and communication path type of each of the target controls.
10. A vehicle control device, It is characterized in that The device comprises: An information acquisition module, used to acquire body state information of a target vehicle with which a Bluetooth connection has been established; the body state information includes a control state and a communication path type of each target control in the target vehicle; A data sending module, used for sending corresponding state control data to each of the target controls based on the vehicle body state information, wherein the state control data includes a plurality of control data frames, and the control data frames are obtained by unpacking the state control message corresponding to the control state based on the communication path type; An information feedback module is used to receive status feedback information reported by the target vehicle based on the status control data to obtain a control result message corresponding to the target control in the target vehicle, wherein the status feedback information includes multiple feedback data frames, and the feedback data frames are obtained by unpacking the status feedback message corresponding to the control state based on the communication path type.
Citation Information
Patent Citations
Vehicle interconnected control and data service system based on intelligent terminal
CN105897809A
Vehicle diagnosis data forwarding method and device and gateway
CN111901076A
Method for programming operating module for vehicle and corresponding operating module
CN113841111A
Vehicle-mounted terminal and vehicle machine pairing method and device and readable storage medium
CN117320018A
Methods, computer programs and devices for configuring a vehicle's radio carrier to enable Car2x communication
DE102020122330A1
