CN117909094A - T-BOX simulation method, simulation system, simulator and medium - Google Patents

T-BOX simulation method, simulation system, simulator and medium Download PDF

Info

Publication number
CN117909094A
CN117909094A CN202311853611.6A CN202311853611A CN117909094A CN 117909094 A CN117909094 A CN 117909094A CN 202311853611 A CN202311853611 A CN 202311853611A CN 117909094 A CN117909094 A CN 117909094A
Authority
CN
China
Prior art keywords
message
box
box simulation
instance
simulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311853611.6A
Other languages
Chinese (zh)
Inventor
俞慧
刘立嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zero Beam Technology Co ltd
Original Assignee
Zero Beam Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zero Beam Technology Co ltd filed Critical Zero Beam Technology Co ltd
Priority to CN202311853611.6A priority Critical patent/CN117909094A/en
Publication of CN117909094A publication Critical patent/CN117909094A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a T-BOX simulation method, a simulation system, a simulator and a medium, and relates to the technical field of testing; when each T-BOX simulation instance is generated, establishing a message channel between the T-BOX simulation instance and middleware for testing; and processing the message of the T-BOX simulation instance and the middleware based on the message channel. The invention can achieve the effect of multi-vehicle simulation by rapidly creating a plurality of T-BOX simulation examples.

Description

T-BOX simulation method, simulation system, simulator and medium
Technical Field
The invention relates to the technical field of testing, in particular to a T-BOX simulation method, a simulation system, a simulator and a medium.
Background
The T-BOX (TELEMATICS BOX, also called as a remote information processing control unit) is an intelligent terminal device which consists of a processor, a GPS module, a 4G/5G module (with SIM card function) and a plurality of interfaces (such as CAN bus, USB, RS-232, bluetooth and the like) and is an important component in the Internet of vehicles system. Communication and data exchange between vehicles (V2V), vehicles and infrastructure (V2I) and vehicles and the Internet (V2N) are realized by connecting the vehicle-mounted CAN bus and the external cloud platform. In the prior art, T-BOX simulators are generally designed and implemented primarily for functional testing of remote vehicle controls, but there is a significant limitation in that they are mostly single T-BOX simulators that can only support simulation of a single vehicle.
This means that in a test environment, the scenario where multiple vehicles are simultaneously remotely controlled cannot be effectively simulated and evaluated, limiting the overall testing of the performance and stability of the system under high-concurrency, multiple vehicle operation.
Disclosure of Invention
In view of the above-described drawbacks of the prior art, an object of the present invention is to provide a T-BOX simulation method, a simulation system, a simulator, and a medium, which can achieve the effect of multi-car simulation by rapidly creating a plurality of T-BOX simulation instances.
In order to achieve the above purpose, the present invention adopts the following technical scheme.
In a first aspect, the present invention provides a T-BOX simulation method, which adopts the following technical scheme:
A T-BOX simulation method, comprising:
Generating a preset number of T-BOX simulation examples;
When each T-BOX simulation instance is generated, establishing a message channel between the T-BOX simulation instance and middleware for testing;
and processing the message of the T-BOX simulation instance and the middleware based on the message channel.
Further, in the above method for T-BOX simulation, the generating a predetermined number of T-BOX simulation instances includes:
Acquiring configuration parameters of the T-BOX simulation instance, wherein the configuration parameters at least comprise the quantity of the T-BOX to be generated;
and generating T-BOX simulation examples corresponding to the number of the T-BOXs according to a preset command function based on the configuration parameters.
Further, in the above T-BOX simulation method, the configuration parameters further include at least one of thread number, encryption and decryption requirements, a start bit, an IP address of the message middleware, and a preset step sleep time.
Further, in the above T-BOX simulation method, the preset step includes the T-BOX simulation example receiving a vehicle control instruction.
Further, in the above T-BOX simulation method, the preset step further includes the T-BOX simulation instance successfully processing the received vehicle control instruction and reporting the executed vehicle control instruction to the T-BOX simulation instance.
Further, in the above-mentioned T-BOX simulation method, the message channel is created when the T-BOX simulation instance is created.
Further, in the above method for T-BOX simulation, the processing the message of the T-BOX simulation instance and the middleware based on the message channel includes:
Sending the message of the T-BOX simulation instance to the middleware through the message, so as to subscribe to a terminal to be tested;
After the test terminal subscribes to the message, replying a corresponding return message to the middleware so as to subscribe to the T-BOX simulation instance;
And after the T-BOX simulation instance subscribes to the return message, processing the return message.
Further, in the above T-BOX simulation method, the first message after the message channel is created is a login message, and the corresponding return message is a login confirmation message.
In a second aspect, the present invention provides a T-BOX simulation system, which adopts the following technical scheme:
a T-BOX simulation system, comprising:
the simulation instance creation module is at least used for generating a preset number of T-BOX simulation instances;
The message channel establishing module is at least used for establishing a message channel between each T-BOX simulation instance and the middleware for testing when each T-BOX simulation instance is generated;
and the message processing module is at least used for processing the message of the T-BOX simulation instance and the middleware based on the message channel.
In a third aspect, the present invention provides a T-BOX simulator, which adopts the following technical scheme:
A T-BOX simulator comprising at least the T-BOX simulation system according to the second aspect described above.
In a fourth aspect, the present invention provides a readable storage medium, which adopts the following technical scheme:
a readable storage medium storing computer instructions which, when executed by a processor, implement the T-BOX simulation method of any one of the first aspects above.
In summary, compared with the prior art, the invention has at least one of the following beneficial technical effects:
1. by the method, a plurality of T-BOX simulation examples can be quickly created, and simulation of multiple vehicles is realized. The system is beneficial to carrying out large-scale concurrent pressure test, and more truly simulates the performance of a remote vehicle control system under a high-load condition, so that the stability and performance of the system are evaluated;
2. Each simulation instance, immediately after creation, can actively send a first message to the test terminal, explicitly informing the test terminal of the number of T-boxes (vehicles) that are ready. The real-time feedback mechanism enables a user to clearly know whether the number of started simulation instances reaches a preset concurrency or not, so that concurrent pressure measurement can be started immediately after the number of the simulation instances reaches a target concurrency, and flexibility and efficiency of the measurement are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block flow diagram of one embodiment of a T-BOX simulation method of the present invention.
Fig. 2 is a flow chart of another embodiment of a T-BOX simulation method of the present invention.
Fig. 3 is a schematic diagram of an embodiment of a T-BOX simulation method according to the present invention.
Fig. 4 is a schematic diagram of a T-BOX simulation system according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application. Furthermore, it should be understood that the detailed description is presented herein for purposes of illustration and description only, and is not intended to limit the application.
It should be noted that the following description order of the embodiments is not intended to limit the preferred order of the embodiments of the present application. In the following embodiments, the descriptions of the embodiments are focused on, and for the part that is not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
The execution sequence of the method steps in the embodiments of the present invention may be performed according to the sequence described in the specific embodiments, or the execution sequence of each step may be adjusted according to actual needs on the premise of solving the technical problem, which is not listed here.
The large concurrent pressure test of remote vehicle control is a software test method and is focused on evaluating the performance and reliability of a vehicle remote control system in the face of a large number of concurrent requests and high concurrent user operations. The test measures response time, resource utilization, stability, and possible performance bottlenecks of the system under extreme loads by simulating multiple users to simultaneously perform remote vehicle control operations, such as unlocking, locking, activating air conditioning, and the like. The purpose is to ensure that a vehicle remote control system can effectively cope with high concurrency situations in actual use and provide smooth and stable service. This helps identify and solve potential problems to ensure that the system remains operating efficiently when large-scale users are simultaneously using it.
In the large concurrent pressure test of remote vehicle control, the T-BOX simulation example plays a key role, and the performance and stability of the vehicle remote control system under the conditions of high load and simultaneous access of multiple users are comprehensively evaluated by simulating the identity authentication of the vehicle or the user, generating an identity token and simulating the concurrent user operation. The T-BOX simulation example is combined with the test scene, so that the efficiency of the system in key aspects such as identity authentication, access control and response time in large-scale user operation is verified, and comprehensive evaluation and optimization basis is provided for the overall performance of the system. The comprehensive testing method is helpful for finding and solving the possible performance bottleneck in the large concurrency environment, and ensures that the remote vehicle control system can operate efficiently and reliably in practical application.
The invention is described in further detail below with reference to fig. 1-4.
Referring to fig. 1, a T-BOX simulation method provided by an embodiment of the present invention includes:
s1, generating a preset number of T-BOX simulation examples;
s2, when each T-BOX simulation instance is generated, establishing a message channel between the T-BOX simulation instance and middleware for testing;
S3, based on the message channel, processing the message of the T-BOX simulation instance and the middleware.
Specifically, first, a preset number of T-BOX simulation instances are generated by S1, which involves setting parameters such as the number of T-BOX instances and initial configuration. Then, at the S2 stage, when each T-BOX simulation instance is generated, through a specific initialization process, an effective message channel is ensured to be established between the T-BOX simulation instance and the middleware for testing, including identity authentication, key exchange or other security mechanisms of the T-BOX simulation instance, so as to ensure the security and reliability of communication. Finally, in S3, based on the message channel, a message between the T-BOX simulation instance and the middleware is processed. This process includes receiving and parsing messages from the middleware while generating and sending simulated identity and access management messages to the middleware. Overall, the T-BOX simulation method can effectively simulate the communication process between multiple T-BOX instances and middleware, and provides a reliable means for performance testing of identity and access management systems.
Further, as an embodiment of the present invention, the generating a preset number of T-BOX simulation instances includes: acquiring configuration parameters of the T-BOX simulation instance, wherein the configuration parameters at least comprise the quantity of the T-BOX to be generated; and generating T-BOX simulation examples corresponding to the number of the T-BOXs according to a preset command function based on the configuration parameters.
Specifically, first, the step of obtaining configuration parameters of the T-BOX simulation instance is performed, including obtaining relevant parameters from a predetermined configuration source, including at least the number of T-boxes that need to be generated. Then, on the basis of acquiring the configuration parameters, a step of generating a T-BOX simulation instance according to a preset command function is performed. This involves generating a corresponding number of T-BOX simulation instances one by one, based on the number of T-boxes specified in the configuration parameters, using a predefined command function. The process of generating the T-BOX simulation instance may include initializing identity information of the T-BOX instance, configuring security policies, assigning unique identifiers, and the like. Overall, this embodiment effectively generates the required number of T-BOX simulation instances by explicitly defining configuration parameters and preset command functions, providing a controllable and repeatable environment for subsequent identity and access management system testing.
Further, as an embodiment of the present invention, the configuration parameters further include at least one of a thread number, encryption and decryption requirements, a start bit, an IP address of the message middleware, and a preset step sleep time.
Specifically, the configuration parameters cover a plurality of key aspects, including at least one of thread number, encryption and decryption requirements, start bit, IP address of message middleware and preset step sleep time. The thread number designates the number of concurrent threads started in the test process, the encryption and decryption requirements indicate whether encryption and decryption operations are needed to be carried out on the transmitted message, the initial value of an identifier when the T-BOX simulation instance is generated is set as a start bit, and the IP address of the message middleware is used for establishing communication connection with the middleware. The preset step sleep time refers to a pause time between execution of preset steps, and includes at least one designated time period. The combined effect of these configuration parameters is to provide flexibility and customization for the generation and testing of T-BOX simulation instances to meet specific test scenarios and requirements.
Further, as an embodiment of the present invention, the presetting step includes the T-BOX simulation instance receiving a vehicle control command.
Specifically, during the sleep time between preset steps, the T-BOX simulation instance is designed to be able to receive and process vehicle control instructions from the test scene. Such a design allows for simulating the timely response of T-BOX simulation instances to vehicle remote control commands in an actual scenario during testing in order to comprehensively evaluate the performance and reliability of the system in the concurrent scenario of vehicle control commands. By introducing this step during sleep, the behavior of the T-BOX system in actual use can be more realistically simulated and more accurate data can be provided for comprehensive assessment of system performance.
Further, as an implementation mode of the present invention, the preset step further includes the T-BOX simulation instance successfully processing the received vehicle control instruction and reporting the executed vehicle control instruction to the T-BOX simulation instance.
Specifically, in a specific test scenario, the preset step of the T-BOX simulation instance includes simulating a vehicle remote control process. First, the T-BOX simulation instance successfully receives a simulated vehicle control command, such as an unlock, lock, etc. Then, the T-BOX simulation instance is designed to successfully process the received instructions, simulate the response flow of the actual system to the operation of the vehicle, and ensure the accuracy and reliability of the execution process.
Meanwhile, in the preset step, the T-BOX simulation example also simulates the process of reporting the executed vehicle control instruction. This means that the T-BOX simulation instance reports executed instruction information, including execution results, state changes, and the like, to the system after successfully executing the vehicle control instruction. The design is helpful for verifying the recording and tracking functions of the system for executing the operation on the T-BOX instance, and ensuring that the system can accurately acquire and process the operation information of the T-BOX simulation instance in practical application.
Through the series of specific preset steps, a tester can comprehensively evaluate the overall performance of the T-BOX system in a vehicle remote control scene, and the overall performance comprises the aspects of receiving instructions, processing the instructions, executing operations, reporting execution results and the like, so that detailed test data are provided for the reliability and stability of the system.
Illustratively, a specified number of T-BOX simulation instances are generated at a time, formed in accordance with the following command function: java-jar T-BOX. Jar < T-BOX number > < thread number > < whether encryption/decryption is required > < start bit > < IP address of emq_token > < sleep time after subscribing to 5/7 > < sleep time before issuing 5/5 > < sleep time before issuing 5/9 >, wherein:
the T-BOX number represents a total number of T-BOX simulation instances specified to be initialized;
the thread number represents the number of concurrent threads appointed to be started, and is suggested to be a multiple of the CPU core number so as to fully utilize system resources;
whether encryption and decryption are needed indicates whether the MQTT message is specified to be encrypted and decrypted, and the digital representation is used (0: not encrypting and decrypting |1: encrypting and decrypting using international algorithm |2: encrypting and decrypting using national encryption algorithm).
The start bit represents the start bit of the clientid suffix for the T-BOX simulation instance, and the following clientid will accumulate 1 one by one.
IP address of emq_token: the IP address of the EMQ message middleware is specified.
Sleep time after subscribing to 5/7 represents the sleep time in milliseconds after the T-BOX simulation instance subscribes to message 5/7.
The sleep time before issue of 5/5 represents the sleep time in milliseconds before the T-BOX simulation instance issues message 5/5.
The sleep time before 5/9 is published represents the sleep time in milliseconds before the T-BOX simulation instance publishes message 5/9.
Further, the above:
subscription 5/7 indicates that the T-BOX simulation instance received a vehicle control instruction;
issuing 5/8 to indicate that the T-BOX simulation instance successfully processes the received vehicle control instruction;
And issuing a 5/5T-BOX simulation example to report the executed vehicle control instruction.
Further, the vehicle control command includes, but is not limited to, unlocking, locking, turning on the air conditioner, turning off the air conditioner, increasing the upper pressure, decreasing the lower pressure, etc.
Further, as an embodiment of the present invention, the message channel is created when the T-BOX simulation instance is created.
Specifically, the T-BOX simulation instance establishes a communication channel with the message middleware in an initialization stage. This channel is a bi-directional interaction path that enables the T-BOX simulation instance to communicate information with the message middleware in real time. By creating the message channel while the T-BOX simulation instance is being created, it is ensured that the T-BOX instance has the capability of communicating with the middleware immediately after being started, so that subscription, publishing and other operations related to middleware interaction can be performed while participating in the message passing process of the whole system. The design of the real-time establishment channel is beneficial to ensuring that the T-BOX simulation instance can timely respond to the message demand of the system in the running process, and realizing the accuracy and the instantaneity of the simulation test.
Further, referring to fig. 2, step S3, as an embodiment of the present invention, processes, based on the message channel, the message of the T-BOX simulation instance and the middleware, including:
S31, sending the message of the T-BOX simulation example to the middleware through the message to subscribe to a terminal to be tested;
S32, after the test terminal subscribes to the message, replying a corresponding return message to the middleware so as to subscribe to the T-BOX simulation instance;
S33, after the T-BOX simulation instance subscribes to the return message, the return message is processed.
Specifically, first, in S31 stage, a message of the T-BOX simulation instance is sent to the middleware through the message channel, so as to wait for the subscription of the test terminal. This involves passing messages generated by the T-BOX simulation instance through the channel to the message middleware so that subsequent test terminals can subscribe to these messages.
Then, in S32, once the test terminal subscribes to the message, it replies to the middleware with a corresponding return message to wait for the T-BOX simulation instance subscription. This phase simulates the response behavior of the test terminal to the T-BOX simulation instance message, ensuring that the message is properly delivered and responded to in the system.
Finally, in S33, after the T-BOX simulation instance subscribes to the return message, it processes the subscribed return message. This may include parsing the message content, performing corresponding operations, and performing analog control of the system. The whole process realizes the bidirectional transmission and processing of the messages between the T-BOX simulation instance and the middleware through the synergistic effect of the message channels, and provides a controllable and observable communication environment for the test scene.
The step S3 is used for effectively processing the message between the T-BOX simulation instance and the middleware and ensuring the bidirectional transmission and the processing flow of the message in the system. First, in S31, a message generated by the T-BOX simulation instance is sent to the middleware through a message channel, so that a terminal subscription to be tested is to be tested. Then, in S32, after subscribing to the message, the test terminal replies a corresponding return message to the middleware, so as to simulate the response of the test terminal to the T-BOX simulation instance message. Finally, in S33, the T-BOX simulation instance subscribes to the return message and processes it, possibly involving operations such as message parsing, simulation control, etc. The whole flow simulates the interaction process of messages between the T-BOX instance and the test terminal in the actual system, and provides a controllable and observable test environment to verify the performance and reliability of the T-BOX system in terms of message transmission and processing.
Further, as an embodiment of the present invention, the first message after the message channel is created is a login message, and the return message is a login confirmation message.
Specifically, once a message channel is created, the system specifies an initial message interaction flow. In this flow, the first message sent by the T-BOX simulation instance is a login message, which indicates that the T-BOX simulation instance performs authentication and establishes a connection in the system. And then, after receiving the login message, the test terminal replies a corresponding return message, namely a login confirmation message, so as to confirm the validity of the T-BOX simulation instance. This initial message interaction process simulates the login and authentication operations of the devices in the actual system, ensuring that the T-BOX simulation instance can successfully access the system at the beginning of the test, and that the system can properly respond and confirm the connection. The design is helpful for establishing a stable and reliable communication channel in a test environment, and provides a reliable basis for subsequent test scenes.
Illustratively, as shown in the dashed BOX of FIG. 3, I1-S1 is a message issued to the EMQ for the 1 st T-BOX simulation instance, where after the T-BOX simulation instance is initialized, the first message issued is 2/1 for aid and mid, i.e.: aid 2, mid:1.
I1-S2 is the message to which the 1 st T-BOX simulation instance subscribes from EMQ, and the aid and mid of the received message should be 2/2, namely: aid 2, mid 2.
I2-S1 is a message issued to the EMQ by the 2 nd T-BOX simulation instance, and after the T-BOX simulation instance is initialized and generated, the aid and mid of the first issued message are 2/1, namely: aid 2, mid:1.
I1-S2 is the message to which the 2 nd T-BOX simulation instance subscribes from EMQ, and the aid and mid of the received message should be 2/2, namely: aid 2, mid 2.
And so on until:
In-S1 is a message issued to the EMQ by the nth T-BOX simulation instance, after the initialization and generation of the T-BOX simulation instance, the aid and mid of the first message issued are 2/1, namely: aid 2, mid:1.
In-S2 is the message to which the nth T-BOX simulation instance subscribes from EMQ, and the aid and mid of the received message should be 2/2, namely: aid 2, mid 2.
In summary, after all the T-BOX simulation instances are started, 2/1 is sent out, then the subscription to 2/2 is waited, and only after the subscription to 2/2 is completed, the following steps are continued, wherein the following steps comprise:
subscription 5/7, subscription to vehicle control instructions;
Issuing 5/8, and issuing ACK (acknowledgement) to the cloud;
and 5/5, reporting the event, wherein the reported content is a vehicle control instruction.
The embodiment of the invention also discloses a system for simulating the T-BOX.
Referring to fig. 4, a T-BOX simulation system includes a simulation instance creation module 1, a message channel creation module 2, and a message processing module 3.
An embodiment of the simulation instance creation module 1 includes obtaining configuration parameters of T-BOX simulation instances, including at least the number of T-boxes to be generated, and generating a corresponding number of T-BOX simulation instances using a preset command function based on the configuration parameters. The module is used for generating a specified number of T-BOX simulation examples at one time through preset configuration parameters and command functions, simulating the existence of a plurality of devices in the T-BOX system and providing a test environment for subsequent large-scale concurrent tests. This ensures that the system is able to efficiently handle concurrent operation of multiple T-BOX simulation instances in a test, evaluating the performance and stability of the T-BOX system under large scale loads.
An embodiment of the message channel creation module 2 includes immediately creating a message channel with the middleware for testing at the time of each T-BOX simulation instance generation, i.e., simulation instance creation phase. This channel is a bi-directional communication path that enables real-time message interaction between the T-BOX simulation instance and the middleware. Typically, this involves the steps of connection configuration, authentication and handshaking between the T-BOX simulation instance and the middleware, ensuring proper establishment of the channel. The function of this module is to ensure that the T-BOX simulation instance is immediately capable of communicating with the middleware upon initialization generation. By establishing a message channel while the T-BOX simulation instance is generated, the system can immediately subscribe and publish the message after the T-BOX instance is started, and simulate real-time communication of the T-BOX instance in an actual system. This helps the tester to precisely control the behavior of the T-BOX instance in a simulated environment, evaluating the responsiveness and accuracy of the system to instant messaging.
The embodiment of the message processing module 3 relates to processing a message between a T-BOX simulation instance and middleware to ensure that the message passing and processing flow inside the system is operating normally. In practice, the module may include key steps such as messaging, subscription, response, and processing. First, a message generated by the T-BOX simulation instance is sent to the middleware through an established message channel to wait for subscription of the test terminal. And after the test terminal subscribes to the message, replying a corresponding return message to the middleware, and simulating the response of the test terminal to the T-BOX simulation instance message. Finally, after the T-BOX simulation instance subscribes to the return message, the return message is processed, which may include operations such as message parsing and simulation control. The module is used for simulating the real-time transmission and processing process of the messages in the T-BOX system, and providing a controllable test environment for evaluating the system performance and reliability. By observing the transmission of the message and the processing of the message by the T-BOX simulation example in real time, the tester can comprehensively evaluate the performance of the system under the large-scale concurrent load.
The synergistic effect of the three modules enables the T-BOX simulation system to efficiently conduct remote controlled large concurrent pressure testing in a simulation environment. The multiple instance generation module provides a controllable simulation of the number of devices, the message channel setup module ensures real-time communication between instances, and the message processing module simulates the full life cycle of messages in the T-BOX system. Overall, they together construct a controllable, observable test environment that provides a comprehensive assessment of T-BOX system performance, stability and reliability.
The embodiment of the invention also discloses a T-BOX simulator. The simulator at least comprises the T-BOX simulation system in the embodiment.
Specifically, an embodiment of the present invention discloses a T-BOX simulator, which at least includes the above-mentioned T-BOX simulation system. The T-BOX simulation system comprises a simulation instance creation module, a message channel creation module and a message processing module, and forms a complete T-BOX simulation environment together. The T-BOX simulator provides a controllable and observable platform for large-scale concurrent pressure test of a remote vehicle control system by creating a simulation instance, establishing a message channel with a middleware and simulating a message processing process. The design of the T-BOX simulator helps to evaluate the performance of the T-BOX system in real scenes and provides a reference for optimizing and improving the system.
For concurrent pressure testing of platform interfaces, it is not sufficient to invoke the interface only, without regard to downstream testing. And the whole link closed loop is also concerned, and the performance index is monitored on each node, so that the real performance of the target to be controlled can be accurately controlled. The T-BOX simulator is used for simulating T-BOX firmware of a vehicle end, and corresponding messages are published and subscribed to sequentially. The command sent by the remote car control interface of the platform after being called can be received and replied by the simulated car end T-BOX, so that the whole remote car control link is closed.
The test staff generally adopts direct calling interface and checking the replied message to carry out interface test, but in the cloud platform, after the target interface is usually requested, the data in the request message is directly transmitted to the service at the downstream of the link, the test staff can easily ignore or don' T care the execution condition of the downstream link, and directly takes the successful message returned by the interface as the basis, so that the method is inaccurate, even erroneous, and the reply of the simulated vehicle end T-BOX is taken as the remote vehicle control execution success standard.
If the emulated vehicle end T-BOX fails to subscribe to the message from the message middleware or replies to the message after subscribing to the message, i.e., issues a new message to the message middleware for the remote vehicle control service to subscribe to, but the remote vehicle control service fails to subscribe to, then this indicates that there may be other components in the remote control link that are malfunctioning, thus helping to locate the problem from the side and helping to eliminate the problem.
The embodiment of the invention also discloses a readable storage medium.
A readable storage medium storing a computer program which when executed by a processor performs the steps of a T-BOX simulation method according to any one of the above embodiments. The computer readable storage medium may include: any entity or device capable of carrying a computer program, a recording medium, a USB flash disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a software distribution medium, and so forth. The computer program comprises computer program code. The computer program code may be in the form of source code, object code, executable files, or in some intermediate form, among others. The computer readable storage medium may include: any entity or device capable of carrying computer program code, a recording medium, a USB flash disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a software distribution medium, and so forth.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, system that includes a processing module, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. A method of T-BOX simulation comprising:
Generating a preset number of T-BOX simulation examples;
When each T-BOX simulation instance is generated, establishing a message channel between the T-BOX simulation instance and middleware for testing;
and processing the message of the T-BOX simulation instance and the middleware based on the message channel.
2. The method of claim 1, wherein generating a predetermined number of T-BOX simulation instances comprises:
Acquiring configuration parameters of the T-BOX simulation instance, wherein the configuration parameters at least comprise the quantity of the T-BOX to be generated;
and generating T-BOX simulation examples corresponding to the number of the T-BOXs according to a preset command function based on the configuration parameters.
3. The T-BOX emulation method of claim 2, wherein said configuration parameters further comprise at least one of a thread count, encryption and decryption requirements, a start bit, an IP address of message middleware, and a preset step sleep time.
4. A T-BOX simulation method according to claim 3, wherein the presetting step includes the T-BOX simulation instance receiving a vehicle control instruction.
5. The method of claim 4, wherein the step of presetting further comprises the T-BOX simulation instance successfully processing the received vehicle control instructions and reporting the executed vehicle control instructions to the T-BOX simulation instance.
6. The T-BOX simulation method according to claim 1, wherein the message channel is created at the time of T-BOX simulation instance creation.
7. The method for simulating T-BOX according to claim 1, wherein said processing the message of the T-BOX simulation instance and the middleware based on the message channel comprises:
Sending the message of the T-BOX simulation instance to the middleware through the message, so as to subscribe to a terminal to be tested;
After the test terminal subscribes to the message, replying a corresponding return message to the middleware so as to subscribe to the T-BOX simulation instance;
And after the T-BOX simulation instance subscribes to the return message, processing the return message.
8. The T-BOX simulation method according to claim 7, wherein the first message after the message channel is created is a login message, and the return message is a login confirmation message.
9. A T-BOX simulation system, the system comprising:
the simulation instance creation module is at least used for generating a preset number of T-BOX simulation instances;
The message channel establishing module is at least used for establishing a message channel between each T-BOX simulation instance and the middleware for testing when each T-BOX simulation instance is generated;
and the message processing module is at least used for processing the message of the T-BOX simulation instance and the middleware based on the message channel.
10. A T-BOX simulator, characterized in that it comprises at least a T-BOX simulation system according to claim 9.
11. A readable storage medium storing computer instructions which, when executed by a processor, implement a T-BOX simulation method according to any of claims 1-8.
CN202311853611.6A 2023-12-29 2023-12-29 T-BOX simulation method, simulation system, simulator and medium Pending CN117909094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311853611.6A CN117909094A (en) 2023-12-29 2023-12-29 T-BOX simulation method, simulation system, simulator and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311853611.6A CN117909094A (en) 2023-12-29 2023-12-29 T-BOX simulation method, simulation system, simulator and medium

Publications (1)

Publication Number Publication Date
CN117909094A true CN117909094A (en) 2024-04-19

Family

ID=90689153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311853611.6A Pending CN117909094A (en) 2023-12-29 2023-12-29 T-BOX simulation method, simulation system, simulator and medium

Country Status (1)

Country Link
CN (1) CN117909094A (en)

Similar Documents

Publication Publication Date Title
CN111262759B (en) Internet of things platform testing method, device, equipment and storage medium
CN110226317B (en) Data authentication method, device and system
CN109740222B (en) Testing device and system for automobile networking scene
CN110120970B (en) Data processing method and device based on Internet of vehicles and gateway system
CN104579822A (en) Automatic performance test system and method of mobile application based on Http protocol
CN107483297B (en) Active monitoring system and method for quality of service carried on embedded equipment
US11709769B2 (en) Method for testing a microservice application
JP2018077848A (en) Automatic test method for application program of smart apparatus using authority grant starting device
CN109254913A (en) Collaborative share method, apparatus, electronic equipment and computer storage medium
CN114328217A (en) Application testing method, device, equipment, medium and computer program product
CN112632527A (en) API (application programming interface) testing method and system for service open platform
CN112199273B (en) Virtual machine pressure/performance testing method and system
CN111917750B (en) Data interaction method and interface for simulation communication network and simulation power network
CN113067802A (en) User identification method, device, equipment and computer readable storage medium
CN117909094A (en) T-BOX simulation method, simulation system, simulator and medium
CN109669829A (en) A kind of diagnosis adjustment method, device and server based on BMC
CN116074228A (en) Network card testing method and device, storage medium and electronic equipment
CN111090575B (en) Test method
CN113868116A (en) Test dependent data generation method and device, server and storage medium
CN113656313A (en) Automatic test processing method and device
García-Valls Prototyping low-cost and flexible vehicle diagnostic systems
CN116340066A (en) Performance test method and system for server
CN113742226B (en) Software performance test method and device, medium and electronic equipment
CN115811488A (en) Internet of vehicles multi-protocol testing system and method
CN114915562B (en) IEC 61850 station control layer network communication service simulation server and simulation method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination