Data processing method, device and equipment based on TBOX equipment and storage medium
The method and device enhance TBOX data management by identifying operation types and sources, ensuring real-time data processing and efficient storage, addressing data loss and limited storage issues in existing systems.
Patent Information
- Application Number
- CN202411183764.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-20
AI Technical Summary
Existing TBOX data management systems in vehicles primarily focus on log data transmission and lack real-time data transfer capabilities, leading to data loss and overwriting due to insufficient storage space and limited data type support.
A data processing method and device that identifies operation types and data sources for TBOX data, adding operation and type identifiers as headers, enabling real-time data transmission and processing, including save or return operations, and managing data storage efficiently.
Ensures timely and accurate data processing, improves storage efficiency, supports multiple data types, and enhances data management flexibility and reliability by providing clear instructions for data classification and transmission.
Smart Images

Figure CN119166010A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device, equipment and storage medium based on TBOX equipment. Background Art
[0002] With the rapid development of intelligent connected vehicle technology, the role of external TBOX devices in modern vehicles is becoming increasingly important. TBOX is not only responsible for collecting various types of vehicle data, but also for sending these data to car owners or service providers. However, with the complexity of its functions, the amount of data generated by TBOX has increased dramatically, resulting in limited storage space and the problem of insufficient storage space, which in turn affects the normal operation of TBOX.
[0003] Existing TBOX data management solutions, such as transferring log data to the vehicle computer through the USB interface and storing it in a USB flash drive. However, these solutions are usually only used when there is a problem with the TBOX, and they mainly focus on the transmission of log data. The disadvantage is that it is impossible to transmit and save various types of data generated by the TBOX to the vehicle computer in real time, resulting in the earlier data being easily overwritten when the data volume is large, which makes it difficult to locate and analyze the problem. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a data processing method, apparatus, device and storage medium based on TBOX equipment to solve the problem that the TBOX data management system only supports log data transmission, has a single data type, and cannot transmit and save data to the vehicle computer in real time, resulting in data being easily lost and overwritten.
[0005] In a first aspect, an embodiment of the present invention provides a data processing method based on a TBOX device, which is applied to the TBOX device. The method includes:
[0006] Detect the control operations performed by the TBOX device on the original data request in the vehicle terminal;
[0007] Determine the operation type according to the control operation, and use the operation type to match in a preset operation identifier list to obtain an operation identifier corresponding to the operation type;
[0008] Determine the data source according to the original data, and use the data source to match in a preset data type identification list to obtain a type identification corresponding to the data source;
[0009] The operation identifier and the type identifier are respectively added to the original data as instruction headers to obtain transmission data, and the transmission data is sent to the vehicle terminal associated with the TBOX device.
[0010] In a second aspect, an embodiment of the present invention provides a data processing method based on a TBOX device, which is applied to a vehicle terminal, and the method includes:
[0011] Receive transmission data sent by TBOX equipment;
[0012] Parsing the operation identifier and the type identifier in the transmission data;
[0013] Determine the control operation requested to be performed by the TBOX device based on the operation identifier, and determine the data source of the transmission data based on the type identifier;
[0014] According to the control operation and the data source, a corresponding data processing operation is performed.
[0015] In an optional implementation manner of the present application, performing corresponding data processing operations according to the control operation and the data source includes:
[0016] If the data processing operation is a save operation, obtaining a data source in the transmission data;
[0017] Traversing the data management configuration file to determine data items that match the data source;
[0018] The saving operation is performed according to a matching result of the data source in the data management configuration file.
[0019] In an optional implementation manner of the present application, performing the saving operation according to the matching result of the data source in the data management configuration file includes:
[0020] If there is a matching data item, modify the data capacity of the target data item that matches the data source, and save the data content in the transmission data to the storage location corresponding to the target data item;
[0021] Or, if there is no matching data item, an initial data item is created according to the data source, and a corresponding data item record is added to the data management configuration file, and the data content in the transmission data is saved to the storage location corresponding to the initial data item.
[0022] In an optional implementation manner of the present application, performing the saving operation according to the matching result of the data source in the data management configuration file includes:
[0023] If the data processing operation is a return operation, obtaining a data source in the transmission data;
[0024] Traversing a data management configuration file based on the data source to determine a data item that matches the data source;
[0025] If there is a matching data item, the data content in the target data item matching the data source is read and the data content is returned to the TBOX device, or, if there is no matching data item, a corresponding error message is generated and the error message is returned to the TBOX device.
[0026] In an optional embodiment of the present application, the method further includes:
[0027] Detecting the data length of the data content, and determining whether the data length exceeds a preset transmission threshold;
[0028] If the preset transmission threshold is exceeded, the data content is segmented to obtain segmented data, and the segmented data is sequentially transmitted back to the TBOX device in the segmentation order; or, if the preset transmission threshold is not exceeded, the data content is directly transmitted back to the TBOX device;
[0029] The return status of the data content is monitored, and when the return status is a success status, feedback information is generated and sent to the TBOX device.
[0030] In a third aspect, an embodiment of the present invention provides a data processing device based on a TBOX device, which is applied to the TBOX device, and the device includes:
[0031] A detection module, used to detect the control operation performed by the TBOX device on the original data request in the vehicle terminal;
[0032] A first matching module, configured to determine an operation type according to the control operation, and use the operation type to match a preset operation identifier list to obtain an operation identifier corresponding to the operation type;
[0033] A second matching module is used to determine the data source according to the original data, and use the data source to match in a preset data type identification list to obtain a type identification corresponding to the data source;
[0034] The sending module is used to add the operation identifier and the type identifier as instruction headers to the original data respectively, obtain transmission data, and send the transmission data to the vehicle terminal associated with the TBOX device.
[0035] In a fourth aspect, an embodiment of the present invention provides a data processing device based on a TBOX device, which is applied to a vehicle terminal, and the device includes:
[0036] The receiving module is used to receive the transmission data sent by the TBOX device;
[0037] A parsing module, used for parsing the operation identifier and the type identifier in the transmission data;
[0038] a determination module, configured to determine the control operation requested to be executed by the TBOX device based on the operation identifier, and to determine the data source of the transmission data based on the type identifier;
[0039] The execution module is used to execute corresponding data processing operations according to the control operation and the data source.
[0040] In a fifth aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0041] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.
[0042] The method provided in the embodiment of the present application has the following beneficial effects:
[0043] The method provided in the embodiment of the present application monitors the control operation of the TBOX device on the vehicle side in real time to ensure the timeliness and accuracy of data processing. By determining the operation type and matching the operation identifier, as well as determining the data source and matching the type identifier, clear instructions are provided for data transmission and processing, improving the efficiency and accuracy of data processing. The operation identifier and type identifier are added to the original data and sent to the vehicle side in real time, which effectively solves the problem of insufficient TBOX storage space, realizes centralized storage and management of data, and facilitates subsequent data analysis and use.
[0044] The method provided in the embodiment of the present application receives the transmission data sent by the TBOX device via TCP / SOCKET in real time, parses the operation identifier and type identifier therein, and provides clear instructions for subsequent data processing. The vehicle terminal can accurately identify the operation request and data source of the TBOX device, perform corresponding data processing operations, and realize effective management and utilization of data. This method not only improves the flexibility and efficiency of data processing, but also solves the problem of insufficient storage space of TBOX, and supports the expansion of more data types.
[0045] The method of the embodiment of the present application provides accurate information for subsequent data classification, saving or returning by identifying the data processing operation type (save or return) and obtaining the data source of the transmitted data. Traverse the data management configuration file to determine the data items that match the data source, realize accurate classification and management of data, and improve processing efficiency. Perform save or return operations based on the matching results to ensure accurate storage or return of data, meet equipment requirements, and improve transmission reliability and stability. Detect the data length, determine whether it exceeds the preset threshold, and optimize transmission efficiency. Monitor the return status and generate feedback information when successful, enhance the interactivity and reliability of transmission, and facilitate users to understand the transmission situation. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 is a flow chart of a data processing method based on a TBOX device according to some embodiments of the present invention;
[0048] Figure 2 is a flow chart of another data processing method based on a TBOX device according to some embodiments of the present invention;
[0049] Figure 3 is a schematic diagram of the structure of a vehicle-side data management configuration file according to an embodiment of the present invention;
[0050] Figure 4 is a flow chart of a data interaction architecture of a vehicle networking system according to an embodiment of the present invention;
[0051] Figure 5 is a flow chart of data transmission and confirmation from TBOX to HU according to an embodiment of the present invention;
[0052] Figure 6 is a flow chart of a TBOX requesting and receiving HU data according to an embodiment of the present invention;
[0053] Figure 7 is a flowchart of data writing and creation according to an embodiment of the present invention;
[0054] Figure 8 is a flow chart of data reading and existence checking according to an embodiment of the present invention;
[0055] Fig. 9is a structural block diagram of a data processing device based on a TBOX device according to an embodiment of the present invention;
[0056] Fig.10 is a structural block diagram of another data processing device based on TBOX equipment according to an embodiment of the present invention;
[0057] Fig.11 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0059] According to an embodiment of the present invention, a data processing method, apparatus, device and storage medium based on a TBOX device are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0060] In this embodiment, a data processing method based on TBOX equipment is provided, which is applied to TBOX equipment. Figure 1 is a flow chart of a data processing method based on a TBOX device according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0061] Step S11, detecting the control operation performed by the TBOX device on the original data request in the vehicle terminal.
[0062] In the embodiment of the present application, the key starting point of the data processing flow is to identify and detect the control operation in the original data request initiated by the TBOX device to the vehicle terminal. The control operation refers to the specific action or instruction that the TBOX device wants the vehicle terminal to perform, such as saving data, pulling data, etc. The implementation of this step requires an effective communication connection to be established between the TBOX device and the vehicle terminal, so that the TBOX device can accurately convey its control operation request to the vehicle terminal. In practical applications, this communication connection can be achieved through network protocols such as TCP / SOCKET.
[0063] Step S12: determining the operation type according to the control operation, and using the operation type to match in a preset operation identifier list to obtain an operation identifier corresponding to the operation type.
[0064] In the embodiment of the present application, the TBOX device can initiate various types of control operations on the vehicle terminal, such as saving data, pulling data, etc. In order to accurately identify and respond to these operations, it is necessary to preset an operation identification list, which contains all operation types and their corresponding unique identifications. When a control operation is detected, it is matched in the preset operation identification list according to the characteristics and attributes of the operation to find the corresponding operation type and its identification.
[0065] Step S13, determining the data source based on the original data, and using the data source to match in a preset data type identifier list to obtain a type identifier corresponding to the data source.
[0066] In the embodiment of the present application, the TBOX device can process data from different data sources, such as sensor data, vehicle status data, etc. In order to accurately identify and process these data, it is necessary to preset a data type identification list, which contains all data sources and their corresponding unique identifications. When receiving raw data, it will match it in the preset data type identification list according to the characteristics and attributes of the data to find the corresponding data source and its identification.
[0067] Step S14, adding the operation identifier and the type identifier as instruction headers to the original data, obtaining transmission data, and sending the transmission data to the vehicle terminal associated with the TBOX device.
[0068] In the embodiment of the present application, after obtaining the operation identifier and the type identifier, they are added to the original data as instruction headers. In this way, the original data is encapsulated into transmission data with a specific instruction header, which can be accurately conveyed to the vehicle terminal for subsequent processing. Finally, the transmission data is sent to the vehicle terminal associated with the TBOX device. After receiving the transmission data, the vehicle terminal will perform corresponding data processing operations according to the operation identifier and type identifier in the instruction header, such as saving data to disk or reading data and sending it back to the TBOX terminal.
[0069] In this embodiment, a data processing method based on TBOX equipment is provided, which is applied to the vehicle terminal. Figure 2 is a flow chart of a data processing method based on a TBOX device according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0070] Step S21, receiving transmission data sent by the TBOX device.
[0071] In the embodiment of the present application, when the TBOX device needs to transmit data to the vehicle terminal in real time, it will encapsulate the data into transmission data and send it to the vehicle terminal through a transmission protocol such as TCP / SOCKET. After receiving the transmission data, the vehicle terminal will perform a series of processing operations to realize operations such as storage, management or return of the data.
[0072] Step S22, parsing the operation identifier and the type identifier in the transmission data.
[0073] In the embodiment of the present application, the transmission data is encapsulated and sent by the TBOX device, which contains important information such as operation identification and type identification. After receiving the transmission data, the data transceiver module on the vehicle side will parse the transmission data according to the TBOX-HU protocol and extract the operation identification and type identification for subsequent processing operations.
[0074] Step S23, determining the control operation requested to be executed by the TBOX device based on the operation identifier, and determining the data source of the transmission data based on the type identifier.
[0075] In the embodiment of the present application, the vehicle terminal will determine the specific operation that the TBOX device wants to perform, such as saving data or pulling data, based on the parsed operation identifier, and execute the corresponding data processing flow accordingly. At the same time, the vehicle terminal will also determine the data source of the transmitted data, such as a file, SQLite database or Redis database, based on the type identifier, so as to select the corresponding data processing method. Step S24, execute the corresponding data processing operation according to the control operation and the data source.
[0076] In the embodiment of the present application, for the save operation, the data source must be determined first, and then the data item in the configuration file must be checked for matching. If it matches, the data capacity is updated and the new data is saved; if it does not match, a new data item is created and saved. For the return operation, the data source must also be determined first, and the data item must be checked for matching. If it matches, the data is read and returned; if it does not match, an error message is generated and returned.
[0077] In the embodiment of the present application, step S24 includes the following steps A1-A3:
[0078] Step A1: if the data processing operation is a save operation, then the data source in the transmission data is obtained.
[0079] In the embodiment of the present application, when the data processing operation is a save operation, the data source in the transmitted data is first obtained. The purpose of this step is to determine the source type of the data, such as a file, SQLite database or Redis database, so that the data can be correctly processed and saved later.
[0080] Step A2, traverse the data management configuration file to determine the data items that match the data source.
[0081] In the embodiment of the present application, the data management configuration file is traversed, which records all existing data items and related information, such as data type, data size, data location, etc. During the traversal process, it is checked whether the data source of each data item matches the data source of the transmitted data.
[0082] Step A3: performing a save operation according to the matching result of the data source in the data management configuration file.
[0083] In the embodiment of the present application, if there is a data item in the data management configuration file that matches the transmitted data, its data capacity is modified and the data is saved to the corresponding location. If there is no matching item, a new data item is created according to the data source, necessary information is recorded, and the data is saved to the new location.
[0084] In the embodiment of the present application, step A3 includes the following steps A31-A32:
[0085] Step A31, if there is a matching data item, modify the data capacity of the target data item that matches the data source, and save the data content in the transmission data to the storage location corresponding to the target data item.
[0086] In an embodiment of the present application, when the data processing operation is a save operation, first obtain the data source in the transmitted data to determine in which data item the data should be saved. Next, traverse the data management configuration file, and during the traversal process, look for data items that match the data source of the current transmitted data. If a matching data item is found, it means that data from the same data source has been saved before, so the data capacity of the matching target data item can be directly modified, and the data content in the transmitted data can be saved to the storage location corresponding to the target data item. This storage location can be a file on the vehicle's hard disk, a table in a SQLite database, or a table number in a Redis database, depending on the data type of the data item.
[0087] Step A32: if there is no matching data item, an initial data item is created according to the data source, and a corresponding data item record is added to the data management configuration file, and the data content in the transmission data is saved to the storage location corresponding to the initial data item.
[0088] In an embodiment of the present application, when it is determined that there is no matching data item in the data management configuration file, a new initial data item is created based on the data source of the transmitted data. This new data item will contain all necessary information so that the data can be correctly processed and accessed later. In the process of creating a new data item, a corresponding data item record is added to the data management configuration file. This record will include information such as data type, data size, and data location. After the new data item is successfully created and the corresponding data item record is added to the data management configuration file, the data content in the transmitted data is saved to the storage location corresponding to the new data item.
[0089] In the embodiment of the present application, step S24 includes the following steps B1-B3:
[0090] Step B1: if the data processing operation is a return operation, then obtain the data source in the transmission data.
[0091] In the embodiment of the present application, when the data management system receives a return operation request, it first needs to determine the type of data targeted by the request, and therefore needs to obtain data source information from the transmitted data. The data source information can be an identifier that uniquely identifies the data to be operated.
[0092] Step B2, traverse the data management configuration file based on the data source to determine the data items that match the data source.
[0093] In the embodiment of the present application, the data management configuration file is traversed to find data items that match this data source. The data management configuration file records the information of all data items stored in the vehicle terminal, such as Figure 3 As shown, it includes data type, data size and data location, etc. During the traversal process, the data management system compares the data item records in the data management configuration file with the data source information in the transmission data one by one.
[0094] Step B3, if there is a matching data item, read the data content in the target data item that matches the data source, and return the data content to the TBOX device, or, if there is no matching data item, generate a corresponding error message, and return the error message to the TBOX device.
[0095] In the embodiment of the present application, if a matching data item is found, the data content in the matching data item is read and the data content is transmitted back to the TBOX device through the TCP / SOCKET connection. In this way, the TBOX device successfully obtains the data it requested. However, if no matching data item is found, an error message is generated, such as "the requested data does not exist on the vehicle side". Then, the error message will also be transmitted back to the TBOX device so that the TBOX device can perform corresponding processing.
[0096] In the embodiment of the present application, the method further includes the following steps C1-C3:
[0097] Step C1, detecting the data length of the data content, and determining whether the data length exceeds a preset transmission threshold.
[0098] In an embodiment of the present application, before data transmission, it is necessary to detect the data length of the data content, that is, the number of bytes or size of the data. The transmission threshold set in the system defines the maximum amount of data that can be processed in a single transmission. The setting of this threshold can be based on a variety of factors, such as network bandwidth, processing speed, memory limitations, etc. It is determined whether the detected data length exceeds this preset transmission threshold.
[0099] Step C2: if the preset transmission threshold is exceeded, the data content is segmented to obtain segmented data, and the segmented data is transmitted back to the TBOX device in sequence according to the segmentation order; or, if the preset transmission threshold is not exceeded, the data content is directly transmitted back to the TBOX device.
[0100] In an embodiment of the present application, if it is detected that the data length of the data content exceeds the preset transmission threshold, the data content is segmented. Specifically, segmentation is to cut the data content into multiple smaller data blocks, and the size of each data block does not exceed the transmission threshold. After segmentation, each segmented data is transmitted back to the TBOX device in sequence according to the segmentation order (i.e., the original order of the data content). If it is detected that the data length of the data content does not exceed the preset transmission threshold, the data content is directly transmitted back to the TBOX device.
[0101] Step C3, monitoring the return status of the data content, when the return status is a success status, generating feedback information, and sending the feedback information to the TBOX device.
[0102] In the embodiment of the present application, in the process of data content being transmitted back to the TBOX device, the status of the transmission is monitored in real time, wherein the transmission status may include multiple states such as success, failure, and in progress. When the transmission status is a success state, feedback information is generated, wherein the feedback information may include information such as the timestamp of successful transmission, the amount of data transmitted, and the transmission speed, which is used to record the details of the transmission.
[0103] Figure 4 is a flow chart of a data interaction architecture of a vehicle networking system according to an embodiment of the present invention. Figure 4 As shown, the method includes:
[0104] Data flow in HU (Head Unit): data access and data management interact with each other; data management and client data transmission and reception interact with each other;
[0105] Client data transmission and reception: In HU, client data transmission and reception communicate with the server data transmission and reception in TBOX (Telematics BOX, Internet of Vehicles terminal) through TCP / SOCKET protocol.
[0106] Data flow in TBOX: The server-side data transmission and reception interact with the IPC middleware (Inter-Process Communication Middleware); the IPC middleware interacts with the following components: remote control, TBOX daemon, power management, network management, and big data.
[0107] Figure 5 FIG. 4 is a flow chart of data transmission and confirmation from TBOX to HU according to an embodiment of the present invention. Figure 5 As shown, the method includes:
[0108] TBOX starts the process and prepares to transmit data. First, it determines whether the data has been transmitted. If so, it ends the process; if not, it encapsulates a "save" operation instruction and passes it to the IPC middleware. The IPC middleware adds the corresponding type header to the data according to the data source, and then passes the data to the server data transceiver module. The server data transceiver module encapsulates and encrypts the data according to the protocol, and then sends the data to the vehicle head end (HU). On the HU side, after receiving the data from TBOX, the data is preliminarily parsed and decrypted according to the protocol, and then the data is classified and queried, and finally the data is written to the disk. At this point, the data transmission is completed, and the HU side will return to the TBOX side to determine whether the data has been completely transmitted.
[0109] Figure 6 FIG. 4 is a flow chart of a TBOX requesting and receiving HU data according to an embodiment of the present invention. Figure 5 As shown, the method includes:
[0110] The TBOX starts the process and prepares to request data, then encapsulates a "pull" operation instruction and passes it to the IPC middleware. The IPC middleware adds the corresponding data type header to the request according to the data source, and then passes the request to the server-side data transceiver module. The server-side data transceiver module encapsulates and encrypts the request according to the protocol, and then sends the encrypted request to the vehicle head unit (HU). On the HU side, after receiving the request from TBOX, the request is preliminarily parsed and decrypted according to the protocol, and then the data is classified and queried, and the corresponding data is read from the disk. After reading the data, the HU returns the data to the TBOX. After receiving the data, the TBOX side determines whether the data has been completely transmitted. If so, the process ends; if not, the data continues to be returned to the TBOX until all data is transmitted.
[0111] Figure 7 is a flowchart of data writing and creation according to an embodiment of the present invention, such as Figure 7 As shown, the method includes:
[0112] First, get the name of the file (or table), and then query the data management configuration file to determine whether the file (or table) already exists. If the file (or table) exists, write the specific data directly into it; if the file (or table) does not exist, create a new file (or table), add the corresponding data items in the data management configuration file, and then write the specific data into the newly created file (or table).
[0113] Figure 8 is a flow chart of data reading and existence checking according to an embodiment of the present invention, such as Figure 8 As shown, the method includes:
[0114] First, get the name of the file (or table), and then query the data management configuration file to determine whether the file (or table) already exists. If the file (or table) exists, perform specific data reading operations; if the file (or table) does not exist, feedback "data does not exist" information to TBOX.
[0115] In the present embodiment, a data processing device based on TBOX equipment is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and the descriptions thereof are omitted. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.
[0116] This embodiment provides a data processing device based on a TBOX device, which is applied to a TBOX device, such as Fig. 9 As shown, including:
[0117] A detection module 91 is used to detect the control operation performed by the TBOX device on the original data request in the vehicle terminal;
[0118] A first matching module 92, configured to determine an operation type according to a control operation, and to match the operation type in a preset operation identifier list to obtain an operation identifier corresponding to the operation type;
[0119] The second matching module 93 is used to determine the data source according to the original data, and use the data source to match in a preset data type identification list to obtain a type identification corresponding to the data source;
[0120] The sending module 94 is used to add the operation identifier and the type identifier as instruction headers to the original data, obtain transmission data, and send the transmission data to the vehicle terminal associated with the TBOX device.
[0121] This embodiment provides a data processing device based on TBOX equipment, which is applied to the vehicle terminal, such as Fig.10 As shown, including:
[0122] The receiving module 101 is used to receive the transmission data sent by the TBOX device;
[0123] The parsing module 102 is used to parse the operation identifier and the type identifier in the transmission data;
[0124] A determination module 103, configured to determine the control operation requested to be executed by the TBOX device based on the operation identifier, and to determine the data source of the transmission data based on the type identifier;
[0125] The execution module 104 is used to execute corresponding data processing operations according to the control operation and the data source.
[0126] In an optional embodiment of the present application, the execution module 104 is used to obtain the data source in the transmitted data if the data processing operation is a save operation; traverse the data management configuration file to determine the data items that match the data source; and perform the save operation based on the matching result of the data source in the data management configuration file.
[0127] In an optional embodiment of the present application, the execution module 104 is used to modify the data capacity of the target data item that matches the data source if there is a matching data item, and save the data content in the transmitted data to the storage location corresponding to the target data item; or, if there is no matching data item, create an initial data item based on the data source, add a corresponding data item record in the data management configuration file, and save the data content in the transmitted data to the storage location corresponding to the initial data item.
[0128] In an optional embodiment of the present application, the execution module 104 is used to obtain the data source in the transmitted data if the data processing operation is a return operation; traverse the data management configuration file based on the data source to determine the data item that matches the data source; if there is a matching data item, read the data content in the target data item that matches the data source, and return the data content to the TBOX device, or, if there is no matching data item, generate a corresponding error message and return the error message to the TBOX device.
[0129] In an optional embodiment of the present application, the device also includes: a segmentation module, which is used to detect the data length of the data content and determine whether the data length exceeds a preset transmission threshold; if it exceeds the preset transmission threshold, the data content is segmented to obtain segmented data, and the segmented data is sequentially transmitted back to the TBOX device in the segmentation order; or, if it does not exceed the preset transmission threshold, the data content is directly transmitted back to the TBOX device; the transmission status of the data content is monitored, and when the transmission status is a success status, feedback information is generated and sent to the TBOX device.
[0130] See also Fig.11 , Fig.11 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.11 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0131] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0132] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.
[0133] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0134] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0135] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0136] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0137] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A data processing method based on TBOX equipment, applied to TBOX equipment, characterized in that: The method comprises: Detect the control operations performed by the TBOX device on the original data request in the vehicle terminal; Determine the operation type according to the control operation, and use the operation type to match in a preset operation identifier list to obtain an operation identifier corresponding to the operation type; Determine the data source according to the original data, and use the data source to match in a preset data type identification list to obtain a type identification corresponding to the data source; The operation identifier and the type identifier are respectively added to the original data as instruction headers to obtain transmission data, and the transmission data is sent to the vehicle terminal associated with the TBOX device.
2. A data processing method based on TBOX equipment, applied to the vehicle terminal, characterized in that: The method comprises: Receive transmission data sent by TBOX equipment; Parsing the operation identifier and the type identifier in the transmission data; Determine the control operation requested to be performed by the TBOX device based on the operation identifier, and determine the data source of the transmission data based on the type identifier; According to the control operation and the data source, a corresponding data processing operation is performed.
3. The method according to claim 2, characterized in that The performing corresponding data processing operations according to the control operation and the data source includes: If the data processing operation is a save operation, obtaining a data source in the transmission data; Traversing the data management configuration file to determine data items that match the data source; The saving operation is performed according to a matching result of the data source in the data management configuration file.
4. The method according to claim 3, characterized in that The performing the saving operation according to the matching result of the data source in the data management configuration file includes: If there is a matching data item, modify the data capacity of the target data item that matches the data source, and save the data content in the transmission data to the storage location corresponding to the target data item; Or, if there is no matching data item, an initial data item is created according to the data source, and a corresponding data item record is added to the data management configuration file, and the data content in the transmission data is saved to the storage location corresponding to the initial data item.
5. The method according to claim 3, characterized in that: The performing the saving operation according to the matching result of the data source in the data management configuration file includes: If the data processing operation is a return operation, obtaining a data source in the transmission data; Traversing a data management configuration file based on the data source to determine a data item that matches the data source; If there is a matching data item, the data content in the target data item matching the data source is read and the data content is returned to the TBOX device, or, if there is no matching data item, a corresponding error message is generated and the error message is returned to the TBOX device.
6. The method according to claim 5, characterized in that The method further comprises: Detecting the data length of the data content, and determining whether the data length exceeds a preset transmission threshold; If the preset transmission threshold is exceeded, the data content is segmented to obtain segmented data, and the segmented data is sequentially transmitted back to the TBOX device in the segmentation order; or, if the preset transmission threshold is not exceeded, the data content is directly transmitted back to the TBOX device; The return status of the data content is monitored, and when the return status is a success status, feedback information is generated and sent to the TBOX device.
7. A data processing device based on TBOX equipment, applied to TBOX equipment, characterized in that: The device comprises: A detection module, used to detect the control operation performed by the TBOX device on the original data request in the vehicle terminal; A first matching module, configured to determine an operation type according to the control operation, and use the operation type to match a preset operation identifier list to obtain an operation identifier corresponding to the operation type; A second matching module is used to determine the data source according to the original data, and use the data source to match in a preset data type identification list to obtain a type identification corresponding to the data source; The sending module is used to add the operation identifier and the type identifier as instruction headers to the original data respectively, obtain transmission data, and send the transmission data to the vehicle terminal associated with the TBOX device.
8. A data processing device based on TBOX equipment, applied to the vehicle terminal, characterized in that: The device comprises: The receiving module is used to receive the transmission data sent by the TBOX device; A parsing module, used for parsing the operation identifier and the type identifier in the transmission data; a determination module, configured to determine the control operation requested to be executed by the TBOX device based on the operation identifier, and to determine the data source of the transmission data based on the type identifier; The execution module is used to execute corresponding data processing operations according to the control operation and the data source.
9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 6 by executing the computer instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 6.
