Vehicle machine screen control method and device and storage medium
A communication protocol and module system on vehicle and smart terminals ensures universal remote control of vehicle screens with enhanced anti-interference, addressing connectivity and compatibility issues in traditional systems.
Patent Information
- Application Number
- CN202411057518.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-02
AI Technical Summary
Traditional car computer systems face limitations in anti-interference, versatility, and long-distance connectivity due to reliance on Wi-Fi 7.0 or Bluetooth 5.3 modules, and support only specific external devices, lacking universal compatibility and efficient remote control.
Implementing a preset communication protocol with a first communication module on the vehicle terminal and a second module on smart terminals to parse screen control requests, ensuring verification and parsing in a specific order, allowing any standardized device to connect and remotely control the vehicle screen, enhancing anti-interference and universality.
Enables universal remote control of vehicle screens with improved anti-interference performance by using a standardized communication protocol and modules, allowing any device to connect and maintain seamless interaction.
Smart Images

Figure CN119127107A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a vehicle screen control method, device and storage medium. Background Art
[0002] At present, with the development of intelligent connected cars, the trend of intelligent car cockpits is becoming increasingly obvious. The central control screen in the car cockpit is a key HMI (Human Machine Interface) component that connects people and cars for human-machine interaction. In traditional car cockpits, there is generally only one central control screen, and it can only be interacted with by pressing the hardware buttons on the central control or the touch screen.
[0003] In traditional car computers, users need to remotely use the functions on the car computer's central control screen by operating the fixed buttons on the external device. Generally, one button corresponds to one function, which increases the expansion cost of the peripheral hardware and affects its interactive portability and spatial aesthetics. In addition, traditional external devices are generally connected to the car computer based on Wifi 7.0 or Bluetooth 5.3 modules. This connection technology has great limitations in distance, cannot support long-distance connections, and has poor anti-interference and security. In addition, traditional car computers generally only support a certain type or a certain category of specific external devices to connect to the car computer's central control, and do not support any standardized device to connect to the car computer's central control, and their versatility is poor.
[0004] Therefore, there is an urgent need for a method to improve anti-interference and versatility while achieving remote vehicle screen control. Summary of the invention
[0005] Based on this, the present application provides a vehicle screen control method, device and storage medium to solve the problems existing in the prior art.
[0006] In a first aspect, a vehicle screen control method is provided, which is applied to a vehicle terminal, and the method includes:
[0007] Receiving a screen control request encapsulated based on a preset communication protocol sent by a smart terminal, wherein the vehicle terminal is pre-installed with a first communication module set based on the preset communication protocol;
[0008] The first communication module sequentially parses the screen control request according to the order of encapsulating the information of the preset communication protocol to obtain the prior verification information;
[0009] If the verification information meets the preset verification rule, continue parsing the screen control request to obtain subsequent screen control information, wherein the screen control information includes focus update information and user operation information;
[0010] The current focus is updated based on the focus update information, and the current component corresponding to the current focus is controlled based on the user operation information.
[0011] According to an achievable method in an embodiment of the present application, before obtaining the prior verification information, the method further includes:
[0012] The first communication module sequentially parses the screen control request according to the order of the preset communication protocol encapsulation information to obtain the protocol version information before the verification information;
[0013] Determining a target algorithm corresponding to the protocol version information;
[0014] The screen control request continues to be parsed based on the target algorithm.
[0015] According to an achievable method in an embodiment of the present application, before obtaining the prior verification information, the method further includes:
[0016] The first communication module sequentially parses the screen control request according to the order of encapsulating information of the preset communication protocol to obtain data length information before the verification information;
[0017] Allocate a corresponding cache area based on the data length information;
[0018] Storing the data corresponding to the screen control request in the cache area;
[0019] The screen control request continues to be parsed in the cache area.
[0020] According to an achievable method in an embodiment of the present application, if the verification information meets a preset verification rule, continuing to parse the screen control request to obtain subsequent screen control information includes:
[0021] If each of the verification information meets the preset verification rule, continue parsing the screen control request to obtain subsequent screen control information;
[0022] If any of the verification information does not conform to the preset verification rule, the execution of the screen control request is terminated, and the data corresponding to the screen control request stored in the cache area is deleted.
[0023] According to an achievable manner in the embodiment of the present application, the method further includes:
[0024] Based on the screen control information, obtaining screen ID information;
[0025] Based on the screen ID information, determining a target screen corresponding to the screen control request;
[0026] The screen update result of the target screen is sent to the smart terminal.
[0027] According to an implementable manner in an embodiment of the present application, the focus update information includes focus displacement information and focus state information, wherein the focus displacement information includes a moving direction of the focus, and the focus state information includes focus or out of focus;
[0028] The updating of the current focus based on the focus update information includes:
[0029] Determining, according to the focus displacement information, a current focus position after movement based on the focus displacement information;
[0030] The focus state information is obtained, and if the focus state information is focused, the first visual effect is updated; if the focus state information is out of focus, the second visual effect is updated.
[0031] According to an achievable method in an embodiment of the present application, controlling the current component corresponding to the current focus based on the user operation information includes:
[0032] Determining current component information corresponding to the current focus position based on the current focus position;
[0033] According to the current component information and the user operation information, searching a hash table to determine a target operation method corresponding to the current component information and the user operation information, wherein for each component, a hash table is pre-established, and a corresponding relationship between the user operation information and the operation method is stored in the hash table;
[0034] The current component is controlled based on the target operation method.
[0035] In a second aspect, a vehicle screen control method is provided, which is applied to a smart terminal, and the method includes:
[0036] Receiving screen control information input by a user, wherein the screen control information includes focus update information and user operation information;
[0037] Based on the second communication module, encapsulating the screen control information into a screen control request according to the order of encapsulating information in a preset communication protocol, wherein the smart terminal is pre-installed with a second communication module set based on the preset communication protocol;
[0038] The screen control request is sent to the vehicle computer end, and the vehicle computer end parses the screen control request in sequence according to the order of information encapsulation of the preset communication protocol to obtain prior verification information. If the verification information meets the preset verification rule, the screen control request is continued to be parsed to obtain subsequent screen control information, focus update information and user operation information are obtained based on the screen control information, current focus is updated based on the focus update information, and current component corresponding to the current focus is controlled based on the user operation information.
[0039] In a third aspect, a computer device is provided, comprising:
[0040] at least one processor; and
[0041] a memory communicatively connected to the at least one processor; wherein,
[0042] The memory stores computer instructions that can be executed by the at least one processor, and the computer instructions are executed by the at least one processor to enable the at least one processor to perform the method involved in the first aspect or the second aspect mentioned above.
[0043] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, characterized in that the computer instructions are used to enable a computer to execute the method involved in the first aspect or the second aspect above.
[0044] According to the technical content provided by the embodiments of the present application, the present application sets a preset communication protocol, and sets a first communication module that complies with the protocol on the vehicle side. The first communication module sequentially parses the screen control request according to the order of information encapsulation of the preset communication protocol to obtain the prior verification information. When the verification information complies with the preset verification rules, the subsequent screen control information is continued to be parsed, thereby updating the focus information and executing the user operation. The present application sets a preset communication protocol and a corresponding communication module, so that any standardized device can be connected to the vehicle central control, and the vehicle screen can be remotely controlled with universality. At the same time, due to the setting of a specific encapsulation order and parsing rules, it has better anti-interference performance, which improves the anti-interference and universality of remote vehicle screen control. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of a flow chart of a vehicle screen control method in one embodiment;
[0046] Figure 2 This is a system architecture diagram of the vehicle screen control method of this application;
[0047] Figure 3 A schematic diagram of a vehicle screen control method in an embodiment;
[0048] Figure 4 A schematic diagram of a flow chart of a vehicle screen control method in another embodiment;
[0049] Figure 5 FIG. 4 is a schematic structural diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0050] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] Figure 1 A flow chart of a vehicle screen control method provided in an embodiment of the present application, Figure 2 This is a system architecture diagram of the vehicle screen control method of the present application, such as Figure 2 As shown, the system includes a vehicle terminal 101 and a smart terminal 102, which are connected to each other by communication. When a user inputs a screen control request on the smart terminal 102, the smart terminal 102 sends the screen control request to the vehicle terminal 101, and controls the central control screen on the vehicle terminal 101 based on the screen control request. The device type of the smart terminal 102 can be a mobile phone, a smart remote control, a game controller, etc., and this application does not limit this.
[0052] Figure 1 A flow chart of a vehicle screen control method provided in an embodiment of the present application, the method is applied to a vehicle terminal, such as Figure 1 As shown, the method may include the following steps:
[0053] Step 101: receiving a screen control request encapsulated based on a preset communication protocol sent by a smart terminal, wherein the vehicle terminal is pre-installed with a first communication module set based on the preset communication protocol.
[0054] Specifically, if Figure 1 As shown, combined with Figure 3 , the embodiment of the present application customizes a standardized software protocol framework that can adapt to the interconnection between a variety of smart terminals and the vehicle computer central control as a preset communication protocol. The communication protocol can be implemented based on the Ethernet technology stack of the IEEE802.3 standard. The vehicle computer end is pre-installed with a first communication module set based on the preset communication protocol, and the smart terminal is pre-installed with a second communication module set based on the preset communication protocol. The smart terminal encapsulates the screen control information sent by the user into a screen control request based on the preset communication protocol, and the vehicle computer end receives the screen control request encapsulated based on the preset communication protocol sent by the smart terminal.
[0055] Step 102: The first communication module parses the screen control request in sequence according to the order of information encapsulation of the preset communication protocol to obtain the prior verification information.
[0056] Specifically, the preset communication protocol encapsulation information is in a certain order, with the verification data used to verify the data packet set in front and the screen control information for the user to control the vehicle screen set in the back. The first communication module parses the screen control request in sequence according to the order of the preset communication protocol encapsulation information, and first obtains the verification information located before the screen control information. For example, the verification information includes one or more of device type information, manufacturer identification information, key information, and verification code information. Among them, the device type information represents the type ID of the smart terminal device, the manufacturer identification information represents the manufacturer number ID of the smart terminal device, the key information is used to determine whether the link access is legal, and the verification code information is used to determine the integrity and correctness of the data packet.
[0057] Step 103: If the verification information meets the preset verification rule, continue to parse the screen control request to obtain subsequent screen control information, wherein the screen control information includes focus update information and user operation information.
[0058] Specifically, after obtaining the verification information, it is determined whether the verification information complies with the preset verification rules. For example, whether the device type information complies with the preset type, whether the manufacturer identification information complies with the preset number, whether the key information is legal, whether the verification code information is correct, etc. If the verification information complies with the preset verification rules, the screen control request is further parsed to obtain the subsequent screen control information, and the focus update information and user operation information are obtained.
[0059] Step 104: Update the current focus based on the focus update information, and control the current component corresponding to the current focus based on the user operation information.
[0060] Specifically, if Figure 1 As shown, combined with Figure 3 In step 103, the focus update information and user operation information are obtained. In this step, the focus on the central control screen of the vehicle terminal is updated based on the focus update information to obtain the current focus, and the current component corresponding to the current focus is determined, such as "button component", "list component", etc. The user operation information represents the operation command input by the user, such as "click", "slide", etc., and the operation is performed on the current component based on the user operation information, such as "click the button component", "slide the list component", etc.
[0061] It can be seen that the embodiment of the present application sets a preset communication protocol, and sets a first communication module that complies with the protocol on the vehicle side. The first communication module sequentially parses the screen control request according to the order of information encapsulation of the preset communication protocol to obtain the previous verification information. When the verification information complies with the preset verification rules, the subsequent screen control information is further parsed to update the focus information and execute user operations. The present application sets a preset communication protocol and a corresponding communication module, so that any standardized device can be connected to the vehicle central control, and the vehicle screen can be remotely controlled with universality. At the same time, due to the setting of a specific encapsulation order and parsing rules, it has better anti-interference performance, which improves the anti-interference and universality of remote vehicle screen control.
[0062] In one embodiment of the present application, before obtaining the prior verification information, it also includes: the first communication module parses the screen control request in sequence according to the order of the preset communication protocol encapsulation information, and obtains the protocol version information located before the verification information; determines the target algorithm corresponding to the protocol version information; and continues to parse the screen control request based on the target algorithm.
[0063] Specifically, the preset communication protocol encapsulation information is in a certain order. When the first communication module parses the data packet of the screen control request in sequence according to the preset communication protocol encapsulation information, it first obtains the protocol version information in the first order. The length of the protocol version information is 2B, indicating the version of the software protocol framework used for the current intelligent terminal and the vehicle central control interconnection. The first communication module parses the first two bytes of the data packet header, confirms the protocol version information of the software protocol, selects the corresponding target algorithm as the parsing algorithm for parsing the data packet according to the protocol version information, and continues to parse the screen control request data packet based on the target algorithm.
[0064] This application parses the screen control request in sequence through the order of preset communication protocol encapsulation information, obtains the protocol version information located before the verification information, determines the target algorithm corresponding to the protocol version information, and continues to parse the screen control request based on the target algorithm. It can be achieved that any standardized device can be connected to the vehicle computer central control, and remote control of the vehicle computer screen can be achieved with better anti-interference and security.
[0065] In one embodiment of the present application, before obtaining the prior verification information, it also includes: the first communication module parses the screen control request in sequence according to the order of information encapsulation of the preset communication protocol, and obtains the data length information located before the verification information; allocates the corresponding cache area based on the data length information; stores the data corresponding to the screen control request into the cache area; and continues to parse the screen control request in the cache area.
[0066] Specifically, the preset communication protocol encapsulation information is in a certain order. When the first communication module parses the data packet of the screen control request in sequence according to the preset communication protocol encapsulation information, it first obtains the data length information located in the second order. The length of the information is 2B, which represents the sum of the lengths of all parts of the data packet, in bytes (B). The first communication module parses the data packet of the screen control request, obtains the length of the data packet, allocates a buffer area Buffer for the data packet according to the length, and copies the data packet into the Buffer, and continues to parse the screen control request in the buffer area Buffer.
[0067] The present application parses the screen control request in sequence through the order of information encapsulation of the preset communication protocol, obtains the data length information before the verification information, allocates a cache area based on the data length information, and continues to parse the screen control request in the cache area. This allows any standardized device to be connected to the vehicle central control, enables remote control of the vehicle screen, and is universal.
[0068] In one embodiment of the present application, if the verification information meets the preset verification rules, the screen control request is continued to be parsed to obtain subsequent screen control information, including: if each verification information meets the preset verification rules, the screen control request is continued to be parsed to obtain subsequent screen control information; if any verification information does not meet the preset verification rules, the execution of the screen control request is terminated, and the data corresponding to the screen control request stored in the cache area is deleted.
[0069] Specifically, the preset communication protocol encapsulation information is in a certain order, with the verification data used to verify the data packet set in front and the screen control information for the user to control the vehicle screen set at the back. The first communication module parses the screen control request in sequence according to the order of the preset communication protocol encapsulation information, and first obtains the verification information located before the screen control information. The verification information includes one or more of device type information, manufacturer identification information, key information, and verification code information. If each verification information meets the preset verification rules, the screen control request continues to be parsed to obtain the subsequent screen control information. If any verification information does not meet the preset verification rules, the execution of the screen control request is terminated, and the data corresponding to the screen control request stored in the cache area is deleted.
[0070] For example, the header structure of a data packet is as follows:
[0071] Version: bit sequence 1, length 2B; the version of the software protocol framework used for the current intelligent terminal to interconnect with the vehicle central control.
[0072] Length: bit sequence 2, length 2B; indicates the sum of the lengths of the header and data parts, in bytes (B).
[0073] Device type: bit sequence 3, length 1B; type ID of the intelligent terminal device.
[0074] Manufacturer ID: bit sequence 4, length 4B; manufacturer ID of the smart terminal device.
[0075] Key: bit sequence 5, length 4B; used to determine whether the link access is legal.
[0076] Check code: bit sequence 6, length 2B; used to determine the integrity and correctness of the data packet and to check the header and data parts.
[0077] Among them, bit 1 is the protocol version information, bit 2 is the data length information, and bits 3-6 are the verification information. The device type information represents the type ID of the smart terminal device, the manufacturer identification information represents the manufacturer number ID of the smart terminal device, the key information is used to determine whether the link access is legal, and the verification code information is used to determine the integrity and correctness of the data packet. After obtaining the verification information, determine whether the verification information meets the preset verification rules. For example, determine whether the device type information meets the preset type, whether the manufacturer identification information meets the preset number, whether the key information is legal, whether the verification code information is correct, etc. If the verification information meets the preset verification rules, continue to parse the screen control request to obtain the subsequent screen control information, and obtain the focus update information and user operation information. If any of the verification information does not meet the preset verification rules, the execution of the screen control request is terminated, and the data corresponding to the screen control request stored in the buffer area Buffer is deleted.
[0078] In one embodiment of the present application, the method further includes: obtaining screen ID information based on the screen control information; determining a target screen corresponding to the screen control request based on the screen ID information; and sending a screen update result of the target screen to the smart terminal.
[0079] Specifically, the data packet of the screen control request includes screen control information of the data part structure in addition to the version information, length information and check information of the header structure. The screen control information includes screen ID information, focus displacement information and focus status information, etc. In this embodiment, the first communication module parses the first two bytes of the data portion of the data packet, obtains the screen ID information selected for this manipulation, and determines the target screen corresponding to the screen control request. According to the screen ID, the screen display data of the corresponding central control is transmitted back in real time to the external remote intelligent terminal that sent the data packet through the open wireless projection protocol technology stack, thereby realizing the real-time sending of the screen update result of the target screen to the intelligent terminal.
[0080] For example, the data portion of a packet has the following structure:
[0081] Screen ID: bit sequence 1, length 2B, used to select the screen to be controlled.
[0082] Focus displacement vector: bit sequence 2, length 1B, used to control the moving direction of the screen focus. There are eight directions: up, down, left, right, upper right, upper left, lower left, and lower right. It can be customized and extended according to the actual application scenario.
[0083] Focus status information: bit sequence 3, length 1B, used to control whether to focus on the component pointed to by the current focus to meet the logical requirements of recursive manipulation of subcomponents. 0 indicates out of focus and 1 indicates focus.
[0084] User operation information: bit sequence 4, length 2B; there are six types of interaction: press, lift, slide up, slide down, slide left, and slide right, which can be customized and extended according to actual application scenarios.
[0085] Redundant bit: bit order 5; used for 8B alignment padding of data packets.
[0086] In one embodiment of the present application, focus update information includes focus displacement information and focus status information, wherein the focus displacement information includes the direction of focus movement, and the focus status information includes focus or out of focus; updating the current focus based on the focus update information includes: determining the current focus position after movement based on the focus displacement information according to the focus displacement information; obtaining the focus status information, and if the focus status information is focus, updating the first visual effect, and if the focus status information is out of focus, updating the second visual effect.
[0087] Specifically, the focus displacement information, i.e., the focus displacement vector, indicates the direction of movement of the screen focus, which includes eight directions: up, down, left, right, upper right, upper left, lower left, and lower right. It can be customized and extended according to the actual application scenario. According to the focus displacement information, the current focus position after movement based on the focus displacement information is determined, and then the focus state information is obtained. The focus state information indicates whether the component indicated by the current focus is focused. The focus state information includes focus and defocus. If the focus state information is focus, the first visual effect is updated for the current focus position, such as a brightening effect; if the focus state information is defocus, the second visual effect is updated for the current focus position, such as a darkening effect.
[0088] In one embodiment of the present application, controlling a current component corresponding to a current focus based on user operation information includes: determining current component information corresponding to a current focus position based on a current focus position; searching a hash table to determine a target operation method corresponding to the current component information and the user operation information based on the current component information and the user operation information, wherein for each component, a hash table is pre-established, and the correspondence between the user operation information and the operation method is stored in the hash table; and controlling the current component based on the target operation method.
[0089] Specifically, for each UI component that supports the focus function, a hash table is created with its interactive behavior, i.e., user operation information, as the key and the actual function, i.e., the operation method, as the value. For example, the user operation information key can be six types of interactions: press, lift, slide up, slide down, slide left, and slide right. For a sliding list component, the actual function corresponding to its interactive behavior "slide up" is "display the upper part of the sliding list" as the value.
[0090] The embodiment of the present application uses a hash table to quickly search for the operation method corresponding to the current component and user operation, which can greatly shorten the search time and improve the response speed and user experience of the system. A hash table containing the corresponding relationship between user operation and operation method is pre-established for each component, so that the code structure is clearer, easy to understand and maintain. When the interaction logic of a component needs to be modified or extended, it is only necessary to update or add the corresponding entry in the hash table, without the need to deeply modify the internal code of the component, thereby reducing the coupling between codes. With the continuous development of the application, new components and user operations may be introduced. Using a hash table to manage the mapping relationship between these operations and methods, new entries can be easily added to support new interaction scenarios without large-scale changes to the original architecture, thereby improving the scalability of the system.
[0091] Based on the above embodiments, Figure 3 In a specific embodiment of the present application, when the vehicle terminal receives a remote screen control request data packet, the execution process is as follows:
[0092] a. Parse the first two bytes of the data packet header to confirm the version of the software protocol, select the corresponding parsing algorithm based on the version number, and go to b;
[0093] b. Parse the 3rd and 4th bytes of the packet header to obtain the length of the packet, allocate a parsing buffer for the packet according to the length, and copy the packet into the buffer, then go to c;
[0094] c. Parse the device type, manufacturer ID, key and check code fields of the data packet in the above buffer in turn. If the device type is a supported device, the manufacturer ID is a cooperated manufacturer, the key is legal, and the verification is successful, then go to d and further parse the data part of the data packet; otherwise, discard the data packet and clear the buffer.
[0095] d. Parse the first two bytes of the data packet to obtain the screen ID selected for this operation. According to the screen ID, the screen display data of the corresponding central control is transmitted back in real time through the open wireless screen projection protocol technology stack to the external remote intelligent terminal that sent the data packet, and then go to e;
[0096] e. Parse the third byte of the data packet data part, obtain the displacement vector related to the current manipulation and focus movement, move the focus of the UI component according to the displacement vector and the index information of the UI component pointed to by the current focus, and update the visual effects of the original UI component pointed to by the focus and the current UI component, and then go to f;
[0097] f. Parse the 4th byte of the data packet data portion to confirm whether this manipulation requires focusing on the current UI component. If so, go to g; otherwise, the execution ends.
[0098] g. Parse the 5th and 6th bytes of the data packet data part, obtain the manipulation type ID required for this manipulation, use the ID as the key, find the hash table Value of the UI component currently pointed to by the focus, execute the Value and update the UI component.
[0099] The embodiment of the present application sets a preset communication protocol, and sets a first communication module that complies with the protocol on the vehicle side. The first communication module sequentially parses the screen control request according to the order of information encapsulation of the preset communication protocol to obtain the previous verification information. When the verification information complies with the preset verification rules, the subsequent screen control information is further parsed to update the focus information and execute the user operation. By setting a preset communication protocol and a corresponding communication module, the present application can realize that any standardized device can be connected to the vehicle central control, and can realize remote control of the vehicle screen with universality. At the same time, due to the setting of a specific encapsulation order and parsing rules, it has better anti-interference performance, which improves the anti-interference and universality of remote vehicle screen control.
[0100] Using a hash table to quickly find the operation method corresponding to the current component and user operation can greatly shorten the search time and improve the system's response speed and user experience. A hash table containing the correspondence between user operations and operation methods is pre-established for each component, making the code structure clearer, easier to understand and maintain. When the interaction logic of a component needs to be modified or expanded, it is only necessary to update or add the corresponding entry in the hash table without in-depth modification of the component's internal code, which reduces the coupling between codes. As the application continues to develop, new components and user operations may be introduced. Using a hash table to manage the mapping relationship between these operations and methods can easily add new entries to support new interaction scenarios without making large-scale changes to the original architecture, thereby improving the scalability of the system.
[0101] It should be understood that although Figure 1The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in the application, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0102] Figure 4 A flow chart of a vehicle screen control method provided in an embodiment of the present application, the method is applied to a smart terminal, such as Figure 4 As shown, the method may include the following steps:
[0103] Step 401: receiving screen control information input by a user, wherein the screen control information includes focus update information and user operation information;
[0104] Step 402: Encapsulating the screen control information into a screen control request based on the order of encapsulating information according to a preset communication protocol based on a second communication module, wherein the smart terminal is pre-installed with a second communication module set based on the preset communication protocol;
[0105] Step 403: The screen control request is sent to the vehicle computer end, and the vehicle computer end parses the screen control request in sequence according to the order of the information encapsulation of the preset communication protocol to obtain the previous verification information. If the verification information meets the preset verification rules, the screen control request is continued to be parsed to obtain the subsequent screen control information, and the focus update information and user operation information are obtained based on the screen control information. The current focus is updated based on the focus update information, and the current component corresponding to the current focus is controlled based on the user operation information.
[0106] This application can achieve that any standardized device can be connected to the car computer central control by setting a preset communication protocol and a corresponding communication module, and can realize the remote control of the car computer screen with universality. At the same time, due to the setting of a specific packaging sequence and parsing rules, its anti-interference performance is better, which improves the anti-interference and universality of the remote car computer screen control.
[0107] In one embodiment of the present application, the second communication module encapsulates the screen control information into a screen control request according to the order of information encapsulation of a preset communication protocol, including: encapsulating protocol version information before verification information, and the protocol version information is used to determine the target algorithm corresponding to the protocol version information.
[0108] In one embodiment of the present application, the second communication module encapsulates the screen control information into a screen control request according to the order of encapsulating information in a preset communication protocol, including: encapsulating data length information before verifying information; and allocating a corresponding cache area based on the data length information.
[0109] In one embodiment of the present application, if the verification information meets the preset verification rules, then continue to parse the screen control request to obtain subsequent screen control information, including: if each of the verification information meets the preset verification rules, then continue to parse the screen control request to obtain subsequent screen control information; if any of the verification information does not meet the preset verification rules, then terminate the execution of the screen control request and delete the data corresponding to the screen control request stored in the cache area.
[0110] In one embodiment of the present application, the second communication module encapsulates the screen control information into a screen control request in the order of encapsulating information according to a preset communication protocol, and also includes: encapsulating screen ID information after the verification information, and the screen ID information is used to determine the target screen corresponding to the screen control request.
[0111] In one embodiment of the present application, the focus update information includes focus displacement information and focus status information, wherein the focus displacement information includes the direction of focus movement, and the focus status information includes focus or out of focus; updating the current focus based on the focus update information includes determining the current focus position after moving based on the focus displacement information according to the focus displacement information; obtaining the focus status information, and if the focus status information is focus, updating the first visual effect, and if the focus status information is out of focus, updating the second visual effect.
[0112] In one embodiment of the present application, controlling the current component corresponding to the current focus based on the user operation information includes: determining the current component information corresponding to the current focus position based on the current focus position; searching a hash table to determine the target operation method corresponding to the current component information and the user operation information according to the current component information and the user operation information, wherein, for each component, a hash table is pre-established, and the correspondence between the user operation information and the operation method is stored in the hash table; and controlling the current component based on the target operation method.
[0113] Based on the above embodiments, Figure 3 In a specific embodiment of the present application, the execution process of a remote control by a smart terminal is as follows:
[0114] a. Obtain the display data of the vehicle control center based on the open wireless projection protocol technology stack. Go to b;
[0115] b. Allocate a send buffer according to the length of the data packet to be sent. Go to c;
[0116] c. Map the input of each combination key described in the second technical module to the screen number, focus displacement vector, selection mark and control type described in the first technical module, and fill the data part of the above Buffer in sequence according to the bit sequence and length of each field described in the first technical module. Go to d;
[0117] d. Fill the first two bytes of the buffer with the software protocol version used by the data packet. Go to e;
[0118] e. Fill the 3rd and 4th bytes of the above buffer with the length of the data packet in bytes. Go to f;
[0119] f. Fill in the type of the device used to remotely control the vehicle's central control screen in the fifth byte of the above buffer. Go to g;
[0120] g. Fill in the manufacturer number of the terminal device in the 6th, 7th, 8th and 9th bytes of the above buffer. Go to h;
[0121] h. Use the customized encryption algorithm to calculate the key of the above fields and fill in the 10th, 11th, 12th, and 13th bytes of the above buffer. Go to i;
[0122] i. Use the customized checksum algorithm to calculate the checksum values of the above fields and fill them into bytes 14 and 15 of the above buffer. Go to j;
[0123] j. Add the Ethernet datagram header to the above buffer and send it to the vehicle central control terminal via Ethernet. At the same time, receive the display data fed back by the corresponding central control based on the open wireless screen projection protocol technology stack.
[0124] According to the specific embodiments provided in this application, the technical solution provided in this application can have the following advantages:
[0125] By setting the preset communication protocol and the corresponding communication module, any standardized device can be connected to the car computer central control, which can realize the remote control of the car computer screen and has universality. At the same time, due to the setting of specific packaging sequence and parsing rules, its anti-interference ability is better, which improves the anti-interference and universality of remote car computer screen control.
[0126] The same or similar parts between the above embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, 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.
[0127] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described in this article within the scope permitted by applicable laws and regulations, provided that the applicable laws and regulations of the country are met (for example, the user's explicit consent, effective notification to the user, and the user's explicit authorization, etc.).
[0128] According to an embodiment of the present application, the present application also provides a computer device and a computer-readable storage medium. The present application also provides a computer device, including at least one processor and a memory connected to the at least one processor in communication; wherein the memory stores computer instructions executable by the at least one processor, and the computer instructions are executed by the at least one processor so that the at least one processor can execute the vehicle screen control method described in any of the above embodiments.
[0129] like Figure 5 , is a block diagram of a computer device according to an embodiment of the present application. The computer device is intended to represent various forms of digital computers or mobile devices. The digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smart phone, a wearable device, etc.
[0130] like Figure 5 As shown, the computer device 500 includes a computing unit 501, a ROM 502, a RAM 503, a bus 504, and an input / output (I / O) interface 505, and the computing unit 501, the ROM 502, and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0131] The computing unit 501 can perform various processes in the method embodiment of the present application according to the computer instructions stored in the read-only memory (ROM) 502 or the computer instructions loaded from the storage unit 508 to the random access memory (RAM) 503. The computing unit 501 can be various general and / or special processing components with processing and computing capabilities. The computing unit 501 may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. In some embodiments, the method provided in the embodiment of the present application can be implemented as a computer software program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 508.
[0132] RAM 505 may also store various programs and data required for the operation of device 500. Part or all of the computer program may be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509.
[0133] The input unit 506, output unit 507, storage unit 508 and communication unit 509 in the computer device 500 can be connected to the I / O interface 505. The input unit 506 can be, for example, a keyboard, a mouse, a touch screen, a microphone, etc. The output unit 507 can be, for example, a display, a speaker, an indicator light, etc. The device 500 can exchange information, data, etc. with other devices through the communication unit 509.
[0134] It should be noted that the device may also include other components necessary for normal operation, or may only include components necessary for implementing the solution of the present application, rather than all the components shown in the figure.
[0135] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof.
[0136] The computer instructions for implementing the method of the present application can be written in any combination of one or more programming languages. These computer instructions can be provided to the computing unit 501, so that when the computer instructions are executed by the computing unit 501 such as a processor, the steps involved in the method embodiment of the present application are executed.
[0137] The present application also provides a computer-readable storage medium on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the vehicle screen control method described in any of the above embodiments.
[0138] The computer-readable storage medium provided in the present application may be a tangible medium that may contain or store computer instructions for executing the steps involved in the method embodiments of the present application. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0139] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A vehicle screen control method, applied to a vehicle terminal, characterized in that: The method comprises: Receiving a screen control request encapsulated based on a preset communication protocol sent by a smart terminal, wherein the vehicle terminal is pre-installed with a first communication module set based on the preset communication protocol; The first communication module sequentially parses the screen control request according to the order of encapsulating the information of the preset communication protocol to obtain the prior verification information; If the verification information meets the preset verification rule, continue parsing the screen control request to obtain subsequent screen control information, wherein the screen control information includes focus update information and user operation information; The current focus is updated based on the focus update information, and the current component corresponding to the current focus is controlled based on the user operation information.
2. The vehicle screen control method according to claim 1, characterized in that: Before obtaining the prior verification information, the method further includes: The first communication module sequentially parses the screen control request according to the order of the preset communication protocol encapsulation information to obtain the protocol version information before the verification information; Determining a target algorithm corresponding to the protocol version information; The screen control request continues to be parsed based on the target algorithm.
3. The vehicle screen control method according to claim 1, characterized in that: Before obtaining the prior verification information, the method further includes: The first communication module sequentially parses the screen control request according to the order of encapsulating information of the preset communication protocol to obtain data length information before the verification information; Allocate a corresponding cache area based on the data length information; Storing the data corresponding to the screen control request in the cache area; The screen control request continues to be parsed in the cache area.
4. The vehicle screen control method according to claim 3, characterized in that: If the verification information meets the preset verification rule, continuing to parse the screen control request to obtain subsequent screen control information includes: If each of the verification information meets the preset verification rule, continue parsing the screen control request to obtain subsequent screen control information; If any of the verification information does not meet the preset verification rule, the execution of the screen control request is terminated, and the data corresponding to the screen control request stored in the cache area is deleted.
5. The vehicle screen control method according to claim 1, characterized in that: The method further comprises: Based on the screen control information, obtaining screen ID information; Based on the screen ID information, determining a target screen corresponding to the screen control request; The screen update result of the target screen is sent to the smart terminal.
6. The vehicle screen control method according to claim 1, characterized in that: The focus update information includes focus displacement information and focus state information, wherein the focus displacement information includes the moving direction of the focus, and the focus state information includes focus or out of focus; The updating of the current focus based on the focus update information comprises: Determining, according to the focus displacement information, a current focus position after movement based on the focus displacement information; The focus state information is obtained, and if the focus state information is focused, the first visual effect is updated; if the focus state information is out of focus, the second visual effect is updated.
7. The vehicle screen control method according to claim 1, characterized in that: The controlling the current component corresponding to the current focus based on the user operation information includes: Determining current component information corresponding to the current focus position based on the current focus position; According to the current component information and the user operation information, searching a hash table to determine a target operation method corresponding to the current component information and the user operation information, wherein for each component, a hash table is pre-established, and a corresponding relationship between the user operation information and the operation method is stored in the hash table; The current component is controlled based on the target operation method.
8. A vehicle screen control method, applied to a smart terminal, characterized in that: The method comprises: Receiving screen control information input by a user, wherein the screen control information includes focus update information and user operation information; Based on the second communication module, encapsulating the screen control information into a screen control request according to the order of encapsulating information in a preset communication protocol, wherein the smart terminal is pre-installed with a second communication module set based on the preset communication protocol; The screen control request is sent to the vehicle computer end, and the vehicle computer end parses the screen control request in sequence according to the order of information encapsulation of the preset communication protocol to obtain prior verification information. If the verification information meets the preset verification rule, the screen control request is continued to be parsed to obtain subsequent screen control information, focus update information and user operation information are obtained based on the screen control information, current focus is updated based on the focus update information, and current component corresponding to the current focus is controlled based on the user operation information.
9. A computer device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores computer instructions that can be executed by the at least one processor, and the computer instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having computer instructions stored thereon, characterized in that: The computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Screen projection method and system, computer equipment and storage medium
CN111026344A
Multi-signal comprehensive management and control method, intelligent terminal and storage medium
CN112181335A
Screen combination method and device
CN114942735A
Screen projection control method and device, terminal and storage medium
CN115390776A
Screen extension method and apparatus, and terminal device and computer-readable storage medium
WO2021227688A1
