WO2023193720A1 - 控制方法及中控设备 - Google Patents

控制方法及中控设备 Download PDF

Info

Publication number
WO2023193720A1
WO2023193720A1 PCT/CN2023/086259 CN2023086259W WO2023193720A1 WO 2023193720 A1 WO2023193720 A1 WO 2023193720A1 CN 2023086259 W CN2023086259 W CN 2023086259W WO 2023193720 A1 WO2023193720 A1 WO 2023193720A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
electronic device
identification information
target electronic
central control
Prior art date
Application number
PCT/CN2023/086259
Other languages
English (en)
French (fr)
Inventor
刘恒
王亚飞
宋晓辉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023193720A1 publication Critical patent/WO2023193720A1/zh

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • Embodiments of the present application relate to the field of terminal equipment, and in particular, to a control method and central control equipment.
  • the cloud platform needs to process the device data to adapt to the needs of each manufacturer. As the number of central control equipment models and manufacturers increases, the workload on the cloud platform side will increase.
  • the embodiments of this application provide a control method and central control equipment.
  • the central control device can provide a customized desktop layout display method.
  • embodiments of the present application provide a control method, which is characterized in that it is applied to a central control device.
  • the method includes: the central control device divides the display area into multiple grids based on the first configuration information.
  • the first configuration information is used to indicate the number of grids in the display area and the size of a single grid.
  • the central control device determines the layout of the multiple functional areas in the display area based on the second configuration information.
  • the second configuration information is used to indicate the number of grids occupied by each functional area in the plurality of functional areas and the position of each functional area in the display area.
  • the central control device displays multiple device controls in at least one functional area of multiple functional areas; the multiple device controls correspond one-to-one to the multiple electronic devices controlled by the central control device, wherein each device control includes a corresponding
  • the device information of the electronic device is obtained by the central control device from the cloud.
  • the central control device uses grid and functional area division, so that the platform does not need to process the device data.
  • the central control device realizes the automated layout of device controls based on the device information obtained from the platform. Meet the diverse needs of different central control manufacturers.
  • the first configuration information is the display screen division information in the embodiment of the present application.
  • the second configuration information is the layout information of the functional area in the embodiment of the present application.
  • the electronic device controlled by the central control device is an IoT device.
  • the central control device and the cloud interact with each other based on wireless communication, and the cloud interacts with multiple electronic devices based on wireless communication.
  • the first configuration information includes first quantity information and size information, and the first quantity information is used to indicate Indicates the number of grids in the horizontal direction of the display area and the number of grids in the vertical direction of the display area; the size information is used to indicate the width and height of a single grid.
  • the central control device can divide the display area based on the pre-saved configuration information, thereby making the display area granular.
  • the plurality of grids are evenly arranged in the lateral direction and the longitudinal direction of the display area.
  • the second configuration information includes second quantity information and starting position information, and the second quantity information is used to indicate the location of each functional area in the plurality of functional areas. Occupies the number of grids; the starting position information is used to indicate the position of the starting grid in each functional area in the display area. In this way, the central control device can customize the layout of the gridded (also called granular) display area to lay out multiple functional areas in the grid.
  • the gridded also called granular
  • displaying multiple device controls in at least one functional area among the multiple functional areas includes: obtaining device information of multiple electronic devices from the cloud, and the device The information includes at least one of the following: device identification information of a single electronic device, a type of a single electronic device, status information of a single electronic device, and allowable adjustment range information of a single electronic device; generating a correspondence for each electronic device in the plurality of electronic devices control identification information, and saves the corresponding relationship between the device information of multiple electronic devices and the multiple control identification information; indicating to the target application part of the device information and multiple device identification information generated for multiple electronic devices, wherein part of the device information It includes at least one information in the device information; in at least one functional area, multiple device controls are displayed; wherein the multiple device controls are generated by the target application based on part of the device information.
  • the electronic device can filter the information of the electronic device obtained from the cloud, so that the target device can only obtain part of the information of the electronic device, thereby protecting the information of the electronic device and the information of the platform.
  • the central control device and the target application interact through control identification, thereby protecting the data security of the electronic device.
  • control identification information is the card ID in the embodiment of this application.
  • the device identification information includes the name of the device, device ID, device address, etc.
  • part of the device information obtained by the target device includes device name, device type, device status, and device allowed adjustment range.
  • the method further includes: obtaining touch event information of the target application, where the touch event information includes control identification information of the target electronic device and status update information of the target electronic device, and the touch event information includes: The event information is used to indicate that a touch event on the control of the target electronic device is received, the touch event is used to indicate updating the status of the target electronic device, and the target electronic device belongs to multiple electronic devices; the control identification information of the target electronic device is compared with the touch event. Verification; after the control identification information of the target electronic device and the touch event are successfully verified, update the control of the target electronic device.
  • the central control device can verify the control identification information and touch events to prevent malware from disguising itself as a target application to control electronic devices in the user's home. For example, if malware sends touch event information to the central control device, if the verification of the control identification information and the touch event fails, the central control device will not control the electronic device to perform the corresponding action, thereby ensuring the security and safety of the electronic device. reliable sex.
  • verifying identification information and touch events of the target electronic device includes: detecting whether the control identification information of the target electronic device is invalid, wherein the control identification information of the target electronic device is invalid.
  • the control identification information is invalid when the central control device does not display multiple functional areas; the control identification information of the target electronic device is valid when the central control device displays multiple functional areas; it is detected that the control identification information of the electronic device is valid, and it is determined Target electronic device verification successful.
  • verifying identification information and touch events of the target electronic device includes: determining whether a touch operation on the display area is received based on parameters detected by the touch sensor. ; Detect a touch operation on the display area and confirm that the touch event verification is successful.
  • updating the controls of the target electronic device includes: based on the corresponding relationship between the device information of the multiple electronic devices and the multiple control identification information, determining the control information of the target electronic device.
  • Device identification information of the target electronic device corresponding to the control identification information; sending a status update request message to the cloud.
  • the status update request message includes the device identification information of the target electronic device and the status update information of the target electronic device.
  • the status update request message is used to instruct the cloud. Update the current status of the target electronic device to the status indicated by the status update information; receive the status update response message sent by the cloud.
  • the status update response message includes the device identification information of the target electronic device and the current status information of the target electronic device.
  • the current status information is Instructing the target electronic device based on the updated status of the cloud instruction; based on the correspondence between the device information of the multiple electronic devices and the multiple control identification information, determining the control identification information of the target electronic device corresponding to the device identification information of the target electronic device ;Transmit the control identification information and current status information of the target electronic device to the target application to instruct the target application to update the control of the target electronic device; obtain the new control generated by the target application and corresponding to the target electronic device, and update the control of the target electronic device is a new control; the new control is generated by the target application based on the current state information. In this way, the interaction between the central control device and the target application can effectively ensure the data security of the electronic device through control identification information.
  • inventions of the present application provide a central control device.
  • the central control device includes: one or more processors; memory; and one or more computer programs, wherein one or more computer programs are stored on the memory, and when the computer program is executed by one or more processors, such that The central control device performs the following steps: based on the first configuration information, divides the display area into multiple grids; the configuration information is used to indicate the number of grids in the display area and the size of a single grid; based on the second configuration information, determines multiple The layout of the functional areas in the display area; wherein the second configuration information is used to indicate the number of grids occupied by each functional area in the multiple functional areas and the position of each functional area in the display area; in the multiple functional areas Multiple device controls are displayed in at least one functional area of the area; the multiple device controls correspond to multiple electronic devices controlled by the central control device in one-to-one correspondence.
  • the first configuration information includes first quantity information and size information
  • the first quantity information is used to indicate the number of grids in the horizontal direction of the display area and the number of grids in the longitudinal direction of the display area
  • the size information is used to indicate The width and height of a single grid.
  • the plurality of grids are evenly arranged in the lateral direction and the longitudinal direction of the display area.
  • the second configuration information includes second quantity information and starting position information, and the second quantity information is used to indicate the location of each functional area in the plurality of functional areas. Occupies the number of grids; the starting position information is used to indicate the position of the starting grid in each functional area in the display area.
  • the central control device when the computer program is executed by one or more processors, the central control device is caused to perform the following steps: obtain device information of multiple electronic devices, and the device information includes At least one of the following: device identification information of a single electronic device, type of a single electronic device, status information of a single electronic device, and allowable adjustment range information of a single electronic device; generating corresponding controls for each electronic device in multiple electronic devices Identification information, and save the corresponding relationship between the device information of multiple electronic devices and the identification information of multiple controls; indicate to the target application part of the device information and multiple device identification information generated for the multiple electronic devices, where part of the device information includes device At least one of the information; in at least one functional area, multiple device controls are displayed; wherein the multiple device controls are generated by the target application based on part of the device information.
  • the central control device when the computer program is executed by one or more processors, the central control device is caused to perform the following steps: obtain touch event information of the target application, and the touch event information includes The control identification information of the target electronic device and the status update information of the target electronic device.
  • the touch event information is used to indicate that a touch event on the control of the target electronic device is received.
  • the touch event is used to indicate updating the status of the target electronic device.
  • the target electronic device belongs to Multiple electronic devices; verify the control identification information and touch events of the target electronic device; and update the control of the target electronic device after the verification of the control identification information and touch events of the target electronic device is successful.
  • the central control device when the computer program is executed by one or more processors, the central control device is caused to perform the following steps: detect whether the control identification information of the target electronic device is invalid, wherein , the control identification information of the target electronic device is invalid when the central control device does not display multiple functional areas; the control identification information of the target electronic device is valid when the central control device displays multiple functional areas; the control of the electronic device is detected The identification information is valid, confirming that the target electronic device has been successfully verified.
  • the central control device when the computer program is executed by one or more processors, the central control device is caused to perform the following steps: based on the parameters detected by the touch sensor, determine whether to receive the Touch operation on the display area; detecting a touch operation on the display area and determining that the touch event verification is successful.
  • the central control device when the computer program is executed by one or more processors, the central control device is caused to perform the following steps: based on device information of multiple electronic devices and multiple control devices. Correspondence between the component identification information and determine the device identification information of the target electronic device corresponding to the control identification information of the target electronic device; send a status update request message to the cloud, where the status update request message includes the device identification information of the target electronic device and the target electronic device The status update information, the status update request message is used to instruct the cloud to update the current status of the target electronic device to the status indicated by the status update information; receive the status update response message sent by the cloud, the status update response message includes the device identification information of the target electronic device and the current status information of the target electronic device.
  • the current status information is used to indicate the updated status of the target electronic device based on instructions from the cloud; based on the corresponding relationship between the device information of multiple electronic devices and the identification information of multiple controls, determine the status of the target electronic device.
  • the control identification information of the target electronic device corresponding to the device identification information transmit the control identification information and current status information of the target electronic device to the target application to instruct the target application to update the control of the target electronic device; obtain the control identification information generated by the target application corresponding to the target electronic device.
  • the new control of the electronic device updates the control of the target electronic device to the new control; the new control is generated by the target application based on the current status information.
  • the second aspect and any implementation manner of the second aspect respectively correspond to the first aspect and any implementation manner of the first aspect.
  • the technical effects corresponding to the second aspect and any implementation manner of the second aspect may be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation manner of the first aspect, which will not be described again here.
  • embodiments of the present application provide a computer-readable medium for storing a computer program, where the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
  • embodiments of the present application provide a computer program, which includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
  • embodiments of the present application provide a chip, which includes a processing circuit and transceiver pins.
  • the transceiver pin and the processing circuit communicate with each other through an internal connection path, and the processing circuit executes the method in the first aspect or any possible implementation of the first aspect to control the receiving pin to receive the signal, so as to Control the sending pin to send signals.
  • embodiments of the present application provide a communication system, which includes the central control device described in the first aspect, a plurality of electronic devices, and a cloud.
  • Figure 1 is a schematic diagram of the hardware structure of an exemplary electronic device
  • Figure 2 is a schematic diagram of the software structure of an exemplary electronic device
  • Figures 3a to 3b are schematic diagrams of the display interface of the central control device
  • Figure 4 is a schematic diagram of a communication system provided by an embodiment of the present application.
  • Figure 5 is a schematic diagram of an exemplary control method
  • Figures 6a to 6b are schematic diagrams of exemplary meshing
  • Figure 6c is an exemplary coordinate diagram
  • Figure 7a is a schematic diagram showing an exemplary functional area layout
  • Figure 7b is a schematic diagram showing an exemplary functional area layout
  • Figure 8 is an exemplary device card display method
  • Figure 9 exemplarily shows a schematic diagram of data interaction
  • Figure 10 is a schematic diagram of an exemplary card display
  • Figure 11 is a schematic flowchart of an exemplary control method
  • Figures 12a to 12b are exemplary interface schematic diagrams
  • Figure 13 is a schematic flow chart of an exemplary control method
  • Figure 14 is a schematic structural diagram of an exemplary device.
  • a and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations.
  • first and second in the description and claims of the embodiments of this application are used to distinguish different objects, rather than to describe a specific order of objects.
  • first target object, the second target object, etc. are used to distinguish different target objects, rather than to describe a specific order of the target objects.
  • multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 shown in FIG. 1 is only an example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figure, and two or more components may be combined. , or can have different component configurations.
  • the various components shown in Figure 1 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.
  • the electronic device 100 may be a central control device in the embodiment of the present application, or may be an electronic device managed by the control device in the embodiment of the present application.
  • the electronic device may be a smart home device (such as an air conditioner, a desk lamp) , it can also be a mobile phone, tablet, TV, wearable device, etc., which is not limited in this application.
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, And subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) wait.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • NPU neural-network processing unit
  • different processing units can be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 .
  • the processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, wireless communication module 160, etc.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover Covers single or multiple communication bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • GPU for graph A microprocessor-like processor is connected to the display 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the electronic device 100 .
  • the internal memory 121 may include a program storage area and a data storage area. Among them, save The stored program area can store the operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA Cellular Telecommunications Industry Association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A there are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the instrument sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • Distance sensor 180F for measuring distance.
  • Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outwardly through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
  • Temperature sensor 180J is used to detect temperature.
  • the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 . in others
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 in a position different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture of the electronic device 100 divides the software into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, card, central control and other applications.
  • the central control application is used to manage the desktop display of the central control device.
  • the specific control method will be detailed in the following embodiments. Explain in detail.
  • the central control application can also be called a central control module.
  • the central control device can install the application before leaving the factory, or download the application from the cloud after it is first started and connected to the cloud. This application does not limited.
  • the central control application is optionally provided by the platform.
  • the card application can be used to generate and maintain device cards.
  • Device cards may also be called device controls, device control graphics, device control user interfaces, etc., which are not limited in this application.
  • the card application is provided by the central control equipment manufacturer and can also be called a third-party application, which is not limited in this application.
  • the application framework layer provides an application programming interface (API) and programming framework for applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window manager, content provider, view system, central control module, resource manager, notification manager, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications.
  • Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of the electronic device 100 .
  • call status management including connected, hung up, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a beep sounds, the electronic device vibrates, the indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library contains two parts: one is the functional functions that need to be called by the Java language, and the other is the core library of Android.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), media libraries (Media Libraries), 3D graphics processing libraries (for example: OpenGL ES), 2D graphics engines (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG wait.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • the components included in the system framework layer, system library and runtime layer shown in Figure 2 do not constitute specific limitations on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • Figures 3a to 3b are schematic diagrams of the display interface of the central control device. Please refer to Figures 3a and 3b. Figures 3a and 3b respectively correspond to central control equipment of different specifications from different manufacturers.
  • the desktop of the central control device can be displayed on the display screen of the central control device.
  • the desktop includes one or more controls, and the controls may include device controls and/or other controls.
  • each device control corresponds to an electronic device controlled by a central control device.
  • the device corresponding to the bedroom light control shown in Figure 3a is the light in the user's bedroom. Users can control the bedroom lights to turn on or off and adjust the brightness through the central control device.
  • the specifications (ie, size) of the display screens of different central control devices are different, the layout of the controls corresponding to the devices is also different, and the images displayed by the controls corresponding to the devices (also known as user interface) are also different.
  • the platform needs to design different styles of central control desktops to meet the style needs of central control equipment manufacturers. With the growth of central control equipment products and access manufacturers, this has given rise to The development and maintenance costs brought by the platform will continue to increase.
  • Embodiments of the present application provide a control method that can be applied to central control equipment of different specifications to meet the diverse needs of different central control equipment and at the same time ensure the security of equipment data.
  • FIG. 4 is a schematic diagram of a communication system provided by an embodiment of the present application.
  • the communication system includes cloud, central control equipment and IoT equipment.
  • the cloud can include servers or server clusters.
  • Central control equipment is produced by central control equipment manufacturers.
  • the maintenance vendor of the cloud and the central control vendor of the central control device may be the same or different, and are not limited in this application.
  • IoT devices may include one or more IoT devices, such as speakers, TVs, air conditioners, lights, etc., which are not limited in this application.
  • the cloud can connect central control devices in different home or office scenarios.
  • the same scenario can include multiple central control devices or IoT devices, which is not limited in this application.
  • the cloud and the central control device can communicate through wireless connections, and the IoT devices and central control devices can communicate through wireless connections.
  • the wireless connection may be maintained based on Wi-Fi, cellular, etc., which is not limited in this application.
  • Figure 5 is a schematic diagram of an exemplary control method. Please refer to Figure 5, which specifically includes:
  • the central control module in the central control device can maintain configuration information, and the configuration information can be stored in memory or other storage areas, which is not limited by this application.
  • the configuration information is set before leaving the factory.
  • This configuration information can be set collaboratively by the platform side (i.e., the cloud maintenance manufacturer) and the central control equipment side (i.e., the central control equipment production and maintenance manufacturer).
  • Configuration information package Including but not limited to display screen division information and layout information of functional areas.
  • the display screen division information is used to indicate that the display screen is divided according to specified specifications.
  • the layout information of the functional area is used to indicate the layout of each functional area on the display screen.
  • the display screen of the central control device can be divided based on the display screen division information.
  • the display screen division information may include grid quantity information and grid size information, where the grid quantity information is used to indicate the number of grids after dividing the display screen.
  • Grid size information is used to indicate the size of each grid.
  • the above values are optionally in the form of key-value pairs.
  • JSON JavaScript Object Notation, JS object notation
  • the display screen division information is as follows:
  • rowNum represents the number of horizontal grids
  • colNum represents the number of vertical tables
  • cellWidth represents the width of each grid (in pixels)
  • cellHeight represents the height of each grid (in pixels) .
  • FIG. 6a is an exemplary grid division diagram. Please refer to FIG. 6a.
  • the central control device screen 601 (which may also be referred to as the central control device display screen) includes a display area 602 (which may also be referred to as a desktop area or desktop area). center control panel display area) and other areas. Among them, the display area 602 is used to display the desktop and controls. Based on the display screen division information, the central control module divides the display area 602 into 12 grids horizontally and 7 grids vertically, with each grid having a width of 25 pixels and a height of 25 pixels.
  • Figure 6a is an exemplary grid division diagram. Please refer to Figure 6a.
  • the central control module divides the display area 602 into 6 grids horizontally and 4 grids vertically. , each grid has a width of 25 pixels and a height of 25 pixels.
  • the display screen division information may be preset based on the sizes of the display screens of different central control devices, and may be set according to actual needs, which is not limited in this application.
  • the number and size of the grids shown in Figure 6a and Figure 6b are only illustrative examples, and are not limited in this application.
  • S503 Divide functional areas based on the coordinates of each grid and the layout information of the functional areas.
  • Figure 6c is an exemplary coordinate schematic diagram. Please refer to Figure 6c.
  • the central control module establishes a coordinate system with the upper left corner of the display area 602 as the origin.
  • the coordinates of each grid are the coordinate positions of the upper left corner of each grid in the coordinate system.
  • the coordinates of the upper left corner of grid 603 are (5,0), which are the coordinates of the grid.
  • the layout information of the functional area includes but is not limited to: the number of grids occupied by each functional area, the coordinates of the starting grid, the name of the functional area, etc.
  • “title” represents the name of the functional area
  • “spanRow” represents the number of horizontal grids occupied by the functional area
  • “spanCol” represents the number of vertical grids occupied by the functional area
  • “rowIndex” represents the start of the functional area.
  • the absc issa coordinate of the grid
  • “colIndex” represents the ordinate coordinate of the starting grid of the functional area.
  • Figure 7a is a schematic diagram of the functional area layout. Please refer to the shaded portion 701 shown in Figure 7a.
  • the horizontal network occupied by the functional area named "Device Management" (referred to as the device management area)
  • the number of grids is 7
  • the number of vertical grids occupied by the device management area is 4,
  • the starting grid of the device management area that is, the starting coordinate of the grid in the upper left corner of the device management area is (5,0)
  • the location and size of the device management area are shown in the shaded portion 701.
  • the area name may or may not be displayed in this area, which is not limited in this application.
  • Figure 7b is a schematic diagram showing an exemplary functional area layout. Please refer to Figure 7b.
  • the central control module layouts each functional area according to the above method to obtain the layout of area 1 to area 5 in the display area 602. Location and size.
  • the central control module can display device cards in one or more functional areas.
  • a device card can also be understood as a control corresponding to the device, a device image, a device control user interface, etc., such as the bedroom light control in Figure 3a.
  • Figure 8 illustrates an exemplary device card display method. Please refer to Figure 8 , which specifically includes:
  • the central control module obtains device data.
  • the central control module obtains device data from the cloud.
  • Device data includes device data of electronic devices (such as IoT devices) controlled by the central control module.
  • Device data includes but is not limited to: device identification information, device status, device type, allowed status range, etc.
  • the device identification information is used to identify the device, and may be, for example, a device ID, a device MAC address, and/or a device name.
  • the device status is used to indicate the current status of the IoT device. For example, the current temperature of the air conditioner is set to 28°.
  • the allowable status range is used to indicate the allowable adjustment range of the equipment.
  • the allowable adjustment range of the air conditioner is 15° ⁇ 30°.
  • the device type is used to indicate the type of device.
  • the device type can be a TV, an air conditioner, etc.
  • the device data may also include other privacy data, such as the device's user account and other data.
  • the cloud can obtain device data of IoT devices in real time.
  • the cloud sends the acquired device data to the central control device.
  • the central control device can send a request message to the cloud to request device data when it is turned on for the first time or when it is restored to factory settings, that is, when the desktop needs to be rearranged.
  • the cloud obtains device data of IoT devices in real time, and the cloud can send the most recently obtained device data to the central control device.
  • the central control module generates a card ID and saves the corresponding relationship between the card ID and the device.
  • the central control module can receive device data of multiple IoT devices sent from the cloud.
  • the central control module generates a card ID for each IoT device, and the card ID is unique.
  • the central control module saves the corresponding relationship between device data and card ID. For example, there is a correspondence between the card ID1 and the equipment data of the television, and the correspondence between the card ID2 and the equipment data of the air conditioner.
  • the central control module sends the card ID and device data to the card application.
  • the central control module filters the device data and only sends the device type, device name, device status and allowed status range together with the card ID to the card application to instruct the card application to generate the corresponding device card, thereby protecting the device. information security.
  • the card application generates a card.
  • the card application can generate a corresponding device card (which may be referred to as a card) based on the obtained device data, which is a user interface corresponding to the device control to be displayed on the desktop, which may also be called a device card view.
  • the card application records the corresponding relationship between each card and the card ID.
  • the card application sends the card and card ID to the central control module.
  • the card application generates multiple cards, and the card application sends each card and its corresponding card ID to the central control module.
  • the central control module displays cards in the designated functional area.
  • the central control module can divide the display area 602 into multiple functional areas, and some or all of the multiple functional areas can be used to display cards.
  • the specific area can be confirmed according to the instructions in the configuration information, and is not limited in this application.
  • the "Device Management" area is the area used to display device cards.
  • the central control module can display multiple acquired device cards in the device management area.
  • each device card can be the same or different.
  • the central control module can perform a schematic layout in the device management area based on the shape and size of the device card to improve the aesthetics of the card display.
  • the device management area may include multiple subpages.
  • the first subpage area is not enough to display all cards.
  • the central control module may set a second subpage in the device management area to display all cards in the second subpage. . Multiple subpages can be arranged sequentially, and users can browse multiple subpages through the device management area.
  • Figure 10 is an exemplary card display diagram. Please refer to Figure 10.
  • the card application is based on the device data of the bedroom light, including, for example, the device name (i.e., bedroom light), device type (i.e., lamp), device status (current The device card corresponding to the bedroom light is generated if the status is on) and the allowed range (i.e. on and off) and transmitted to the central control module.
  • the central control module receives the device card and card ID of the bedroom light.
  • the central control module displays a card 1001 in the device management area (for example, area 1).
  • the card includes but is not limited to information such as device name (ie, bedroom light) and device status (ie, turned on).
  • the central control module after the central control module completes the desktop layout, it can display the laid out desktop every time the central control device switches to the foreground, which can also be understood as switching to the desktop, or switching to the home page. .
  • Figure 11 is a schematic flowchart of an exemplary control method. Please refer to Figure 11, which specifically includes:
  • the card application determines the status update information of the device based on the operation event.
  • the user can click the card corresponding to the bedroom light to turn off the bedroom light.
  • the touch sensor of the central control device can detect the user's touch position and send touch events to the central control module and card application.
  • the card application can determine the card touched by the user based on the user's touch location, and determine the corresponding card ID and the status of the device adjusted by the user. For example, as mentioned above, the user operates through the bedroom light control displayed on the desktop of the central control device and clicks to turn off the bedroom light.
  • the card application can determine the status update information of the corresponding device based on the received user operation.
  • the status update information is used to indicate the adjusted status of the device, such as turning off the bedroom light.
  • the card application sends the card ID and device status update information to the central control module.
  • the card application can determine the card ID corresponding to the card operated by the user based on the corresponding relationship between the card ID and the card.
  • the card application can send the card ID and status update information (for example, bedroom lights are turned off) to the central control module.
  • the central control module verifies the card ID and operation events.
  • the central control module verifies the card ID and the operation event. For example, as mentioned above, the central control module can also receive the touch event reported by the touch sensor, and the central control module can determine that the touch event occurs. In other words, the card ID and status update information sent by the card application is sent after the user operation event actually occurs. This prevents the central control device from being attacked by malware. For example, the malware may disguise itself as a card application and send status update information to the central control module.
  • the central control module After the central control module receives the status update information, if it does not receive the touch event reported by the touch sensor, It can be determined that if the status update information is not instructed by the user, the central control module will not process it, or the central control module can display alarm information to indicate that there is currently a malware attack.
  • the central control module verifies the card ID to detect whether the card ID is valid.
  • the central control module detects that the desktop switches to the background.
  • the central control module will invalidate all card IDs.
  • the central control module can mark the corresponding relationship items (including card ID, device data, etc.) to which the card ID belongs as invalid.
  • the central control module can also mark the card ID as invalid.
  • the specific marking method can be set according to actual needs, and is not limited in this application. For an example, please refer to Figure 12b.
  • the central control module switches the desktop to the background in response to the received operation and displays the bedroom light control interface.
  • the control interface is sent to the central control module by the card application.
  • the interface can be displayed based on the process in Figure 8.
  • the interface can also be directly generated by a card application, which is not limited in this application.
  • the central control module detects that the desktop is switched to the background, it invalidates all card IDs to prevent malware attacks.
  • the malware may obtain the card ID of the card application and send the card ID and status update information to the central control software. At this time, because the desktop is in the background, that is, all card IDs are invalid. After the central control module receives the card ID, If it is detected that the card ID is in an invalid state, no processing will be performed or an alarm will be issued.
  • the central control module executes S1104 after the simultaneous verification of the card ID and the touch event is successful to improve the security of the central control device.
  • the central control device sends the device ID and device status update information to the cloud. ,
  • the central control module searches for the device identification information (such as device ID) corresponding to the card ID based on the correspondence between the card ID and the device data, and converts the device ID into and status updates are sent to the cloud.
  • device identification information such as device ID
  • the cloud can determine the device that needs to be controlled based on the device ID, and adjust the status of the device based on the status update information, such as turning off the bedroom lights.
  • S1106 The cloud sends the device ID and device status to the central control module.
  • the cloud can obtain the status of the device in real time, where the status transition of the device includes cloud control, for example, the cloud controls the bedroom light to turn off in S1105.
  • the state change of the device also includes manual control by the user.
  • the user manually controls the bedroom light to turn off by turning on the bedroom light switch.
  • the cloud is checking After the device status is updated, the device ID and the current status of the device are sent to the central control module, which can also be understood as the updated status of the device, such as the bedroom lights being turned off.
  • the central control module determines the card ID based on the device ID.
  • the central control module can determine the card ID corresponding to the device ID based on the saved correspondence between the card ID and the device data.
  • the central control module sends the card ID and device status to the card application.
  • the central control module sends the card ID and device status (ie, the current status of the device) to the card application to instruct the device application to update the card.
  • the card ID and device status ie, the current status of the device
  • the card application updates the card of the device based on the card ID and device status.
  • the card application receives the card ID and device status.
  • the card application can determine which card needs to be updated based on the card ID.
  • Card applications can update card content based on device status.
  • the card application can regenerate a card corresponding to the device based on the device status.
  • the status of the device indicated in the new card is the updated status of the device, for example, the bedroom light is turned off.
  • the card application can also update only the contents of some controls in the card, which is not limited in this application.
  • the card application sends the card ID and device card to the central control module.
  • the card application can generate a new card, and the card application sends the card ID and the newly generated card to the central control module.
  • a card app can update part of a device card.
  • the card corresponding to the bedroom light only needs to update the status of the bedroom light, that is, update the currently displayed "on" to "off".
  • the device card can also be regarded as a card composed of multiple controls.
  • the card application can send the image (or user interface) of the control that needs to be updated to the central control module.
  • the central control module updates the desktop.
  • the central control module can determine the card that needs to be updated based on the received card ID. In an example, if the card application sends a new card, the central control module updates the card corresponding to the card ID to the new card product. In another example, if the card application sends some controls of the card, the central control module can update some controls of the card corresponding to the card ID.
  • Figure 13 is a schematic flowchart of an exemplary control method. Please refer to Figure 13, which specifically includes:
  • the cloud detects device update.
  • the device update in this embodiment refers to the addition or deletion of a device, for example, a newly purchased speaker at the user's home, and the speaker is connected to the cloud.
  • a device for example, a newly purchased speaker at the user's home
  • the speaker is connected to the cloud.
  • the TV in the user's home is disconnected from the cloud, or the TV is logged out from the cloud, it can also be called the TV offline.
  • the cloud sends device data to the central control module.
  • the cloud sends the device data of the added or deleted device to the central control module.
  • the concept of device data can be referred to above and will not be repeated here.
  • the central control module detects device deletion and deletes device data, cards and card IDs.
  • the central control module determines that the device is deleted based on instructions from the cloud, for example, the TV is removed from the user's home. Based on the device data of the TV, the central control module deletes the saved device data of the TV and the corresponding card and card ID.
  • the central control module determines that the device is to be added based on instructions from the cloud, for example, the user purchases a new speaker at home and connects it to the cloud, the steps in S802 to S806 can be followed, which will not be described again here.
  • S1304 The central control module sends deletion instruction information to the card application.
  • the central control module sends deletion instruction information to the card application.
  • the instruction information includes the deletion instruction and the card ID, which is used to instruct the card application to delete the corresponding card.
  • the card application deletes the card corresponding to the card ID in response to the received deletion instruction information.
  • the central control module and card application still follow the steps in Figure 13.
  • the steps are executed, wherein in the scenario of adding a device, the central control module will mark the card ID as invalid after generating a card ID for the device.
  • the central control module can display the updated desktop.
  • the electronic device includes corresponding hardware and/or software modules that perform each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions in conjunction with the embodiments for each specific application, but such implementations should not be considered to be beyond the scope of this application.
  • FIG. 14 shows a schematic block diagram of a device 1400 according to an embodiment of the present application.
  • the device 1400 may include: a processor 1401 and a transceiver/transceiver pin 1402, and optionally, a memory 1403.
  • bus 1404 includes a power bus, a control bus, and a status signal bus in addition to a data bus.
  • bus 1404 various buses are referred to as bus 1404 in the figure.
  • the memory 1403 may be used for instructions in the foregoing method embodiments.
  • the processor 1401 can be used to execute instructions in the memory 1403, and control the receiving pin to receive signals, and control the transmitting pin to send signals.
  • the device 1400 may be the electronic device or a chip of the electronic device in the above method embodiment.
  • This embodiment also provides a computer storage medium that stores computer instructions.
  • the electronic device When the computer instructions are run on an electronic device, the electronic device causes the electronic device to execute the above related method steps to implement the method in the above embodiment.
  • This embodiment also provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to perform the above related steps to implement the method in the above embodiment.
  • inventions of the present application also provide a device.
  • This device may be a chip, a component or a module.
  • the device may include a connected processor and a memory.
  • the memory is used to store computer execution instructions.
  • the processor can execute computer execution instructions stored in the memory, so that the chip executes the methods in each of the above method embodiments.
  • the electronic equipment, computer storage media, computer program products or chips provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the corresponding methods provided above. The beneficial effects of the method will not be repeated here.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division.
  • there may be other division methods for example, multiple units or components may be combined or can be integrated into another device, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical, mechanical or other forms.
  • a unit described as a separate component may or may not be physically separate.
  • a component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or it may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above integrated units can be implemented in the form of hardware or software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供了一种控制方法及中控设备。该方法包括:中控设备基于配置信息将显示区域划分为多个网格,并在网格化的显示区域中确定功能区域的布局。中控设备在功能区域中显示多个设备控件。其中,多个设备控件与中控设备控制的多个电子设备一一对应,每个所述设备控件中包括对应的电子设备的设备信息,并且所述电子设备的设备信息为所述中控设备从云端获取到的。这样,中控设备利用网格和功能区域划分的方式,使得平台方无需对设备的数据进行处理,而是由中控设备基于从平台方获取到的设备信息,实现对设备控件的自动化布局,满足不同中控厂商的多样性需求。

Description

控制方法及中控设备
本申请要求于2022年04月07日提交中国国家知识产权局、申请号为202210357767.4、申请名称为“控制方法及中控设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端设备领域,尤其涉及一种控制方法及中控设备。
背景技术
随着IoT(Internet of Things,物联网)产业链的发展,IoT设备的种类和样式不断增长,各个厂商纷纷推出中控设备,以便用户对家庭里的不同设备进行统一管理。但是,对于不同厂商和不同种类的中控设备,其桌面整体布局和设备管理样式有不同的需求,相应的,云平台侧需要将设备的数据进行处理,以适应各厂商的需求。而随着中控设备的型号以及厂商越来越多,将导致云平台侧的工作量增加。
发明内容
本申请实施例中提供一种控制方法及中控设备。该控制方法中,中控设备可提供一种自定义的桌面布局显示方式。
第一方面,本申请实施例提供一种控制方法,其特征在于,应用于中控设备,方法包括:中控设备基于第一配置信息,将显示区域划分为多个网格。其中,第一配置信息用于指示显示区域的网格数量与单一网格的尺寸。接着,中控设备基于第二配置信息,确定多个功能区域在显示区域中的布局。其中,第二配置信息用于指示多个功能区域中的每个功能区域所占网格的数量和每个功能区域在显示区域中的位置。中控设备在多个功能区域的至少一个功能区域中,显示多个设备控件;多个设备控件与中控设备控制的多个电子设备一一对应,其中,每个所述设备控件中包括对应的电子设备的设备信息,并且所述电子设备的设备信息为所述中控设备从云端获取到的。这样,中控设备利用网格和功能区域划分的方式,使得平台方无需对设备的数据进行处理,而是由中控设备基于从平台方获取到的设备信息,实现对设备控件的自动化布局,满足不同中控厂商的多样性需求。
示例性的,第一配置信息为本申请实施例中的显示屏划分信息。第二配置信息为本申请实施例中的功能区域的布局信息。
示例性的,中控设备所控制的电子设备为IoT设备。
示例性的,中控设备与云端基于无线通信进行数据交互,云端与多个电子设备基于无线通信进行数据交互。
根据第一方面,第一配置信息包括第一数量信息和尺寸信息,第一数量信息用于指 示显示区域的横向方向的网格数量与显示区域的纵向方向的网格数量;尺寸信息用于指示单一网格的宽度与高度。这样,中控设备可基于预先保存的配置信息,对显示区域进行划分,从而使得显示区域颗粒化。
根据第一方面,或者以上第一方面的任意一种实现方式,多个网格在显示区域的横向方向与纵向方向上均匀排布。
根据第一方面,或者以上第一方面的任意一种实现方式,第二配置信息包括第二数量信息和起始位置信息,第二数量信息用于指示多个功能区域中的每个功能区域所占网格数量;起始位置信息用于指示每个功能区域中的起始网格在显示区域中的位置。这样,中控设备可将网格化(也可称为颗粒化)后的显示区域进行自定义布局,以在网格中布局多个功能区域。
根据第一方面,或者以上第一方面的任意一种实现方式,在多个功能区域中的至少一个功能区域中,显示多个设备控件,包括:从云端获取多个电子设备的设备信息,设备信息包括以下至少之一:单一电子设备的设备标识信息、单一电子设备的类型、单一电子设备的状态信息与单一电子设备的允许调节范围信息;为多个电子设备中的每个电子设备生成对应的控件标识信息,并保存多个电子设备的设备信息与多个控件标识信息的对应关系;向目标应用指示部分设备信息与为多个电子设备生成的多个设备标识信息,其中,部分设备信息包括设备信息中的至少一个信息;在至少一个功能区域中,显示多个设备控件;其中,多个设备控件为目标应用基于部分设备信息生成的。这样,电子设备可对从云端获取到的电子设备的信息进行过滤,以使得目标设备仅能获取到电子设备的部分信息,从而保护电子设备的信息以及平台方的信息。以及,中控设备与目标应用之间通过控件标识进行交互,从而可保护电子设备的数据安全。
示例性的,控件标识信息为本申请实施例中的卡片ID。
示例性的,设备标识信息包括设备的名称、设备ID、设备地址等。
示例性的,目标设备获取到的部分设备信息包括设备名称、设备类型、设备状态以及设备允许调节范围。
根据第一方面,或者以上第一方面的任意一种实现方式,方法还包括:获取目标应用的触摸事件信息,触摸事件信息包括目标电子设备的控件标识信息与目标电子设备的状态更新信息,触摸事件信息用于指示接收到对目标电子设备的控件的触摸事件,触摸事件用于指示更新目标电子设备的状态,目标电子设备属于多个电子设备;对目标电子设备的控件标识信息与触摸事件进行校验;在目标电子设备的控件标识信息与触摸事件校验成功后,更新目标电子设备的控件。这样,中控设备可通过对控件标识信息与触摸事件进行校验,以防止恶意软件伪装成目标应用,以控制用户家中的电子设备。例如,若恶意软件向中控设备发送触摸事件信息,如果控件标识信息与触摸事件中任一校验失败,则中控设备不会控制电子设备执行相应的动作,从而保证电子设备的安全性和可靠 性。
根据第一方面,或者以上第一方面的任意一种实现方式,对目标电子设备的标识信息与触摸事件进行校验,包括:检测目标电子设备的控件标识信息是否失效,其中,目标电子设备的控件标识信息在中控设备未显示多个功能区域的情况下失效;目标电子设备的控件标识信息在中控设备显示多个功能区域的情况下有效;检测到电子设备的控件标识信息有效,确定目标电子设备校验成功。
根据第一方面,或者以上第一方面的任意一种实现方式,对目标电子设备的标识信息与触摸事件进行校验,包括:基于触摸传感器检测的参数,确定是否接收到对显示区域的触摸操作;检测到发生对显示区域的触摸操作,确定触摸事件校验成功。
根据第一方面,或者以上第一方面的任意一种实现方式,更新目标电子设备的控件,包括:基于多个电子设备的设备信息与多个控件标识信息的对应关系,确定与目标电子设备的控件标识信息对应的目标电子设备的设备标识信息;向云端发送状态更新请求消息,状态更新请求消息包括目标电子设备的设备标识信息和目标电子设备的状态更新信息,状态更新请求消息用于指示云端将目标电子设备的当前状态更新为状态更新信息指示的状态;接收云端发送的状态更新响应消息,状态更新响应消息包括目标电子设备的设备标识信息与目标电子设备的当前状态信息,当前状态信息用于指示目标电子设备基于云端的指示更新后的状态;基于多个电子设备的设备信息与多个控件标识信息的对应关系,确定与目标电子设备的设备标识信息对应的目标电子设备的控件标识信息;向目标应用传输目标电子设备的控件标识信息与当前状态信息,用于指示目标应用更新目标电子设备的控件;获取目标应用生成的对应于目标电子设备的新控件,将目标电子设备的控件更新为新控件;新控件为目标应用基于当前状态信息生成的。这样,中控设备与目标应用之间的交互通过控件标识信息,可有效保证电子设备的数据安全。
第二方面,本申请实施例提供一种中控设备。该中控设别包括:一个或多个处理器;存储器;以及一个或多个计算机程序,其中一个或多个计算机程序存储在存储器上,当计算机程序被一个或多个处理器执行时,使得中控设备执行以下步骤:基于第一配置信息,将显示区域划分为多个网格;配置信息用于指示显示区域的网格数量与单一网格的尺寸;基于第二配置信息,确定多个功能区域在显示区域中的布局;其中,第二配置信息用于指示多个功能区域中的每个功能区域所占网格的数量和每个功能区域在显示区域中的位置;在多个功能区域的至少一个功能区域中,显示多个设备控件;多个设备控件与中控设备控制的多个电子设备一一对应。
根据第二方面,第一配置信息包括第一数量信息和尺寸信息,第一数量信息用于指示显示区域的横向方向的网格数量与显示区域的纵向方向的网格数量;尺寸信息用于指示单一网格的宽度与高度。
根据第二方面,或者以上第二方面的任意一种实现方式,多个网格在显示区域的横向方向与纵向方向上均匀排布。
根据第二方面,或者以上第二方面的任意一种实现方式,第二配置信息包括第二数量信息和起始位置信息,第二数量信息用于指示多个功能区域中的每个功能区域所占网格数量;起始位置信息用于指示每个功能区域中的起始网格在显示区域中的位置。
根据第二方面,或者以上第二方面的任意一种实现方式,当计算机程序被一个或多个处理器执行时,使得中控设备执行以下步骤:获取多个电子设备的设备信息,设备信息包括以下至少之一:单一电子设备的设备标识信息、单一电子设备的类型、单一电子设备的状态信息与单一电子设备的允许调节范围信息;为多个电子设备中的每个电子设备生成对应的控件标识信息,并保存多个电子设备的设备信息与多个控件标识信息的对应关系;向目标应用指示部分设备信息与为多个电子设备生成的多个设备标识信息,其中,部分设备信息包括设备信息中的至少一个信息;在至少一个功能区域中,显示多个设备控件;其中,多个设备控件为目标应用基于部分设备信息生成的。
根据第二方面,或者以上第二方面的任意一种实现方式,当计算机程序被一个或多个处理器执行时,使得中控设备执行以下步骤:获取目标应用的触摸事件信息,触摸事件信息包括目标电子设备的控件标识信息与目标电子设备的状态更新信息,触摸事件信息用于指示接收到对目标电子设备的控件的触摸事件,触摸事件用于指示更新目标电子设备的状态,目标电子设备属于多个电子设备;对目标电子设备的控件标识信息与触摸事件进行校验;在目标电子设备的控件标识信息与触摸事件校验成功后,更新目标电子设备的控件。
根据第二方面,或者以上第二方面的任意一种实现方式,当计算机程序被一个或多个处理器执行时,使得中控设备执行以下步骤:检测目标电子设备的控件标识信息是否失效,其中,目标电子设备的控件标识信息在中控设备未显示多个功能区域的情况下失效;目标电子设备的控件标识信息在中控设备显示多个功能区域的情况下有效;检测到电子设备的控件标识信息有效,确定目标电子设备校验成功。
根据第二方面,或者以上第二方面的任意一种实现方式,当计算机程序被一个或多个处理器执行时,使得中控设备执行以下步骤:基于触摸传感器检测的参数,确定是否接收到对显示区域的触摸操作;检测到发生对显示区域的触摸操作,确定触摸事件校验成功。
根据第二方面,或者以上第二方面的任意一种实现方式,当计算机程序被一个或多个处理器执行时,使得中控设备执行以下步骤:基于多个电子设备的设备信息与多个控 件标识信息的对应关系,确定与目标电子设备的控件标识信息对应的目标电子设备的设备标识信息;向云端发送状态更新请求消息,状态更新请求消息包括目标电子设备的设备标识信息和目标电子设备的状态更新信息,状态更新请求消息用于指示云端将目标电子设备的当前状态更新为状态更新信息指示的状态;接收云端发送的状态更新响应消息,状态更新响应消息包括目标电子设备的设备标识信息与目标电子设备的当前状态信息,当前状态信息用于指示目标电子设备基于云端的指示更新后的状态;基于多个电子设备的设备信息与多个控件标识信息的对应关系,确定与目标电子设备的设备标识信息对应的目标电子设备的控件标识信息;向目标应用传输目标电子设备的控件标识信息与当前状态信息,用于指示目标应用更新目标电子设备的控件;获取目标应用生成的对应于目标电子设备的新控件,将目标电子设备的控件更新为新控件;新控件为目标应用基于当前状态信息生成的。
第二方面以及第二方面的任意一种实现方式分别与第一方面以及第一方面的任意一种实现方式相对应。第二方面以及第二方面的任意一种实现方式所对应的技术效果可参见上述第一方面以及第一方面的任意一种实现方式所对应的技术效果,此处不再赘述。
第三方面,本申请实施例提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。
第四方面,本申请实施例提供了一种计算机程序,该计算机程序包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的指令。
第五方面,本申请实施例提供了一种芯片,该芯片包括处理电路、收发管脚。其中,该收发管脚、和该处理电路通过内部连接通路互相通信,该处理电路执行第一方面或第一方面的任一种可能的实现方式中的方法,以控制接收管脚接收信号,以控制发送管脚发送信号。
第六方面,本申请实施例提供一种通信系统,该系统包括上述第一方面所述的中控设备、多个电子设备以及云端。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对本申请实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为示例性示出的电子设备的硬件结构示意图;
图2为示例性示出的电子设备的软件结构示意图;
图3a~图3b为示例性示出的中控设备的显示界面示意图;
图4为本申请实施例提供的一种通信系统示意图;
图5为示例性示出的控制方法的示意图;
图6a~图6b为示例性示出的网格划分示意图;
图6c为示例性示出的坐标示意图;
图7a为示例性示出的功能区域布局示意图;
图7b为示例性示出的功能区域布局示意图;
图8为示例性示出的设备卡片显示方法;
图9示例性示出的数据交互示意图;
图10为示例性示出的卡片显示示意图;
图11为示例性示出的控制方法流程示意图;
图12a~图12b为示例性示出的界面示意图;
图13为示例性示出的控制方法流程示意图;
图14为示例性示出的装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
本申请实施例的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一目标对象和第二目标对象等是用于区别不同的目标对象,而不是用于描述目标对象的特定顺序。
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
在本申请实施例的描述中,除非另有说明,“多个”的含义是指两个或两个以上。例如,多个处理单元是指两个或两个以上的处理单元;多个系统是指两个或两个以上的系统。
图1示出了电子设备100的结构示意图。应该理解的是,图1所示电子设备100仅是电子设备的一个范例,并且电子设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。示例性的,电子设备100可以是本申请实施例中的中控设备,也可以是本申请实施例中的控设备所管理的电子设备,例如电子设备可以是智能家居设备(例如空调、台灯),也可以是手机、平板、电视以及可穿戴设备等,本申请不做限定。
电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中, 音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆 盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图 像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存 储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺 仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些 实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。
电子设备100的分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,卡片、中控等应用程序。
中控应用,用于管理中控设备的桌面显示等,具体控制方式将在下面的实施例中详 细说明。在本申请实施例中,中控应用也可以称为中控模块,中控设备可以在出厂前安装该应用,也可以在首次启动并接入云端后,从云端下载该应用,本申请不做限定。在本申请实施例中,中控应用可选地由平台方提供。
卡片应用可用于生成并维护设备卡片。设备卡片也可以称为设备控件、设备控件图形、设备控件用户界面等,本申请不做限定。可选地,卡片应用由中控设备厂商提供,也可以称为第三方应用,本申请不做限定。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,中控模块,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG 等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
可以理解的是,图2示出的系统框架层、系统库与运行时层包含的部件,并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。
图3a~图3b为示例性示出的中控设备的显示界面示意图。请参照图3a和图3b,图3a和图3b分别对应于不同厂家的不同规格的中控设备。中控设备的显示屏上可显示中控设备的桌面。桌面上包括一个或多个控件,控件可以包括设备控件和/或其它控件。其中,每个设备控件对应一个中控设备所控制的电子设备。例如,图3a中所示的卧室灯控件,其所对应的设备即为用户卧室内的灯。用户可通过中控设备,控制卧室的灯的开启或关闭以及调节亮度等。如图3a和图3b所示,不同的中控设备的显示屏的规格(即尺寸)不相同,设备对应的控件的布局也不相同,以及设备对应的控件所显示的图像(也可以称为用户界面)也不相同。相应的,对于不同样式需求的中控设备,平台方需要分别设计不同样式的中控桌面以满足中控设备厂商的样式需求,而随着中控设备产品和接入厂商的增长,由此给平台方带来的开发和维护成本会不断增大。
本申请实施例提供一种控制方法,可以适用于不同规格的中控设备,以满足不同中控设备的多样性需求,并同时保证设备数据的安全。
在对本申请实施例的技术方案说明之前,首先结合附图对本申请实施例的通信系统进行说明。图4为本申请实施例提供的一种通信系统示意图。该通信系统中包括云端、中控设备和IoT设备。其中,云端可以包括服务器或服务器集群。中控设备是由中控设备厂商生产的。其中,云端的维护厂商与中控设备的中控厂商也可以相同或不同,本申请不做限定。示例性的,IoT设备可以包括一个或多个IoT设备,例如音箱、电视、空调、灯等,本申请不做限定。需要说明的是,图4中所示的中控设备的数量仅为示意性举例,在其他实施例中,云端可以连接不同家庭或办公场景等场景中的中控设备。同一场景下可以包括多个中控设备或IoT设备,本申请不做限定。云端与中控设备可以通过无线连接进行通信,IoT设备与中控设备可以通过无线连接进行通信。无线连接可以是基于Wi-Fi、蜂窝等维护的,本申请不做限定。
结合图3,图5为示例性示出的控制方法的示意图,请参照图5,具体包括:
S501,读取配置信息。
示例性的,中控设备中的中控模块可维护有配置信息,配置信息可以保存在内存中或其它存储区域,本申请不做限定。
配置信息为出厂之前设置的,该配置信息可以是平台方(即云端维护厂商)与中控设备方(即中控设备生产及维护厂商)协同设置的。
示例性的,中控设备首次开机或者是初始化后,读取保存的配置信息。配置信息包 括但不限于显示屏划分信息和功能区域的布局信息。显示屏划分信息用于指示按照指定规格划分显示屏。功能区域的布局信息用于指示各功能区域在显示屏上的布局。
S502,基于显示屏划分信息,划分网格。
示例性的,中控设备(具体为中控模块)读取配置信息后,可基于显示屏划分信息,对中控设备的显示屏进行划分。
示例性的,显示屏划分信息中可包括网格数量信息与网格大小信息,其中,网格数量信息用于指示将显示屏划分后的网格数量。网格大小信息用于指示每个网格的大小。上述数值可选地为键值对的形式。例如,在以JSON(JavaScript Object Notation,JS对象简谱)格式化表达的数据中,显示屏划分信息如下所示:
其中,“rowNum”表示横向网格数量,“colNum”表示纵向表格数量,“cellWidth”表示每个网格的宽度(单位为像素),“cellHeight”表示每个网格的高度(单位为像素)。
举例说明,图6a为示例性示出的网格划分示意图,请参照图6a,中控设备屏幕601(也可称为中控设备显示屏)中包括显示区域602(也可以称为桌面区域或中控面板显示区域)及其它区域。其中,显示区域602用于显示桌面及控件等。中控模块基于显示屏划分信息,将显示区域602横向划分为12个网格,纵向划分为7个网格,每个网格的宽度为25像素,高度为25像素。
再举例说明,图6a为示例性示出的网格划分示意图,请参照图6a,中控模块基于显示屏划分信息,将显示区域602横向划分为6个网格,纵向划分为4个网格,每个网格的宽度为25像素,高度为25像素。
在本申请实施例中,显示屏划分信息可以是基于不同的中控设备显示屏的尺寸预先设置的,可根据实际需求设置,本申请不做限定。图6a和图6b中所示的网格数量以及尺寸仅为示意性举例,本申请不做限定。
S503,基于各网格的坐标和功能区域的布局信息,划分功能区域。
示例性的,中控模块划分网格后,可获取每个网格的坐标。举例说明,图6c为示例性示出的坐标示意图,请参照图6c,本申请实施例中,中控模块以显示区域602的左上角为原点建立坐标系。每个网格的坐标即为每个网格的左上角在坐标系中的坐标位置。例如图6c所示,网格603的左上角的坐标为(5,0),即为该网格的坐标。
示例性的,功能区域的布局信息包括但不限于:每个功能区域所占的网格数量、起始网格的坐标、功能区域名称等。
上述数值可选地为键值对的形式。例如,在以JSON(JavaScript Object Notation,JS对象简谱)格式化表达的数据中,布局信息如下所示:

其中,“title”表示功能区域的名称,“spanRow”表示功能区域所占的横向网格的数量,“spanCol”表示功能区域所占的纵向网格的数量,“rowIndex”表示功能区域的起始网格的横坐标,“colIndex”表示功能区域的起始网格的纵坐标。
举例说明,图7a为示例性示出的功能区域布局示意图,请参照图7a中所示的阴影部分701,功能区域名称为“设备管理”的功能区域(简称设备管理区域)所占的横向网格数量为7,设备管理区域所占的纵向网格数量为4,设备管理区域的起始网格,即为设备管理区域的左上角的网格的起始坐标为(5,0),则设备管理区域的位置及大小即为阴影部分701所示的。该区域中可以显示区域名称,也可以不显示,本申请不做限定。
图7b为示例性示出的功能区域布局示意图,请参照图7b,示例性的,中控模块按照上述方法对每个功能区域进行布局,以获取到区域1~区域5在显示区域602中的位置及大小。
S504,在功能区域中显示设备卡片。
示例性的,中控模块可以在一个或多个功能区域内显示设备卡片。在本申请实施例中,设备卡片也可以理解为是设备所对应的控件、设备图像、设备控件用户界面等,例如图3a中的卧室灯控件。
图8为示例性示出的设备卡片显示方法,请参照图8,具体包括:
S801,中控模块获取设备数据。
示例性的,中控模块从云端获取设备数据。设备数据包括中控模块所控制的电子设备(例如IoT设备)的设备数据,设备数据包括但不限于:设备标识信息、设备状态、设备类型以及允许状态范围等。其中,设备标识信息用于标识设备,例如可以是设备ID、设备MAC地址和/或设备名称等。设备状态用于指示IoT设备当前的状态,例如空调当前温度设置为28°。允许状态范围用于指示设备所允许调节的范围,例如空调的允许调节范围为15°~30°。设备类型用于指示设备的类型,例如设备类型可以是电视、空调等。示例性的,设备数据还可以包括其它隐私数据等,例如设备的用户账号等数据。
请参照图9,示例性的,云端可以实时获取到IoT设备的设备数据。云端将获取到的设备数据发送给中控设备。例如,中控设备可以在首次开机或者是恢复出厂设置,也就是说,需要对桌面重新布局的情况下,向云端发送请求消息,以请求获取设备数据。云端实时获取IoT设备的设备数据,云端可以将最近一次获取到的设备数据发送给中控设备。
S802,中控模块生成卡片ID,并保存卡片ID与设备的对应关系。
示例性的,中控模块可接收到云端发送的多个IoT设备的设备数据,中控模块为每个IoT设备生成卡片ID,卡片ID唯一。中控模块保存设备数据与卡片ID的对应关系。 例如卡片ID1与电视的设备数据的对应关系、卡片ID2与空调的设备数据的对应关系。
S803,中控模块向卡片应用发送卡片ID和设备数据。
示例性的,中控模块对设备数据进行过滤,仅将设备类型、设备名称、设备状态以及允许状态范围与卡片ID一起发送给卡片应用,以指示卡片应用生成对应的设备卡片,从而保护设备的信息安全。
S804,卡片应用生成卡片。
示例性的,卡片应用可以基于获取到的设备数据,生成对应的设备卡片(可以简称为卡片),即为桌面将要显示的设备控件所对应的用户界面,也可以称为设备卡片视图。示例性的,卡片应用记录每个卡片与卡片ID的对应关系。
S805,卡片应用向中控模块发送卡片和卡片ID。
示例性的,卡片应用生成多个卡片,卡片应用将每个卡片以及其对应的卡片ID发送给中控模块。
S806,中控模块在指定功能区域内显示卡片。
示例性的,如上文所述,中控模块可以将显示区域602划分为多个功能区域,多个功能区域中的部分或全部区域可用于显示卡片。具体区域可根据配置信息中的指示确认,本申请不做限定。例如“设备管理”区域即为用于显示设备卡片的区域。中控模块可在设备管理区域中显示获取到的多个设备卡片。
示例性的,各设备卡片的形状以及大小可以相同也可以不同,中控模块可基于设备卡片的形状与大小,在设备管理区域内进行示意性布局,以提升卡片显示的美观性。示例性的,设备管理区域可以包括多个子页面,例如第一子页面区域不足以显示所有卡片,中控模块可以在设备管理区域中设置第二子页面,以在第二子页面中显示所有卡片。多个子页面可以顺序排布,用户可以通过设备管理区域的方式浏览多个子页面。
举例说明,图10为示例性示出的卡片显示示意图,请参照图10,卡片应用基于卧室灯的设备数据,例如包括设备名称(即卧室灯)、设备类型(即灯)、设备状态(当前状态为开启)以及允许范围(即开启和关闭)生成卧室灯对应的设备卡片,并传输给中控模块。中控模块接收到卧室灯的设备卡片以及卡片ID。中控模块在设备管理区域(例如区域1)中,显示卡片1001,卡片中包括但不限于设备名称(即卧室灯)以及设备状态(即开启)等信息。
在本申请实施例中,中控模块完成桌面布局后,即可在每次中控设备切换到前台,也可以理解为切换到桌面,或者是切换到主页面的情况下,显示已布局的桌面。
图11为示例性示出的控制方法流程示意图,请参照图11,具体包括:
S1101,卡片应用基于操作事件,确定设备的状态更新信息。
示例性的,请参照图12a,用户可点击卧室灯对应的卡片,以关闭卧室灯。中控设备的触摸传感器可以检测到用户触摸位置,并将触摸事件发送给中控模块以及卡片应用。卡片应用可基于用户触摸位置,确定用户所触摸的卡片,并确定对应的卡片ID以及用户所调节的设备的状态。例如上文所述,用户通过在中控设备的桌面上显示的卧室灯控件进行操作,并点击关闭卧室灯。卡片应用可基于接收到的用户操作,确定对应的设备的状态更新信息,状态更新信息用于指示调整后的设备的状态,例如卧室灯关闭。
S1102,卡片应用向中控模块发送卡片ID和设备的状态更新信息。
示例性的,卡片应用可基于卡片ID与卡片的对应关系,确定用户操作的卡片所对应的卡片ID,卡片应用可将卡片ID与状态更新信息(例如卧室灯关闭)发送给中控模块。
S1103,中控模块对卡片ID与操作事件进行校验。
示例性的,中控模块接收卡片ID和状态更新信息后,对卡片ID进行校验和操作事件进行校验。示例性的,如上文所述,中控模块同样可接收到触摸传感器上报的触摸事件,中控模块可确定发生触摸事件。也就是说,卡片应用所发送的卡片ID和状态更新信息是在确实发生了用户操作事件之后发送的。从而防止中控设备被恶意软件攻击,例如,恶意软件可能伪装成卡片应用,向中控模块发送状态更新信息,中控模块接收到状态更新信息后,如果未接收到触摸传感器上报的触摸事件,即可确定该状态更新信息非用户指示的,中控模块不作处理,或者,中控模块可以显示告警信息,用于指示当前存在恶意软件攻击。
示例性的,中控模块对卡片ID进行校验,以检测卡片ID是否有效。在本申请实施例中,若用户点击任意控件,以进入控件设置界面,或者是中控设备熄屏的情况下,即桌面非前台显示,也就是说,中控模块检测到桌面切换到后台,中控模块将失效所有卡片ID。可选地,中控模块可以将卡片ID所属的对应关系项(包括卡片ID和设备数据等)标记为失效。可选地,中控模块也可以将卡片ID标记为失效,具体标记方式可根据实际需求设置,本申请不做限定。举例说明,请参照图12b,示例性的,用户点击卧室灯控件后,中控模块响应于接收到的操作,将桌面切换到后台,并显示卧室灯控制界面。该控制界面是由卡片应用发送给中控模块的。可选地,该界面的显示可以基于图8中的流程进行显示,可选地,该界面也可以是卡片应用直接生成的,本申请不做限定。
示例性的,中控模块检测到桌面切换到后台后,失效所有卡片ID,从而防止恶意软件攻击。例如,恶意软件可能会获取到卡片应用的卡片ID,并向中控软件发送卡片ID和状态更新信息,此时,由于桌面在后台,即所有卡片ID失效,中控模块接收到卡片ID后,检测到卡片ID为失效状态,则不作处理或者是进行告警。
在本申请实施例中,中控模块在卡片ID与触摸事件同时校验成功之后,执行S1104,以提升中控设备的安全性。
S1104,中控设备向云端发送设备ID和设备的状态更新信息。、
示例性的,中控设备对卡片ID与触摸事件校验成功后,中控模块基于卡片ID与设备数据的对应关系,查找与卡片ID对应的设备标识信息(例如设备ID),并将设备ID和状态更新信息发送给云端。
S1105,云端控制设备状态更新。
示例性的,云端接收到设备ID与状态更新信息后,可基于设备ID确定需要控制的设备,并基于状态更新信息,调整设备的状态,例如关闭卧室灯。
S1106,云端向中控模块发送设备ID和设备状态。
示例性的,在本申请实施例中,云端可实时获取到设备的状态,其中,设备的状态变换包括云端控制的,例如S1105中云端控制卧室灯关闭。示例性的,设备的状态变换还包括用户手动控制的,例如用户通过卧室灯的开关手动控制卧室灯关闭。云端在检测 到设备的状态更新后,向中控模块发送设备ID和设备当前的状态,也可以理解为是设备更新后的状态,例如卧室灯关闭。
S1107,中控模块基于设备ID,确定卡片ID。
示例性的,中控模块可基于已保存的卡片ID与设备数据的对应关系,确定与设备ID对应的卡片ID。
S1108,中控模块向卡片应用发送卡片ID和设备状态。
示例性的,中控模块将卡片ID与设备状态(即设备当前状态)发送给卡片应用,以指示设备应用更新卡片。
S1109,卡片应用基于卡片ID和设备状态,更新设备的卡片。
示例性的,卡片应用接收到卡片ID和设备状态。卡片应用可基于卡片ID,确定需要更新的卡片。卡片应用可基于设备状态,更新卡片的内容。可选地,卡片应用可基于设备状态,重新生成该设备对应的卡片,新的卡片中所指示的设备的状态即为设备更新后的状态,例如卧室灯关闭。可选地,卡片应用也可以仅更新卡片中的部分控件的内容,本申请不做限定。
S1110,卡片应用向中控模块发送卡片ID和设备的卡片。
一个示例中,如上文所述,卡片应用可以生成新的卡片,卡片应用将卡片ID和新生成的卡片发送给中控模块。
另一个示例中,卡片应用可以更新设备卡片的部分内容。例如卧室灯对应的卡片仅需要更新卧室灯的状态,即将当前显示的“开启”更新为“关闭”。示例性的,设备卡片也可以看作为多个控件所组成的卡片,卡片应用可以将需要更新的控件的图像(或称为用户界面)发送给中控模块。
S1111,中控模块更新桌面。
示例性的,中控模块可基于接收到的卡片ID,确定需要更新的卡片。一个示例中,如果卡片应用发送的是新的卡片,则中控模块将卡片ID对应的卡片更新为新的卡品啊。另一个示例中,若卡片应用发送的卡片的部分控件,则中控模块可将卡片ID对应的卡片的部分控件进行更新。
图13为示例性示出的控制方法流程示意图,请参照图13,具体包括:
S1301,云端检测到设备更新。
示例性的,本实施例中的设备更新是指设备增加或删除,例如,用户的家中新买的音箱,并且,音箱接入云端。再例如,用户家中的电视与云端断开连接,或者是电视从云端注销,也可以称为电视离线。
S1302,云端向中控模块发送设备数据。
示例性的,云端将增加或删除的设备的设备数据发送给中控模块。设备数据的概念可参照上文,此处不再赘述。
S1303,中控模块检测到设备删除,删除设备数据、卡片和卡片ID。
示例性的,本实施例中,中控模块基于云端的指示,确定设备被删除,例如电视从用户家中移除。中控模块基于电视的设备数据,删除与已保存的电视的设备数据以及对应的卡片和卡片ID。
另一个示例中,若中控模块基于云端的指示,确定是增加设备,例如用户家中新购买音箱并接入云端,可按照S802~S806中的步骤进行处理,此处不再赘述。
S1304,中控模块向卡片应用发送删除指示信息。
示例性的,中控模块向卡片应用发送删除指示信息,指示信息中包括删除指令以及卡片ID,用于指示卡片应用删除对应的卡片。
S1305,卡片应用删除卡片。
示例性的,卡片应用响应于接收到的删除指示信息,删除与卡片ID对应的卡片。
在一种可能的实现方式中,如果中控设备在执行图13中的步骤时,桌面未在前台显示,例如中控设备当前为熄屏状态,则中控模块与卡片应用仍按照图13中的步骤执行,其中,中控模块在增加设备的场景中,其为设备生成卡片ID后,即将卡片ID标记为失效。中控模块在检测到桌面切换到前台后,中控模块可显示更新后的桌面。
可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
一个示例中,图14示出了本申请实施例的一种装置1400的示意性框图装置1400可包括:处理器1401和收发器/收发管脚1402,可选地,还包括存储器1403。
装置1400的各个组件通过总线1404耦合在一起,其中总线1404除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都称为总线1404。
可选地,存储器1403可以用于前述方法实施例中的指令。该处理器1401可用于执行存储器1403中的指令,并控制接收管脚接收信号,以及控制发送管脚发送信号。
装置1400可以是上述方法实施例中的电子设备或电子设备的芯片。
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
本申请各个实施例的任意内容,以及同一实施例的任意内容,均可以自由组合。对上述内容的任意组合均在本申请的范围之内。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (21)

  1. 一种控制方法,其特征在于,应用于中控设备,所述方法包括:
    基于第一配置信息,将显示区域划分为多个网格;所述第一配置信息用于指示所述显示区域的网格数量与单一网格的尺寸;
    基于第二配置信息,确定多个功能区域在所述显示区域中的布局;其中,所述第二配置信息用于指示所述多个功能区域中的每个功能区域所占网格的数量和每个功能区域在所述显示区域中的位置;
    在所述多个功能区域的至少一个功能区域中,显示多个设备控件;所述多个设备控件与所述中控设备控制的多个电子设备一一对应;每个所述设备控件中包括对应的电子设备的设备信息;所述电子设备的设备信息为所述中控设备从云端获取到的。
  2. 根据权利要求1所述的方法,其特征在于,所述第一配置信息包括第一数量信息和尺寸信息,所述第一数量信息用于指示所述显示区域的横向方向的网格数量与所述显示区域的纵向方向的网格数量;所述尺寸信息用于指示所述单一网格的宽度与高度。
  3. 根据权利要求2所述的方法,其特征在于,所述多个网格在所述显示区域的横向方向与纵向方向上均匀排布。
  4. 根据权利要求1所述的方法,其特征在于,所述第二配置信息包括第二数量信息和起始位置信息,所述第二数量信息用于指示所述多个功能区域中的每个功能区域所占网格数量;所述起始位置信息用于指示每个所述功能区域中的起始网格在所述显示区域中的位置。
  5. 根据权利要求1所述的方法,其特征在于,所述在所述多个功能区域中的至少一个功能区域中,显示多个设备控件,包括:
    从所述云端获取所述多个电子设备的设备信息,所述设备信息包括以下至少之一:单一电子设备的设备标识信息、单一电子设备的类型、单一电子设备的状态信息与单一电子设备的允许调节范围信息;
    为所述多个电子设备中的每个电子设备生成对应的控件标识信息,并保存所述多个电子设备的设备信息与多个控件标识信息的对应关系;
    向目标应用指示部分设备信息与为所述多个电子设备生成的多个设备标识信息,其中,所述部分设备信息包括所述设备信息中的至少一个信息;
    在所述至少一个功能区域中,显示所述多个设备控件;其中,所述多个设备控件为所述目标应用基于所述部分设备信息生成的。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    获取所述目标应用的触摸事件信息,所述触摸事件信息包括目标电子设备的控件标 识信息与所述目标电子设备的状态更新信息,所述触摸事件信息用于指示接收到对所述目标电子设备的控件的触摸事件,所述触摸事件用于指示更新所述目标电子设备的状态,所述目标电子设备属于所述多个电子设备;
    对所述目标电子设备的控件标识信息与所述触摸事件进行校验;
    在所述目标电子设备的控件标识信息与触摸事件校验成功后,更新所述目标电子设备的控件。
  7. 根据权利要求6所述的方法,其特征在于,所述对所述目标电子设备的标识信息与所述触摸事件进行校验,包括:
    检测所述目标电子设备的控件标识信息是否失效,其中,所述目标电子设备的控件标识信息在所述中控设备未显示所述多个功能区域的情况下失效;所述目标电子设备的控件标识信息在所述中控设备显示所述多个功能区域的情况下有效;
    检测到所述电子设备的控件标识信息有效,确定所述目标电子设备校验成功。
  8. 根据权利要求6所述的方法,其特征在于,所述对所述目标电子设备的标识信息与所述触摸事件进行校验,包括:
    基于触摸传感器检测的参数,确定是否接收到对所述显示区域的触摸操作;
    检测到发生对所述显示区域的触摸操作,确定所述触摸事件校验成功。
  9. 根据权利要求6所述的方法,其特征在于,所述更新所述目标电子设备的控件,包括:
    基于所述多个电子设备的设备信息与所述多个控件标识信息的对应关系,确定与所述目标电子设备的控件标识信息对应的目标电子设备的设备标识信息;
    向云端发送状态更新请求消息,所述状态更新请求消息包括所述目标电子设备的设备标识信息和所述目标电子设备的状态更新信息,所述状态更新请求消息用于指示所述云端将所述目标电子设备的当前状态更新为所述状态更新信息指示的状态;
    接收所述云端发送的状态更新响应消息,所述状态更新响应消息包括所述目标电子设备的设备标识信息与所述所述目标电子设备的当前状态信息,所述当前状态信息用于指示所述目标电子设备基于所述云端的指示更新后的状态;
    基于所述多个电子设备的设备信息与所述多个控件标识信息的对应关系,确定与所述目标电子设备的设备标识信息对应的所述目标电子设备的控件标识信息;
    向所述目标应用传输所述目标电子设备的控件标识信息与所述当前状态信息,用于指示所述目标应用更新所述目标电子设备的控件;
    获取所述目标应用生成的对应于所述目标电子设备的新控件,将所述目标电子设备的控件更新为所述新控件;所述新控件为所述目标应用基于所述当前状态信息生成的。
  10. 一种中控设备,其特征在于,包括:
    一个或多个处理器;
    存储器;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序存储在所述存储器上,当所述计算机程序被所述一个或多个处理器执行时,使得所述中控设备执行以下步骤:
    基于第一配置信息,将显示区域划分为多个网格;所述配置信息用于指示所述显示区域的网格数量与单一网格的尺寸;
    基于第二配置信息,确定多个功能区域在所述显示区域中的布局;其中,所述第二配置信息用于指示所述多个功能区域中的每个功能区域所占网格的数量和每个功能区域在所述显示区域中的位置;
    在所述多个功能区域的至少一个功能区域中,显示多个设备控件;所述多个设备控件与所述中控设备控制的多个电子设备一一对应;每个所述设备控件中包括对应的电子设备的设备信息;所述电子设备的设备信息为所述中控设备从云端获取到的。
  11. 根据权利要求10所述的设备,其特征在于,所述第一配置信息包括第一数量信息和尺寸信息,所述第一数量信息用于指示所述显示区域的横向方向的网格数量与所述显示区域的纵向方向的网格数量;所述尺寸信息用于指示所述单一网格的宽度与高度。
  12. 根据权利要求11所述的设备,其特征在于,所述多个网格在所述显示区域的横向方向与纵向方向上均匀排布。
  13. 根据权利要求10所述的设备,其特征在于,所述第二配置信息包括第二数量信息和起始位置信息,所述第二数量信息用于指示所述多个功能区域中的每个功能区域所占网格数量;所述起始位置信息用于指示每个所述功能区域中的起始网格在所述显示区域中的位置。
  14. 根据权利要求10所述的设备,其特征在于,当所述计算机程序被所述一个或多个处理器执行时,使得所述中控设备执行以下步骤:
    从所述云端获取所述多个电子设备的设备信息,所述设备信息包括以下至少之一:单一电子设备的设备标识信息、单一电子设备的类型、单一电子设备的状态信息与单一电子设备的允许调节范围信息;
    为所述多个电子设备中的每个电子设备生成对应的控件标识信息,并保存所述多个电子设备的设备信息与多个控件标识信息的对应关系;
    向目标应用指示部分设备信息与为所述多个电子设备生成的多个设备标识信息,其中,所述部分设备信息包括所述设备信息中的至少一个信息;
    在所述至少一个功能区域中,显示所述多个设备控件;其中,所述多个设备控件为所述目标应用基于所述部分设备信息生成的。
  15. 根据权利要求14所述的设备,其特征在于,当所述计算机程序被所述一个或多 个处理器执行时,使得所述中控设备执行以下步骤:
    获取所述目标应用的触摸事件信息,所述触摸事件信息包括目标电子设备的控件标识信息与所述目标电子设备的状态更新信息,所述触摸事件信息用于指示接收到对所述目标电子设备的控件的触摸事件,所述触摸事件用于指示更新所述目标电子设备的状态,所述目标电子设备属于所述多个电子设备;
    对所述目标电子设备的控件标识信息与所述触摸事件进行校验;
    在所述目标电子设备的控件标识信息与触摸事件校验成功后,更新所述目标电子设备的控件。
  16. 根据权利要求15所述的设备,其特征在于,当所述计算机程序被所述一个或多个处理器执行时,使得所述中控设备执行以下步骤:
    检测所述目标电子设备的控件标识信息是否失效,其中,所述目标电子设备的控件标识信息在所述中控设备未显示所述多个功能区域的情况下失效;所述目标电子设备的控件标识信息在所述中控设备显示所述多个功能区域的情况下有效;
    检测到所述电子设备的控件标识信息有效,确定所述目标电子设备校验成功。
  17. 根据权利要求15所述的设备,其特征在于,当所述计算机程序被所述一个或多个处理器执行时,使得所述中控设备执行以下步骤:
    基于触摸传感器检测的参数,确定是否接收到对所述显示区域的触摸操作;
    检测到发生对所述显示区域的触摸操作,确定所述触摸事件校验成功。
  18. 根据权利要求15所述的设备,其特征在于,当所述计算机程序被所述一个或多个处理器执行时,使得所述中控设备执行以下步骤:
    基于所述多个电子设备的设备信息与所述多个控件标识信息的对应关系,确定与所述目标电子设备的控件标识信息对应的目标电子设备的设备标识信息;
    向云端发送状态更新请求消息,所述状态更新请求消息包括所述目标电子设备的设备标识信息和所述目标电子设备的状态更新信息,所述状态更新请求消息用于指示所述云端将所述目标电子设备的当前状态更新为所述状态更新信息指示的状态;
    接收所述云端发送的状态更新响应消息,所述状态更新响应消息包括所述目标电子设备的设备标识信息与所述所述目标电子设备的当前状态信息,所述当前状态信息用于指示所述目标电子设备基于所述云端的指示更新后的状态;
    基于所述多个电子设备的设备信息与所述多个控件标识信息的对应关系,确定与所述目标电子设备的设备标识信息对应的所述目标电子设备的控件标识信息;
    向所述目标应用传输所述目标电子设备的控件标识信息与所述当前状态信息,用于指示所述目标应用更新所述目标电子设备的控件;
    获取所述目标应用生成的对应于所述目标电子设备的新控件,将所述目标电子设备的控件更新为所述新控件;所述新控件为所述目标应用基于所述当前状态信息生成的。
  19. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-9任一项所述的方法。
  21. 一种芯片,其特征在于,包括一个或多个接口电路和一个或多个处理器;所述接口电路用于从电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,使得所述电子设备执行权利要求1-9任一项所述的方法。
PCT/CN2023/086259 2022-04-07 2023-04-04 控制方法及中控设备 WO2023193720A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210357767.4A CN116931802A (zh) 2022-04-07 2022-04-07 控制方法及中控设备
CN202210357767.4 2022-04-07

Publications (1)

Publication Number Publication Date
WO2023193720A1 true WO2023193720A1 (zh) 2023-10-12

Family

ID=88244062

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/086259 WO2023193720A1 (zh) 2022-04-07 2023-04-04 控制方法及中控设备

Country Status (2)

Country Link
CN (1) CN116931802A (zh)
WO (1) WO2023193720A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007991A (zh) * 2014-06-06 2014-08-27 百度在线网络技术(北京)有限公司 应用程序界面布局调整方法和装置
WO2016189645A1 (ja) * 2015-05-26 2016-12-01 三菱電機株式会社 状態表示装置、コントローラ、状態表示方法、及び、プログラム
CN110704087A (zh) * 2019-09-30 2020-01-17 浙江大搜车软件技术有限公司 页面生成方法、装置、计算机设备和存储介质
CN113126870A (zh) * 2019-12-30 2021-07-16 佛山市云米电器科技有限公司 参数设置方法、智能冰箱及计算机可读存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104007991A (zh) * 2014-06-06 2014-08-27 百度在线网络技术(北京)有限公司 应用程序界面布局调整方法和装置
WO2016189645A1 (ja) * 2015-05-26 2016-12-01 三菱電機株式会社 状態表示装置、コントローラ、状態表示方法、及び、プログラム
CN110704087A (zh) * 2019-09-30 2020-01-17 浙江大搜车软件技术有限公司 页面生成方法、装置、计算机设备和存储介质
CN113126870A (zh) * 2019-12-30 2021-07-16 佛山市云米电器科技有限公司 参数设置方法、智能冰箱及计算机可读存储介质

Also Published As

Publication number Publication date
CN116931802A (zh) 2023-10-24

Similar Documents

Publication Publication Date Title
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
WO2021052263A1 (zh) 语音助手显示方法及装置
WO2021169337A1 (zh) 屏下指纹显示方法及电子设备
WO2021213164A1 (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2021036585A1 (zh) 一种柔性屏显示方法和电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2021104104A1 (zh) 一种高能效的显示处理方法及设备
WO2021083128A1 (zh) 一种声音处理方法及其装置
CN113961157B (zh) 显示交互系统、显示方法及设备
WO2022127632A1 (zh) 一种资源管控方法及设备
WO2021036898A1 (zh) 折叠屏设备中应用打开方法及相关装置
WO2021253975A1 (zh) 应用程序的权限管理方法、装置和电子设备
US12032938B2 (en) Plug-in installation method, apparatus, and storage medium
WO2021052407A1 (zh) 一种电子设备操控方法及电子设备
WO2023179123A1 (zh) 蓝牙音频播放方法、电子设备及存储介质
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2023241209A9 (zh) 桌面壁纸配置方法、装置、电子设备及可读存储介质
WO2023193720A1 (zh) 控制方法及中控设备
CN110737916A (zh) 通信终端及处理方法
WO2024012398A1 (zh) 消息共享方法及相关设备
CN114125738B (zh) 数据传输控制方法及相关装置
WO2023142940A1 (zh) 应用组件分享方法及相关设备
WO2023236939A1 (zh) 应用组件交互方法及相关设备
CN115941836B (zh) 一种界面显示方法、电子设备及存储介质
WO2023142943A1 (zh) 应用组件设置方法及相关设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23784283

Country of ref document: EP

Kind code of ref document: A1