Roadside terminal detection method and device, computer device, readable storage medium and program product
By generating a session link with the roadside terminal, the system automatically detects and recovers from faults, solving the problem of high operation and maintenance costs in existing technologies and achieving efficient and low-cost roadside terminal fault detection and recovery.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- VANJEE TECHNOLOGY CO LTD
- Filing Date
- 2024-12-30
- Publication Date
- 2026-07-10
AI Technical Summary
Existing technologies for fault detection of roadside terminals are costly and require on-site maintenance personnel to restore faults, which increases maintenance costs.
The generated session link provides a patented technology that addresses the increased cost of fault detection for road test terminals, which is characterized by high maintenance costs.
By generating session links with roadside terminals, faults can be automatically detected and recovered, reducing maintenance costs and improving detection efficiency and security.
Smart Images

Figure CN122372946A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle networking technology, and in particular to a roadside terminal detection method, device, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] In the field of vehicle-to-everything (V2X) technology, V2X is a commonly used technology. V2X includes V2V (Vehicle to Vehicle), V2I (Vehicle to Infrastructure), V2P (Vehicle to Pedestrian), and V2N (Vehicle to Network).
[0003] Roadside terminals are key devices in V2I (Vehicle-to-Infrastructure) systems, typically installed on either side of roads or on highway gantries. They are widely used in intelligent traffic signal control, traffic monitoring and management, vehicle safety driving assistance, and intelligent parking management, providing strong support for improving traffic efficiency, optimizing traffic management, and enhancing driving safety. Therefore, maintenance of roadside terminals is necessary. Currently, maintenance personnel typically go to the site using specialized equipment to detect faults in the roadside terminals and manually restore them. However, this method is costly. Summary of the Invention
[0004] Therefore, it is necessary to provide a roadside terminal detection method, device, computer equipment, computer-readable storage medium, and computer program product that can reduce detection costs in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a roadside terminal detection method, the method comprising:
[0006] When the detection terminal is in motion, a status information acquisition request for the roadside terminal is sent to wake up the target roadside terminal that is in a dormant state.
[0007] Generate a session link with the target roadside terminal, and receive target status information sent by the target roadside terminal based on the session link;
[0008] Based on the target status information, the fault type of the target roadside terminal is obtained, and based on the session link, a fault recovery command corresponding to the fault type is sent to the target roadside terminal.
[0009] In one embodiment, generating a session link with the target roadside terminal includes:
[0010] Send a session link generation request to the target roadside terminal, the session link generation request including the first identity authentication information of the detection terminal;
[0011] Based on the verification result of the first identity authentication information verified by the target roadside terminal, the identifier of the session link broadcast by the target roadside terminal and the second identity authentication information of the target roadside terminal are received.
[0012] Verify the second identity authentication information;
[0013] If the verification is successful, the session link is generated based on the identifier, and the identifier is stored in the session list.
[0014] In one embodiment, the method further includes:
[0015] During the interaction with the target roadside terminal, the terminal that sends the interaction information is identified as the first terminal, and the terminal that receives the interaction information is identified as the second terminal.
[0016] If the second terminal does not return information to the first terminal in response to the interaction information, obtain the time interval between the current time point and the time point when the interaction information was sent.
[0017] If the time interval exceeds a duration threshold, the session link is disconnected, and the identifier of the session link is removed from the session list.
[0018] In one embodiment, the method further includes:
[0019] The interactive information is encrypted using a preset encryption algorithm.
[0020] In one embodiment, the detection terminal interacts with at least one roadside terminal; the method further includes:
[0021] Upon receiving the interaction information sent by the roadside terminal, determine whether the session list includes the identifier of the session link corresponding to the interaction information;
[0022] If not included, the interaction information is determined to be invalid.
[0023] In one embodiment, after sending the fault recovery command corresponding to the fault type to the target road test terminal, the method further includes:
[0024] Based on the session link, obtain the current status information of the target roadside terminal;
[0025] If the current status information indicates that the target roadside terminal is faulty, the identifier and location information of the target roadside terminal are displayed on the screen, and the target roadside terminal is controlled to issue an alarm message.
[0026] Secondly, this application also provides a roadside terminal detection device, the device comprising:
[0027] The broadcast module is used to send a status information acquisition request for the roadside terminal when the detection terminal is in motion, so as to wake up the target roadside terminal in a dormant state.
[0028] The generation module is used to generate a session link with the target roadside terminal and receive target status information sent by the target roadside terminal based on the session link;
[0029] The acquisition module is used to acquire the fault type of the target roadside terminal based on the target status information, and send the corresponding fault recovery instruction to the target roadside terminal based on the session link.
[0030] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method in any of the above embodiments.
[0031] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the methods in any of the above embodiments.
[0032] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the methods in any of the above embodiments.
[0033] The aforementioned roadside terminal detection method, apparatus, computer equipment, computer-readable storage medium, and computer program product, when the detected terminal is in motion, send a request to obtain the status information of the roadside terminal to wake up the target roadside terminal in a dormant state; generate a session link with the target roadside terminal, and receive the target status information sent by the target roadside terminal based on the session link; obtain the fault type of the target roadside terminal based on the target status information, and send a fault recovery instruction corresponding to the fault type to the target roadside terminal based on the session link. The method provided in this application, after determining the target roadside terminal, sends a fault recovery instruction to the target roadside terminal based on the target status information of the target roadside terminal through the generated session link, enabling the target roadside terminal to recover from the current fault based on the fault recovery instruction. This can accurately recover the fault of the target roadside terminal, and the entire process does not require the participation of maintenance personnel, effectively reducing detection costs. Before detecting the roadside terminal, the target roadside terminal with a fault is in a dormant state, which can quickly identify the target roadside terminal with a fault from multiple roadside terminals and reduce the power consumption of the target roadside terminal. Attached Figure Description
[0034] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0035] Figure 1 This is an application environment diagram of the roadside terminal detection method in one embodiment;
[0036] Figure 2 This is a flowchart illustrating a roadside terminal detection method in one embodiment;
[0037] Figure 3 This is a schematic diagram of the system where the roadside terminal is located in one embodiment;
[0038] Figure 4 This is a flowchart illustrating a session link generation method in one embodiment;
[0039] Figure 5 This is a structural block diagram of a roadside terminal detection device in one embodiment;
[0040] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0042] The roadside terminal detection method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, the detection terminal 102 communicates with the target roadside terminal 104 via a network. The detection terminal 102 can be an onboard terminal on a maintenance vehicle or a handheld terminal used by maintenance personnel; this embodiment does not specifically limit this. The detection terminal 102 sends a status information acquisition request to surrounding roadside terminals to wake up the target roadside terminal 104. After being woken up, the target roadside terminal 104 sends its target status information to the detection terminal 102 via a session link. The detection terminal 102 then sends a fault recovery command to the target roadside terminal 104 based on the received target status information.
[0043] In one exemplary embodiment, such as Figure 2 As shown, a roadside terminal detection method is provided, which is applied to... Figure 1 Taking the detection terminal in the example, the explanation includes the following steps 202 to 206. Wherein:
[0044] S202. When the detection terminal is in motion, send a request to obtain the status information of the roadside terminal to wake up the target roadside terminal that is in a dormant state.
[0045] Optionally, to ensure the normal operation of the roadside terminals, maintenance personnel need to periodically move the equipment equipped with the detection terminal by hand or by driving a vehicle equipped with the detection terminal to the vicinity of the roadside terminals, so that the detection terminal can send status information acquisition requests to the roadside terminals within a preset range. For example, the vehicle can be a vehicle or a drone.
[0046] Optionally, in the event of a fault in the roadside terminal, the connection between the roadside terminal and the power grid may be disconnected. In order to save energy consumption and to avoid the faulty roadside terminal sending inaccurate information to vehicles, the roadside terminal will enter a sleep state when a fault occurs, and will resume normal operation when it receives a status information acquisition request sent by the detection terminal.
[0047] Alternatively, it can be done through Figure 3 The system allows the roadside terminal to continue operating at low power even after a power outage. Figure 3The system includes solar panels, a power module, a wireless communication module, a monitoring module, and a V2X communication terminal, which is the roadside terminal. The power module has a certain energy storage capacity, charging the energy storage module when the system is powered on and maintaining normal operation for an extended period when the system is powered off. The power module is equipped with solar panels to extend the system's operating time. The power module can be, but is not limited to, a battery. The wireless communication module is used for information exchange with the outside world. To reduce energy consumption, the wireless communication module generally uses BLE (Bluetooth Low Energy), active RFID (Radio-Frequency Identification), or DSRC (Dedicated Short-Range Communications) communication methods. The monitoring module monitors the working status of the roadside terminal. Specifically, the monitoring module acquires the working status of the roadside terminal in real time through heartbeats or information frames, and also acquires the working status of the hardware in the roadside terminal through hardware detection circuits. It can also perform operations such as power-off, shutdown, restart, reset, and factory reset of the roadside terminal through level signals.
[0048] S204. Generate a session link with the target roadside terminal and receive target status information sent by the target roadside terminal based on the session link.
[0049] Among them, the status information is used to characterize whether the roadside terminal is faulty. The status information may include, but is not limited to, the identifier, current status, fault code and installation location of the roadside terminal; the session link refers to the communication connection established between the detection terminal and the target roadside terminal, which is used for data exchange and information transmission between the two devices.
[0050] Optionally, the detection terminal broadcasts a status information acquisition request to surrounding roadside terminals, wherein the status information acquisition request includes the identifier of the detection terminal; after receiving the status information acquisition request, the target roadside terminal resumes from the dormant state to the normal operating state and generates a session link with the detection terminal based on the identifier of the detection terminal; based on the status information acquisition request, the target roadside terminal sends its own target status information to the detection terminal through the session link.
[0051] S206. Obtain the fault type of the target roadside terminal based on the target status information, and send the corresponding fault recovery command to the target roadside terminal based on the session link.
[0052] Optionally, the fault type may include, but is not limited to, parameter abnormality, network connection abnormality, hardware failure and software failure; the fault recovery command may include, but is not limited to, parameter reconfiguration, device restart, software restart and factory reset.
[0053] In the aforementioned roadside terminal detection method, when the detection terminal is in motion, a request to obtain the status information of the roadside terminal is sent to wake up the target roadside terminal in a dormant state; a session link is generated with the target roadside terminal, and the target status information sent by the target roadside terminal is received based on the session link; the fault type of the target roadside terminal is obtained based on the target status information, and a fault recovery command corresponding to the fault type is sent to the target roadside terminal based on the session link. The method provided in this application, after determining the target roadside terminal, sends a fault recovery command to the target roadside terminal based on the target status information of the target roadside terminal through the generated session link, enabling the target roadside terminal to recover from the current fault based on the fault recovery command. This not only accurately recovers the fault of the target roadside terminal, but also eliminates the need for maintenance personnel, effectively reducing detection costs. Before detecting the roadside terminal, the target roadside terminal with a fault is in a dormant state, which allows for rapid identification of the target roadside terminal from multiple roadside terminals and reduces the power consumption of the target roadside terminal.
[0054] In some embodiments, such as Figure 4 As shown, generating a session link with the target roadside terminal includes:
[0055] S402. Send a session link generation request to the target roadside terminal. The session link generation request includes the first identity authentication information of the detection terminal.
[0056] S404. Based on the verification result of the first identity authentication information verified by the target roadside terminal, receive the session link identifier broadcast by the target roadside terminal and the second identity authentication information of the target roadside terminal.
[0057] S406. Verify the second identity authentication information.
[0058] S408. If the verification is successful, generate a session link based on the identifier and store the identifier in the session list.
[0059] Among them, identity authentication information refers to the data and credentials used to verify the identity of the device. Identity authentication information may include, but is not limited to, usernames and passwords, public and private keys, digital certificates, or tokens.
[0060] Optionally, after receiving the session link generation request, the target roadside terminal verifies the first identity authentication information. If the verification is successful, it generates a session link identifier based on the identifier of the detection terminal and sends the session link identifier and its own second identity authentication information to the detection terminal. The detection terminal verifies the second identity authentication information. If the verification is successful, it generates a session link based on the session link identifier.
[0061] In this embodiment, during the process of generating a session link between the detection terminal and the target roadside terminal, the two terminals will verify each other's identity authentication information, which can ensure the security of information transmission.
[0062] In some embodiments, the method further includes: during the interaction with the target roadside terminal, identifying the terminal that sends the interaction information as the first terminal and the terminal that receives the interaction information as the second terminal; if the second terminal does not return information to the first terminal regarding the interaction information, obtaining the time interval between the current time point and the time point when the interaction information was sent; if the time interval is greater than a duration threshold, disconnecting the session link and deleting the identifier of the session link from the session list.
[0063] Optionally, if the time interval between the current time point and the time point of sending the interactive information is greater than the duration threshold, it indicates that the session link between the detection terminal and the target road test terminal has failed. Therefore, it is necessary to close the session link and create a new session link.
[0064] In this embodiment, if the time interval between the current time point and the time point of sending the interactive information is greater than the duration threshold, the session link is disconnected. This ensures both the detection efficiency of the target roadside terminal and the security of the interactive information transmission process.
[0065] In some embodiments, the method further includes encrypting the interactive information based on a preset encryption algorithm.
[0066] Encryption algorithms refer to mathematical functions or algorithms used to convert plaintext data into ciphertext data. The main purpose of encryption algorithms is to protect the confidentiality, integrity, and authenticity of data, ensuring that only authorized recipients can decrypt and access the data.
[0067] In this embodiment, the interactive information is encrypted based on a preset encryption algorithm, which ensures the security of data transmission.
[0068] In some embodiments, the detection terminal interacts with at least one roadside terminal; the method further includes: upon receiving interaction information sent by the roadside terminal, determining whether the session list includes the identifier of the session link corresponding to the interaction information; if not, determining the interaction information as invalid information.
[0069] Optionally, in order to improve the detection efficiency of the target roadside terminal with a fault and to prevent the communication channel of the detection terminal from being occupied by other roadside terminals, the detection terminal will store the identifier of the corresponding session link of the target roadside terminal in the session list; during the interaction between the detection terminal and a certain roadside terminal, the detection terminal will determine whether the identifier of the corresponding session link of the roadside terminal is in the session list. If it is not in the session list, the interaction process with the roadside terminal will be terminated.
[0070] In this embodiment, when receiving interaction information sent by a roadside terminal, it is determined whether the session list includes the identifier of the corresponding session link of the interaction information. If not, the interaction information is determined to be invalid information, which can effectively improve the detection efficiency of the detection terminal for the target roadside terminal.
[0071] In some embodiments, after sending a fault recovery instruction corresponding to the fault type to the target roadside terminal, the method further includes: obtaining the current status information of the target roadside terminal based on the session link; if the current status information indicates that the target roadside terminal has a fault, displaying the identifier and location information of the target roadside terminal on the display screen, and controlling the target roadside terminal to issue an alarm message.
[0072] Optionally, if the target roadside terminal still has a fault after the detection terminal performs maintenance on the target roadside terminal, maintenance personnel need to go to the site to manually troubleshoot the fault. In order to improve the maintenance efficiency of maintenance personnel, the identifier and location information of the target roadside terminal can be displayed on the screen, and the target roadside terminal can be controlled to issue audible and visual alarm information, so that maintenance personnel can quickly find the location of the target roadside terminal.
[0073] In this embodiment, when the current status information indicates that the target roadside terminal is faulty, the identifier and location information of the target roadside terminal are displayed on the screen, and the target roadside terminal is controlled to issue an alarm message. This can effectively improve the efficiency of maintenance personnel in maintaining the target roadside terminal.
[0074] In one embodiment, another roadside terminal detection method is provided, which includes the following:
[0075] (1) The V2X detection terminal sends a low-power communication module wake-up information frame; after receiving the wake-up command, the target roadside terminal switches from the sleep state to the normal working state and sends a broadcast information frame to ensure that it can be detected.
[0076] (2) The V2X detection terminal receives the broadcast information frame from the target roadside terminal and establishes a communication connection according to the target device ID selected by the user.
[0077] (3) The V2X detection terminal queries the status information of the target roadside terminal, and the monitoring module sends the latest working status information of the target roadside terminal (dynamic or static information of the equipment, etc.) to the V2X detection terminal.
[0078] (4) After the V2X detection terminal obtains the device status information, it performs maintenance according to the cause of the abnormality of the target roadside terminal, or restores the target roadside terminal by sending instructions such as restarting, resetting or restoring factory settings.
[0079] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0080] Based on the same inventive concept, this application also provides a roadside terminal detection device for implementing the roadside terminal detection method described above. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more roadside terminal detection device embodiments provided below can be found in the limitations of the roadside terminal detection method described above, and will not be repeated here.
[0081] In one exemplary embodiment, such as Figure 5 As shown, a roadside terminal detection device 500 is provided, including: a broadcast module 501, a generation module 502, and an acquisition module 503, wherein:
[0082] The broadcast module 501 is used to send a status information acquisition request for the roadside terminal when the detection terminal is in motion, so as to wake up the target roadside terminal in a dormant state.
[0083] The generation module 502 is used to generate a session link with the target roadside terminal and receive target status information sent by the target roadside terminal based on the session link.
[0084] The acquisition module 503 is used to acquire the fault type of the target roadside terminal based on the target status information, and send a fault recovery instruction corresponding to the fault type to the target roadside terminal based on the session link.
[0085] In some embodiments, the generation module 502 is further configured to send a session link generation request to the target roadside terminal, the session link generation request including first identity authentication information of the detection terminal; based on the verification result of the target roadside terminal verifying the first identity authentication information, receive the identifier of the session link broadcast by the target roadside terminal and the second identity authentication information of the target roadside terminal; verify the second identity authentication information; if the verification is successful, generate the session link based on the identifier and store the identifier in the session list.
[0086] In some embodiments, the generation module 502 is further configured to, during the interaction with the target roadside terminal, identify the terminal that sends the interaction information as the first terminal and the terminal that receives the interaction information as the second terminal; if the second terminal does not return information to the first terminal in response to the interaction information, obtain the time interval between the current time point and the time point in which the interaction information was sent; if the time interval is greater than a duration threshold, disconnect the session link and delete the identifier of the session link from the session list.
[0087] In some embodiments, the generation module 502 is further configured to encrypt the interactive information based on a preset encryption algorithm.
[0088] In some embodiments, the detection terminal interacts with at least one roadside terminal; the generation module 502 is further configured to, upon receiving interaction information sent by the roadside terminal, determine whether the session list includes the identifier of the corresponding session link of the interaction information; if not, determine the interaction information as invalid information.
[0089] In some embodiments, the roadside terminal detection device 500 is specifically used to obtain the current status information of the target roadside terminal based on the session link; when the current status information indicates that the target roadside terminal has a fault, display the identifier and location information of the target roadside terminal on the display screen, and control the target roadside terminal to issue alarm information.
[0090] Each module in the aforementioned roadside terminal detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0091] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a roadside terminal detection method.
[0092] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0093] In one exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: when a detection terminal is in motion, sending a status information acquisition request for a roadside terminal to wake up a target roadside terminal in a dormant state; generating a session link with the target roadside terminal and receiving target status information sent by the target roadside terminal based on the session link; obtaining the fault type of the target roadside terminal based on the target status information, and sending a fault recovery instruction corresponding to the fault type to the target roadside terminal based on the session link.
[0094] In one embodiment, the generation of a session link with the target roadside terminal by the processor executing a computer program includes: sending a session link generation request to the target roadside terminal, the session link generation request including first authentication information of the detection terminal; receiving an identifier of the session link broadcast by the target roadside terminal and second authentication information of the target roadside terminal based on the verification result of the target roadside terminal verifying the first authentication information; verifying the second authentication information; and if the verification is successful, generating the session link based on the identifier and storing the identifier in a session list.
[0095] In one embodiment, the method implemented by the processor when executing the computer program further includes: during the interaction with the target roadside terminal, identifying the terminal that sends the interaction information as a first terminal and the terminal that receives the interaction information as a second terminal; if the second terminal does not return information to the first terminal in response to the interaction information, obtaining the time interval between the current time point and the time point in which the interaction information was sent; if the time interval is greater than a duration threshold, disconnecting the session link and deleting the identifier of the session link from the session list.
[0096] In one embodiment, the method implemented by the processor when executing the computer program further includes encrypting the interactive information based on a preset encryption algorithm.
[0097] In one embodiment, the detection terminal implemented by the processor when executing the computer program interacts with at least one roadside terminal; the method further includes: upon receiving interaction information sent by the roadside terminal, determining whether the session list includes the identifier of the session link corresponding to the interaction information; if not, determining the interaction information as invalid information.
[0098] In one embodiment, after the processor executes the computer program and sends the fault recovery instruction corresponding to the fault type to the target roadside terminal, the method further includes: obtaining the current status information of the target roadside terminal based on the session link; if the current status information indicates that the target roadside terminal has a fault, displaying the identifier and location information of the target roadside terminal on the display screen, and controlling the target roadside terminal to issue an alarm message.
[0099] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, it performs the following steps: when the detection terminal is in motion, sending a status information acquisition request for the roadside terminal to wake up the target roadside terminal in a dormant state; generating a session link with the target roadside terminal and receiving target status information sent by the target roadside terminal based on the session link; obtaining the fault type of the target roadside terminal based on the target status information, and sending a fault recovery instruction corresponding to the fault type to the target roadside terminal based on the session link.
[0100] In one embodiment, the generation of a session link with the target roadside terminal by the computer program being executed by a processor includes: sending a session link generation request to the target roadside terminal, the session link generation request including first authentication information of the detection terminal; receiving an identifier of the session link broadcast by the target roadside terminal and second authentication information of the target roadside terminal based on the verification result of the first authentication information verified by the target roadside terminal; verifying the second authentication information; and, if the verification is successful, generating the session link based on the identifier and storing the identifier in a session list.
[0101] In one embodiment, the method implemented by the computer program when executed by a processor further includes: during interaction with the target roadside terminal, identifying the terminal sending the interaction information as a first terminal and the terminal receiving the interaction information as a second terminal; if the second terminal does not return information to the first terminal regarding the interaction information, obtaining the time interval between the current time point and the time point at which the interaction information was sent; if the time interval is greater than a duration threshold, disconnecting the session link and deleting the identifier of the session link from the session list.
[0102] In one embodiment, the method implemented when the computer program is executed by the processor further includes: encrypting the interactive information based on a preset encryption algorithm.
[0103] In one embodiment, the detection terminal implemented when the computer program is executed by the processor interacts with at least one roadside terminal; the method further includes: upon receiving interaction information sent by the roadside terminal, determining whether the session list includes the identifier of the session link corresponding to the interaction information; if not, determining the interaction information as invalid information.
[0104] In one embodiment, after the computer program is executed by the processor and sends the fault recovery instruction corresponding to the fault type to the target roadside terminal, it further includes: obtaining the current status information of the target roadside terminal based on the session link; if the current status information indicates that the target roadside terminal has a fault, displaying the identifier and location information of the target roadside terminal on the display screen, and controlling the target roadside terminal to issue alarm information.
[0105] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps: when a detection terminal is in motion, sending a status information acquisition request for a roadside terminal to wake up a target roadside terminal in a dormant state; generating a session link with the target roadside terminal and receiving target status information sent by the target roadside terminal based on the session link; obtaining the fault type of the target roadside terminal based on the target status information, and sending a fault recovery instruction corresponding to the fault type to the target roadside terminal based on the session link.
[0106] In one embodiment, the generation of a session link with the target roadside terminal by the computer program being executed by a processor includes: sending a session link generation request to the target roadside terminal, the session link generation request including first authentication information of the detection terminal; receiving an identifier of the session link broadcast by the target roadside terminal and second authentication information of the target roadside terminal based on the verification result of the first authentication information verified by the target roadside terminal; verifying the second authentication information; and, if the verification is successful, generating the session link based on the identifier and storing the identifier in a session list.
[0107] In one embodiment, the method implemented by the computer program when executed by a processor further includes: during interaction with the target roadside terminal, identifying the terminal sending the interaction information as a first terminal and the terminal receiving the interaction information as a second terminal; if the second terminal does not return information to the first terminal regarding the interaction information, obtaining the time interval between the current time point and the time point at which the interaction information was sent; if the time interval is greater than a duration threshold, disconnecting the session link and deleting the identifier of the session link from the session list.
[0108] In one embodiment, the method implemented when the computer program is executed by the processor further includes: encrypting the interactive information based on a preset encryption algorithm.
[0109] In one embodiment, the detection terminal implemented when the computer program is executed by the processor interacts with at least one roadside terminal; the method further includes: upon receiving interaction information sent by the roadside terminal, determining whether the session list includes the identifier of the session link corresponding to the interaction information; if not, determining the interaction information as invalid information.
[0110] In one embodiment, after the computer program is executed by the processor and sends the fault recovery instruction corresponding to the fault type to the target roadside terminal, it further includes: obtaining the current status information of the target roadside terminal based on the session link; if the current status information indicates that the target roadside terminal has a fault, displaying the identifier and location information of the target roadside terminal on the display screen, and controlling the target roadside terminal to issue alarm information.
[0111] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0112] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0113] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0114] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for detecting roadside terminals, characterized in that, The method includes: When the detection terminal is in motion, a status information acquisition request for the roadside terminal is sent to wake up the target roadside terminal that is in a dormant state. Generate a session link with the target roadside terminal, and receive target status information sent by the target roadside terminal based on the session link; Based on the target status information, the fault type of the target roadside terminal is obtained, and based on the session link, a fault recovery command corresponding to the fault type is sent to the target roadside terminal.
2. The method according to claim 1, characterized in that, The generation of the session link with the target roadside terminal includes: Send a session link generation request to the target roadside terminal, the session link generation request including the first identity authentication information of the detection terminal; Based on the verification result of the first identity authentication information verified by the target roadside terminal, the identifier of the session link broadcast by the target roadside terminal and the second identity authentication information of the target roadside terminal are received. Verify the second identity authentication information; If the verification is successful, the session link is generated based on the identifier, and the identifier is stored in the session list.
3. The method according to claim 2, characterized in that, The method further includes: During the interaction with the target roadside terminal, the terminal that sends the interaction information is identified as the first terminal, and the terminal that receives the interaction information is identified as the second terminal. If the second terminal does not return information to the first terminal in response to the interaction information, obtain the time interval between the current time point and the time point when the interaction information was sent. If the time interval exceeds a duration threshold, the session link is disconnected, and the identifier of the session link is removed from the session list.
4. The method according to any one of claims 3, characterized in that, The method further includes: The interactive information is encrypted using a preset encryption algorithm.
5. The method according to claim 2, characterized in that, The detection terminal interacts with at least one roadside terminal; the method further includes: Upon receiving the interaction information sent by the roadside terminal, determine whether the session list includes the identifier of the session link corresponding to the interaction information; If not included, the interaction information is determined to be invalid.
6. The method according to claim 1, characterized in that, After sending the fault recovery command corresponding to the fault type to the target road test terminal, the method further includes: Based on the session link, obtain the current status information of the target roadside terminal; If the current status information indicates that the target roadside terminal is faulty, the identifier and location information of the target roadside terminal are displayed on the screen, and the target roadside terminal is controlled to issue an alarm message.
7. A roadside terminal detection device, characterized in that, The device includes: The broadcast module is used to send a status information acquisition request for the roadside terminal when the detection terminal is in motion, so as to wake up the target roadside terminal in a dormant state. The generation module is used to generate a session link with the target roadside terminal and receive target status information sent by the target roadside terminal based on the session link; The acquisition module is used to acquire the fault type of the target roadside terminal based on the target status information, and send the corresponding fault recovery instruction to the target roadside terminal based on the session link.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.