A display method, a central control device, and a computer-readable storage medium
By introducing timing logic and signal pooling mechanisms in the on-board system, monitoring the actual working status of the hardware, the problem of the virtual control display status is solved, and the system reliability and user operation accuracy are improved.
Patent Information
- Application Number
- CN202510147369.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-11
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-02-11
AI Technical Summary
In the prior art, the display status of virtual controls in the on-board system and the actual status of the hardware device are easily out of sync when communication delays or signals are lost, resulting in inaccurate user operations.
By introducing timing logic and signal pooling mechanisms into the on-board system, the actual working status of the hardware is monitored and the latest status is actively obtained when necessary, to ensure that the display status of the virtual controls is consistent with the actual status of the hardware device.
It effectively avoids the problem of state asynchronous caused by communication delay or signal loss, improves the reliability and anti-interference ability of the system, reduces the possibility of misleading users, and improves the intuitiveness of interaction and the convenience of operation.
Smart Images

Figure CN119611055B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle control, and in particular, to a display method, a central control device, and a computer-readable storage medium. Background Art
[0002] With the popularization of intelligent vehicle-mounted systems, the central control device interacts with hardware devices through virtual controls to achieve precise control of in-vehicle functions. The display state of the virtual controls needs to be synchronized with the actual state of the hardware devices to improve the user experience and the intuitiveness of operations.
[0003] In the prior art, the display state of virtual controls is usually updated by means of periodic query or real-time feedback. However, when there is communication delay or signal loss, the state of the virtual controls may be inconsistent with the actual state of the hardware devices. In addition, when the user quickly and continuously operates the virtual controls, the vehicle-mounted system may not be able to accurately synchronize the state due to multiple signal conflicts. Summary of the Invention
[0004] In view of this, an object of the present invention is to provide a display method, a central control device, and a computer-readable storage medium, which can reduce the problem of incorrect display of the central control device caused by the failure of the hardware execution device to update the state, thereby improving the synchronization between the display of the virtual controls and the state of the hardware execution device, and further enhancing the accuracy of user operations.
[0005] In a first aspect, an embodiment of the present invention provides a display method, which is applied to a central control device in a vehicle-mounted system. The vehicle-mounted system further includes a control execution module and a hardware execution device. The control execution module is capable of receiving a status signal sent by the central control device to control the working state of the hardware execution device, and feeding back the actual working state of the hardware execution device to the central control device; the central control device includes a display screen and a signal pool, and virtual controls capable of adjusting the working state of the hardware execution device are displayed on the display screen; the method includes: in response to a first state adjustment operation acting on the virtual control, determining a first hardware adjustment state matching the first state adjustment operation, and a first control display state corresponding to the first hardware adjustment state; controlling the virtual control to be displayed according to the first control display state; sending the first hardware adjustment state to the control execution module, and starting a timing logic to obtain a first timing duration; when the first timing duration reaches a preset first time threshold, obtaining from the signal pool the actual working state of the hardware execution device received from the control execution module; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the one with the most recent time among the multiple working states; if the working state of the hardware execution device indicated by the first control display state is inconsistent with the actual working state, adjusting the virtual control to a corresponding second control display state according to the actual working state.
[0006] Further, the step of adjusting the virtual control to the corresponding second control display state according to the actual working state includes: sending the first hardware adjustment state to the control execution module again, and restarting the timing logic to update the first timing duration; when the updated first timing duration reaches a preset second time threshold, determining whether to receive the real-time working state sent by the control execution module; if the real-time working state is not received, adjusting the virtual control to the corresponding second control display state according to the actual working state.
[0007] Further, after the step of determining whether to receive the real-time working state sent by the control execution module, the method further includes: if the real-time working state is received, determining the real-time working state as the actual working state; determining whether the working state of the hardware execution device indicated by the first control display state is consistent with the actual working state; if not, adjusting the virtual control to the corresponding second control display state according to the actual working state.
[0008] Further, the control execution module can obtain the working state sent by the hardware execution device in real time or according to a preset feedback period, and in the case of determining that the working state is different from the previous working state, feedback the working state to the central control device; before the step of obtaining the actual working state of the hardware execution device received from the control execution module from the signal pool when the first timing duration reaches a preset first time threshold, the method further includes: when the first timing duration does not reach the preset first time threshold, determining whether the real-time working state sent by the control execution module received is the same as the working state of the hardware execution device indicated by the first control display state; if the real-time working state is the same as the working state of the hardware execution device indicated by the first control display state, keeping the virtual control displayed according to the first control display state, and stopping the timing logic.
[0009] Further, the virtual control is a control switch; after the step of displaying the virtual control according to the first control display state, the method further includes: adjusting the virtual control to an inadjustable state.
[0010] Further, after the step of if the actual working state is not received, the method further includes: keeping the virtual control in an inadjustable state.
[0011] Further, after the step of obtaining the actual working state of the hardware execution device received from the control execution module from the signal pool, the method further includes: if the working state of the hardware execution device indicated by the first control display state is consistent with the actual working state, keeping the virtual control in the first control display state, and releasing the inadjustable state of the virtual control.
[0012] Further, the virtual control is an adjustment control; multiple gear values are arranged in sequence on the adjustment control; after the steps of determining a first hardware adjustment state matching the first state adjustment operation on the virtual control and a first control display state corresponding to the first hardware adjustment state in response to the first state adjustment operation on the virtual control, the method further includes: assigning the first control display state to a gear parameter; the initial value of the gear parameter is -1.
[0013] Further, after the step of sending the first hardware adjustment state to the control execution module and starting a timing logic to obtain a first timing duration, the method further includes: if a second state adjustment operation on the virtual control is received, in response to the second state adjustment operation, determining a second hardware adjustment state corresponding to the second state adjustment operation and a third control display state corresponding to the second hardware adjustment state; updating the gear parameter based on the third control display state to obtain an updated gear parameter; controlling the virtual control to be displayed according to the third control display state; sending the second hardware adjustment state to the control execution module and updating the first timing duration.
[0014] Further, after the step of obtaining, when the first timing duration reaches a preset first time threshold, the actual working state of the hardware execution device received from the control execution module from the signal pool, the method further includes: determining whether the gear parameter is consistent with the actual working state; if the gear parameter is not consistent with the actual working state, determining that the first control display state corresponding to the gear parameter is not consistent with the actual working state.
[0015] In a second aspect, an embodiment of the present invention provides a central control device applied to a vehicle-mounted system, and the vehicle-mounted system further includes a control execution module and a hardware execution device; the central control device includes a display screen and a signal pool, and a virtual control capable of adjusting the working state of the hardware execution device is displayed on the display screen; the central control device includes: a response unit, configured to determine, in response to a first state adjustment operation on the virtual control, a first hardware adjustment state matching the first state adjustment operation and a first control display state corresponding to the first hardware adjustment state; a display unit, configured to control the virtual control to be displayed according to the first control display state; a timing unit, configured to send the first hardware adjustment state to the control execution module and start a timing logic to obtain a first timing duration; a storage unit, configured to obtain, when the first timing duration reaches a preset first time threshold, the actual working state of the hardware execution device received from the control execution module from the signal pool; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the one with the most recent time among the multiple working states; the display unit is further configured to, if the working state of the hardware execution device indicated by the first control display state is not consistent with the actual working state, adjust the virtual control to a corresponding second control display state according to the actual working state.
[0016] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the program code causes the processor to execute the method described above.
[0017] An embodiment of the present invention provides a display method, a central control device, and a computer-readable storage medium. The vehicle-mounted system further includes a control execution module and a hardware execution device. The control execution module can receive the status signal sent by the central control device to control the working state of the hardware execution device, and feedback the actual working state of the hardware execution device to the central control device; the central control device includes a display screen and a signal pool, and virtual controls capable of adjusting the working state of the hardware execution device are displayed on the display screen; the method includes: in response to a first state adjustment operation acting on the virtual control, determining a first hardware adjustment state matching the first state adjustment operation and a first control display state corresponding to the first hardware adjustment state; controlling the virtual control to be displayed according to the first control display state; sending the first hardware adjustment state to the control execution module and starting a timing logic to obtain a first timing duration; when the first timing duration reaches a preset first time threshold, obtaining from the signal pool the actual working state of the hardware execution device received from the control execution module; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the one with the most recent time among the multiple working states; if the working state of the hardware execution device indicated by the first control display state is inconsistent with the actual working state, adjusting the virtual control to the corresponding second control display state according to the actual working state. In this way, by monitoring the actual working state of the hardware within the preset time threshold and actively obtaining the latest state when necessary, it is ensured that the display state of the virtual control is consistent with the actual state of the hardware device, effectively avoiding the problem of state out-of-synchronization caused by communication delay or signal loss. The introduction of the timing logic and the signal pool mechanism enables the system to perform state verification and update through historical state records in the case of abnormal or delayed hardware feedback, improving the reliability and anti-interference ability of the system. The display state of the virtual control reflects the working state of the hardware in real time, reducing the possibility of misleading the user. At the same time, the user can obtain accurate state feedback without additional operations, improving the intuitiveness of the interaction and the convenience of the operation. By only starting the timing logic and verifying the state when necessary, frequent active queries and redundant signal processing are avoided, optimizing the utilization efficiency of system resources.
[0018] Other features and advantages of the present invention will be described in the following specification, and some of them will become obvious from the specification or be understood by implementing the present invention. The objectives and other advantages of the present invention are achieved and obtained by the structures specifically pointed out in the specification, claims, and drawings.
[0019] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following specifically enumerates preferred embodiments and, in conjunction with the accompanying drawings, provides a detailed description as follows. Description of the Drawings
[0020] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0021] Figure 1 Flowchart of the display method provided by an embodiment of the present invention;
[0022] Figure 2 Schematic diagram of the vehicle-mounted system provided by an embodiment of the present invention;
[0023] Figure 3 Flowchart of the method for adjusting a virtual control to the second control display state provided by an embodiment of the present invention;
[0024] Figure 4 Flowchart of the method for adjusting an adjustment control to the third control display state provided by an embodiment of the present invention;
[0025] Figure 5 Flowchart of the gear parameter comparison method provided by an embodiment of the present invention;
[0026] Figure 6 Flowchart of the control switch display method provided by an embodiment of the present invention;
[0027] Figure 7 Flowchart of the progress bar display method provided by an embodiment of the present invention;
[0028] Figure 8 Schematic diagram of the central control device provided by an embodiment of the present invention.
[0029] Icons: 1 - Central control device; 2 - Control execution module; 3 - Hardware execution device; 4 - Display screen; 5 - Signal pool; 6 - Virtual control; 11 - Response unit; 12 - Display unit; 13 - Timing unit; 14 - Storage unit. Detailed Embodiments
[0030] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0031] For ease of understanding of this embodiment, the embodiments of the present invention will be introduced in detail below.
[0032] Embodiment 1:
[0033] Figure 1 It is a flowchart of the display method provided by the embodiment of the present invention.
[0034] Figure 2 It is a schematic diagram of the vehicle-mounted system provided by the embodiment of the present invention.
[0035] The display method is applied to the central control device 1 in the vehicle-mounted system. Referring to Figure 2 , the vehicle-mounted system further includes a control execution module 2 and a hardware execution device 3. The control execution module 2 can receive the status signal sent by the central control device 1 to control the working status of the hardware execution device 3, and feedback the actual working status of the hardware execution device 3 to the central control device 1; the central control device 1 includes a display screen 4 and a signal pool 5, and a virtual control 6 capable of adjusting the working status of the hardware execution device 3 is displayed on the display screen 4. Multiple working statuses of the hardware execution device 3 are stored in the signal pool 5, and the actual working status is the most recent one among the multiple working statuses.
[0036] Here, the central control device is used to display and control the virtual control, is responsible for signal interaction with the control execution module, and updates its own display according to the status information returned by the hardware. The central control device is connected to the control execution module through a communication interface.
[0037] The control execution module can be an MCU (Micro Control Unit), which is used to filter the hardware status signals, screen out the signals with status changes and forward them to the central control device; receive the control signals sent by the central control device and forward them to the hardware execution device.
[0038] The hardware execution device is a specific device, which executes the control instructions issued by the central control device and updates its own status, and at the same time feeds back the current status to the central control device through the control execution module.
[0039] The control execution module can obtain the working status sent by the hardware execution device 3 in real time or according to a preset feedback period, and feedback the working status to the central control device when it is determined that the working status is different from the previous working status.
[0040] The hardware execution device continuously sends its actual working status (such as the current switch status or value) to the control execution module. The control execution module is preset with one of two modes to obtain the hardware status:
[0041] Real-time mode: Whenever the hardware status changes, immediately obtain the actual working status of the hardware execution device.
[0042] Periodic mode: Obtain the actual working status of the hardware execution device at a preset feedback period (such as 500 milliseconds or 1 second). Among them, the feedback period, the preset first time threshold, and the preset second time threshold can be the same or different.
[0043] Specifically, if the hardware execution device is a volume regulator, the hardware execution device will send its current volume value (such as the volume is 6); if the hardware execution device is a switch, it will send its current status (such as on or off).
[0044] The control execution module determines whether the actual working status is the same as the previous actual working status.
[0045] Among them, the control execution module compares the actual working status currently sent by the hardware execution device with its previously stored status. If they are the same, it means that the working status of the hardware execution device has not changed, and no feedback is made to avoid redundant information occupying the communication bandwidth. If they are different, it means that the working status of the hardware execution device has changed, and the latest status needs to be notified to the central control device.
[0046] When the control execution module determines that the current hardware status is inconsistent with the previous status, it feeds back the latest actual working status to the central control device through the communication interface for the central control device to update the display status of the virtual control. After receiving this status, the central control device will store the new actual working status in the signal pool.
[0047] Specifically, if the current status of the hardware execution device is that the volume is 6 and the previous status is also that the volume is 6, the control execution module does not need to send this information to the central control device.
[0048] If the current status is updated to the volume is 7, the control execution module recognizes that the status has changed and needs to transfer it to the central control device.
[0049] The control execution module sends this status to the central control device. After receiving it, the central control device stores this status in the signal pool.
[0050] Refer to Figure 1 and the display method includes:
[0051] Step S101: In response to a first state adjustment operation on a virtual control, determine a first hardware adjustment state matching the first state adjustment operation and a first control display state corresponding to the first hardware adjustment state.
[0052] Here, the user operates a virtual control (such as a control switch or an adjustment control) through a software interface, triggering the first state adjustment operation. According to the user's operation, determine the target hardware state (i.e., the first hardware adjustment state) matching the operation. For example, the switch is set to on or the progress bar is adjusted to a certain gear value.
[0053] According to the first hardware adjustment state, generate a corresponding virtual control display state (the first control display state). For example, display the on state or the position change of the progress bar.
[0054] Step S102: Control the virtual control to be displayed according to the first control display state.
[0055] Here, the central control device updates the display effect of the virtual control according to the first control display state. For example, the icon color or text of the switch control changes to indicate on or off. The slider position of the progress bar is adjusted to a new position corresponding to the user's operation. Through timely visual feedback, the user can initially perceive that their operation has been received by the central control device.
[0056] Specifically, when the user clicks the control switch, the central control device displays it in the off state (the first control display state) and determines the first hardware adjustment state to be off, and controls the control switch to display off.
[0057] When the user drags the progress bar to the value 6, determine the first hardware adjustment state to be 6, and the progress bar display is updated in real time to 6.
[0058] Step S103: Send the first hardware adjustment state to the control execution module and start a timing logic to obtain a first timing duration.
[0059] Here, send the first hardware adjustment state (such as on, off, or a certain gear value) as a status signal to the control execution module, and the control execution module then passes the instruction to the hardware execution device. At the same time, start the timing logic to record the duration (the first timing duration) starting from the time point when the signal is sent.
[0060] The purpose of the timing logic is that when there is a hardware feedback delay or an abnormality, the central control device can also actively obtain the actual state of the hardware after the timing duration expires for synchronization display.
[0061] Step S104, when the first timing duration reaches the preset first time threshold, obtain from the signal pool the actual working state of the hardware execution device received from the control execution module; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the one with the most recent time among the multiple working states.
[0062] Here, the preset first time threshold can be set in advance according to the actual situation and can be set to 2s.
[0063] If the timing time reaches the preset first time threshold, the central control device reads the most recent actual working state of the hardware from the signal pool. The signal pool is a cache module used to record multiple working states fed back by the hardware execution device through the control execution module and sort them according to the reception time.
[0064] The central control device selects the actual working state with the most recent time as the reference for the current hardware state.
[0065] In one embodiment, before step S104, the method further includes:
[0066] When the first timing duration does not reach the preset first time threshold, determine whether the received real-time working state sent by the control execution module is the same as the working state of the hardware execution device indicated by the first control display state.
[0067] Here, during the timing process, the central control device continuously monitors the real-time working state sent by the control execution module and compares it with the state displayed by the current virtual control:
[0068] If the real-time working state is the same as the first control display state, it means that the user operation has been synchronized with the hardware state and no additional adjustment is required.
[0069] If the real-time working state is different from the first control display state, continue to wait for the timing to complete or take further synchronization operations.
[0070] If the real-time working state is the same as the working state of the hardware execution device indicated by the first control display state, keep the virtual control displayed according to the first control display state and stop the timing logic.
[0071] Here, when it is detected that the real-time working state is consistent with the first control display state, immediately terminate the timing logic to avoid wasting system resources. The virtual control maintains the current display state without further update to ensure the stability of the interface display.
[0072] Step S105, if the working state of the hardware execution device indicated by the first control display state is inconsistent with the actual working state, adjust the virtual control to the corresponding second control display state according to the actual working state.
[0073] Here, the current display state of the virtual control (the first control display state) is compared with the actual working state of the hardware.
[0074] If the two are inconsistent (for example, the user sets it to on, but the hardware state is still off), it indicates that the hardware state has not been updated correctly.
[0075] Adjust the display state of the virtual control to the second control display state according to the actual working state to synchronize the user interface with the actual state of the hardware.
[0076] Specifically, if the user's operation makes the switch display on, but the hardware is actually not turned on, and within the preset first time threshold, the central control device does not receive the information feedback from the control execution module. After 2 seconds, the central control device obtains the actual state of the hardware as on from the signal pool and controls the control switch to bounce back to the off state.
[0077] If the gear value of the hardware fails to be successfully adjusted to the target value, the slider position displayed on the progress bar will return to the actual gear value of the hardware.
[0078] In one embodiment, referring to Figure 3 , in step S105, the step of adjusting the virtual control to the corresponding second control display state according to the actual working state includes:
[0079] Step S201, send the first hardware adjustment state to the control execution module again and restart the timing logic to update the first timing duration.
[0080] Here, after the first timing logic ends, if the first control display state displayed by the virtual control is inconsistent with the actual working state, the central control device resends the previously determined first hardware adjustment state (such as on, off, or a specific gear value) to the control execution module to ensure that the hardware can receive a clear adjustment instruction and reduce the state out-of-sync caused by communication anomalies.
[0081] While resending the first hardware adjustment state, restart the timing logic to start a new timing duration (the first timing duration).
[0082] The new timing duration may be different from the first time threshold, and the preset second time threshold can be adjusted according to system performance or hardware response time (for example, from 2 seconds to 1 second). By updating the timing logic, the central control device can flexibly adapt to different hardware and communication conditions.
[0083] Step S202, when the updated first timing duration reaches the preset second time threshold, determine whether to receive the real-time working state sent by the control execution module.
[0084] Here, after restarting the timing logic, the central control device continuously monitors the real-time working status of the hardware sent by the control execution module.
[0085] When the timing duration reaches the second time threshold, the central control device checks whether it has successfully received the real-time working status.
[0086] If the real-time working status is received, it is judged whether the current virtual control display status needs to be updated according to this real-time working status. If they are inconsistent, the virtual control display status is immediately adjusted.
[0087] If the real-time working status is not received, it may be due to abnormal hardware communication or delays caused by other external factors. Further processing measures need to be taken to ensure that the display of the virtual control is consistent with the actual status of the hardware.
[0088] Step S203, if the real-time working status is not received, the virtual control is adjusted to the corresponding second control display status according to the actual working status.
[0089] Here, in the case where the real-time working status is not received, the central control device extracts the previously received actual working status of the hardware from the signal pool as a reference. The display effect of the virtual control is updated using this reference status, that is, the virtual control is adjusted to the corresponding second control display status.
[0090] Specifically, if the actual status of the hardware is off, but the virtual control still shows on, it is adjusted to off. If the actual gear value of the hardware is 5, while the virtual control shows 6, it is adjusted to 5. Ensure the synchronization of the display status of the virtual control with the hardware status in case of communication anomalies or signal delays.
[0091] In one embodiment, in step S202, after the step of judging whether the real-time working status sent by the control execution module is received, the method further includes:
[0092] If the real-time working status is received, determine the real-time working status as the actual working status; judge whether the working status of the hardware execution device indicated by the first control display status is consistent with the actual working status; if they are inconsistent, adjust the virtual control to the corresponding second control display status according to the actual working status.
[0093] Here, the real-time working status is the current true status of the hardware execution device fed back by the control execution module.
[0094] After receiving the real-time working status, the central control device determines it as the actual working status and uses it as the only basis for updating the virtual control display status.
[0095] The central control device updates the actual working status to the signal pool to ensure that this status becomes the latest reference in subsequent operations, providing accurate data support for future synchronization and status checks.
[0096] The display status of the first control: The status displayed by the current virtual control on the user interface, usually set based on user operations.
[0097] The actual working status: The real working status of the hardware execution device, obtained through the feedback of the control execution module.
[0098] By comparing the display status of the first control with the actual working status, it is judged whether the display of the virtual control is synchronized with the hardware status.
[0099] If the two are consistent, it means that the display status of the virtual control is accurate and no further adjustment is required.
[0100] If the two are inconsistent, it means that the display status is not synchronized with the actual hardware status, and the display status of the virtual control needs to be adjusted.
[0101] When it is found that the display status of the first control is inconsistent with the actual working status, the display status of the virtual control is immediately updated. The adjusted display status (i.e., the display status of the second control) accurately reflects the actual working status of the hardware execution device.
[0102] After adjustment, the central control device notifies the user that the display status has been updated through methods such as interface prompts or color changes.
[0103] In one embodiment, the virtual control can be a control switch. The control switch is used to control the status of the hardware execution device (such as on / off). The switch control is usually presented in the form of a button on the user interface, displays the current status, and allows the user to click to switch the status.
[0104] When the virtual control is a control switch, after the steps of step S102, the method further includes:
[0105] Adjust the virtual control to an inoperable state.
[0106] Here, after the user operates the switch control, the control display is updated to the display status of the first control. For example, when the user clicks on, the control switch display is immediately updated to the on state. When the user clicks off, the control switch display is immediately updated to the off state.
[0107] After the control updates the display status, the central control system temporarily sets it to an inoperable state, that is, the control becomes gray or invalid, and the user cannot operate it again. This prevents the user from performing multiple rapid operations before the hardware status is updated completely. It avoids the hardware receiving repeated instructions multiple times due to frequent clicks, increasing the system load.
[0108] Specifically, the user clicks on, and the control switch is displayed as on, but because the central control device is waiting for hardware feedback, the control switch temporarily becomes gray, and the user cannot click it again until the central control device completes verification.
[0109] In one embodiment, when the virtual control is a control switch, after the step of not receiving the actual working state, the method further includes:
[0110] Keep virtual controls non-adjustable.
[0111] Here, if the control execution module fails to return to the actual working state within the preset time, the communication between the central control device and the control execution module may fail, or the hardware execution device may fail, and the central control device controls the virtual control to remain in an unadjustable state, and does not allow the user to perform the next operation. This state will continue until the actual working state of the hardware execution device is correctly synchronized by other means, or the central control device and the control execution module are reconnected.
[0112] Keeping the control switch in the unadjustable state is used to prompt the user that there may be a problem with the communication between the current central control device and the hardware execution device, and to prevent the user from mistakenly believing that the operation has been completed. At the same time, it can protect the central control device from further invalid operations.
[0113] In one embodiment, when the virtual control is a control switch, after the step of acquiring from the signal pool the actual working state of the hardware execution device received from the control execution module in step S104, the method further includes:
[0114] If the working state of the hardware execution device indicated by the first control display state is consistent with the actual working state, the virtual control is kept in the first control display state, and the non-adjustable state of the virtual control is released.
[0115] Here, after the timing duration ends or the real-time feedback arrives, the latest status of the hardware execution device is obtained from the signal pool.
[0116] Compare the control display state (first control display state) with the actual working state of the hardware.
[0117] If the two are consistent, it means that the hardware has been successfully updated to the target state set by the user. The display state of the first control is maintained, and the virtual control does not need to adjust the display state, and the current state remains unchanged.
[0118] After confirming that the control display state is consistent with the hardware state, the control switch is released from the non-adjustable state. The control returns to the operable state, allowing the user to interact again.
[0119] The central control device controls the switch of the control to return from the gray state to the highlighted or normal state. The user can observe the change of the control state through the interface.
[0120] In one embodiment, the virtual control can also be an adjustment control. The adjustment control is used to set the working state of the hardware execution device, such as volume adjustment, wind speed adjustment, etc. The adjustment control is presented in the form of a slider or a button, and the user can select a specific gear value.
[0121] The gear values of the adjustment control are arranged in a fixed order (such as 1, 2, 3, 4, 5). Each gear value corresponds to a specific hardware state. For example, gear 1 represents the minimum volume, and gear 5 represents the maximum volume. The change of the gear triggers the hardware adjustment.
[0122] When the virtual control is an adjustment control, in step S101, after the step of determining the first hardware adjustment state matching the first state adjustment operation in response to the first state adjustment operation acting on the virtual control, the method further includes:
[0123] Assign the first control display state to the gear parameter; the initial value of the gear parameter is -1.
[0124] Here, the gear parameter is a temporary variable used to store the current target gear value. The initial value is set to -1, indicating that no specific gear is set currently.
[0125] The central control device assigns the gear value of the first control display state generated by the user operation to the gear parameter, as a reference for subsequent hardware state synchronization and display adjustment. For example, if the user selects gear 3, the gear parameter is updated to 3.
[0126] In one embodiment, referring to Figure 4 , after the step of step S103, the method further includes:
[0127] Step S301, if a second state adjustment operation acting on the virtual control is received, in response to the second state adjustment operation, determine the second hardware adjustment state corresponding to the second state adjustment operation, and the third control display state corresponding to the second hardware adjustment state.
[0128] Here, the second state adjustment operation is that the user operates the adjustment control again when the first operation is not completed, such as quickly sliding to a new gear. This operation will overwrite the previous operation and generate a new hardware adjustment state.
[0129] The central control device calculates a new target gear value according to the user's second operation and generates the second hardware adjustment state.
[0130] The third control display state is to update the display state of the adjustment control (such as moving the slider to a new position) according to the new target gear value.
[0131] Step S302: Update the gear parameter based on the display state of the third control to obtain the updated gear parameter.
[0132] Here, the central control device assigns the gear value of the new display state of the third control to the gear parameter. For example, if the user slides from gear 3 to gear 5, the gear parameter is updated to 5.
[0133] Each user operation will overwrite the previous gear parameter value to ensure that the system records the latest target gear.
[0134] Among them, when the user selects the desired gear value by dragging, it is not a single operation but a continuous operation process. Whenever the slider position changes, a new gear value (such as 1, 2, 3, 4, 5, 6) is generated, and these gear values are assigned to the gear parameter one by one.
[0135] Step S303: Control the virtual control to be displayed according to the display state of the third control.
[0136] Here, the central control device immediately updates the adjustment control to the display state of the third control. The visual feedback of the adjustment control reflects the user's latest operation in real time, improving the user experience and enabling the user to intuitively perceive the operation result.
[0137] Step S304: Send the second hardware adjustment state to the control execution module and update the first timing duration.
[0138] Here, the central control device sends the new second hardware adjustment state to the control execution module to instruct the hardware execution device to update to the latest gear.
[0139] When the user selects the desired gear value by dragging, a hardware adjustment state is generated for each gear value, and each hardware adjustment state is sent to the control execution module one by one in the form of an independent signal. For example, when the user drags the slider from value 1 to value 6, the control execution module will receive 6 independent signals in sequence.
[0140] When quickly dragging the progress bar, each time the central control device generates and sends a new hardware adjustment state, it will trigger the timing logic to update the first timing duration to record the time when the current signal is sent, so as to ensure that the feedback of the hardware execution device is completed within the set time. Among them, if the timing logic has not been started, a new timing task is created; if the timing logic has been started, the timing task is refreshed to ensure effective monitoring of state synchronization during the rapid change process.
[0141] In an embodiment, when the virtual control is an adjustment control, referring to Figure 5 , after the steps of step S104, the method further includes:
[0142] Step S401: Determine whether the gear parameter is consistent with the actual working state.
[0143] Here, the gear parameter records the user's last operation target on the virtual control (such as the target gear value). The central control device compares the value of the gear parameter with the actual working state obtained from the signal pool.
[0144] If the two are consistent, it indicates that the hardware execution device has been successfully adjusted to the target state expected by the user, and no further operation is required.
[0145] If the two are inconsistent, it indicates that the state of the hardware execution device has not been successfully updated, or an exception has occurred during the communication process.
[0146] In step S402, if the gear parameter is inconsistent with the actual working state, it is determined that the display state of the first control corresponding to the gear parameter is inconsistent with the actual working state.
[0147] Here, it is judged whether the display state of the first control corresponding to the gear parameter (target state) is consistent with the actual working state.
[0148] If they are inconsistent, it indicates that the display of the virtual control fails to accurately reflect the current state of the hardware, and the display state of the virtual control is adjusted to ensure that the interface is consistent with the actual operating state of the hardware execution device.
[0149] In an embodiment, when the virtual control is an adjustment control, after the step of step S105, the method further includes:
[0150] Reset the gear parameter to its initial value.
[0151] Here, after the display adjustment is completed, the central control device resets the gear parameter to its initial value of -1 to clear the previous operation record, avoid interfering with subsequent operations, and indicate that the current hardware state is synchronized with the display state and no further tracking adjustment is required.
[0152] After the gear parameter is reset, the central control device enters the initial state and is ready to accept the user's next operation.
[0153] Specifically, the user drags the progress bar to the value 6 (gear parameter = 6), and the actual working state in the signal pool is 5. Comparing the actual working state with the gear parameter, it is found that they are inconsistent, and the hardware adjustment state with the progress bar at the value 6 is sent to the control execution module again.
[0154] If the feedback information sent by the control execution module is not received, the central control device adjusts the display of the virtual control from 6 to 5 based on the actual working state in the signal pool. At the same time, the gear parameter is reset to -1.
[0155] If the feedback information sent by the control execution module is received, the central control device determines the actual working state in the feedback information as the actual working state, compares the updated actual working state with the gear parameters. If they are the same, the display remains unchanged; if they are different, the display of the virtual control is adjusted based on the updated actual working state. At the same time, the gear parameters are reset to -1.
[0156] In a specific application scenario, referring to Figure 6 , when the virtual control is a control switch, its corresponding hardware execution device is an air conditioner, and the control execution module is an MCU, the user clicks the control switch on the central control device of the vehicle system, intending to switch the state of the air conditioner from off to on. Throughout the process, the central control device needs to ensure that the display state of the control is consistent with the actual state of the hardware execution device.
[0157] 1. Central control device:
[0158] The user clicks the control switch, triggering the first state adjustment operation.
[0159] The display state of the control is immediately updated to on (the first control display state), indicating that the switch has been activated, and at the same time, the control switch is grayed out.
[0160] The central control device generates the first hardware adjustment state (on) of the user's operation and sends it to the MCU. At the same time, a 2-second timing logic is started to prepare to verify the hardware state within the preset time.
[0161] 2. MCU receives and processes the signal:
[0162] After receiving the on-state signal sent by the central control device, the MCU immediately forwards the instruction to the air conditioner.
[0163] The air conditioner switches its state according to the received instruction, changing from off to on.
[0164] The air conditioner feeds back its current state (on) to the MCU.
[0165] The MCU determines whether the state signal returned by the air conditioner is the same as the state feedback last time. If it is the same, redundant signal transmission is avoided. If it is different, the latest state signal is sent back to the central control device.
[0166] 3. Signal feedback and verification
[0167] Receive the real-time hardware state signal (on) fed back by the MCU, and determine whether the real-time hardware state signal is consistent with the display state of the control switch.
[0168] If the display state of the control switch (on) is consistent with the feedback state, stop the timing logic.
[0169] If they are inconsistent, continue to receive the signals sent by the MCU until the 2-second timing ends. The central control device obtains the most recent hardware status record from the signal pool as the actual working status.
[0170] If no signal sent by the MCU is received within 2 seconds, start the 2-second timing logic again. If no real-time feedback is received when the 2-second timing ends, the central control device obtains the most recent hardware status record from the signal pool as the actual working status.
[0171] 4. Status adjustment
[0172] If the display status (on) of the control switch is consistent with the feedback status, it is determined that the current display status of the control switch is correct, and the control switch is changed from being grayed out to being highlighted.
[0173] If the actual status (off) in the signal pool is inconsistent with the current display status (on) of the control switch, adjust the display status of the control switch to the actual status (off). At the same time, keep the control switch in the grayed-out state until the actual working status of the air conditioner is correctly synchronized by other means, or the central control device re-establishes a connection with the MCU.
[0174] In a specific application scenario, referring to Figure 7 , when the virtual control is a progress bar, its corresponding hardware execution device is a light, and the control execution module is the MCU, the user drags the progress bar on the central control device of the vehicle system to adjust the light brightness. Throughout the process, the central control device needs to ensure that the control display status is consistent with the actual status of the hardware execution device.
[0175] 1. Central control device:
[0176] The user quickly drags the progress bar on the central control device to adjust the light brightness from gear 1 to gear 6. During the dragging process, 6 first hardware adjustment states are generated and sent in sequence: 1, 2, 3, 4, 5, 6. At the same time, the progress bar is controlled to display the corresponding gear according to the drag.
[0177] Each time a value is generated, immediately update the gear parameter to the current gear value. For example, when adjusted to gear 6, the gear parameter is 6.
[0178] The central control device sends each first hardware adjustment state to the MCU once, and at the same time starts the 2-second timing logic. If the timing logic is already in progress (for example, starting from the target value 1), then refresh the timing and start timing again until 2 seconds.
[0179] 2. The MCU receives the target values in sequence and sends them to the hardware:
[0180] The MCU receives 6 first hardware adjustment states (1, 2, 3, 4, 5, 6) in sequence, and each time sends the received first hardware adjustment state to the hardware execution device.
[0181] After the hardware receives each target value, it adjusts the light brightness in sequence. For example, the hardware gradually updates the brightness in the order of 1→2→3→4→5→6.
[0182] After each hardware adjustment is completed, the current brightness value (1, 2, 3, 4, 5, 6) is fed back to the MCU in sequence.
[0183] 3. The MCU gradually passes the feedback value to the central control device:
[0184] The MCU sends each value (1, 2, 3, 4, 5, 6) feedback from the hardware to the central control device one by one to ensure that the central control device receives the hardware status in a timely manner.
[0185] The central control device receives the feedback values in sequence: 1, 2, 3, 4, 5, 6.
[0186] 4. The central control device compares the signals through the gear parameters:
[0187] The central control device compares each received feedback value with the current gear parameter (6). If the feedback value is not equal to the gear parameter, the value is ignored and the display state of the virtual control is not updated. For example, when the feedback values are 1, 2, 3, 4, 5, which are different from 6, these values are directly discarded.
[0188] If the feedback value is equal to 6, update the progress bar display to the final state 6.
[0189] When the feedback value 6 is received, the timing logic stops and the gear parameter is reset to -1, indicating that the current operation is completed.
[0190] If a feedback value consistent with the gear parameter is not received before the timing ends (for example, the feedback finally gets stuck at 5), the timeout logic is triggered.
[0191] If no signal is received from the MCU when the timing ends, the disconnection logic is triggered.
[0192] 5. Timeout logic processing (if there is a delay)
[0193] If a feedback value consistent with 6 is not received after the timing duration reaches 2 seconds, the central control device obtains the latest hardware status (such as the feedback value 5) from the signal pool.
[0194] Update the actual status value 5 in the signal pool to the progress bar display to ensure that the interface is synchronized with the hardware status. The timing logic stops and the gear parameter is reset to -1, ready to accept a new operation.
[0195] 6. Disconnection logic processing (if there is a connection interruption)
[0196] If no signal is received from the MCU when the timing ends, resend the last first hardware adjustment state (6) to the MCU and restart the timing.
[0197] If no signal is received from the MCU when the timing ends, the central control device obtains the latest hardware state (such as feedback value 1) from the signal pool. Update the actual state value 1 in the signal pool to the progress bar display to ensure that the interface is synchronized with the hardware state. The timing logic stops, and the gear parameter is reset to -1, ready to accept new operations.
[0198] An embodiment of the present invention provides a display method applied to a central control device in a vehicle system. The vehicle system further includes a control execution module and a hardware execution device. The control execution module can receive the status signal sent by the central control device to control the working state of the hardware execution device, and feedback the actual working state of the hardware execution device to the central control device; the central control device includes a display screen and a signal pool, and a virtual control for adjusting the working state of the hardware execution device is displayed on the display screen; the method includes: in response to a first state adjustment operation acting on the virtual control, determining a first hardware adjustment state matching the first state adjustment operation, and a first control display state corresponding to the first hardware adjustment state; controlling the virtual control to be displayed according to the first control display state; sending the first hardware adjustment state to the control execution module and starting a timing logic to obtain a first timing duration; when the first timing duration reaches a preset first time threshold, obtaining from the signal pool the actual working state of the hardware execution device received from the control execution module; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the one with the most recent time among the multiple working states; if the working state of the hardware execution device indicated by the first control display state is inconsistent with the actual working state, adjust the virtual control to the corresponding second control display state according to the actual working state. In this way, the problem of incorrect display of the central control device caused by the failure of the hardware execution device to update the state can be reduced, thereby improving the synchronization between the virtual control display and the state of the hardware execution device, and further improving the accuracy of user operations.
[0199] Embodiment 2:
[0200] Figure 8 Schematic diagram of the central control device provided by the embodiment of the present invention.
[0201] Refer to Figure 2 In, the central control device 1 is applied to a vehicle system. The vehicle system further includes a control execution module 2 and a hardware execution device 3; the central control device 1 includes a display screen 4 and a signal pool 5, and a virtual control 6 for adjusting the working state of the hardware execution device 3 is displayed on the display screen 4.
[0202] Refer to Figure 8 In, the central control device 1 includes:
[0203] A response unit 11, configured to determine a first hardware adjustment state matching the first state adjustment operation acting on the virtual control, and a first control display state corresponding to the first hardware adjustment state, in response to the first state adjustment operation acting on the virtual control.
[0204] A display unit 12, configured to control the virtual control to be displayed according to the first control display state.
[0205] A timing unit 13, configured to send the first hardware adjustment state to the control execution module, and start a timing logic to obtain a first timing duration.
[0206] A storage unit 14, configured to obtain, from the signal pool, the actual working state of the hardware execution device received from the control execution module when the first timing duration reaches a preset first time threshold; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the most recent one among the multiple working states.
[0207] The display unit 12 is further configured to, if the working state of the hardware execution device indicated by the first control display state is inconsistent with the actual working state, adjust the virtual control to a corresponding second control display state according to the actual working state.
[0208] In an embodiment, the display unit 12 is further configured to:
[0209] Send the first hardware adjustment state to the control execution module again, and restart the timing logic to update the first timing duration.
[0210] When the updated first timing duration reaches a preset second time threshold, determine whether a real-time working state sent by the control execution module is received.
[0211] If the real-time working state is not received, adjust the virtual control to a corresponding second control display state according to the actual working state.
[0212] In an embodiment, the display unit 12 is further configured to:
[0213] If the real-time working state is received, determine the real-time working state as the actual working state; determine whether the working state of the hardware execution device indicated by the first control display state is consistent with the actual working state; if not, adjust the virtual control to a corresponding second control display state according to the actual working state.
[0214] In an embodiment, the control execution module can obtain the working state sent by the hardware execution device in real time or according to a preset feedback period, and in the case of determining that the working state is different from the previous working state, feedback the working state to the central control device. The storage unit 14 is further configured to:
[0215] When the first timing duration does not reach the preset first time threshold, it is determined whether the real-time working state received from the control execution module is the same as the working state of the hardware execution device indicated by the first control display state.
[0216] If the real-time working state is the same as the working state of the hardware execution device indicated by the first control display state, the virtual control is kept displayed according to the first control display state, and the timing logic is stopped.
[0217] In one embodiment, when the virtual control is a control switch, the display unit 12 is further used to:
[0218] Adjust the virtual controls to an unadjustable state.
[0219] In one embodiment, the display unit 12 is further configured to:
[0220] If the working state of the hardware execution device indicated by the first control display state is consistent with the actual working state, the virtual control is kept in the first control display state, and the non-adjustable state of the virtual control is released.
[0221] In one embodiment, the virtual control is an adjustment control; a plurality of gear values are sequentially arranged on the adjustment control. When the virtual control is an adjustment control, the display unit 12 is further used to:
[0222] Assign the display state of the first control to the gear parameter; the initial value of the gear parameter is -1.
[0223] In one embodiment, the display unit 12 is further configured to:
[0224] If a second state adjustment operation acting on the virtual control is received, in response to the second state adjustment operation, a second hardware adjustment state corresponding to the second state adjustment operation and a third control display state corresponding to the second hardware adjustment state are determined.
[0225] The gear parameter is updated based on the third control display state to obtain an updated gear parameter.
[0226] The virtual control is controlled to be displayed according to the third control display state.
[0227] The second hardware adjustment state is sent to the control execution module, and the first timing duration is updated.
[0228] In one embodiment, the storage unit 14 is further configured to:
[0229] Determine whether the gear parameters are consistent with the actual working status.
[0230] If the gear parameter is inconsistent with the actual working state, it is determined that the display state of the first control corresponding to the gear parameter is inconsistent with the actual working state.
[0231] An embodiment of the present invention provides a central control device. In this way, the problem of incorrect display of the central control device caused by the failure of the hardware execution device to update the state can be reduced, thereby improving the synchronization between the virtual control display and the state of the hardware execution device, and further improving the accuracy of user operations.
[0232] An embodiment of the present invention further provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the display method in the above embodiment are executed.
[0233] The computer program product provided by the embodiment of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the foregoing method embodiments. For specific implementation, reference can be made to the method embodiments and will not be elaborated herein.
[0234] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.
[0235] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installation", "connection", and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0236] If the function is implemented in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program code.
[0237] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present invention. In addition, the terms "first", "second", "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.
[0238] Finally, it should be noted that the above-described embodiments are only specific embodiments of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions recorded in the foregoing embodiments or can easily conceive of changes, or make equivalent replacements for some of the technical features; and these modifications, changes or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A display method, characterized in that, A central control device applied to a vehicle-mounted system. The vehicle-mounted system further includes a control execution module and a hardware execution device. The control execution module can receive the status signal sent by the central control device to control the working state of the hardware execution device, and the control execution module can obtain the working state sent by the hardware execution device in real time or according to a preset feedback period. And when it is determined that the working state is different from the previous working state, the working state is fed back to the central control device; the central control device includes a display screen and a signal pool. The signal pool is used to record multiple working states fed back by the hardware execution device through the control execution module and sort them according to the reception time. There are virtual controls on the display screen that can adjust the working state of the hardware execution device. After receiving the working state of the hardware execution device fed back by the control execution module, the central control device will store a new working state in the signal pool; The method includes: In response to a first state adjustment operation acting on the virtual control, determine a first hardware adjustment state matching the first state adjustment operation and a first control display state corresponding to the first hardware adjustment state; Control the virtual control to be displayed according to the first control display state; Send the first hardware adjustment state to the control execution module and start a timing logic to obtain a first timing duration; When the first timing duration reaches a preset first time threshold, obtain from the signal pool the actual working state of the hardware execution device received from the control execution module; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the one with the most recent time among the multiple working states; If the working state of the hardware execution device indicated by the first control display state is inconsistent with the actual working state, adjust the virtual control to a corresponding second control display state according to the actual working state; Among them, the step of adjusting the virtual control to a corresponding second control display state according to the actual working state includes: Send the first hardware adjustment state to the control execution module again and restart the timing logic to update the first timing duration; When the updated first timing duration reaches a preset second time threshold, determine whether to receive the real-time working state sent by the control execution module; If the real-time working state is not received, adjust the virtual control to a corresponding second control display state according to the actual working state.
2. The display method according to claim 1, wherein After the step of determining whether to receive the real-time working state sent by the control execution module, the method further includes: If the real-time working state is received, determine the real-time working state as the actual working state; determine whether the working state of the hardware execution device indicated by the first control display state is consistent with the actual working state; if not, adjust the virtual control to a corresponding second control display state according to the actual working state.
3. The display method according to claim 1, wherein Before the step of acquiring, from the signal pool, the actual working state of the hardware execution device received from the control execution module when the first timing duration reaches a preset first time threshold, the method further includes: When the first timing duration does not reach the preset first time threshold, determining whether the received real-time working state sent by the control execution module is the same as the working state of the hardware execution device indicated by the first control display state; If the real-time working state is the same as the working state of the hardware execution device indicated by the first control display state, the virtual control is kept displayed according to the first control display state, and the timing logic is stopped.
4. The display method according to claim 1, wherein The virtual control is a control switch; After the step of controlling the virtual control to be displayed according to the first control display state, the method further includes: The virtual control is adjusted to an unadjustable state.
5. The display method according to claim 4, wherein After the step of acquiring from the signal pool the actual working state of the hardware execution device received from the control execution module, the method further includes: If the working state of the hardware execution device indicated by the first control display state is consistent with the actual working state, the virtual control is kept in the first control display state, and the non-adjustable state of the virtual control is released.
6. The display method according to claim 1, wherein The virtual control is an adjustment control; a plurality of gear values are arranged in sequence on the adjustment control; After the step of determining, in response to a first state adjustment operation acting on the virtual control, a first hardware adjustment state matching the first state adjustment operation and a first control display state corresponding to the first hardware adjustment state, the method further includes: Assign the first control display state to the gear parameter; the initial value of the gear parameter is -1.
7. The display method according to claim 6, wherein After the step of sending the first hardware adjustment state to the control execution module and starting the timing logic to obtain the first timing duration, the method further includes: If a second state adjustment operation acting on the virtual control is received, in response to the second state adjustment operation, determining a second hardware adjustment state corresponding to the second state adjustment operation and a third control display state corresponding to the second hardware adjustment state; Update the gear parameter based on the display state of the third control to obtain an updated gear parameter; Controlling the virtual control to be displayed according to the third control display state; The second hardware adjustment state is sent to the control execution module, and the first timing duration is updated.
8. The display method according to claim 6, wherein After the step of acquiring, from the signal pool, the actual working state of the hardware execution device received from the control execution module when the first timing duration reaches a preset first time threshold, the method further includes: Determining whether the gear parameter is consistent with the actual working state; If the gear parameter is inconsistent with the actual working state, it is determined that the first control display state corresponding to the gear parameter is inconsistent with the actual working state.
9. A central control device, characterized in that, Applied to a vehicle-mounted system, the vehicle-mounted system further includes a control execution module and a hardware execution device. The control execution module can receive the status signal sent by the central control device to control the working state of the hardware execution device, and the control execution module can obtain the working state sent by the hardware execution device in real time or according to a preset feedback cycle. And in the case of determining that the working state is different from the previous working state, the working state is fed back to the central control device; the central control device includes a display screen and a signal pool. The signal pool is used to record multiple working states fed back by the hardware execution device through the control execution module and sort them according to the reception time. A virtual control for adjusting the working state of the hardware execution device is displayed on the display screen. After receiving the working state of the hardware execution device fed back by the control execution module, the central control device will store a new working state in the signal pool; The central control device includes: A response unit, configured to respond to a first state adjustment operation acting on the virtual control, determine a first hardware adjustment state matching the first state adjustment operation, and a first control display state corresponding to the first hardware adjustment state; A display unit, configured to control the virtual control to be displayed according to the first control display state; A timing unit, configured to send the first hardware adjustment state to the control execution module and start a timing logic to obtain a first timing duration; A storage unit, configured to obtain, from the signal pool, the actual working state of the hardware execution device received from the control execution module when the first timing duration reaches a preset first time threshold; multiple working states of the hardware execution device are stored in the signal pool, and the actual working state is the one with the most recent time among the multiple working states; The display unit is further configured to, if the working state of the hardware execution device indicated by the first control display state is inconsistent with the actual working state, adjust the virtual control to a corresponding second control display state according to the actual working state; The display unit is further configured to send the first hardware adjustment state to the control execution module again and restart the timing logic to update the first timing duration; when the updated first timing duration reaches a preset second time threshold, determine whether to receive the real-time working state sent by the control execution module; if the real-time working state is not received, adjust the virtual control to a corresponding second control display state according to the actual working state.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the display method according to any one of claims 1-8 is implemented.
Citation Information
Patent Citations
Search processing method, device and equipment
CN116842245A
Signal processing method and device, storage medium and vehicle
CN117193578A