Data interaction methods, devices, equipment and storage media
By creating a data processing thread between the instrument panel and the vehicle terminal, direct data interaction is achieved, solving the problem of low data interaction efficiency between the instrument panel and the vehicle terminal in the existing technology, and realizing efficient data transmission.
Patent Information
- Application Number
- CN202210387303.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-13
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2042-04-13
AI Technical Summary
Existing technologies fail to enable direct data interaction between the instrument panel and the vehicle terminal, resulting in low data transmission efficiency.
By creating a data processing thread between the instrument panel and the vehicle terminal, direct data interaction is achieved, including obtaining data transmission requests, creating corresponding data processing threads, sending data transmission instructions, and processing the data to be transmitted.
It enables direct data interaction between the instrument panel and the vehicle terminal, improving data transmission efficiency and avoiding reliance on intermediary third parties.
Smart Images

Figure CN114655013B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a data interaction method, apparatus, device, and storage medium. Background Technology
[0002] As a third space in people's lives, automobiles are increasingly influencing their lifestyles. To improve driver safety and convenience, data displayed on the in-vehicle terminal screen can be shown on the instrument panel screen, closer to the driver, thus achieving the purpose of assisted driving and improving driver convenience. However, existing technologies do not disclose how the instrument panel directly interacts with the in-vehicle terminal. Summary of the Invention
[0003] This invention provides a data interaction method, apparatus, device, and storage medium to enable direct data interaction between the instrument panel and the vehicle terminal.
[0004] According to one aspect of the present invention, a data interaction method is provided, applied to an instrument, the method comprising:
[0005] Obtain the data transmission request sent by the vehicle terminal;
[0006] Based on the data transmission request, a data processing thread is created;
[0007] The data processing thread sends a data transmission instruction to the vehicle terminal, so that the vehicle terminal can respond to the data transmission instruction and send the data to be transmitted.
[0008] The data to be transmitted is acquired and processed through the data processing thread.
[0009] According to another aspect of the present invention, a data interaction method is provided, applied to an in-vehicle terminal, the method comprising:
[0010] Send a data transmission request to the instrument terminal so that the instrument terminal can create a data processing thread based on the data transmission request and send data transmission instructions through the data processing thread;
[0011] The instrument receives the data transmission instruction and, in response to the data transmission instruction, sends the data to be transmitted so that the instrument can obtain and process the data to be transmitted through the data processing thread.
[0012] According to another aspect of the present invention, a data interaction device is provided for use in an instrument, the device comprising:
[0013] The request acquisition module is used to acquire data transmission requests sent by the vehicle terminal.
[0014] The thread creation module is used to create a data processing thread based on the request sent by the transmitted data.
[0015] The instruction sending module is used to send a data transmission instruction to the vehicle terminal through the data processing thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission instruction;
[0016] The data processing module is used to acquire and process the data to be transmitted through the data processing thread.
[0017] According to another aspect of the present invention, a data interaction device is provided for use in an in-vehicle terminal, the device comprising:
[0018] The request sending module is used to send a data transmission request to the instrument terminal, so that the instrument terminal can create a data processing thread according to the data transmission request and send data transmission instructions through the data processing thread.
[0019] The instruction acquisition module acquires the data transmission instruction and, in response to the data transmission instruction, sends the data to be transmitted so that the instrument terminal can acquire and process the data to be transmitted through the data processing thread.
[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0021] At least one processor; and
[0022] A memory communicatively connected to the at least one processor; wherein,
[0023] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data interaction method described in any embodiment of the present invention.
[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the data interaction method described in any embodiment of the present invention.
[0025] This invention provides a solution that obtains a data transmission request from an in-vehicle terminal; creates a data processing thread based on the request; sends a data transmission command to the in-vehicle terminal via the data processing thread, prompting the terminal to send the data to be transmitted; and acquires and processes the data to be transmitted via the data processing thread. This solution, by creating a data processing thread corresponding to the data to be transmitted on the instrument panel and processing the acquired data, enables direct data interaction between the instrument panel and the in-vehicle terminal without the need for an intermediary third party, thus improving data transmission efficiency between them.
[0026] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0027] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0028] Figure 1 This is a flowchart of a data interaction method provided in Embodiment 1 of the present invention;
[0029] Figure 2 This is a flowchart of a data interaction method provided according to Embodiment 2 of the present invention;
[0030] Figure 3 This is a flowchart of a data interaction method provided according to Embodiment 3 of the present invention;
[0031] Figure 4 This is a schematic diagram of the structure of a data interaction device according to Embodiment 4 of the present invention;
[0032] Figure 5 This is a schematic diagram of the structure of a data interaction device according to Embodiment 5 of the present invention;
[0033] Figure 6 This is a schematic diagram of the structure of an electronic device that implements the data interaction method of the present invention. Detailed Implementation
[0034] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0035] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0036] Example 1
[0037] Figure 1 This is a flowchart illustrating a data interaction method provided in Embodiment 1 of the present invention. This embodiment is applicable to data interaction between a vehicle's instrument panel and an in-vehicle terminal. The method can be executed by a data interaction device, which can be implemented in hardware and / or software and can be configured in an electronic device. This method can be applied to the instrument panel, such as... Figure 1 As shown, the method includes:
[0038] S110. Obtain the data transmission request sent by the vehicle terminal.
[0039] The data transmission request can be initiated by the vehicle terminal and is used to establish a data transmission channel between the vehicle terminal and the instrument panel.
[0040] For example, to improve convenience for drivers, they can request that data from the in-vehicle terminal be displayed on the instrument panel. Therefore, in response to the driver's data request, the in-vehicle terminal can send a data transmission request to the instrument panel, requesting that the data the driver wants be sent for display.
[0041] S120. Create a data processing thread based on the data transmission request.
[0042] The data processing thread is used to process the data to be transmitted sent by the vehicle terminal after the data transmission channel between the vehicle terminal and the instrument panel is successfully established.
[0043] For example, the data type of the data to be transmitted can be determined based on the data transmission request, and different data processing threads can be created for different data types. The data type of the data to be transmitted can include at least one of text, video, file, and image types. For instance, if the instrument panel determines from the data transmission request that the data type the vehicle terminal wants to transmit to the instrument panel is video, then the instrument panel will create a data processing thread capable of processing video data transmissions.
[0044] Text-type data to be transmitted may include call log data and upgrade status data; video-type data to be transmitted may include navigation data; file-type data to be transmitted may include log file data; and image-type data to be transmitted may include image data.
[0045] S130: Send a data transmission command to the vehicle terminal through the data processing thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission command.
[0046] Data transmission commands can be sent from the instrument cluster to the vehicle terminal, indicating that the data transmission channel between the two devices has been successfully established. The data transmission command signals to the vehicle terminal that the data transmission channel has been successfully established and that data to be transmitted can now be sent to the instrument cluster.
[0047] After receiving a data transmission command, the vehicle-mounted terminal can send the data to be transmitted to the instrument cluster. It should be noted that during the process of sending data to the instrument cluster, the vehicle-mounted terminal can use a pre-defined communication protocol to send the data.
[0048] For example, the operating system of the vehicle terminal can be Android, and the operating system of the instrument panel can be QNX. Accordingly, when the vehicle terminal sends data of different data types to the instrument panel, the data can be sent based on different preset communication protocols. For example, if the data type of the data to be transmitted is text, it can be based on the UDP (User Datagram Protocol) Some / IP (Scalable service-oriented middleware over IP) protocol.
[0049] S140. Obtain and process the data to be transmitted through the data processing thread.
[0050] For example, the instrument terminal acquires the data to be transmitted through a data processing thread, processes the data accordingly, and then transmits the processed data to the corresponding functional modules on the instrument terminal. Optionally, the instrument terminal can also broadcast the processed data to be transmitted, allowing each functional module to listen for the data to be transmitted, thereby acquiring the data to be transmitted.
[0051] This invention provides a solution that obtains a data transmission request from an in-vehicle terminal; creates a data processing thread based on the request; sends a data transmission command to the in-vehicle terminal via the data processing thread, prompting the terminal to send the data to be transmitted; and acquires and processes the data to be transmitted via the data processing thread. This solution, by creating a data processing thread corresponding to the data to be transmitted on the instrument panel and processing the acquired data, enables direct data interaction between the instrument panel and the in-vehicle terminal without the need for an intermediary third party, thus improving data transmission efficiency between them.
[0052] Example 2
[0053] Figure 2 This is a flowchart of a data interaction method provided in Embodiment 2 of the present invention. This embodiment is an optimization and improvement based on the above technical solutions.
[0054] Furthermore, the phrase "create a data processing thread based on the data transmission request" is refined to "determine the data type of the data to be transmitted based on the data transmission request; and create a data processing thread corresponding to the data type" to improve the creation process of the data processing thread.
[0055] The phrase "acquire and process the data to be transmitted through the data processing thread" is refined to "acquire the data to be transmitted through the data processing thread; process the data to be transmitted according to the data processing method corresponding to the data to be transmitted," in order to improve the process of processing the data to be transmitted.
[0056] like Figure 2 As shown, the method includes the following specific steps:
[0057] S210. Obtain the data transmission request sent by the vehicle terminal.
[0058] S220. Determine the data type of the data to be transmitted based on the data transmission request.
[0059] The data type to be transmitted includes at least one of the following: text, video, file, and image.
[0060] S230. Based on the data type, create a data processing thread corresponding to the data type.
[0061] The instrument can create a data processing thread corresponding to the data type to be transmitted, and the created thread is used specifically to receive and process the data to be transmitted of that data type.
[0062] For example, if the data to be transmitted is of type text, a dedicated thread for receiving text-type data to be transmitted can be created, and a data processing thread based on that data can be used to process the text-type data to be transmitted.
[0063] S240: Send a data transmission command to the vehicle terminal through the data processing thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission command.
[0064] S250: Obtain the data to be transmitted through the data processing thread.
[0065] S260. Process the data to be transmitted according to the data processing method corresponding to the data to be transmitted.
[0066] Different data types require different data processing methods. The data to be transmitted can be processed according to the data processing thread corresponding to that data type, and the processed data can be broadcast so that various functional modules on the instrument can listen for it.
[0067] In an optional embodiment, if the data to be transmitted is of text type, such as call log data and upgrade status information, the in-vehicle terminal can send the text-type data to the instrument panel based on a preset communication protocol. For example, if the in-vehicle terminal's operating system is Android and the instrument panel's operating system is QNX, the in-vehicle terminal can send the text-type data to the instrument panel based on the UDP Some / IP protocol.
[0068] The instrument terminal processes the text-type data to be transmitted using a data processing thread specifically designed for this data type. The processed data is then broadcast via the PPS (Protocol and Parameter Selection) protocol, and its various functional modules listen for this broadcast. These modules may include a human-machine interface display module and a log processing module.
[0069] In an optional embodiment, if the data to be transmitted is of video type, the data processing thread includes a video receiving thread and a video playback thread. Accordingly, sending a data transmission instruction to the vehicle terminal via the data processing thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission instruction, includes: sending a data transmission instruction to the vehicle terminal via the video receiving thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission instruction; correspondingly, acquiring and processing the data to be transmitted via the data processing thread includes: acquiring and storing the data to be transmitted via the video receiving thread; the video receiving thread notifying the video playback thread to read the data to be transmitted, and the video playback thread broadcasting the data to be transmitted so that various functional modules on the instrument panel can listen to the data to be transmitted.
[0070] If the data to be transmitted is video, such as navigation data, two data processing threads are created: a video receiving thread and a video playback thread. The vehicle terminal can send the data to be transmitted to the instrument panel based on a pre-defined communication protocol. The instrument panel receives the data through the video receiving thread. After receiving the data, the instrument panel writes it to a buffer and notifies the video playback thread to read the data from the buffer. It should be noted that the video playback thread can monitor the video receiving thread in real-time or periodically. When it receives a notification from the video receiving thread that data to be transmitted has been acquired, it reads the data written to the buffer by the video receiving thread and broadcasts it so that various functional modules on the instrument panel can listen for the data to be transmitted. For example, the playback module can listen for and play the data to be transmitted.
[0071] In an optional embodiment, if the data to be transmitted is of file type, for example, log data generated by the instrument panel during the upgrade process, the vehicle terminal can actively initiate a log data acquisition request to the instrument panel, and the instrument panel can send the log data to the vehicle terminal according to the log data acquisition request sent by the vehicle terminal.
[0072] For example, in response to a log data retrieval request for file-type log data from the instrument panel, a log output request is initiated to the instrument panel. After receiving the log output request, the instrument panel creates a corresponding log data processing thread. Within this thread, the instrument panel broadcasts the received log output request so that other functional modules can listen for it. When a log module that has subscribed to the request hears it, it determines whether to output log data based on the time. The log data processing thread then sends the data to the vehicle terminal based on the log module's decision.
[0073] If the log module determines that no log file is output, the instrument cluster sends a "no log file output" message to the vehicle terminal via the log data processing thread. If the log module determines that a log file is output, the instrument cluster, through its log data processing thread, requests to download the log file package based on the log file information. After successfully downloading the log file package, the instrument cluster sends a log upload request command to the vehicle terminal via the log data processing thread. Upon receiving the log upload request command, the vehicle terminal sends a "start log upload" command to the instrument cluster. After receiving the "start log upload" command, the vehicle terminal sends the log file to the vehicle terminal via the log data processing thread and monitors the sending status in real time. Once the log file is successfully uploaded, the instrument cluster sends a log upload success command to the vehicle terminal.
[0074] In an optional embodiment, if the data type to be transmitted is an image, the data to be transmitted is processed according to the data processing method corresponding to the data to be transmitted, including: obtaining the data to be transmitted in the form of a file compressed package; determining whether the data to be transmitted has been transmitted completely according to the file identifier of the file compressed package; if so, storing the data to be transmitted and broadcasting the stored data to be transmitted so that the various functional modules on the instrument can listen to the data to be transmitted.
[0075] A dedicated image data processing thread is created to acquire and process image-type data to be transmitted. This thread acquires and stores the data, which is transmitted in the form of compressed file packages. The image data processing thread then broadcasts the data to be transmitted using the PPS protocol, allowing various functional modules on the instrument panel to listen for the transmitted data.
[0076] It should be noted that the image data processing thread can determine whether the data to be transmitted has been completed based on the file identifier of the compressed file. For example, the vehicle terminal needs to compress the image data to be transmitted into at least one compressed file, and assign a unique identifier to each compressed file. The image data processing thread monitors the information of the compressed file, determining whether the identifier of the current compressed file is equal to a preset file identifier. If so, the compressed file is stored in a preset target image file; otherwise, it determines whether the identifier of the compressed file belongs to another image file, and stores the compressed file belonging to that other image file in the corresponding image file. When the data in the compressed file of the target image file is the same as the number of compressed files that the vehicle terminal needs to transmit, the data transmission can be considered complete.
[0077] This embodiment determines the data type of the data to be transmitted based on the data transmission request; according to the data type, a corresponding data processing thread is created, enabling the transmission of different data types between the vehicle terminal and the instrument panel. The data processing thread acquires the data to be transmitted; and processes the data according to the corresponding data processing method. By using different data processing methods for different data types, the vehicle terminal and instrument panel can transmit various data types of data, and the instrument panel is capable of processing various data types of data to be transmitted.
[0078] Example 3
[0079] Figure 3 This is a flowchart illustrating a data interaction method provided in Embodiment 3 of the present invention. This embodiment is applicable to data interaction between a vehicle's instrument panel and an in-vehicle terminal. The method can be executed by a data interaction device, which can be implemented in hardware and / or software and can be configured in an electronic device. This method can be applied to in-vehicle terminals, such as… Figure 3 As shown, the method includes:
[0080] S310. Send a data transmission request to the instrument terminal so that the instrument terminal can create a data processing thread based on the data transmission request and send data transmission instructions through the data processing thread.
[0081] The data transmission request can be initiated by the vehicle terminal and is used to establish a data transmission channel between the vehicle terminal and the instrument panel.
[0082] Drivers can request that data from the in-vehicle terminal be displayed on the instrument cluster. Therefore, in response to the driver's data request, the in-vehicle terminal can send a data transmission request to the instrument cluster, requesting that the data the driver wants be sent for display.
[0083] The data processing thread is used to process the data to be transmitted sent by the vehicle terminal after the data transmission channel between the vehicle terminal and the instrument panel is successfully established.
[0084] For example, the vehicle terminal can respond to the driver's data acquisition request and request the data to be displayed on the instrument panel; the vehicle terminal can also send a data transmission request to the instrument panel based on the driver's data acquisition request.
[0085] S320: Obtain data transmission command, and in response to the data transmission command, send the data to be transmitted so that the instrument can obtain and process the data to be transmitted through the data processing thread.
[0086] The vehicle terminal receives the data transmission command sent by the instrument panel, and in response to the data transmission command, sends the data to be transmitted to the instrument panel so that the instrument panel can obtain and process the data to be transmitted through the data processing thread.
[0087] This invention provides a solution that obtains a data transmission request from an in-vehicle terminal; creates a data processing thread based on the request; sends a data transmission command to the in-vehicle terminal via the data processing thread, prompting the terminal to send the data to be transmitted; and acquires and processes the data to be transmitted via the data processing thread. This solution, by creating a data processing thread corresponding to the data to be transmitted on the instrument panel and processing the acquired data, enables direct data interaction between the instrument panel and the in-vehicle terminal without the need for an intermediary third party, thus improving data transmission efficiency between them.
[0088] Example 4
[0089] Figure 4 This is a schematic diagram of a data interaction device provided in Embodiment 4 of the present invention. The data interaction device provided in this embodiment of the present invention is applicable to situations where data interaction occurs between a vehicle's instrument panel and an in-vehicle terminal. This device can be implemented using software and / or hardware. This device can be applied to an instrument panel, such as... Figure 4 As shown, the device specifically includes: a request acquisition module 401, a thread creation module 402, an instruction sending module 403, and a data processing module 404. Among them,
[0090] The request acquisition module 401 is used to acquire the data transmission request sent by the vehicle terminal;
[0091] The thread creation module 402 is used to create a data processing thread based on the request sent by the transmitted data.
[0092] The instruction sending module 403 is used to send a data transmission instruction to the vehicle terminal through the data processing thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission instruction;
[0093] The data processing module 404 is used to acquire and process the data to be transmitted through the data processing thread.
[0094] This invention provides a solution that obtains a data transmission request from an in-vehicle terminal; creates a data processing thread based on the request; sends a data transmission command to the in-vehicle terminal via the data processing thread, prompting the terminal to send the data to be transmitted; and acquires and processes the data to be transmitted via the data processing thread. This solution, by creating a data processing thread corresponding to the data to be transmitted on the instrument panel and processing the acquired data, enables direct data interaction between the instrument panel and the in-vehicle terminal without the need for an intermediary third party, thus improving data transmission efficiency between them.
[0095] Optionally, the thread creation module 402 includes:
[0096] A data type determination unit is used to determine the data type of the data to be transmitted based on the data transmission request.
[0097] The thread creation unit is used to create a data processing thread corresponding to the data type.
[0098] Optionally, the data type of the data to be transmitted includes at least one of text, video, file, and image types.
[0099] Optionally, if the data to be transmitted is of video type, then the instruction sending module 403 includes:
[0100] The instruction sending unit is used to send a data transmission instruction to the vehicle terminal through the video receiving thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission instruction;
[0101] The data processing module 404 includes:
[0102] A data storage unit is used to acquire and store the data to be transmitted through the video receiving thread;
[0103] The data reading unit is used to notify the video playback thread to read the data to be transmitted by the video receiving thread, and the video playback thread broadcasts the data to be transmitted so that the various functional modules of the instrument can listen to the data to be transmitted.
[0104] Optionally, the data processing module 404 includes:
[0105] The data acquisition unit is used to acquire the data to be transmitted through the data processing thread;
[0106] The data processing unit is used to process the data to be transmitted according to the data processing method corresponding to the data to be transmitted.
[0107] Optionally, if the data to be transmitted is of image type, then the data processing unit includes:
[0108] The data acquisition subunit is used to acquire the data to be transmitted based on the file compressed package format;
[0109] The data judgment subunit is used to determine whether the data to be transmitted has been transmitted completely based on the file identifier of the compressed file.
[0110] The data storage subunit is used to store the data to be transmitted after the transmission of the data to be transmitted is completed, and to broadcast the stored data to be transmitted so that the functional modules of the instrument can listen to the data to be transmitted.
[0111] The aforementioned data interaction device can execute the data interaction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing each data interaction method.
[0112] Example 5
[0113] Figure 5 This is a schematic diagram of a data interaction device provided in Embodiment 5 of the present invention. The data interaction device provided in this embodiment of the present invention is applicable to situations where data interaction occurs between a vehicle's instrument panel and an in-vehicle terminal. This device can be implemented using software and / or hardware. This device can be applied to in-vehicle terminals, such as… Figure 5 As shown, the device specifically includes: a request sending module 501 and an instruction acquisition module 502. Wherein,
[0114] The request sending module 501 is used to send a data transmission request to the instrument terminal, so that the instrument terminal can create a data processing thread according to the data transmission request and send a data transmission instruction through the data processing thread.
[0115] The instruction acquisition module 502 acquires the data transmission instruction and sends the data to be transmitted in response to the data transmission instruction, so that the instrument terminal can acquire and process the data to be transmitted through the data processing thread.
[0116] The aforementioned data interaction device can execute the data interaction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing each data interaction method.
[0117] Example 6
[0118] Figure 6A schematic diagram of an electronic device 60 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0119] like Figure 6 As shown, the electronic device 60 includes at least one processor 61 and a memory, such as a read-only memory (ROM) 62 and a random access memory (RAM) 63, communicatively connected to the at least one processor 61. The memory stores computer programs executable by the at least one processor. The processor 61 can perform various appropriate actions and processes based on the computer program stored in the ROM 62 or loaded into the RAM 63 from storage unit 68. The RAM 63 may also store various programs and data required for the operation of the electronic device 60. The processor 61, ROM 62, and RAM 63 are interconnected via a bus 64. An input / output (I / O) interface 65 is also connected to the bus 64.
[0120] Multiple components in electronic device 60 are connected to I / O interface 65, including: input unit 66, such as keyboard, mouse, etc.; output unit 67, such as various types of monitors, speakers, etc.; storage unit 68, such as disk, optical disk, etc.; and communication unit 69, such as network card, modem, wireless transceiver, etc. Communication unit 69 allows electronic device 60 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0121] Processor 61 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 61 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 61 performs the various methods and processes described above, such as data interaction methods.
[0122] In some embodiments, the data interaction method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 68. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 60 via ROM 62 and / or communication unit 69. When the computer program is loaded into RAM 63 and executed by processor 61, one or more steps of the data interaction method described above may be performed. Alternatively, in other embodiments, processor 61 may be configured to perform the data interaction method by any other suitable means (e.g., by means of firmware).
[0123] Various embodiments of the systems and techniques described above herein can be implemented 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-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0124] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0125] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0126] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0127] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0128] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0129] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
Claims
1. A data interaction method, characterized in that, This applies to situations where data exchange occurs between the vehicle's instrument panel and the in-vehicle terminal. It is used on the instrument panel and includes: Obtain the data transmission request sent by the vehicle terminal; According to the data transmission request, a data processing thread is created; wherein, the data processing thread is used to process the data to be transmitted sent by the vehicle terminal after the data transmission channel between the vehicle terminal and the instrument panel is successfully established. The data processing thread sends a data transmission instruction to the vehicle terminal, so that the vehicle terminal can respond to the data transmission instruction and send the data to be transmitted. The data processing thread acquires and processes the data to be transmitted. The step of creating a data processing thread based on the data transmission request includes: The data type of the data to be transmitted is determined based on the data transmission request. Create a data processing thread corresponding to the data type; The process of acquiring and processing the data to be transmitted through the data processing thread includes: The data to be transmitted is obtained through the data processing thread; If the data type of the data to be transmitted is an image, and the data processing thread is an image data processing thread, then the data to be transmitted is processed according to the data processing method corresponding to the data to be transmitted, including: Retrieve data to be transmitted in the form of a compressed file package; Based on the file identifier of the compressed file, determine whether the data to be transmitted has been completely transmitted; If so, the data to be transmitted is stored and broadcast so that each functional module on the instrument can listen to the data to be transmitted.
2. The method according to claim 1, characterized in that, The data type of the data to be transmitted includes at least one of the following: text, video, file, and image.
3. The method according to claim 1, characterized in that, If the data to be transmitted is of video type, then the data processing thread includes a video receiving thread and a video playback thread; Accordingly, the step of sending a data transmission command to the vehicle terminal through the data processing thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission command, includes: The video receiving thread sends a data transmission command to the vehicle terminal, so that the vehicle terminal can respond to the data transmission command and send the data to be transmitted. Accordingly, the step of acquiring and processing the data to be transmitted through the data processing thread includes: The data to be transmitted is acquired and stored through the video receiving thread; The video receiving thread notifies the video playback thread to read the data to be transmitted, and the video playback thread broadcasts the data to be transmitted so that the various functional modules on the instrument can listen to the data to be transmitted.
4. A data interaction method, characterized in that, This applies to situations where data exchange occurs between the vehicle's instrument panel and the in-vehicle terminal. It is used in in-vehicle terminals, including: A data transmission request is sent to the instrument panel, so that the instrument panel can create a data processing thread according to the data transmission request and send data transmission instructions through the data processing thread; wherein, the data processing thread is used to process the data to be transmitted sent by the vehicle terminal after the data transmission channel between the vehicle terminal and the instrument panel is successfully established. The data transmission instruction is obtained, and in response to the data transmission instruction, data to be transmitted is sent so that the instrument terminal can obtain and process the data to be transmitted through the data processing thread; The instrument terminal creates a data processing thread based on the data transmission request, including: The data type of the data to be transmitted is determined based on the data transmission request. Create a data processing thread corresponding to the data type; The process of acquiring and processing the data to be transmitted through the data processing thread includes: The data to be transmitted is obtained through the data processing thread; If the data type of the data to be transmitted is an image, and the data processing thread is an image data processing thread, then the data to be transmitted is processed according to the data processing method corresponding to the data to be transmitted, including: Retrieve data to be transmitted in the form of a compressed file package; Based on the file identifier of the compressed file, determine whether the data to be transmitted has been completely transmitted; If so, the data to be transmitted is stored and broadcast so that each functional module on the instrument can listen to the data to be transmitted.
5. A data interaction device, characterized in that, This applies to situations where data exchange occurs between the vehicle's instrument panel and the in-vehicle terminal. It is used on the instrument panel and includes: The request acquisition module is used to acquire data transmission requests sent by the vehicle terminal; A thread creation module is used to create a data processing thread according to the data transmission request; wherein, the data processing thread is used to process the data to be transmitted sent by the vehicle terminal after the data transmission channel between the vehicle terminal and the instrument panel is successfully established; an instruction sending module is used to send a data transmission instruction to the vehicle terminal through the data processing thread, so that the vehicle terminal can send the data to be transmitted in response to the data transmission instruction. The data processing module is used to acquire and process the data to be transmitted through the data processing thread; The thread creation module includes: A data type determination unit is used to determine the data type of the data to be transmitted based on the data transmission request. A thread creation unit is used to create a data processing thread corresponding to the data type. The data processing module includes: The data acquisition unit is used to acquire the data to be transmitted through the data processing thread; If the data type of the data to be transmitted is an image, and the data processing thread is an image data processing thread, the data processing unit includes: The data acquisition subunit is used to acquire the data to be transmitted based on the file compressed package format; The data judgment subunit is used to determine whether the data to be transmitted has been transmitted completely based on the file identifier of the compressed file. The data storage subunit is used to store the data to be transmitted after the transmission of the data to be transmitted is completed, and to broadcast the stored data to be transmitted so that the functional modules of the instrument can listen to the data to be transmitted.
6. A data interaction device, characterized in that, This applies to situations where data exchange occurs between the vehicle's instrument panel and the in-vehicle terminal. It is used in in-vehicle terminals, including: The request sending module is used to send a data transmission request to the instrument panel, so that the instrument panel can create a data processing thread according to the data transmission request and send a data transmission instruction through the data processing thread; wherein, the data processing thread is used to process the data to be transmitted sent by the vehicle terminal after the data transmission channel between the vehicle terminal and the instrument panel is successfully established. The instruction acquisition module acquires the data transmission instruction and sends the data to be transmitted in response to the data transmission instruction, so that the instrument terminal can acquire and process the data to be transmitted through the data processing thread; The instrument terminal creates a data processing thread based on the data transmission request, including: The data type of the data to be transmitted is determined based on the data transmission request. Create a data processing thread corresponding to the data type; The process of acquiring and processing the data to be transmitted through the data processing thread includes: The data to be transmitted is obtained through the data processing thread; If the data type of the data to be transmitted is an image, and the data processing thread is an image data processing thread, then the data to be transmitted is processed according to the data processing method corresponding to the data to be transmitted, including: Retrieve data to be transmitted in the form of a compressed file package; Based on the file identifier of the compressed file, determine whether the data to be transmitted has been completely transmitted; If so, the data to be transmitted is stored and broadcast so that each functional module on the instrument can listen to the data to be transmitted.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data interaction method according to any one of claims 1-4 or 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the data interaction method according to any one of claims 1-4 or 5.
Citation Information
Patent Citations
Vehicle-mounted information system and control method thereof
CN105451154A
Audio-video data processing method and device as well as vehicle-mounted terminal
CN105872668A
User interface rendering method and device thereof
CN106354512A
Remote control monitoring device and method for non-excavation drilling machine
CN109057771A
Communication method between vehicle machine and instrument
CN111147495A