Vehicle-mounted wireless network testing method, system, electronic device and storage medium
Wireless connection and communication tests are carried out through two wireless communication functions of the vehicle and machine controller, which solves the problems of inaccurate test results and high cost in the prior art, and realizes accurate and economical WIFI functional testing of the vehicle and machine controller.
Patent Information
- Application Number
- CN202411117431.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-08-15
AI Technical Summary
The existing WIFI functional testing methods for vehicle controllers rely on mobile phone connections, resulting in inaccurate test results and high cost.
Two vehicle controllers with wireless communication functions are used for wireless connection. The test results are determined through the connection results and communication test results, and no additional mobile devices are required.
It improves the accuracy of test results, reduces the testing cost, and avoids the impact of mobile phones on test results.
Smart Images

Figure CN118660311B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of testing technology, and in particular, relates to a vehicle-mounted wireless network testing method, system, electronic equipment and storage medium. Background Art
[0002] With the continuous progress and development of intelligent networking technology for automobiles, current car controllers all have WIFI (wireless LAN) functions. As a result, it is necessary to test car controllers with WIFI functions. However, the existing car domain controllers with WIFI functions mostly use the method of connecting the car controller with a mobile phone, and whether the connection is successful or not can be used as a judgment standard. The disadvantages of this method are: the performance of the mobile phone affects the test, resulting in inaccurate test results, and each functional test production line needs to be equipped with a mobile phone, and the purchase of mobile phones increases the cost of development and testing.
[0003] In summary, the testing solutions in the related art have the problems of inaccurate test results and high test costs. Summary of the invention
[0004] The embodiments of the present invention provide a vehicle-mounted wireless network testing method, system, electronic device and storage medium, so as to at least solve the technical problems that the testing solutions in the related art have the problems of inaccurate test results and high test costs.
[0005] According to a first aspect of an embodiment of the present invention, a vehicle-mounted wireless network testing method is provided, the method comprising: configuring a vehicle controller according to preset test requirements to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have wireless communication functions; controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result; and determining a test result according to the connection result.
[0006] Optionally, the wireless network mode of the first vehicle controller is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access service, and the second vehicle controller in the second mode can be connected to the first vehicle controller in the first mode.
[0007] Optionally, the wireless network mode of the first vehicle controller is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access service, and the first vehicle controller in the second mode can be connected to the second vehicle controller in the first mode.
[0008] Optionally, controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result includes: controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain connection feedback; in response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, performing a communication test on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; determining the connection result based on the communication test result.
[0009] Optionally, determining the connection result according to the communication test result includes: in response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, determining that the connection result is a successful connection.
[0010] Optionally, the vehicle-mounted wireless network testing method further includes: obtaining a signal strength value, wherein the signal strength value is used to characterize the strength of the wireless network signal received by the first vehicle controller or the second vehicle controller; and determining a connection result based on the signal strength value.
[0011] Optionally, determining the connection result according to the signal strength value includes: in response to the signal strength value being less than a first preset value, determining that the connection result is a connection failure.
[0012] Optionally, determining a test result according to the connection result includes: in response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, determining that the test result is a test pass.
[0013] According to a second aspect of an embodiment of the present invention, there is also provided a vehicle-mounted wireless network testing system, including:
[0014] A configuration module is used to configure the vehicle controller according to preset test requirements to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have wireless communication functions; a control module is used to control the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result; and a determination module is used to determine a test result according to the connection result.
[0015] Optionally, the wireless network mode of the first vehicle controller configured by the configuration module is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access service, and the second vehicle controller in the second mode can be connected to the first vehicle controller in the first mode.
[0016] Optionally, the wireless network mode of the first vehicle controller configured by the configuration module is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access service, and the first vehicle controller in the second mode can be connected to the second vehicle controller in the first mode.
[0017] Optionally, the control module is also used to: control the wireless connection between the first vehicle controller and the second vehicle controller to obtain connection feedback; in response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, perform a communication test on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; and determine the connection result based on the communication test result.
[0018] Optionally, the control module is further used to: in response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, determine that the connection result is a successful connection.
[0019] Optionally, the determination module is further used to: obtain a signal strength value, wherein the signal strength value is used to characterize the strength of a wireless network signal received by the first vehicle controller or the second vehicle controller; and determine a connection result according to the signal strength value.
[0020] Optionally, the determination module is further used to: in response to the signal strength value being less than a first preset value, determine that the connection result is a connection failure.
[0021] Optionally, the determination module is further used to: in response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, determine that the test result is a test pass.
[0022] According to a third aspect of an embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the in-vehicle wireless network testing method described in any embodiment of the first aspect above.
[0023] According to a fourth aspect of an embodiment of the present invention, a non-volatile storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the in-vehicle wireless network testing method described in any embodiment of the first aspect when running on a computer or a processor.
[0024] According to a fifth aspect of the embodiments of the present invention, a computer program product is also provided, including a computer program, which, when executed by a processor, implements the in-vehicle wireless network testing method described in any embodiment of the first aspect above.
[0025] In an embodiment of the present invention, according to preset test requirements, the vehicle controller is configured to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have wireless communication functions; the first vehicle controller is controlled to be wirelessly connected to the second vehicle controller to obtain a connection result; and the test result is determined according to the connection result. The present invention tests the wireless function of the vehicle controller through two vehicle controllers with wireless communication functions, and no additional mobile device is required to connect to the vehicle controller for wireless network testing, thereby solving the technical problem that the test solutions in the related art have inaccurate test results and high test costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0027] Figure 1 is a flow chart of a vehicle-mounted wireless network testing method according to one embodiment of the present invention;
[0028] Figure 2 is a flowchart of an in-vehicle wireless network testing method according to one embodiment of the present invention;
[0029] Figure 3 is a schematic diagram of the architecture of a vehicle-mounted wireless network testing system according to one embodiment of the present invention;
[0030] Figure 4 is a structural block diagram of a vehicle-mounted wireless network testing system according to one embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] According to an embodiment of the present invention, an embodiment of a vehicle-mounted wireless network testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system containing at least one set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] The method embodiment can also be executed in an electronic device including a memory and a processor, a similar control device or a cloud. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It can be understood by those of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.
[0035] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a field-programmable gate array (FPGA), a neural-network processing unit (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and other processing devices. Among them, different processing units may be independent components or integrated into one or more processors. In some instances, the electronic device may also include one or more processors.
[0036] The memory can be used to store computer programs, such as storing a computer program corresponding to the vehicle-mounted wireless network testing method in an embodiment of the present invention. The processor implements the above-mentioned vehicle-mounted wireless network testing method by running the computer program stored in the memory. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The communication device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (radio frequency, RF) module, which is used to communicate with the Internet wirelessly. In some embodiments of the present solution, the communication device is used to connect to mobile devices such as mobile phones and tablets, and instructions can be sent to electronic devices through the mobile device.
[0038] The display device may be a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of the electronic device. In some embodiments, the electronic device has a graphical user interface (GUI), and a user may interact with the GUI by touching a finger release and / or gestures on a touch-sensitive surface, and executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0039] Figure 1 FIG. 1 is a flow chart of a vehicle-mounted wireless network testing method according to one embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0040] Step S101 : According to a preset test requirement, the vehicle controller is configured to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have a wireless communication function.
[0041] It is understandable that the preset test requirements include at least the serial number of the vehicle controller to be tested, and the account and password of the wireless network set in the vehicle controller.
[0042] Exemplarily, when configuring the vehicle controller according to preset test requirements, it is necessary to determine at least two controllers of the vehicle, one configured as a service provider of the wireless network, and the other configured as an access terminal of the wireless network. The access terminal can access the service provider terminal through the account and password of the wireless network.
[0043] It is understandable that the configurations of the first vehicle controller and the second vehicle controller cannot be the same, and one needs to be used as a service provider of the wireless network and the other needs to be used as an access terminal of the wireless network.
[0044] It should be noted that the vehicle controller configured as the service provider of the wireless network is used as the controller to be tested to test whether its function of providing the wireless network is normal.
[0045] Step S102, controlling the first vehicle controller to wirelessly connect to the second vehicle controller to obtain a connection result.
[0046] For example, after configuring the first vehicle controller and the second vehicle controller, it is necessary to control the two to be wirelessly connected. If the first vehicle controller is configured as a service provider of a wireless network, and the second vehicle controller is configured as an access terminal of the wireless network, it is necessary to control the second vehicle controller to access the wireless network provided by the first vehicle controller.
[0047] It is understandable that when the second vehicle controller attempts to access the wireless network provided by the first vehicle controller, it will feedback the access result, that is, the connection result.
[0048] Step S103, determining the test result according to the connection result.
[0049] Specifically, if the connection result indicates that the connection is successful, the test result is that the wireless network function of the controller to be tested is normal. If the connection result indicates that the connection fails, the test result is that the wireless network function of the controller to be tested is abnormal.
[0050] In an embodiment of the present invention, according to preset test requirements, the vehicle controller is configured to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have wireless communication functions; the first vehicle controller is controlled to be wirelessly connected to the second vehicle controller to obtain a connection result; and the test result is determined according to the connection result. The present invention tests the wireless function of the vehicle controller through two vehicle controllers with wireless communication functions, and no additional mobile device is required to connect to the vehicle controller for wireless network testing, thereby solving the technical problem that the test solutions in the related art have inaccurate test results and high test costs.
[0051] Optionally, the wireless network mode of the first vehicle controller is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access service, and the second vehicle controller in the second mode can be connected to the first vehicle controller in the first mode.
[0052] Specifically, in some embodiments of the present invention, the wireless network of the first vehicle controller is configured as a first mode, that is, used to provide wireless access services; the wireless network of the second vehicle controller is configured as a second mode, that is, used to access the first vehicle controller in the first mode.
[0053] It is understandable that, in this embodiment, the first vehicle controller is used as the controller to be tested. The test result is used to indicate whether the wireless network function of the first vehicle controller is normal.
[0054] Optionally, the wireless network mode of the first vehicle controller is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access service, and the first vehicle controller in the second mode can be connected to the second vehicle controller in the first mode.
[0055] Specifically, in some embodiments of the present invention, the wireless network of the second vehicle controller is configured as a first mode, that is, used to provide wireless access services; the wireless network of the first vehicle controller is configured as a second mode, that is, used to access the second vehicle controller in the first mode.
[0056] It is understandable that, in this embodiment, the second vehicle controller is used as the controller to be tested. The test result is used to indicate whether the wireless network function of the second vehicle controller is normal.
[0057] It should be noted that, in some embodiments of the present invention, the first vehicle controller and the second vehicle controller are alternately used as the controller to be tested to implement the test of the wireless network functions of the two vehicle controllers.
[0058] Optionally, in some embodiments of the present invention, if the first vehicle controller is configured in the first mode, multiple second vehicle controllers in the second mode are configured, and the multiple second vehicle controllers in the second mode are controlled to access the wireless network service provided by the first vehicle controller. It can be tested whether the wireless network function of the first vehicle controller in the first mode is normal when it is connected by multiple second vehicle controllers.
[0059] Optionally, controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result includes: controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain connection feedback; in response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, performing a communication test on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; determining the connection result based on the communication test result.
[0060] Exemplarily, if the first vehicle controller is in the first mode, after controlling the first vehicle controller to be wirelessly connected to the second vehicle controller, if the connection feedback indicates that the first vehicle controller and the second vehicle controller have established a connection, a ping command (preset network test command) is used to control the second vehicle controller to ping the first vehicle controller. If the ping is successful, it indicates that the second vehicle controller has successfully accessed the wireless network provided by the first vehicle controller and the communication is normal.
[0061] It should be noted that the ping command is a network tool used to test the availability of a computer network connection. It detects the stability and latency of a network connection by sending ICMP (Internet Control Message Protocol) packets to the target host and waiting for the target host to return a response. The ping command is often used to diagnose network problems, such as detecting network latency, packet loss, etc. In most operating systems, the syntax format of the ping command is "ping [target host]", where the target host can be an IP address or a host name.
[0062] Optionally, in addition to the ping command, the preset network test command may also use other commands that can be used to test whether the network connection between two terminals is normal, such as the netstat command, which is used to display network status information such as network connection, routing table and network interface.
[0063] It is understandable that the establishment of a wireless connection between the first vehicle controller and the second vehicle controller does not mean that the two can communicate normally. Therefore, it is necessary to test whether the communication is normal. Different communication test results correspond to different connection results.
[0064] Optionally, determining the connection result according to the communication test result includes: in response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, determining that the connection result is a successful connection.
[0065] Specifically, if the communication test result shows that the first vehicle controller and the second vehicle controller communicate normally, it means that the first vehicle controller and the second vehicle controller have established a wireless connection and can communicate normally, that is, the connection result is determined to be successful.
[0066] It is understandable that if the communication test result shows that the first vehicle controller and the second vehicle controller cannot communicate normally, it means that the first vehicle controller and the second vehicle controller have established a wireless connection but the communication is abnormal, that is, the connection result is determined to be a connection failure.
[0067] Optionally, the vehicle-mounted wireless network testing method further includes: obtaining a signal strength value, wherein the signal strength value is used to characterize the strength of the wireless network signal received by the first vehicle controller or the second vehicle controller; and determining a connection result based on the signal strength value.
[0068] Specifically, when performing the vehicle-mounted wireless network test, a signal strength value representing the strength of the wireless network signal received by the first vehicle controller or the second vehicle controller is obtained in real time, and a connection result can be determined according to the signal strength value and a preset strategy.
[0069] It should be noted that the signal strength value obtained above is the signal strength value corresponding to the vehicle controller whose wireless network mode is the second mode.
[0070] Optionally, the signal strength value corresponding to the first vehicle controller is obtained from a register connected to the first vehicle controller, and the signal strength value corresponding to the second vehicle controller is obtained from a register connected to the second vehicle controller.
[0071] Optionally, determining the connection result according to the signal strength value includes: in response to the signal strength value being less than a first preset value, determining that the connection result is a connection failure.
[0072] Specifically, the first preset value is a strength value corresponding to a limit distance value at which the first vehicle controller and the second vehicle controller can connect. If the currently acquired signal strength value is less than the first preset value, the signal strength value is too weak, and the connection result is determined to be a connection failure.
[0073] It can be understood that if the currently acquired signal strength value is greater than or equal to the first preset value, the signal strength value meets the requirement and the connection result is determined to be a successful connection.
[0074] Optionally, determining a test result according to the connection result includes: in response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, determining that the test result is a test pass.
[0075] Specifically, when the first vehicle controller and the second vehicle controller are connected successfully, it indicates that the wireless network function of the vehicle controller serving as the controller to be tested is normal, and the test result is determined to be passed.
[0076] Optionally, in some embodiments of the present invention, when the first vehicle controller and the second vehicle controller can be pinged and the signal strength value of the vehicle controller as the access end is greater than a first preset value, the test result is determined to be passed.
[0077] Optionally, in some embodiments of the present invention, the test results may be pushed to the tester according to a preset push strategy.
[0078] Reference Figure 2 , Figure 2 : is a flowchart of an in-vehicle wireless network testing method according to one embodiment of the present invention, comprising:
[0079] Step A: The host computer controls the WIFI mode of the vehicle controller 1 (device under test) to STA, and controls the WIFI mode of the vehicle controller 2 to AP.
[0080] Specifically, the host computer first configures the WIFI mode of the vehicle controller 1 to STA (Station) and configures the WIFI mode of the vehicle controller 2 to AP (Access Point) according to the preset test requirements.
[0081] It should be noted that the vehicle controller 1 in STA mode is used to provide wireless network access services, and the vehicle controller 2 in AP mode is used to access the wireless network provided by the vehicle controller 1 .
[0082] Step B: The WiFi connection between the vehicle controller 1 and the vehicle controller 2 can be pinged.
[0083] Specifically, the host computer controls the vehicle controller 1 and the vehicle controller 2 to connect via WiFi, and ensures that the two can ping each other. If they cannot ping each other, it means that the connection fails.
[0084] Step C: Increase the RSSI (signal strength) value B when the vehicle controller 1 and the vehicle controller 2 are just disconnected.
[0085] Specifically, the distance between the vehicle controller 1 and the vehicle controller 2 is controlled to gradually increase, and when the vehicle controller 1 and the vehicle controller 2 change from a connected state to a disconnected state, an RSSI value B in an RSSI register connected to the vehicle controller 2 is read.
[0086] Step D: After the test environment is set up, the host computer reads the RSSI register value C of the vehicle controller 2 at this time.
[0087] Specifically, if it is necessary to test the wireless network function of the vehicle controller in different external environments, it is necessary to pre-build the corresponding test environment. After the test environment is built, the RSSI register value C of the vehicle controller 2 at this time is obtained.
[0088] Step E: The host computer monitors the RSSI register value in real time to determine whether the WIFI is working properly. When the RSSI value is less than B, it is automatically determined as a connection failure. When the difference between the RSSI value and C is greater than the preset difference, it is recorded in the log.
[0089] Specifically, during the real-time test of the WIFI function, the host computer monitors the RSSI register value of the vehicle controller 2 in real time. When the current RSSI value is less than B, the signal strength is too weak and the connection is automatically determined to be failed. When the difference between the current RSSI value and C is greater than (B-second preset value) / 2, it is recorded in the log, and the tester will check the log later to determine whether the connection is successful.
[0090] Reference Figure 3 In some embodiments of the present invention, the vehicle wireless network test system includes a power supply, a host computer, a vehicle controller 1 and a vehicle controller 2. The power supply is used to supply power to the vehicle controller 1 and the vehicle controller 2, and the host computer is connected to the vehicle controller 1 and the vehicle controller 2 for controlling the vehicle controller 1 and the vehicle controller 2. The vehicle controller 1 is configured as a device under test (DUT) by the host computer in STA mode, and the vehicle controller 2 is configured in AP mode.
[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0092] In this embodiment, a vehicle-mounted wireless network test system is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" is a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0093] Figure 4 FIG. 2 is a structural block diagram of a vehicle-mounted wireless network testing system 200 according to one embodiment of the present invention. Figure 4 As shown, an on-vehicle wireless network test system 200 is used as an example, including: a configuration module 201, which is used to configure the vehicle controller according to preset test requirements to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have wireless communication functions; a control module 202, which is used to control the wireless connection between the first vehicle controller and the second vehicle controller to obtain a connection result; a determination module 203, which is used to determine the test result according to the connection result.
[0094] Optionally, the wireless network mode of the first vehicle controller configured by the configuration module 201 is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access service, and the second vehicle controller in the second mode can be connected to the first vehicle controller in the first mode.
[0095] Optionally, the wireless network mode of the first vehicle controller configured by the configuration module 201 is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access service, and the first vehicle controller in the second mode can be connected to the second vehicle controller in the first mode.
[0096] Optionally, the control module 202 is also used to: control the wireless connection between the first vehicle controller and the second vehicle controller to obtain connection feedback; in response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, perform a communication test on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; and determine the connection result based on the communication test result.
[0097] Optionally, the control module 202 is further configured to: in response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, determine that the connection result is a successful connection.
[0098] Optionally, the determination module 203 is further used to: obtain a signal strength value, wherein the signal strength value is used to characterize the strength of a wireless network signal received by the first vehicle controller or the second vehicle controller; and determine a connection result according to the signal strength value.
[0099] Optionally, the determination module 203 is further configured to: in response to a signal strength value being less than a first preset value, determine that the connection result is a connection failure.
[0100] Optionally, the determination module 203 is further used to: in response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, determine that the test result is a test pass.
[0101] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the vehicle-mounted wireless network testing method described in any of the above embodiments.
[0102] Optionally, in this embodiment, the processor in the above electronic device may be configured to run a computer program to perform the following steps:
[0103] Step S101 : According to a preset test requirement, the vehicle controller is configured to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have a wireless communication function.
[0104] Step S102, controlling the first vehicle controller to wirelessly connect to the second vehicle controller to obtain a connection result.
[0105] Step S103, determining the test result according to the connection result.
[0106] Optionally, the wireless network mode of the first vehicle controller is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access service, and the second vehicle controller in the second mode can be connected to the first vehicle controller in the first mode.
[0107] Optionally, the wireless network mode of the first vehicle controller is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access service, and the first vehicle controller in the second mode can be connected to the second vehicle controller in the first mode.
[0108] Optionally, controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result includes: controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain connection feedback; in response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, performing a communication test on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; determining the connection result based on the communication test result.
[0109] Optionally, determining the connection result according to the communication test result includes: in response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, determining that the connection result is a successful connection.
[0110] Optionally, the vehicle-mounted wireless network testing method further includes: obtaining a signal strength value, wherein the signal strength value is used to characterize the strength of the wireless network signal received by the first vehicle controller or the second vehicle controller; and determining a connection result based on the signal strength value.
[0111] Optionally, determining the connection result according to the signal strength value includes: in response to the signal strength value being less than a first preset value, determining that the connection result is a connection failure.
[0112] Optionally, determining a test result according to the connection result includes: in response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, determining that the test result is a test pass.
[0113] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0114] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored, wherein the computer program is configured to execute the vehicle-mounted wireless network testing method described in any of the above embodiments when running on a computer or a processor.
[0115] Optionally, in this embodiment, the above-mentioned computer program may be configured to store a computer program for performing the following steps:
[0116] Step S101 : According to a preset test requirement, the vehicle controller is configured to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have a wireless communication function.
[0117] Step S102, controlling the first vehicle controller to wirelessly connect to the second vehicle controller to obtain a connection result.
[0118] Step S103, determining the test result according to the connection result.
[0119] Optionally, the wireless network mode of the first vehicle controller is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access service, and the second vehicle controller in the second mode can be connected to the first vehicle controller in the first mode.
[0120] Optionally, the wireless network mode of the first vehicle controller is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access service, and the first vehicle controller in the second mode can be connected to the second vehicle controller in the first mode.
[0121] Optionally, controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result includes: controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain connection feedback; in response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, performing a communication test on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; determining the connection result based on the communication test result.
[0122] Optionally, determining the connection result according to the communication test result includes: in response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, determining that the connection result is a successful connection.
[0123] Optionally, the vehicle-mounted wireless network testing method further includes: obtaining a signal strength value, wherein the signal strength value is used to characterize the strength of the wireless network signal received by the first vehicle controller or the second vehicle controller; and determining a connection result based on the signal strength value.
[0124] Optionally, determining the connection result according to the signal strength value includes: in response to the signal strength value being less than a first preset value, determining that the connection result is a connection failure.
[0125] Optionally, determining a test result according to the connection result includes: in response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, determining that the test result is a test pass.
[0126] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0127] An embodiment of the present invention further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the in-vehicle wireless network testing method described in any of the above embodiments is implemented.
[0128] Optionally, in this embodiment, the above computer program implements the following steps when executed by a processor:
[0129] Step S101 : According to a preset test requirement, the vehicle controller is configured to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have a wireless communication function.
[0130] Step S102, controlling the first vehicle controller to wirelessly connect to the second vehicle controller to obtain a connection result.
[0131] Step S103, determining the test result according to the connection result.
[0132] Optionally, the wireless network mode of the first vehicle controller is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access service, and the second vehicle controller in the second mode can be connected to the first vehicle controller in the first mode.
[0133] Optionally, the wireless network mode of the first vehicle controller is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access service, and the first vehicle controller in the second mode can be connected to the second vehicle controller in the first mode.
[0134] Optionally, controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result includes: controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain connection feedback; in response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, performing a communication test on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; determining the connection result based on the communication test result.
[0135] Optionally, determining the connection result according to the communication test result includes: in response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, determining that the connection result is a successful connection.
[0136] Optionally, the vehicle-mounted wireless network testing method further includes: obtaining a signal strength value, wherein the signal strength value is used to characterize the strength of the wireless network signal received by the first vehicle controller or the second vehicle controller; and determining a connection result based on the signal strength value.
[0137] Optionally, determining the connection result according to the signal strength value includes: in response to the signal strength value being less than a first preset value, determining that the connection result is a connection failure.
[0138] Optionally, determining a test result according to the connection result includes: in response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, determining that the test result is a test pass.
[0139] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0140] In some embodiments provided in the present application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the modules can be a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, modules or indirect coupling or communication connection of modules, which can be electrical or other forms.
[0141] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0142] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules.
[0143] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store program code.
[0144] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A vehicle-mounted wireless network testing method, characterized in that: include: According to the preset test requirements, the vehicle controller is configured to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have a wireless communication function; Controlling the first vehicle controller to wirelessly connect with the second vehicle controller to obtain a connection result, wherein the wireless network mode of the first vehicle controller is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access services, and the second vehicle controller in the second mode can access the first vehicle controller in the first mode; or, the wireless network mode of the first vehicle controller is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access services, and the first vehicle controller in the second mode can access the second vehicle controller in the first mode, and the access end accesses the service provider end through the account and password of the wireless network, and the account and password of the wireless network are set by the vehicle controller; A test result is determined according to the connection result.
2. The vehicle-mounted wireless network testing method according to claim 1, characterized in that: The controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result includes: Controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain connection feedback; In response to the connection feedback indicating that the first vehicle controller and the second vehicle controller have established a connection, a communication test is performed on the connection between the first vehicle controller and the second vehicle controller through a preset network test instruction to obtain a communication test result; The connection result is determined according to the communication test result.
3. The vehicle-mounted wireless network testing method according to claim 2, characterized in that: Determining the connection result according to the communication test result includes: In response to the communication test result indicating that the first vehicle controller and the second vehicle controller communicate normally, it is determined that the connection result is a successful connection.
4. The vehicle-mounted wireless network testing method according to claim 1, characterized in that: Also includes: Acquire a signal strength value, wherein the signal strength value is used to represent the strength of a wireless network signal received by the first vehicle controller or the second vehicle controller; The connection result is determined according to the signal strength value.
5. The vehicle-mounted wireless network testing method according to claim 4, characterized in that: The determining the connection result according to the signal strength value includes: In response to the signal strength value being less than a first preset value, determining the connection result as a connection failure.
6. The vehicle-mounted wireless network testing method according to claim 1, characterized in that: Determining the test result according to the connection result includes: In response to the connection result indicating that the first vehicle controller and the second vehicle controller are successfully connected, it is determined that the test result is a test pass.
7. A vehicle-mounted wireless network testing system, characterized in that: include: A configuration module, configured to configure the vehicle controller according to preset test requirements to obtain a first vehicle controller and a second vehicle controller, wherein the first vehicle controller and the second vehicle controller have wireless communication functions, wherein the wireless network mode of the first vehicle controller is the first mode, and the wireless network mode of the second vehicle controller is the second mode, wherein the first vehicle controller in the first mode provides wireless access services, and the second vehicle controller in the second mode can access the first vehicle controller in the first mode; or, the wireless network mode of the first vehicle controller is the second mode, and the wireless network mode of the second vehicle controller is the first mode, wherein the second vehicle controller in the first mode provides wireless access services, and the first vehicle controller in the second mode can access the second vehicle controller in the first mode, and the access end accesses the service provider end through the account and password of the wireless network, and the account and password of the wireless network are set by the vehicle controller; A control module, used for controlling the first vehicle controller to be wirelessly connected to the second vehicle controller to obtain a connection result; The determination module is used to determine the test result according to the connection result.
8. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the in-vehicle wireless network testing method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the vehicle-mounted wireless network testing method described in any one of claims 1 to 6 when running on a computer or a processor.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the vehicle-mounted wireless network testing method according to any one of claims 1 to 6 when being executed by a processor.
