Control display method and system, electronic equipment and computer storage medium
By responding to the user's touch operation on the first device, transmitting adjustment data to the second device, and detecting the consistency between the execution data and the adjustment data, the problem of data inconsistency after multiple operations by the user is solved, and the user experience and operation real-timeness is improved.
Patent Information
- Application Number
- CN202510250527.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-06-13
AI Technical Summary
When the user operates the adjustment control multiple times quickly and continuously, due to communication delay and other reasons, the adjustment data after the user operates the adjustment control multiple times and the operation data of home appliances, vehicles and other equipment are inconsistent, which affects the user's user experience.
By responding to the user's touch operation on the first device, the adjustment data is sent to the second device and the execution data is received. Check whether the execution data and adjustment data are consistent. If it is consistent, the execution data will be displayed to ensure that the data finally seen by the user is consistent with the actual operating status of the device.
It effectively avoids data inconsistency caused by communication delay, improves user experience, and ensures real-time and accuracy of adjustment control operations.
Smart Images

Figure CN120144037A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of control display, and particularly to a control display method, system, electronic device, and computer storage medium. Background Art
[0002] With the continuous development of the Internet technology field, portable devices such as mobile phones, tablets, and wearable devices have continuously flooded into the market. Due to the advantages of good controllability and convenient carrying of portable devices such as mobile phones, tablets, and wearable devices, more and more manufacturers have carried out communication interconnection between portable devices and devices such as household appliances and vehicles, and developed a function that users can remotely operate the adjustment controls in the portable devices to control the operating states of household appliances, vehicles, etc., thereby improving the convenience of users' lives and the usage experience of the devices.
[0003] However, when the user operates on the portable device to control the operating states of household appliances, vehicles, etc., if the user quickly and continuously operates the adjustment control multiple times, due to reasons such as communication delay, there is a problem that the adjustment data after the user operates the adjustment control multiple times is inconsistent with the operating data of household appliances, vehicles, etc., thus affecting the user's usage experience. Summary of the Invention
[0004] In view of this, this application provides a control display method, system, electronic device, and computer storage medium, which can make the adjustment data after the user operates the adjustment control multiple times consistent with the operating data of household appliances, vehicles, etc., so as to improve the user's usage experience.
[0005] An embodiment of this application provides a control display method, which is applied to a first device. An adjustment control is provided in the first device. The first device is communicatively connected to a second device. The adjustment control is used to adjust the operating state of the second device. The method includes: in response to at least one touch operation on the adjustment control, obtaining at least one data to be adjusted, where one touch operation corresponds to one data to be adjusted; sending first adjustment data to the second device, where the first adjustment data is the data to be adjusted obtained in response to the first touch operation on the adjustment control; receiving first execution data sent by the second device, where the first execution data is execution data corresponding to the adjusted operating state generated by the second device after adjusting its own operating state based on the first adjustment data; detecting whether the first execution data is the same as second adjustment data, where the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the adjustment control; and displaying the first execution data when it is detected that the first execution data is the same as the second adjustment data.
[0006] Compared with the related art, the embodiments of the present application have at least the following advantages: sending the data to be adjusted corresponding to the first touch operation of the adjustment control to the second device, so that the second device can adjust its own operating state based on the received data, ensuring the real-time nature of the second device adjusting its own operating state. At the same time, the second device sends the first execution data after adjusting the operating state to the first device, so that the first device can detect whether the first execution data is the same as the second adjustment data, thereby determining whether the first execution data is consistent with the data of the operating state of the second device that the user finally wants to adjust. When it is detected that the first execution data is the same as the second adjustment data, the first execution data is displayed. Thus, problems such as communication delay are avoided, and after the user operates the adjustment control multiple times, the data displayed on the first device is inconsistent with the data of the actual operating state of the second device.
[0007] In some possible implementation manners, the time when the first adjustment data is sent to the second device is used as the reference time; before receiving the first execution data sent by the second device, it includes: based on the reference time, detecting whether there is the first execution data within a preset timing duration; receiving the first execution data sent by the second device includes: if it is detected that there is the first execution data within the preset timing duration, receiving the first execution data.
[0008] In some possible implementation manners, after detecting whether there is the first execution data within the preset timing duration, it further includes: if it is detected that there is no first execution data within the preset timing duration, displaying the second execution data, where the second execution data is the first execution data last sent by the second device before the reference time.
[0009] In some possible implementation manners, after detecting whether the first execution data is the same as the second adjustment data, it further includes: when it is detected that the first execution data is not the same as the second adjustment data, updating the first adjustment data according to the second adjustment data; sending the updated first adjustment data to the second device until it is detected that the first execution data is the same as the second adjustment data, and then displaying the first execution data.
[0010] In some possible implementation manners, after obtaining at least one data to be adjusted in response to at least one touch operation on the adjustment control, the method further includes: storing the data to be adjusted corresponding to the first touch operation into a preset data container; before sending the first adjustment data to the second device, the method further includes: extracting one data from the data container at a preset interval according to a preset extraction rule; updating the first adjustment data according to the data extracted from the data container; after detecting whether the first execution data is the same as the second adjustment data, the method further includes: when it is detected that the first execution data is different from the second adjustment data, storing the second adjustment data into the data container.
[0011] In some possible implementation manners, the number of touch operations is multiple, and the number of data to be adjusted is multiple; after obtaining at least one data to be adjusted in response to at least one touch operation on the adjustment control, the method further includes: updating preset cache data according to the data to be adjusted corresponding to the first touch operation; sequentially updating the preset cache data according to the other data to be adjusted in the order of the multiple touch operations; before detecting whether the first execution data is the same as the second adjustment data, the method further includes: updating the second adjustment data according to the preset cache data.
[0012] A second aspect of the present application discloses a control display method, which is applied to a second device. The second device is communicatively connected to a first device. An adjustment control is provided in the first device, and the adjustment control is used to adjust the operating state of the second device. The first device is configured to obtain at least one data to be adjusted in response to at least one touch operation on the adjustment control, where one touch operation corresponds to one data to be adjusted; the method includes: receiving first adjustment data sent by the first device, where the first adjustment data is the data to be adjusted obtained in response to the first touch operation on the adjustment control; after adjusting its own operating state based on the first adjustment data, generating first execution data corresponding to the adjusted operating state; sending the first execution data to the first device so that the first device displays the first execution data, where the first device displays the first execution data when it is detected that the first execution data is the same as the second adjustment data, and the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the adjustment control.
[0013] The third aspect of the present application discloses a control display system. The system includes a first device and a second device. The first device is communicatively connected to the second device. An adjustment control is provided in the first device, and the adjustment control is used to adjust the operating state of the second device. The first device is configured to obtain at least one data to be adjusted in response to at least one touch operation on the adjustment control, and send first adjustment data to the second device. Wherein, one touch operation corresponds to one data to be adjusted, and the first adjustment data is the data to be adjusted obtained in response to the first touch operation on the adjustment control. The second device is configured to adjust its own operating state based on the first adjustment data, generate first execution data corresponding to the adjusted operating state, and send the first execution data to the first device. The first device is further configured to detect whether the first execution data is the same as second adjustment data, and display the first execution data when it is detected that the first execution data is the same as the second adjustment data. Wherein, the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the adjustment control.
[0014] The fourth aspect of the present application discloses an electronic device. The electronic device includes a processor and a memory. The memory is used to store instructions, and the processor is used to call the instructions in the memory to cause the electronic device to execute the above-mentioned control display method.
[0015] The fifth aspect of the present application discloses a computer storage medium, including computer instructions. When the computer instructions run on an electronic device, the electronic device is caused to execute the above-mentioned control display method.
[0016] It can be understood that the method in the second aspect, the system in the third aspect, the electronic device in the fourth aspect, and the computer storage medium in the fifth aspect provided above all correspond to the method in the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here. Description of the Drawings
[0017] Figure 1 is a schematic flowchart of a control display method according to an embodiment of the present application.
[0018] Figure 2 is another schematic flowchart of a control display method according to an embodiment of the present application.
[0019] Figure 3 is an interaction schematic diagram of a control display system according to an embodiment of the present application.
[0020] Figure 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application. Detailed implementation manners
[0021] In order to more clearly understand the above objects, features and advantages of the present application, the present application will be described in detail below with reference to the accompanying drawings and specific implementation manners. It should be noted that, without conflict, the implementation manners of the present application and the features in the implementation manners may be combined with each other.
[0022] In the following description, many specific details are set forth in order to fully understand the present application. The described implementation manners are only a part of the implementation manners of the present application, rather than all of the implementation manners.
[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present application belongs. The terms used in the specification of the present application herein are only for the purpose of describing specific implementation manners, and are not intended to limit the present application.
[0024] Further, it should be noted that in this document, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the phrase "comprising a..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.
[0025] In the embodiments of the present application, the words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0026]
[0027] With the continuous development of the Internet technology field, portable devices such as mobile phones, tablet computers, and wearable devices have continuously flooded into the market. Due to the advantages of good controllability and convenient carrying of portable devices such as mobile phones, tablet computers, and wearable devices, more and more manufacturers have connected portable devices with devices such as household appliances and vehicles for communication, and developed a function that can remotely operate the adjustment controls in the portable devices to control the operating states of household appliances, vehicles, etc., thereby improving the convenience of users' lives and the usage experience of the devices.
[0028] For example, the user can directly operate the adjustment control on the mobile phone to control data such as the running duration or temperature of the air conditioner. Or, control data such as the brightness of the light.
[0029] However, when the user operates on the portable device to control the operating states of household appliances, vehicles, etc., if the user quickly and continuously operates the adjustment control multiple times, due to reasons such as communication delay, there is a problem that the adjustment data after the user clicks the adjustment control multiple times is inconsistent with the operating data of household appliances, vehicles, etc., thus affecting the user's usage experience.
[0030] Based on this, the embodiments of the present application provide a control display method. As Figure 1 shown, the control display method is applied to a first device. An adjustment control is provided in the first device. The first device is communicatively connected to a second device. The adjustment control is used to adjust the operating state of the second device. In this embodiment, the adjustment control can be a button, a slider, etc. The first device can be the above-mentioned portable device, and the second device can be a home device, such as a home air conditioner, a water heater, etc. Or, the second device can also be an in-vehicle terminal in a vehicle, and the in-vehicle terminal is used to control the operating states of air conditioners, seats, audio-visual entertainment devices, etc. in the vehicle. The present application does not limit this.
[0031] To facilitate the understanding of the technical solution of the present application, an example is given in which the first device is a mobile phone, the second device is an in-vehicle terminal, the adjustment control is a slider, and the slider is used to adjust the air conditioner temperature in the vehicle through the in-vehicle terminal. Specifically, when the user slides the slider of the adjustment control to the right, the air conditioner temperature in the vehicle is increased. When the user slides the slider of the adjustment control to the left, the air conditioner temperature in the vehicle is decreased.
[0032] The control display method includes the following steps: Step 101, in response to at least one touch operation on the adjustment control, obtain at least one data to be adjusted.
[0033] In some embodiments, one touch operation corresponds to one data to be adjusted. The user can slide the slider of the mobile phone once, and the mobile phone responds to one sliding operation of the slider to obtain one data to be adjusted. For example, the currently displayed data of the slider is 15°C. Each time the user operates the slider once, the increment or decrement step of the displayed data of the slider is 5. That is, after the user slides the slider to the right once, the data to be adjusted is 20°C. Similarly, if the user slides the slider to the left once, the data to be adjusted is 10°C. The present application does not limit the increment or decrement step of the displayed data of the slider, and the increment or decrement step can be 2 or 6, etc.
[0034] In some embodiments, the user can also continuously slide the slider of the mobile phone multiple times, and the mobile phone responds to multiple sliding operations of the slider to obtain multiple data to be adjusted. For example, the currently displayed data of the slider is 15°C. After the user continuously slides the slider to the right three times, the multiple data to be adjusted are 20°C, 25°C, and 30°C.
[0035] Step 102: Send the first adjustment data to the second device, where the first adjustment data is the data to be adjusted obtained in response to the first touch operation on the adjustment control.
[0036] In this embodiment, the first adjustment data is 20°C. Sending 20°C to the vehicle terminal enables the vehicle terminal to adjust the air conditioner temperature to 20°C.
[0037] Step 103: Receive the first execution data sent by the second device, where the first execution data is the execution data corresponding to the adjusted operating state generated by the second device based on the first adjustment data.
[0038] In some embodiments, the time when the first adjustment data is sent to the second device (i.e., the vehicle terminal) is used as the reference time. Based on the reference time, it is detected whether there is first execution data within a preset timing duration. In this embodiment, the preset timing duration can be set to 2000 ms. In other embodiments, the preset timing duration can also be set to 1800 ms or 2200 ms. The present application does not limit this.
[0039] In this embodiment, if it is detected that there is first execution data within the preset timing duration, it proves that the vehicle terminal has adjusted its own operating state based on the first adjustment data, and the mobile phone receives the first execution data.
[0040] Specifically, 20°C is sent to the vehicle terminal, and it is detected whether 20°C exists within the preset timing duration. If it is detected that 20°C exists within the preset timing duration, it proves that the air conditioner temperature in the vehicle has been adjusted to 20°C. At this time, the mobile phone receives the data after the vehicle terminal adjusts the air conditioner temperature in the vehicle, that is, 20°C.
[0041] In other embodiments, if it is detected that there is no first execution data within a preset timing duration, the second execution data is displayed, where the second execution data is the first execution data last sent by the received vehicle-mounted terminal before the reference time.
[0042] It should be noted that if there is no first execution data within the preset timing duration, it proves that the instruction for adjusting the air-conditioning temperature in the vehicle sent by the mobile phone may have failed. To avoid the problem that the mobile phone never receives the first execution data, resulting in inconsistent display data of the slider on the mobile phone and the air-conditioning temperature data in the vehicle, which affects the user experience, the second execution data is directly displayed.
[0043] Step 104: Detect whether the first execution data is the same as the second adjustment data, where the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the adjustment control.
[0044] In some embodiments, when the user slides the slider of the mobile phone once, the mobile phone obtains a data to be adjusted in response to a single sliding operation on the slider. For example, the currently displayed data of the slider is 15°C. After the user slides the slider to the right once, the data to be adjusted is 20°C. At this time, the second adjustment data is 20°C. Detect whether the first execution data is equal to 20°C to determine whether the vehicle-mounted device has completed the adjustment of the air-conditioning temperature in the vehicle.
[0045] In some embodiments, when the user continuously slides the adjustment control of the mobile phone to the right multiple times, the mobile phone obtains multiple data to be adjusted in response to multiple sliding operations on the slider. For example, the currently displayed data of the adjustment control is 15°C. After the user slides the slider to the right multiple times, the multiple data to be adjusted are 20°C, 25°C, and 30°C. At this time, the second adjustment data is 30°C. Detect whether the first execution data is equal to 30°C to determine whether the vehicle-mounted device has completed the adjustment of the air-conditioning temperature in the vehicle.
[0046] Step 105: When it is detected that the first execution data is the same as the second adjustment data, display the first execution data.
[0047] In some embodiments, when it is detected that the first execution data is the same as the second adjustment data, for example, when the user slides the slider of the mobile phone once and it is detected that the first execution data is equal to 20°C, it proves that the vehicle-mounted device has completed the adjustment of the air-conditioning temperature in the vehicle. At this time, to ensure that the data displayed on the mobile phone is the same as the data for adjusting the air-conditioning temperature in the vehicle by the vehicle-mounted device, 20°C is displayed.
[0048] In some embodiments, when it is detected that the first execution data is different from the second adjustment data, for example, when the user continuously slides the slider of the mobile phone multiple times, it is detected that the first execution data is not equal to 30°C, which proves that the data after the in-vehicle device completes the adjustment of the air-conditioning temperature in the vehicle is not 30°C, and is inconsistent with the data of the air-conditioning temperature in the vehicle that the user finally wants to adjust. To solve this problem, the first adjustment data is updated according to the second adjustment data. The updated first adjustment data is sent to the second device until it is detected that the first execution data is the same as the second adjustment data, and then the first execution data is displayed.
[0049] For example, after updating the first adjustment data according to 30°C, the first adjustment data is 30°C. Then the first adjustment data is sent to the in-vehicle terminal again, and steps 103 and 104 are executed until it is detected that the first execution data is the same as 30°C, and then the first execution data is displayed.
[0050] In some embodiments, in order to reduce the signal transmission pressure between the mobile phone and the in-vehicle terminal and make the user's operation of the slider smoother, the adjustment data to be adjusted corresponding to the first touch operation on the slider is stored in a preset data container and a preset cache data, where the length of the data container can be 1. For example, 20°C is stored in the data container, and the data container can be a queue. In other embodiments, when the data container is a queue, the length of the queue can also be greater than 1. Or, the data container can also be an array with a length of 1, and the present application does not limit this. Or, when the data container is an array, the length of the array can also be greater than 1. At this time, preferably, the array is set to have the function of first in first out.
[0051] In this embodiment, when the user operates the slider continuously multiple times, according to the order of multiple touch operations, the preset cache data is updated successively according to other adjustment data to be adjusted. For example, the currently displayed data of the adjustment control is 15°C. After the user slides the slider multiple times, the multiple adjustment data to be adjusted are 20°C, 25°C, and 30°C. The preset cache data is initially 20°C, and then, according to 25°C and 30°C, the preset cache data is updated, and the updated preset cache data is 30°C.
[0052] Furthermore, according to a preset extraction rule, one data in the data container is extracted at every preset interval duration, and the first adjustment data is updated according to the data extracted from the data container. Among them, when the length of the data container is greater than 1, the preset extraction rule is a first in first out data extraction rule. The preset interval duration is less than the preset timing duration, and the preset interval duration can be 200 ms or 300 ms. The present application does not limit the specific value of the preset interval duration.
[0053] Then, after performing step 102 and step 103, extract the preset cache data. Update the second adjustment data according to the data extracted from the preset cache data. At this time, the second adjustment data is 30°C. Then perform step 104. When it is detected that the first execution data and the second adjustment data are different, store the second adjustment data in the data container. For example, store 30°C in the data container. So as to update the first adjustment data according to the data extracted from the data container after a preset interval, and adjust the air conditioner temperature in the vehicle again.
[0054] In this embodiment, on the one hand, a queue with a length of 1 is used to store the data to be adjusted. Data is extracted from the data container every preset interval, and then the data extracted from the data container is sent to the vehicle-mounted terminal, so that the vehicle-mounted terminal can adjust the air conditioner temperature in the vehicle based on the data extracted from the data container. This avoids the situation of accumulation caused by the second device being unable to process it in time due to the user continuously operating the slider multiple times. On the other hand, based on the reference time, a preset timing duration is set to detect whether there is first execution data within the preset timing duration. Thus, it avoids the problem that when the instruction to adjust the air conditioner temperature in the vehicle sent by the mobile phone fails, the mobile phone has not received the first execution data, resulting in the inconsistent display data of the slider on the mobile phone and the data of the air conditioner temperature in the vehicle and affecting the user experience.
[0055] Compared with the related art, the embodiments of the present application have at least the following advantages: On the one hand, the data to be adjusted corresponding to the first touch operation of the adjustment control is sent to the second device, so that the second device can adjust its own operating state based on the received data, ensuring the real-time nature of the second device adjusting its own operating state. On the other hand, the second device sends the first execution data after adjusting the operating state to the first device, so that the first device can detect whether the first execution data and the second adjustment data are the same, thereby determining whether the first execution data is consistent with the data of the operating state of the second device that the user finally wants to adjust. When it is detected that the first execution data and the second adjustment data are the same, display the first execution data. Thus, it avoids the problems of inconsistent data displayed by the first device and the actual operating state data of the second device and data jump due to reasons such as communication delay. The user experience is improved. On the other hand, setting up a data container can avoid the situation of accumulation caused by the second device failing to process it in time when the user continuously operates the adjustment control multiple times, ensuring that the user's operation of the adjustment control is smoother.
[0056] Please refer to Figure 2 , Figure 2 is another flowchart of the control display method provided by an embodiment of the present application. This embodiment is applied to the second device, and the specific process is asFigure 2 As shown, it includes the following steps: Step 201: Receive first adjustment data sent by a first device, where the first adjustment data is adjustment data to be adjusted obtained in response to a first touch operation on an adjustment control.
[0057] Before this step, the mobile phone is used to obtain at least one piece of adjustment data to be adjusted in response to at least one touch operation by the user on a slider. Then, the mobile phone sends the adjustment data to be adjusted when the user first operates the slider to the second device.
[0058] The specific content of this step is the same as that of step 102. To avoid repetition, it will not be elaborated here.
[0059] Step 202: After adjusting its own operating state based on the first adjustment data, generate first execution data corresponding to the adjusted operating state.
[0060] In this embodiment, for example, if the first adjustment data received by the vehicle-mounted terminal is 20°C, the vehicle-mounted terminal will adjust the air-conditioning temperature in the vehicle to 20°C. At this time, the first execution data is 20°C.
[0061] Step 203: Send the first execution data to the first device so that the first device displays the first execution data.
[0062] In some embodiments, after the mobile phone receives the first execution data 20°C sent by the vehicle-mounted terminal, it detects whether the first execution data is second adjustment data. The second adjustment data is adjustment data to be adjusted obtained in response to a last touch operation on the slider.
[0063] Furthermore, when the mobile phone detects that the first execution data is the same as the second adjustment data, it displays the first execution data.
[0064] The other content of this step is the same as that of step 104 and step 105. To avoid repetition, it will not be elaborated here.
[0065] Compared with the related art, the embodiments of the present application have at least the following advantages: On the one hand, the to-be-adjusted data corresponding to the first touch operation of the adjustment control is sent to the second device, enabling the second device to adjust its own operating state based on the received data, ensuring the real-time nature of the second device's adjustment of its own operating state. On the other hand, the second device sends the first execution data after adjusting the operating state to the first device, so that the first device can detect whether the first execution data is the same as the second adjustment data, thereby determining whether the first execution data is consistent with the data of the operating state of the second device that the user ultimately wants to adjust. When it is detected that the first execution data is the same as the second adjustment data, the first execution data is displayed. Thus, problems such as the data displayed on the first device being inconsistent with the actual operating state data of the second device and data jumping due to communication delays and other reasons are avoided. The user experience is improved. On yet another hand, by setting up a data container, it is possible to avoid the situation where the second device fails to process it in a timely manner and accumulates when the user continuously operates the adjustment control multiple times, ensuring that the user's operation of the adjustment control is smoother.
[0066] Please refer to Figure 3 , Figure 3 is an interaction schematic diagram of a control display system provided by an embodiment of the present application. The specific content is as follows: Step S1: The first device obtains at least one piece of to-be-adjusted data in response to at least one touch operation on the adjustment control.
[0067] In some embodiments, one touch operation corresponds to one piece of to-be-adjusted data, and the first adjustment data is the to-be-adjusted data obtained in response to the first touch operation on the slider. When the user slides the slider of the mobile phone once, the mobile phone obtains one piece of to-be-adjusted data in response to one sliding operation on the slider. When the user continuously slides the slider of the mobile phone multiple times, the mobile phone obtains multiple pieces of to-be-adjusted data in response to multiple sliding operations on the slider.
[0068] Step S2: The first device sends the first adjustment data to the second device.
[0069] In some embodiments, the first adjustment data is the to-be-adjusted data obtained in response to the first touch operation on the slider.
[0070] Step S3: After adjusting its own operating state based on the first adjustment data, the second device generates first execution data corresponding to the adjusted operating state.
[0071] For example, if the first adjustment data received by the vehicle-mounted terminal is 20°C, the vehicle-mounted terminal will adjust the air-conditioning temperature in the vehicle to 20°C. At this time, the first execution data is 20°C.
[0072] Step S4: The second device sends the first execution data to the first device.
[0073] For example, the vehicle-mounted terminal sends 20°C to the mobile phone.
[0074] Step S5: The first device detects whether the first execution data is the same as the second adjustment data.
[0075] In some embodiments, the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the slider. The specific content of this step can refer to step 104 as described above and will not be elaborated here.
[0076] Step S6: When the first device detects that the first execution data is the same as the second adjustment data, it displays the first execution data.
[0077] In some embodiments, when it is detected that the first execution data is the same as the second adjustment data, for example, when the user slides the slider of the mobile phone once and it is detected that the first execution data is equal to 20°C, it proves that the vehicle-mounted device has completed the adjustment of the air-conditioning temperature in the vehicle. At this time, in order to ensure that the data displayed on the mobile phone is the same as the data used by the vehicle-mounted device to adjust the air-conditioning temperature in the vehicle, 20°C is displayed.
[0078] In some embodiments, when it is detected that the first execution data is not the same as the second adjustment data, for example, when the user continuously slides the slider of the mobile phone multiple times and it is detected that the first execution data is not equal to 30°C, it proves that the data after the vehicle-mounted device completes the adjustment of the air-conditioning temperature in the vehicle is not 30°C, which is inconsistent with the data of the air-conditioning temperature in the vehicle that the user finally wants to adjust. To solve this problem, the first adjustment data is updated according to the second adjustment data. The updated first adjustment data is sent to the second device until it is detected that the first execution data is the same as the second adjustment data, and then the first execution data is displayed.
[0079] For example, after updating the first adjustment data according to 30°C, the first adjustment data is 30°C. Then the first adjustment data is sent to the vehicle-mounted terminal again, and steps 103 and 104 are executed until it is detected that the first execution data is the same as 30°C, and then the first execution data is displayed.
[0080] Other content of this step can refer to step 105 as described above and will not be elaborated here.
[0081] Compared with the related art, the embodiments of the present application have at least the following advantages: On the one hand, the data to be adjusted corresponding to the first touch operation of the adjustment control is sent to the second device, enabling the second device to adjust its own operating state based on the received data, ensuring the real-time nature of the second device's adjustment of its own operating state. On the other hand, the second device sends the first execution data after adjusting the operating state to the first device, so that the first device can detect whether the first execution data is the same as the second adjustment data, thereby determining whether the first execution data is consistent with the data of the operating state of the second device that the user ultimately wants to adjust. When it is detected that the first execution data is the same as the second adjustment data, the first execution data is displayed. Thus, problems such as the data displayed on the first device being inconsistent with the actual operating state data of the second device and data jumping due to communication delays and other reasons are avoided. The user experience is improved. On the other hand, by setting up a data container, it is possible to avoid the situation where the second device fails to process it in a timely manner and accumulates when the user continuously operates the adjustment control multiple times, ensuring that the user's operation of the adjustment control is smoother.
[0082] Please refer to Figure 4 , which is a schematic diagram of the hardware structure of the electronic device 1000 provided by the embodiment of the present application. As Figure 4 shown, the electronic device 1000 may include a processor 1001 and a memory 1002. The memory 1002 is used to store one or more computer programs 1003. The one or more computer programs 1003 are configured to be executed by the processor 1001. The one or more computer programs 1003 include instructions, and the above instructions can be used to implement the above-mentioned method in the electronic device 1000.
[0083] It can be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 1000. In other embodiments, the electronic device 1000 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements.
[0084] The processor 1001 may include one or more processing units. For example: the processor 1001 may include an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0085] The processor 1001 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 1001 is a cache memory. This memory can store the instructions or data that the processor 1001 has just used or recycled. If the processor 1001 needs to use the instruction or data again, it can directly call it from this memory. This avoids repeated accesses, reduces the waiting time of the processor 1001, and thus improves the efficiency of the system.
[0086] In some embodiments, the processor 1001 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a SIM interface, and / or a USB interface, etc.
[0087] In some embodiments, the processor 1001 is used to execute acceleration schemes such as single instruction multiple data (SIMD) and very long instruction word (VLIW).
[0088] In some embodiments, the memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0089] This embodiment also provides a computer-readable storage medium. Computer instructions are stored in the computer-readable storage medium. When the instructions are run on an electronic device, the electronic device is caused to execute the above-related method steps to implement the control display method in the above embodiments.
[0090] Among them, the electronic device and computer-readable storage medium provided in this embodiment are both used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here.
[0091] In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0092] In several embodiments provided in this application, the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are illustrative. For example, the division of the module or unit is a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be electrical, mechanical or other forms.
[0093] The unit described as a separate component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0094] In addition, in each embodiment of this application, the various functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.
[0095] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.
[0096] As described above, the above are only specific implementation manners of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A control display method, characterized in that: Applied to a first device, the first device is provided with an adjustment control, the first device is communicatively connected to a second device, and the adjustment control is used to adjust the operating state of the second device; the method includes: In response to at least one touch operation on the adjustment control, at least one to-be-adjusted data is obtained, wherein one touch operation corresponds to one to-be-adjusted data; Sending first adjustment data to the second device, wherein the first adjustment data is the data to be adjusted obtained in response to the first touch operation on the adjustment control; receiving first execution data sent by the second device, wherein the first execution data is execution data corresponding to the adjusted running state generated by the second device after the second device adjusts its own running state based on the first adjustment data; detecting whether the first execution data and the second adjustment data are the same, wherein the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the adjustment control; In a case where it is detected that the first execution data and the second adjustment data are the same, the first execution data is displayed.
2. The control display method according to claim 1, characterized in that: taking the time of sending the first adjustment data to the second device as a reference time; Before the receiving the first execution data sent by the second device, the method further comprises: Based on the reference time, detecting whether the first execution data exists within a preset timing duration; The receiving the first execution data sent by the second device includes: If it is detected that the first execution data exists within the preset timing duration, the first execution data is received.
3. The control display method according to claim 2, characterized in that: After detecting whether the first execution data exists within a preset timing duration, the method further includes: If it is detected that the first execution data does not exist within the preset timing duration, the second execution data is displayed, where the second execution data is the first execution data last sent by the second device before the reference time.
4. The control display method according to claim 1, characterized in that: After detecting whether the first execution data and the second adjustment data are the same, the method further includes: When it is detected that the first execution data and the second adjustment data are different, updating the first adjustment data according to the second adjustment data; The updated first adjustment data is sent to the second device until it is detected that the first execution data is the same as the second adjustment data, and then the first execution data is displayed.
5. The control display method according to claim 1, characterized in that: After obtaining at least one to-be-adjusted data in response to at least one touch operation on the adjustment control, the method further includes: storing the to-be-adjusted data corresponding to the first touch operation into a preset data container; Before sending the first adjustment data to the second device, the method further includes: According to a preset extraction rule, extract a piece of data in the data container at a preset interval; updating the first adjustment data according to the data extracted from the data container; After detecting whether the first execution data and the second adjustment data are the same, the method further includes: When it is detected that the first execution data and the second adjustment data are different, the second adjustment data is stored in the data container.
6. The control display method according to claim 5, characterized in that: The number of touch operations is multiple, and the number of data to be adjusted is multiple; after obtaining at least one data to be adjusted in response to at least one touch operation on the adjustment control, the method further includes: updating the preset cache data according to the to-be-adjusted data corresponding to the first touch operation; In accordance with the order of the multiple touch operations, the preset cache data is updated in sequence according to the other data to be adjusted; Before detecting whether the first execution data and the second adjustment data are the same, the method further includes: The second adjustment data is updated according to the preset cache data.
7. A control display method, characterized in that: The method is applied to a second device, the second device is communicatively connected to a first device, the first device is provided with an adjustment control, the adjustment control is used to adjust the running state of the second device, and the first device is used to obtain at least one data to be adjusted in response to at least one touch operation on the adjustment control, wherein one touch operation corresponds to one data to be adjusted; the method comprises: receiving first adjustment data sent by the first device, wherein the first adjustment data is the data to be adjusted obtained in response to the first touch operation on the adjustment control; After adjusting the operating state of the self based on the first adjustment data, generating first execution data corresponding to the adjusted operating state; The first execution data is sent to the first device so that the first device displays the first execution data, wherein the first device displays the first execution data when detecting that the first execution data and second adjustment data are the same, and the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the adjustment control.
8. A control display system, characterized in that: The system includes a first device and a second device, the first device is communicatively connected to the second device, and an adjustment control is provided in the first device, and the adjustment control is used to adjust the operating state of the second device; The first device is used to obtain at least one data to be adjusted in response to at least one touch operation on the adjustment control, and send first adjustment data to the second device, wherein one touch operation corresponds to one data to be adjusted, and the first adjustment data is the data to be adjusted obtained in response to the first touch operation on the adjustment control; The second device is used for adjusting the operating state of the second device based on the first adjustment data, generating first execution data corresponding to the adjusted operating state, and sending the first execution data to the first device; The first device is also used to detect whether the first execution data and the second adjustment data are the same, and to display the first execution data when it is detected that the first execution data and the second adjustment data are the same, wherein the second adjustment data is the data to be adjusted obtained in response to the last touch operation on the adjustment control.
9. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device executes the control display method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, enable the electronic device to execute the control display method according to any one of claims 1 to 7.