Vehicle Internet of Things data transmission method and system based on dynamic configuration

By dynamically configuring service message transmission rules and data acquisition templates, the resource waste and adaptation problems in traditional IoT data transmission methods are solved, and efficient data transmission and low-cost maintenance are achieved.

CN119254802APending Publication Date: 2025-01-03CHONGQING YADEA TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411527925.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

When traditional IoT data transmission methods use the same set of protocols between different models of products, the data format is too complete, resulting in waste of traffic resources, and the inability to dynamically adapt to different transmission needs.

Method used

Using the IoT data transmission method for automotive use based on dynamic configuration, by configuring service message transmission rules on the platform side, the terminal selects matching rules to send service messages and rule IDs, decoding service messages on the platform side, and supports dynamic adjustment of data acquisition templates and Transmission rules to meet the transmission needs of different models.

Benefits of technology

It saves data traffic bandwidth and storage costs, reduces system maintenance costs, supports multiple data types and field formats, and adapts to the needs of different business scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119254802A_ABST
    Figure CN119254802A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle Internet of Things data transmission method and system based on dynamic configuration, and relates to the technical field of Internet of Things communication, and the method comprises the steps that a platform end configures corresponding service message transmission rules for electric bicycles of different product models, and sends the service message transmission rules to a terminal; the terminal selects a service message transmission rule matched with the current product model and sends a service message and a rule ID to the platform end according to rule requirements, and the service message comprises effective service data collected by the terminal; and the platform end obtains a corresponding service message transmission rule according to the rule ID, and decodes the service message according to the rule requirement. When the model configurations of the same product are different, the method can adopt different transmission rules for reporting, thereby saving the traffic bandwidth and storage cost of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet of Things communication technology, and in particular to a vehicle-based Internet of Things data transmission method and system based on dynamic configuration. Background Art

[0002] With the rapid development of Internet of Things technology, the data exchange between terminal devices (such as electric bicycles) and platforms has become increasingly frequent and complex. In order to meet the different needs of customers, there are many types of Internet of Things products, and products with different models have different requirements for data collection and transmission.

[0003] There are generally two traditional data reporting methods. One method is fixed coding. Every time the communication protocol is changed, the code of the terminal and the platform needs to be modified to adapt to the new protocol. The other method is a transmission method based on the JSON configuration file. This method can dynamically adapt to different communication protocols by modifying the JSON configuration file when the protocol changes, without the need to develop code.

[0004] However, the above two data reporting methods are based on the same product using the same set of protocols. The same set of protocols are used for the transmission requirements of different models, and the most complete data format will be used for transmission, resulting in a waste of traffic resources. Summary of the invention

[0005] In view of the above problems and technical requirements, the inventors have proposed a method and system for transmitting data in an automotive IoT based on dynamic configuration. For the same product, when the model configuration is different, different transmission rules can be used for reporting. The technical solution of the present invention is as follows:

[0006] In a first aspect, the present application provides a vehicle-based Internet of Things data transmission method based on dynamic configuration, comprising the following steps:

[0007] The platform configures corresponding business message transmission rules for different product models of electric bicycles and sends them to the terminal;

[0008] The terminal selects the business message transmission rule that matches the current product model, and sends the business message and rule ID to the platform according to the rule requirements. The business message contains the valid business data collected by the terminal;

[0009] The platform obtains the corresponding business message transmission rule based on the rule ID and decodes the business message according to the rule requirements.

[0010] A further technical solution is that the configuration of the service message transmission rules includes:

[0011] Define business message transmission rules, including rule ID, rule description, and data collection template;

[0012] Among them, the rule ID corresponds to the product model of the electric bicycle;

[0013] The rule description records the required valid business data types and quantities;

[0014] Data collection templates are used to manage business data collected by terminals. When the collected data changes, the collected data can be adjusted at any time by defining new templates.

[0015] Its further technical solution is that the data collection template includes a template ID, collected business data, and data arrangement rules;

[0016] Among them, the data arrangement rules record the arrangement order of all business data.

[0017] A further technical solution is that the business data includes data ID, data description, data field type, data length, and encoding rules.

[0018] Its further technical solution is that the business message transmission rules also include data transmission frequency, encryption strategy, and rule status;

[0019] Among them, the rule status is divided into draft status, published status, and disabled status.

[0020] A further technical solution is that the terminal sends a service message and a rule ID to the platform according to the rule requirements, including:

[0021] The terminal collects the required valid business data according to the rule description;

[0022] Encode the valid business data according to the requirements of the data collection template and assemble them together in the specified order to obtain the business message;

[0023] The business message is encrypted according to the encryption strategy required by the rule, and the encrypted business message and the rule ID are sent to the platform at the required data sending frequency.

[0024] Its further technical solution is that the method further comprises:

[0025] When the business changes, reconfigure the business message transmission rules and data collection templates on the platform and send them to the terminal;

[0026] The terminal sends the service message and new rule ID to the platform according to the new rule requirements.

[0027] Its further technical solution is that the method further comprises:

[0028] When there is no need to transmit the business data corresponding to a business message transmission rule, the platform sends an instruction to delete the corresponding rule ID to the terminal.

[0029] A further technical solution is to define the structure of the service message, including the message header, message length, message tail, service data, and message version.

[0030] In a second aspect, the present application provides a vehicle-based IoT data transmission system based on dynamic configuration, including a platform end and a terminal based on IoT interaction;

[0031] The platform side includes a dynamic parsing engine and a configuration management system;

[0032] The configuration management system is used to configure corresponding business message transmission rules for different product models of electric bicycles and send them to the terminal;

[0033] The terminal is used to select the business message transmission rule that matches the current product model, and send the business message and rule ID to the platform according to the rule requirements. The business message contains the valid business data collected by the terminal;

[0034] The dynamic parsing engine is used to obtain the corresponding business message transmission rules from the configuration management system according to the rule ID, and decode the business messages according to the rule requirements.

[0035] The beneficial technical effects of the present invention are:

[0036] Compared with the traditional full data format transmission, this method and system can dynamically configure the corresponding business message transmission rules for electric bicycles of different product models. The terminal sends the required valid business data to the platform side according to the requirements of the matching business message transmission rules, saving data traffic bandwidth and storage costs. The platform side collects different business data from the terminal in real time without recompiling and deploying parsing programs. When the business changes, it is only necessary to reconfigure the business message transmission rules and data collection templates on the platform side, which is easy to modify and manage, reducing the system maintenance cost. It also supports multiple data types and field formats to meet the needs of different business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of the vehicle Internet of Things data transmission method provided by this application.

[0038] Figure 2 This is a schematic diagram of the vehicle Internet of Things data transmission system provided by this application. DETAILED DESCRIPTION

[0039] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.

[0040] Please refer to Figure 1As shown, an embodiment of the present application provides a vehicle-based Internet of Things data transmission method based on dynamic configuration, which specifically includes the following steps:

[0041] Step 1: The platform configures corresponding business message transmission rules for different product models of electric bicycles and sends them to the terminal.

[0042] The business message transmission rules include rule ID, rule description, data collection template, data transmission frequency, encryption strategy, rule status, etc. The rule ID corresponds to the product model of the electric bicycle; the rule description records the required valid business data type and quantity; the rule status is divided into draft status, published status, and deactivated status; the encryption strategy can choose not to encrypt, or choose any of the AES128 encryption algorithm, AES192 encryption algorithm, or AES256 encryption algorithm.

[0043] The data collection template is used to manage the business data collected by the terminal. When the collected data changes, the collected data can be adjusted at any time by defining a new template. The template includes the template ID, the collected business data, and the data arrangement rules. The business data includes the data ID, data description, data field type, data length, and encoding rules. Among them, the data arrangement rules record the arrangement order of all business data. For example, the template defines three business data: power, current, and voltage, and specifies the arrangement order of these three data. When parsing, these three data must be parsed in the order specified by the template. Among them, the encoding rules specify the start and end bits of the data in the byte. For example, the collected seat heating switch signal only needs 1 bit to represent it, so the 0th bit in the byte is used to represent the signal, and its encoding rules can be configured as startBit=0, endBit=0.

[0044] The terminal of this embodiment can be understood as a vehicle-side controller. After receiving the service message transmission rules, the terminal saves the transmission rules locally. When multiple transmission rules are received, they need to be stored locally in the terminal according to the rule ID.

[0045] Step 2: The terminal selects the business message transmission rule that matches the current product model, and sends the business message and rule ID to the platform according to the rule requirements. The business message contains the valid business data collected by the terminal.

[0046] Specifically, the terminal collects the required valid business data according to the rule description, and then encodes the valid business data in hexadecimal according to the requirements of the encoding rules in the data collection template, and assembles them together in the specified arrangement order of the data arrangement rules to obtain a business message. The structure of the business message includes a message header, a message length, a message tail, business data, and a message version. For example, when the business message composed of the collected business data is a vehicle condition message, it contains valid business data such as the speed and mileage of the vehicle during riding, which is used to describe the current state of the vehicle; for example, it is a battery message, which contains valid business data such as the remaining battery power of the vehicle, the ambient temperature of the battery, and the number of charging cycles, which are used to describe the current state of the battery. Then encrypt the business message according to the encryption strategy required by the rule, and send the encrypted business message and the rule ID to the platform at the required data sending frequency.

[0047] Step 3: The platform obtains the corresponding business message transmission rule based on the rule ID and decodes the business message according to the rule requirements.

[0048] Specifically, after receiving the encrypted business message and rule ID reported by the terminal, the platform first decodes the corresponding business message according to the definition of the message, then obtains the corresponding business message transmission rule according to the rule ID, and decrypts the message according to the rule requirements to obtain the original text of the business message (including the collection template ID), and then decodes all business data according to the definition of the data arrangement rule in the template.

[0049] Step 4: Finally, the decoded service message is stored in a corresponding storage medium or transmitted to the next processor for corresponding processing.

[0050] Step 5: When the business changes, such as reorganizing the transmitted business data or redefining the data transmission frequency, you only need to reconfigure the business message transmission rules and data collection templates on the platform side and send them to the terminal. The terminal can send the business message and new rule ID to the platform side according to the new rule requirements. When the business data corresponding to a business message transmission rule does not need to be transmitted, the platform side sends an instruction to delete the corresponding rule ID to the terminal, and the rule status in the business message transmission rule is updated to the disabled state.

[0051] Based on the same inventive concept, another embodiment of the present application provides a vehicle-based IoT data transmission system based on dynamic configuration, including a platform end and a terminal end based on IoT interaction. Figure 2As shown, the platform side includes a dynamic parsing engine, a configuration management system, a storage medium and a business processor. Among them, the configuration management system is used to configure the corresponding business message transmission rules for electric bicycles of different product models and send them to the terminal. The terminal is used to select the business message transmission rules that match the current product model, and send the business message and rule ID to the platform side according to the rule requirements. The business message contains the valid business data collected by the terminal. The dynamic parsing engine is used to obtain the corresponding business message transmission rules from the configuration management system according to the rule ID, and decode the business message according to the rule requirements. Finally, the decoded business message is stored in the corresponding storage medium or transmitted to the next processor through the message queue for corresponding processing.

[0052] Since the implementation solution provided by the system to solve the problem is similar to the implementation solution recorded in the above-mentioned vehicle Internet of Things data transmission method, the specific limitations in each part can be referred to the limitations on the vehicle Internet of Things data transmission method above, and will not be repeated here.

[0053] The above is only a preferred embodiment of the present application, and the present invention is not limited to the above embodiments. It is understood that other improvements and changes directly derived or associated by those skilled in the art without departing from the spirit and concept of the present invention should be considered to be included in the protection scope of the present invention.

Claims

1. A vehicle-based Internet of Things data transmission method based on dynamic configuration, characterized in that: The method comprises: The platform configures corresponding business message transmission rules for different product models of electric bicycles and sends them to the terminal; The terminal selects a service message transmission rule that matches the current product model, and sends a service message and a rule ID to the platform according to the rule requirements. The service message contains valid service data collected by the terminal. The platform obtains the corresponding service message transmission rule according to the rule ID and decodes the service message according to the rule requirements.

2. The method for transmitting data based on the dynamic configuration of the vehicle Internet of Things according to claim 1, characterized in that: Configuring service message transmission rules includes: Define business message transmission rules, including rule ID, rule description, and data collection template; Wherein, the rule ID corresponds to the product model of the electric bicycle; The rule description records the required valid business data type and quantity; The data collection template is used to manage the business data collected by the terminal. When the collected data changes, the collected data can be adjusted at any time by defining a new template.

3. The method for transmitting data based on the dynamic configuration of the vehicle Internet of Things according to claim 2 is characterized in that: The data collection template includes a template ID, collected business data, and data arrangement rules; The data arrangement rule records the arrangement order of all business data.

4. The method for transmitting data based on the dynamic configuration of the vehicle Internet of Things according to claim 3 is characterized in that: The business data includes data ID, data description, data field type, data length, and encoding rules.

5. The method for transmitting data based on the dynamic configuration of the vehicle Internet of Things according to claim 2, characterized in that: The business message transmission rules also include data transmission frequency, encryption strategy, and rule status; The rule status is divided into draft status, published status, and disabled status.

6. According to the method for transmitting data in an automotive Internet of Things based on dynamic configuration according to claim 5, the terminal sends a service message and a rule ID to the platform according to the rule requirements, including: The terminal collects the required valid business data according to the rule description; Encoding the valid service data according to the requirements of the data collection template and assembling them together in a specified arrangement order to obtain a service message; The business message is encrypted according to the encryption strategy required by the rule, and the encrypted business message and the rule ID are sent to the platform end at the required data sending frequency.

7. The method for transmitting data based on the dynamic configuration of the vehicle Internet of Things according to claim 2, characterized in that: The method further comprises: When the business changes, the business message transmission rules and the data collection template are reconfigured on the platform side and sent to the terminal; The terminal sends a service message and a new rule ID to the platform according to the new rule requirements.

8. The method for transmitting data based on dynamic configuration of the vehicle Internet of Things according to claim 1, characterized in that: The method further comprises: When there is no need to transmit the service data corresponding to a service message transmission rule, the platform sends an instruction to delete the corresponding rule ID to the terminal.

9. The method for transmitting data based on the dynamic configuration of the vehicle Internet of Things according to claim 1, characterized in that: Define the structure of the service message, including message header, message length, message tail, service data, and message version.

10. A vehicle-based Internet of Things data transmission system based on dynamic configuration, characterized in that: Including platform and terminal based on IoT interaction; The platform end includes a dynamic parsing engine and a configuration management system; The configuration management system is used to configure corresponding service message transmission rules for electric bicycles of different product models and send them to the terminal; The terminal is used to select a service message transmission rule that matches the current product model, and send a service message and a rule ID to the platform according to the rule requirements. The service message contains valid service data collected by the terminal; The dynamic parsing engine is used to obtain the corresponding business message transmission rule from the configuration management system according to the rule ID, and decode the business message according to the rule requirements.