Sensor adjustment method, device, vehicle-mounted terminal and readable storage medium

By implementing the queue management mechanism on the vehicle-mounted end, the control authority management problem when multiple mobile terminals interact with the same vehicle-mounted end is solved, and the orderly control of the vehicle-controlled components by multiple users is realized, meeting the multi-dimensional control needs.

CN115168068BActive Publication Date: 2025-03-25DONGFENG MOTOR GRP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210686421.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2025-03-25
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

With the increase in the number of unmanned vehicles in the prior art, point-to-point communication control cannot meet the needs of multi-dimensional control, and it is difficult to achieve orderly interaction between multiple mobile terminals and the same vehicle-mounted end at the same time.

Method used

By implementing the queue management mechanism on the vehicle end, the type of controlled elements is determined based on the sensor number in the received control instructions, and the queue is detected whether it is empty, whether there is a mobile terminal number and whether it is located in the head of the team. If it is located in the head of the team, the control instructions will be executed.

Benefits of technology

Multiple mobile terminals are realized to interact with the same vehicle-mounted end simultaneously, meeting the scenario needs of multiple users to control the controlled components of the same vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115168068B_ABST
    Figure CN115168068B_ABST
Patent Text Reader

Abstract

The present invention provides a sensor adjustment method, device, vehicle-mounted terminal and readable storage medium. The method comprises: when receiving a control instruction sent by a mobile terminal, determining the type of controlled element according to the sensor number contained in the control instruction; detecting whether the queue corresponding to the type of controlled element is empty; if not empty, detecting whether the number of the mobile terminal exists in the queue; if so, detecting whether the number of the mobile terminal is at the head of the queue; if it is at the head of the queue, executing the control instruction. Through the present invention, multiple mobile terminals can interact with the same vehicle-mounted terminal in an orderly manner at the same time, which can meet the scenario requirements of multiple users controlling the controlled elements of the same vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle debugging, and in particular to a sensor adjustment method, device, vehicle-mounted terminal and readable storage medium. Background Art

[0002] Whether in the field of unmanned vehicles or intelligent connected vehicles, many types and numbers of vehicle-mounted sensors are deployed. Among them, the vehicle-mounted sensors can increase their degrees of freedom through electronic control, and can be adjusted according to the field of view. The existing technology can be controlled in real time through mobile terminals. The above debugging is not only used in sensor testing and calibration work, but also widely used in the actual operation of unmanned vehicles. However, the existing technology is limited to point-to-point communication and sensor control between a single mobile terminal and a single vehicle. When the number of unmanned vehicles increases, point-to-point communication control cannot meet the needs of multi-dimensional control. Summary of the invention

[0003] In order to solve the above technical problems, the present invention provides a sensor adjustment method, device, vehicle-mounted terminal and readable storage medium.

[0004] In a first aspect, the present invention provides a sensor adjustment method, which is applied to a vehicle-mounted terminal and includes:

[0005] When receiving a control instruction sent by a mobile terminal, determining the type of the controlled component according to the sensor number contained in the control instruction;

[0006] Detecting whether a queue corresponding to the controlled component type is empty;

[0007] If it is not empty, detecting whether the number of the mobile terminal exists in the queue;

[0008] If so, detecting whether the number of the mobile terminal is at the head of the queue;

[0009] If it is at the head of the queue, the control instruction is executed.

[0010] Optionally, after the step of detecting whether the number of the mobile terminal exists in the queue, the method further includes:

[0011] If not present, the number of the mobile terminal is stored at the end of the queue.

[0012] Optionally, after the step of detecting whether the number of the mobile terminal is at the head of the queue, the method further includes:

[0013] If it is not at the head of the queue, a waiting reminder is fed back to the mobile terminal.

[0014] Optionally, the sensor adjustment method further includes:

[0015] The queue is managed.

[0016] Optionally, the step of managing the queue includes:

[0017] When the time from the last execution of the control instruction corresponding to the controlled element type exceeds a first preset time, the retention state of the head of the queue starts to be timed;

[0018] When the timing duration exceeds a second preset duration, interacting with the mobile terminal numbered at the head of the queue to determine whether to lock the head of the queue;

[0019] If it is determined that the head of the queue is not locked, the head of the queue is deleted from the queue to obtain a new queue;

[0020] If it is determined to lock the head of the queue, then return to the step of starting the timing of the retention state of the head of the queue;

[0021] Interact with the mobile terminal numbered at the head of the new queue to confirm whether to lock the head of the queue;

[0022] If it is determined that the head of the queue is not locked, the new queue is used as the queue, and the process of deleting the head of the queue from the queue to obtain a new queue is returned until the new queue is empty;

[0023] If it is determined to lock the head of the queue, the new queue is used as the queue, and the process returns to the step of starting the timing of the retention state of the head of the queue.

[0024] In a second aspect, the present invention further provides a vehicle-mounted terminal, the vehicle-mounted terminal comprising:

[0025] A determination module, configured to determine the type of controlled component according to the sensor number contained in the control instruction when receiving the control instruction sent by the mobile terminal;

[0026] A first detection module, used to detect whether the queue corresponding to the controlled component type is empty;

[0027] A second detection module, configured to detect whether the number of the mobile terminal exists in the queue if it is not empty;

[0028] A third detection module, configured to detect whether the number of the mobile terminal is at the head of the queue if present;

[0029] An execution module is used to execute the control instruction if it is at the head of the queue.

[0030] Optionally, the vehicle-mounted terminal further includes a management module, which is used to:

[0031] The queue is managed.

[0032] Optionally, the management module is used to:

[0033] When the time from the last execution of the control instruction corresponding to the controlled element type exceeds a first preset time, the retention state of the head of the queue starts to be timed;

[0034] When the timing duration exceeds a second preset duration, interacting with the mobile terminal numbered at the head of the queue to determine whether to lock the head of the queue;

[0035] If it is determined that the head of the queue is not locked, the head of the queue is deleted from the queue to obtain a new queue;

[0036] If it is determined to lock the head of the queue, then return to the step of starting the timing of the retention state of the head of the queue;

[0037] Interact with the mobile terminal numbered at the head of the new queue to confirm whether to lock the head of the queue;

[0038] If it is determined that the head of the queue is not locked, the new queue is used as the queue, and the process of deleting the head of the queue from the queue to obtain a new queue is returned until the new queue is empty;

[0039] If it is determined to lock the head of the queue, the new queue is used as the queue, and the process returns to the step of starting the timing of the retention state of the head of the queue.

[0040] In a third aspect, the present invention also provides a sensor adjustment device, comprising a processor, a memory, and a sensor adjustment program stored in the memory and executable by the processor, wherein when the sensor adjustment program is executed by the processor, the steps of the sensor adjustment method as described above are implemented.

[0041] In a fourth aspect, the present invention further provides a readable storage medium, on which a sensor adjustment program is stored, wherein when the sensor adjustment program is executed by a processor, the steps of the sensor adjustment method as described above are implemented.

[0042] In the present invention, when a control instruction sent by a mobile terminal is received, the type of controlled element is determined according to the sensor number contained in the control instruction; whether the queue corresponding to the type of controlled element is empty is detected; if it is not empty, whether the number of the mobile terminal exists in the queue is detected; if it exists, whether the number of the mobile terminal is located at the head of the queue is detected; if it is located at the head of the queue, the control instruction is executed. Through the present invention, multiple mobile terminals can interact with the same vehicle-mounted terminal in an orderly manner at the same time, which can meet the scenario requirements of multiple users controlling the controlled elements of the same vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the hardware structure of a sensor adjustment device involved in an embodiment of the present invention;

[0044] Figure 2 A schematic diagram of a flow chart of an embodiment of a sensor adjustment method of the present invention;

[0045] Figure 3 A detailed flow chart of the steps of managing a queue in an embodiment of a sensor adjustment method of the present invention;

[0046] Figure 4 A schematic diagram showing a single mobile terminal interacting with multiple vehicle-mounted terminals to read and display camera status information;

[0047] Figure 5 Schematic diagram of functional modules of an embodiment of a vehicle-mounted terminal of the present invention.

[0048] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0050] In a first aspect, an embodiment of the present invention provides a sensor adjustment device.

[0051] Reference Figure 1 , Figure 1 Schematic diagram of the hardware structure of the sensor adjustment device involved in the embodiment of the present invention. In the embodiment of the present invention, the sensor adjustment device may include a processor 1001 (e.g., a central processing unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as wireless fidelity WIreless-FIdelity, WI-FI interface); the memory 1005 may be a high-speed random access memory (random access memory, RAM), or a stable memory (non-volatile memory), such as a disk storage, and the memory 1005 may optionally be a storage device independent of the aforementioned processor 1001. Those skilled in the art will understand that Figure 1The hardware structure shown in the figure does not constitute a limitation of the present invention, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0052] Continue to refer to Figure 1 , Figure 1 The memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a sensor adjustment program. The processor 1001 may call the sensor adjustment program stored in the memory 1005 and execute the sensor adjustment method provided in the embodiment of the present invention.

[0053] In a second aspect, an embodiment of the present invention provides a sensor adjustment method.

[0054] In one embodiment, referring to Figure 2 , Figure 2 FIG. 1 is a flow chart of an embodiment of a sensor adjustment method of the present invention. Figure 2 As shown, the sensor adjustment method includes:

[0055] Step S10, when receiving a control instruction sent by the mobile terminal, determining the type of the controlled component according to the sensor number included in the control instruction;

[0056] In this embodiment, the same vehicle-mounted terminal can receive control instructions from multiple different mobile terminals and process each control instruction separately. Among them, each control instruction includes the vehicle (or vehicle-mounted terminal) number, the mobile terminal number, the sensor number and the control parameter. Take the vehicle-mounted terminal A on vehicle A receiving the control instruction 1 from the mobile terminal 1 and the control instruction 2 from the mobile terminal 2 as an example. Among them, the control instruction 1 includes the vehicle A (or vehicle-mounted terminal A) number, the mobile terminal 1 number, the camera 1 number and the control parameter 1; the control instruction 2 includes the vehicle A (or vehicle-mounted terminal A) number, the mobile terminal 2 number, the radar sensor 1 number and the control parameter 2.

[0057] When receiving the control instruction 1, the vehicle-mounted terminal A determines that the type of the controlled component is a sensing type according to the sensor number (i.e., the number of the camera 1) contained in the control instruction 1;

[0058] Similarly, when receiving the control instruction 2, the vehicle-mounted terminal A determines that the type of the controlled component is a perception type according to the sensor number (ie, the number of the radar sensor 1) included in the control instruction 2.

[0059] Step S20, detecting whether the queue corresponding to the controlled component type is empty;

[0060] In this embodiment, each type of controlled component corresponds to a different queue, and each queue is initially empty. For example, controlled component type 1 corresponds to queue 1, and controlled component type 2 corresponds to queue 2. After the vehicle-mounted terminal determines the type of controlled component according to the received control instruction, it further detects whether the queue corresponding to the type of controlled component is empty.

[0061] Step S30: If it is not empty, then check whether the number of the mobile terminal exists in the queue;

[0062] In this embodiment, take queue C corresponding to the perception class as the initial state, and take the vehicle-mounted terminal A first receiving control instruction 1 and then receiving control instruction 2 as an example.

[0063] When the vehicle-mounted terminal A receives the control instruction 1 and determines that the type of controlled component is a perception type based on the sensor number contained in the control instruction 1, if the queue C corresponding to the perception type is in the initial state (i.e. empty) at this time, the number of the mobile terminal 1 is placed in the queue C and the control instruction 1 is executed.

[0064] Subsequently, when vehicle-mounted terminal A receives control instruction 2 and determines that the type of controlled component is a sensing type according to the sensor number contained in control instruction 2, since the number of mobile terminal 1 exists in queue C at this time, that is, the queue corresponding to the sensing type is not empty, it detects whether the number of mobile terminal 2 exists in the queue. Obviously, the number of mobile terminal 2 does not exist in queue C at this time.

[0065] Furthermore, in one embodiment, after step S30, the method further includes:

[0066] If not present, the number of the mobile terminal is stored at the end of the queue.

[0067] In this embodiment, if the number of mobile terminal 2 does not exist in the queue, the number of mobile terminal 2 is stored at the end of queue C, and the head of queue C is the number of mobile terminal 1.

[0068] Step S40, if it exists, detecting whether the number of the mobile terminal is at the head of the queue;

[0069] In this embodiment, if the subsequent vehicle-mounted terminal A receives a control instruction 3 from the mobile terminal 1, and determines that the type of controlled element is also a perception type based on the sensor number contained in the control instruction 3, since the queue C includes the number of the mobile terminal 1, it is further detected whether the number of the mobile terminal 1 is at the head of the queue C.

[0070] Step S50: If it is at the head of the queue, execute the control instruction.

[0071] In this embodiment, if the number of mobile terminal 1 is at the head of queue C, it means that mobile terminal 1 has the control right for the perception sensor, and the control instruction 3 is executed.

[0072] Furthermore, in one embodiment, after step S40, the method further includes:

[0073] If it is not at the head of the queue, a waiting reminder is fed back to the mobile terminal.

[0074] In this embodiment, if the subsequent vehicle-mounted terminal A receives a control instruction 4 from the mobile terminal 2, and determines that the type of controlled element is also a perception type based on the sensor number contained in the control instruction 4, since the number of mobile terminal 2 is not at the head of the queue C, a waiting reminder is fed back to the mobile terminal 2, for example, a "please wait" message is fed back to the mobile terminal 2.

[0075] When multiple mobile terminals write control instructions to the same vehicle-mounted terminal, the vehicle-mounted terminal controls the movement of the vehicle-mounted camera by analyzing and deciding through the write priority judgment logic module. The priority judgment logic module consists of three parts: the priority judgment module, the mobile terminal instruction queue and the time control module. In addition, there are input and output of control instructions and execution instructions between each part. Among them, the mobile terminal instruction queue is a queue for storing mobile terminal control instructions established in advance according to the type of controlled components. From the perspective of a single vehicle-mounted terminal, control instructions input by N mobile terminals are received. The control instructions include vehicle number, mobile terminal number, sensor number and corresponding control parameters. When the vehicle-mounted terminal receives multiple control instructions, the write priority judgment logic module will perform the instruction priority judgment step: the type of controlled component is known according to the sensor number in the control instruction. Since there are many types of vehicle-mounted controlled components, only the same type of controlled components need to be locked and prioritized for control rights, and are controlled by the same mobile terminal. Therefore, logical judgment is performed according to the type of controlled component: (1) Determine whether the mobile terminal queue of this type is empty. If it is empty, store the control instruction and mobile terminal number in the queue, and take the control instruction as the result with the highest priority. The control actuator controls the camera movement according to the instruction parameters. If it is not empty, proceed to the next step; (2) Determine whether the current mobile terminal queue contains the mobile terminal involved in the control instruction. If not, put the mobile terminal information of the control instruction at the end of the queue. If it is included, proceed to the next logical judgment; (3) Determine whether the mobile terminal involved in the control instruction is the current head of the team. If it is the head of the team, take the control instruction as the result with the highest priority. The control actuator controls the camera movement according to the instruction parameters. If it is not the head of the team, feedback information is given to the mobile terminal involved in the current instruction: Please wait!

[0076] In this embodiment, when a control instruction is received from a mobile terminal, the type of controlled component is determined according to the sensor number contained in the control instruction; whether the queue corresponding to the type of controlled component is empty is detected; if it is not empty, whether the number of the mobile terminal exists in the queue is detected; if it exists, whether the number of the mobile terminal is at the head of the queue is detected; if it is at the head of the queue, the control instruction is executed. Through this embodiment, multiple mobile terminals can interact with the same vehicle-mounted terminal in an orderly manner at the same time, which can meet the scenario requirements of multiple users controlling the controlled components of the same vehicle.

[0077] Furthermore, in one embodiment, the sensor adjustment method further includes:

[0078] The queue is managed.

[0079] In this embodiment, the queues corresponding to the types of controlled components are managed according to a preset management strategy.

[0080] Further, in one embodiment, referring to Figure 3 , Figure 3 FIG. 1 is a detailed flow chart of the steps of managing the queue in an embodiment of the sensor adjustment method of the present invention. Figure 3 As shown, the steps of managing the queue include:

[0081] When the time from the last execution of the control instruction corresponding to the controlled element type exceeds a first preset time, the retention state of the head of the queue starts to be timed;

[0082] When the timing duration exceeds a second preset duration, interacting with the mobile terminal numbered at the head of the queue to determine whether to lock the head of the queue;

[0083] If it is determined that the head of the queue is not locked, the head of the queue is deleted from the queue to obtain a new queue;

[0084] If it is determined to lock the head of the queue, then return to the step of starting the timing of the retention state of the head of the queue;

[0085] Interact with the mobile terminal numbered at the head of the new queue to confirm whether to lock the head of the queue;

[0086] If it is determined that the head of the queue is not locked, the new queue is used as the queue, and the process of deleting the head of the queue from the queue to obtain a new queue is returned until the new queue is empty;

[0087] If it is determined to lock the head of the queue, the new queue is used as the queue, and the process returns to the step of starting the timing of the retention state of the head of the queue.

[0088] In this embodiment, the head of the queue represents the control right of all vehicle-mounted controlled components of this type. Therefore, the queue needs to be managed through a time control mechanism. When the control instruction output of the same type of controlled components is executed, if there is no control instruction output of the same type of controlled components after a first preset time, the time control module is started (otherwise the time control module is interrupted and initialized):

[0089] (1) Start timing the current head of the queue's detention state. When the time reaches the second preset time, if the module interruption command is still not received, a prompt is sent to the mobile terminal at the head of the queue, such as sending "You are about to lose control, please confirm whether to lock it". If the mobile terminal replies "Yes", the timer is reset to zero and this step is restarted. If the reply is "No" or the response times out, it is determined not to lock the head of the queue and proceed to the next step;

[0090] (2) Control the current queue to move forward one unit as a whole, that is, delete the head of the queue from the current queue, and the second one becomes the head of the queue;

[0091] (3) Interact with the mobile terminal numbered at the head of the new queue to confirm whether to lock the head of the queue. Specifically, send a prompt to the mobile terminal numbered at the head of the new queue, such as sending "Do you have control?" If the mobile terminal numbered at the head of the new queue replies "No" or the response times out, return to step (2); if the mobile terminal numbered at the head of the new queue replies "Yes", the timer is reset and jumps back to step (1);

[0092] (4) After step (2) is executed, if the head of the new queue is empty, it indicates that the queue is empty, and the queue management process is exited (i.e., the process is ended).

[0093] It should be noted that, in addition to managing the queue according to the time control mechanism, the queue can also be managed through a time slice round-robin system or a multi-threaded alternating system, thereby achieving management of the control right of the controlled element.

[0094] Furthermore, due to the large number of types of vehicle-mounted controlled components, only the camera is used as an example here. Figure 4 , Figure 4 This is a schematic diagram of a single mobile terminal interacting with multiple vehicle terminals to read and display camera status information. Figure 4 As shown, the mobile terminal includes three modules: communication module, operation interface and data storage module. Among them:

[0095] In addition to the front-end UI interface, the operation interface also includes the business logic of the middle and back-end. The UI interface is divided into three aspects: list module, three-dimensional data field of view module and parameter display adjustment module. All of them use the business logic program to call the data storage module and the camera status information of the external vehicle terminal for processing and display. The data storage module is a database, which contains a connection communication data table, a sensor parameter data table and a three-dimensional model data table. The internal structure principle of each vehicle terminal is the same, including a communication module, a sensor module and an execution module.

[0096] The communication module of the mobile terminal can search for vehicle-mounted terminal signals externally and establish a communication connection with the communication modules of the vehicle-mounted terminals that can be searched nearby, or it can search for the vehicle-mounted terminal number in the list module, and send the connection information to the target vehicle-mounted terminal communication module through the communication module to establish a connection. When the communication connection is successful, the mobile terminal performs the following steps: 1. The vehicle number, vehicle sensor category and number information are stored in the connection communication data table, and the list module on the operation interface displays the vehicle-mounted terminal form, and the status is displayed as "connection successful". 2. Click on a successfully connected vehicle-mounted terminal in the vehicle list, and the mobile terminal sends a command to the vehicle-mounted terminal according to the vehicle number, obtains the current state parameter data of all cameras through the sensor module in the vehicle-mounted terminal, and stores the parameter data in the sensor parameter data table; 3. At the same time, according to the vehicle number and sensor type, the vehicle and camera three-dimensional models (including field of view angle) in the three-dimensional model data table are retrieved, and the three-dimensional model scene is displayed in the three-dimensional data field of view module in the operation interface according to the camera state parameters. 4. The acquired camera status parameters are displayed in the parameter display adjustment module on the operation interface; and when the target status parameters are entered in the module and confirmed to be sent, the instruction is sent to the write priority judgment logic module of the vehicle end; 5. When a form in the vehicle list in the mobile terminal is selected and displayed in the three-dimensional module of the operation interface, the mobile terminal repeatedly obtains the status parameter data of the vehicle-mounted camera in real time, and the instruction interval time is τ.

[0097] In this embodiment, the same mobile terminal can interact with multiple vehicle-mounted terminals to realize the functions of debugging and status parameter echo of the controlled components on the vehicle-mounted terminals. List-based management is more convenient and quick, which is conducive to management and test calibration work.

[0098] In a third aspect, an embodiment of the present invention further provides a vehicle-mounted terminal.

[0099] In one embodiment, referring to Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the functional modules of an embodiment of the vehicle-mounted terminal of the present invention. Figure 5 As shown, the vehicle-mounted terminal includes:

[0100] The determination module 10 is used to determine the type of the controlled component according to the sensor number included in the control instruction when receiving the control instruction sent by the mobile terminal;

[0101] A first detection module 20 is used to detect whether the queue corresponding to the controlled component type is empty;

[0102] A second detection module 30, configured to detect whether the number of the mobile terminal exists in the queue if it is not empty;

[0103] A third detection module 40, configured to detect whether the number of the mobile terminal is at the head of the queue if present;

[0104] The execution module 50 is used to execute the control instruction if it is at the head of the queue.

[0105] Furthermore, in one embodiment, the vehicle-mounted terminal further includes:

[0106] The storage module is used to store the number of the mobile terminal at the end of the queue if the mobile terminal does not exist.

[0107] Furthermore, in one embodiment, the vehicle-mounted terminal further includes:

[0108] A feedback module is used to feed back a waiting reminder to the mobile terminal if the mobile terminal is not at the head of the queue.

[0109] Furthermore, in one embodiment, the vehicle-mounted terminal further includes:

[0110] A management module is used to manage the queue.

[0111] Furthermore, in one embodiment, the management module is used to:

[0112] When the time from the last execution of the control instruction corresponding to the controlled element type exceeds a first preset time, the retention state of the head of the queue starts to be timed;

[0113] When the timing duration exceeds a second preset duration, interacting with the mobile terminal numbered at the head of the queue to determine whether to lock the head of the queue;

[0114] If it is determined that the head of the queue is not locked, the head of the queue is deleted from the queue to obtain a new queue;

[0115] If it is determined to lock the head of the queue, then return to the step of starting the timing of the retention state of the head of the queue;

[0116] Interact with the mobile terminal numbered at the head of the new queue to confirm whether to lock the head of the queue;

[0117] If it is determined that the head of the queue is not locked, the new queue is used as the queue, and the process of deleting the head of the queue from the queue to obtain a new queue is returned until the new queue is empty;

[0118] If it is determined to lock the head of the queue, the new queue is used as the queue, and the process returns to the step of starting the timing of the retention state of the head of the queue.

[0119] Among them, the functional implementation of each module in the above-mentioned vehicle-mounted terminal corresponds to the various steps in the above-mentioned sensor adjustment method embodiment, and its functions and implementation processes will not be repeated here one by one.

[0120] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium.

[0121] The readable storage medium of the present invention stores a sensor adjustment program, wherein when the sensor adjustment program is executed by a processor, the steps of the sensor adjustment method described above are implemented.

[0122] The method implemented when the sensor adjustment program is executed can refer to the various embodiments of the sensor adjustment method of the present invention, and will not be described in detail here.

[0123] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0124] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course 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) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present invention.

[0126] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A sensor adjustment method, characterized in that: The sensor adjustment method is applied to a vehicle-mounted end, and the sensor adjustment method includes: When receiving a control instruction sent by a mobile terminal, determining the type of the controlled component according to the sensor number contained in the control instruction; Detecting whether a queue corresponding to the controlled component type is empty; If it is not empty, detecting whether the number of the mobile terminal exists in the queue; If so, detecting whether the number of the mobile terminal is at the head of the queue; If it is at the head of the queue, execute the control instruction; When the time from the last execution of the control instruction corresponding to the controlled element type exceeds a first preset time, the retention state of the head of the queue starts to be timed; When the timing duration exceeds a second preset duration, interacting with the mobile terminal numbered at the head of the queue to determine whether to lock the head of the queue; If it is determined that the head of the queue is not locked, the head of the queue is deleted from the queue to obtain a new queue; If it is determined to lock the head of the queue, then return to the step of starting the timing of the retention state of the head of the queue; Interact with the mobile terminal numbered at the head of the new queue to confirm whether to lock the head of the queue; If it is determined that the head of the queue is not locked, the new queue is used as the queue, and the process of deleting the head of the queue from the queue to obtain a new queue is returned until the new queue is empty; If it is determined to lock the head of the queue, the new queue is used as the queue, and the process returns to the step of starting the timing of the retention state of the head of the queue.

2. The sensor adjustment method according to claim 1, characterized in that: After the step of detecting whether the number of the mobile terminal exists in the queue, the method further includes: If not present, the number of the mobile terminal is stored at the end of the queue.

3. The sensor adjustment method according to claim 1, characterized in that: After the step of detecting whether the number of the mobile terminal is at the head of the queue, the method further includes: If it is not at the head of the queue, a waiting reminder is fed back to the mobile terminal.

4. A vehicle-mounted terminal, characterized in that: The vehicle-mounted terminal comprises: A determination module, configured to determine the type of controlled component according to the sensor number contained in the control instruction when receiving the control instruction sent by the mobile terminal; A first detection module, used to detect whether the queue corresponding to the controlled component type is empty; A second detection module, configured to detect whether the number of the mobile terminal exists in the queue if it is not empty; A third detection module, configured to detect whether the number of the mobile terminal is at the head of the queue if present; an execution module, configured to execute the control instruction if the node is at the head of the queue; Management module for: When the time from the last execution of the control instruction corresponding to the controlled element type exceeds a first preset time, the retention state of the head of the queue starts to be timed; When the timing duration exceeds a second preset duration, interacting with the mobile terminal numbered at the head of the queue to determine whether to lock the head of the queue; If it is determined that the head of the queue is not locked, the head of the queue is deleted from the queue to obtain a new queue; If it is determined to lock the head of the queue, then return to the step of starting the timing of the retention state of the head of the queue; Interact with the mobile terminal numbered at the head of the new queue to confirm whether to lock the head of the queue; If it is determined that the head of the queue is not locked, the new queue is used as the queue, and the process of deleting the head of the queue from the queue to obtain a new queue is returned until the new queue is empty; If it is determined to lock the head of the queue, the new queue is used as the queue, and the process returns to the step of starting the timing of the retention state of the head of the queue.

5. A sensor adjustment device, characterized in that: The sensor adjustment device includes a processor, a memory, and a sensor adjustment program stored in the memory and executable by the processor, wherein when the sensor adjustment program is executed by the processor, the steps of the sensor adjustment method according to any one of claims 1 to 3 are implemented.

6. A readable storage medium, characterized in that: The readable storage medium stores a sensor adjustment program, wherein when the sensor adjustment program is executed by a processor, the steps of the sensor adjustment method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Method and system of power supply management of electronic device and power supply control device

    CN108270290A