Vehicle Tbox simulation system, vehicle Tbox simulator and control method thereof
By designing the simulator management, message verification, construction and active control modules of the vehicle Tbox simulator, the problems of TSP platform command processing and multi-protocol support are solved, and the flexible control and interactive debugging capabilities of the Tbox simulator are realized.
Patent Information
- Application Number
- CN202111042792.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-07
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-09-07
AI Technical Summary
In the existing technology, Tbox lacks the ability to simulate, process and return instructions issued by the TSP platform during simulation. It cannot interactively control the Tbox simulator and does not support multiple terminal communication protocols. It is difficult to flexibly set according to test requirements. .
Design a vehicle Tbox simulator, including a simulator management module, a message verification module, a message construction module and an active control module. It can establish a communication connection with the TSP platform, receive and parse instructions, generate and send message messages, and respond to user input based on user input. The modification instructions modify the simulator parameters and support multiple communication protocols.
It realizes the simulation processing and return capabilities of TSP platform instructions, supports flexible Tbox simulator control, facilitates interactive debugging of TSP and Tbox, and adapts to multiple terminal communication protocols.
Smart Images

Figure CN113852671B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle Tbox simulation system, a vehicle Tbox simulator and a control method thereof. Background Art
[0002] In the related art, when simulating Tbox (Telematics BOX, a vehicle-mounted network terminal), simulation software is used to simulate the data collected by Tbox.
[0003] However, this method lacks the ability to simulate and return the instructions issued by the TSP (Telematics Service Provider) platform, and cannot control the Tbox simulator in an interactive manner. It cannot be flexibly set according to test requirements and does not support multiple terminal communication protocols, such as GB / T32960 or other private protocols, which needs to be resolved.
[0004] Application Contents
[0005] The present application provides a vehicle Tbox simulation system, a vehicle Tbox simulator and a control method thereof, in order to solve the problems in the related art that the instructions issued by the TSP platform are lacking in simulation processing and return, and the Tbox simulator cannot be controlled in an interactive manner and cannot be flexibly set according to test requirements, and facilitates interactive debugging of TSP and Tbox.
[0006] The first aspect of the present application provides a vehicle Tbox simulator, where the Tbox simulator runs in a container, wherein the Tbox simulator includes:
[0007] The simulator management module is used to receive simulation instructions issued by the TSP platform after establishing a communication connection with the TSP platform;
[0008] A message verification module, used to parse the simulation instruction to obtain at least one control instruction of the vehicle;
[0009] a message construction module, configured to generate a first message packet during the process of controlling the vehicle simulation according to the at least one control instruction, and / or generate a second message packet according to vehicle parameters set inside the Tbox simulator; and
[0010] The active control module is used to modify the vehicle parameters set inside the Tbox simulator according to the modification instructions input by the user, and control the simulator management module to send the second message packet to the TSP platform.
[0011] Optionally, the above-mentioned vehicle Tbox simulator further includes:
[0012] The communication protocol management module is used to match the communication protocol corresponding to the TSP platform and use the communication protocol to control the simulator management module to communicate.
[0013] Optionally, the above-mentioned vehicle Tbox simulator further includes:
[0014] At least one communication port arranged corresponding to the TSP platform;
[0015] At least one receiving port for receiving the modification instruction.
[0016] Optionally, the above-mentioned vehicle Tbox simulator further includes:
[0017] The reading module is used to read the configuration file for vehicle simulation and complete the system configuration according to the configuration file.
[0018] Optionally, the message verification module is further used to send a parsing failure message to the TSP platform when the simulation instruction parsing fails.
[0019] A second aspect of the present application provides a method for controlling a vehicle Tbox simulator, using the above-mentioned vehicle Tbox simulator, wherein the method includes:
[0020] Receiving simulation instructions issued by the TSP platform;
[0021] parsing the simulation instruction to obtain at least one control instruction of the vehicle;
[0022] In the process of controlling the vehicle simulation according to the at least one control instruction, generating a first message packet, and / or generating a second message packet according to the vehicle parameters set inside the Tbox simulator; and
[0023] The vehicle set inside the Tbox simulator is modified according to the modification instruction input by the user, and the simulator management module is controlled to send the second message packet to the TSP platform.
[0024] Optionally, it also includes:
[0025] A communication protocol corresponding to the TSP platform is matched, and the communication protocol is used to control the simulator management module to communicate.
[0026] Optionally, it also includes:
[0027] Read the configuration file for vehicle simulation and complete the system configuration according to the configuration file.
[0028] Optionally, the method further includes: when the parsing of the simulation instruction fails, sending a parsing failure message to the TSP platform.
[0029] The third aspect of the present application provides a vehicle Tbox simulation system, including: a TSP platform; and the above-mentioned vehicle Tbox simulator.
[0030] Therefore, after the simulator management module is used to establish a communication connection with the TSP platform, it can receive the simulation instructions issued by the TSP platform, parse the simulation instructions, obtain at least one control instruction of the vehicle, and in the process of controlling the vehicle simulation according to at least one control instruction, generate a first message message, and / or generate a second message message according to the vehicle parameters set inside the Tbox simulator, and modify the vehicle set inside the Tbox simulator according to the modification instructions input by the user, and control the simulator management module to send the second message message to the TSP platform. Therefore, the problem of the lack of the ability to simulate and return the instructions issued by the TSP platform in the related art, the inability to control the Tbox simulator in an interactive manner, and the inability to flexibly set according to the test requirements is solved, and the interactive debugging of TSP and Tbox is convenient.
[0031] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0033] Figure 1 A block diagram of a vehicle Tbox simulator provided according to an embodiment of the present application;
[0034] Figure 2 A schematic diagram of the logical architecture of a Tbox simulator according to an embodiment of the present application;
[0035] Figure 3 A Tbox simulator startup flow chart according to an embodiment of the present application;
[0036] Figure 4 A flowchart of a Tbox simulator processing and issuing instructions according to an embodiment of the present application;
[0037] Figure 5 A flowchart of a Tbox simulator sending a user-specified message according to an embodiment of the present application;
[0038] Figure 6 4 is a flowchart of a control method of a vehicle Tbox simulator according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0040] The vehicle Tbox simulation system, vehicle Tbox simulator and control method thereof of the embodiment of the present application are described below with reference to the accompanying drawings. In view of the lack of ability to simulate and return instructions issued by the TSP platform mentioned in the above background technology center, and the inability to control the Tbox simulator in an interactive manner, and the inability to flexibly set according to the test requirements, the present application provides a vehicle Tbox simulator, which can receive the simulation instructions issued by the TSP platform after the simulator management module is used to establish a communication connection with the TSP platform, and parse the simulation instructions to obtain at least one control instruction of the vehicle, and in the process of controlling the vehicle simulation according to at least one control instruction, generate a first message message, and / or generate a second message message according to the vehicle parameters set inside the Tbox simulator, and modify the vehicle set inside the Tbox simulator according to the modification instruction input by the user, and control the simulator management module to send the second message message to the TSP platform. Thus, the lack of ability to simulate and return instructions issued by the TSP platform in the related art, and the inability to control the Tbox simulator in an interactive manner, and the inability to flexibly set according to the test requirements are solved, and the interactive debugging of TSP and Tbox is convenient.
[0041] Specifically, Figure 1 A block diagram of a vehicle Tbox simulator provided in an embodiment of the present application.
[0042] In this embodiment, the Tbox simulator can be run in a container. The container of the embodiment of the present application can use Docker technology. The vehicle Tbox simulator can include: a simulator management module, a message verification module, a message construction module, an active control module and a communication protocol management module. In addition, it also includes two communication ports provided to the outside.
[0043] like Figure 1 As shown, the vehicle Tbox simulator 10 includes: a simulator management module 100, a message verification module 200, a message construction module 300 and an active control module 400.
[0044] Among them, the simulator management module 100 is used to establish a communication connection with the TSP platform and receive the simulation instructions issued by the TSP platform; the message verification module 200 is used to parse the simulation instructions and obtain at least one control instruction of the vehicle; the message construction module 300 is used to generate a first message message in the process of controlling the vehicle simulation according to at least one control instruction, and / or generate a second message message according to the vehicle set inside the Tbox simulator; the active control module 400 is used to modify the vehicle set inside the Tbox simulator according to the modification instructions input by the user, and control the simulator management module 100 to send the second message message to the TSP platform.
[0045] Optionally, in some embodiments, Figure 2 As shown, the above-mentioned vehicle Tbox simulator 10 also includes: a communication protocol management module 500 is used to match the communication protocol corresponding to the TSP platform, and use the communication protocol to control the simulator management module to communicate.
[0046] Optionally, in some embodiments, the above-mentioned vehicle Tbox simulator 10 further includes: a reading module, used to read a configuration file for vehicle simulation and complete system configuration according to the configuration file.
[0047] Optionally, in some embodiments, the message verification module 200 is further configured to send a parsing failure message to the TSP platform when the simulation instruction parsing fails.
[0048] Specifically, Figure 2 As shown, the simulator management module 100 is a module for exchanging messages with the TSP platform. When the Tbox simulator is started, the simulator management module 100 will establish a connection with the TSP platform. After the connection is established, it can process and reply to the command message sent by the TSP, or upload the user-specified message to the TSP platform, and can receive the request for data upload from the active control module 400.
[0049] The message verification module 200 parses and verifies the message sent from the TSP platform by using the parsing rules in the communication protocol management module 500, and needs to check the format of the message message to parse out what kind of vehicle control instruction it is.
[0050] The message construction module 300 can construct different types of message messages to the TSP platform using the construction rules in the communication protocol management module 500 according to the needs, and can support the construction of two messages, one is the return message of the vehicle control command issued by the TSP, and the other is the message construction actively uploaded by the vehicle (vehicle speed, GPS location, etc.). The message construction module 300 will also store some default uploaded data to facilitate the construction of the message.
[0051] The active control module 400 can modify these default data. The active control module 400 can receive commands sent by the simulator user through the external command receiving port to construct a specific message, and the construction is completed.
[0052] The communication protocol management module 500 is responsible for managing the communication protocols used by the Tbox simulator, including the protocol parsing rules and the protocol construction rules. Different protocols can be configured in the communication protocol management module 500, and the communication protocol is selected when the Tbox simulator is started.
[0053] Optionally, in some embodiments, the above-mentioned vehicle Tbox simulator 10 further includes: at least one communication port arranged corresponding to the TSP platform; and at least one receiving port for receiving modification instructions.
[0054] Specifically, Figure 2 As shown, the vehicle Tbox simulator 10 of the embodiment of the present application can provide two communication ports to the outside: TSP platform communication port 600 and external command receiving port 700. The TSP platform communication port can communicate with the vehicle remote networking platform TSP (receiving and sending system); the user of the Tbox simulator can send instructions to the simulator through the external command receiving port, so that the simulator sends a message with specified content to the TSP platform.
[0055] Therefore, the Tbox simulator can send messages with specified content to the TSP platform according to user needs, which is convenient for testing; the Tbox simulator can process the instructions issued by the TSP platform and specify the return messages, which is convenient for interactive debugging of TSP and Tbox; through container technology, multiple Tbox simulators can be started on a single server at the same time, each running independently and started and destroyed at any time. At the same time, different terminal communication protocols can be configured to adapt to different TSP platforms.
[0056] In order to enable those skilled in the art to further understand the vehicle Tbox simulator of the embodiment of the present application, it is elaborated in detail below in conjunction with specific embodiments.
[0057] The vehicle Tbox simulator is a Docker container that contains the Tbox simulation system. When the container is started, the Tbox simulation system is started. The startup workflow of the Tbox simulator can be as follows: Figure 3 As shown:
[0058] S301, start the docker container with the Tbox simulation system. At this time, the container will start the Tbox simulation system.
[0059] S302, during the startup of the Tbox simulation system, the system configuration file will be read. The configuration file includes the system's external port number, the connection information of the remote TSP platform, the communication rules of the terminal, and the default sending information of various messages.
[0060] S303, the Tbox simulation system connects to the configured TSP platform and establishes a connection channel with the TSP platform.
[0061] S304, waiting for request. After the connection channel with TSP is established, the Tbox simulation system can start to receive instruction requests from the TSP platform or instruction requests from users of the Tbox simulator.
[0062] The following is a detailed description of the two main usage scenarios of the vehicle Tbox simulator: the scenario of processing instructions issued by the TSP platform and the scenario of sending user-specified messages.
[0063] like Figure 4 As shown, Figure 4 The workflow diagram for processing and issuing instructions for the Tbox simulator includes the following steps:
[0064] S401, vehicle control command is sent. The TSP platform sends the vehicle control command message to the Tbox simulator through the TSP platform communication port of the Tbox simulator.
[0065] S402, instruction analysis. After receiving the message, the simulator management module will call the message verification module to analyze the message. If the analysis is successful, the specific vehicle control instruction will be obtained, and step S403 will be performed; if the analysis fails, step S404 will be performed.
[0066] S403, simulation instruction execution return: The simulator management module calls the message construction module to construct the return message of the simulation instruction execution result, and then sends it back to the TSP platform through the TSP platform communication port.
[0067] S404, return a failure message. The simulator management module calls the message construction module to construct a return message of simulation instruction parsing failure, and then sends it back to the TSP platform through the TSP platform communication port.
[0068] like Figure 5 As shown, Figure 5 The workflow diagram for sending user-specified messages to the Tbox simulation system includes the following steps:
[0069] S501, the user controls the simulator. The simulator uses the user to send a control instruction to the Tbox simulator through the external instruction receiving port of the Tbox simulator.
[0070] S502, constructing a message message. After receiving the user instruction, the active control module will call the message verification module to construct the message. The user instruction can modify the field content in the message.
[0071] S503, sending a message message. The active control module notifies the simulator management module that a user-specified message message needs to be sent, and the simulator management module sends the message to the TSP platform through the TSP platform communication port.
[0072] According to the vehicle Tbox simulator proposed in the embodiment of the present application, after the simulator management module is used to establish a communication connection with the TSP platform, it can receive the simulation instructions issued by the TSP platform, parse the simulation instructions, obtain at least one control instruction of the vehicle, and in the process of controlling the vehicle simulation according to at least one control instruction, generate a first message message, and / or generate a second message message according to the vehicle parameters set inside the Tbox simulator, and modify the vehicle set inside the Tbox simulator according to the modification instructions input by the user, and control the simulator management module to send the second message message to the TSP platform. Thus, the problem of the lack of the ability to simulate and return the instructions issued by the TSP platform in the related art, the inability to control the Tbox simulator in an interactive manner, and the inability to flexibly set according to the test requirements is solved, and the interactive debugging of TSP and Tbox is convenient.
[0073] Next, the control method of the vehicle Tbox simulator proposed in accordance with the embodiment of the present application will be described with reference to the accompanying drawings.
[0074] Figure 6 It is a flowchart of the control method of the vehicle Tbox simulator of an embodiment of the present application.
[0075] like Figure 6 As shown, the control method of the vehicle Tbox simulator adopts the above-mentioned vehicle Tbox simulator, wherein the method comprises the following steps:
[0076] In step S601, a simulation instruction issued by the TSP platform is received;
[0077] In step S606, the simulation instruction is parsed to obtain at least one control instruction of the vehicle;
[0078] In step S603, in the process of controlling the vehicle simulation according to at least one control instruction, a first message packet is generated, and / or a second message packet is generated according to the vehicle parameters set inside the Tbox simulator;
[0079] In step S604, the vehicle set in the Tbox simulator is modified according to the modification instruction input by the user, and the simulator management module is controlled to send a second message packet to the TSP platform.
[0080] Optionally, the above-mentioned vehicle Tbox simulator control method further includes:
[0081] Match the communication protocol corresponding to the TSP platform, and use the communication protocol to control the simulator management module to communicate.
[0082] Optionally, the above-mentioned vehicle Tbox simulator control method further includes:
[0083] Read the configuration file for vehicle simulation and complete the system configuration according to the configuration file.
[0084] Optionally, the control method of the vehicle Tbox simulator mentioned above further includes: when the simulation instruction parsing fails, sending a parsing failure message to the TSP platform.
[0085] It should be noted that the aforementioned explanation of the vehicle Tbox simulator embodiment is also applicable to the control method of the vehicle Tbox simulator of this embodiment, and will not be repeated here.
[0086] According to the control method of the vehicle Tbox simulator proposed in the embodiment of the present application, after the simulator management module is used to establish a communication connection with the TSP platform, the simulation instruction issued by the TSP platform can be received, and the simulation instruction can be parsed to obtain at least one control instruction of the vehicle, and in the process of controlling the vehicle simulation according to at least one control instruction, a first message packet is generated, and / or a second message packet is generated according to the vehicle parameters set inside the Tbox simulator, and the vehicle set inside the Tbox simulator is modified according to the modification instruction input by the user, and the simulator management module is controlled to send the second message packet to the TSP platform. Thus, the problem of the lack of the ability to simulate and return the instructions issued by the TSP platform in the related art, the inability to control the Tbox simulator in an interactive manner, and the inability to flexibly set according to the test requirements is solved, and the interactive debugging of TSP and Tbox is convenient.
[0087] In addition, an embodiment of the present application also provides a vehicle Tbox simulation system, which includes: a TSP platform; and the above-mentioned vehicle Tbox simulator.
[0088] The vehicle Tbox simulation system proposed in the embodiment of the present application solves the problems in the related art of lacking the ability to simulate and return instructions issued by the TSP platform, being unable to control the Tbox simulator in an interactive manner, and being unable to flexibly set up according to test requirements, and facilitates interactive debugging of TSP and Tbox.
[0089] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0090] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0091] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0092] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0093] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
Claims
1. A vehicle Tbox simulator, characterized in that: The Tbox simulator runs in a container, which includes: The simulator management module is used to receive simulation instructions issued by the TSP platform after establishing a communication connection with the TSP platform; A message verification module, used to parse the simulation instruction to obtain at least one control instruction of the vehicle; a message construction module, configured to generate a first message packet in the process of controlling the vehicle simulation according to the at least one control instruction, and to generate a second message packet according to the vehicle parameters set inside the Tbox simulator; and An active control module, used for modifying the vehicle parameters set inside the Tbox simulator according to the modification instruction input by the user, and controlling the simulator management module to send the second message packet to the TSP platform; The reading module is used to read the configuration file for vehicle simulation and complete the system configuration according to the configuration file.
2. The vehicle Tbox simulator according to claim 1, characterized in that: Also includes: The communication protocol management module is used to match the communication protocol corresponding to the TSP platform and use the communication protocol to control the simulator management module to communicate.
3. The vehicle Tbox simulator according to claim 1, characterized in that: Also includes: At least one communication port arranged corresponding to the TSP platform; At least one receiving port for receiving the modification instruction.
4. The vehicle Tbox simulator according to claim 1, characterized in that: The message verification module is also used to send a parsing failure message to the TSP platform when the simulation instruction parsing fails.
5. A control method for a vehicle Tbox simulator, characterized in that: The vehicle Tbox simulator according to any one of claims 1 to 4 is used, wherein the method comprises the following steps: Receiving simulation instructions issued by the TSP platform; parsing the simulation instruction to obtain at least one control instruction of the vehicle; In the process of controlling the vehicle simulation according to the at least one control instruction, generating a first message packet, and generating a second message packet according to the vehicle parameters set inside the Tbox simulator; and Modify the vehicle parameters set inside the Tbox simulator according to the modification instruction input by the user, and control the simulator management module to send the second message to the TSP platform; Read the configuration file for vehicle simulation and complete the system configuration according to the configuration file.
6. The method according to claim 5, characterized in that Also includes: A communication protocol corresponding to the TSP platform is matched, and the communication protocol is used to control the simulator management module to communicate.
7. The method according to claim 5, characterized in that Also includes: When the parsing of the simulation instruction fails, a parsing failure message is sent to the TSP platform.
8. A vehicle Tbox simulation system, characterized in that: include: TSP platform; and At least one vehicle Tbox simulator as claimed in any one of claims 1-4.
