Display method and electronic equipment

By adjusting the position of the displayed objects on electronic devices, especially moving frequently accessed objects to the home screen, the problem of search and operation efficiency under the limitation of screen size is solved, improving user experience and device response speed.

CN121680676APending Publication Date: 2026-03-17HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411297010.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

The limited screen size of electronic devices necessitates the use of multiple control pages to display the objects to be operated, resulting in low user search efficiency and high operational complexity.

Method used

By adjusting the position of displayed objects in electronic devices, especially moving frequently operated objects to the homepage, and combining user preferences and operation counts, the display layout can be optimized to improve search and operation efficiency.

Benefits of technology

It improves the efficiency of users in finding and displaying operation objects, simplifies the operation process, and enhances the user experience and device response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121680676A_ABST
    Figure CN121680676A_ABST
Patent Text Reader

Abstract

The invention provides a display method and electronic equipment, in the method, after the electronic equipment receives a control operation executed by a user on a display operation object in a control page located behind, the display operation object can be moved to a home page of a plurality of control pages. Therefore, a user does not need to execute a moving operation on the display operation object, and the electronic equipment can realize position adjustment of the display operation object. And the electronic equipment moves the display operation object for executing the control operation by the user to the home page, so that the efficiency of searching the display operation object by the user subsequently can be improved, and the control efficiency of the user on the electronic equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic device technology, and more particularly to a display method and an electronic device. Background Technology

[0002] To enable the functionality of an electronic device, it can display a control page on its screen, which may contain at least one displayable object. When a user performs a control operation on a displayable object, the electronic device can trigger a corresponding action, thereby enabling the device to perform its function.

[0003] Depending on the functional requirements of a specific application scenario, electronic devices may need to deploy a large number of display objects. However, the screen size of electronic devices is generally limited, and these display objects usually need to be hosted on multiple control pages. This leads to problems such as low efficiency for users to find display objects and high complexity for user operation. Summary of the Invention

[0004] This application provides a display method and an electronic device for adjusting the position of the display operation object displayed on the electronic device, so as to improve the efficiency of the user in finding the display operation object and the efficiency of the user in controlling the electronic device.

[0005] Firstly, embodiments of this application provide a display method, which can be applied to an electronic device, the electronic device including a display screen. Here, "electronic device" can refer to the electronic device itself, or to a processor, module, chip, or chip system within the electronic device that implements the method. The following description uses an electronic device as an example. The method includes the following steps:

[0006] The electronic device displays a first control page among multiple control pages on the display screen; wherein the multiple control pages are arranged in sequence and are displayed sequentially on the display screen by switching, and each control page contains at least one display operation object; the display operation object is used to trigger a corresponding action; the first control page is the home page of the multiple control pages; the electronic device receives a first page switching operation performed by the user and displays a second control page on the display screen; the second control page is located after the first control page; after receiving a first operation performed by the user on a first display operation object in the second control page and triggering an action corresponding to the first display operation object, the first display operation object is moved to the first control page.

[0007] Using this method, after receiving a control operation from a user on a displayed object located on a subsequent control page, the electronic device can move that displayed object to the first page of multiple control pages. This allows the electronic device to adjust the position of the displayed object without requiring the user to manually move it. Furthermore, moving the displayed object to the first page improves the efficiency of subsequent user searches for that object, thereby enhancing the user's control efficiency over the electronic device.

[0008] In one possible design, when the electronic device receives a first instruction from the user to adjust the position of the displayed object, it moves the first displayed object to the first control page.

[0009] This design allows electronic devices to adjust the position of the displayed object according to the user's wishes.

[0010] In one possible design, when the electronic device receives a second instruction from the user that the position of the display object is not adjusted, the first display object is not moved.

[0011] In one possible design, the electronic device can display a notification message on the display screen, the notification message being used to prompt the user whether they agree to adjust the position of the displayed object; based on this, the electronic device receives a first indication that the user agrees to adjust the position of the displayed object, that is, receives a confirmation operation performed by the user on the notification message; the electronic device receives a second indication that the user does not agree to adjust the position of the displayed object, that is, receives a cancellation operation performed by the user on the notification message.

[0012] This design allows electronic devices to obtain user preferences by displaying notification messages.

[0013] In one possible design, the electronic device may activate the position adjustment function of the display object before receiving the first operation performed by the user on the first display object in the second control page; after receiving the second instruction from the user that the user does not agree to adjust the position of the display object, the electronic device may deactivate the position adjustment function of the display object when the number of times the second instruction from the user that the user does not agree to adjust the position of the display object reaches the first threshold.

[0014] With this design, in order to ensure user experience, electronic devices can disable the function of adjusting the position of the displayed object when the user repeatedly disagrees with the adjustment of the position of the displayed object.

[0015] In one possible design, the electronic device can trigger an action corresponding to the first display operation object upon receiving the first operation performed by the user on the first display operation object in the second control page; then, the first display operation object is moved to the first control page, and when the first control page is displayed again on the display screen, the first display operation object is displayed on the first control page.

[0016] This design allows the electronic device to maintain its current user interface after triggering an action corresponding to the first display operation object. When the electronic device displays the first control page again (e.g., automatically based on its own operating logic or triggered by user operation), the first display operation object is displayed on that first control page. This ensures the smoothness of the electronic device's user interface display and avoids the abrupt display of the first control page that could lead to a poor user experience.

[0017] In one possible design, the electronic device moves the first display operation object to the first control page, and the first display operation object can be displayed in the following ways:

[0018] Method 1: Place the first display operation object at the target position in the first control page; the original display operation object at the target position is the same size as the first display operation object;

[0019] Method 2: Adjust the size of the first display operation object and place the resized first display operation object at the target position in the first control page;

[0020] Method 3: Integrate the first display operation object and the second display operation object in the first control page into a display operation object set, and display the display operation object set in the first control page.

[0021] This design allows electronic devices to flexibly display the first operation object after the position has been moved on the first control page.

[0022] In one possible design, the electronic device may also perform the following steps:

[0023] The electronic device receives a second page switching operation performed by the user and displays a third control page on the display screen; the third control page is located after the first control page; after receiving a second operation performed by the user on a third display operation object in the third control page and triggering an action corresponding to the third display operation object, the third display operation object is moved to a fourth control page; wherein, the fourth control page is located before the third control page.

[0024] This design also allows electronic devices to move the objects displayed on other control pages to the front control page (not necessarily the home page).

[0025] In one possible design, the display operation object is a control; the control corresponds to at least one device, and the control is used to control the corresponding device.

[0026] In one possible design, the control is a card.

[0027] In one possible design, when the electronic device triggers an action corresponding to the first display operation object, it can control the first device corresponding to the first display operation object via a power line communication PLC protocol.

[0028] In one possible design, when the electronic device triggers an action corresponding to the first display operation object, it can generate a first control message, which is used to control the first device corresponding to the first display operation object; and send the first control message.

[0029] In one possible design, the electronic device may further perform the following steps: when the first control page is displayed on the screen, it receives a third operation performed by the user on the fourth display operation object in the first control page and generates a second control message; the second control message is used to control the second device corresponding to the fourth display operation object; the electronic device may send the first control message in the following manner: send the second control message first, and then send the first control message.

[0030] To improve the response speed of devices corresponding to user control operations on the display operation objects on the home page of a PLC system, electronic devices can prioritize the transmission of control messages generated by the user performing control operations on the display operation objects on the home page.

[0031] In one possible design, the electronic device can move the first display operation object to the first control page through the following steps:

[0032] The electronic device updates the operation count value of the first display operation object according to the first operation; the electronic device sorts the multiple target display operation objects in the multiple control pages according to the size of the operation count value to obtain a first display operation object queue; the electronic device determines the first display operation object that needs to be moved forward and the target movement position of the first display operation object according to the first display operation object queue and the actual position queue of the multiple target display operation objects; wherein, the actual position queue is obtained by sorting the multiple target display operation objects according to the order of their actual positions in the multiple control pages; the target movement position of the first display operation object is located within the first control page; the electronic device moves the first display operation object to the first control page according to the target movement position of the first display operation object.

[0033] Through this design, the display objects in an electronic device can be arranged according to the user's usage frequency (i.e., operation count value), so that the higher the user's usage frequency, the higher the position of the display object. Optionally, embodiments of this application may consider that multiple display objects located on the same control page are in the same position, or may consider that the positions of multiple display objects on the same control page have a sequential order; this application does not limit this.

[0034] In one possible design, the electronic device can further determine a fifth display operation object that needs to be moved forward, and a target movement position of the fifth display operation object, based on the first display operation object queue and the actual position queue; wherein the target movement position of the fifth display operation object is located within a fifth control page, and the fifth control page is located before the original control page of the fifth display operation object; and the fifth display operation object is moved to the fifth control page based on the target movement position of the fifth display operation object.

[0035] With this design, the electronic device can identify one or more display objects that need to be moved forward, and move these display objects.

[0036] In one possible design, the plurality of target display operation objects are display operation objects in the plurality of control pages that match the size of the first display operation object; or the plurality of target display operation objects are all display operation objects in the plurality of control pages.

[0037] In one possible design, the electronic device may also perform the following steps:

[0038] The electronic device receives a third page switching operation performed by the user and displays a sixth control page on the display screen; the sixth control page is located after the first control page; it receives a movement operation performed by the user on a sixth display operation object in the sixth control page and moves the sixth display operation object to a seventh control page; the seventh control page is different from the sixth control page; it updates the operation count value of the sixth display operation object according to the operation count value of the display operation object adjacent to the moved sixth display operation object.

[0039] To ensure that the position of the displayed object matches the user's actual needs and avoids frequent movement that could reduce the user experience, when the user edits the control page and moves the position of the displayed object, the electronic device can also update the operation count value of the moved displayed object based on the operation count value of the displayed object adjacent to the moved object.

[0040] In one possible design, before the electronic device moves the first display operation object to the first control page, the electronic device may also update a first operation statistic based on the first operation; wherein the first operation statistic is the number of times the user performs an operation on the display operation objects in the plurality of control pages, or the number of times the user performs an operation on a display operation object that matches the size of the first display operation object; and the first operation statistic is determined to be greater than or equal to a second threshold.

[0041] To avoid frequent adjustments to the position of displayed objects by electronic devices, the control device can set an operation count threshold (i.e., the second count threshold). When the number of operations performed by the user on a type of displayed object or all displayed objects reaches the operation count threshold, the electronic device initiates the position adjustment process for the displayed object.

[0042] Secondly, embodiments of this application provide a display method that can be applied to a control device in a PLC system. The control device includes a display screen. Here, "control device" can refer to the control device itself, or to a processor, module, chip, or chip system within the control device that implements the method. The following description uses a control device as an example. The method includes the following steps:

[0043] The control device displays the first control page of a plurality of control pages on the display screen; wherein the plurality of control pages are arranged in sequence, and at least one card is deployed in sequence in each control page, each card corresponds to at least one PLC device in the PLC system, and any card is used to control the corresponding PLC device;

[0044] The control device receives a first operation performed by the user on a first card in the first control page; wherein the first operation is used to trigger control of the PLC device corresponding to the first card; a notification message is displayed on the screen, the notification message being used to prompt the user whether they agree to adjust the card position; when a second operation is received from the user on the notification message, the target card is moved forward to a first target position in the first target control page; the second operation is used to indicate to the user that they agree to adjust the card position; or the target card is moved forward to a first target position in the first target control page; wherein the target card includes the first card or a card with the same style as the first card; the first target control page is the same as or different from the original control page where the target card is located; when the first target control page is the same as the original control page, the first target position is located before the original position of the target card on the original control page; when the first target control page is different from the original control page, the first target control page is located before the original control page.

[0045] Using this method, after receiving a control operation from the user on the first card in the currently displayed first control page, the control device can display a notification message prompting the user to agree to adjust the card's position. Based on the user's preference, the device can then move the first card or a card of similar design forward; or directly move the first card or a card of similar design forward. This method eliminates the need for the user to manually move the cards, enabling automatic card position adjustment and improving both the efficiency of card searching and user control of the device.

[0046] In one possible design, the control device displays a notification message on the screen through the following steps:

[0047] The control device updates the operation count value of the first card according to the first operation; sorts multiple identical cards with the same style as the first card in the multiple control pages according to the size of the operation count value to obtain a first card queue; matches the first card queue with the actual position queue of the multiple identical cards, and displays the notification message on the display screen when the first card queue is different from the actual position queue; wherein, the actual position queue is obtained by sorting the multiple identical cards according to the order of their actual positions in the multiple control pages.

[0048] In one possible design, the control device can also determine the target card that needs to be moved forward, and the target movement position of the target card, based on the first card queue and the actual position queue; the target movement position is the first target position of the first target control page.

[0049] In one possible design, the notification message includes the identification information of the target card and / or the target card's target movement location information.

[0050] In one possible design, the control device can move the target card forward to the first target position in the first target control page through the following steps:

[0051] The control device updates the operation count value of the first card according to the first operation; sorts multiple identical cards with the same style as the first card in the multiple control pages according to the size of the operation count value to obtain a first card queue; determines the target card to be moved forward and the target movement position of the target card according to the first card queue and the actual position queue of the multiple identical cards; wherein, the actual position queue is obtained by sorting the multiple identical cards according to the order of their actual positions in the multiple control pages; the target movement position is the first target position of the first target control page; and moves the target card forward to the first target position in the first target control page according to the target movement position of the target card.

[0052] In one possible design, the control device may also perform the following steps:

[0053] The control device displays a second control page among the plurality of control pages on the display screen; receives a third operation performed by the user on a second card in the second control page, and moves the second card to a second target position in a second target control page; the third operation is the operation of moving the position of the second card; and updates the operation count value of the second card according to the operation count value of the similar card adjacent to the second card after the second card is moved.

[0054] In one possible design, before moving the target card forward to the first target position on the first target control page, the control device may also update the first card operation count based on the first operation; wherein, the first card operation count is the number of times the user performs an operation on the first card, or the number of times the user performs an operation on a card with the same style as the first card, or the number of times the user performs an operation on cards in the plurality of control pages; it is determined that the first card operation count is greater than or equal to a first count threshold; in addition, after moving the target card forward to the first target position on the first target control page, the first card operation count is reset to zero.

[0055] In one possible design, when the control device receives a fourth operation performed by the user on the notification message, it does not adjust the position of the cards in the plurality of control pages; the fourth operation is used to indicate disagreement with adjusting the card position.

[0056] In one possible design, before receiving the first operation performed by the user on the first card in the first control page, the control device may activate the card position adjustment function of the control device; after receiving the fourth operation performed by the user on the notification message, the control device may also update the number of times the user has refused card position adjustment according to the fourth operation; when the number of times the user has refused card position adjustment is greater than or equal to the second threshold, the card position adjustment function of the control device is turned off and the number of times the user has refused card position adjustment is cleared to zero.

[0057] In one possible design, the control device may also perform the following steps:

[0058] A third control page is displayed on the screen; the third control page is one of the first N control pages among the plurality of control pages, where N is a positive integer; a fifth operation performed by the user on the third card in the third control page is received; wherein the fifth operation is used to trigger control of the PLC device corresponding to the third card; a first control message is generated according to the fifth operation; the first control message is used to instruct the PLC host in the PLC system to control the PLC device corresponding to the third card; the first control message is stored in a first queue; wherein the priority of the first queue is higher than the priority of the second queue, and the second queue is used to store control messages generated by the user performing operations on cards in other control pages; the other control pages are control pages other than the set control page among the plurality of control pages; according to the priority of the first queue and the priority of the second queue, the first control message in the first queue is sent to the PLC host, and the control message in the second queue is sent to the PLC host.

[0059] In one possible design, the control device may store the first control message in the first queue when it determines that the second control message does not exist in the second queue; wherein the second control message is used to instruct the PLC host to control the PLC device corresponding to the third card.

[0060] In one possible design, the control device can send the first control message in the first queue to the PLC host through the following steps:

[0061] When the first control message carries a scene control instruction, the first control message is sent to the PLC host; or when the first control message carries a subsystem control instruction, the first control message is compressed and then sent to the PLC host.

[0062] Thirdly, embodiments of this application provide an electronic device including a display screen, one or more processors, and a memory; the display screen is used to display a user interface, the one or more processors are coupled to the memory, and the one or more processors are used to read a computer program stored in the memory to execute the method provided in any aspect. The computer program code includes computer instructions.

[0063] Fourthly, embodiments of this application provide a chip including a processor coupled to a memory. The processor is used to call computer program instructions stored in the memory during runtime to implement the methods provided in any of the above aspects. Optionally, the chip may further include components such as a memory, a communication interface, and a power supply module. The memory is used to store computer programs; the communication interface is used to receive and send data; and the power supply module is used to supply power to the processor.

[0064] Fifthly, embodiments of this application provide a computer storage medium storing computer program instructions that, when executed on an electronic device, cause the computer to perform the methods provided in any of the above aspects.

[0065] Sixthly, embodiments of this application provide a computer program product, the computer program product including computer program instructions; when the computer program instructions are executed on a computer, the computer causes the computer to perform the method provided in any one aspect.

[0066] The technical effects that can be achieved by any of the second to fifth aspects mentioned above can be described with reference to the technical effects that can be achieved by any possible design in the first aspect mentioned above. The repetition will not be discussed. Attached Figure Description

[0067] Figure 1 A schematic diagram of a PLC system provided in an embodiment of this application;

[0068] Figure 2 An example diagram of the control page of a control device provided in an embodiment of this application;

[0069] Figure 3 A structural diagram of a control device provided in an embodiment of this application;

[0070] Figure 4 A flowchart illustrating a display method provided in an embodiment of this application;

[0071] Figure 5A An example diagram of a user interface for displaying notification messages in a control device, provided in an embodiment of this application;

[0072] Figure 5B An example diagram of the control page of a control device provided in an embodiment of this application;

[0073] Figure 5C An example diagram of the control page of a control device provided in an embodiment of this application;

[0074] Figure 5D An example diagram of the control page of a control device provided in an embodiment of this application;

[0075] Figure 5E An example diagram of the control page of a control device provided in an embodiment of this application;

[0076] Figure 5F An example diagram of the control page of a control device provided in an embodiment of this application;

[0077] Figure 6 A flowchart illustrating another display method provided in an embodiment of this application;

[0078] Figure 7 A flowchart illustrating an example of a display method provided in this application embodiment;

[0079] Figure 8 This is a structural diagram of a control device provided in an embodiment of this application. Detailed Implementation

[0080] This application provides a display method and an electronic device for adjusting the position of a display object on the electronic device, thereby improving the efficiency of the user in locating the display object and the efficiency of the user in controlling the electronic device. The method and device are based on the same technical concept. Since the principles by which the method and device solve problems are similar, the implementation of the device and method can be referred to each other, and repeated details will not be elaborated further.

[0081] The following explanations of some terms used in this application are provided to facilitate understanding by those skilled in the art.

[0082] 1) Electronic equipment, which is a device or apparatus that has data connectivity, data calculation and processing functions, and a display screen.

[0083] For example, the electronic device in this application can be a tablet computer, personal computer (PC), laptop computer, computer, netbook, in-vehicle computer, in-vehicle terminal, smartphone, smart wearable device (e.g., smartwatch, smart bracelet, smart glasses, smart helmet, etc.), personal digital assistant (PDA), smart home device (e.g., smart TV, smart mirror, smart speaker, etc.), etc., and can also be a control and management device with a display screen, server, etc. in various communication systems. This application does not limit the specific form of the electronic device.

[0084] Electronic devices can perform their functions and provide services to users through an operating system they run. For example, the electronic device may, but is not limited to, running an operating system... Or other operating systems.

[0085] 2) Display operation objects are objects that can be displayed on the screen of an electronic device and controlled by the user. Display operation objects are used to trigger corresponding actions by the electronic device. That is, when the electronic device receives a user's control operation on a certain display operation object, the electronic device executes the action corresponding to that display operation object.

[0086] In this embodiment, a control operation is an operation performed by a user on a displayed object to trigger an action corresponding to that object. This application is not limited to the specific form of the control operation; for example, a control operation can be a single click, repeated clicks, dragging, or other operations performed on the displayed object.

[0087] For example, the objects to be displayed may include, but are not limited to, application icons, file icons, folder icons, controls, etc.

[0088] 3) PLC technology is a power line carrier modulation technology. The transmitting end can use a modulation module to modulate the data to be transmitted into a high-frequency signal and send it to the power line. The receiving end uses a demodulation module to separate the high-frequency signal from the power line and demodulate it to recover the original data.

[0089] Because PLC technology is characterized by low implementation cost, wide coverage, flexibility and convenience, it can be used to achieve networking and communication in scenarios where power lines are laid.

[0090] 4) A PLC system consists of multiple devices that communicate using PLC technology. Optionally, depending on the function, a PLC system may include, but is not limited to, the following types of PLC devices:

[0091] A PLC control device is a distributed intelligent control device used to control other PLC devices in a PLC system. A PLC system can contain one or more PLC control devices distributed in different physical locations for easy user operation.

[0092] The PLC host is used to manage other PLC devices in the PLC system. As the gateway of the PLC system, the PLC host can collect control messages from PLC control devices and execute the control instructions carried in the control messages, thereby performing corresponding control on the PLC devices that need to be controlled.

[0093] A PLC sub-device is a PLC device that is mounted to the PLC host and connected to the PLC system through the PLC host's proxy. The PLC sub-device is located on the terminal side of the PLC system and is used to provide specific functions to the user.

[0094] It should also be noted that this application does not limit the names of the aforementioned PLC devices. For example, a PLC control device can also be called a control device, control panel, or controller. A PLC host can also be called a PLC gateway, gateway, host, or master device. A PLC slave device can also be called a PLC slave device, PLC terminal, or PLC end node.

[0095] In the following description of this application, the PLC control device will be referred to simply as the control device.

[0096] 5) Scenarios are defined to realize the user's needs in real-world scenarios and to enable a series of actions to be controlled by several PLC devices.

[0097] For example, in a whole-house smart home scenario, the PLC system can define scenarios such as "coming home," "leaving home," "meeting guests," and "entertainment." For instance, controlling the "coming home" scenario could include actions such as opening the curtains, turning on the entryway light, and turning on the living room light.

[0098] 6) Controls are components that have user interface functionality or visual representation. At least one control can be placed within a user interface, window, or page. Any control can nest other controls, or can display visual information such as images or text.

[0099] In some scenarios, the controls displayed on a page can be referred to as cards.

[0100] It should be understood that in the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0101] In the embodiments of this application, descriptions such as "when," "under the circumstances," "if," and "if" all refer to the control device making corresponding actions under certain objective circumstances. They are not time limits, nor do they require the control device to make judgments during implementation, nor do they imply any other limitations.

[0102] It should be noted that in this application, "used for indicating" can include both direct and indirect indication. When describing information as being used to indicate A, it can include whether the information directly or indirectly indicates A, but does not necessarily mean that the information contains A. Taking first information used to indicate first content as an example, the first information can contain the first content, or a part of the first content, or an identifier, index, indicator, etc., of the first content, and can also contain algorithms, calculation parameters, etc., for determining the first content. This application does not limit the manner of "indication".

[0103] In this application, "containing / including A" may be equivalent to "containing / including information A". Information A is used to indicate A.

[0104] In addition, it should be understood that in the description of this application, the words "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance or order.

[0105] The solutions provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings.

[0106] This application provides a communication system in which electronic devices can implement the display method provided in the embodiments of this application. Reference is made below. Figure 1 The communication system provided in the embodiments of this application will be described.

[0107] In specific application scenarios where power lines are laid, PLC technology can be used to deploy applications such as... Figure 1 The PLC system shown is an example. PLC technology can be applied to smart grids, home automation or whole-house intelligence, smart meters, photovoltaic communication, smart communities, urban lighting, traffic light control, telemetry, and mobile transportation equipment (cars, trains, ships, airplanes, etc.), where corresponding PLC systems can be built.

[0108] like Figure 1 As shown, the PLC system includes control devices (control devices 1, 2, and 3 in the figure), a PLC host (PLC host A in the figure), and at least one PLC sub-device mounted on the PLC host (PLC sub-devices a to e in the figure). The control devices in the PLC system are connected to the PLC host via power lines, and the PLC host is also connected to each PLC sub-device via power lines.

[0109] Optionally, one or more control devices can be deployed in a PLC system. Multiple control devices can be set up in different locations, allowing users to control PLC sub-devices in the PLC system from different locations.

[0110] In this embodiment, each control device has a display screen for displaying user interfaces such as control pages. Each control page can deploy at least one control to provide specific functions to the user. In this embodiment, these controls will be referred to as cards. Each card can correspond to at least one PLC sub-device in the PLC system for controlling the actions of these PLC sub-devices. For example, in a whole-house smart home scenario, the control page displayed by the control device and the cards within the control page can be referenced. Figure 2 As shown.

[0111] Since control devices primarily achieve specific control functions through user-operated cards on the control page, they can also be called control panels.

[0112] Optionally, one or more PLC hosts can be deployed in the PLC system. Each PLC host manages at least one PLC sub-device connected to it. As the gateway of the PLC system, the PLC host can receive control messages from the control devices and execute the specific control instructions in the control messages, thereby controlling the PLC sub-devices that need to be controlled.

[0113] PLC sub-devices are mounted to the PLC host and connected to the PLC system via the PLC host's proxy. Located on the terminal side of the PLC system, these sub-devices provide specific functions to the user. Examples of PLC sub-devices include PLC switches, PLC lights, PLC curtains, and smart sensors.

[0114] Optionally, based on the function and type of the PLC sub-devices, a PLC host connected to a PLC sub-device can be divided into multiple PLC subsystems, such as PLC subsystem 1 and PLC subsystem 2 in the figure.

[0115] It should also be noted that, in order to meet user needs in real-world scenarios, facilitate user operation, and improve user experience, the PLC system can define at least one scenario. For example, in a whole-house smart home scenario, the PLC system can define scenarios such as "coming home," "leaving home," "meeting guests," and "audio-visual entertainment." During scenario control, the PLC system can control the actions of several PLC sub-devices.

[0116] In the aforementioned PLC system, users can perform operations on the control device according to their current needs, thereby switching control pages and selecting cards that meet their current requirements. After the user performs a control operation on a target card, the control device generates a control message based on that target card and sends the control message to the PLC host. This control message instructs the control of at least one target PLC sub-device corresponding to the target card. The PLC host parses the control instructions from the control message and executes them, thereby controlling at least one target PLC sub-device corresponding to the target card.

[0117] In some embodiments, the transmission bandwidth of a PLC system is typically within 500kbps. Because of this limited bandwidth, the PLC system needs to implement flow control for data transmission to prevent congestion caused by too many messages being transmitted on the link simultaneously. For example, a PLC device may be limited to sending 1-3 messages per second. Based on this, the PLC device can use a queuing system to implement flow control; that is, when multiple messages need to be sent at the same time, they are entered into a queue to wait.

[0118] It should also be noted that, Figure 1The communication system (i.e., PLC system) shown is an example and does not limit the communication system or application scenario to which the method provided in this application is applicable. The technical solutions provided in this application can be applied to electronic devices in various communication systems, such as: the 5th Generation (5G) communication system (also known as the new radio (NR) system), the 4th Generation (4G) communication system (also known as the Long Term Evolution (LTE) communication system), Wi-Fi systems, vehicle to everything (V2X), LTE-vehicle (LTE-V), vehicle to vehicle (V2V), vehicle networking, machine-type communications (MTC), internet of things (IoT), LTE-machine to machine (LTE-M), machine to machine (M2M), and worldwide interoperability for microwave access (WiMAX) communication systems. This application does not limit these applications. The 5G communication system may include non-standalone (NSA) systems and / or standalone (SA) systems. Furthermore, the technical solutions provided in this application can also be applied to future communication systems, such as the 6th generation (6G) communication system, etc., and this application does not limit them.

[0119] Furthermore, the method provided in this application embodiment can also be applied to electronic devices that can be deployed independently without forming a communication system.

[0120] The display method provided in this application can be applied to various electronic devices with displays. This electronic device can form a communication system with other devices, such as... Figure 1 The PLC system shown can also be an electronic device that does not form a communication system; this application does not limit this to either. The following examples illustrate this. Figure 1 Taking the control equipment in the PLC system shown as an example, the structure of the electronic equipment is explained. Figure 3 This illustrates one possible structure for the control device. (See also...) Figure 3As shown, the control device 300 includes components such as a processor 301, a memory 302, a display screen 303, an input unit 304, a communication unit 305, an audio module 306, a power management module 307, and a sensor 308. The following section will discuss these components in conjunction with... Figure 3 The various components of the control device 300 are described in detail.

[0121] The processor 301 is the control center of the control device 300. It connects various components through various interfaces and lines, and executes various functions of the control device 300 by running or executing software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, thereby realizing multiple services of the control device 300.

[0122] Optionally, processor 301 may include one or more processing units, such as a central processing unit (CPU), an application processor (AP), a graphics processing unit (GPU), an image signal processor (ISP), a controller, a digital signal processor (DSP), a baseband processor, etc. These different processing units may be independent devices or integrated into one or more processors.

[0123] The processor 301 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 301 is a cache memory. This memory can store instructions or data that the processor 301 has just used or is recurring. If the processor 301 needs to use the instruction or data again, it can directly retrieve it from this memory. By providing memory, the number of times the processor 301 accesses data from the memory 302 can be reduced, thus reducing the processor 301's waiting time and improving the efficiency of the processor 301.

[0124] The memory 302 can be used to store computer executable program code, which includes instructions. The processor 301 executes various functions of the control device 300 and performs data processing by running the instructions stored in the memory 302. The memory 302 may include a program storage area and a data storage area. The program storage area may store the operating system, program code for at least one application, etc. The operating system may include, but is not limited to, […]. The program storage area can store computer programs for implementing the display method provided in the embodiments of this application. When the processor 301 executes these computer programs, the control device 300 can execute the method. The data storage area can store data created during the operation of the control device 300.

[0125] In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0126] Display screen 303 is used to display various user interfaces. Display screen 303 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. Display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). In this embodiment, the display screen 303 of the control device 300 can display a control page containing at least one card, etc.

[0127] The input unit 304 can be used to receive character information and signals input by the user. Optionally, the input unit 304 may include a touch panel and buttons. The touch panel, also known as a touch screen, can collect touch operations performed by the user on or near it, generate corresponding touch information, and send it to the processor 301, so that the processor 301 can generate and execute commands corresponding to the touch information. The touch panel can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave.

[0128] It should be noted that the touch panel can cover the display screen 303. Although in the figure, the touch panel and the display screen 303 are two independent components to realize the input and output functions of the control device 300, in the embodiments of this application, the touch panel and the display screen 303 can be integrated (i.e., touch display screen) to realize the input and output functions of the control device 300.

[0129] The communication unit 305 is used to implement the communication function of the control device 300, enabling data communication with other devices. The communication unit 305 includes a PLC chip, allowing the control device 300 to connect to a PLC system and communicate with the PLC host via the PLC protocol. The PLC chip is connected to a PLC interface, which is used to connect to the power line. The PLC chip may integrate a modulation module and a demodulation module, or a modem, to convert the data to be transmitted into a high-frequency signal for transmission to the power line, and to demodulate the high-frequency signal separated from the power line back into data. Optionally, the communication unit 305 may also include other related accessories for the PLC chip, such as filters and transformers.

[0130] Optionally, the communication unit 305 may also include a wireless communication module, thereby providing solutions for wireless communication applications on control devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and other wireless communication technologies.

[0131] Audio circuitry 306 (which may include a speaker, microphone, etc.) provides an audio interface between the user and the control device 300.

[0132] The power management module 307 is used to provide power to the control device 300.

[0133] The control device 300 may also include one or more sensors 308, such as temperature sensors and light sensors. The control device 300 can perform various functions based on real-time sensor data collected by the sensors 308. It should be noted that a touch panel can also be called a touch sensor.

[0134] It should be understood that Figure 3The control device 300 shown is merely an example and does not constitute a limitation on the electronic devices to which the embodiments of this application apply. In practical applications, electronic devices may have more or fewer components than those shown in the figures, may combine two or more components, or may have different component configurations. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0135] To enable the functionality of electronic devices, a control page containing the objects to be manipulated can be displayed on the screen. When a user performs a control operation on a particular object, the electronic device can trigger the corresponding action, thereby achieving the device's function. Depending on the functional requirements of a specific application scenario, electronic devices may need to deploy a large number of objects to be manipulated. However, the screen size of electronic devices is generally limited, and these objects typically require multiple control pages. If the object a user needs to find is located on a later control page, the user must perform a series of operations to switch between control pages, leading to low efficiency in finding objects and high complexity in user operation.

[0136] Let's continue with the example of control devices in a PLC system. For example... Figure 2 As shown, the control device in a PLC system can display a control page containing at least one card on the screen, thereby providing control functions to the user. The user can select the target card on the control page to operate according to actual needs. Due to the limited size of the control device's display screen (such as the commonly seen 4-inch, 6-inch, and 10-inch screens), when the PLC system has a large number of PLC sub-devices, various types of PLC sub-devices, multiple functions of PLC sub-devices, numerous PLC subsystems, and many defined scenarios, the control device needs to deploy a large number of cards. This necessitates the control device using multiple control pages to support these cards. For example... Figure 2 As shown, these control pages need to be arranged in order. If the target card that the user needs is listed later, the user will need to perform a series of operations to find the control page containing that target card, resulting in low efficiency in finding the card and high complexity in user operations.

[0137] Even though users can edit cards by dragging them, the limited screen size makes it easy for touch issues to occur when dragging cards across pages. In summary, sorting cards across pages is prone to failure, resulting in a poor user experience.

[0138] To adjust the position of the displayed operation object on an electronic device, thereby improving the efficiency of user locating the displayed operation object and the efficiency of user operation of the electronic device, embodiments of this application provide a display method. This method can be applied to electronic devices; for a description of the electronic device, please refer to the above-described terminology and the above description of electronic devices in a communication system, which will not be repeated here.

[0139] The following is combined with Figure 4 The methods provided in the embodiments of this application will be described.

[0140] S401: The electronic device displays the first control page of a plurality of control pages on the display screen. The plurality of control pages are arranged sequentially and are displayed on the display screen in a switching manner. Each control page contains at least one display operation object; the display operation object is used to trigger a corresponding action; the first control page is the homepage of the plurality of control pages.

[0141] For example Figure 2 As shown in the diagram, multiple control pages of an electronic device can be arranged and deployed in sequence. When the electronic device starts up, enters working mode from sleep mode, or has not received user operation within a set period of time, the control page (i.e., the home page) at the forefront of these multiple control pages will be displayed by default. Users can switch the control pages displayed by the electronic device using page switching operations.

[0142] This application's embodiments do not limit the specific form of page switching operations. Continuing with... Figure 2 For example, a user can swipe left on the current control page to switch to the next control page; or swipe right on the current control page to switch to the previous control page. In some implementations, users can swipe up or down to switch to the next or previous control page. In other implementations, each control page may contain one or more page control controls for switching between control pages, and users can swipe or click on these controls to switch to the next or previous control page.

[0143] Each display action object is used to trigger a corresponding action. In some implementations, the display action object is an icon of an application, file, or folder, which triggers the electronic device to open the application, file, or folder. In other implementations, the display action object is a control, which triggers the electronic device to perform a corresponding action. For example, Figure 2Each card in the control page shown corresponds to at least one PLC sub-device in the PLC system and is used to control that corresponding PLC sub-device. It should be noted that a card may correspond to a single PLC sub-device, a PLC sub-device in a PLC subsystem, a PLC sub-device in multiple PLC subsystems, or multiple PLC sub-devices involved in a scenario; this application does not limit this.

[0144] S402: The electronic device receives a first page switching operation from the user and displays a second control page on the screen. The second control page is located after the first control page.

[0145] Through S402, the electronic device can switch control pages and display the control page following the home page via the user's page switching operation. Since a single page switching operation typically switches to the previous or next control page adjacent to the current control page, the first page switching operation can include one or more page switching operations depending on the positional relationship between the second and first control pages. Subsequent second and third page switching operations are similar to the first page switching operation and will not be described further.

[0146] S403: After receiving a first operation performed by the user on a first display operation object in the second control page and triggering an action corresponding to the first display operation object, the electronic device moves the first display operation object to the first control page.

[0147] The first operation is a control operation performed by the user on the first display operation object, which is used to trigger the electronic device to perform the action corresponding to the first display operation object.

[0148] Through steps S401-S403 above, after receiving a control operation from the user on a displayed object located on a subsequent control page, the electronic device can move that displayed object to the first page of multiple control pages. In this way, the electronic device can adjust the position of the displayed object without the user needing to perform a movement operation. Furthermore, moving the displayed object to the first page improves the efficiency of subsequent user searches for that object, thereby enhancing the user's control efficiency over the electronic device.

[0149] In the embodiments of this application, the electronic device may, but is not limited to, adopt the following implementation methods to execute S403.

[0150] Implementation method 1: The electronic device can adjust the position of the displayed object according to the user's wishes, that is:

[0151] When a user's first instruction to adjust the position of the displayed object is received, the first displayed object is moved to the first control page;

[0152] When a second instruction is received from the user that they do not agree to adjust the position of the display object, the first display object is not moved.

[0153] In this embodiment, the electronic device can obtain the user's wishes in a variety of ways.

[0154] For example, electronic devices can display a notification message on the screen to prompt the user whether they agree to adjust the position of the displayed object. See [link / reference] Figure 5A As shown. The electronic device receives a confirmation operation performed by the user on the notification message, i.e., receives the first instruction; the electronic device receives a cancellation operation performed by the user on the notification message, i.e., receives the second instruction. For example, the electronic device may display a notification window on the screen, which may contain at least one control, through which the user performs a confirmation or cancellation operation.

[0155] Optionally, the notification message may also include information about the display object to be moved (i.e., the first display object), and / or the target movement location of the display object (information from the first control page), so that the user can refer to this information to decide whether to agree to adjust the position of the display object, facilitating user decision-making and operation. For example, the notification message may be as follows: Figure 5A As shown in (a) and (b) in the figure.

[0156] This embodiment provides a method for adjusting the position of a displayed object in an electronic device according to the user's wishes. When the user repeatedly disagrees with adjusting the position of the displayed object, the electronic device can disable its own display object position adjustment function to ensure a good user experience. Specifically, before receiving the first instruction, the electronic device activates its own display object position adjustment function; after receiving a second instruction from the user disagreeing with adjusting the position of the displayed object, when the number of times the second instruction is received reaches a first threshold, the electronic device disables its display object position adjustment function, and no further notification messages are displayed, nor is the position of the displayed object actively moved.

[0157] Optionally, the electronic device can maintain a user rejection count to count the number of times a user disagrees with adjusting the position of a displayed object. Each time the electronic device receives a second instruction from the user disagreeing with adjusting the position of a displayed object, it updates the user rejection count by one. When the user rejection count exceeds the initial threshold, the electronic device disables the function to adjust the position of the displayed object.

[0158] Implementation Method 2: When the electronic device displays the first control page again on the display screen, it displays the first display operation object on the first control page. The specific process of the electronic device executing S403 is as follows:

[0159] The electronic device receives a first operation performed by the user on a first display operation object in the second control page, triggering an action corresponding to the first display operation object. Then, the electronic device moves the first display operation object to the first control page, and when the first control page is displayed again on the screen, the first display operation object is displayed on the first control page. That is, after the electronic device triggers the action corresponding to the first display operation object, it can maintain the current user interface; when the electronic device displays the first control page again (e.g., automatically based on its own operating logic or triggered by user operation), the first display operation object is displayed on that first control page.

[0160] This implementation method ensures the smoothness of the user interface display on the electronic device and avoids the phenomenon of poor user experience caused by abruptly displaying the first control page.

[0161] Implementation Method 3: When an electronic device moves a first display operation object to a first control page, it can display the first display operation object in the following ways:

[0162] Method 1: The electronic device places the first display operation object at a target position in the first control page; the original display operation object at the target position matches the size of the first display operation object. Size matching includes: identical shape, and identical width and height.

[0163] Optionally, the electronic device can move the original display object at the target location to another matching position on the first or next control page. During the movement, the electronic device can also move other display objects involved to avoid the target location.

[0164] by Figure 2 Taking the control page shown as an example, when the control device moves the "Homecoming Scene" card in the second control page forward to the original position of the "Weather" card on the home page, the control device also moves the "Weather" card, the "All Lights On" card, and the "All Lights Off" card backward to avoid them. Figure 5B As shown.

[0165] Method 1 allows electronic devices to move the position of the displayed object without affecting the overall layout of the control page.

[0166] Method 2: The electronic device adjusts the size of the first display object and places the resized first display object at the target position on the first control page.

[0167] When the target location is an empty location, the size of the first display operation object can be adjusted according to the size of the target location.

[0168] When the original display object exists at the target location, the electronic device can move the original display object aside. Optionally, the electronic device can also resize the original display object; or the electronic device can resize both the original display object and the first display object to display them simultaneously at the target location. Figure 2 Taking the control page shown as an example, when the control device moves the "Homecoming Scene" card in the second control page forward to the original position of the "Bedroom Lights Off" card in the first page, the size of the "Homecoming Scene" card is adjusted to match the original size of the "Bedroom Lights Off" card, and the size of the "Bedroom Lights Off" card that needs to be avoided is adjusted to match the size of the "Weather" card. The "Weather" card, the "Lights On" card, and the "Lights Off" card are all moved backward to avoid them. Figure 5C As shown. For example, when the control device moves the "Homecoming Scene" card from the second control page to the original position of the "Weather" card on the home page, the control device adjusts the size of both the "Homecoming Scene" and "Weather" cards so that both cards are displayed simultaneously at that position, as shown. Figure 5D As shown.

[0169] It should be noted that when adjusting the size of the object being displayed, the electronic device can also adjust the size of the content displayed within that object, thereby ensuring the display effect of the object and the user experience.

[0170] Method 3: The electronic device integrates the first display operation object and the second display operation object in the first control page into a display operation object set, and displays the display operation object set in the first control page.

[0171] When a user needs to adjust the display operation objects in the set of display operation objects, they can first perform a control operation on the set of display operation objects, thereby triggering the electronic device to display the display operation objects in the set of display operation objects.

[0172] Continue with Figure 2Taking the control page shown as an example, when the control device moves the "Homecoming Scene" card from the second control page to the original position of the "Weather" card on the home page, the control device integrates the "Homecoming Scene" card and the "Weather" card into a card set (e.g., a card folder), such as... Figure 5E As shown. When a user needs to perform control operations on the cards in this card set, the user can click on the card set. The control device can then display the "Home Scene" card and the "Weather" card from the card set, so that subsequent control operations can be performed on these cards, such as... Figure 5F As shown.

[0173] The above describes the process by which an electronic device moves a first display operation object located on a second control page to the first control page (home page). Furthermore, using the method provided in this application embodiment, the electronic device can also move display operation objects from other control pages to a previous control page. The following explanation uses a third display operation object on a third control page as an example:

[0174] Step 1-1: The electronic device receives the second page switching operation performed by the user and displays the third control page on the screen. The third control page is located after the first control page.

[0175] Steps 1-2: After receiving the second operation performed by the user on the third display operation object in the third control page and triggering the action corresponding to the third display operation object, the electronic device moves the third display operation object to the fourth control page; wherein the fourth control page is located before the third control page. Optionally, the fourth control page may be the first control page (home page), or it may not be the first control page; this application does not limit this.

[0176] For a detailed description of steps 1-1 and 1-2, please refer to the description of S402-S403 above, which will not be repeated here.

[0177] In this embodiment, when the electronic device receives a control operation performed by the user on any display object, the electronic device triggers an action corresponding to that display object. The action corresponding to the display object can be specifically set according to the actual application scenario, the type of display object, etc. For example, in... Figure 1 In the PLC system shown, when the control device receives a control operation performed by the user on any card, the control device controls the first PLC sub-device corresponding to that card through the PLC protocol.

[0178] When the electronic device in this application embodiment is a control device in a PLC system, when S403 is executed and the electronic device triggers an action corresponding to the first display operation object, the first device corresponding to the first display operation object can be controlled through the PLC protocol.

[0179] Optionally, the electronic device can generate a first control message based on the first operation. This first control message is used to control the first device (e.g., a PLC sub-device in a PLC system) corresponding to the first display operation object; the electronic device sends the first control message. The electronic device can send the first control message to the PLC host connected to the first device in the PLC system.

[0180] In one implementation, to improve the response speed of the device corresponding to the display operation object on the homepage in the PLC system to user control operations, the electronic device can prioritize the transmission of control messages generated by the user performing control operations on the display operation object on the homepage. In this embodiment, the electronic device can achieve this through the following steps:

[0181] Step 2-1: When the first control page is displayed on the screen, receive the third operation performed by the user on the fourth display operation object in the first control page, and generate a second control message. The second control message is used to control the second device corresponding to the fourth display operation object.

[0182] Step 2-2: When there are first control messages and second control messages to be sent in the electronic device, the electronic device may send the second control message first, and then send the first control message.

[0183] Since the original control page of the first display operation object when the first control message is generated is the second control page (not the homepage), while the fourth display operation object that triggers the generation of the second control message is located on the first control page (homepage), the electronic device can send the second control message first, thereby reducing the latency of the control message generated by the display operation object located on the homepage, and thus improving the response speed of the device corresponding to the display operation object located on the homepage to the user's control operation.

[0184] Of course, after the electronic device moves the first display operation object to the first control page, if the electronic device receives a control operation performed by the user on the first display operation object again and generates a third control message, the electronic device will prioritize transmitting the third control message.

[0185] Optionally, the electronic device can maintain two message queues with different priorities. The electronic device can send messages in each message queue according to a first-in, first-out (FIFO) principle. During step 2-2, the electronic device can input the second control message into the high-priority message queue and the first control message into the low-priority message queue. The electronic device can prioritize transmitting control messages located in the high-priority message queue, and then transmit control messages located in the low-priority message queue.

[0186] Optionally, to avoid control message generation and transmission order discrepancies due to different message queue priorities when two message queues contain control messages controlling the same PLC sub-device, potentially leading to control logic conflicts or control failures of the PLC sub-device, the electronic device can first check if a target control message exists in the low-priority message queue before inputting the second control message into the high-priority message queue. If the target control message is not found in the low-priority message queue, the second control message is stored in the high-priority message queue. The target control message is used to control the second device (i.e., the second device corresponding to the fourth display operation object). The electronic device inputs the second control message into the low-priority message queue only when it determines that a target control message exists there. This ensures the stability and reliability of the PLC system.

[0187] In one embodiment, during the execution of S403, the electronic device can move the first display operation object to the first control page in the following manner:

[0188] Step 3-1: The electronic device updates the operation count value of the first displayed operation object according to the first operation;

[0189] Step 3-2: The electronic device sorts multiple target display operation objects in multiple control pages according to the size of the operation count value to obtain the first display operation object queue;

[0190] Step 3-3: The electronic device determines the first display operation object that needs to be moved forward, and the target movement position of the first display operation object, based on the first display operation object queue and the actual position queue of multiple target display operation objects; wherein, the actual position queue is obtained by sorting multiple target display operation objects according to the order of their actual positions on multiple control pages; the target movement position of the first display operation object is located within the first control page;

[0191] Steps 3-4: The electronic device moves the first display operation object to the first control page according to the target movement position of the first display operation object.

[0192] After adjusting the display operation objects using this method, the display operation objects in the electronic device can be arranged according to the user's usage frequency (i.e., operation count value), so that the higher the user's usage frequency, the higher the position of the display operation object. Optionally, embodiments of this application may consider that multiple display operation objects located on the same control page are in the same position, or may consider that the positions of multiple display operation objects on the same control page have a sequential order; this application does not limit this.

[0193] This method allows electronic devices to count the frequency of user interaction (i.e., operation count) for each displayed object and adjust the position of the displayed object based on user usage. The higher the user interaction frequency, the higher the position of the displayed object. This improves the efficiency of users in finding frequently used displayed objects, making it more convenient for users and increasing the efficiency of user operation of electronic devices. It achieves the effect of on-demand adjustment of the layout of displayed objects in electronic devices, keeping them fresh and new with frequent use, and making them faster the more they are used.

[0194] It should be noted that, according to the methods provided in steps 3-1 to 3-4 above, when moving the position of the display operation object, the electronic device can determine one or more display operation objects that need to be moved forward. That is, in implementation, the method may further include the following steps:

[0195] Step 3-3-1: The electronic device determines the fifth display operation object that needs to be moved forward, and the target movement position of the fifth display operation object, based on the first display operation object queue and the actual position queue; wherein, the target movement position of the fifth display operation object is located within the fifth control page, and the fifth control page is located before the original control page of the fifth display operation object;

[0196] Step 3-4-1: The electronic device moves the fifth display operation object to the fifth control page according to the target movement position of the fifth display operation object.

[0197] Using this method, electronic devices can simultaneously move the positions of multiple display objects.

[0198] Optionally, in this embodiment, the multiple target display operation objects can be display operation objects in multiple control pages that match the size of the first display operation object. In this way, the electronic device can adjust the position of display operation objects of the same style (matching size) without affecting the overall layout of the electronic device's control page. Based on this, the solution provided in this application embodiment can be applied to scenarios where the control page of an electronic device has display operation objects of various styles, ensuring layout flexibility and the flexibility of implementing this solution.

[0199] Optionally, the multiple target display objects can be all display objects across multiple control pages. This allows the electronic device to adjust the position of all display objects, regardless of their size.

[0200] It should be noted that in the method provided in this embodiment, the electronic device needs to maintain operation count values ​​for multiple display operation objects so that the position of the display operation objects can be moved according to the operation count values, achieving the effect that the more frequently the user uses the display operation object, the more prominent its position becomes. That is, when the electronic device receives a control operation performed by the user on any display operation object, the control device increments the operation count value of that display operation object by one. Optionally, when the electronic device disables the position adjustment function of the display operation objects, the electronic device resets the operation count values ​​of the multiple display operation objects it maintains to zero.

[0201] Therefore, to ensure that the position of the displayed operation object matches the user's actual needs and avoid frequent movement that would degrade the user experience, when the user edits the control page and moves the position of the displayed operation object, the electronic device can also update the operation count value of the moved displayed operation object based on the operation count values ​​of the displayed operation objects adjacent to the moved object. The specific steps are as follows:

[0202] Step 4-1: The electronic device receives the user's third page switching operation and displays the sixth control page on the screen; the sixth control page is located after the first control page.

[0203] Step 4-2: The electronic device receives the user's movement operation on the sixth display operation object in the sixth control page, and moves the sixth display operation object to the seventh control page; the seventh control page is different from the sixth control page.

[0204] Step 4-3: The electronic device updates the operation count value of the sixth display operation object based on the operation count value of the display operation object adjacent to the moved sixth display operation object.

[0205] It should be noted that when multiple target display operation objects in the actual position queue in S3-3 are display operation objects whose size matches that of the first display operation object, the adjacent display operation object should also be a display operation object that is adjacent to the sixth display operation object and whose size matches that of the sixth display operation object; when multiple target display operation objects in the actual position queue in S3-3 are all display operation objects in multiple control pages, the adjacent display operation object should also be a display operation object that is adjacent to the sixth display operation object (the size of the display operation object is not limited).

[0206] Optionally, in step 4-3, the electronic device may, but is not limited to, update the operation count value of the sixth display operation object in the following manner:

[0207] Method 1: The electronic device updates the operation count value of the sixth display operation object to the operation count value of the adjacent display operation object of the same type.

[0208] Method 2: When the sixth display operation object has two adjacent display operation objects, the electronic device updates the operation count value of the sixth display operation object based on the median of the operation count values ​​of the two adjacent display operation objects. For example, when the median is an integer, the electronic device updates the operation count value of the sixth display operation object to the median; when the median is not an integer, the electronic device updates the operation count value of the sixth display operation object to an integer value that is rounded up or down from the median.

[0209] When the sixth display operation object is located at the beginning of multiple similar display operation objects, and the sixth display operation object has a subsequent adjacent display operation object, the electronic device updates the operation count value of the sixth display operation object to the operation count value of the subsequent adjacent display operation object plus one.

[0210] When the sixth display operation object is located at the end of multiple display operation objects, and the sixth display operation object has a preceding adjacent display operation object, the electronic device updates the operation count value of the sixth display operation object to the operation count value of the preceding adjacent display operation object minus one. It should be noted that, since the operation count value of a display operation object cannot be negative, when the operation count value of the preceding adjacent similar display operation object is 0, the electronic device also updates the operation count value of the sixth display operation object to 0.

[0211] In one implementation, to avoid frequent adjustments to the position of the displayed object by the electronic device, the control device can set an operation count threshold. When the number of operations performed by the user on a type of displayed object or all displayed objects reaches the operation count threshold, the electronic device initiates the position adjustment process for the displayed object. Optionally, before moving the first displayed object to the first control page, the electronic device further includes the following steps:

[0212] The electronic device updates the first operation statistics value according to the first operation; wherein the first operation statistics value is the number of times the user performs operations on display operation objects in multiple control pages, or the number of times the user performs operations on display operation objects that match the size of the first display operation object;

[0213] When the electronic device determines that the first operation statistic is greater than or equal to the second threshold, it initiates the movement of the first display operation object to the first control page.

[0214] Optionally, after the electronic device moves the first display operation object, the first operation statistics value can also be cleared to zero.

[0215] In summary, this application provides a display method. In this method, after receiving a control operation from a user on a displayed object located on a subsequent control page, the electronic device can move the displayed object to the first page of multiple control pages. This eliminates the need for the user to manually move the displayed object; the electronic device can adjust its position. Furthermore, moving the displayed object to the first page improves the efficiency of subsequent user searches for that object, thereby enhancing the user's control efficiency over the electronic device.

[0216] based on Figure 4 The method provided in the illustrated embodiments is for adjusting such Figure 1 The PLC system shown displays the card's location on the control device to improve the efficiency of card retrieval and user operation of the PLC device. This application also provides a display method. This method can be applied to... Figure 1 The control devices in the PLC system shown are described below. The following will first explain several concepts involved in the embodiments of this application, following their naming conventions.

[0217] The first operation is the control operation performed by the user on the first card;

[0218] The second operation is a user action performed on the notification message displayed by the control device, used to instruct the user to agree to adjust the card position;

[0219] The third operation is used to move the position of the second card;

[0220] The fourth operation is a user action performed on the notification message displayed by the control device, used to indicate to the user that they do not agree to the adjustment of the card position;

[0221] The fifth operation is the control operation performed by the user on the third card.

[0222] The following is combined with Figure 6 The methods provided in the embodiments of this application will be described.

[0223] S601: The control device displays the first control page of a plurality of control pages on the display screen. These multiple control pages are arranged sequentially, with each card corresponding to at least one PLC device in the PLC system. Any card is used to control the corresponding PLC device.

[0224] like Figure 2As shown, the multiple control pages of the control device are arranged and deployed in sequence. The control device can switch between control pages sequentially according to the user's page switching operation. When the control device starts up or enters working state from sleep mode, it will display the control page (i.e., the home page) that is first among the multiple control pages by default.

[0225] For example, continue with Figure 2 For example, a user can swipe left on the current control page to switch to the next control page; or swipe right on the current control page to switch to the previous control page. In some implementations, users can swipe up or down to switch to the next or previous control page. In still other implementations, each control page may contain one or more control components for scrolling up and down, and users can swipe or click on these control components to switch to the next or previous control page.

[0226] Each card in the aforementioned multiple control pages corresponds to at least one PLC device (e.g., a PLC sub-device) in the PLC system, and is used to control the corresponding PLC device. It should be noted that a card may correspond to a single PLC sub-device, a PLC sub-device within a PLC subsystem, a PLC sub-device within multiple PLC subsystems, or multiple PLC sub-devices involved in a scenario; this application does not impose any limitations on this.

[0227] Continue with Figure 2 For example, the first card on the first control page corresponds to the PLC device "Dining Room Light 1," and this card is used to control the switching on and off of Dining Room Light 1. The "Living Room Lights All On" card in the second row of the first column on the first control page corresponds to the PLC device "All Living Room Lights," and this card is used to control the switching on and off of all living room lights. These living room lights can be a single PLC subsystem. The "Homecoming Scene" card on the second control page corresponds to the PLC devices "Curtains," "Entrance Light," and "Living Room Light," and this card is used to turn on the curtains, entrance light, and living room light.

[0228] Optionally, the cards in each control page can also be arranged and deployed in sequence.

[0229] S602: The control device receives a first operation performed by the user on the first card in the first control page. This first operation triggers control of the PLC device corresponding to the first card.

[0230] After receiving the first operation, the control device can also generate a corresponding control message based on the first operation and send it to the PLC host connected to the control device. The PLC host then controls the PLC device corresponding to the first card based on the control message.

[0231] This application embodiment does not limit the specific form of the user operation performed by the user on any card to trigger control of the PLC device corresponding to that card. For example, the first operation in S602 can be a single-click operation, a double-click operation, a drag operation, etc., on the first card.

[0232] This application provides two schemes for adjusting card position, and the control device can adopt one of them. In specific implementation, the control device can select one of the schemes based on factors such as user experience and user settings. The two schemes are described below.

[0233] Option 1: When it is necessary to adjust the card position, the control device adjusts the card position according to the user's wishes. Option 1 includes the following steps S603-S604b.

[0234] S603: The control device displays a notification message on the screen, which prompts the user whether they agree to adjust the card position.

[0235] With S603, when the control device determines that the card position needs to be adjusted, it can prompt the user by displaying a notification message.

[0236] In one implementation, the control device can determine that the card position needs to be adjusted and display a notification message by following these steps:

[0237] A1: The control device updates the operation count value of the first card according to the first operation, that is, increments the operation count value of the first card by one.

[0238] A2: The control device sorts multiple identical cards with the same style as the first card in multiple control pages according to the size of the operation count value, to obtain a first card queue. Among these multiple identical cards, the first card is included.

[0239] A3: The control device matches the first card queue with the actual location queue of the multiple identical cards. When the first card queue differs from the actual location queue, a notification message is displayed on the screen. The actual location queue is obtained by sorting the multiple identical cards according to their actual positions on multiple control pages.

[0240] In this embodiment, the control device can maintain an operation count for each card to track the number of times a user performs control operations on each card, i.e., the user's usage frequency. When the first card queue differs from the actual position queue, it indicates that among the multiple identical cards, there are cards with lower user usage frequency preceding those with higher user usage frequency. The card positions can be adjusted according to user usage frequency from highest to lowest. Based on this, the control device can display a notification message to prompt the user to adjust the card positions.

[0241] S604a: When the second operation performed by the user on the notification message is received, the control device moves the target card forward to a first target position on the first target control page; the second operation is used to indicate to the user that they agree to adjust the card position. The target card includes the first card or a card with the same style as the first card; the first target control page may be the same as or different from the original control page where the target card is located. When the first target control page is the same as the original control page, the first target position is located before the original position of the target card on the original control page; when the first target control page is different from the original control page, the first target control page is located before the original control page.

[0242] Optionally, when the control device executes S603, or after the control device receives the second operation, the control device may determine the target card that needs to be moved forward, and the target movement position of the target card, through the following steps:

[0243] A4: The control device determines the target card that needs to be moved forward, and the target movement position of the target card, based on the first card queue and the actual position queue; wherein, the target movement position is the first target position of the first target control page.

[0244] Since the target movement position is determined based on the first card queue and the actual position queue, the target movement position matches the style of the target card. That is, the original card located at the target movement position has the same style as the target card.

[0245] It should be noted that in step A4, the number of target cards that need to be moved forward can be one or more.

[0246] Example 1: The first card queue is "card a, card b, card c, card d", while the actual position queue is "card b, card a, card c, card d". According to the principle that the higher the user's frequency of use, the earlier the card position, it can be determined that the card that needs to be moved forward is card a, and the target moving position of card a is the original actual position of card b.

[0247] Example 2: The first card queue is "card a, card b, card c, card d", while the actual position queue is "card b, card d, card a, card c". According to the principle that the higher the user frequency, the earlier the card position, the cards that need to be moved forward are card a and card c. The target moving position of card a is the original actual position of card b, and the target moving position of card c is the original actual position of card a.

[0248] In some implementations, when the control device determines the target card to be moved forward and its target movement position during S603, the control device can also prompt the user in a notification message to indicate the target card to be moved forward and / or its target movement position. This allows the user to refer to the notification information to decide whether to agree to adjust the card's position, facilitating user decision-making and operation. That is, the notification message may include the target card's identification information and / or the target movement position information, for example... Figure 5A As shown in (a) and (b) in the figure.

[0249] S604b: When the fourth operation performed by the user on the notification message is received, the position of the card in the multiple control pages is not adjusted, that is, the position of the target card is not moved; the fourth operation is used to indicate disagreement with adjusting the card position.

[0250] This application does not limit the specific form of the second and fourth operations in Scheme 1. For example, the second and fourth operations could be click operations performed by the user on different components in the notification message. Continuing with... Figure 5A For example, the second operation can allow the user to... Figure 5A The fourth action is the click operation performed by the "Confirm" button (i.e., component or control) in the notification message. Figure 5A The click action performed by the "Cancel" button (component or control) in the notification message.

[0251] Option 2: When it is necessary to adjust the card position, the control device directly adjusts the card position, that is, directly executes the following steps S605.

[0252] S605: The control device moves the target card forward to the first target position in the first target control page.

[0253] In one implementation, the control device may execute S605 by the following steps:

[0254] B1: The control device updates the operation count value of the first card according to the first operation, that is, increments the operation count value of the first card by one.

[0255] B2: The control device sorts multiple identical cards with the same style as the first card in multiple control pages according to the size of the operation count value to obtain the first card queue.

[0256] B3: The control device determines the target card to be moved forward, and the target movement position of the target card, based on the first card queue and the actual position queue of multiple identical cards. The actual position queue is obtained by sorting the multiple identical cards according to their order of actual position on multiple control pages; the target movement position is the first target position on the first target control page.

[0257] B4: Based on the target card's target movement position, move the target card forward to the first target position on the first target control page.

[0258] This solution is similar to Solution 1, except that the control device does not display a notification message. Instead, after determining the target card to be moved forward and its target position, it directly moves the target card forward. Therefore, the steps in Solution 2 can be referenced from the descriptions of the relevant steps in Solution 1, and will not be repeated here.

[0259] Through the above two methods, the control device can count the user usage frequency (i.e., operation count value) of each card and adjust the card position according to the user's usage. The higher the user's usage frequency, the higher the card position. This can improve the efficiency of users in finding frequently used cards, make it more convenient for users, and improve the user's operating efficiency of the control device. It can achieve the effect of adjusting the card layout in the control device as needed, keeping it fresh and new with frequent use, and getting faster with use.

[0260] Furthermore, in the two solutions described above, the control device operates on cards of the same type as the first card, enabling position adjustments for these cards without affecting the overall layout of the control device's control page. Based on this, the solution provided in this application can be applied to scenarios where the control page of a control device displays various card styles, ensuring flexibility in card layout and the overall flexibility of the solution's implementation.

[0261] It should also be noted that in the two schemes above, when the control device moves the target card forward, the other identical cards need to give way. For example, other cards (excluding the target card) between the target card's target movement position and its original actual position need to move backward. Figure 2 Taking the control page as an example, when the control device moves the "Homecoming Scene" card on the second page forward to the original position of the "Weather" card on the first page, the "Weather" card, the "All Lights On" card, and the "All Lights Off" card all move backward to avoid this situation. Figure 5B As shown.

[0262] Continuing with Example 1 above, when the control device moves card a forward to the original actual position of card b, the control device also moves card b backward to the original actual position of the next card of the same type in the actual position queue, that is, card b moves to the original actual position of card a.

[0263] In Example 2 above, when the control device moves card a forward to the original actual position of card b and moves card c forward to the original actual position of card a, the control device also moves card b backward to the original actual position of card d and moves card d backward to the original actual position of card c.

[0264] It should be noted that the control device needs to maintain an operation count value for each card so that the card's position can be moved based on the operation count value, achieving the effect that the more frequently a card is used, the more prominent its position. That is, when the control device performs a control operation on any card, it increments the operation count value of that card by one.

[0265] In addition, in this embodiment of the application, when the user edits the control page and moves the card position, the control device can also update the operation count value of the card based on the operation count value of the adjacent cards after the card position is moved. The specific steps are as follows:

[0266] C1: The control device displays the second control page out of multiple control pages on the display screen.

[0267] C2: The control device receives a third operation from the user on the second card in the second control page, which moves the second card to the second target position in the second target control page; the third operation is the operation of moving the position of the second card.

[0268] C3: The control device updates the operation count value of the second card based on the operation count value of the similar card adjacent to the second card after the second card's position is moved.

[0269] Optionally, before executing C2, the user can perform a user operation on a displayed control page to put the control device into card editing mode. For example, this user operation could be a long press on a blank area or any card on the second control page, or a two-finger pinch operation on the second control page.

[0270] Optionally, in step C3, the control device may update the operation count value of the second card in the following manner:

[0271] Method 1: The control device updates the operation count value of the second card to the operation count value of the adjacent card of the same type.

[0272] For example, suppose the actual position queue of multiple identical cards in multiple control pages of the control device is "card 1, card 2, card 3, card 4, card 5". When the user moves card 3 between card 1 and card 2, the control device can update the operation count value of card 3 to the operation count value of card 1 or card 2; when the user moves card 3 in front of card 1, the control device can update the operation count value of card 3 to the operation count value of card 1; when the user moves card 3 behind card 5, the control device can immediately update the operation count value of card 3 to the operation count value of card 5.

[0273] Method 2: When the second card has two adjacent identical cards, the control device updates the operation count value of the second card based on the median of the operation count values ​​of the two adjacent identical cards. For example, when the median is an integer, the control device updates the operation count value of the second card to the median; when the median is not an integer, the control device updates the operation count value of the second card to an integer value that is rounded up or down from the median.

[0274] When the second card is at the head of a plurality of identical cards, and the second card has a following adjacent identical card, the control device updates the operation count value of the second card to the operation count value of the following adjacent identical card plus one.

[0275] When the second card is at the end of a set of identical cards, and the second card has a preceding identical card, the control device updates the operation count value of the second card to the operation count value of that preceding identical card minus one. It should be noted that since the operation count value of a card cannot be negative, when the operation count value of that preceding identical card is 0, the control device also updates the operation count value of the second card to 0.

[0276] In one implementation, to avoid the control device frequently notifying the user to adjust the card position or frequently adjusting the card position itself, the control device can set an operation count threshold. Only when the number of operations performed by the user on a card, a type of card, or all cards reaches this threshold will the control device initiate either Scheme 1 or Scheme 2, performing a determination of whether a target card requiring position adjustment exists and related operations. Based on this, before executing step S603 or S605, the control device also needs to perform the following steps:

[0277] D1: The control device updates the number of operations on the first card according to the first operation; wherein, the number of operations on the first card is the number of times the user performs an operation on the first card, or the number of times the user performs an operation on a card with the same style as the first card, or the number of times the user performs an operation on cards in multiple control pages.

[0278] D2: The control device determines that the number of operations for the first card is greater than or equal to the first number threshold (i.e., the number of operations used to initiate card position adjustment).

[0279] In addition, after the control device executes S604a or S605 to move the target card forward to the first target position in the first target control page, the control device can also reset the operation count of the first card to zero so that it can start counting again, thus avoiding frequent notifications to the user to adjust the card position or frequent self-adjustment of the card position.

[0280] In one implementation, to avoid the control device frequently notifying the user to adjust the card position or frequently adjusting the card position itself, the control device can also enable or disable the card position adjustment function. Optionally, the user can enable or disable the card position adjustment function by performing an operation on the control device. In the scenario where the control device adjusts the card position according to the user's wishes using the above-described scheme one, the control device can automatically disable the card position adjustment function based on the number of times the user refuses the card position adjustment.

[0281] Based on this, the control device can activate its card position adjustment function before S602 or S603. This allows the control device to execute S603 based on the first operation. After receiving the fourth operation performed by the user in response to the notification message, the control device can update the number of times the user has refused card position adjustments, incrementing the count by one. When the number of times the user has refused card position adjustments is greater than or equal to the second threshold, the control device disables its card position adjustment function and resets the count to zero. When the control device reactivates the card position adjustment function, it can continue to count the number of times the user has refused card position adjustments.

[0282] It should also be noted that when the control device disables the card position adjustment function, it can also reset the stored operation count value for each card to zero. Optionally, during the process of disabling the card position adjustment function, the control device may not update the operation count value for each card until the card position adjustment function is re-enabled.

[0283] In one implementation, to improve the response speed of PLC devices corresponding to frequently used cards in a PLC system to user control operations, achieving a "faster with use" effect, the control device can prioritize the transmission of control messages generated by the user performing control operations on frequently used cards. In this embodiment, the control device can achieve this through the following steps:

[0284] E1: The control device displays the third control page on the screen; wherein, the third control page is one of the first N control pages among multiple control pages, where N is a positive integer.

[0285] According to the principle in this application embodiment that the more frequently a card is used by the user, the more frequently it is placed in the card position, the cards in the first N control pages (e.g., the homepage) are the cards that the user uses most frequently, and the control device can transmit the control messages triggered by these cards as soon as possible.

[0286] E2: The control device receives the fifth operation performed by the user on the third card in the third control page; the fifth operation is used to trigger the control of the PLC device corresponding to the third card.

[0287] E3: The control device generates a first control message according to the fifth operation; the first control message is used to instruct the PLC host in the PLC system to control the PLC device corresponding to the third card. The first control message may carry control instructions to instruct the PLC host to control the PLC device corresponding to the third card.

[0288] E4: The control device stores the first control message in the first queue; wherein, the priority of the first queue is higher than the priority of the second queue, and the second queue is used to store control messages generated by the user performing operations on cards in other control pages; other control pages are control pages other than the set control page among multiple control pages.

[0289] E5: The control device sends the first control message in the first queue to the PLC host according to the priority of the first queue and the priority of the second queue, and sends the control message in the second queue to the PLC host.

[0290] Similarly, the control device can also store the control messages generated by the first M cards in the actual position queue of multiple identical cards into the first queue. M is a positive integer.

[0291] In this step, the control device can prioritize sending control messages from the first queue, followed by control messages from the second queue. This allows the control device to send control messages triggered by frequently used cards and those triggered by less frequently used cards in separate queues, thereby reducing the transmission latency of control messages triggered by frequently used cards.

[0292] In this embodiment of the application, the control device sends control messages in each queue sequentially according to the first-in-first-out principle.

[0293] Optionally, to avoid control message generation and transmission orders differing due to queue priorities when control messages controlling the same PLC device exist in the first and second queues, potentially leading to control logic conflicts or control failures, the control device, when executing step E4, can first determine if a second control message exists in the second queue. If it determines that a second control message does not exist in the second queue, it stores the first control message in the first queue. The second control message is used to instruct the PLC host to control the PLC device corresponding to the third card. By storing the first control message in the second queue when it is determined that a second control message exists, the stability and reliability of the PLC system can be guaranteed.

[0294] In this embodiment, the control device can transmit any control message in any queue in the following manner. The following description uses the first control message in the first queue as an example:

[0295] When the first control message carries a scene control command, the control device sends the first control message to the PLC host;

[0296] When the first control message carries subsystem control instructions, the control device compresses the first control message and then sends the compressed first control message to the PLC host.

[0297] In PLC systems, scene control instructions are typically event IDs with relatively small data volumes. Subsystem control instructions, however, may carry information about the subsystem, PLC devices, and other relevant control parameters, resulting in a larger number of subsystem control instructions. Therefore, the control device can choose an appropriate method to send the instructions based on the type of control instruction carried in the first control message. Since the transmission bandwidth of a PLC system is limited, compressing control messages carrying large data volumes can reduce the number of control messages sent by the control device and improve the utilization rate of the system's transmission bandwidth.

[0298] For example, if the data size of a control message carrying scene control instructions is less than the maximum data size of PB136 mode (e.g., 136 bytes), the control device can send the control message using PB136 mode.

[0299] For example, if the data size of a control message carrying subsystem control instructions (e.g., between 200-450 bytes) exceeds the maximum data size in PB136 mode, the control device can compress the control message using a pre-defined compression algorithm (e.g., SAMZ2). The control device can then send the compressed control message in PB136 mode. Upon receiving the compressed control message, the PLC host needs to decompress it to obtain the original control message, which can then be parsed to extract the control instructions carried within.

[0300] Optionally, in this embodiment of the application, the control message generated by the control device can be a message in JavaScript object notation (JSON) format.

[0301] In summary, this application provides a display method. In this method, after receiving a control operation from a user on a first card in the currently displayed first control page, the control device can display a notification message prompting the user to agree to adjust the card's position. The device can then adjust the position of the first card or a card of the same type forward according to the user's preference; or it can directly adjust the position of the first card or a card of the same type forward. This method eliminates the need for the user to manually move the card, allowing the control device to automatically adjust the card's position, thereby improving the efficiency of card searching and the user's control over the device.

[0302] Based on the methods provided in the above embodiments, this application also provides an example of a display method. This example can be applied to, for example... Figure 1 The PLC system shown is illustrated. In this example, the control device can adjust the card position according to the user's wishes. The following section combines... Figure 7 The process of this example will be explained.

[0303] S701: The control device displays the first control page among multiple control pages on the display screen.

[0304] and Figure 6 Similarly, in the illustrated embodiment, the multiple control pages of the control device are arranged sequentially, and the cards within each control page are also arranged sequentially. Each card is used to control the corresponding PLC sub-device.

[0305] S702: The control device receives a first operation performed by the user on the first card in the first control page. This first operation is used to trigger control of the PLC sub-device corresponding to the first card.

[0306] S703: The control device updates the operation count value of the first card and the number of operations performed on the first card according to the first operation. In this example, the number of operations performed on the first card is used to count the number of times the user performs operations on cards with the same style as the first card. When the number of operations performed on the first card reaches (i.e., is greater than or equal to) the set first threshold, S704 continues; when the number of operations performed on the first card does not reach the first threshold, S708 is executed, that is, the notification message prompting the user whether they agree to adjust the card position is not displayed, and S704 and subsequent steps are not executed. The first threshold is an operation count threshold set to avoid the control device frequently notifying the user to adjust the card position.

[0307] In S703, the control device increments the operation count value of the first card by one and increments the number of operations of the first card by one according to the first operation.

[0308] S704: When the number of operations on the first card reaches the first threshold, the control device sorts multiple identical cards with the same style as the first card in multiple control pages according to the operation count value to obtain a first card queue; and matches the first card with the actual position queue of the multiple identical cards. When the first card queue is different from the actual position queue, execute S705; when the first card queue is the same as the actual position queue, execute S708, that is, do not display a notification message to prompt the user whether they agree to adjust the card position.

[0309] The actual position queue is obtained by sorting the multiple identical cards according to their actual positions on multiple control pages.

[0310] S705: When the first card queue differs from the actual position queue, the target card to be moved forward and its target movement position are determined based on the first card queue and the actual position queue. The target movement position is the first target position on the first target control page. The control device displays a notification message on the screen prompting the user to agree to adjust the card position. This notification message may also include the target card determined by the control device and its target movement position, allowing the control device to recommend the target card to be moved forward and its recommended target movement position to the user.

[0311] S706: When the control device receives a second operation performed by the user on the notification message, the control device moves the target card forward to a target movement position, that is, moves the target card forward to the first target position on the first target control page. The second operation is used to indicate to the user that they agree to adjust the card position.

[0312] S707: When the control device receives a third operation performed by the user on the notification message, the control device shall not adjust the position of the cards in the multiple control pages. The third operation is used to indicate to the user that they do not agree to adjust the card positions.

[0313] S708: When the control device determines that the current conditions for adjusting the card position are not met, it does not display a notification message to prompt the user whether they agree to adjust the card position. The conditions for adjusting the card position include: the number of first card operations reaching the initial threshold, and the first card queue being different from the actual position queue.

[0314] That is, when the number of operations on the first card does not reach the threshold for the first time, or when the first card queue is the same as the actual location queue, the control device does not display a notification message to prompt the user whether they agree to adjust the card position.

[0315] Through steps S701-S708 above, the control device can adjust the card positions according to the user's wishes when adjustments are needed. In these steps, the control device can count the user's usage frequency (i.e., operation count value) for each card and adjust the card positions based on user usage, placing cards with higher usage frequency closer to the front. This improves the efficiency of finding frequently used cards, making it more convenient for users and increasing the efficiency of user operation of the control device. The goal is to achieve an on-demand, constantly updated, and increasingly efficient card layout within the control device.

[0316] To improve the response speed of PLC sub-devices corresponding to frequently used cards in a PLC system, achieving a "faster with use" effect, the control device can prioritize the transmission of control messages generated by user operations on frequently used cards. Functionally, the control device can contain a card management module and two queues: a high-priority queue and a low-priority queue. The card management module, which can be a processor, executes the control device's processing functions. The card management module can prioritize sending control messages from the high-priority queue.

[0317] Continuing with the example of performing the first operation on the first card in the first control page:

[0318] S709: After the S702 control device receives the first operation performed by the user on the first card in the first control page, the card management module generates a first control message based on the first operation. This first control message carries a first control instruction, which instructs the PLC master in the PLC system to control the PLC sub-device corresponding to the first card.

[0319] S710: When the first control page belongs to the first N control pages among the multiple control pages (or when the first card belongs to the first M cards in the actual location queue), the card management module stores the first control message in the high priority queue.

[0320] The actual location queue in this step is the same as the actual location queue involved in S704.

[0321] S711: When the first control page does not belong to the first N control pages (or the first card does not belong to the first M cards), the card management module stores the first control message in the low priority queue.

[0322] For example, when the first control page is the homepage among the multiple control pages, the card management module stores the first control message in a high-priority queue; when the first control page is not the homepage among the multiple control pages, the card management module stores the first control message in a low-priority queue.

[0323] It should also be noted that, to prevent out-of-order transmission of multiple control messages targeting the same PLC sub-device, the card management module, when storing the first control message in the high-priority queue, also needs to check whether a second control message indicating control of the PLC sub-device corresponding to the first card exists in the second queue. The specific process can be found in [reference needed]. Figure 6 The description in the illustrated embodiments.

[0324] After that, the card management module prioritizes transmitting control messages in the high-priority queue, and then transmits control messages in the low-priority queue.

[0325] When transmitting control messages in any queue, the card management module can execute different transmission strategies based on the message type (the type of control instruction carried in the message). Let's continue with the first control message as an example:

[0326] S712: When the first control message is in the high-priority queue, the card management module sends the control messages in the high-priority queue according to the first-in-first-out principle. When the first control message carries a scene control command, the card management module directly sends the first control message to the PLC host; when the first control message carries a subsystem control command, the card management module compresses the first control message before sending the compressed first control message to the PLC host.

[0327] S713: When the first control message is in the low-priority queue, the card management module sends the control messages in the low-priority queue according to the first-in, first-out principle. The method by which the card management module transmits the first control message can be referred to in S712, and will not be repeated here.

[0328] S714: Following S712 or S713, the PLC master receives the first control message or a compressed first control message. If the PLC master receives the compressed first control message, it decompresses the compressed first control message to obtain the first control message. The PLC master parses the first control message to obtain the first control instruction and executes the first control instruction to control the PLC sub-device corresponding to the first card.

[0329] In this example, when the user actively edits the control page and moves the card position, the control device can also update the operation count value of the card based on the operation count values ​​of adjacent cards after the card position is moved. The specific steps are as follows:

[0330] S715: The control device displays the second control page out of a plurality of control pages on the display screen.

[0331] S716: The control device receives a fourth operation performed by the user on the second card in the second control page, moving the second card; and updates the operation count value of the second card based on the operation count value of the adjacent cards of the same type after the second card is moved. For details, please refer to [link / reference needed]. Figure 6 The description of step C3 in the illustrated embodiment will not be repeated here.

[0332] It should be noted that the above embodiments provide solutions for adjusting the position of the displayed operation object in an electronic device. In specific implementations, the electronic device can also adjust the position of the control page. Optionally, the electronic device can apply the above solutions to adjust the position of the control page, that is, replace the object to be adjusted from the displayed operation object to the control page. The principle and specific steps can be referred to the description in the above embodiments, and will not be repeated here.

[0333] It should also be noted that each step in the above embodiments can be executed by the corresponding device, or by components such as chips, processors, or chip systems within that device. The embodiments of this application do not limit their execution. The above embodiments are merely illustrative examples of execution by the corresponding device. Furthermore, the specific implementation methods or examples in the above embodiments do not limit the solutions provided by the embodiments of this application.

[0334] It should be noted that in the above embodiments, some steps may be selected for implementation, and the order of the steps in the figures may be adjusted. This application does not limit this. It should be understood that performing some of the steps in the figures, adjusting the order of the steps, or combining them in a specific implementation all fall within the protection scope of this application.

[0335] It is understood that, in order to achieve the functions described in the above embodiments, each device involved in the above embodiments includes a hardware structure and / or software module corresponding to perform each function. Those skilled in the art should readily recognize that, based on the units and method steps of the various examples described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0336] It is understood that the architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. As those skilled in the art will know, with the evolution of network architecture and the emergence of new services, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems.

[0337] It should be noted that the "steps" in the embodiments of this application are merely illustrative and are intended to better understand one method of presentation used in the embodiments. They do not constitute a substantial limitation on the execution of the solution of this application. For example, the "step" can also be understood as a "feature". Furthermore, the steps do not constitute any limitation on the execution order of the solution of this application. Any changes to the order of steps, or the merging or splitting of steps made on this basis without affecting the overall solution implementation, resulting in a new technical solution, are also within the scope of disclosure of this application.

[0338] Based on the same concept, embodiments of this application also provide an electronic device. For example... Figure 8 As shown, the electronic device 800 includes a display screen 801, one or more processors 802, a memory 803, and a communication module 804. For example, the above-mentioned devices can be connected via one or more communication buses. The one or more computer programs are stored in the memory 803 and configured to be executed by the one or more processors 802. The one or more computer programs include instructions that can be used to cause the electronic device to perform various steps of the methods in the above embodiments.

[0339] For example, the above-mentioned one or more processors 802 may specifically be Figure 3 The processor 301; the memory 803 mentioned above can specifically be... Figure 3 The memory 302 is located in the middle. The communication module 804 can be used for... Figure 3 The communication unit 305; the aforementioned display screen 801 can be Figure 3 The display screen 303 in this application embodiment is not limited in any way.

[0340] Based on the same concept, embodiments of this application also provide an electronic device, which includes units for performing the various steps of the methods provided in the above embodiments.

[0341] For details on the specific functions of each module, please refer to the above embodiments; they will not be repeated here.

[0342] Based on the above embodiments, this application also provides a computer program product, which includes instructions; when the computer program is run on a computer, it causes the computer to execute the method provided in the above embodiments.

[0343] Based on the above embodiments, this application also provides a computer-readable storage medium storing computer program instructions, which, when executed by a computer, cause the computer to perform the methods provided in the above embodiments.

[0344] Optionally, the aforementioned computer may include, but is not limited to, control devices.

[0345] The storage medium can be any available medium that a computer can access. For example, but not limited to, a computer-readable medium can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.

[0346] Based on the above embodiments, this application also provides a chip for reading a computer program stored in a memory to implement the method provided in the above embodiments. Optionally, the chip may include a processor and a memory, wherein the processor is coupled to the memory and is used to read the computer program stored in the memory to implement the method provided in the above embodiments.

[0347] Based on the above embodiments, this application provides a chip system including a processor for supporting a computer device in implementing the functions involved in the control device in the above embodiments. In one possible design, the chip system further includes a memory for storing necessary programs and data of the computer device. This chip system may be composed of chips or may include chips and other discrete components.

[0348] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0349] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0350] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0351] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

Claims

1. A display method applied to an electronic device, the electronic device comprising a display screen, characterized in that, The method comprises: displaying a first control page in a plurality of control pages in the display screen; wherein the plurality of control pages are arranged in sequence, the plurality of control pages are displayed in the display screen in turn by switching mode, each control page contains at least one display operation object; the display operation object is used to trigger a corresponding action; the first control page is the first page of the plurality of control pages; receiving a first page switching operation performed by a user, and displaying a second control page in the display screen; the second control page is located after the first control page; after receiving a first operation performed by a user on a first display operation object in the second control page and triggering an action corresponding to the first display operation object, moving the first display operation object to the first control page.

2. The method of claim 1, wherein, The method further comprises: when receiving a first indication of the user agreeing to adjust the position of the display operation object, moving the first display operation object to the first control page.

3. The method of claim 2, wherein, The method further comprises: when receiving a second indication of the user disagreeing to adjust the position of the display operation object, not moving the first display operation object.

4. The method of claim 3, wherein, The method further comprises: displaying a notification message in the display screen, the notification message being used to prompt the user whether to agree to adjust the position of the display operation object; The method further comprises: receiving a confirmation operation performed by the user on the notification message; The method further comprises: receiving a cancellation operation performed by the user on the notification message.

5. The method of claim 3 or 4, wherein, Before receiving the first operation performed by the user on the first display operation object in the second control page, the method further comprises: starting a position adjustment function of the display operation object of the electronic device; After receiving the second indication of the user disagreeing to adjust the position of the display operation object, the method further comprises: when the number of times of receiving the second indication of the user disagreeing to adjust the position of the display operation object reaches a first number threshold, closing the position adjustment function of the display operation object of the electronic device.

6. The method according to any one of claims 1 to 5, wherein, The method further comprises: receiving the first operation performed by the user on the first display operation object in the second control page, triggering an action corresponding to the first display operation object; moving the first display operation object to the first control page, and displaying the first display operation object in the first control page when the first control page is displayed again in the display screen.

7. The method according to any one of claims 1 to 6, wherein The method further comprises: placing the first display operation object at a target position in the first control page; the original display operation object at the target position matches the size of the first display operation object; or Adjusting a size of the first display operation object, and placing the first display operation object after being adjusted in size at a target position in the first control page; or Integrating the first display operation object and a second display operation object in the first control page into a display operation object set, and displaying the display operation object set in the first control page.

8. The method according to any one of claims 1 to 7, wherein, The method further comprises: Receiving a second page switching operation performed by a user, and displaying a third control page in the display screen; the third control page is located after the first control page; After receiving a second operation performed by the user on a third display operation object in the third control page and triggering an action corresponding to the third display operation object, moving the third display operation object to a fourth control page; wherein the fourth control page is located before the third control page.

9. The method according to any one of claims 1 to 8, wherein, The display operation object is a control; the control corresponds to at least one device, and the control is used to control the corresponding device.

10. The method of claim 9, wherein, The control is a card.

11. The method of claim 9 or 10, wherein, The triggering of the action corresponding to the first display operation object comprises: Controlling a first device corresponding to the first display operation object through a power line communication (PLC) protocol.

12. The method according to any one of claims 9 to 11, wherein, The triggering of the action corresponding to the first display operation object comprises: Generating a first control message, the first control message being used to control a first device corresponding to the first display operation object; and sending the first control message.

13. The method of claim 12, wherein, The method further comprises: When the display screen displays the first control page, receiving a third operation performed by a user on a fourth display operation object in the first control page, and generating a second control message; the second control message is used to control a second device corresponding to the fourth display operation object; The sending of the first control message comprises: Prior to sending the second control message, sending the first control message.

14. The method of any one of claims 1-13, wherein, The moving of the first display operation object to the first control page comprises: According to the first operation, updating an operation count value of the first display operation object; According to the size of the operation count value, sorting a plurality of target display operation objects in a plurality of control pages to obtain a first display operation object queue; According to the first display operation object queue and an actual position queue of the plurality of target display operation objects, determining the first display operation object that needs to be moved forward and a target moving position of the first display operation object; wherein the actual position queue is obtained by sorting the plurality of target display operation objects according to the actual positions of the plurality of control pages in sequence; and the target moving position of the first display operation object is located in the first control page; According to the target moving position of the first display operation object, moving the first display operation object to the first control page.

15. The method of claim 14, wherein, The method further comprises: According to the first display operation object queue and the actual position queue, a fifth display operation object that needs to be moved forward and a target moving position of the fifth display operation object are determined; the target moving position of the fifth display operation object is located in a fifth control page, and the fifth control page is located before a original control page of the fifth display operation object; According to the target moving position of the fifth display operation object, the fifth display operation object is moved to the fifth control page.

16. The method of claim 14 or 15, wherein, The plurality of target display operation objects are display operation objects in the plurality of control pages that match the size of the first display operation object; or The plurality of target display operation objects are all display operation objects in the plurality of control pages.

17. The method of any one of claims 14-16, wherein, The method further includes: After receiving a third page switching operation performed by a user, a sixth control page is displayed in the display screen; the sixth control page is located after the first control page; After receiving a moving operation performed by the user on a sixth display operation object in the sixth control page, the sixth display operation object is moved to a seventh control page; the seventh control page is different from the sixth control page; According to an operation count value of a display operation object adjacent to the sixth display operation object after moving, the operation count value of the sixth display operation object is updated.

18. The method of any one of claims 1-17, wherein, Before moving the first display operation object to the first control page, the method further includes: According to the first operation, a first operation statistic value is updated; the first operation statistic value is a number of operations performed by the user on display operation objects in the plurality of control pages, or a number of operations performed by the user on display operation objects that match the size of the first display operation object; It is determined that the first operation statistic value is greater than or equal to a second number threshold.

19. An electronic device, comprising: The electronic device includes: a display screen configured to display a user interface; a memory configured to store computer program instructions; a processor configured to execute the computer program instructions to support the control device to implement the method according to any one of claims 1-18.

20. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer program instructions, and the computer program instructions are executed by the processing circuit to implement the method according to any one of claims 1-18.

21. A computer program product comprising instructions, wherein: When the computer program product runs on the computer, the computer is caused to execute the method according to any one of claims 1-18.