CN115695233B - Link testing device, method, electronic equipment and computer program product - Google Patents

Link testing device, method, electronic equipment and computer program product Download PDF

Info

Publication number
CN115695233B
CN115695233B CN202310000640.1A CN202310000640A CN115695233B CN 115695233 B CN115695233 B CN 115695233B CN 202310000640 A CN202310000640 A CN 202310000640A CN 115695233 B CN115695233 B CN 115695233B
Authority
CN
China
Prior art keywords
terminal
response result
vehicle
test request
link
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.)
Active
Application number
CN202310000640.1A
Other languages
Chinese (zh)
Other versions
CN115695233A (en
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.)
Beijing Jidu Technology Co Ltd
Original Assignee
Beijing Jidu 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 Beijing Jidu Technology Co Ltd filed Critical Beijing Jidu Technology Co Ltd
Priority to CN202310000640.1A priority Critical patent/CN115695233B/en
Publication of CN115695233A publication Critical patent/CN115695233A/en
Application granted granted Critical
Publication of CN115695233B publication Critical patent/CN115695233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a link testing device, a method, electronic equipment and a computer program product, which relate to the technical field of vehicles, and the device comprises: the receiving and sending module is in communication connection with the vehicle-end simulation module, and the receiving and sending module is used for receiving a test request sent by each terminal in the N terminals and forwarding the test request corresponding to each terminal to the vehicle-end simulation module; the vehicle-end simulation module is used for receiving the test request which is sent by the transceiving module and corresponds to each terminal; the vehicle-end simulation module is also used for determining a terminal identifier corresponding to each terminal based on the first mapping relation and the link identifier of each test request; and the vehicle-end simulation module is further used for sending the first response result corresponding to each terminal to the transceiver module under the condition that the database is queried respectively based on the terminal identifier corresponding to each terminal to obtain the first response result corresponding to each terminal. The invention improves the flexibility of the link test.

Description

Link testing device, method, electronic equipment and computer program product
Technical Field
The present invention relates to the field of vehicle technologies, and in particular, to a link testing apparatus, a link testing method, an electronic device, and a computer program product.
Background
With the development of vehicle technology, a user can control a vehicle through an Application (APP) to perform a remote operation such as opening and closing a door. In the related art, a user accesses a network and sends a request to a vehicle, and a vehicle networking controller is arranged on the vehicle and accesses the network, so that the request sent by the user is received, and further a specific request is executed. However, in the related art, the network controller needs to rely on a Subscriber Identity Module (SIM) in the vehicle to receive the request, and the vehicle needs to be tested only by the physical vehicle when the vehicle performs the link test, which results in low flexibility of the vehicle link test.
It can be seen that there is a problem in the related art that the flexibility of the vehicle link test is low.
Disclosure of Invention
Embodiments of the present invention provide a link testing apparatus and method, and a computer program product, so as to solve the problem in the related art that the flexibility of a vehicle link test is low.
In order to solve the problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a link testing apparatus, which includes a transceiver module and a vehicle-end simulation module, where the transceiver module is in communication connection with the vehicle-end simulation module,
the receiving and sending module is used for receiving a test request sent by each terminal in the N terminals and forwarding the test request corresponding to each terminal to the vehicle-end simulation module, the test request corresponding to each terminal comprises a link identifier, and N is a positive integer;
the vehicle end simulation module is used for receiving the test request which is sent by the transceiving module and corresponds to each terminal;
the vehicle-end simulation module is further configured to determine a terminal identifier corresponding to each terminal based on a first mapping relationship and the link identifier of each test request, where the first mapping relationship is a mapping relationship between the terminal identifier and the link identifier;
the vehicle-end simulation module is further configured to send a first response result corresponding to each terminal to the transceiver module under the condition that a first response result corresponding to each terminal is obtained by querying a database based on a terminal identifier corresponding to each terminal, where the first response result is used to represent a pre-configured response result corresponding to each test request;
the transceiver module is further configured to send a first response result corresponding to each terminal.
In a second aspect, an embodiment of the present invention further provides a link testing method, including:
receiving a test request sent by each terminal in N terminals, wherein the test request corresponding to each terminal comprises a link identification, and N is a positive integer;
determining a terminal identifier corresponding to each terminal based on a first mapping relation and the link identifier of each test request, wherein the first mapping relation is the mapping relation between the terminal identifier and the link identifier;
and under the condition that a database is queried respectively based on the terminal identification corresponding to each terminal to obtain a first response result corresponding to each terminal, sending the first response result corresponding to each terminal, wherein the first response result is used for representing a pre-configured response result corresponding to each test request.
In a third aspect, an embodiment of the present invention further provides a computer program that includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the computer program implements the steps in the method according to the first aspect.
In a fourth aspect, the present invention further provides a computer program product, which includes a computer program/instruction, and when the computer program/instruction processor is executed, the steps in the method according to the first aspect are implemented.
In the embodiment of the invention, the receiving and sending module is used for receiving the test request sent by each terminal and forwarding the test request to the vehicle-end simulation module, the vehicle-end simulation module respectively determines the terminal identifier corresponding to each terminal according to the first mapping relation and the link identifier included in the test request after receiving the test request corresponding to each terminal, then respectively determines the first response result corresponding to each terminal according to the terminal identifier of each terminal, and forwards the first response result through the receiving and sending module, thereby completing the test closed loop of the whole link. The embodiment of the invention simulates the response of the vehicle to the test request of each terminal through the transceiving module and the vehicle end simulation module, completes the link test of the vehicle under the condition of not needing to carry out the vehicle, and improves the flexibility of the link test of the vehicle.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and for those skilled in the art, other drawings may be obtained according to the drawings without inventive labor.
Fig. 1 is a schematic structural diagram of a link testing apparatus according to an embodiment of the present invention;
FIG. 2 is an interaction diagram of a link test provided by an embodiment of the invention;
fig. 3 is a flowchart of a link testing method according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a link testing apparatus according to an embodiment of the present invention, as shown in fig. 1, the link testing apparatus includes a transceiver module 101 and a vehicle-end simulation module 102, the transceiver module 101 is in communication connection with the vehicle-end simulation module 102,
the transceiver module 101 is configured to receive a test request sent by each terminal of the N terminals, and forward the test request corresponding to each terminal to the vehicle-end simulation module 102, where the test request corresponding to each terminal includes a link identifier, and N is a positive integer;
the vehicle-end simulation module 102 is configured to receive the test request, sent by the transceiver module 101, corresponding to each terminal;
the vehicle-end simulation module 102 is further configured to determine a terminal identifier corresponding to each terminal based on a first mapping relationship and the link identifier of each test request, where the first mapping relationship is a mapping relationship between the terminal identifier and the link identifier;
the vehicle-end simulation module 102 is further configured to send a first response result corresponding to each terminal to the transceiver module 101 when a database is queried based on a terminal identifier corresponding to each terminal to obtain the first response result corresponding to each terminal, where the first response result is used to represent a pre-configured response result corresponding to each test request;
the transceiver module 101 is further configured to send a first response result corresponding to each terminal.
The transceiver module 101 is used for simulating a vehicle networking controller of a vehicle. As shown in fig. 2, the car networking controller is configured to load an SIM card, communicate with an operator network, and receive a request sent by a terminal through an APP; the transceiver module 101 simulates a vehicle networking controller, and receives a test request sent by a terminal through a service background through a Message Queue Telemetry Transport (MQTT) gateway, thereby implementing link simulation from the terminal to a vehicle end. After receiving the request, the vehicle networking controller forwards the request to a processor of the vehicle, and the processor controls the vehicle. And after the vehicle finishes the control step corresponding to the request, sending finished response information to the terminal through the vehicle networking controller. The vehicle networking controller is simulated through the transceiver module 101, a first response result sent by the vehicle end simulation module 102 is received, and the first response result is sent to the terminal through the MQTT gateway, so that vehicle end-to-terminal link simulation is realized.
It should be understood that in the actual use of the vehicle, there may be a case where multiple terminals are allowed to control the same vehicle, that is, the internet controller needs to receive requests sent by multiple terminals; the transceiver module 101 simulates a vehicle networking controller, receives test requests sent by the N terminals at the same time, and forwards the test request of each terminal to the vehicle end simulation module 102.
The vehicle-end simulation module 102 is configured to simulate a processing system of a vehicle, and determine a first response result corresponding to a test request corresponding to each terminal when receiving the test request corresponding to each terminal forwarded by the transceiver module 101, so as to simulate a real vehicle to make a corresponding response based on the request when receiving the request.
The vehicle-end simulation module 102 is generally an object (mock) platform, and responds to different test requests with different response results by pre-configuring mock data corresponding to the test requests under the condition of receiving the test requests forwarded by the transceiver module 101. It should be understood that the format of the test request sent by the terminal is different from the format of the data that can be processed by the mock platform, and the transceiver module 101 converts the format of the test request into the format that can be processed by the mock platform when receiving the test request, and converts the format into the format that can be processed by the terminal after receiving the first response result.
The first mapping relationship is a mapping relationship between the terminal identifier and the link identifier. It should be understood that the response result configured by the vehicle-end simulation module 102 is configured based on the terminal identifier of each terminal, when the terminal sends the test request, the terminal carries the link identifier on the header of the test request, and the link identifier is randomly generated when the terminal sends the test request, and the vehicle-end simulation module cannot directly send the terminal of the test request based on the link identifier, so that the vehicle-end simulation module 102 determines the terminal identifier according to the first mapping relationship when receiving the test request.
The database stores a first mapping relation and a first response result corresponding to each terminal. The data stored in the database may be pre-configured, or the terminal may configure the first mapping relationship in the test process, as described in the following embodiments.
For example, in the link test process of the vehicle, the transceiver module 101 receives a test request 1 sent by the terminal a and a test request 2 sent by the terminal B, and forwards the test request 1 and the test request 2 to the vehicle-end simulation module 102; the vehicle-end simulation module 102 determines a first response result a corresponding to the test request 1, determines a first response result B corresponding to the test request 2, sends the first response result a to the terminal a through the transceiver module 101, and sends the first response result B to the terminal B.
If the transceiver module 101 does not receive the test request 1 or the test request 2, the link from the terminal to the vehicle end is considered to be abnormal, and personnel is required to overhaul the link; and if the terminal A receives the first response result B or does not receive the first response result, or the terminal B receives the first response result a or does not receive the first response result, considering that the link from the vehicle end to the terminal is abnormal, and needing personnel to overhaul.
In the embodiment of the present invention, the transceiver module 101 receives a test request sent by each terminal and forwards the test request to the vehicle-end simulation module 102, after receiving the test request corresponding to each terminal, the vehicle-end simulation module 102 determines a terminal identifier corresponding to each terminal according to the first mapping relationship and the link identifier included in the test request, determines a first response result corresponding to each terminal according to the terminal identifier of each terminal, and forwards the first response result through the transceiver module 101, thereby completing a test closed loop of the whole link. In the embodiment of the invention, the response of the vehicle to the test request of each terminal is simulated through the transceiver module 101 and the vehicle end simulation module 102, the link test of the vehicle is completed without actual vehicle, and the flexibility of the link test of the vehicle is improved.
Optionally, the vehicle-end simulation module 102 is further configured to send a preset second response result to the transceiver module 101 when the first response result corresponding to the first terminal is not obtained based on the first terminal identifier query database corresponding to the first terminal of the N terminals, where the second response result is used to represent that the first response result corresponding to the first terminal is not configured;
the transceiver module 101 is further configured to send the second response result to the first terminal.
And the second response result is used for representing the first response result corresponding to the unconfigured terminal. It should be understood that, in the test process, the vehicle-end simulation module 102 receives test requests sent by the plurality of terminals, and when there is a situation that a corresponding first response result is not configured for a test request of a part of the plurality of terminals when querying the database, a second response result needs to be fed back to the part of the terminals to prompt a person to perform pre-configuration on the test request of the part of the terminals.
Illustratively, the vehicle-end module receives a test request corresponding to the terminal C, queries the database to obtain a first response result corresponding to the terminal identifier of the terminal C, sends a second response result to the terminal C, confirms that the database is not configured with the first response result from the second response result received by the terminal C, and performs the test after reconfiguration.
In the embodiment of the present invention, the vehicle-end simulation module 102 sends a second response result to the terminal through the transceiver module 101 when the first response result corresponding to the terminal identifier is not queried, where the second response result is used to represent the first response result corresponding to the unconfigured terminal, so as to prompt a person to configure the corresponding first response result for the test request of the terminal, so as to implement a complete link test.
Optionally, a terminal identifier set is stored in the database, where the terminal identifier set includes a plurality of terminal identifiers and at least one user configuration rule corresponding to each terminal identifier in the plurality of terminal identifiers, and each user configuration rule includes at least one response result;
the vehicle-end simulation module 102 is specifically configured to query the terminal identifier set based on the terminal identifier corresponding to each terminal, so as to obtain a user configuration rule corresponding to each terminal;
the vehicle-end simulation module 102 is specifically configured to determine the first response result based on the user configuration rule corresponding to each terminal, where the first response result is one response result of at least one response result included in the user configuration rule.
The user configuration rule is a rule which is configured in advance and corresponds to each terminal. It should be understood that, when a link test of a vehicle is performed, test requests sent by different terminals are different, and the user configuration rule is a rule for sequentially configuring a first response result for the different test requests sent by each terminal, so that the first response result received by each terminal is different, and whether a link from a vehicle end to the terminal is normal or not is accurately identified.
For example, when a link test is performed, the vehicle-end simulation module 102 receives test requests sent by the terminal D and the terminal E, and determines the first response result D corresponding to the terminal D and the first response result E corresponding to the terminal E, respectively. At this time, the vehicle-end simulation module 102 is abnormal, which causes the terminal D to receive the first response result E and the terminal E to receive the first response result D. If the contents of the first response result D and the first response result e are the same, the terminal D considers that the first response result D is received and the whole link is complete; if the contents of the first response result D and the first response result e are different, the terminal D may determine that the first response result e is received, and at this time, the entire link is incomplete and needs to be adjusted.
In the embodiment of the invention, the vehicle-end simulation module 102 queries the terminal identifier set based on the terminal identifier corresponding to each terminal to obtain the user configuration rule corresponding to each terminal, determines the first response result based on the user configuration rule corresponding to each terminal, and sends the first response result to the corresponding terminal through the transceiver module 101, so that the result of the link test is determined according to the first response result received by the terminal, and the flexibility of the link test is improved.
Optionally, the vehicle-end simulation module 102 is specifically configured to query the user configuration rule corresponding to each terminal based on the request content of the test request of each terminal, so as to obtain the first response result, where the first response result is a response result corresponding to the request content of the test request in the at least one response result.
It should be understood that, in the process of performing the link test, the same terminal may send different test requests, and the vehicle-end simulation module 102 needs to respond to the different test requests after receiving the different test requests.
For example, if the terminal F needs to send 4 different test requests, the user configuration rule corresponding to the terminal F includes a first response result corresponding to each test request in the 4 different test requests, and when the vehicle end receives the test request sent by the terminal F, according to the request content of the test request, a first response result corresponding to the test request is determined in the first response results in the user configuration rule, and then the first response result is sent to the terminal F, so that the link test of the vehicle is completed.
In the embodiment of the invention, the user matching rule corresponding to each terminal is inquired through the request content of the test request of each terminal, the first response result corresponding to the request content of the test request is obtained, the terminal sends different test requests to perform link test, and the flexibility of the link test is further improved.
Optionally, the link identifier corresponding to each terminal is generated when the test request is sent to each terminal;
the first mapping relationship includes a mapping relationship between the link identifier corresponding to each terminal and the terminal identifier corresponding to each terminal.
It should be understood that, since the link identifier is randomly generated in the header of the test request when the terminal sends the test request, the vehicle-end simulation module 102 cannot directly identify the link identifier, and needs to determine the terminal identifier corresponding to the link identifier based on the first mapping relationship.
Since the link identifier is generated at the terminal, the terminal is required to determine a mapping relationship between the link identifier and the terminal identifier, and store the mapping relationship into the first mapping relationship of the database, so that the vehicle-end simulation module 102 can determine the terminal identifier through the first mapping relationship.
In the embodiment of the present invention, the first mapping relationship includes a mapping relationship between a link identifier corresponding to each terminal and a terminal identifier corresponding to each terminal, the vehicle-end simulation module 102 determines the terminal identifier corresponding to the link identifier of the received test request through the first mapping relationship, and then queries the database according to the terminal identifier to determine a first response result corresponding to the test request, thereby completing the link test of the vehicle.
Optionally, the first response result includes response content and a sending parameter, and the sending parameter includes at least one of sending delay and sending sequence;
the transceiver module 101 is further configured to send the response content corresponding to each terminal according to the sending delay and/or the sending order corresponding to each terminal.
The sending parameters are pre-configured and used for simulating the time when the vehicle returns the request after receiving different requests. For example, the request content is a request for cleaning the windshield, and the time for receiving the first response result is longer than the time for receiving the first response result corresponding to the request content for opening the vehicle door.
The transceiver module 101 transmits response contents to the terminal according to the transmission parameters, and sequentially transmits a plurality of response contents based on the transmission order when the number of response contents is plural.
In the embodiment of the present invention, the transceiver module 101 sends the response content to the terminal based on the sending parameters included in the first response result, so as to simulate the time delay and sequence of the vehicle returning the response content in different scenes and different test request contents, thereby improving the accuracy of the link simulation of the vehicle.
Referring to fig. 3, fig. 3 is a schematic diagram of a link testing method according to an embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step 301, receiving a test request sent by each terminal of N terminals, where the test request corresponding to each terminal includes a link identifier, and N is a positive integer;
step 302, determining a terminal identifier corresponding to each terminal based on a first mapping relationship and the link identifier of each test request, where the first mapping relationship is a mapping relationship between a terminal identifier and a link identifier;
step 303, sending the first response result corresponding to each terminal under the condition that the database is queried based on the terminal identifier corresponding to each terminal to obtain the first response result corresponding to each terminal, where the first response result is used to represent a pre-configured response result corresponding to each test request.
Optionally, the method further includes:
and sending a preset second response result to the first terminal under the condition that the first response result corresponding to the first terminal is not obtained by inquiring a database based on the first terminal identifier corresponding to the first terminal in the N terminals, wherein the second response result is used for representing that the first response result corresponding to the first terminal is not configured.
Optionally, a terminal identifier set is stored in the database, where the terminal identifier set includes a plurality of terminal identifiers and at least one user configuration rule corresponding to each terminal identifier in the plurality of terminal identifiers, and each user configuration rule includes at least one response result; the querying a database based on the terminal identifier corresponding to each terminal to obtain a first response result corresponding to each terminal includes:
inquiring the terminal identification set based on the terminal identification corresponding to each terminal to obtain a user configuration rule corresponding to each terminal;
and determining the first response result based on the user configuration rule corresponding to each terminal, wherein the first response result is one of at least one response result included in the user configuration rule.
Optionally, the determining the first response result based on the user configuration rule corresponding to each terminal includes:
and querying the user configuration rule corresponding to each terminal based on the request content of the test request of each terminal to obtain the first response result, wherein the first response result is a response result corresponding to the request content of the test request in the at least one response result.
Optionally, the link identifier corresponding to each terminal is generated when the test request is sent to each terminal;
the first mapping relationship includes a mapping relationship between the link identifier corresponding to each terminal and the terminal identifier corresponding to each terminal.
Optionally, the first response result includes response content and a sending parameter, and the sending parameter includes at least one of sending delay and sending sequence.
The link testing method provided by the embodiment of the invention can realize each process of the operation of the vehicle-end simulation module in the link testing device, has one-to-one correspondence of technical characteristics, can achieve the same technical effect, and is not repeated here for avoiding repetition.
An embodiment of the present invention further provides an electronic device, where the electronic device includes a memory, a processor, and a program or an instruction stored in the memory for execution, and when the program or the instruction is executed by the processor, any step in the method embodiment corresponding to fig. 3 may be implemented and the same beneficial effect may be achieved, which is not described herein again.
Those skilled in the art will appreciate that all or part of the steps of the method according to the above embodiments may be implemented by hardware associated with program instructions, and the program may be stored in a readable medium.
The methods in the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described herein are performed in whole or in part. The computer may be a general purpose computer, special purpose computer, computer network, network appliance, user equipment, core network appliance, or other programmable apparatus.
The computer program or instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The usable medium may be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape; optical media such as digital video disks; but may also be a semiconductor medium such as a solid state disk. The computer readable storage medium may be volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.
The terms "first," "second," and the like in the embodiments of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Further, the use of "and/or" in this application means that at least one of the connected objects, e.g., a and/or B and/or C, means that 7 cases are included that include a alone, B alone, C alone, and both a and B, B and C, both a and C, and A, B and C.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a magnetic disk or an optical disk), and includes several instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a second terminal device, etc.) to execute the method of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A link testing device is characterized by comprising a transceiver module and a vehicle-end simulation module, wherein the transceiver module is in communication connection with the vehicle-end simulation module;
the receiving and sending module is used for receiving a test request sent by each terminal in N terminals and forwarding the test request corresponding to each terminal to the vehicle-end simulation module, the test request corresponding to each terminal comprises a link identifier, the link identifier corresponding to each terminal is randomly generated when each terminal sends the test request, and N is a positive integer;
the vehicle end simulation module is used for receiving the test request which is sent by the transceiving module and corresponds to each terminal;
the vehicle-end simulation module is further configured to determine a terminal identifier corresponding to each terminal based on a first mapping relationship and the link identifier of each test request, where the first mapping relationship is a mapping relationship between the link identifier determined by the terminal and the terminal identifier;
the vehicle-end simulation module is further configured to send a first response result corresponding to each terminal to the transceiver module under the condition that a first response result corresponding to each terminal is obtained by querying a database based on a terminal identifier corresponding to each terminal, where the first response result is used to represent a pre-configured response result corresponding to each test request;
the transceiver module is further configured to send a first response result corresponding to each terminal.
2. The link testing device according to claim 1, wherein the vehicle-end simulation module is further configured to send a preset second response result to the transceiver module when the first response result corresponding to the first terminal is not obtained based on a first terminal identifier query database corresponding to a first terminal of the N terminals, where the second response result is used to characterize that the first response result corresponding to the first terminal is not configured;
the transceiver module is further configured to send the second response result to the first terminal.
3. The link testing apparatus according to claim 1, wherein a terminal identifier set is stored in the database, the terminal identifier set includes a plurality of terminal identifiers, and at least one user configuration rule corresponding to each of the plurality of terminal identifiers, each user configuration rule includes at least one response result;
the vehicle end simulation module is specifically configured to query the terminal identifier set based on the terminal identifier corresponding to each terminal, so as to obtain a user configuration rule corresponding to each terminal;
the vehicle-end simulation module is specifically configured to determine the first response result based on the user configuration rule corresponding to each terminal, where the first response result is one of at least one response result included in the user configuration rule.
4. The link testing device according to claim 3, wherein the vehicle-end simulation module is specifically configured to query the user configuration rule corresponding to each terminal based on a request content of the test request of each terminal, to obtain the first response result, where the first response result is a response result corresponding to the request content of the test request in the at least one response result.
5. The link testing device according to any one of claims 1 to 4, wherein the first response result comprises response content and transmission parameters, and the transmission parameters comprise at least one of transmission delay and transmission order;
the transceiver module is further configured to send the response content corresponding to each terminal according to the sending delay and/or the sending order corresponding to each terminal.
6. A link testing method, comprising:
receiving a test request sent by each terminal in N terminals, wherein the test request corresponding to each terminal comprises a link identifier, the link identifier corresponding to each terminal is respectively generated randomly when each terminal sends the test request, and N is a positive integer;
determining a terminal identifier corresponding to each terminal based on a first mapping relation and the link identifier of each test request, wherein the first mapping relation is the mapping relation between the link identifier determined by the terminal and the terminal identifier;
and under the condition that a database is queried respectively based on the terminal identification corresponding to each terminal to obtain a first response result corresponding to each terminal, sending the first response result corresponding to each terminal, wherein the first response result is used for representing a pre-configured response result corresponding to each test request.
7. The method of claim 6, further comprising:
and sending a preset second response result to the first terminal under the condition that the first response result corresponding to the first terminal is not obtained by querying a database based on the first terminal identifier corresponding to the first terminal in the N terminals, wherein the second response result is used for representing that the first response result corresponding to the first terminal is not configured.
8. An electronic device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps in the method of any one of claims 6 to 7.
9. A computer-readable storage medium comprising computer programs/instructions which, when executed, implement the steps in the method according to any one of claims 6 to 7.
CN202310000640.1A 2023-01-03 2023-01-03 Link testing device, method, electronic equipment and computer program product Active CN115695233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310000640.1A CN115695233B (en) 2023-01-03 2023-01-03 Link testing device, method, electronic equipment and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310000640.1A CN115695233B (en) 2023-01-03 2023-01-03 Link testing device, method, electronic equipment and computer program product

Publications (2)

Publication Number Publication Date
CN115695233A CN115695233A (en) 2023-02-03
CN115695233B true CN115695233B (en) 2023-03-31

Family

ID=85057585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310000640.1A Active CN115695233B (en) 2023-01-03 2023-01-03 Link testing device, method, electronic equipment and computer program product

Country Status (1)

Country Link
CN (1) CN115695233B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491155A (en) * 2015-12-30 2016-04-13 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted terminal development simulation system
CN108075945A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 A kind of application testing method and device
CN109740222A (en) * 2018-12-25 2019-05-10 国汽(北京)智能网联汽车研究院有限公司 A kind of test device and system for grid motor connectionization scene

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200409369A1 (en) * 2019-06-25 2020-12-31 Uatc, Llc System and Methods for Autonomous Vehicle Testing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491155A (en) * 2015-12-30 2016-04-13 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted terminal development simulation system
CN108075945A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 A kind of application testing method and device
CN109740222A (en) * 2018-12-25 2019-05-10 国汽(北京)智能网联汽车研究院有限公司 A kind of test device and system for grid motor connectionization scene

Also Published As

Publication number Publication date
CN115695233A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
EP3337219B1 (en) Carrier configuration processing method, device and system, and computer storage medium
CN111510425B (en) Intelligent household equipment management method, device, equipment and storage medium
CN105303112B (en) The detection method and device of component call loophole
CN111885115B (en) Device binding changing method and device
CN111372249B (en) System and method for testing consistency of code number downloading process of eSIM (embedded subscriber identity Module) terminal of Internet of things
CN106302448B (en) Remote access control method and device
CN113133086A (en) Intelligent device network distribution method and device, electronic device and storage medium
CN111026672A (en) Test method, terminal equipment and mock server
CN107580040B (en) Method and device for upgrading communication module in intelligent household terminal
CN105933905A (en) Method and device for realizing wireless access point connection authentication
CN109379585B (en) HDMI compatibility testing device and method
CN112835802A (en) Equipment testing method, device, equipment and storage medium
CN112698640B (en) ECU upgrading test system
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN115695233B (en) Link testing device, method, electronic equipment and computer program product
CN113434422A (en) Virtual device debugging method and device and virtual device debugging system
CN113259918A (en) Equipment binding method and system
CN110474825B (en) Equipment access system, equipment access server method, application and equipment server
CN104917633A (en) Method and device simulating FOTA upgrade
CN115687806A (en) Method and device for determining target equipment list, storage medium and electronic device
CN112187561B (en) Communication module testing method, device, computer equipment and storage medium
CN114546842A (en) Interface test method and device, storage medium and electronic equipment
CN113923112A (en) Equipment configuration method and equipment configuration device
CN111679974A (en) Application program testing method and device

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
GR01 Patent grant
GR01 Patent grant