WO2021104122A1 - Method and apparatus for responding to call request, and electronic device - Google Patents

Method and apparatus for responding to call request, and electronic device Download PDF

Info

Publication number
WO2021104122A1
WO2021104122A1 PCT/CN2020/129736 CN2020129736W WO2021104122A1 WO 2021104122 A1 WO2021104122 A1 WO 2021104122A1 CN 2020129736 W CN2020129736 W CN 2020129736W WO 2021104122 A1 WO2021104122 A1 WO 2021104122A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
cluster
scene mode
electronic device
mode
Prior art date
Application number
PCT/CN2020/129736
Other languages
French (fr)
Chinese (zh)
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 WO2021104122A1 publication Critical patent/WO2021104122A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/32Connectivity information management, e.g. connectivity discovery or connectivity update for defining a routing cluster membership

Definitions

  • This application relates to the field of electronic technology, and in particular to a method, device and electronic equipment for responding to call demand.
  • the process of responding to call requirements is: user A’s watch B and mobile phone C log in to user A’s account, and user D uses mobile phone E to make a call to user A through user A’s account.
  • user A's watch B and mobile phone C will ring at the same time, and user A can choose watch B or mobile phone C to answer user D's call.
  • the embodiments of the present application provide a call demand response method and electronic equipment, which are used to improve the rationality and convenience of call demand response.
  • an embodiment of the present application provides a call demand response method, which is applied to a cluster head device, and includes:
  • At least one first electronic device and at least one first response instruction that responds to the at least one call demand are obtained according to the operating conditions, and at least one first electronic device and at least one first response instruction are both associated with at least one One-to-one correspondence with call requirements;
  • the cluster head device obtains the first electronic device that responds to the call demand according to the running status of the device cluster in the first scenario mode. , Since the actual operation of electronic equipment is taken into account, it helps to improve the rationality of call demand response.
  • the first electronic device that responds to the call demand does not need to be manually selected by the user, which helps to improve the convenience of responding to the call demand.
  • the cluster head device is designated by the user; or, the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device.
  • the cluster head device is specified by the user, or the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device, the cluster is selected in various scenarios.
  • the head device is the best, and then based on the best cluster head device, the first electronic device and the first response instruction that respond to the call demand are obtained, and the corresponding first response instruction is sent to the first electronic device, which helps Improve the efficiency of call demand response.
  • the cluster head device includes a display screen, and obtaining the first scene mode corresponding to the device cluster includes:
  • a scene mode interface is displayed on the display screen, the scene mode interface includes a first prompt message and a plurality of scene modes, and the first prompt message is used to instruct the user to select a scene mode from the plurality of scene modes as the scene mode of the device cluster;
  • the scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
  • the first scene mode corresponding to the device cluster is obtained based on the user's touch operation on the scene mode interface. Therefore, the user can select a suitable scene mode as the first scene mode corresponding to the device cluster, which helps to improve User experience.
  • obtaining the first scene mode corresponding to the device cluster includes:
  • the historical scene mode record includes the mapping relationship between the time period and the scene mode
  • the target scene mode is determined as the first scene mode corresponding to the device cluster.
  • the first scene mode corresponding to the device cluster is obtained based on the historical scene mode records and the current time, without the user manually selecting on the scene mode interface, which improves the convenience of selecting the first scene mode corresponding to the device cluster Sex.
  • the device cluster includes U electronic devices, and U is an integer greater than 1.
  • Obtaining the operating status of the device cluster in the first scenario mode includes:
  • the device cluster includes cluster head devices and (U-1) electronic devices;
  • U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  • the cluster head device obtains the operating status of the device cluster in the first scenario mode, so that the cluster head device determines the first electronic device that responds to the call demand based on the operating status of the device cluster in the first scenario mode, and then Improve the rationality of call demand response.
  • the device cluster includes V electronic devices, and V is an integer greater than 1.
  • Obtaining the operating status of the device cluster in the first scenario mode includes:
  • the electronic device feedback device information and function information, the device cluster includes (V-1) electronic devices and cluster head devices;
  • V second operating information corresponding to the first scenario mode according to the pre-stored device information, the mapping relationship between the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
  • V pieces of second device information, V pieces of second function information, and V pieces of second operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  • the cluster head device obtains the operating status of the device cluster in the first scenario mode, so that the cluster head device can determine the first electronic device that responds to the call demand based on the operating status of the device cluster in the first scenario mode.
  • the rationality of functional response is improved.
  • obtaining at least one first electronic device and at least one first response instruction that responds to at least one call demand according to the operating condition includes:
  • Input at least one call demand and operation status into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
  • At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
  • the cluster head device obtains the first electronic device that responds to the call demand based on the operation of the device cluster in the first scenario mode. Since the operation of the electronic device is taken into account, it helps to improve the call demand response. rationality. At the same time, there is no need for the user to manually select an electronic device that responds to the call demand, which helps to improve the convenience of responding to the call demand.
  • the method further includes:
  • the user can switch the scene mode at any time, which helps to improve the convenience of switching the scene mode.
  • an embodiment of the present application provides a call demand response device, which is applied to a cluster head device, and includes:
  • An obtaining unit configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
  • the obtaining unit is also used to obtain the operating status of the device cluster in the first scenario mode
  • the obtaining unit is further configured to obtain at least one first electronic device that responds to the at least one call request and at least one first response instruction, at least one first electronic device and at least one first response instruction, according to operating conditions, when at least one call demand is detected.
  • the response commands all correspond to at least one call demand one-to-one;
  • the sending unit is configured to send the corresponding first response instruction to each first electronic device in the at least one first electronic device.
  • the present application provides a call demand response device.
  • the device includes a processor, a communication interface, and a memory coupled with each other, wherein:
  • a processor configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
  • the communication interface is used to obtain the operating status of the device cluster in the first scenario mode
  • the processor is further configured to, when at least one call demand is detected, obtain at least one first electronic device and at least one first response instruction that responds to the at least one call demand, at least one first electronic device and at least one first response instruction according to the operating conditions.
  • the response commands all correspond to at least one call demand one-to-one;
  • the communication interface is also used to send the corresponding first response instruction to each first electronic device in the at least one first electronic device.
  • the present application provides a computer-readable storage medium that stores computer instructions, and the computer program is executed by hardware (such as a processor, etc.) to implement any of the methods executed by the call demand response device in the embodiments of the present application. Part or all of the steps.
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute part or all of the steps of the call demand response method in the above aspects.
  • an embodiment of the present application provides a chip system.
  • the chip system includes a processor for supporting an electronic device to implement part or all of the steps of the call demand response method in the above aspects.
  • FIG. 1 is a schematic diagram of the architecture of a call system provided by an embodiment of the present application
  • FIG. 2 shows a schematic diagram of the structure of the electronic device 100
  • FIG. 3 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • FIG. 4A is a schematic flowchart of a call demand response method provided by an embodiment of the present application.
  • 4B is a schematic diagram of obtaining a first scenario mode corresponding to a device cluster according to an embodiment of the present application
  • 4C is a schematic flowchart of a method for selecting a cluster head device from a device cluster according to an embodiment of the present application
  • 4D is a schematic flowchart of a method for selecting cluster head devices from watches, mobile phones, and tablet computers according to an embodiment of the present application;
  • 4E is a schematic flowchart of another method for selecting a cluster head device from a device cluster according to an embodiment of the present application
  • 4F is a schematic flowchart of another method for selecting a cluster head device from a watch, a mobile phone, and a tablet computer according to an embodiment of the present application;
  • FIG. 4G is a cluster head device provided by an embodiment of the present application to obtain the operating status of the device cluster in the first scenario mode and obtain at least one first electronic device and at least one first response instruction that responds to at least one call request according to the operating status Schematic diagram of the process of the method;
  • FIG. 4H is a mobile phone provided by an embodiment of the present application to obtain the operation status of a watch, a mobile phone, and a tablet computer in the power saving mode, and obtain two first electronic devices and two first responses in response to incoming calls and video calls according to the operation status.
  • FIG. 4I is another cluster head device provided by an embodiment of the present application to obtain the operating condition of the device type in the first scenario mode and obtain at least one first electronic device and at least one first response that responds to at least one call request according to the operating condition.
  • Figure 4J is another mobile phone provided by an embodiment of the present application to obtain the operating conditions of watches, mobile phones, and tablet computers in performance mode and obtain two first electronic devices and two first responses to respond to incoming calls and video calls according to the operating conditions.
  • FIG. 5 is a block diagram of functional units of a call demand response device provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a call demand response device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • FIG. 1 is a schematic diagram of the architecture of a call system provided by an embodiment of the application.
  • the calling system may include: a calling party device, that is, a first electronic device 100; a called party device, including a second electronic device 200, a third electronic device 300, and a fourth electronic device 400; and a server 500.
  • any two electronic devices among the second electronic device 200, the third electronic device 300, and the fourth electronic device 400 can communicate through short-range wireless communication technology, and the short-range wireless communication technology can be wireless Internet access (Wi-Fi) Technology, Bluetooth technology, Zigbee technology, etc.; the second electronic device 200, the third electronic device 300, and the fourth electronic device 400 that log in to the same account form a device cluster.
  • the device cluster includes cluster head devices, which can It is one of the second electronic device 200, the third electronic device 300, and the fourth electronic device 400.
  • the first electronic device 100 can be used to send a call request to the cluster head device through the first account.
  • the first account can be associated with the cluster head device.
  • the association relationship may be stored on the server 500.
  • the first electronic device 100 can query the devices associated with the first account on the server 500, such as the second electronic device 200, the third electronic device 300, and the fourth electronic device 400.
  • the second electronic device 200 is a cluster head device. When the first electronic device 100 makes a call through the first account, the second electronic device 200 receives the call request sent by the first electronic device 100.
  • the called party device may include: the second electronic device 200, the third electronic device 300, and the fourth electronic device 400. If the cluster head device is the electronic device 200, the electronic device 200 can select the corresponding electronic device from the second electronic device 200, the third electronic device 300, and the fourth electronic device 400 to respond when receiving the paging initiated by the server 500 .
  • the server 500 may be used to store the corresponding relationship between the account and the associated device.
  • the server 500 stores the first account and the devices associated with the first account: the second electronic device 200, the third electronic device 300, and the fourth electronic device 400.
  • the server 500 may store the first account and the device identification corresponding to the first account: the device identification of the second electronic device 200, the device identification of the third electronic device 300, and the device identification of the fourth electronic device 400.
  • the server 500 may store the first account "136********” and other accounts, such as the account "155********”.
  • the service can also store the device identification corresponding to each account.
  • the first account “136********” corresponds to the device identification of the mobile phone 200, the device identification of the watch 300, and the device identification of the speaker 400.
  • the account "155********” corresponds to the device identification of the mobile phone 210, the device identification of the watch 310, the device identification of the TV 320, and the device identification of the speaker 410.
  • the mobile phone 210, the watch 310, the TV 320 and the speaker 410 are shown in the figure. Not shown in 1.
  • the communication connection between the calling party device, the called party device and the server 500 is described below.
  • the first electronic device 100 may establish a communication connection with the server 500.
  • the communication connection between the first electronic device 100 and the server 500 can be used for the first electronic device 100 to obtain the device associated with the account from the server 500 and can also be used for sending a call request to the server 500.
  • the server 500 can establish a communication connection with the cluster head device in the called party device, and the communication connection can be used to address the cluster head device.
  • the first electronic device 100 may indirectly page the called party device via the server 500. As shown in FIG. 1, the first electronic device 100 may send a call request for paging the cluster head device to the server 500. Taking the cluster head device as the second electronic device 200 as an example, the call request may carry the device identification of the second electronic device 200.
  • the server 500 can obtain the communication ID of the second electronic device 200 according to the device identification of the second electronic device 200, and address the second electronic device 200 according to the communication ID, and initiate a paging to the second electronic device 200.
  • the device selects an electronic response call request from the second electronic device 200, the third electronic device 300, and the fourth electronic device 400.
  • the calling party device may be connected to a data network (for example, an operator data network) or a local area network, so that the calling party device establishes a communication connection with the server 500.
  • the cluster head device included in the called party device can also be connected to a data network or a local area network, so that the server 500 can establish a communication connection with the cluster head device, and the communication connection is used to address the cluster head device.
  • the server 500 fails to address the cluster head device. Then the server 500 cannot indirectly initiate a paging to the called party device, resulting in the failure of the calling party device to page the called party device.
  • the calling device fails to send a paging request to the server 500, resulting in the failure of the calling device to page the called device.
  • the third electronic device 300 is not limited to a smart watch, and may also be a wearable device such as a bracelet.
  • the fourth electronic device 400 is not limited to a smart speaker, and may also be a terminal device such as a notebook computer, a palmtop computer, a tablet computer, a smart TV, a portable media playback device, and a vehicle-mounted media playback device.
  • the electronic devices involved in the embodiments of the present application are introduced below.
  • the electronic devices are cluster head devices.
  • the cluster head devices can be mobile phones, watches, tablet computers, smart speakers, smart routers, and the like.
  • FIG. 2 shows a schematic structural diagram of the electronic device 100.
  • 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, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 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 gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and the environment Light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an 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.
  • AP application processor
  • modem processor modem processor
  • 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
  • NPU neural-network processing unit
  • the different processing units may 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 according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter/receiver
  • 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 (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces.
  • the processor 110 may couple 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.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication 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 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both I2S interface and 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 two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the 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 realize the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize 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, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • 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 specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • 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 the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the 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 supply 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, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • 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 by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves 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 for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided 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.
  • the 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 and 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 a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and 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) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • 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 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • Wireless communication technologies can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), and broadband code division. Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • CDMA code division multiple access
  • CDMA broadband code division. Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc.
  • GNSS can include global positioning system (GP
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, which is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may 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 transfers 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 formats of image signals.
  • the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
  • 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 the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the 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, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may 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 realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the 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 a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into 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 can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to 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 according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity is 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 acts on 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 movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract 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.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of 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 apply to applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the 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 to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode 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 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • 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 touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J 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 avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts 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 may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 may receive key input, and generate key signal input 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 incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts 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 electronic device 100 may also include a power interface (POWER), a reset button (RESET), a modem (MODEM) or a switch and router connection port (WAN), a computer and router connection port (LAN) .
  • POWER power interface
  • REET reset button
  • MODEM modem
  • WAN switch and router connection port
  • LAN computer and router connection port
  • 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.
  • an operating system with a layered architecture is taken as an example to illustrate the software structure of the electronic device 100.
  • FIG. 3 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the operating system is divided into four layers, from top to bottom, the application layer, the application framework layer, the runtime and system libraries, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a notification manager, a content provider, a view system, a phone manager, and a resource manager.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • Data can include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • the phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • Runtime includes core libraries and virtual machines. The runtime is responsible for the scheduling and management of the system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library.
  • the application layer and application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination 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 still image files.
  • the media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 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 corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.).
  • the original input events are stored in the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or videos.
  • FIG. 4A is a call demand response method provided by an embodiment of the present application.
  • the call demand response method includes steps 401-404, which are specifically as follows:
  • the cluster head device obtains the first scene mode corresponding to the device cluster, and the device cluster includes the cluster head device.
  • the device cluster includes multiple electronic devices, and the multiple electronic devices include at least two of the following: watches, mobile phones, tablets, desktop computers, Bluetooth headsets, smart speakers, smart routers, and so on.
  • the first scenario mode may be a power saving mode, a performance mode, a sports mode, a game mode, etc.; the optimization goal of the power saving mode is to maximize the use time of the device with the fastest power consumption in the device cluster; performance mode The optimization goal of the game mode is to maximize the user's performance experience; the optimization goal of the sports mode is to maximize the user's sports experience; the optimization goal of the game mode is to maximize the user's gaming experience. If the device cluster includes a watch, a mobile phone, and a tablet computer, and the first scene mode corresponding to the device cluster is a power saving mode, then the scene modes of the watch, mobile phone, and tablet computer are all power saving modes.
  • obtaining the first scene mode corresponding to the device cluster by the cluster head device includes:
  • the cluster head device displays a scene mode interface through the display screen.
  • the scene mode interface includes a first prompt message and a plurality of scene modes.
  • the first prompt message is used to prompt the user to select one of the plurality of scene modes.
  • the scene mode is used as the scene mode of the device cluster;
  • the cluster head device When a touch operation for the scene mode interface is detected, the cluster head device obtains the scene mode corresponding to the touch operation;
  • the cluster head device determines the scene mode corresponding to the touch operation as the first scene mode corresponding to the device cluster.
  • Multiple scene modes can be presented directly on the scene mode interface, or can be presented on the scene mode interface by pulling down the scene mode options.
  • the scene mode interface of the device cluster can be opened through the device cluster APP.
  • the cluster head device obtains the first scene mode corresponding to the device cluster
  • the cluster head device can also obtain the first scene mode corresponding to the device cluster through the display screens of other electronic devices in the device cluster.
  • FIG. 4B is a schematic diagram of obtaining the first scene mode corresponding to a device cluster according to an embodiment of the present application.
  • the cluster head device is a mobile phone
  • the mobile phone displays the scene mode interface on the display screen.
  • the scene mode interface includes the first prompt information (please select a scene mode from the following four modes as the first scene mode corresponding to the device cluster), power saving mode, performance mode, sports mode and game mode.
  • the power saving mode is determined as the first scene mode corresponding to the device cluster.
  • the first scene mode corresponding to the device cluster is obtained based on the user's touch operation on the scene mode interface. Therefore, the user can select a suitable scene mode as the first scene mode corresponding to the device cluster, which helps to improve User experience.
  • obtaining the first scene mode corresponding to the device cluster by the cluster head device includes:
  • the cluster head device includes a speaker and a microphone, the cluster head device sends out the second prompt information through the speaker, and the second prompt information is used to prompt the user to select one scene mode from a plurality of scene modes as the scene mode of the device cluster;
  • the cluster head device collects voice information through a microphone
  • the cluster head device performs voice-to-text conversion on the voice information to obtain the text content corresponding to the voice information
  • the cluster head device determines the text content as the first scene mode corresponding to the device cluster.
  • the second prompt message may be: Please select a scenario mode from the power saving mode, performance mode, sports mode, and game mode as the first scenario mode corresponding to the device cluster.
  • the cluster head device obtains the first scene mode corresponding to the device cluster
  • the cluster head device can also obtain the first scene mode corresponding to the device cluster through the speakers and microphones of other electronic devices in the device cluster, and the speakers and the microphone correspond to the same electronic device.
  • the first scene mode corresponding to the device cluster is obtained based on the user's voice information, and the user does not need to manually select on the scene mode interface, so that not only can the user select the appropriate scene mode as the first scene corresponding to the device cluster It also improves the convenience of selecting the first scene mode corresponding to the device cluster.
  • obtaining the first scene mode corresponding to the device cluster by the cluster head device includes:
  • the cluster head device obtains the historical scene mode record, and the historical scene mode record includes the mapping relationship between the time period and the scene mode;
  • the cluster head device obtains the current time
  • the cluster head device determines the target scene mode corresponding to the time zone at the current time according to the mapping relationship between the time zone and the scene mode;
  • the cluster head device determines the target scene mode as the first scene mode corresponding to the device cluster.
  • the mapping relationship between the time period and the scene mode is stored in the cluster head device in advance.
  • the mapping relationship between the time period and the scene mode is as follows Table 1 shows:
  • the scene mode is the power saving mode; if the time period is the second time period, then the scene mode is the performance mode; if the time period is the third time period, then the scene mode is the sports mode; if The time period is the fourth time period, then the scene mode is the game mode.
  • the first scene mode corresponding to the device cluster is obtained based on the historical scene mode records and the current time, without the user manually selecting on the scene mode interface, which improves the convenience of selecting the first scene mode corresponding to the device cluster Sex.
  • the cluster head device obtains the running status of the device cluster in the first scenario mode.
  • the operating status of the device cluster in the first scenario mode includes device information, function information, and operating information corresponding to the first scenario mode of each electronic device included in the device cluster.
  • Device information includes device name and device model.
  • Device names can include watches, mobile phones, tablets, desktops, Bluetooth headsets, smart speakers, smart routers, etc.
  • the function information includes at least one function and at least one function usage status. At least one function usage status corresponds to at least one function.
  • the functions can include audio, video, Bluetooth, cellular, WLAN, vibration, etc.
  • the function usage status includes enable and Not activated.
  • the operating information of the electronic device corresponding to the first scenario mode may include the current remaining power and power consumption rate of the electronic device, and the additional power consumption for enabling each of the at least one function Rate.
  • the additional power consumption rate for each function of at least one function is pre-stored in the electronic device.
  • the additional power consumption rate for enabling the target function is the target function within a period of time when the electronic device only enables the target function.
  • the ratio of the corresponding power consumption to the duration of this period of time, and the power consumption corresponding to the target function is the difference between the total power consumption of the electronic device and the power consumption of the electronic device during this period of time.
  • the operating information of the electronic device corresponding to the first scenario mode may include the performance utility of enabling each of the at least one function, and the performance utility is achieved by the electronic device enabling a certain function
  • the degree of user satisfaction, and the performance effect of enabling each of the at least one function may be user-specified.
  • the cluster head device obtains at least one first electronic device and at least one first response instruction that responds to the at least one call demand, at least one first electronic device and at least one first response according to the operating conditions The instructions all correspond to at least one call demand one-to-one.
  • Call requirements can include incoming calls, voice calls, video calls, and so on.
  • the cluster head device may obtain the at least one first electronic device and the at least one first response instruction that responds to the at least one call request according to the operating conditions, either in a serial manner or in a parallel manner.
  • the cluster head device obtains the first electronic device that responds to the call demand based on the operation of the device cluster in the first scenario mode. Since the operation of the electronic device is taken into account, it helps to improve the call demand response. rationality. At the same time, there is no need for the user to manually select the electronic device to respond to the call demand, which helps to improve the convenience of the call demand response.
  • the cluster head device sends its corresponding first response instruction to each of the at least one first electronic device.
  • the cluster head device may send its corresponding first response instruction to each of the at least one first electronic device in a serial manner or in a parallel manner.
  • the first response instruction can be ringing or vibration; specifically, if the current time is within the preset meeting time period, then the first response instruction is vibration, and the cluster head device sends the first electronic The device sends the first response instruction, the first electronic device receives the first response instruction, and displays the incoming call interface and vibrates; if the current time is not in the meeting time period, then the first response instruction is a bell, and the cluster head device sends the first electronic device Sending the first response instruction, the first electronic device receives the first response instruction, displays the incoming call interface and rings; the above is only an exemplary description of the first response instruction, and should not be understood as a limitation on the first response instruction.
  • the cluster head device obtains the first electronic device that responds to the call demand according to the running status of the device cluster in the first scenario mode. , Since the actual operation of electronic equipment is taken into account, it helps to improve the rationality of call demand response.
  • the first electronic device that responds to the call demand does not need to be manually selected by the user, which helps to improve the convenience of responding to the call demand.
  • the cluster head device is designated by the user; if the device cluster includes a mobile phone and at least one of the following: watches, tablets, desktops, and Bluetooth headsets, then the cluster head device designated by the user is a mobile phone; if the device cluster includes Smart speakers and at least one of the following: watches, mobile phones, tablets, desktops, Bluetooth headsets, then the cluster head device designated by the user is a smart speaker; if the device cluster includes smart routers and at least one of the following: watches, phones, tablets , Desktop, Bluetooth headset, then the user-specified cluster head device is a smart router; if the device cluster includes smart speakers, smart routers, and at least one of the following: watches, mobile phones, tablets, desktops, Bluetooth headsets, then the user-specified The cluster head device is a smart speaker or a smart router.
  • the cluster head device is a smart speaker or a smart router
  • the user is generally in a smart home scene and uses the smart speaker or smart router as the cluster head device without worrying about insufficient power.
  • the cluster head device is specified by the user
  • the cluster head device is selected from the device cluster based on the communication capability, data computing capability, and data storage capability of the electronic device.
  • the communication capability of the electronic device is determined according to the transmission rate and coverage of the electronic device, and the selection of the cluster head device from the device cluster can be performed periodically.
  • FIG. 4C is a schematic flowchart of a method for selecting a cluster head device from a device cluster according to an embodiment of the present application.
  • the device cluster includes N electronic devices, and N is an integer greater than 1.
  • the slave device cluster The method for selecting a cluster head device in, includes steps A1-A10, which are specifically as follows:
  • A1 The target electronic device sends (N-1) first requests, (N-1) first requests and (N- 1) There is a one-to-one correspondence between electronic devices, and the first request is used to instruct the corresponding electronic device to feed back communication capabilities, data computing capabilities, and data storage capabilities.
  • the target electronic device is the electronic device with the highest polling level among the N electronic devices; if the N electronic devices include watches, mobile phones, tablets, desktops, Bluetooth headsets, smart speakers, and smart routers, then N
  • the above is only an exemplary description of "the order of the size of the polling levels of the N electronic devices", and should not be understood as a limitation on the "sequence of the size of the polling levels of the N electronic devices".
  • the communication capability, data operation capability, and data storage capability of the electronic device are pre-stored in the electronic device, and the communication capability, data operation capability, and data storage capability of the electronic device may be configured by the user; the above is only The illustrative description of "electronic equipment's communication capabilities, data computing capabilities, and data storage capabilities” should not be understood as a limitation on “electronic equipment's communication capabilities, data computing capabilities, and data storage capabilities”.
  • A2 (N-1) electronic devices receive (N-1) first requests sent by the target electronic device, and send (N-1) first communication capabilities and (N-1) first requests to the target electronic device One data computing capability and (N-1) first data storage capability, (N-1) first communication capability, (N-1) first data computing capability and (N-1) first data storage The abilities are in one-to-one correspondence with (N-1) electronic devices.
  • the target electronic device receives (N-1) first communication capabilities, (N-1) first data computing capabilities, and (N-1) first data storage capabilities to obtain the first communication capability of the target electronic device , The first data computing capability and the first data storage capability.
  • A4 The target electronic device judges whether the N first communication capabilities are the same
  • step A6 If yes, go to step A6.
  • the target electronic device determines the electronic device corresponding to the largest communication capability among the N first communication capabilities as the cluster head device.
  • A6 The target electronic device judges whether the computing capabilities of the N first data are the same
  • step A7 If not, go to step A7.
  • step A8 If yes, go to step A8.
  • the target electronic device determines the electronic device corresponding to the largest data operation capability among the N first data operation capabilities as the cluster head device.
  • A8 The target electronic device judges whether the N first data storage capabilities are the same
  • the target electronic device determines the electronic device corresponding to the largest data storage capacity among the N first data storage capacities as the cluster head device.
  • the target electronic device determines any one of the N electronic devices as the cluster head device.
  • FIG. 4D is a flow diagram of a method for selecting cluster head devices from watches, mobile phones, and tablet computers according to an embodiment of the present application.
  • the cluster head devices are selected from watches, mobile phones, and tablet computers.
  • the method of the head device includes steps A11-A20, which are specifically as follows:
  • A11 The mobile phone sends the first request to both the watch and the tablet.
  • the first request is used to instruct the watch and the tablet to feed back the communication capabilities, data computing capabilities, and data storage capabilities;
  • A12 The watch receives the first request sent by the phone, and sends the watch’s communication capabilities, data computing capabilities and data storage capabilities to the phone; the tablet receives the first request sent by the phone, and sends the tablet’s communication capabilities to the phone. Data computing capacity and data storage capacity;
  • A13 The mobile phone receives the communication ability, data calculation ability and data storage ability of the watch and the communication ability, data calculation ability and data storage ability of the tablet computer, and obtains the communication ability, data calculation ability and data storage ability of the mobile phone;
  • A14 The mobile phone judges whether the three communication capabilities of the watch, mobile phone and tablet computer are the same;
  • step A15 If not, go to step A15.
  • A15 The mobile phone determines the electronic device corresponding to the largest communication capability among the three communication capabilities as the cluster head device.
  • A16 The mobile phone judges whether the three data computing capabilities of the mobile phone, mobile phone and tablet computer are the same;
  • step A17 If not, go to step A17.
  • A17 The mobile phone determines the electronic device corresponding to the largest data operation capability among the three data operation capabilities as the cluster head device.
  • A18 The mobile phone judges whether the three data storage capacities of the mobile phone, the mobile phone and the tablet computer are the same;
  • step A20 If yes, go to step A20.
  • A19 The mobile phone determines the electronic device corresponding to the largest data storage capacity among the three data storage capacities as the cluster head device.
  • A20 The mobile phone determines any electronic device among the watch, mobile phone and tablet computer as the cluster head device.
  • FIG. 4E is a schematic flowchart of another method for selecting a cluster head device from a device cluster provided by an embodiment of the present application.
  • the device cluster includes M electronic devices, and M is an integer greater than 1, the slave device
  • the method for selecting a cluster head device in a cluster includes steps B1-B7, which are specifically as follows:
  • the target electronic device sends (M-1) second requests, (M-1) second requests and (M- 1) There is a one-to-one correspondence between electronic devices, and the second request is used to instruct its corresponding electronic device to feed back communication capabilities, data computing capabilities, and data storage capabilities.
  • step B1 refers to the description of the above step A1, which will not be described here.
  • B2 (M-1) electronic device receives (M-1) second request sent by the target electronic device, and sends (M-1) second communication capability, (M-1) second request to the target electronic device Two data computing capabilities and (M-1) second data storage capabilities, (M-1) second communication capabilities, (M-1) second data computing capabilities and (M-1) second data storage The abilities are in one-to-one correspondence with (M-1) electronic devices.
  • the target electronic device receives (M-1) second communication capability, (M-1) second data computing capability, and (M-1) second data storage capability to obtain the second communication capability of the target electronic device , The second data computing capability and the second data storage capability.
  • the target electronic device obtains M first comprehensive scores, M first comprehensive scores and M electronics based on M second communication capabilities, M second data computing capabilities, M second data storage capabilities and comprehensive score formulas One-to-one correspondence between devices.
  • the comprehensive score formula is pre-stored in the target electronic device, and the comprehensive score formula is:
  • P is the comprehensive score
  • Q is the second communication capability
  • T 1 is the weight corresponding to the second communication capability
  • R is the second data computing capability
  • T 2 is the weight corresponding to the second data computing capability
  • S is the second data storage capability
  • T 3 is the weight corresponding to the second data storage capacity
  • B5 The target electronic device judges whether the M first comprehensive scores are the same
  • step B6 If not, go to step B6.
  • step B7 If yes, go to step B7.
  • the target electronic device determines the electronic device corresponding to the largest comprehensive score among the M first comprehensive scores as the cluster head device.
  • the target electronic device determines any one of the M electronic devices as the cluster head device.
  • the cluster head device is specified by the user, or the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device, the cluster is selected in various scenarios.
  • the head device is the best, and then based on the best cluster head device, the first electronic device and the first response instruction that respond to the call demand are obtained, and the corresponding first response instruction is sent to the first electronic device, which helps Improve the efficiency of call demand response.
  • FIG. 4F is a schematic flowchart of another method for selecting cluster head devices from watches, mobile phones, and tablets provided by an embodiment of the present application.
  • the cluster head device method includes steps B8-B14, which are specifically as follows:
  • the mobile phone sends a second request to both the watch and the tablet, and the second request is used to instruct the watch and the tablet to feed back the communication capabilities, data computing capabilities, and data storage capabilities.
  • the watch receives the second request from the mobile phone, and sends the watch’s communication capabilities, data computing capabilities and data storage capabilities to the mobile phone;
  • the tablet receives the second request from the mobile phone, and sends the tablet’s communication capabilities to the mobile phone.
  • Data computing capacity and data storage capacity are examples of
  • the mobile phone receives the communication ability, data calculation ability and data storage ability of the watch and the communication ability, data calculation ability and data storage ability of the tablet computer, and obtains the communication ability, data calculation ability and data storage ability of the mobile phone.
  • B11 According to the mobile phone's communication ability, data calculation ability and data storage ability of the watch, the communication ability, data calculation ability and data storage ability of the tablet computer, the communication ability, data calculation ability and data storage ability of the mobile phone, and the comprehensive score The formula obtains the comprehensive score of the watch, the comprehensive score of the tablet and the comprehensive score of the mobile phone.
  • B12 The mobile phone judges whether the three comprehensive scores of the watch, mobile phone and tablet computer are the same;
  • the mobile phone determines the electronic device corresponding to the largest comprehensive score among the three comprehensive scores as the cluster head device.
  • the mobile phone determines any electronic device among the watch, mobile phone and tablet computer as the cluster head device.
  • FIG. 4G is a cluster head device provided by an embodiment of the present application to obtain the operating status of the device cluster in the first scenario mode and obtain at least one first electronic device and at least one first electronic device that responds to at least one call request according to the operating status.
  • the device cluster includes U electronic devices, U is an integer greater than 1, the cluster head device obtains the operating status of the device cluster in the first scenario mode and responds to at least one call request according to the operating status
  • the method for at least one first electronic device and at least one first response instruction includes steps C1-C10, which are specifically as follows:
  • the cluster head device sends (U-1) third requests, (U-1) third requests and (U- 1) There is a one-to-one correspondence between electronic devices, and the third request is used to instruct its corresponding electronic device to feed back device information, function information, and operating information corresponding to the first scenario mode.
  • the device information, function information, and operation information corresponding to different scene modes of the electronic device are pre-stored in the electronic device.
  • C2 (U-1) electronic devices receive the (U-1) third request sent by the cluster head device, and send (U-1) first device information and (U-1) first device information to the cluster head device One function information and (U-1) first operation information corresponding to the first scene mode, (U-1) first device information, (U-1) first function information and (U-1) The first operating information is in one-to-one correspondence with (U-1) electronic devices.
  • the cluster head device receives (U-1) first device information, (U-1) first function information, and (U-1) first operating information, and obtains the first device information and first operation information of the cluster head device. A function information and first operation information corresponding to the first scene mode.
  • the device cluster includes U electronic devices, and U is an integer greater than 1, and the cluster head device obtains the operating status of the device cluster in the first scenario mode, including:
  • the cluster head device regularly receives (U-1) first device information, (U-1) first function information and (U-1) corresponding to the first scene mode sent by (U-1) electronic devices
  • the first operation information, U-1) first device information, (U-1) first function information, and (U-1) first operation information all correspond to (U-1) electronic devices one-to-one
  • the equipment cluster includes cluster head equipment and (U-1) electronic equipment;
  • the cluster head device obtains first device information, first function information, and first operating information corresponding to the first scenario mode of the cluster head device;
  • the cluster head device determines U pieces of first device information, U pieces of first function information, and U pieces of first operating information as the operating conditions of the device cluster in the first scenario mode.
  • the cluster head device passively receives (U-1) operating conditions of electronic devices in the first scenario mode, and obtains the operating conditions of the cluster head device in the first scenario mode, so as to facilitate the cluster head device
  • the first electronic device that responds to the call demand is determined based on the operating status of the device cluster in the first scenario mode, thereby improving the rationality of the call demand response.
  • the cluster head device determines U pieces of first device information, U pieces of first function information, and U pieces of first operating information as the operating conditions of the device cluster in the first scenario mode.
  • the cluster head device obtains the first call response model corresponding to the power saving mode according to the mapping relationship between the scenario mode and the call demand response model.
  • mapping relationship between the scenario mode and the call demand response model is stored in the cluster head device in advance.
  • mapping relationship between the scenario mode and the call demand response model is shown in Table 2 below:
  • the call demand response model is the first call demand response model; if the scene mode is the performance mode, then the call demand response model is the second call demand response model; if the scene mode is the sports mode, then the call The demand response model is the third call demand response model; if the scene mode is the game mode, then the call demand response model is the fourth call demand response model.
  • the cluster head device inputs at least one call demand and operation status into the first call demand response model.
  • the cluster head device obtains the current remaining power and power consumption rate of each electronic device according to the operating conditions, the additional power consumption rate for each function in at least one function, the power consumption rate for enabling incoming calls, and the power consumption for enabling video calls rate.
  • C8 The cluster head device calls the first call demand response function in the first call demand response model.
  • the first call demand response function is pre-stored in the first call demand response model, and the first call demand response function is:
  • I is the set formed by all the electronic devices included in the device cluster, i ⁇ I is any electronic device in the device cluster, the set of at least one call demand is S, and s ⁇ S is any one of the at least one call demand, Indicates that the electronic device i has the function s, Indicates that the electronic device i does not have the function s, Indicates the additional power consumption rate of the electronic device i to enable the function s, r i is the current remaining power of the electronic device, and z i is the power consumption rate of the electronic device, Indicates that the electronic device i enables the function s, Indicates that the function s is not enabled for the electronic device i.
  • the cluster head device is based on the current remaining power and power consumption rate of each electronic device, the additional power consumption rate for each function in at least one function, the power consumption rate for enabling incoming calls, the power consumption rate for enabling video calls, and the first A call demand response function obtains at least one first electronic device that responds to at least one call demand.
  • the cluster head device generates at least one first response instruction according to the at least one call demand and the at least one first electronic device, and the at least one first response instruction corresponds to the at least one call demand and the at least one first electronic device respectively.
  • the first response instruction includes a call request and the first electric device to which the call request is transmitted.
  • the cluster head device obtains the operating status of the device cluster in the first scenario mode, so that the cluster head device can determine the first electronic device that responds to the call demand based on the operating status of the device cluster in the first scenario mode. In turn, the rationality of the call demand response is improved.
  • FIG. 4H is a mobile phone provided in an embodiment of the application to obtain the operation status of a watch, a mobile phone, and a tablet computer in the power saving mode, and obtain two responses to incoming calls and video calls according to the operation status.
  • the mobile phone obtains the operation status of the watch, the mobile phone, and the tablet in the power saving mode and obtains the two first electronic devices that respond to the incoming call and the video call according to the operation status.
  • the method of the device and the two first response instructions includes steps C11-C20, which are specifically as follows:
  • the mobile phone sends a third request to both the watch and the tablet.
  • the third request is used to instruct the watch and the tablet to feed back device information, function information, and operating information corresponding to the power saving mode;
  • the watch receives the third request sent by the mobile phone, and sends the device information, function information and operation information corresponding to the power saving mode of the watch to the mobile phone;
  • the tablet receives the third request sent by the mobile phone, and sends the tablet to the mobile phone The equipment information, function information and operation information corresponding to the power saving mode;
  • the mobile phone receives the device information, function information and operation information of the watch, the device information, function information and operation information of the tablet computer, and obtains the device information, function information and operation information corresponding to the power saving mode of the mobile phone.
  • the mobile phone determines the device information, function information and operation information of the watch, the device information, function information and operation information of the tablet computer, and the device information, function information and operation information corresponding to the power saving mode of the mobile phone as the device The running status of the cluster in power saving mode.
  • the mobile phone obtains the first call response model corresponding to the power saving mode according to the mapping relationship between the scenario mode and the call demand response model.
  • C16 Enter the first call demand response model into the mobile phone's incoming calls, video calls, and the operation of the device cluster in the power-saving mode.
  • the mobile phone obtains the current remaining power and power consumption rate of each of the watch, mobile phone and tablet according to the operating conditions, the additional power consumption rate of each function in at least one function, the power consumption rate of the incoming call, and the video enable The power consumption rate of the call.
  • C18 The mobile phone calls the first call demand response function in the first call demand response model.
  • the mobile phone activates the additional power consumption rate of each function in at least one function, the power consumption rate when the incoming call is enabled, and the power consumption when the video call is enabled.
  • the power rate and the first call demand response function get the mobile phone to respond to the incoming call and the tablet to respond to the video call.
  • the mobile phone generates a response command based on the incoming call and the mobile phone, and generates another response command based on the video call and the tablet.
  • FIG. 4I is another cluster head device provided by an embodiment of the present application to obtain the operating condition of the device cluster in the first scenario mode and obtain at least one first electronic device that responds to at least one call request according to the operating condition.
  • the device cluster includes V electronic devices, where V is an integer greater than 1, and the cluster head device obtains the operating status of the device cluster in the first scenario mode and responds to at least one call according to the operating status
  • the method for requesting at least one first electronic device and at least one first response instruction includes steps D1-D11, which are specifically as follows:
  • the cluster head device sends (V-1) fourth requests, (V-1) fourth requests and (V- 1) There is a one-to-one correspondence between electronic devices, and the fourth request is used to instruct its corresponding electronic device to feed back device information and function information.
  • step D1 refers to the description of step C1 above, which will not be described here.
  • (V-1) electronic devices receive the (V-1) fourth request sent by the cluster head device, and send (V-1) second device information and (V-1) first device information to the cluster head device
  • the second function information, (V-1) second device information and (V-1) second function information are in one-to-one correspondence with (V-1) electronic devices.
  • the cluster head device receives (V-1) second device information and (V-1) second function information, and obtains the second device information and second function information of the cluster head device.
  • the cluster head device obtains V second operating information corresponding to the first scenario mode according to the mapping relationship between the device information, the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence.
  • mapping relationship between device information, scene mode and operation information is pre-stored in the cluster head device.
  • mapping relationship between device information, scene mode and operation information is shown in Table 3 below:
  • the operation information is operation information 11; if the device information is device information 1 and the scene mode is performance mode, then the operation information is operation information 12; if the device information If the device information is device information 2 and the scenario mode is power saving mode, then the operating information is operating information 21; if the device information is device information 2 and the scenario mode is performance mode, then the operating information is operating information 22; if the device information is device information 3. And the scene mode is the power saving mode, then the operation information is operation information 31; if the device information is device information 3 and the scene mode is the performance mode, then the operation information is operation information 32.
  • the cluster head device determines V second device information, V second function information, and V second operation information as the operation status of the device cluster in the first scenario mode.
  • the cluster head device includes V electronic devices, where V is an integer greater than 1, and the cluster head device obtains the operating status of the device cluster in the first scenario mode, including:
  • the cluster head device receives (V-1) second device information and (V-1) second function information sent by (V-1) electronic devices, (V-1) second device information and (V- 1)
  • the second function information corresponds to (V-1) electronic devices one-to-one, and the device cluster includes cluster head devices and (V-1) electronic devices;
  • the cluster head device obtains the second device information and the second function information of the cluster head device
  • the cluster head device obtains V second operating information corresponding to the first scenario mode according to the mapping relationship between the device information, the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
  • the cluster head device determines the V second device information, V second function information, and V second operation information as the operation status of the device cluster in the first scenario mode.
  • the cluster head device determines the device information of each electronic device in the device cluster. Information, function information, and operating information corresponding to the first scenario mode to generate a status table, or the cluster head device stores the device information, function information, and operating information corresponding to the first scenario mode of each electronic device in the device cluster to The preset storage location in the cluster head device, the preset storage location may be specified by the user.
  • the cluster head device obtains the second call demand response model corresponding to the performance mode according to the mapping relationship between the scenario mode and the call demand response model.
  • the cluster head device inputs at least one call demand and operation status into the second call demand response model.
  • the cluster head device obtains the performance utility of each of the at least one function of each electronic device, the performance utility of enabling the incoming call, and the performance utility of enabling the video call according to the operating conditions.
  • the cluster head device calls the second call demand response function in the second call demand response model.
  • the second call demand response function is pre-stored in the second call demand response model, and the second call demand response function is:
  • I is the set formed by all the electronic devices included in the device cluster, i ⁇ I is any electronic device in the device cluster, the set of at least one call demand is S, and s ⁇ S is any one of the at least one call demand, Indicates that the electronic device i has the function s, Indicates that the electronic device i does not have the function s, Represents the performance utility of the electronic device i enabling the function s, Indicates that the electronic device i enables the function s, Indicates that the function s is not enabled for the electronic device i.
  • the cluster head device obtains a response to at least one call demand according to the performance utility of each of the at least one function of each electronic device, the performance utility of the incoming call, the performance utility of the video call, and the second call demand response function. At least one first electronic device.
  • the cluster head device generates at least one first response instruction according to the at least one call demand and the at least one first electronic device, and the at least one first response instruction corresponds to the at least one call demand and the at least one first electronic device respectively.
  • FIG. 4J is another mobile phone provided by an embodiment of the present application to obtain the operation status of a watch, a mobile phone, and a tablet computer in the performance mode, and obtain two responses to incoming calls and video calls according to the operation status.
  • the mobile phone obtains the operating conditions of the watch, mobile phone, and tablet in the performance mode and obtains two first electronic devices that respond to incoming calls and video calls according to the operating conditions
  • the method of two first response instructions includes steps D12-D22, which are specifically as follows:
  • the mobile phone sends the fourth request to both the watch and the tablet, and the fourth request is used to instruct the watch and the tablet to feed back device information and function information;
  • the watch receives the fourth request sent by the mobile phone and sends the device information and function information of the watch to the mobile phone;
  • the tablet computer receives the fourth request sent by the mobile phone and sends the device information and function information of the tablet to the mobile phone;
  • the mobile phone receives the device information and function information of the watch, the device information and function information of the tablet computer, and obtains the device information and function information of the mobile phone.
  • the mobile phone obtains the operation information of the watch, the operation information of the mobile phone and the operation information of the tablet corresponding to the performance mode according to the mapping relationship between the device information, the scene mode and the operation information;
  • the mobile phone determines the device information, function information and operation information of the watch, the device information, function information and operation information of the tablet computer, and the device information, function information and operation information corresponding to the performance mode of the mobile phone as the device cluster Operation in performance mode.
  • the mobile phone obtains the second call response model corresponding to the performance mode according to the mapping relationship between the scenario mode and the call demand response model.
  • D18 Enter the second call demand response model for the mobile phone's incoming calls, video calls, and the operation of the device cluster in the performance mode.
  • the mobile phone obtains the performance utility of at least one function of each of the watch, the mobile phone and the tablet computer according to the operating conditions, the performance utility of enabling the incoming call, and the performance utility of enabling the video call.
  • D20 The mobile phone calls the second call demand response function in the second call demand response model.
  • the mobile phone obtains the mobile phone's response according to the performance utility of each function of the watch, mobile phone and tablet that enables at least one function, the performance utility of the incoming call, the performance utility of the video call, and the second call demand response function Incoming calls and tablets respond to video calls.
  • the mobile phone generates a response command based on the incoming call and the mobile phone, and generates another response command based on the video call and the tablet.
  • the cluster head device when the switching operation for the scene mode is detected, the cluster head device obtains the second scene mode corresponding to the switching operation;
  • the cluster head device switches the scene mode from the first scene mode to the second scene mode.
  • the cluster head device can detect in real time whether there is a switching operation for the scene mode, and can also periodically detect whether there is a switching operation for the scene mode.
  • the user can switch the scene mode at any time, which helps to improve the convenience of switching the scene mode.
  • FIG. 5 is a block diagram of the functional unit composition of a call demand response apparatus provided by an embodiment of the present application, which is applied to a cluster head device.
  • the call demand response apparatus 500 includes:
  • the obtaining unit 510 is configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
  • the obtaining unit 510 is also used to obtain the operating status of the device cluster in the first scenario mode
  • the obtaining unit 510 is further configured to obtain at least one first electronic device that responds to the at least one call request and at least one first response instruction, at least one first electronic device and at least one first response instruction, according to the operating conditions, when at least one call demand is detected.
  • Each response command corresponds to at least one call demand one-to-one;
  • the sending unit 520 is configured to send a corresponding first response instruction to each of the at least one first electronic device.
  • the cluster head device is designated by the user; or, the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device.
  • the cluster head device includes a display screen, and in terms of obtaining the first scene mode corresponding to the device cluster, the obtaining unit 510 is specifically configured to:
  • a scene mode interface is displayed on the display screen, the scene mode interface includes a first prompt message and a plurality of scene modes, and the first prompt message is used to instruct the user to select a scene mode from the plurality of scene modes as the scene mode of the device cluster;
  • the scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
  • the obtaining unit 510 is specifically configured to:
  • the historical scene mode record includes the mapping relationship between the time period and the scene mode
  • the target scene mode is determined as the first scene mode corresponding to the device cluster.
  • the device cluster includes U electronic devices, and U is an integer greater than 1.
  • the obtaining unit 510 is specifically configured to:
  • the device cluster includes cluster head devices and (U-1) electronic devices;
  • U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  • the device cluster includes V electronic devices, and V is an integer greater than 1.
  • the obtaining unit 510 is specifically configured to:
  • the electronic device feedback device information and function information, the device cluster includes (V-1) electronic devices and cluster head devices;
  • V second operating information corresponding to the first scenario mode according to the pre-stored device information, the mapping relationship between the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
  • V pieces of second device information, V pieces of second function information, and V pieces of second operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  • the obtaining unit 510 is specifically configured to:
  • Input at least one call demand and operation status into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
  • At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
  • the call demand response device further includes a switching unit 530,
  • the acquiring unit 510 is further configured to detect whether there is a switching operation for the scene mode in real time or periodically; when the switching operation for the scene mode is detected, obtain the second scene mode corresponding to the switching operation;
  • the switching unit 530 is configured to switch the scene mode from the first scene mode to the second scene mode.
  • FIG. 6 is a schematic structural diagram of a call demand response device provided by an embodiment of the present application.
  • the call demand response device 600 includes a memory 610, a communication interface 620, and a processor 630 that are coupled to each other; for example, a memory 610, a communication interface
  • the 620 and the processor 630 are coupled through a bus 640.
  • the memory 610 may include, but is not limited to, random access memory (RAM), erasable programmable read-only memory (Erasable Programmable ROM, EPROM), read-only memory (Read-Only Memory, ROM), or portable read-only memory A memory (Compact Disc Read-Only Memory, CD-ROM), etc., the memory 610 is used for related instructions and data.
  • RAM random access memory
  • EPROM erasable programmable read-only memory
  • ROM Read-Only Memory
  • portable read-only memory A memory Compact Disc Read-Only Memory, CD-ROM
  • the processor 630 may be one or more central processing units (CPUs). When the processor 630 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
  • the processor 630 is configured to read the program code stored in the memory 610, and cooperate with the communication interface 620 to execute part or all of the steps of the method executed by the call demand response apparatus 600 in the foregoing embodiment of the present application.
  • the processor 630 is configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
  • the communication interface 620 is used to obtain the operating status of the device cluster in the first scenario mode
  • the processor 630 is further configured to obtain at least one first electronic device that responds to the at least one call request and at least one first response instruction, at least one first electronic device and at least one first response instruction, according to the operating conditions, when at least one call demand is detected.
  • Each response command corresponds to at least one call demand one-to-one;
  • the communication interface 620 is further configured to send a corresponding first response instruction to each first electronic device in the at least one first electronic device.
  • the cluster head device is designated by the user; or, the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device.
  • the cluster head device includes a display screen.
  • the processor 630 is specifically configured to:
  • a scene mode interface is displayed on the display screen, the scene mode interface includes a first prompt message and a plurality of scene modes, and the first prompt message is used to instruct the user to select a scene mode from the plurality of scene modes as the scene mode of the device cluster;
  • the scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
  • the processor 630 is specifically configured to:
  • the historical scene mode record includes the mapping relationship between the time period and the scene mode
  • the target scene mode is determined as the first scene mode corresponding to the device cluster.
  • the device cluster includes U electronic devices, and U is an integer greater than 1.
  • the processor 630 is specifically configured to:
  • the device cluster includes cluster head devices and (U-1) electronic devices;
  • U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  • the device cluster includes V electronic devices, and V is an integer greater than 1.
  • the processor 630 is specifically configured to:
  • the electronic device feedback device information and function information, the device cluster includes (V-1) electronic devices and cluster head devices;
  • V second operating information corresponding to the first scenario mode according to the pre-stored device information, the mapping relationship between the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
  • V pieces of second device information, V pieces of second function information, and V pieces of second operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  • the processor 630 is specifically configured to:
  • Input at least one call demand and operation status into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
  • At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
  • the processor 630 is further configured to:
  • the embodiment of the present application also provides a computer-readable storage medium that stores computer instructions, and the computer program is executed by hardware (such as a processor, etc.) to implement part of any method executed by the call demand response device in the embodiment of the present application. Or all steps.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product runs on a computer or a processor
  • the computer or the processor executes some or all of the steps of the call demand response method in the above aspects.
  • FIG. 7 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • the chip system 700 may include a processor 701 and one or more interfaces 702 coupled to the processor 701. Exemplary:
  • the processor 701 may be used to read and execute computer-readable instructions.
  • the processor 701 may mainly include a controller, an arithmetic unit, and a register.
  • the controller is mainly responsible for instruction decoding, and sends control signals for operations corresponding to the instructions.
  • the arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations and logical operations, etc., and can also perform address operations and conversions.
  • the register is mainly responsible for storing the register operands and intermediate operation results temporarily stored during the execution of the instruction.
  • the hardware architecture of the processor 701 can be an application specific integrated circuit (ASIC) architecture, a microprocessor without interlocked pipeline stage architecture (microprocessor without interlocked piped stages architecture, MIPS) architecture, and advanced streamlining. Instruction set machine (advanced RISC machines, ARM) architecture or NP architecture, etc.
  • the processor 701 may be single-core or multi-core.
  • the interface 702 can be used to input data to be processed to the processor 701, and can output the processing result of the processor 701 to the outside.
  • the interface 702 may be a general purpose input output (GPIO) interface, which can be connected to multiple peripheral devices (such as a display (LCD), a camera (camara), a radio frequency (RF) module, etc.) connection.
  • GPIO general purpose input output
  • the interface 702 is connected to the processor 701 through the bus 703.
  • the processor 701 can be used to call from the memory the implementation program or data of the call demand response method provided by one or more embodiments of the present application on the network device or terminal device side, so that the chip can implement the aforementioned figure.
  • the call demand response method shown in 4A The memory may be integrated with the processor 701, or may be coupled with the chip system 700 through the interface 702, that is, the memory may be a part of the chip system 700 or may be independent of the chip system 700.
  • the interface 702 can be used to output the execution result of the processor 701. In this application, the interface 702 may be specifically used to output the decoding result of the processor 701.
  • the call demand response method provided by one or more embodiments of the present application, reference may be made to the foregoing embodiments, which will not be repeated here.
  • all or part of the functions can be implemented by software, hardware, or a combination of software and hardware.
  • software When implemented by software, it can be implemented in the form of a computer program product in whole or in part.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions can be stored in a computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Environmental & Geological Engineering (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

Provided in embodiments of the present application are a method and apparatus for responding to a call request, and an electronic device. The method comprises: obtaining a first scenario mode corresponding to a device cluster, the device cluster comprising cluster head devices; obtaining the operation status of the device cluster in the first scenario mode; when at least one call request is detected, obtaining, according to the operation status, at least one electronic device and at least one first response command that respond to the at least one call request, where the at least one electronic device and the at least one response command both correspond one-to-one to the at least one call request; sending to each first electronic device in the at least one first electronic device a first response command corresponding thereto. Using the embodiments of the present application helps to improve the rationality and convenience of responding to a call request.

Description

呼叫需求响应方法、装置及电子设备Call demand response method, device and electronic equipment
本申请要求于2019年11月25日提交中国专利局、申请号为201911168219.1、申请名称为“呼叫需求响应方法、装置及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on November 25, 2019, the application number is 201911168219.1, and the application name is "Call demand response method, device and electronic equipment", the entire content of which is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及电子技术领域,尤其涉及一种呼叫需求响应方法、装置及电子设备。This application relates to the field of electronic technology, and in particular to a method, device and electronic equipment for responding to call demand.
背景技术Background technique
目前,呼叫需求(比如来电、语音通话、视频通话等)响应的过程为:用户A的手表B和手机C登录用户A的账号,用户D使用手机E通过用户A的账号拨打电话给用户A,此时用户A的手表B和手机C会同时振铃,用户A可以选择手表B或手机C接听用户D的来电。At present, the process of responding to call requirements (such as incoming calls, voice calls, video calls, etc.) is: user A’s watch B and mobile phone C log in to user A’s account, and user D uses mobile phone E to make a call to user A through user A’s account. At this time, user A's watch B and mobile phone C will ring at the same time, and user A can choose watch B or mobile phone C to answer user D's call.
由于用户A选择电子设备接听用户D的来电完全凭借个人习惯,因此降低了呼叫需求响应的合理性;同时,用户A需要手动选择接听用户D的来电的电子设备,降低了呼叫需求响应的便利性。Because user A chooses electronic equipment to answer user D’s calls based solely on personal habits, this reduces the rationality of the call demand response; at the same time, user A needs to manually select the electronic equipment to answer user D’s calls, which reduces the convenience of call demand response .
发明内容Summary of the invention
本申请实施例提供一种呼叫需求响应方法及电子设备,用于提高呼叫需求响应的合理性和便利性。The embodiments of the present application provide a call demand response method and electronic equipment, which are used to improve the rationality and convenience of call demand response.
第一方面,本申请实施例提供一种呼叫需求响应方法,应用于簇头设备,包括:In the first aspect, an embodiment of the present application provides a call demand response method, which is applied to a cluster head device, and includes:
获得设备簇对应的第一情景模式,设备簇包括簇头设备;Obtain the first scene mode corresponding to the device cluster, where the device cluster includes cluster head devices;
获得设备簇在第一情景模式下的运行情况;Obtain the operating status of the device cluster in the first scenario mode;
当检测到至少一个呼叫需求时,根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,至少一个第一电子设备和至少一个第一响应指令均与至少一个呼叫需求一一对应;When at least one call demand is detected, at least one first electronic device and at least one first response instruction that responds to the at least one call demand are obtained according to the operating conditions, and at least one first electronic device and at least one first response instruction are both associated with at least one One-to-one correspondence with call requirements;
向至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。Send the corresponding first response instruction to each first electronic device in the at least one first electronic device.
可以看出,相较于用户完全凭借个人习惯选择电子设备响应呼叫需求,在本申请实施例中,簇头设备根据设备簇在第一情景模式下的运行情况获得响应呼叫需求的第一电子设备,由于考虑到电子设备的实际运行情况,因此有助于提高呼叫需求响应的合理性。同时,相较于用户需要手动选择响应呼叫需求的电子设备,在本申请实施例中,响应呼叫需求的第一电子设备无需用户手动选择,这样有助于提高呼叫需求响应的便利性。It can be seen that, compared to the user choosing the electronic device to respond to the call demand based solely on personal habits, in the embodiment of the present application, the cluster head device obtains the first electronic device that responds to the call demand according to the running status of the device cluster in the first scenario mode. , Since the actual operation of electronic equipment is taken into account, it helps to improve the rationality of call demand response. At the same time, compared with the user needing to manually select the electronic device that responds to the call demand, in the embodiment of the present application, the first electronic device that responds to the call demand does not need to be manually selected by the user, which helps to improve the convenience of responding to the call demand.
在一些可能的实施例中,簇头设备是用户指定的;或者,簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从设备簇中选取的。In some possible embodiments, the cluster head device is designated by the user; or, the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device.
可见,在本示例中,无论簇头设备是用户指定的,或者,簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从设备簇中选取的,在各种情景模式下簇头设备均是最佳的,进而基于最佳的簇头设备获得响应呼叫需求的第一电子设备和第一响应指令,以及向第一电子设备发送其对应的第一响应指令,这样有助于提高呼叫需求响应的效率。It can be seen that in this example, whether the cluster head device is specified by the user, or the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device, the cluster is selected in various scenarios. The head device is the best, and then based on the best cluster head device, the first electronic device and the first response instruction that respond to the call demand are obtained, and the corresponding first response instruction is sent to the first electronic device, which helps Improve the efficiency of call demand response.
在一些可能的实施例中,簇头设备包括显示屏,获得设备簇对应的第一情景模式,包括:In some possible embodiments, the cluster head device includes a display screen, and obtaining the first scene mode corresponding to the device cluster includes:
通过显示屏显示情景模式界面,情景模式界面包括第一提示信息和多个情景模式,第一提示信息用于指示用户从多个情景模式中选取一个情景模式作为设备簇的情景模式;A scene mode interface is displayed on the display screen, the scene mode interface includes a first prompt message and a plurality of scene modes, and the first prompt message is used to instruct the user to select a scene mode from the plurality of scene modes as the scene mode of the device cluster;
当检测到针对情景模式界面的触控操作时,获得触控操作对应的情景模式;When the touch operation for the scene mode interface is detected, the scene mode corresponding to the touch operation is obtained;
将触控操作对应的情景模式确定为设备簇对应的第一情景模式。The scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
可见,在本示例中,基于用户针对情景模式界面的触控操作获得设备簇对应的第一情景模式,因此用户可以选择合适的情景模式作为设备簇对应的第一情景模式,这样有助于提高用户的体验。It can be seen that in this example, the first scene mode corresponding to the device cluster is obtained based on the user's touch operation on the scene mode interface. Therefore, the user can select a suitable scene mode as the first scene mode corresponding to the device cluster, which helps to improve User experience.
在一些可能的实施例中,获得设备簇对应的第一情景模式,包括:In some possible embodiments, obtaining the first scene mode corresponding to the device cluster includes:
获取历史情景模式记录,历史情景模式记录包括时间段与情景模式的映射关系;Obtain the historical scene mode record, the historical scene mode record includes the mapping relationship between the time period and the scene mode;
获取当前时间;Get the current time;
根据时间段与情景模式的映射关系确定当前时间所处时间段对应的目标情景模式;Determine the target scenario mode corresponding to the time period at the current time according to the mapping relationship between the time period and the scenario mode;
将目标情景模式确定为设备簇对应的第一情景模式。The target scene mode is determined as the first scene mode corresponding to the device cluster.
可见,在本示例中,基于历史情景模式记录和当前时间获得设备簇对应的第一情景模式,无需用户手动在情景模式界面上进行选择,这样提高了选择设备簇对应的第一情景模式的便利性。It can be seen that in this example, the first scene mode corresponding to the device cluster is obtained based on the historical scene mode records and the current time, without the user manually selecting on the scene mode interface, which improves the convenience of selecting the first scene mode corresponding to the device cluster Sex.
在一些可能的实施例中,设备簇包括U个电子设备,U为大于1的整数,获得设备簇在第一情景模式下的运行情况,包括:In some possible embodiments, the device cluster includes U electronic devices, and U is an integer greater than 1. Obtaining the operating status of the device cluster in the first scenario mode includes:
向(U-1)个电子设备发送(U-1)个第三请求,(U-1)个第三请求与(U-1)个电子设备一一对应,第三请求用于指示其对应的电子设备反馈设备信息、功能信息以及与第一情景模式对应的运行信息,设备簇包括簇头设备和(U-1)个电子设备;Send (U-1) third requests to (U-1) electronic devices, (U-1) third requests are in one-to-one correspondence with (U-1) electronic devices, and the third request is used to indicate its correspondence The electronic device feedback device information, function information, and operation information corresponding to the first scenario mode. The device cluster includes cluster head devices and (U-1) electronic devices;
接收(U-1)个电子设备发送的(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息,(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息均与(U-1)个电子设备一一对应;Receive (U-1) first device information, (U-1) first function information and (U-1) first operating information sent by (U-1) electronic devices, (U-1) The first device information, (U-1) first function information, and (U-1) first operation information all correspond to (U-1) electronic devices one-to-one;
获取簇头设备的第一设备信息、第一功能信息和与第一情景模式对应的第一运行信息;Acquiring first device information, first function information, and first operating information corresponding to the first scenario mode of the cluster head device;
将U个第一设备信息、U个第一功能信息和U个第一运行信息确定为设备簇在第一情景模式下的运行情况。U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
可见,在示例中,簇头设备获得设备簇在第一情景模式下的运行情况,以便于簇头设备基于设备簇在第一情景模式下的运行情况确定响应呼叫需求的第一电子设备,进而提高呼叫需求响应的合理性。It can be seen that, in the example, the cluster head device obtains the operating status of the device cluster in the first scenario mode, so that the cluster head device determines the first electronic device that responds to the call demand based on the operating status of the device cluster in the first scenario mode, and then Improve the rationality of call demand response.
在一些可能的实施例中,设备簇包括V个电子设备,V为大于1的整数,获得设备簇在第一情景模式下的运行情况,包括:In some possible embodiments, the device cluster includes V electronic devices, and V is an integer greater than 1. Obtaining the operating status of the device cluster in the first scenario mode includes:
向(V-1)个电子设备发送(V-1)个第四请求,(V-1)个第四请求与(V-1)个电子设备一一对应,第四请求用于指示其对应的电子设备反馈设备信息和功能信息,设备簇包括(V-1)个电子设备和簇头设备;Send (V-1) fourth requests to (V-1) electronic devices, (V-1) fourth requests correspond to (V-1) electronic devices one-to-one, and the fourth request is used to indicate its correspondence The electronic device feedback device information and function information, the device cluster includes (V-1) electronic devices and cluster head devices;
接收(V-1)个电子设备发送的(V-1)个第二设备信息和(V-1)个第二功能信息,(V-1)个第二设备信息和(V-1)个第二功能信息均与(V-1)个电子设备一一对应;Receive (V-1) second device information and (V-1) second function information, (V-1) second device information and (V-1) sent by (V-1) electronic devices The second function information is in one-to-one correspondence with (V-1) electronic devices;
获取簇头设备的第二设备信息和第二功能信息;Acquiring the second device information and the second function information of the cluster head device;
根据预存的设备信息、情景模式与运行信息的映射关系获得与第一情景模式对应的V个第二运行信息,V个第二运行信息与V个第二设备信息一一对应;Obtain V second operating information corresponding to the first scenario mode according to the pre-stored device information, the mapping relationship between the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
将V个第二设备信息、V个第二功能信息和V个第二运行信息确定为设备簇在第一情景模式下的运行情况。V pieces of second device information, V pieces of second function information, and V pieces of second operating information are determined as the operating conditions of the device cluster in the first scenario mode.
可见,在本示例中,簇头设备获得设备簇在第一情景模式下的运行情况,以便于簇头设备基于设备簇在第一情景模式下的运行情况确定响应呼叫需求的第一电子设备,进而提高功能响应的合理性。It can be seen that in this example, the cluster head device obtains the operating status of the device cluster in the first scenario mode, so that the cluster head device can determine the first electronic device that responds to the call demand based on the operating status of the device cluster in the first scenario mode. In turn, the rationality of functional response is improved.
在一些可能的实施例中,根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,包括:In some possible embodiments, obtaining at least one first electronic device and at least one first response instruction that responds to at least one call demand according to the operating condition includes:
根据情景模式与呼叫需求响应模型的映射关系获得第一情景模式对应的目标呼叫需求响应模型;Obtaining the target call demand response model corresponding to the first scenario mode according to the mapping relationship between the scenario mode and the call demand response model;
将至少一个呼叫需求和运行情况输入目标呼叫需求响应模型进行处理,输出响应至少一个呼叫需求的至少一个第一电子设备;Input at least one call demand and operation status into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
根据至少一个呼叫需求和至少一个第一电子设备生成至少一个第一响应指令。At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
可见,在本示例中,簇头设备基于设备簇在第一情景模式下的运行情况获得响应呼叫需求的第一电子设备,由于考虑到电子设备的运行情况,因此有助于提高呼叫需求响应的合理性。同时,无需用户手动选择响应呼叫需求的电子设备,这样有助于提高呼叫需求响应的便利性。It can be seen that in this example, the cluster head device obtains the first electronic device that responds to the call demand based on the operation of the device cluster in the first scenario mode. Since the operation of the electronic device is taken into account, it helps to improve the call demand response. rationality. At the same time, there is no need for the user to manually select an electronic device that responds to the call demand, which helps to improve the convenience of responding to the call demand.
在一些可能的实施例中,方法还包括:In some possible embodiments, the method further includes:
实时或周期性检测是否存在针对情景模式的切换操作;Real-time or periodic detection of whether there is a switching operation for the scene mode;
当检测到针对情景模式的切换操作时,获得切换操作对应的第二情景模式;When the switching operation for the scene mode is detected, obtain the second scene mode corresponding to the switching operation;
将情景模式由第一情景模式切换至第二情景模式。Switch the scene mode from the first scene mode to the second scene mode.
可见,在本示例中,用户可以随时切换情景模式,这样有助于提高切换情景模式的便利性。It can be seen that in this example, the user can switch the scene mode at any time, which helps to improve the convenience of switching the scene mode.
第二方面,本申请实施例提供一种呼叫需求响应装置,应用于簇头设备,包括:In the second aspect, an embodiment of the present application provides a call demand response device, which is applied to a cluster head device, and includes:
获得单元,用于获得设备簇对应的第一情景模式,设备簇包括簇头设备;An obtaining unit, configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
获得单元,还用于获得设备簇在第一情景模式下的运行情况;The obtaining unit is also used to obtain the operating status of the device cluster in the first scenario mode;
获得单元,还用于当检测到至少一个呼叫需求时,根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,至少一个第一电子设备和至少一个第一响应指令均与至少一个呼叫需求一一对应;The obtaining unit is further configured to obtain at least one first electronic device that responds to the at least one call request and at least one first response instruction, at least one first electronic device and at least one first response instruction, according to operating conditions, when at least one call demand is detected. The response commands all correspond to at least one call demand one-to-one;
发送单元,用于向至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。The sending unit is configured to send the corresponding first response instruction to each first electronic device in the at least one first electronic device.
第三方面,本申请提供一种呼叫需求响应装置,装置包括相互耦合的处理器、通信接口和存储器,其中:In a third aspect, the present application provides a call demand response device. The device includes a processor, a communication interface, and a memory coupled with each other, wherein:
处理器,用于获得设备簇对应的第一情景模式,设备簇包括簇头设备;A processor, configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
通信接口,用于获得设备簇在第一情景模式下的运行情况;The communication interface is used to obtain the operating status of the device cluster in the first scenario mode;
处理器,还用于当检测到至少一个呼叫需求时,根据运行情况获得响应至少一个呼叫 需求的至少一个第一电子设备和至少一个第一响应指令,至少一个第一电子设备和至少一个第一响应指令均与至少一个呼叫需求一一对应;The processor is further configured to, when at least one call demand is detected, obtain at least one first electronic device and at least one first response instruction that responds to the at least one call demand, at least one first electronic device and at least one first response instruction according to the operating conditions. The response commands all correspond to at least one call demand one-to-one;
通信接口,还用于向至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。The communication interface is also used to send the corresponding first response instruction to each first electronic device in the at least one first electronic device.
第四方面,本申请提供一种计算机可读存储介质,存储有计算机指令,计算机程序被硬件(例如处理器等)执行以实现本申请实施例中由呼叫需求响应装置执行的任意一种方法的部分或全部步骤。In a fourth aspect, the present application provides a computer-readable storage medium that stores computer instructions, and the computer program is executed by hardware (such as a processor, etc.) to implement any of the methods executed by the call demand response device in the embodiments of the present application. Part or all of the steps.
第五方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行以上各方面的呼叫需求响应方法的部分或全部步骤。In a fifth aspect, the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute part or all of the steps of the call demand response method in the above aspects.
第六方面,本申请实施例提供一种芯片系统,芯片系统包括处理器,用于支持电子设备实现以上各方面的呼叫需求响应方法的部分或全部步骤。In a sixth aspect, an embodiment of the present application provides a chip system. The chip system includes a processor for supporting an electronic device to implement part or all of the steps of the call demand response method in the above aspects.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present application or the background art, the following will describe the drawings that need to be used in the embodiments of the present application or the background art.
图1是本申请实施例提供的一种呼叫系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a call system provided by an embodiment of the present application;
图2示出了电子设备100的结构示意图;FIG. 2 shows a schematic diagram of the structure of the electronic device 100;
图3是本申请实施例的电子设备100的软件结构框图;3 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application;
图4A是本申请实施例提供的一种呼叫需求响应方法的流程示意图;4A is a schematic flowchart of a call demand response method provided by an embodiment of the present application;
图4B是本申请实施例提供的一种获得设备簇对应的第一情景模式的示意图;4B is a schematic diagram of obtaining a first scenario mode corresponding to a device cluster according to an embodiment of the present application;
图4C是本申请实施例提供的一种从设备簇中选取簇头设备的方法的流程示意图;4C is a schematic flowchart of a method for selecting a cluster head device from a device cluster according to an embodiment of the present application;
图4D是本申请实施例提供的一种从手表、手机和平板电脑中选取簇头设备的方法的流程示意图;4D is a schematic flowchart of a method for selecting cluster head devices from watches, mobile phones, and tablet computers according to an embodiment of the present application;
图4E是本申请实施例提供的另一种从设备簇中选取簇头设备的方法的流程示意图;4E is a schematic flowchart of another method for selecting a cluster head device from a device cluster according to an embodiment of the present application;
图4F是本申请实施例提供的另一种从手表、手机和平板电脑中选取簇头设备的方法的流程示意图;4F is a schematic flowchart of another method for selecting a cluster head device from a watch, a mobile phone, and a tablet computer according to an embodiment of the present application;
图4G是本申请实施例提供的一种簇头设备获得设备簇在第一情景模式下的运行情况并根据运行情况获得响应至少一个呼叫请求的至少一个第一电子设备和至少一个第一响应指令的方法的流程示意图;FIG. 4G is a cluster head device provided by an embodiment of the present application to obtain the operating status of the device cluster in the first scenario mode and obtain at least one first electronic device and at least one first response instruction that responds to at least one call request according to the operating status Schematic diagram of the process of the method;
图4H是本申请实施例提供的一种手机获取手表、手机、平板电脑在省电模式下的运行情况并根据运行情况获得响应来电和视频通话的两个第一电子设备和两个第一响应指令的方法的流程示意图;FIG. 4H is a mobile phone provided by an embodiment of the present application to obtain the operation status of a watch, a mobile phone, and a tablet computer in the power saving mode, and obtain two first electronic devices and two first responses in response to incoming calls and video calls according to the operation status. Schematic diagram of the flow of the instruction method;
图4I是本申请实施例提供的另一种簇头设备获得设备类型在第一情景模式下的运行情况并根据运行情况获得响应至少一个呼叫请求的至少一个第一电子设备和至少一个第一响应指令的方法的流程示意图;FIG. 4I is another cluster head device provided by an embodiment of the present application to obtain the operating condition of the device type in the first scenario mode and obtain at least one first electronic device and at least one first response that responds to at least one call request according to the operating condition. Schematic diagram of the flow of the instruction method;
图4J是本申请实施例提供的另一种手机获取手表、手机、平板电脑在性能模式下的运行情况并根据运行情况获得响应来电和视频通话的两个第一电子设备和两个第一响应指令的方法的流程示意图;Figure 4J is another mobile phone provided by an embodiment of the present application to obtain the operating conditions of watches, mobile phones, and tablet computers in performance mode and obtain two first electronic devices and two first responses to respond to incoming calls and video calls according to the operating conditions. Schematic diagram of the flow of the instruction method;
图5是本申请实施例提供的一种呼叫需求响应装置的功能单元组成框图;5 is a block diagram of functional units of a call demand response device provided by an embodiment of the present application;
图6是本申请实施例提供的一种呼叫需求响应装置的结构示意图;FIG. 6 is a schematic structural diagram of a call demand response device provided by an embodiment of the present application;
图7是本申请实施例提供的一种芯片系统的结构示意图。FIG. 7 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请实施例中的附图对本申请实施例进行描述。本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
请参见图1,图1为本申请实施例提供的一种呼叫系统的架构示意图。如图1所示,该呼叫系统可包括:呼叫方设备,即第一电子设备100;被呼叫方设备,包含第二电子设备200、第三电子设备300和第四电子设备400;服务器500。Please refer to FIG. 1. FIG. 1 is a schematic diagram of the architecture of a call system provided by an embodiment of the application. As shown in FIG. 1, the calling system may include: a calling party device, that is, a first electronic device 100; a called party device, including a second electronic device 200, a third electronic device 300, and a fourth electronic device 400; and a server 500.
其中,第二电子设备200、第三电子设备300和第四电子设备400中的任意两个电子设备可以通过近距离无线通信技术进行通信,近距离无线通信技术可以为无线上网(Wi-Fi)技术、蓝牙技术、紫蜂(Zigbee)技术等;登录同一个账号的第二电子设备200、第三电子设备300和第四电子设备400形成设备簇,设备簇包括簇头设备,簇头设备可以为第二电子设备200、第三电子设备300和第四电子设备400中的其中一个。Wherein, any two electronic devices among the second electronic device 200, the third electronic device 300, and the fourth electronic device 400 can communicate through short-range wireless communication technology, and the short-range wireless communication technology can be wireless Internet access (Wi-Fi) Technology, Bluetooth technology, Zigbee technology, etc.; the second electronic device 200, the third electronic device 300, and the fourth electronic device 400 that log in to the same account form a device cluster. The device cluster includes cluster head devices, which can It is one of the second electronic device 200, the third electronic device 300, and the fourth electronic device 400.
其中,第一电子设备100,可用于通过第一账号将呼叫请求发送至簇头设备。该第一账号可关联簇头设备。该关联关系可存储在服务器500上。Among them, the first electronic device 100 can be used to send a call request to the cluster head device through the first account. The first account can be associated with the cluster head device. The association relationship may be stored on the server 500.
第一电子设备100可查询服务器500上与该第一账号关联的设备,例如第二电子设备200、第三电子设备300和第四电子设备400,第二电子设备200为簇头设备。当第一电子设备100通过第一账号进行呼叫时,第二电子设备200接收第一电子设备100发送的呼叫请求。The first electronic device 100 can query the devices associated with the first account on the server 500, such as the second electronic device 200, the third electronic device 300, and the fourth electronic device 400. The second electronic device 200 is a cluster head device. When the first electronic device 100 makes a call through the first account, the second electronic device 200 receives the call request sent by the first electronic device 100.
被呼叫方设备,可包含:第二电子设备200、第三电子设备300和第四电子设备400。如果簇头设备为电子设备200,那么电子设备200可在接收到服务器500发起寻呼时,从第二电子设备200、第三电子设备300和第四电子设备400中选择相应的电子设备作出响应。The called party device may include: the second electronic device 200, the third electronic device 300, and the fourth electronic device 400. If the cluster head device is the electronic device 200, the electronic device 200 can select the corresponding electronic device from the second electronic device 200, the third electronic device 300, and the fourth electronic device 400 to respond when receiving the paging initiated by the server 500 .
服务器500,可用于存储账号和关联的设备的对应关系。例如,服务器500存储有第一账号和第一账号关联的设备:第二电子设备200、第三电子设备300和第四电子设备400。具体的,服务器500可存储第一账号,第一账号对应的设备标识:第二电子设备200的设备标识、第三电子设备300的设备标识和第四电子设备400的设备标识。The server 500 may be used to store the corresponding relationship between the account and the associated device. For example, the server 500 stores the first account and the devices associated with the first account: the second electronic device 200, the third electronic device 300, and the fourth electronic device 400. Specifically, the server 500 may store the first account and the device identification corresponding to the first account: the device identification of the second electronic device 200, the device identification of the third electronic device 300, and the device identification of the fourth electronic device 400.
示例性的,如图1所示,服务器500可存储第一账号“136********”和其他账号,例如账号“155********”。服务还可存储每个账号对应的设备标识。例如第一账号“136********”对应手机200的设备标识、手表300的设备标识和音箱400的设备标识。账号“155********”对应手机210的设备标识、手表310的设备标识、电视320的设备标识和音箱410的设备标识,手机210、手表310、电视320和音箱410在图1中未示出。Exemplarily, as shown in FIG. 1, the server 500 may store the first account "136********" and other accounts, such as the account "155********". The service can also store the device identification corresponding to each account. For example, the first account “136********” corresponds to the device identification of the mobile phone 200, the device identification of the watch 300, and the device identification of the speaker 400. The account "155********" corresponds to the device identification of the mobile phone 210, the device identification of the watch 310, the device identification of the TV 320, and the device identification of the speaker 410. The mobile phone 210, the watch 310, the TV 320 and the speaker 410 are shown in the figure. Not shown in 1.
下面介绍呼叫方设备、被呼叫方设备和服务器500之间的通信连接。第一电子设备100可与服务器500建立通信连接。第一电子设备100与服务器500之间的通信连接可用于第一电子设备100从服务器500获取账号关联的设备,还可用于向服务器500发送呼叫请求。The communication connection between the calling party device, the called party device and the server 500 is described below. The first electronic device 100 may establish a communication connection with the server 500. The communication connection between the first electronic device 100 and the server 500 can be used for the first electronic device 100 to obtain the device associated with the account from the server 500 and can also be used for sending a call request to the server 500.
服务器500可与被呼叫方设备中的簇头设备建立通信连接,该通信连接可用于向簇头 设备寻址。The server 500 can establish a communication connection with the cluster head device in the called party device, and the communication connection can be used to address the cluster head device.
下面介绍呼叫方设备寻呼被呼叫方设备的过程。第一电子设备100可经由服务器500间接寻呼被呼叫方设备。如图1所示,第一电子设备100可向服务器500发送用于寻呼簇头设备的呼叫请求。以簇头设备为第二电子设备200为例,呼叫请求可携带第二电子设备200的设备标识。服务器500可根据携带第二电子设备200的设备标识得到第二电子设备200的通信ID,并根据该通信ID向第二电子设备200寻址,向第二电子设备200发起寻呼,第二电子设备从第二电子设备200、第三电子设备300和第四电子设备400中选取一个电子响应呼叫请求。The following describes the process of the calling party's device paging the called party's device. The first electronic device 100 may indirectly page the called party device via the server 500. As shown in FIG. 1, the first electronic device 100 may send a call request for paging the cluster head device to the server 500. Taking the cluster head device as the second electronic device 200 as an example, the call request may carry the device identification of the second electronic device 200. The server 500 can obtain the communication ID of the second electronic device 200 according to the device identification of the second electronic device 200, and address the second electronic device 200 according to the communication ID, and initiate a paging to the second electronic device 200. The device selects an electronic response call request from the second electronic device 200, the third electronic device 300, and the fourth electronic device 400.
本申请实施例中,呼叫方设备可连接到数据网络(例如运营商数据网络)或者局域网,从而呼叫方设备与服务器500建立通信连接。被呼叫方设备包括的簇头设备也可连接到数据网络或者局域网,从而服务器500可与簇头设备建立通信连接,该通信连接用于向簇头设备寻址。当簇头设备未连接到数据网络且未连接到局域网时,服务器500向簇头设备寻址失败。则服务器500不能间接向被呼叫方设备发起寻呼,导致呼叫方设备寻呼被呼叫方设备失败。当呼叫方设备未连接到数据网络且未连接到局域网时,呼叫方设备向服务器500发送寻呼请求失败,导致呼叫方设备寻呼被呼叫方设备失败。In the embodiment of the present application, the calling party device may be connected to a data network (for example, an operator data network) or a local area network, so that the calling party device establishes a communication connection with the server 500. The cluster head device included in the called party device can also be connected to a data network or a local area network, so that the server 500 can establish a communication connection with the cluster head device, and the communication connection is used to address the cluster head device. When the cluster head device is not connected to the data network and not connected to the local area network, the server 500 fails to address the cluster head device. Then the server 500 cannot indirectly initiate a paging to the called party device, resulting in the failure of the calling party device to page the called party device. When the calling device is not connected to the data network and not connected to the local area network, the calling device fails to send a paging request to the server 500, resulting in the failure of the calling device to page the called device.
本申请实施例中,第三电子设备300不限于智能手表,还可以是手环等可穿戴设备。第四电子设备400不限于智能音箱,还可以是笔记本电脑、掌上电脑、平板电脑、智能电视、便携式媒体播放设备、车载媒体播放设备等终端设备。In the embodiment of the present application, the third electronic device 300 is not limited to a smart watch, and may also be a wearable device such as a bracelet. The fourth electronic device 400 is not limited to a smart speaker, and may also be a terminal device such as a notebook computer, a palmtop computer, a tablet computer, a smart TV, a portable media playback device, and a vehicle-mounted media playback device.
为了提高呼叫需求响应的合理性和便利性,本申请实施例提供一种呼叫需求响应方法、装置和电子设备。下面介绍本申请实施例涉及的电子设备,电子设备为簇头设备,簇头设备可以为手机,也可以为手表、平板电脑、智能音箱、智能路由器等。In order to improve the rationality and convenience of call demand response, embodiments of the present application provide a call demand response method, device, and electronic equipment. The electronic devices involved in the embodiments of the present application are introduced below. The electronic devices are cluster head devices. The cluster head devices can be mobile phones, watches, tablet computers, smart speakers, smart routers, and the like.
当簇头设备为手机时,图2示出了电子设备100的结构示意图。When the cluster head device is a mobile phone, FIG. 2 shows a schematic structural diagram of the electronic device 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等。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, and an antenna 2. , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and the environment Light sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit, GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an 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. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
在一些实施例中,处理器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)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter/receiver (universal asynchronous) interface. 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接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc., respectively through different I2C bus interfaces. For example, the processor 110 may couple 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.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。I2S接口和PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both I2S interface and PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现 电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the 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 supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。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, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves 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 for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, 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.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信 号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块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转为电磁波辐射出去。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) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. 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 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 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)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. Wireless communication technologies can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), and broadband code division. Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc. GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏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的正整数。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理, 转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, which is converted into an image visible to the naked eye. ISP can also optimize the 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.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers 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 formats of image signals. In some embodiments, the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。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 the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The 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, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may 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 realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The 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 a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into 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 can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, and a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, 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 according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity is 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 acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract 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.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of 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 apply to applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子 设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The 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 to the outside through the light emitting diode. The electronic device 100 uses a photodiode 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 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. 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 touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J 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 avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
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分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 adopts 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.
当簇头设备为智能路由器时,电子设备100还可以包括电源接口(POWER)、复位键(RESET)、猫(MODEM)或者是交换机与路由器连接口(WAN)、电脑与路由器连接口(LAN)。When the cluster head device is a smart router, the electronic device 100 may also include a power interface (POWER), a reset button (RESET), a modem (MODEM) or a switch and router connection port (WAN), a computer and router connection port (LAN) .
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的操作系统为例,示例性说明电子设备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. In the embodiment of the present invention, an operating system with a layered architecture is taken as an example to illustrate the software structure of the electronic device 100.
图3是本申请实施例的电子设备100的软件结构框图。FIG. 3 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为四层,从上至下分别为应用程序层,应用程序框架层,运行时(runtime)和系统库,以及内核层。The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the operating system is divided into four layers, from top to bottom, the application layer, the application framework layer, the runtime and system libraries, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图3所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in Figure 3, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图3所示,应用程序框架层可以包括窗口管理器,通知管理器,内容提供器,视图系统,电话管理器,资源管理器等。As shown in Figure 3, the application framework layer can include a window manager, a notification manager, a content provider, a view system, a phone manager, and a resource manager.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, etc.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, and so on. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。The content provider is used to store and retrieve data and make these data accessible to applications. Data can include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂 断等)。The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call status (including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
Runtime包括核心库和虚拟机。runtime负责系统的调度和管理。Runtime includes core libraries and virtual machines. The runtime is responsible for the scheduling and management of the system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support multiple audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 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.
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。In the following, the workflow of the software and hardware of the electronic device 100 will be exemplified in conjunction with capturing a photo scene.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes touch operations into original input events (including touch coordinates, time stamps of touch operations, etc.). The original input events are stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon as an example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer. The camera 193 captures still images or videos.
参见图4A,图4A是本申请实施例提供的一种呼叫需求响应方法,该呼叫需求响应方法包括步骤401-404,具体如下:Referring to FIG. 4A, FIG. 4A is a call demand response method provided by an embodiment of the present application. The call demand response method includes steps 401-404, which are specifically as follows:
401:簇头设备获得设备簇对应的第一情景模式,设备簇包括簇头设备。401: The cluster head device obtains the first scene mode corresponding to the device cluster, and the device cluster includes the cluster head device.
在一些实施例中,设备簇包括多个电子设备,多个电子设备包括以下至少两种:手表、手机、平板电脑、台式机、蓝牙耳机、智能音箱、智能路由器等。In some embodiments, the device cluster includes multiple electronic devices, and the multiple electronic devices include at least two of the following: watches, mobile phones, tablets, desktop computers, Bluetooth headsets, smart speakers, smart routers, and so on.
在一些实施例中,第一情景模式可以是省电模式、性能模式、运动模式、游戏模式等;省电模式的优化目标为最大化设备簇中电量消耗最快的设备的使用时间;性能模式的优化目标为最大化用户的性能体验;运动模式的优化目标为最大化用户的运动体验;游戏模式的优化目标为最大化用户的游戏体验。如果设备簇包括手表、手机和平板电脑,且设备簇对应的第一情景模式为省电模式,那么手表、手机和平板电脑的情景模式均为省电模式。In some embodiments, the first scenario mode may be a power saving mode, a performance mode, a sports mode, a game mode, etc.; the optimization goal of the power saving mode is to maximize the use time of the device with the fastest power consumption in the device cluster; performance mode The optimization goal of the game mode is to maximize the user's performance experience; the optimization goal of the sports mode is to maximize the user's sports experience; the optimization goal of the game mode is to maximize the user's gaming experience. If the device cluster includes a watch, a mobile phone, and a tablet computer, and the first scene mode corresponding to the device cluster is a power saving mode, then the scene modes of the watch, mobile phone, and tablet computer are all power saving modes.
在一些实施例中,簇头设备获得设备簇对应的第一情景模式,包括:In some embodiments, obtaining the first scene mode corresponding to the device cluster by the cluster head device includes:
若簇头设备包括显示屏,则簇头设备通过显示屏显示情景模式界面,情景模式界面包 括第一提示信息和多个情景模式,第一提示信息用于提示用户从多个情景模式中选取一个情景模式作为设备簇的情景模式;If the cluster head device includes a display screen, the cluster head device displays a scene mode interface through the display screen. The scene mode interface includes a first prompt message and a plurality of scene modes. The first prompt message is used to prompt the user to select one of the plurality of scene modes. The scene mode is used as the scene mode of the device cluster;
当检测到针对情景模式界面的触控操作时,簇头设备获得触控操作对应的情景模式;When a touch operation for the scene mode interface is detected, the cluster head device obtains the scene mode corresponding to the touch operation;
簇头设备将触控操作对应的情景模式确定为设备簇对应的第一情景模式。The cluster head device determines the scene mode corresponding to the touch operation as the first scene mode corresponding to the device cluster.
多个情景模式可以直接呈现在情景模式界面上,也可以通过下拉情景模式选项呈现在情景模式界面上。Multiple scene modes can be presented directly on the scene mode interface, or can be presented on the scene mode interface by pulling down the scene mode options.
设备簇的情景模式界面可以通过设备簇APP打开。The scene mode interface of the device cluster can be opened through the device cluster APP.
以上仅为对“簇头设备获得设备簇对应的第一情景模式”的示例性说明,不应理解为对“簇头设备获得设备簇对应的第一情景模式”的限定,换句话说,簇头设备还可以通过设备簇中的其他电子设备的显示屏获得设备簇对应的第一情景模式。The above is only an exemplary description of “the cluster head device obtains the first scene mode corresponding to the device cluster”, and should not be understood as a limitation to “the cluster head device obtains the first scene mode corresponding to the device cluster”, in other words, the cluster The head device can also obtain the first scene mode corresponding to the device cluster through the display screens of other electronic devices in the device cluster.
举例来说,如图4B所示,图4B是本申请实施例提供的一种获得设备簇对应的第一情景模式的示意图,如果簇头设备为手机,那么手机通过显示屏显示情景模式界面,情景模式界面包括第一提示信息(请从下面的四个模式中选取一个情景模式作为设备簇对应的第一情景模式)、省电模式、性能模式、运动模式和游戏模式,当检测到针对情景模式界面的省电模式的触控操作时,将省电模式确定为设备簇对应的第一情景模式。For example, as shown in FIG. 4B, FIG. 4B is a schematic diagram of obtaining the first scene mode corresponding to a device cluster according to an embodiment of the present application. If the cluster head device is a mobile phone, the mobile phone displays the scene mode interface on the display screen. The scene mode interface includes the first prompt information (please select a scene mode from the following four modes as the first scene mode corresponding to the device cluster), power saving mode, performance mode, sports mode and game mode. During the touch operation of the power saving mode of the mode interface, the power saving mode is determined as the first scene mode corresponding to the device cluster.
可见,在本示例中,基于用户针对情景模式界面的触控操作获得设备簇对应的第一情景模式,因此用户可以选择合适的情景模式作为设备簇对应的第一情景模式,这样有助于提高用户的体验。It can be seen that in this example, the first scene mode corresponding to the device cluster is obtained based on the user's touch operation on the scene mode interface. Therefore, the user can select a suitable scene mode as the first scene mode corresponding to the device cluster, which helps to improve User experience.
在一些实施例中,簇头设备获得设备簇对应的第一情景模式,包括:In some embodiments, obtaining the first scene mode corresponding to the device cluster by the cluster head device includes:
若簇头设备包括扬声器和麦克风,则簇头设备通过扬声器发出第二提示信息,第二提示信息用于提示用户从多个情景模式中选取一个情景模式作为设备簇的情景模式;If the cluster head device includes a speaker and a microphone, the cluster head device sends out the second prompt information through the speaker, and the second prompt information is used to prompt the user to select one scene mode from a plurality of scene modes as the scene mode of the device cluster;
簇头设备通过麦克风采集语音信息;The cluster head device collects voice information through a microphone;
簇头设备将语音信息进行语音-文本转换,得到语音信息对应的文本内容;The cluster head device performs voice-to-text conversion on the voice information to obtain the text content corresponding to the voice information;
簇头设备将文本内容确定为设备簇对应的第一情景模式。The cluster head device determines the text content as the first scene mode corresponding to the device cluster.
第二提示信息可以为:请从省电模式、性能模式、运动模式和游戏模式中选取一个情景模式作为设备簇对应的第一情景模式。The second prompt message may be: Please select a scenario mode from the power saving mode, performance mode, sports mode, and game mode as the first scenario mode corresponding to the device cluster.
以上仅为对“簇头设备获得设备簇对应的第一情景模式”的示例性说明,不应理解为对“簇头设备获得设备簇对应的第一情景模式”的限定,换句话说,簇头设备还可以通过设备簇中的其他电子设备的扬声器和麦克风获得设备簇对应的第一情景模式,扬声器和麦克风对应同一个电子设备。The above is only an exemplary description of “the cluster head device obtains the first scene mode corresponding to the device cluster”, and should not be understood as a limitation to “the cluster head device obtains the first scene mode corresponding to the device cluster”, in other words, the cluster The head device can also obtain the first scene mode corresponding to the device cluster through the speakers and microphones of other electronic devices in the device cluster, and the speakers and the microphone correspond to the same electronic device.
可见,在本示例中,基于用户的语音信息获得设备簇对应的第一情景模式,无需用户手动在情景模式界面上进行选择,这样不仅用户可以选择合适的情景模式作为设备簇对应的第一情景模式,而且提高了选择设备簇对应的第一情景模式的便利性。It can be seen that in this example, the first scene mode corresponding to the device cluster is obtained based on the user's voice information, and the user does not need to manually select on the scene mode interface, so that not only can the user select the appropriate scene mode as the first scene corresponding to the device cluster It also improves the convenience of selecting the first scene mode corresponding to the device cluster.
在一些实施例中,簇头设备获得设备簇对应的第一情景模式,包括:In some embodiments, obtaining the first scene mode corresponding to the device cluster by the cluster head device includes:
簇头设备获取历史情景模式记录,历史情景模式记录包括时间段与情景模式的映射关系;The cluster head device obtains the historical scene mode record, and the historical scene mode record includes the mapping relationship between the time period and the scene mode;
簇头设备获取当前时间;The cluster head device obtains the current time;
簇头设备根据时间段与情景模式的映射关系确定当前时间所处时间段对应的目标情景 模式;The cluster head device determines the target scene mode corresponding to the time zone at the current time according to the mapping relationship between the time zone and the scene mode;
簇头设备将目标情景模式确定为设备簇对应的第一情景模式。The cluster head device determines the target scene mode as the first scene mode corresponding to the device cluster.
由于用户的工作和生活习惯相对规律,因此某个时段内设备簇对应的情景模式也相对固定,时间段与情景模式的映射关系预先存储于簇头设备中,时间段与情景模式的映射关系如下表1所示:Because the user’s work and life habits are relatively regular, the scene mode corresponding to the device cluster in a certain period of time is relatively fixed. The mapping relationship between the time period and the scene mode is stored in the cluster head device in advance. The mapping relationship between the time period and the scene mode is as follows Table 1 shows:
表1Table 1
时间段period 情景模式Scene mode
第一时间段First time period 省电模式Power saving mode
第二时间段Second time period 性能模式Performance mode
第三时间段The third time period 运动模式Sport mode
第四时间段The fourth time period 游戏模式Game mode
……... ……...
如果时间段为第一时间段,那么情景模式为省电模式;如果时间段为第二时间段,那么情景模式为性能模式;如果时间段为第三时间段,那么情景模式为运动模式;如果时间段为第四时间段,那么情景模式为游戏模式。If the time period is the first time period, then the scene mode is the power saving mode; if the time period is the second time period, then the scene mode is the performance mode; if the time period is the third time period, then the scene mode is the sports mode; if The time period is the fourth time period, then the scene mode is the game mode.
可见,在本示例中,基于历史情景模式记录和当前时间获得设备簇对应的第一情景模式,无需用户手动在情景模式界面上进行选择,这样提高了选择设备簇对应的第一情景模式的便利性。It can be seen that in this example, the first scene mode corresponding to the device cluster is obtained based on the historical scene mode records and the current time, without the user manually selecting on the scene mode interface, which improves the convenience of selecting the first scene mode corresponding to the device cluster Sex.
402:簇头设备获得设备簇在第一情景模式下的运行情况。402: The cluster head device obtains the running status of the device cluster in the first scenario mode.
设备簇在第一情景模式下的运行情况包括设备簇包括的各个电子设备的设备信息、功能信息以及与第一情景模式对应的运行信息。The operating status of the device cluster in the first scenario mode includes device information, function information, and operating information corresponding to the first scenario mode of each electronic device included in the device cluster.
设备信息包括设备名称和设备型号,设备名称可以包括手表、手机、平板电脑、台式机、蓝牙耳机、智能音箱、智能路由器等。Device information includes device name and device model. Device names can include watches, mobile phones, tablets, desktops, Bluetooth headsets, smart speakers, smart routers, etc.
功能信息包括至少一种功能和至少一个功能使用状态,至少一个功能使用状态与至少一种功能一一对应,功能可以包括音频、视频、蓝牙、蜂窝、WLAN、震动等,功能使用状态包括启用和未启用。The function information includes at least one function and at least one function usage status. At least one function usage status corresponds to at least one function. The functions can include audio, video, Bluetooth, cellular, WLAN, vibration, etc. The function usage status includes enable and Not activated.
如果第一情景模式为省电模式,则电子设备的与第一情景模式对应的运行信息可以包括该电子设备的当前剩余电量和耗电速率、启用至少一个功能中的每个功能的额外耗电速率,启用至少一个功能中的每个功能的额外耗电速率预先存储于该电子设备中,启用目标功能的额外耗电速率是在电子设备仅启用目标功能的情况下,一段时间内该目标功能对应的耗电量与这一段时间的时长的比值,该目标功能对应的耗电量是这一段时间内该电子设备对应的总耗电量与电子设备自身的耗电量的差值。If the first scenario mode is the power saving mode, the operating information of the electronic device corresponding to the first scenario mode may include the current remaining power and power consumption rate of the electronic device, and the additional power consumption for enabling each of the at least one function Rate. The additional power consumption rate for each function of at least one function is pre-stored in the electronic device. The additional power consumption rate for enabling the target function is the target function within a period of time when the electronic device only enables the target function The ratio of the corresponding power consumption to the duration of this period of time, and the power consumption corresponding to the target function is the difference between the total power consumption of the electronic device and the power consumption of the electronic device during this period of time.
如果第一情景模式为性能模式,则电子设备的与第一情景模式对应的运行信息可以包括启用至少一个功能中的每个功能的性能效用,性能效用是电子设备启用某一项功能所达到的用户满意程度,启用至少一个功能中的每个功能的性能效应可以是用户指定的。If the first scenario mode is a performance mode, the operating information of the electronic device corresponding to the first scenario mode may include the performance utility of enabling each of the at least one function, and the performance utility is achieved by the electronic device enabling a certain function The degree of user satisfaction, and the performance effect of enabling each of the at least one function may be user-specified.
以上仅为对“电子设备的与第一情景模式对应的运行信息”的示例性说明,不应理解为对“电子设备的与第一情景模式对应的运行信息”的限定。The above is only an exemplary description of the “operation information of the electronic device corresponding to the first scenario mode”, and should not be understood as a limitation on the “operation information of the electronic device corresponding to the first scenario mode”.
403:当检测到至少一个呼叫需求时,簇头设备根据运行情况获得响应至少一个呼叫需 求的至少一个第一电子设备和至少一个第一响应指令,至少一个第一电子设备和至少一个第一响应指令均与至少一个呼叫需求一一对应。403: When at least one call demand is detected, the cluster head device obtains at least one first electronic device and at least one first response instruction that responds to the at least one call demand, at least one first electronic device and at least one first response according to the operating conditions The instructions all correspond to at least one call demand one-to-one.
呼叫需求可以包括来电、语音通话、视频通话等。Call requirements can include incoming calls, voice calls, video calls, and so on.
在一些实施例中,簇头设备根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令可以采用串行方式,也可以采用并行方式。In some embodiments, the cluster head device may obtain the at least one first electronic device and the at least one first response instruction that responds to the at least one call request according to the operating conditions, either in a serial manner or in a parallel manner.
可见,在本示例中,簇头设备基于设备簇在第一情景模式下的运行情况获得响应呼叫需求的第一电子设备,由于考虑到电子设备的运行情况,因此有助于提高呼叫需求响应的合理性。同时,无需用户手动选择响应电子设备响应呼叫需求,这样有助于提高呼叫需求响应的便利性。It can be seen that in this example, the cluster head device obtains the first electronic device that responds to the call demand based on the operation of the device cluster in the first scenario mode. Since the operation of the electronic device is taken into account, it helps to improve the call demand response. rationality. At the same time, there is no need for the user to manually select the electronic device to respond to the call demand, which helps to improve the convenience of the call demand response.
404:簇头设备向至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。404: The cluster head device sends its corresponding first response instruction to each of the at least one first electronic device.
在一些实施例中,簇头设备向至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令可以采用串行方式,也可以采用并行方式。In some embodiments, the cluster head device may send its corresponding first response instruction to each of the at least one first electronic device in a serial manner or in a parallel manner.
如果呼叫需求为来电,则第一响应指令可以为响铃,也可以为震动;具体来说,如果当前时间处于预设会议时间段,那么第一响应指令是震动,簇头设备向第一电子设备发送第一响应指令,第一电子设备接收第一响应指令,并显示来电界面且震动;如果当前时间未处于会议时间段,那么第一响应指令是响铃,簇头设备向第一电子设备发送第一响应指令,第一电子设备接收第一响应指令,并显示来电界面且响铃;以上仅为对第一响应指令的示例性说明,不应理解为对第一响应指令的限定。If the call demand is an incoming call, the first response instruction can be ringing or vibration; specifically, if the current time is within the preset meeting time period, then the first response instruction is vibration, and the cluster head device sends the first electronic The device sends the first response instruction, the first electronic device receives the first response instruction, and displays the incoming call interface and vibrates; if the current time is not in the meeting time period, then the first response instruction is a bell, and the cluster head device sends the first electronic device Sending the first response instruction, the first electronic device receives the first response instruction, displays the incoming call interface and rings; the above is only an exemplary description of the first response instruction, and should not be understood as a limitation on the first response instruction.
可以看出,相较于用户完全凭借个人习惯选择电子设备响应呼叫需求,在本申请实施例中,簇头设备根据设备簇在第一情景模式下的运行情况获得响应呼叫需求的第一电子设备,由于考虑到电子设备的实际运行情况,因此有助于提高呼叫需求响应的合理性。同时,相较于用户需要手动选择响应呼叫需求的电子设备,在本申请实施例中,响应呼叫需求的第一电子设备无需用户手动选择,这样有助于提高呼叫需求响应的便利性。It can be seen that, compared to the user choosing the electronic device to respond to the call demand based solely on personal habits, in the embodiment of the present application, the cluster head device obtains the first electronic device that responds to the call demand according to the running status of the device cluster in the first scenario mode. , Since the actual operation of electronic equipment is taken into account, it helps to improve the rationality of call demand response. At the same time, compared with the user needing to manually select the electronic device that responds to the call demand, in the embodiment of the present application, the first electronic device that responds to the call demand does not need to be manually selected by the user, which helps to improve the convenience of responding to the call demand.
在一些实施例中,簇头设备是用户指定的;如果设备簇包括手机和以下至少一种:手表、平板电脑、台式机、蓝牙耳机,那么用户指定的簇头设备为手机;如果设备簇包括智能音箱和以下至少一种:手表、手机、平板电脑、台式机、蓝牙耳机,那么用户指定的簇头设备为智能音箱;如果设备簇包括智能路由器和以下至少一种:手表、手机、平板电脑、台式机、蓝牙耳机,那么用户指定的簇头设备为智能路由器;如果设备簇包括智能音箱、智能路由器和以下至少一种:手表、手机、平板电脑、台式机、蓝牙耳机,那么用户指定的簇头设备为智能音箱或智能路由器。当簇头设备为智能音箱或智能路由器时,此时用户一般处于智能家居场景,使用智能音箱或智能路由器作为簇头设备,无需担心电量不足的问题。以上仅为对“簇头设备是用户指定的”的示例性说明,不应理解为对“簇头设备是用户指定的”的限定。In some embodiments, the cluster head device is designated by the user; if the device cluster includes a mobile phone and at least one of the following: watches, tablets, desktops, and Bluetooth headsets, then the cluster head device designated by the user is a mobile phone; if the device cluster includes Smart speakers and at least one of the following: watches, mobile phones, tablets, desktops, Bluetooth headsets, then the cluster head device designated by the user is a smart speaker; if the device cluster includes smart routers and at least one of the following: watches, phones, tablets , Desktop, Bluetooth headset, then the user-specified cluster head device is a smart router; if the device cluster includes smart speakers, smart routers, and at least one of the following: watches, mobile phones, tablets, desktops, Bluetooth headsets, then the user-specified The cluster head device is a smart speaker or a smart router. When the cluster head device is a smart speaker or a smart router, the user is generally in a smart home scene and uses the smart speaker or smart router as the cluster head device without worrying about insufficient power. The above is only an exemplary description of "the cluster head device is specified by the user", and should not be understood as a limitation on the "cluster head device is specified by the user".
在一些实施例中,簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从设备簇中选取的。In some embodiments, the cluster head device is selected from the device cluster based on the communication capability, data computing capability, and data storage capability of the electronic device.
电子设备的通信能力是根据电子设备的传输速率和覆盖范围确定的,从设备簇中选取簇头设备可以周期性进行。The communication capability of the electronic device is determined according to the transmission rate and coverage of the electronic device, and the selection of the cluster head device from the device cluster can be performed periodically.
如图4C所示,图4C是本申请实施例提供的一种从设备簇中选取簇头设备的方法的流程示意图,设备簇包括N个电子设备,N为大于1的整数,该从设备簇中选取簇头设备的方法包括步骤A1-A10,具体如下:As shown in FIG. 4C, FIG. 4C is a schematic flowchart of a method for selecting a cluster head device from a device cluster according to an embodiment of the present application. The device cluster includes N electronic devices, and N is an integer greater than 1. The slave device cluster The method for selecting a cluster head device in, includes steps A1-A10, which are specifically as follows:
A1:目标电子设备向N个电子设备中除目标电子设备之外的(N-1)个电子设备发送(N-1)个第一请求,(N-1)个第一请求与(N-1)个电子设备一一对应,第一请求用于指示其对应的电子设备反馈通信能力、数据运算能力和数据存储能力。A1: The target electronic device sends (N-1) first requests, (N-1) first requests and (N- 1) There is a one-to-one correspondence between electronic devices, and the first request is used to instruct the corresponding electronic device to feed back communication capabilities, data computing capabilities, and data storage capabilities.
在一些实施例中,目标电子设备为N个电子设备中轮询等级最高的电子设备;如果N个电子设备包括手表、手机、平板电脑、台式机、蓝牙耳机、智能音箱和智能路由器,那么N个电子设备的轮询等级的大小顺序可以为:智能音箱=智能路由器>手机>平板电脑>台式机>手表>蓝牙耳机;N个电子设备的轮询等级的大小顺序可以预先存储于N个电子设备中的每个电子设备中。以上仅为对“N个电子设备的轮询等级的大小顺序”的示例性说明,不应理解为对“N个电子设备的轮询等级的大小顺序”的限定。In some embodiments, the target electronic device is the electronic device with the highest polling level among the N electronic devices; if the N electronic devices include watches, mobile phones, tablets, desktops, Bluetooth headsets, smart speakers, and smart routers, then N The order of the polling levels of each electronic device can be: smart speaker=smart router>mobile phone>tablet PC>desktop>watch>Bluetooth headset; the order of the polling levels of N electronic devices can be stored in N electronic devices in advance In every electronic device in the device. The above is only an exemplary description of "the order of the size of the polling levels of the N electronic devices", and should not be understood as a limitation on the "sequence of the size of the polling levels of the N electronic devices".
在一些实施例中,电子设备的通信能力、数据运算能力和数据存储能力预先存储于该电子设备中,该电子设备的通信能力、数据运算能力和数据存储能力可以是用户配置的;以上仅为对“电子设备的通信能力、数据运算能力和数据存储能力”的示例性说明,不应理解为对“电子设备的通信能力、数据运算能力和数据存储能力”的限定。In some embodiments, the communication capability, data operation capability, and data storage capability of the electronic device are pre-stored in the electronic device, and the communication capability, data operation capability, and data storage capability of the electronic device may be configured by the user; the above is only The illustrative description of "electronic equipment's communication capabilities, data computing capabilities, and data storage capabilities" should not be understood as a limitation on "electronic equipment's communication capabilities, data computing capabilities, and data storage capabilities".
A2:(N-1)个电子设备接收目标电子设备发送的(N-1)个第一请求,以及向目标电子设备发送(N-1)个第一通信能力、(N-1)个第一数据运算能力和(N-1)个第一数据存储能力,(N-1)个第一通信能力、(N-1)个第一数据运算能力和(N-1)个第一数据存储能力均与(N-1)个电子设备一一对应。A2: (N-1) electronic devices receive (N-1) first requests sent by the target electronic device, and send (N-1) first communication capabilities and (N-1) first requests to the target electronic device One data computing capability and (N-1) first data storage capability, (N-1) first communication capability, (N-1) first data computing capability and (N-1) first data storage The abilities are in one-to-one correspondence with (N-1) electronic devices.
A3:目标电子设备接收(N-1)个第一通信能力、(N-1)个第一数据运算能力和(N-1)个第一数据存储能力,获取目标电子设备的第一通信能力、第一数据运算能力和第一数据存储能力。A3: The target electronic device receives (N-1) first communication capabilities, (N-1) first data computing capabilities, and (N-1) first data storage capabilities to obtain the first communication capability of the target electronic device , The first data computing capability and the first data storage capability.
A4:目标电子设备判断N个第一通信能力是否相同;A4: The target electronic device judges whether the N first communication capabilities are the same;
若否,则执行步骤A5。If not, go to step A5.
若是,则执行步骤A6。If yes, go to step A6.
A5:目标电子设备将N个第一通信能力中的最大通信能力对应的电子设备确定为簇头设备。A5: The target electronic device determines the electronic device corresponding to the largest communication capability among the N first communication capabilities as the cluster head device.
A6:目标电子设备判断N个第一数据运算能力是否相同;A6: The target electronic device judges whether the computing capabilities of the N first data are the same;
若否,则执行步骤A7。If not, go to step A7.
若是,则执行步骤A8。If yes, go to step A8.
A7:目标电子设备将N个第一数据运算能力中的最大数据运算能力对应的电子设备确定为簇头设备。A7: The target electronic device determines the electronic device corresponding to the largest data operation capability among the N first data operation capabilities as the cluster head device.
A8:目标电子设备判断N个第一数据存储能力是否相同;A8: The target electronic device judges whether the N first data storage capabilities are the same;
若否,则执行步骤A9。If not, go to step A9.
若是,则执行步骤A10。If yes, go to step A10.
A9:目标电子设备将N个第一数据存储能力中的最大数据存储能力对应的电子设备确定为簇头设备。A9: The target electronic device determines the electronic device corresponding to the largest data storage capacity among the N first data storage capacities as the cluster head device.
A10:目标电子设备将N个电子设备中的任意一个电子设备确定为簇头设备。A10: The target electronic device determines any one of the N electronic devices as the cluster head device.
举例来说,如图4D所示,图4D是本申请实施例提供的一种从手表、手机和平板电脑中选取簇头设备的方法的流程示意图,该从手表、手机和平板电脑中选取簇头设备的方法包括步骤A11-A20,具体如下:For example, as shown in FIG. 4D, FIG. 4D is a flow diagram of a method for selecting cluster head devices from watches, mobile phones, and tablet computers according to an embodiment of the present application. The cluster head devices are selected from watches, mobile phones, and tablet computers. The method of the head device includes steps A11-A20, which are specifically as follows:
A11:手机向手表和平板电脑均发送第一请求,第一请求用于指示手表和平板电脑均反馈通信能力、数据运算能力和数据存储能力;A11: The mobile phone sends the first request to both the watch and the tablet. The first request is used to instruct the watch and the tablet to feed back the communication capabilities, data computing capabilities, and data storage capabilities;
A12:手表接收手机发送的第一请求,以及向手机发送该手表的通信能力、数据运算能力和数据存储能力;平板电脑接收手机发送的第一请求,以及向手机发送该平板电脑的通信能力、数据运算能力和数据存储能力;A12: The watch receives the first request sent by the phone, and sends the watch’s communication capabilities, data computing capabilities and data storage capabilities to the phone; the tablet receives the first request sent by the phone, and sends the tablet’s communication capabilities to the phone. Data computing capacity and data storage capacity;
A13:手机接收该手表的通信能力、数据运算能力和数据存储能力以及该平板电脑的通信能力、数据运算能力和数据存储能力,获取该手机的通信能力、数据运算能力和数据存储能力;A13: The mobile phone receives the communication ability, data calculation ability and data storage ability of the watch and the communication ability, data calculation ability and data storage ability of the tablet computer, and obtains the communication ability, data calculation ability and data storage ability of the mobile phone;
A14:手机判断手表、手机和平板电脑的三个通信能力是否相同;A14: The mobile phone judges whether the three communication capabilities of the watch, mobile phone and tablet computer are the same;
若否,则执行步骤A15。If not, go to step A15.
若是,则执行步骤A16。If yes, go to step A16.
A15:手机将三个通信能力中最大通信能力对应的电子设备确定为簇头设备。A15: The mobile phone determines the electronic device corresponding to the largest communication capability among the three communication capabilities as the cluster head device.
A16:手机判断手机、手机和平板电脑的三个数据运算能力是否相同;A16: The mobile phone judges whether the three data computing capabilities of the mobile phone, mobile phone and tablet computer are the same;
若否,则执行步骤A17。If not, go to step A17.
若是,则执行步骤A18。If yes, go to step A18.
A17:手机将三个数据运算能力中的最大数据运算能力对应的电子设备确定为簇头设备。A17: The mobile phone determines the electronic device corresponding to the largest data operation capability among the three data operation capabilities as the cluster head device.
A18:手机判断手机、手机和平板电脑的三个数据存储能力是否相同;A18: The mobile phone judges whether the three data storage capacities of the mobile phone, the mobile phone and the tablet computer are the same;
若否,则执行步骤A19。If not, go to step A19.
若是,则执行步骤A20。If yes, go to step A20.
A19:手机将三个数据存储能力中的最大数据存储能力对应的电子设备确定为簇头设备。A19: The mobile phone determines the electronic device corresponding to the largest data storage capacity among the three data storage capacities as the cluster head device.
A20:手机将手表、手机和平板电脑中的任意一个电子设备确定为簇头设备。A20: The mobile phone determines any electronic device among the watch, mobile phone and tablet computer as the cluster head device.
如图4E所示,图4E是本申请实施例提供的另一种从设备簇中选取簇头设备的方法的流程示意图,设备簇包括M个电子设备,M为大于1的整数,该从设备簇中选取簇头设备的方法包括步骤B1-B7,具体如下:As shown in FIG. 4E, FIG. 4E is a schematic flowchart of another method for selecting a cluster head device from a device cluster provided by an embodiment of the present application. The device cluster includes M electronic devices, and M is an integer greater than 1, the slave device The method for selecting a cluster head device in a cluster includes steps B1-B7, which are specifically as follows:
B1:目标电子设备向M个电子设备中除目标电子设备之外的(M-1)个电子设备发送(M-1)个第二请求,(M-1)个第二请求与(M-1)个电子设备一一对应,第二请求用于指示其对应的电子设备反馈通信能力、数据运算能力和数据存储能力。B1: The target electronic device sends (M-1) second requests, (M-1) second requests and (M- 1) There is a one-to-one correspondence between electronic devices, and the second request is used to instruct its corresponding electronic device to feed back communication capabilities, data computing capabilities, and data storage capabilities.
步骤B1参见上述步骤A1的描述,在此不再叙述。For step B1, refer to the description of the above step A1, which will not be described here.
B2:(M-1)个电子设备接收目标电子设备发送的(M-1)个第二请求,以及向目标电子设备发送(M-1)个第二通信能力、(M-1)个第二数据运算能力和(M-1)个第二数据存储能力,(M-1)个第二通信能力、(M-1)个第二数据运算能力和(M-1)个第二数据 存储能力均与(M-1)个电子设备一一对应。B2: (M-1) electronic device receives (M-1) second request sent by the target electronic device, and sends (M-1) second communication capability, (M-1) second request to the target electronic device Two data computing capabilities and (M-1) second data storage capabilities, (M-1) second communication capabilities, (M-1) second data computing capabilities and (M-1) second data storage The abilities are in one-to-one correspondence with (M-1) electronic devices.
B3:目标电子设备接收(M-1)个第二通信能力、(M-1)个第二数据运算能力和(M-1)个第二数据存储能力,获取目标电子设备的第二通信能力、第二数据运算能力和第二数据存储能力。B3: The target electronic device receives (M-1) second communication capability, (M-1) second data computing capability, and (M-1) second data storage capability to obtain the second communication capability of the target electronic device , The second data computing capability and the second data storage capability.
B4:目标电子设备根据M个第二通信能力、M个第二数据运算能力、M个第二数据存储能力和综合分数公式获得M个第一综合分数,M个第一综合分数与M个电子设备一一对应。B4: The target electronic device obtains M first comprehensive scores, M first comprehensive scores and M electronics based on M second communication capabilities, M second data computing capabilities, M second data storage capabilities and comprehensive score formulas One-to-one correspondence between devices.
在一些实施例中,综合分数公式预先存储于目标电子设备中,综合分数公式为:In some embodiments, the comprehensive score formula is pre-stored in the target electronic device, and the comprehensive score formula is:
P=Q×T 1+R×T 2+S×T 3P=Q×T 1 +R×T 2 +S×T 3 ,
P为综合分数,Q为第二通信能力,T 1为第二通信能力对应的权重,R为第二数据运算能力,T 2为第二数据运算能力对应的权重,S为第二数据存储能力,T 3为第二数据存储能力对应的权重,T 1+T 2+T 3=1。 P is the comprehensive score, Q is the second communication capability, T 1 is the weight corresponding to the second communication capability, R is the second data computing capability, T 2 is the weight corresponding to the second data computing capability, and S is the second data storage capability , T 3 is the weight corresponding to the second data storage capacity, T 1 +T 2 +T 3 =1.
B5:目标电子设备判断M个第一综合分数是否相同;B5: The target electronic device judges whether the M first comprehensive scores are the same;
若否,则执行步骤B6。If not, go to step B6.
若是,则执行步骤B7。If yes, go to step B7.
B6:目标电子设备将M个第一综合分数中的最大综合分数对应的电子设备确定为簇头设备。B6: The target electronic device determines the electronic device corresponding to the largest comprehensive score among the M first comprehensive scores as the cluster head device.
B7:目标电子设备将M个电子设备中的任意一个电子设备确定为簇头设备。B7: The target electronic device determines any one of the M electronic devices as the cluster head device.
可见,在本示例中,无论簇头设备是用户指定的,或者,簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从设备簇中选取的,在各种情景模式下簇头设备均是最佳的,进而基于最佳的簇头设备获得响应呼叫需求的第一电子设备和第一响应指令,以及向第一电子设备发送其对应的第一响应指令,这样有助于提高呼叫需求响应的效率。It can be seen that in this example, whether the cluster head device is specified by the user, or the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device, the cluster is selected in various scenarios. The head device is the best, and then based on the best cluster head device, the first electronic device and the first response instruction that respond to the call demand are obtained, and the corresponding first response instruction is sent to the first electronic device, which helps Improve the efficiency of call demand response.
举例来说,如图4F所示,图4F是本申请实施例提供的另一种从手表、手机和平板电脑中选取簇头设备的方法的流程示意图,该从手表、手机和平板电脑中选取簇头设备的方法包括步骤B8-B14,具体如下:For example, as shown in FIG. 4F, FIG. 4F is a schematic flowchart of another method for selecting cluster head devices from watches, mobile phones, and tablets provided by an embodiment of the present application. The cluster head device method includes steps B8-B14, which are specifically as follows:
B8:手机向手表和平板电脑均发送第二请求,第二请求用于指示手表和平板电脑均反馈通信能力、数据运算能力和数据存储能力。B8: The mobile phone sends a second request to both the watch and the tablet, and the second request is used to instruct the watch and the tablet to feed back the communication capabilities, data computing capabilities, and data storage capabilities.
B9:手表接收手机送的第二请求,以及向手机发送该手表的通信能力、数据运算能力和数据存储能力;平板电脑接收手机发送的第二请求,以及向手机发送该平板电脑的通信能力、数据运算能力和数据存储能力。B9: The watch receives the second request from the mobile phone, and sends the watch’s communication capabilities, data computing capabilities and data storage capabilities to the mobile phone; the tablet receives the second request from the mobile phone, and sends the tablet’s communication capabilities to the mobile phone. Data computing capacity and data storage capacity.
B10:手机接收该手表的通信能力、数据运算能力和数据存储能力以及该平板电脑的通信能力、数据运算能力和数据存储能力,获取该手机的通信能力、数据运算能力和数据存储能力。B10: The mobile phone receives the communication ability, data calculation ability and data storage ability of the watch and the communication ability, data calculation ability and data storage ability of the tablet computer, and obtains the communication ability, data calculation ability and data storage ability of the mobile phone.
B11:手机根据该手表的通信能力、数据运算能力和数据存储能力,该平板电脑的通信能力、数据运算能力和数据存储能力,该手机的通信能力、数据运算能力和数据存储能力,以及综合分数公式获得该手表的综合分数、该平板电脑的综合分数和该手机的综合分数。B11: According to the mobile phone's communication ability, data calculation ability and data storage ability of the watch, the communication ability, data calculation ability and data storage ability of the tablet computer, the communication ability, data calculation ability and data storage ability of the mobile phone, and the comprehensive score The formula obtains the comprehensive score of the watch, the comprehensive score of the tablet and the comprehensive score of the mobile phone.
B12:手机判断手表、手机和平板电脑的三个综合分数是否相同;B12: The mobile phone judges whether the three comprehensive scores of the watch, mobile phone and tablet computer are the same;
若否,则执行步骤B13。If not, go to step B13.
若是,则执行步骤B14。If yes, go to step B14.
B13:手机将三个综合分数中的最大综合分数对应的电子设备确定为簇头设备。B13: The mobile phone determines the electronic device corresponding to the largest comprehensive score among the three comprehensive scores as the cluster head device.
B14:手机将手表、手机和平板电脑中的任意一个电子设备确定为簇头设备。B14: The mobile phone determines any electronic device among the watch, mobile phone and tablet computer as the cluster head device.
如图4G所示,图4G是本申请实施例提供的一种簇头设备获得设备簇在第一情景模式下的运行情况并根据运行情况获得响应至少一个呼叫请求的至少一个第一电子设备和至少一个第一响应指令的方法,设备簇包括U个电子设备,U为大于1的整数,该簇头设备获得设备簇在第一情景模式下的运行情况并根据运行情况获得响应至少一个呼叫请求的至少一个第一电子设备和至少一个第一响应指令的方法包括步骤C1-C10,具体如下:As shown in FIG. 4G, FIG. 4G is a cluster head device provided by an embodiment of the present application to obtain the operating status of the device cluster in the first scenario mode and obtain at least one first electronic device and at least one first electronic device that responds to at least one call request according to the operating status. At least one method for first responding to instructions, the device cluster includes U electronic devices, U is an integer greater than 1, the cluster head device obtains the operating status of the device cluster in the first scenario mode and responds to at least one call request according to the operating status The method for at least one first electronic device and at least one first response instruction includes steps C1-C10, which are specifically as follows:
C1:簇头设备向U个电子设备中除簇头设备之外的(U-1)个电子设备发送(U-1)个第三请求,(U-1)个第三请求与(U-1)个电子设备一一对应,第三请求用于指示其对应的电子设备反馈设备信息、功能信息以及与第一情景模式对应的运行信息。C1: The cluster head device sends (U-1) third requests, (U-1) third requests and (U- 1) There is a one-to-one correspondence between electronic devices, and the third request is used to instruct its corresponding electronic device to feed back device information, function information, and operating information corresponding to the first scenario mode.
电子设备的设备信息、功能信息以及与不同的情景模式对应的运行信息预先存储于该电子设备中。The device information, function information, and operation information corresponding to different scene modes of the electronic device are pre-stored in the electronic device.
C2:(U-1)个电子设备接收簇头设备发送的(U-1)个第三请求,以及向簇头设备发送(U-1)个第一设备信息、(U-1)个第一功能信息以及与第一情景模式对应的(U-1)个第一运行信息,(U-1)个第一设备信息、(U-1)个第一功能信息和(U-1)个第一运行信息均与(U-1)个电子设备一一对应。C2: (U-1) electronic devices receive the (U-1) third request sent by the cluster head device, and send (U-1) first device information and (U-1) first device information to the cluster head device One function information and (U-1) first operation information corresponding to the first scene mode, (U-1) first device information, (U-1) first function information and (U-1) The first operating information is in one-to-one correspondence with (U-1) electronic devices.
C3:簇头设备接收(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息,获取簇头设备的第一设备信息、第一功能信息以及与第一情景模式对应的第一运行信息。C3: The cluster head device receives (U-1) first device information, (U-1) first function information, and (U-1) first operating information, and obtains the first device information and first operation information of the cluster head device. A function information and first operation information corresponding to the first scene mode.
在一些实施例中,设备簇包括U个电子设备,U为大于1的整数,簇头设备获得设备簇在第一情景模式下的运行情况,包括:In some embodiments, the device cluster includes U electronic devices, and U is an integer greater than 1, and the cluster head device obtains the operating status of the device cluster in the first scenario mode, including:
簇头设备定期接收(U-1)个电子设备发送的(U-1)个第一设备信息、(U-1)个第一功能信息以及与第一情景模式对应的(U-1)个第一运行信息,U-1)个第一设备信息、(U-1)个第一功能信息和(U-1)个第一运行信息均与(U-1)个电子设备一一对应,设备簇包括簇头设备和(U-1)个电子设备;The cluster head device regularly receives (U-1) first device information, (U-1) first function information and (U-1) corresponding to the first scene mode sent by (U-1) electronic devices The first operation information, U-1) first device information, (U-1) first function information, and (U-1) first operation information all correspond to (U-1) electronic devices one-to-one, The equipment cluster includes cluster head equipment and (U-1) electronic equipment;
簇头设备获取簇头设备的第一设备信息、第一功能信息和与第一情景模式对应的第一运行信息;The cluster head device obtains first device information, first function information, and first operating information corresponding to the first scenario mode of the cluster head device;
簇头设备将U个第一设备信息、U个第一功能信息和U个第一运行信息确定为设备簇在第一情景模式下的运行情况。The cluster head device determines U pieces of first device information, U pieces of first function information, and U pieces of first operating information as the operating conditions of the device cluster in the first scenario mode.
可见,在本示例中,簇头设备被动接收(U-1)个电子设备在第一情景模式下的运行情况,并获得簇头设备在第一情景模式下的运行情况,以便于簇头设备基于设备簇在第一情景模式下的运行情况确定响应呼叫需求的第一电子设备,进而提高呼叫需求响应的合理性。It can be seen that in this example, the cluster head device passively receives (U-1) operating conditions of electronic devices in the first scenario mode, and obtains the operating conditions of the cluster head device in the first scenario mode, so as to facilitate the cluster head device The first electronic device that responds to the call demand is determined based on the operating status of the device cluster in the first scenario mode, thereby improving the rationality of the call demand response.
C4:簇头设备将U个第一设备信息、U个第一功能信息和U个第一运行信息确定为设备簇在第一情景模式下的运行情况。C4: The cluster head device determines U pieces of first device information, U pieces of first function information, and U pieces of first operating information as the operating conditions of the device cluster in the first scenario mode.
C5:簇头设备根据情景模式与呼叫需求响应模型的映射关系获得省电模式对应的第一呼叫响应模型。C5: The cluster head device obtains the first call response model corresponding to the power saving mode according to the mapping relationship between the scenario mode and the call demand response model.
情景模式与呼叫需求响应模型的映射关系预先存储于簇头设备中,情景模式与呼叫需 求响应模型的映射关系如下表2所示:The mapping relationship between the scenario mode and the call demand response model is stored in the cluster head device in advance. The mapping relationship between the scenario mode and the call demand response model is shown in Table 2 below:
表2Table 2
情景模式Scene mode 呼叫需求响应模型Call demand response model
省电模式Power saving mode 第一呼叫需求响应模型First call demand response model
性能模式Performance mode 第二呼叫需求响应模型Second call demand response model
运动模式Sport mode 第三呼叫需求响应模型The third call demand response model
游戏模式Game mode 第四呼叫需求响应模型Fourth call demand response model
……... ……...
如果情景模式为省电模式,那么呼叫需求响应模型为第一呼叫需求响应模型;如果情景模式为性能模式,那么呼叫需求响应模型为第二呼叫需求响应模型;如果情景模式为运动模式,那么呼叫需求响应模型为第三呼叫需求响应模型;如果情景模式为游戏模式,那么呼叫需求响应模型为第四呼叫需求响应模型。If the scene mode is the power saving mode, then the call demand response model is the first call demand response model; if the scene mode is the performance mode, then the call demand response model is the second call demand response model; if the scene mode is the sports mode, then the call The demand response model is the third call demand response model; if the scene mode is the game mode, then the call demand response model is the fourth call demand response model.
C6:簇头设备将至少一个呼叫需求和运行情况输入第一呼叫需求响应模型。C6: The cluster head device inputs at least one call demand and operation status into the first call demand response model.
C7:簇头设备根据运行情况获得每个电子设备的当前剩余电量和耗电速率、启用至少一个功能中的每个功能的额外耗电速率、启用来电的耗电速率和启用视频通话的耗电速率。C7: The cluster head device obtains the current remaining power and power consumption rate of each electronic device according to the operating conditions, the additional power consumption rate for each function in at least one function, the power consumption rate for enabling incoming calls, and the power consumption for enabling video calls rate.
C8:簇头设备调用第一呼叫需求响应模型中的第一呼叫需求响应函数。C8: The cluster head device calls the first call demand response function in the first call demand response model.
第一呼叫需求响应函数预先存储于第一呼叫需求响应模型中,第一呼叫需求响应函数为:The first call demand response function is pre-stored in the first call demand response model, and the first call demand response function is:
Figure PCTCN2020129736-appb-000001
Figure PCTCN2020129736-appb-000001
Figure PCTCN2020129736-appb-000002
Figure PCTCN2020129736-appb-000002
I为设备簇包括的所有电子设备形成的集合,i∈I为设备簇中的任意一个电子设备,至少一个呼叫需求的集合为S,s∈S为至少一个呼叫需求中的任意一个呼叫需求,
Figure PCTCN2020129736-appb-000003
Figure PCTCN2020129736-appb-000004
表示电子设备i具备功能s,
Figure PCTCN2020129736-appb-000005
表示电子设备i不具有功能s,
Figure PCTCN2020129736-appb-000006
表示电子设备i启用功能s的额外耗电速率,r i为电子设备的当前剩余电量,z i为电子设备的耗电速率,
Figure PCTCN2020129736-appb-000007
Figure PCTCN2020129736-appb-000008
表示电子设备i启用功能s,
Figure PCTCN2020129736-appb-000009
表示电子设备i未启用功能s。
I is the set formed by all the electronic devices included in the device cluster, i∈I is any electronic device in the device cluster, the set of at least one call demand is S, and s∈S is any one of the at least one call demand,
Figure PCTCN2020129736-appb-000003
Figure PCTCN2020129736-appb-000004
Indicates that the electronic device i has the function s,
Figure PCTCN2020129736-appb-000005
Indicates that the electronic device i does not have the function s,
Figure PCTCN2020129736-appb-000006
Indicates the additional power consumption rate of the electronic device i to enable the function s, r i is the current remaining power of the electronic device, and z i is the power consumption rate of the electronic device,
Figure PCTCN2020129736-appb-000007
Figure PCTCN2020129736-appb-000008
Indicates that the electronic device i enables the function s,
Figure PCTCN2020129736-appb-000009
Indicates that the function s is not enabled for the electronic device i.
C9:簇头设备根据每个电子设备的当前剩余电量和耗电速率、启用至少一个功能中的每个功能的额外耗电速率、启用来电的耗电速率、启用视频通话的耗电速率和第一呼叫需求响应函数获得响应至少一个呼叫需求的至少一个第一电子设备。C9: The cluster head device is based on the current remaining power and power consumption rate of each electronic device, the additional power consumption rate for each function in at least one function, the power consumption rate for enabling incoming calls, the power consumption rate for enabling video calls, and the first A call demand response function obtains at least one first electronic device that responds to at least one call demand.
C10:簇头设备根据至少一个呼叫需求和至少一个第一电子设备生成至少一个第一响应指令,至少一个第一响应指令分别与至少一个呼叫需求和至少一个第一电子设备一一对应。C10: The cluster head device generates at least one first response instruction according to the at least one call demand and the at least one first electronic device, and the at least one first response instruction corresponds to the at least one call demand and the at least one first electronic device respectively.
第一响应指令包括一个呼叫需求和将该呼叫需求传输到的第一电设备。The first response instruction includes a call request and the first electric device to which the call request is transmitted.
可见,在本示例中,簇头设备获得设备簇在第一情景模式下的运行情况,以便于簇头设备基于设备簇在第一情景模式下的运行情况确定响应呼叫需求的第一电子设备,进而提高呼叫需求响应的合理性。It can be seen that in this example, the cluster head device obtains the operating status of the device cluster in the first scenario mode, so that the cluster head device can determine the first electronic device that responds to the call demand based on the operating status of the device cluster in the first scenario mode. In turn, the rationality of the call demand response is improved.
举例来说,如图4H所示,图4H是本申请实施例提供的一种手机获取手表、手机、平 板电脑在省电模式下的运行情况并根据运行情况获得响应来电和视频通话的两个第一电子设备和两个第一响应指令的方法的流程示意图,该手机获取手表、手机、平板电脑在省电模式下的运行情况并根据运行情况获得响应来电和视频通话的两个第一电子设备和两个第一响应指令的方法包括步骤C11-C20,具体如下:For example, as shown in FIG. 4H, FIG. 4H is a mobile phone provided in an embodiment of the application to obtain the operation status of a watch, a mobile phone, and a tablet computer in the power saving mode, and obtain two responses to incoming calls and video calls according to the operation status. A schematic flow diagram of the first electronic device and the method of two first response instructions. The mobile phone obtains the operation status of the watch, the mobile phone, and the tablet in the power saving mode and obtains the two first electronic devices that respond to the incoming call and the video call according to the operation status. The method of the device and the two first response instructions includes steps C11-C20, which are specifically as follows:
C11:手机向手表和平板电脑均发送第三请求,第三请求用于指示手表和平板电脑反馈设备信息、功能信息以及与省电模式对应的运行信息;C11: The mobile phone sends a third request to both the watch and the tablet. The third request is used to instruct the watch and the tablet to feed back device information, function information, and operating information corresponding to the power saving mode;
C12:手表接收手机发送的第三请求,以及向手机发送该手表的设备信息、功能信息以及与省电模式对应的运行信息;平板电脑接收手机发送的第三请求,以及向手机发送该平板电脑的设备信息、功能信息以及与省电模式对应的运行信息;C12: The watch receives the third request sent by the mobile phone, and sends the device information, function information and operation information corresponding to the power saving mode of the watch to the mobile phone; the tablet receives the third request sent by the mobile phone, and sends the tablet to the mobile phone The equipment information, function information and operation information corresponding to the power saving mode;
C13:手机接收该手表的设备信息、功能信息以及运行信息,该平板电脑的设备信息、功能信息以及运行信息,获取该手机的设备信息、功能信息以及与省电模式对应的运行信息。C13: The mobile phone receives the device information, function information and operation information of the watch, the device information, function information and operation information of the tablet computer, and obtains the device information, function information and operation information corresponding to the power saving mode of the mobile phone.
C14:手机将该手表的设备信息、功能信息以及运行信息,该平板电脑的设备信息、功能信息以及运行信息,以及该手机的设备信息、功能信息以及与省电模式对应的运行信息确定为设备簇在省电模式下的运行情况。C14: The mobile phone determines the device information, function information and operation information of the watch, the device information, function information and operation information of the tablet computer, and the device information, function information and operation information corresponding to the power saving mode of the mobile phone as the device The running status of the cluster in power saving mode.
C15:手机根据情景模式与呼叫需求响应模型的映射关系获得省电模式对应的第一呼叫响应模型。C15: The mobile phone obtains the first call response model corresponding to the power saving mode according to the mapping relationship between the scenario mode and the call demand response model.
C16:手机将来电、视频通话和设备簇在省电模式下的运行情况输入第一呼叫需求响应模型。C16: Enter the first call demand response model into the mobile phone's incoming calls, video calls, and the operation of the device cluster in the power-saving mode.
C17:手机根据运行情况获得手表、手机和平板电脑中的每个的当前剩余电量和耗电速率、启用至少一个功能中的每个功能的额外耗电速率、启用来电的耗电速率和启用视频通话的耗电速率。C17: The mobile phone obtains the current remaining power and power consumption rate of each of the watch, mobile phone and tablet according to the operating conditions, the additional power consumption rate of each function in at least one function, the power consumption rate of the incoming call, and the video enable The power consumption rate of the call.
C18:手机调用第一呼叫需求响应模型中的第一呼叫需求响应函数。C18: The mobile phone calls the first call demand response function in the first call demand response model.
C19:手机根据手表、手机和平板电脑中的每个的当前剩余电量和耗电速率、启用至少一个功能中的每个功能的额外耗电速率、启用来电的耗电速率、启用视频通话的耗电速率和第一呼叫需求响应函数获得手机响应来电和平板电脑响应视频通话。C19: According to the current remaining power and power consumption rate of each of the watch, mobile phone, and tablet, the mobile phone activates the additional power consumption rate of each function in at least one function, the power consumption rate when the incoming call is enabled, and the power consumption when the video call is enabled. The power rate and the first call demand response function get the mobile phone to respond to the incoming call and the tablet to respond to the video call.
C20:手机根据来电和手机生成一个响应指令,以及根据视频通话和平板电脑生成另一个响应指令。C20: The mobile phone generates a response command based on the incoming call and the mobile phone, and generates another response command based on the video call and the tablet.
如图4I所示,图4I是本申请实施例提供的另一种簇头设备获得设备簇在第一情景模式下的运行情况并根据运行情况获得响应至少一个呼叫请求的至少一个第一电子设备和至少一个第一响应指令的方法,设备簇包括V个电子设备,V为大于1的整数,该簇头设备获得设备簇在第一情景模式下的运行情况并根据运行情况获得响应至少一个呼叫请求的至少一个第一电子设备和至少一个第一响应指令的方法包括步骤D1-D11,具体如下:As shown in FIG. 4I, FIG. 4I is another cluster head device provided by an embodiment of the present application to obtain the operating condition of the device cluster in the first scenario mode and obtain at least one first electronic device that responds to at least one call request according to the operating condition. And at least one first response instruction method, the device cluster includes V electronic devices, where V is an integer greater than 1, and the cluster head device obtains the operating status of the device cluster in the first scenario mode and responds to at least one call according to the operating status The method for requesting at least one first electronic device and at least one first response instruction includes steps D1-D11, which are specifically as follows:
D1:簇头设备向V个电子设备中除簇头设备之外的(V-1)个电子设备发送(V-1)个第四请求,(V-1)个第四请求与(V-1)个电子设备一一对应,第四请求用于指示其对应的电子设备反馈设备信息和功能信息。D1: The cluster head device sends (V-1) fourth requests, (V-1) fourth requests and (V- 1) There is a one-to-one correspondence between electronic devices, and the fourth request is used to instruct its corresponding electronic device to feed back device information and function information.
步骤D1参见上述步骤C1的描述,在此不再叙述。For step D1, refer to the description of step C1 above, which will not be described here.
D2:(V-1)个电子设备接收簇头设备发送的(V-1)个第四请求,以及向簇头设备发 送(V-1)个第二设备信息和(V-1)个第二功能信息,(V-1)个第二设备信息和(V-1)个第二功能信息均与(V-1)个电子设备一一对应。D2: (V-1) electronic devices receive the (V-1) fourth request sent by the cluster head device, and send (V-1) second device information and (V-1) first device information to the cluster head device The second function information, (V-1) second device information and (V-1) second function information are in one-to-one correspondence with (V-1) electronic devices.
D3:簇头设备接收(V-1)个第二设备信息和(V-1)个第二功能信息,获取簇头设备的第二设备信息和第二功能信息。D3: The cluster head device receives (V-1) second device information and (V-1) second function information, and obtains the second device information and second function information of the cluster head device.
D4:簇头设备根据设备信息、情景模式与运行信息的映射关系获得与第一情景模式对应的V个第二运行信息,V个第二运行信息与V个第二设备信息一一对应。D4: The cluster head device obtains V second operating information corresponding to the first scenario mode according to the mapping relationship between the device information, the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence.
设备信息、情景模式与运行信息的映射关系预先存储于簇头设备中,设备信息、情景模式与运行信息的映射关系如下表3所示:The mapping relationship between device information, scene mode and operation information is pre-stored in the cluster head device. The mapping relationship between device information, scene mode and operation information is shown in Table 3 below:
表3table 3
Figure PCTCN2020129736-appb-000010
Figure PCTCN2020129736-appb-000010
如果设备信息为设备信息1,且情景模式为省电模式,那么运行信息为运行信息11;如果设备信息为设备信息1,且情景模式为性能模式,那么运行信息为运行信息12;如果设备信息为设备信息2,且情景模式为省电模式,那么运行信息为运行信息21;如果设备信息为设备信息2,且情景模式为性能模式,那么运行信息为运行信息22;如果设备信息为设备信息3,且情景模式为省电模式,那么运行信息为运行信息31;如果设备信息为设备信息3,且情景模式为性能模式,那么运行信息为运行信息32。If the device information is device information 1 and the scene mode is power saving mode, then the operation information is operation information 11; if the device information is device information 1 and the scene mode is performance mode, then the operation information is operation information 12; if the device information If the device information is device information 2 and the scenario mode is power saving mode, then the operating information is operating information 21; if the device information is device information 2 and the scenario mode is performance mode, then the operating information is operating information 22; if the device information is device information 3. And the scene mode is the power saving mode, then the operation information is operation information 31; if the device information is device information 3 and the scene mode is the performance mode, then the operation information is operation information 32.
第二运行信息参见上述步骤D1的相关描述,在此不再叙述。For the second operation information, refer to the relevant description of the above step D1, which will not be described here.
D5:簇头设备将V个第二设备信息、V个第二功能信息和V个第二运行信息确定为设备簇在第一情景模式下的运行情况。D5: The cluster head device determines V second device information, V second function information, and V second operation information as the operation status of the device cluster in the first scenario mode.
在一些实施例中,簇头设备包括V个电子设备,V为大于1的整数,簇头设备获得设备簇在第一情景模式下的运行情况,包括:In some embodiments, the cluster head device includes V electronic devices, where V is an integer greater than 1, and the cluster head device obtains the operating status of the device cluster in the first scenario mode, including:
簇头设备接收(V-1)个电子设备发送的(V-1)个第二设备信息和(V-1)个第二功能信息,(V-1)个第二设备信息和(V-1)个第二功能信息均与(V-1)个电子设备一一对应,设备簇包括簇头设备和(V-1)个电子设备;The cluster head device receives (V-1) second device information and (V-1) second function information sent by (V-1) electronic devices, (V-1) second device information and (V- 1) The second function information corresponds to (V-1) electronic devices one-to-one, and the device cluster includes cluster head devices and (V-1) electronic devices;
簇头设备获取簇头设备的第二设备信息和第二功能信息;The cluster head device obtains the second device information and the second function information of the cluster head device;
簇头设备根据设备信息、情景模式与运行信息的映射关系获得与第一情景模式对应的V个第二运行信息,V个第二运行信息与V个第二设备信息一一对应;The cluster head device obtains V second operating information corresponding to the first scenario mode according to the mapping relationship between the device information, the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
簇头设备将V个第二设备信息、V个第二功能信息和V个第二运行信息确定为设备簇 在第一情景模式下的运行情况。The cluster head device determines the V second device information, V second function information, and V second operation information as the operation status of the device cluster in the first scenario mode.
在一些实施例中,簇头设备获得设备簇中的每个电子设备的设备信息、功能信息和与第一情景模式对应的运行信息之后,簇头设备根据设备簇中的每个电子设备的设备信息、功能信息和与第一情景模式对应的运行信息生成状态表格,或者,簇头设备将设备簇中的每个电子设备的设备信息、功能信息和与第一情景模式对应的运行信息存储至簇头设备中的预设存储位置,预设存储位置可以是用户指定的。In some embodiments, after the cluster head device obtains the device information, function information, and operating information corresponding to the first scenario mode of each electronic device in the device cluster, the cluster head device determines the device information of each electronic device in the device cluster. Information, function information, and operating information corresponding to the first scenario mode to generate a status table, or the cluster head device stores the device information, function information, and operating information corresponding to the first scenario mode of each electronic device in the device cluster to The preset storage location in the cluster head device, the preset storage location may be specified by the user.
D6:簇头设备根据情景模式与呼叫需求响应模型的映射关系获得性能模式对应的第二呼叫需求响应模型。D6: The cluster head device obtains the second call demand response model corresponding to the performance mode according to the mapping relationship between the scenario mode and the call demand response model.
D7:簇头设备将至少一个呼叫需求和运行情况输入第二呼叫需求响应模型。D7: The cluster head device inputs at least one call demand and operation status into the second call demand response model.
D8:簇头设备根据运行情况获得每个电子设备的启用至少一个功能中的每个功能的性能效用、启用来电的性能效用和启用视频通话的性能效用。D8: The cluster head device obtains the performance utility of each of the at least one function of each electronic device, the performance utility of enabling the incoming call, and the performance utility of enabling the video call according to the operating conditions.
D9:簇头设备调用第二呼叫需求响应模型中的第二呼叫需求响应函数。D9: The cluster head device calls the second call demand response function in the second call demand response model.
第二呼叫需求响应函数预先存储于第二呼叫需求响应模型中,第二呼叫需求响应函数为:The second call demand response function is pre-stored in the second call demand response model, and the second call demand response function is:
Figure PCTCN2020129736-appb-000011
Figure PCTCN2020129736-appb-000011
Figure PCTCN2020129736-appb-000012
Figure PCTCN2020129736-appb-000012
I为设备簇包括的所有电子设备形成的集合,i∈I为设备簇中的任意一个电子设备,至少一个呼叫需求的集合为S,s∈S为至少一个呼叫需求中的任意一个呼叫需求,
Figure PCTCN2020129736-appb-000013
Figure PCTCN2020129736-appb-000014
表示电子设备i具备功能s,
Figure PCTCN2020129736-appb-000015
表示电子设备i不具有功能s,
Figure PCTCN2020129736-appb-000016
表示电子设备i启用功能s的性能效用,
Figure PCTCN2020129736-appb-000017
Figure PCTCN2020129736-appb-000018
表示电子设备i启用功能s,
Figure PCTCN2020129736-appb-000019
表示电子设备i未启用功能s。
I is the set formed by all the electronic devices included in the device cluster, i∈I is any electronic device in the device cluster, the set of at least one call demand is S, and s∈S is any one of the at least one call demand,
Figure PCTCN2020129736-appb-000013
Figure PCTCN2020129736-appb-000014
Indicates that the electronic device i has the function s,
Figure PCTCN2020129736-appb-000015
Indicates that the electronic device i does not have the function s,
Figure PCTCN2020129736-appb-000016
Represents the performance utility of the electronic device i enabling the function s,
Figure PCTCN2020129736-appb-000017
Figure PCTCN2020129736-appb-000018
Indicates that the electronic device i enables the function s,
Figure PCTCN2020129736-appb-000019
Indicates that the function s is not enabled for the electronic device i.
D10:簇头设备根据每个电子设备的启用至少一个功能中的每个功能的性能效用、启用来电的性能效用、启用视频通话的性能效用和第二呼叫需求响应函数获得响应至少一个呼叫需求的至少一个第一电子设备。D10: The cluster head device obtains a response to at least one call demand according to the performance utility of each of the at least one function of each electronic device, the performance utility of the incoming call, the performance utility of the video call, and the second call demand response function. At least one first electronic device.
D11:簇头设备根据至少一个呼叫需求和至少一个第一电子设备生成至少一个第一响应指令,至少一个第一响应指令分别与至少一个呼叫需求和至少一个第一电子设备一一对应。D11: The cluster head device generates at least one first response instruction according to the at least one call demand and the at least one first electronic device, and the at least one first response instruction corresponds to the at least one call demand and the at least one first electronic device respectively.
举例来说,如图4J所示,图4J是本申请实施例提供的另一种手机获取手表、手机、平板电脑在性能模式下的运行情况并根据运行情况获得响应来电和视频通话的两个第一电子设备和两个第一响应指令的方法的流程示意图,该手机获取手表、手机、平板电脑在性能模式下的运行情况并根据运行情况获得响应来电和视频通话的两个第一电子设备和两个第一响应指令的方法包括步骤D12-D22,具体如下:For example, as shown in FIG. 4J, FIG. 4J is another mobile phone provided by an embodiment of the present application to obtain the operation status of a watch, a mobile phone, and a tablet computer in the performance mode, and obtain two responses to incoming calls and video calls according to the operation status. Schematic diagram of the flow of the first electronic device and the two first response instruction methods. The mobile phone obtains the operating conditions of the watch, mobile phone, and tablet in the performance mode and obtains two first electronic devices that respond to incoming calls and video calls according to the operating conditions And the method of two first response instructions includes steps D12-D22, which are specifically as follows:
D12:手机向手表和平板电脑均发送第四请求,第四请求用于指示手表和平板电脑反馈设备信息和功能信息;D12: The mobile phone sends the fourth request to both the watch and the tablet, and the fourth request is used to instruct the watch and the tablet to feed back device information and function information;
D13:手表接收手机发送的第四请求,以及向手机发送该手表的设备信息和功能信息;平板电脑接收手机发送的第四请求,以及向手机发送该平板电脑的设备信息和功能信息;D13: The watch receives the fourth request sent by the mobile phone and sends the device information and function information of the watch to the mobile phone; the tablet computer receives the fourth request sent by the mobile phone and sends the device information and function information of the tablet to the mobile phone;
D14:手机接收该手表的设备信息和功能信息,该平板电脑的设备信息和功能信息, 获取该手机的设备信息和功能信息。D14: The mobile phone receives the device information and function information of the watch, the device information and function information of the tablet computer, and obtains the device information and function information of the mobile phone.
D15:手机根据设备信息、情景模式与运行信息的映射关系获得与性能模式对应的手表的运行信息、手机的运行信息和平板电脑的运行信息;D15: The mobile phone obtains the operation information of the watch, the operation information of the mobile phone and the operation information of the tablet corresponding to the performance mode according to the mapping relationship between the device information, the scene mode and the operation information;
D16:手机将该手表的设备信息、功能信息以及运行信息,该平板电脑的设备信息、功能信息以及运行信息,以及该手机的设备信息、功能信息以及与性能模式对应的运行信息确定为设备簇在性能模式下的运行情况。D16: The mobile phone determines the device information, function information and operation information of the watch, the device information, function information and operation information of the tablet computer, and the device information, function information and operation information corresponding to the performance mode of the mobile phone as the device cluster Operation in performance mode.
D17:手机根据情景模式与呼叫需求响应模型的映射关系获得性能模式对应的第二呼叫响应模型。D17: The mobile phone obtains the second call response model corresponding to the performance mode according to the mapping relationship between the scenario mode and the call demand response model.
D18:手机将来电、视频通话和设备簇在性能模式下的运行情况输入第二呼叫需求响应模型。D18: Enter the second call demand response model for the mobile phone's incoming calls, video calls, and the operation of the device cluster in the performance mode.
D19:手机根据运行情况获得手表、手机和平板电脑中的每个的启用至少一个功能中的每个功能的性能效用、启用来电的性能效用和启用视频通话的性能效用。D19: The mobile phone obtains the performance utility of at least one function of each of the watch, the mobile phone and the tablet computer according to the operating conditions, the performance utility of enabling the incoming call, and the performance utility of enabling the video call.
D20:手机调用第二呼叫需求响应模型中的第二呼叫需求响应函数。D20: The mobile phone calls the second call demand response function in the second call demand response model.
D21:手机根据手表、手机和平板电脑中的每个的启用至少一个功能中的每个功能的性能效用、启用来电的性能效用、启用视频通话的性能效用和第二呼叫需求响应函数获得手机响应来电和平板电脑响应视频通话。D21: The mobile phone obtains the mobile phone's response according to the performance utility of each function of the watch, mobile phone and tablet that enables at least one function, the performance utility of the incoming call, the performance utility of the video call, and the second call demand response function Incoming calls and tablets respond to video calls.
D22:手机根据来电和手机生成一个响应指令,以及根据视频通话和平板电脑生成另一个响应指令。D22: The mobile phone generates a response command based on the incoming call and the mobile phone, and generates another response command based on the video call and the tablet.
在一些实施例中,当检测到针对情景模式的切换操作时,簇头设备获得切换操作对应的第二情景模式;In some embodiments, when the switching operation for the scene mode is detected, the cluster head device obtains the second scene mode corresponding to the switching operation;
簇头设备将情景模式由第一情景模式切换至第二情景模式。The cluster head device switches the scene mode from the first scene mode to the second scene mode.
簇头设备可以实时检测是否存在针对情景模式的切换操作,也可以周期性地检测是否存在针对情景模式的切换操作。The cluster head device can detect in real time whether there is a switching operation for the scene mode, and can also periodically detect whether there is a switching operation for the scene mode.
可见,在本示例中,用户可以随时切换情景模式,这样有助于提高切换情景模式的便利性。It can be seen that in this example, the user can switch the scene mode at any time, which helps to improve the convenience of switching the scene mode.
参见图5,图5是本申请实施例提供的一种呼叫需求响应装置的功能单元组成框图,应用于簇头设备,该呼叫需求响应装置500包括:Referring to FIG. 5, FIG. 5 is a block diagram of the functional unit composition of a call demand response apparatus provided by an embodiment of the present application, which is applied to a cluster head device. The call demand response apparatus 500 includes:
获得单元510,用于获得设备簇对应的第一情景模式,设备簇包括簇头设备;The obtaining unit 510 is configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
获得单元510,还用于获得设备簇在第一情景模式下的运行情况;The obtaining unit 510 is also used to obtain the operating status of the device cluster in the first scenario mode;
获得单元510,还用于当检测到至少一个呼叫需求时,根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,至少一个第一电子设备和至少一个第一响应指令均与至少一个呼叫需求一一对应;The obtaining unit 510 is further configured to obtain at least one first electronic device that responds to the at least one call request and at least one first response instruction, at least one first electronic device and at least one first response instruction, according to the operating conditions, when at least one call demand is detected. Each response command corresponds to at least one call demand one-to-one;
发送单元520,用于向至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。The sending unit 520 is configured to send a corresponding first response instruction to each of the at least one first electronic device.
在一些可能的实施方式中,簇头设备是用户指定的;或者,簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从设备簇中选取的。In some possible implementation manners, the cluster head device is designated by the user; or, the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device.
在一些可能的实施方式中,簇头设备包括显示屏,在获得设备簇对应的第一情景模式方面,获得单元510具体用于:In some possible implementation manners, the cluster head device includes a display screen, and in terms of obtaining the first scene mode corresponding to the device cluster, the obtaining unit 510 is specifically configured to:
通过显示屏显示情景模式界面,情景模式界面包括第一提示信息和多个情景模式,第一提示信息用于指示用户从多个情景模式中选取一个情景模式作为设备簇的情景模式;A scene mode interface is displayed on the display screen, the scene mode interface includes a first prompt message and a plurality of scene modes, and the first prompt message is used to instruct the user to select a scene mode from the plurality of scene modes as the scene mode of the device cluster;
当检测到针对情景模式界面的触控操作时,获得触控操作对应的情景模式;When the touch operation for the scene mode interface is detected, the scene mode corresponding to the touch operation is obtained;
将触控操作对应的情景模式确定为设备簇对应的第一情景模式。The scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
在一些可能的实施方式中,在获得设备簇对应的第一情景模式方面,获得单元510具体用于:In some possible implementation manners, in terms of obtaining the first scene mode corresponding to the device cluster, the obtaining unit 510 is specifically configured to:
获取历史情景模式记录,历史情景模式记录包括时间段与情景模式的映射关系;Obtain the historical scene mode record, the historical scene mode record includes the mapping relationship between the time period and the scene mode;
获取当前时间;Get the current time;
根据时间段与情景模式的映射关系确定当前时间所处时间段对应的目标情景模式;Determine the target scenario mode corresponding to the time period at the current time according to the mapping relationship between the time period and the scenario mode;
将目标情景模式确定为设备簇对应的第一情景模式。The target scene mode is determined as the first scene mode corresponding to the device cluster.
在一些可能的实施方式中,设备簇包括U个电子设备,U为大于1的整数,在获得设备簇在第一情景模式下的运行情况方面,获得单元510具体用于:In some possible implementation manners, the device cluster includes U electronic devices, and U is an integer greater than 1. In terms of obtaining the operating status of the device cluster in the first scenario mode, the obtaining unit 510 is specifically configured to:
向(U-1)个电子设备发送(U-1)个第三请求,(U-1)个第三请求与(U-1)个电子设备一一对应,第三请求用于指示其对应的电子设备反馈设备信息、功能信息以及与第一情景模式对应的运行信息,设备簇包括簇头设备和(U-1)个电子设备;Send (U-1) third requests to (U-1) electronic devices, (U-1) third requests are in one-to-one correspondence with (U-1) electronic devices, and the third request is used to indicate its correspondence The electronic device feedback device information, function information, and operation information corresponding to the first scenario mode. The device cluster includes cluster head devices and (U-1) electronic devices;
接收(U-1)个电子设备发送的(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息,(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息均与(U-1)个电子设备一一对应;Receive (U-1) first device information, (U-1) first function information and (U-1) first operating information sent by (U-1) electronic devices, (U-1) The first device information, (U-1) first function information, and (U-1) first operation information all correspond to (U-1) electronic devices one-to-one;
获取簇头设备的第一设备信息、第一功能信息和与第一情景模式对应的第一运行信息;Acquiring first device information, first function information, and first operating information corresponding to the first scenario mode of the cluster head device;
将U个第一设备信息、U个第一功能信息和U个第一运行信息确定为设备簇在第一情景模式下的运行情况。U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
在一些可能的实施例中,设备簇包括V个电子设备,V为大于1的整数,在获得设备簇在第一情景模式下的运行情况方面,获得单元510具体用于:In some possible embodiments, the device cluster includes V electronic devices, and V is an integer greater than 1. In terms of obtaining the operating status of the device cluster in the first scenario mode, the obtaining unit 510 is specifically configured to:
向(V-1)个电子设备发送(V-1)个第四请求,(V-1)个第四请求与(V-1)个电子设备一一对应,第四请求用于指示其对应的电子设备反馈设备信息和功能信息,设备簇包括(V-1)个电子设备和簇头设备;Send (V-1) fourth requests to (V-1) electronic devices, (V-1) fourth requests correspond to (V-1) electronic devices one-to-one, and the fourth request is used to indicate its correspondence The electronic device feedback device information and function information, the device cluster includes (V-1) electronic devices and cluster head devices;
接收(V-1)个电子设备发送的(V-1)个第二设备信息和(V-1)个第二功能信息,(V-1)个第二设备信息和(V-1)个第二功能信息均与(V-1)个电子设备一一对应;Receive (V-1) second device information and (V-1) second function information, (V-1) second device information and (V-1) sent by (V-1) electronic devices The second function information is in one-to-one correspondence with (V-1) electronic devices;
获取簇头设备的第二设备信息和第二功能信息;Acquiring the second device information and the second function information of the cluster head device;
根据预存的设备信息、情景模式与运行信息的映射关系获得与第一情景模式对应的V个第二运行信息,V个第二运行信息与V个第二设备信息一一对应;Obtain V second operating information corresponding to the first scenario mode according to the pre-stored device information, the mapping relationship between the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
将V个第二设备信息、V个第二功能信息和V个第二运行信息确定为设备簇在第一情景模式下的运行情况。V pieces of second device information, V pieces of second function information, and V pieces of second operating information are determined as the operating conditions of the device cluster in the first scenario mode.
在一些可能的实施例中,在根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令方面,获得单元510具体用于:In some possible embodiments, in terms of obtaining at least one first electronic device that responds to at least one call demand and at least one first response instruction according to operating conditions, the obtaining unit 510 is specifically configured to:
根据情景模式与呼叫需求响应模型的映射关系获得第一情景模式对应的目标呼叫需求响应模型;Obtaining the target call demand response model corresponding to the first scenario mode according to the mapping relationship between the scenario mode and the call demand response model;
将至少一个呼叫需求和运行情况输入目标呼叫需求响应模型进行处理,输出响应至少 一个呼叫需求的至少一个第一电子设备;Input at least one call demand and operation status into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
根据至少一个呼叫需求和至少一个第一电子设备生成至少一个第一响应指令。At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
在一些可能的实施例中,该呼叫需求响应装置还包括切换单元530,In some possible embodiments, the call demand response device further includes a switching unit 530,
获取单元510,还用于实时或周期性检测是否存在针对情景模式的切换操作;当检测到针对情景模式的切换操作时,获得切换操作对应的第二情景模式;The acquiring unit 510 is further configured to detect whether there is a switching operation for the scene mode in real time or periodically; when the switching operation for the scene mode is detected, obtain the second scene mode corresponding to the switching operation;
切换单元530,用于将情景模式由第一情景模式切换至第二情景模式。The switching unit 530 is configured to switch the scene mode from the first scene mode to the second scene mode.
参见图6,图6是本申请实施例提供的一种呼叫需求响应装置的结构示意图,该呼叫需求响应装置600包括相互耦合的存储器610、通信接口620和处理器630;例如存储器610、通信接口620和处理器630通过总线640耦合。Referring to FIG. 6, FIG. 6 is a schematic structural diagram of a call demand response device provided by an embodiment of the present application. The call demand response device 600 includes a memory 610, a communication interface 620, and a processor 630 that are coupled to each other; for example, a memory 610, a communication interface The 620 and the processor 630 are coupled through a bus 640.
存储器610可包括但不限于随机存储记忆体(Random Access Memory,RAM)、可擦除可编程只读存储器(Erasable Programmable ROM,EPROM)、只读存储器(Read-Only Memory,ROM)或便携式只读存储器(Compact Disc Read-Only Memory,CD-ROM)等等,该存储器610用于相关指令及数据。The memory 610 may include, but is not limited to, random access memory (RAM), erasable programmable read-only memory (Erasable Programmable ROM, EPROM), read-only memory (Read-Only Memory, ROM), or portable read-only memory A memory (Compact Disc Read-Only Memory, CD-ROM), etc., the memory 610 is used for related instructions and data.
处理器630可以是一个或多个中央处理器(Central Processing Unit,CPU),在处理器630是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 630 may be one or more central processing units (CPUs). When the processor 630 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
处理器630用于读取存储器610中存储的程序代码,与通信接口620配合执行本申请上述实施例中由呼叫需求响应装置600执行的方法的部分或全部步骤。The processor 630 is configured to read the program code stored in the memory 610, and cooperate with the communication interface 620 to execute part or all of the steps of the method executed by the call demand response apparatus 600 in the foregoing embodiment of the present application.
处理器630,用于获得设备簇对应的第一情景模式,设备簇包括簇头设备;The processor 630 is configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
通信接口620,用于获得设备簇在第一情景模式下的运行情况;The communication interface 620 is used to obtain the operating status of the device cluster in the first scenario mode;
处理器630,还用于当检测到至少一个呼叫需求时,根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,至少一个第一电子设备和至少一个第一响应指令均与至少一个呼叫需求一一对应;The processor 630 is further configured to obtain at least one first electronic device that responds to the at least one call request and at least one first response instruction, at least one first electronic device and at least one first response instruction, according to the operating conditions, when at least one call demand is detected. Each response command corresponds to at least one call demand one-to-one;
通信接口620,还用于向至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。The communication interface 620 is further configured to send a corresponding first response instruction to each first electronic device in the at least one first electronic device.
在一些可能的实施例中,簇头设备是用户指定的;或者,簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从设备簇中选取的。In some possible embodiments, the cluster head device is designated by the user; or, the cluster head device is selected from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device.
在一些可能的实施例中,簇头设备包括显示屏,在获得设备簇对应的第一情景模式方面,处理器630具体用于:In some possible embodiments, the cluster head device includes a display screen. In terms of obtaining the first scene mode corresponding to the device cluster, the processor 630 is specifically configured to:
通过显示屏显示情景模式界面,情景模式界面包括第一提示信息和多个情景模式,第一提示信息用于指示用户从多个情景模式中选取一个情景模式作为设备簇的情景模式;A scene mode interface is displayed on the display screen, the scene mode interface includes a first prompt message and a plurality of scene modes, and the first prompt message is used to instruct the user to select a scene mode from the plurality of scene modes as the scene mode of the device cluster;
当检测到针对情景模式界面的触控操作时,获得触控操作对应的情景模式;When the touch operation for the scene mode interface is detected, the scene mode corresponding to the touch operation is obtained;
将触控操作对应的情景模式确定为设备簇对应的第一情景模式。The scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
在一些可能的实施方式中,在获得设备簇对应的第一情景模式方面,处理器630具体用于:In some possible implementation manners, in terms of obtaining the first scene mode corresponding to the device cluster, the processor 630 is specifically configured to:
获取历史情景模式记录,历史情景模式记录包括时间段与情景模式的映射关系;Obtain the historical scene mode record, the historical scene mode record includes the mapping relationship between the time period and the scene mode;
获取当前时间;Get the current time;
根据时间段与情景模式的映射关系确定当前时间所处时间段对应的目标情景模式;Determine the target scenario mode corresponding to the time period at the current time according to the mapping relationship between the time period and the scenario mode;
将目标情景模式确定为设备簇对应的第一情景模式。The target scene mode is determined as the first scene mode corresponding to the device cluster.
在一些可能的实施例中,设备簇包括U个电子设备,U为大于1的整数,在获得设备簇在第一情景模式下的运行情况方面,处理器630具体用于:In some possible embodiments, the device cluster includes U electronic devices, and U is an integer greater than 1. In terms of obtaining the operating status of the device cluster in the first scenario mode, the processor 630 is specifically configured to:
向(U-1)个电子设备发送(U-1)个第三请求,(U-1)个第三请求与(U-1)个电子设备一一对应,第三请求用于指示其对应的电子设备反馈设备信息、功能信息以及与第一情景模式对应的运行信息,设备簇包括簇头设备和(U-1)个电子设备;Send (U-1) third requests to (U-1) electronic devices, (U-1) third requests are in one-to-one correspondence with (U-1) electronic devices, and the third request is used to indicate its correspondence The electronic device feedback device information, function information, and operation information corresponding to the first scenario mode. The device cluster includes cluster head devices and (U-1) electronic devices;
接收(U-1)个电子设备发送的(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息,(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息均与(U-1)个电子设备一一对应;Receive (U-1) first device information, (U-1) first function information and (U-1) first operating information sent by (U-1) electronic devices, (U-1) The first device information, (U-1) first function information, and (U-1) first operation information all correspond to (U-1) electronic devices one-to-one;
获取簇头设备的第一设备信息、第一功能信息和与第一情景模式对应的第一运行信息;Acquiring first device information, first function information, and first operating information corresponding to the first scenario mode of the cluster head device;
将U个第一设备信息、U个第一功能信息和U个第一运行信息确定为设备簇在第一情景模式下的运行情况。U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
在一些可能的实施例中,设备簇包括V个电子设备,V为大于1的整数,在获得设备簇在第一情景模式下的运行情况方面,处理器630具体用于:In some possible embodiments, the device cluster includes V electronic devices, and V is an integer greater than 1. In terms of obtaining the operating status of the device cluster in the first scenario mode, the processor 630 is specifically configured to:
向(V-1)个电子设备发送(V-1)个第四请求,(V-1)个第四请求与(V-1)个电子设备一一对应,第四请求用于指示其对应的电子设备反馈设备信息和功能信息,设备簇包括(V-1)个电子设备和簇头设备;Send (V-1) fourth requests to (V-1) electronic devices, (V-1) fourth requests correspond to (V-1) electronic devices one-to-one, and the fourth request is used to indicate its correspondence The electronic device feedback device information and function information, the device cluster includes (V-1) electronic devices and cluster head devices;
接收(V-1)个电子设备发送的(V-1)个第二设备信息和(V-1)个第二功能信息,(V-1)个第二设备信息和(V-1)个第二功能信息均与(V-1)个电子设备一一对应;Receive (V-1) second device information and (V-1) second function information, (V-1) second device information and (V-1) sent by (V-1) electronic devices The second function information is in one-to-one correspondence with (V-1) electronic devices;
获取簇头设备的第二设备信息和第二功能信息;Acquiring the second device information and the second function information of the cluster head device;
根据预存的设备信息、情景模式与运行信息的映射关系获得与第一情景模式对应的V个第二运行信息,V个第二运行信息与V个第二设备信息一一对应;Obtain V second operating information corresponding to the first scenario mode according to the pre-stored device information, the mapping relationship between the scenario mode and the operating information, and the V second operating information corresponds to the V second device information in a one-to-one correspondence;
将V个第二设备信息、V个第二功能信息和V个第二运行信息确定为设备簇在第一情景模式下的运行情况。V pieces of second device information, V pieces of second function information, and V pieces of second operating information are determined as the operating conditions of the device cluster in the first scenario mode.
在一些可能的实施例中,在根据运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令方面,处理器630具体用于:In some possible embodiments, in terms of obtaining at least one first electronic device that responds to at least one call demand and at least one first response instruction according to operating conditions, the processor 630 is specifically configured to:
根据情景模式与呼叫需求响应模型的映射关系获得第一情景模式对应的目标呼叫需求响应模型;Obtaining the target call demand response model corresponding to the first scenario mode according to the mapping relationship between the scenario mode and the call demand response model;
将至少一个呼叫需求和运行情况输入目标呼叫需求响应模型进行处理,输出响应至少一个呼叫需求的至少一个第一电子设备;Input at least one call demand and operation status into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
根据至少一个呼叫需求和至少一个第一电子设备生成至少一个第一响应指令。At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
在一些可能的实施例中,处理器630还用于:In some possible embodiments, the processor 630 is further configured to:
实时或周期性检测是否存在针对情景模式的切换操作;Real-time or periodic detection of whether there is a switching operation for the scene mode;
当检测到针对情景模式的切换操作时,获得切换操作对应的第二情景模式;When the switching operation for the scene mode is detected, obtain the second scene mode corresponding to the switching operation;
将情景模式由第一情景模式切换至第二情景模式。Switch the scene mode from the first scene mode to the second scene mode.
本申请实施例还提供一种计算机可读存储介质,存储有计算机指令,计算机程序被硬件(例如处理器等)执行以实现本申请实施例中由呼叫需求响应装置执行的任意一种方法的部分或全部步骤。The embodiment of the present application also provides a computer-readable storage medium that stores computer instructions, and the computer program is executed by hardware (such as a processor, etc.) to implement part of any method executed by the call demand response device in the embodiment of the present application. Or all steps.
本申请实施例还提供一种计算机程序产品,当计算机程序产品在计算机或处理器上运行时,使得计算机或处理器执行以上各方面的呼叫需求响应方法的部分或全部步骤。The embodiments of the present application also provide a computer program product. When the computer program product runs on a computer or a processor, the computer or the processor executes some or all of the steps of the call demand response method in the above aspects.
参见图7,图7是本申请实施例提供的一种芯片系统的结构示意图,芯片系统700可包括:处理器701,以及耦合于处理器701的一个或多个接口702。示例性的:Referring to FIG. 7, FIG. 7 is a schematic structural diagram of a chip system provided by an embodiment of the present application. The chip system 700 may include a processor 701 and one or more interfaces 702 coupled to the processor 701. Exemplary:
处理器701可用于读取和执行计算机可读指令。具体实现中,处理器701可主要包括控制器、运算器和寄存器。示例性的,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责执行定点或浮点算数运算操作、移位操作以及逻辑操作等,也可以执行地址运算和转换。寄存器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器701的硬件架构可以是专用集成电路(application specific integrated circuits,ASIC)架构、无互锁管道阶段架构的微处理器(microprocessor without interlocked piped stages architecture,MIPS)架构、进阶精简指令集机器(advanced RISC machines,ARM)架构或者NP架构等等。处理器701可以是单核的,也可以是多核的。The processor 701 may be used to read and execute computer-readable instructions. In specific implementation, the processor 701 may mainly include a controller, an arithmetic unit, and a register. Exemplarily, the controller is mainly responsible for instruction decoding, and sends control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations and logical operations, etc., and can also perform address operations and conversions. The register is mainly responsible for storing the register operands and intermediate operation results temporarily stored during the execution of the instruction. In specific implementation, the hardware architecture of the processor 701 can be an application specific integrated circuit (ASIC) architecture, a microprocessor without interlocked pipeline stage architecture (microprocessor without interlocked piped stages architecture, MIPS) architecture, and advanced streamlining. Instruction set machine (advanced RISC machines, ARM) architecture or NP architecture, etc. The processor 701 may be single-core or multi-core.
示例性的,接口702可用于输入待处理的数据至处理器701,并且可以向外输出处理器701的处理结果。具体实现中,接口702可以是通用输入输出(general purpose input output,GPIO)接口,可以和多个外围设备(如显示器(LCD)、摄像头(camara)、射频(radio frequency,RF)模块等等)连接。接口702通过总线703与处理器701相连。Exemplarily, the interface 702 can be used to input data to be processed to the processor 701, and can output the processing result of the processor 701 to the outside. In specific implementation, the interface 702 may be a general purpose input output (GPIO) interface, which can be connected to multiple peripheral devices (such as a display (LCD), a camera (camara), a radio frequency (RF) module, etc.) connection. The interface 702 is connected to the processor 701 through the bus 703.
在一些实施例中,处理器701可用于从存储器中调用本申请的一个或多个实施例提供的呼叫需求响应方法在网络设备或终端设备侧的实现程序或者数据,使得该芯片可以实现前述图4A所示的呼叫需求响应方法。存储器可以和处理器701集成在一起,也可以通过接口702与芯片系统700相耦合,也就是说存储器可以是芯片系统700的一部分,也可以独立于该芯片系统700。接口702可用于输出处理器701的执行结果。本申请中,接口702可具体用于输出处理器701的译码结果。关于本申请的一个或多个实施例提供的呼叫需求响应方法可参考前述各个实施例,这里不再赘述。In some embodiments, the processor 701 can be used to call from the memory the implementation program or data of the call demand response method provided by one or more embodiments of the present application on the network device or terminal device side, so that the chip can implement the aforementioned figure. The call demand response method shown in 4A. The memory may be integrated with the processor 701, or may be coupled with the chip system 700 through the interface 702, that is, the memory may be a part of the chip system 700 or may be independent of the chip system 700. The interface 702 can be used to output the execution result of the processor 701. In this application, the interface 702 may be specifically used to output the decoding result of the processor 701. For the call demand response method provided by one or more embodiments of the present application, reference may be made to the foregoing embodiments, which will not be repeated here.
在上述实施例中,全部或部分功能可以通过软件、硬件、或者软件加硬件的组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part of the functions can be implemented by software, hardware, or a combination of software and hardware. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the process in the above-mentioned embodiment method can be realized. The process can be completed by a computer program instructing relevant hardware. The program can be stored in a computer readable storage medium. , May include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical disks and other media that can store program codes.

Claims (19)

  1. 一种呼叫需求响应方法,其特征在于,应用于簇头设备,包括:A call demand response method, which is characterized in that it is applied to a cluster head device and includes:
    获得设备簇对应的第一情景模式,所述设备簇包括所述簇头设备;Obtaining a first scenario mode corresponding to a device cluster, where the device cluster includes the cluster head device;
    获得所述设备簇在所述第一情景模式下的运行情况;Obtaining the operating status of the device cluster in the first scenario mode;
    当检测到至少一个呼叫需求时,根据所述运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,所述至少一个第一电子设备和所述至少一个第一响应指令均与所述至少一个呼叫需求一一对应;When at least one call demand is detected, at least one first electronic device that responds to the at least one call demand and at least one first response instruction are obtained according to the operating condition, the at least one first electronic device and the at least one first response instruction The response instructions all correspond to the at least one call demand one-to-one;
    向所述至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。Sending its corresponding first response instruction to each of the at least one first electronic device.
  2. 根据权利要求1所述的方法,其特征在于,所述簇头设备是用户指定的;或者,所述簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从所述设备簇中选取的。The method according to claim 1, wherein the cluster head device is specified by a user; or, the cluster head device is obtained from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device. Selected in.
  3. 根据权利要求1或2所述的方法,其特征在于,所述簇头设备包括显示屏,所述获得设备簇对应的第一情景模式,包括:The method according to claim 1 or 2, wherein the cluster head device comprises a display screen, and the obtaining the first scene mode corresponding to the device cluster comprises:
    通过所述显示屏显示情景模式界面,所述情景模式界面包括第一提示信息和多个情景模式,所述第一提示信息用于指示用户从所述多个情景模式中选取一个情景模式作为所述设备簇的情景模式;A scene mode interface is displayed through the display screen, the scene mode interface includes first prompt information and a plurality of scene modes, and the first prompt information is used to instruct the user to select a scene mode from the plurality of scene modes as the selected scene mode Describe the scene mode of the device cluster;
    当检测到针对所述情景模式界面的触控操作时,获得所述触控操作对应的情景模式;When a touch operation for the scene mode interface is detected, obtain the scene mode corresponding to the touch operation;
    将所述触控操作对应的情景模式确定为所述设备簇对应的第一情景模式。The scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
  4. 根据权利要求1或2所述的方法,其特征在于,所述获得设备簇对应的第一情景模式,包括:The method according to claim 1 or 2, wherein the obtaining the first scene mode corresponding to the device cluster comprises:
    获取历史情景模式记录,所述历史情景模式记录包括时间段与情景模式的映射关系;Acquiring a historical scene mode record, where the historical scene mode record includes a mapping relationship between a time period and a scene mode;
    获取当前时间;Get the current time;
    根据所述时间段与情景模式的映射关系确定所述当前时间所处时间段对应的目标情景模式;Determine the target scenario mode corresponding to the time period in the current time according to the mapping relationship between the time period and the scenario mode;
    将所述目标情景模式确定为所述设备簇对应的第一情景模式。The target scene mode is determined as the first scene mode corresponding to the device cluster.
  5. 根据权利要求3或4所述的方法,其特征在于,所述设备簇包括U个电子设备,所述U为大于1的整数,所述获得所述设备簇在所述第一情景模式下的运行情况,包括:The method according to claim 3 or 4, wherein the device cluster includes U electronic devices, and the U is an integer greater than 1, and the obtaining of the device cluster in the first scenario mode Operating conditions, including:
    向(U-1)个电子设备发送(U-1)个第三请求,所述(U-1)个第三请求与所述(U-1)个电子设备一一对应,所述第三请求用于指示其对应的电子设备反馈设备信息、功能信息以及与所述第一情景模式对应的运行信息,所述设备簇包括所述簇头设备和所述(U-1)个电子设备;Send (U-1) third requests to (U-1) electronic devices, and the (U-1) third requests are in one-to-one correspondence with the (U-1) electronic devices, and the third The request is used to instruct its corresponding electronic device to feed back device information, function information, and operation information corresponding to the first scenario mode, and the device cluster includes the cluster head device and the (U-1) electronic devices;
    接收所述(U-1)个电子设备发送的(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息,所述(U-1)个第一设备信息、所述(U-1)个第一功能信息 以及所述(U-1)个第一运行信息均与所述(U-1)个电子设备一一对应;Receiving (U-1) first device information, (U-1) first function information, and (U-1) first operating information sent by the (U-1) electronic devices, the (U-1) -1) pieces of first device information, the (U-1) pieces of first function information, and the (U-1) pieces of first operating information all correspond to the (U-1) pieces of electronic equipment one-to-one;
    获取所述簇头设备的第一设备信息、第一功能信息和与所述第一情景模式对应的第一运行信息;Acquiring first device information, first function information, and first operation information corresponding to the first scenario mode of the cluster head device;
    将U个第一设备信息、U个第一功能信息和U个第一运行信息确定为所述设备簇在所述第一情景模式下的运行情况。U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  6. 根据权利要求3或4所述的方法,其特征在于,所述设备簇包括V个电子设备,所述V为大于1的整数,所述获得设备簇在所述第一情景模式下的运行情况,包括:The method according to claim 3 or 4, wherein the device cluster includes V electronic devices, and the V is an integer greater than 1, and the operation status of the device cluster in the first scenario mode is obtained ,include:
    向(V-1)个电子设备发送(V-1)个第四请求,所述(V-1)个第四请求与所述(V-1)个电子设备一一对应,所述第四请求用于指示其对应的电子设备反馈设备信息和功能信息,所述设备簇包括所述(V-1)个电子设备和所述簇头设备;Send (V-1) fourth requests to (V-1) electronic devices, and the (V-1) fourth requests are in one-to-one correspondence with the (V-1) electronic devices, and the fourth The request is used to instruct its corresponding electronic device to feed back device information and function information, and the device cluster includes the (V-1) electronic devices and the cluster head device;
    接收所述(V-1)个电子设备发送的(V-1)个第二设备信息和(V-1)个第二功能信息,所述(V-1)个第二设备信息和所述(V-1)个第二功能信息均与所述(V-1)个电子设备一一对应;Receive (V-1) second device information and (V-1) second function information sent by said (V-1) electronic device, said (V-1) second device information and said (V-1) pieces of second function information all correspond to the (V-1) pieces of electronic equipment one-to-one;
    获取所述簇头设备的第二设备信息和第二功能信息;Acquiring second device information and second function information of the cluster head device;
    根据预存的设备信息、情景模式与运行信息的映射关系获得与所述第一情景模式对应的V个第二运行信息,所述V个第二运行信息与V个第二设备信息一一对应;Obtaining V pieces of second operation information corresponding to the first scene mode according to the pre-stored equipment information, the mapping relationship between the scene mode and the operation information, and the V pieces of second operation information correspond to the V pieces of second equipment information one to one;
    将所述V个第二设备信息、V个第二功能信息和所述V个第二运行信息确定为所述设备簇在所述第一情景模式下的运行情况。The V pieces of second device information, the V pieces of second function information, and the V pieces of second operation information are determined as the operating conditions of the device cluster in the first scenario mode.
  7. 根据权利要求5或6所述的方法,其特征在于,所述根据所述运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,包括:The method according to claim 5 or 6, wherein the obtaining at least one first electronic device and at least one first response instruction that responds to at least one call demand according to the operating condition comprises:
    根据情景模式与呼叫需求响应模型的映射关系获得所述第一情景模式对应的目标呼叫需求响应模型;Obtaining the target call demand response model corresponding to the first scenario mode according to the mapping relationship between the scenario mode and the call demand response model;
    将所述至少一个呼叫需求和所述运行情况输入所述目标呼叫需求响应模型进行处理,输出响应所述至少一个呼叫需求的至少一个第一电子设备;Input the at least one call demand and the operating condition into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
    根据所述至少一个呼叫需求和所述至少一个第一电子设备生成至少一个第一响应指令。At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    实时或周期性检测是否存在针对情景模式的切换操作;Real-time or periodic detection of whether there is a switching operation for the scene mode;
    当检测到针对情景模式的切换操作时,获得所述切换操作对应的第二情景模式;When a switching operation for a scene mode is detected, obtaining a second scene mode corresponding to the switching operation;
    将情景模式由所述第一情景模式切换至所述第二情景模式。Switching the scene mode from the first scene mode to the second scene mode.
  9. 一种呼叫需求响应装置,其特征在于,应用于簇头设备,包括:A call demand response device, which is characterized in that it is applied to a cluster head device, and includes:
    获得单元,用于获得设备簇对应的第一情景模式,所述设备簇包括所述簇头设备;An obtaining unit, configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes the cluster head device;
    所述获得单元,还用于获得所述设备簇在所述第一情景模式下的运行情况;The obtaining unit is further configured to obtain the operating status of the device cluster in the first scenario mode;
    所述获得单元,还用于当检测到至少一个呼叫需求时,根据所述运行情况获得响应至 少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,所述至少一个第一电子设备和所述至少一个第一响应指令均与所述至少一个呼叫需求一一对应;The obtaining unit is further configured to obtain at least one first electronic device that responds to the at least one call request and at least one first response instruction according to the operating condition when at least one call demand is detected, and the at least one first electronic device Both the device and the at least one first response command correspond to the at least one call demand in a one-to-one correspondence;
    发送单元,用于向所述至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。The sending unit is configured to send the corresponding first response instruction to each first electronic device in the at least one first electronic device.
  10. 根据权利要求9所述的装置,其特征在于,所述簇头设备是用户指定的;或者,所述簇头设备是根据电子设备的通信能力、数据运算能力和数据存储能力从所述设备簇中选取的。The apparatus according to claim 9, wherein the cluster head device is specified by a user; or, the cluster head device is obtained from the device cluster according to the communication capability, data computing capability, and data storage capability of the electronic device. Selected in.
  11. 根据权利要求9或10所述的装置,其特征在于,所述簇头设备包括显示屏,在获得设备簇对应的第一情景模式方面,所述获得单元具体用于:The apparatus according to claim 9 or 10, wherein the cluster head device comprises a display screen, and in terms of obtaining the first scene mode corresponding to the device cluster, the obtaining unit is specifically configured to:
    通过所述显示屏显示情景模式界面,所述情景模式界面包括第一提示信息和多个情景模式,所述第一提示信息用于指示用户从所述多个情景模式中选取一个情景模式作为所述设备簇的情景模式;A scene mode interface is displayed through the display screen, the scene mode interface includes first prompt information and a plurality of scene modes, and the first prompt information is used to instruct the user to select a scene mode from the plurality of scene modes as the selected scene mode. The scene mode of the device cluster;
    当检测到针对所述情景模式界面的触控操作时,获得所述触控操作对应的情景模式;When a touch operation for the scene mode interface is detected, obtain the scene mode corresponding to the touch operation;
    将所述触控操作对应的情景模式确定为所述设备簇对应的第一情景模式。The scene mode corresponding to the touch operation is determined as the first scene mode corresponding to the device cluster.
  12. 根据权利要求9或10所述的装置,其特征在于,在获得设备簇对应的第一情景模式方面,所述获得单元具体用于:The apparatus according to claim 9 or 10, wherein, in terms of obtaining the first scene mode corresponding to the device cluster, the obtaining unit is specifically configured to:
    获取历史情景模式记录,所述历史情景模式记录包括时间段与情景模式的映射关系;Acquiring a historical scene mode record, where the historical scene mode record includes a mapping relationship between a time period and a scene mode;
    获取当前时间;Get the current time;
    根据所述时间段与情景模式的映射关系确定所述当前时间所处时间段对应的目标情景模式;Determine the target scenario mode corresponding to the time period in the current time according to the mapping relationship between the time period and the scenario mode;
    将所述目标情景模式确定为所述设备簇对应的第一情景模式。The target scene mode is determined as the first scene mode corresponding to the device cluster.
  13. 根据权利要求11或12所述的装置,其特征在于,所述设备簇包括U个电子设备,所述U为大于1的整数,在获得所述设备簇在所述第一情景模式下的运行情况方面,所述获得单元具体用于:The apparatus according to claim 11 or 12, wherein the device cluster includes U electronic devices, and the U is an integer greater than 1, when obtaining the operation of the device cluster in the first scenario mode In terms of circumstances, the obtaining unit is specifically used for:
    向(U-1)个电子设备发送(U-1)个第三请求,所述(U-1)个第三请求与所述(U-1)个电子设备一一对应,所述第三请求用于指示其对应的电子设备反馈设备信息、功能信息以及与所述第一情景模式对应的运行信息,所述设备簇包括所述簇头设备和所述(U-1)个电子设备;Send (U-1) third requests to (U-1) electronic devices, and the (U-1) third requests are in one-to-one correspondence with the (U-1) electronic devices, and the third The request is used to instruct its corresponding electronic device to feed back device information, function information, and operation information corresponding to the first scenario mode, and the device cluster includes the cluster head device and the (U-1) electronic devices;
    接收所述(U-1)个电子设备发送的(U-1)个第一设备信息、(U-1)个第一功能信息以及(U-1)个第一运行信息,所述(U-1)个第一设备信息、所述(U-1)个第一功能信息以及所述(U-1)个第一运行信息均与所述(U-1)个电子设备一一对应;Receiving (U-1) first device information, (U-1) first function information, and (U-1) first operating information sent by the (U-1) electronic devices, the (U-1) -1) pieces of first device information, the (U-1) pieces of first function information, and the (U-1) pieces of first operating information all correspond to the (U-1) pieces of electronic equipment one-to-one;
    获取所述簇头设备的第一设备信息、第一功能信息和与所述第一情景模式对应的第一运行信息;Acquiring first device information, first function information, and first operation information corresponding to the first scenario mode of the cluster head device;
    将U个第一设备信息、U个第一功能信息和U个第一运行信息确定为所述设备簇在所 述第一情景模式下的运行情况。U pieces of first device information, U pieces of first function information, and U pieces of first operating information are determined as the operating conditions of the device cluster in the first scenario mode.
  14. 根据权利要求11或12所述的装置,其特征在于,所述设备簇包括V个电子设备,所述V为大于1的整数,在获得所述设备簇在所述第一情景模式下的运行情况方面,所述获得单元具体用于:The apparatus according to claim 11 or 12, wherein the device cluster includes V electronic devices, and the V is an integer greater than 1, and the operation of the device cluster in the first scenario mode is obtained. In terms of circumstances, the obtaining unit is specifically used for:
    向(V-1)个电子设备发送(V-1)个第四请求,所述(V-1)个第四请求与所述(V-1)个电子设备一一对应,所述第四请求用于指示其对应的电子设备反馈设备信息和功能信息,所述设备簇包括所述(V-1)个电子设备和所述簇头设备;Send (V-1) fourth requests to (V-1) electronic devices, and the (V-1) fourth requests are in one-to-one correspondence with the (V-1) electronic devices, and the fourth The request is used to instruct its corresponding electronic device to feed back device information and function information, and the device cluster includes the (V-1) electronic devices and the cluster head device;
    接收所述(V-1)个电子设备发送的(V-1)个第二设备信息和(V-1)个第二功能信息,所述(V-1)个第二设备信息和所述(V-1)个第二功能信息均与所述(V-1)个电子设备一一对应;Receive (V-1) second device information and (V-1) second function information sent by said (V-1) electronic device, said (V-1) second device information and said (V-1) pieces of second function information all correspond to the (V-1) pieces of electronic equipment one-to-one;
    获取所述簇头设备的第二设备信息和第二功能信息;Acquiring second device information and second function information of the cluster head device;
    根据预存的设备信息、情景模式与运行信息的映射关系获得与所述第一情景模式对应的V个第二运行信息,所述V个第二运行信息与V个第二设备信息一一对应;Obtaining V pieces of second operation information corresponding to the first scene mode according to the pre-stored equipment information, the mapping relationship between the scene mode and the operation information, and the V pieces of second operation information correspond to the V pieces of second equipment information one to one;
    将所述V个第二设备信息、V个第二功能信息和所述V个第二运行信息确定为所述设备簇在所述第一情景模式下的运行情况。The V pieces of second device information, the V pieces of second function information, and the V pieces of second operation information are determined as the operating conditions of the device cluster in the first scenario mode.
  15. 根据权利要求13或14所述的装置,其特征在于,在根据所述运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令方面,所述获得单元具体用于:The apparatus according to claim 13 or 14, characterized in that, in terms of obtaining at least one first electronic device that responds to at least one call demand and at least one first response instruction according to the operating condition, the obtaining unit is specifically configured to :
    根据情景模式与呼叫需求响应模型的映射关系获得所述第一情景模式对应的目标呼叫需求响应模型;Obtaining the target call demand response model corresponding to the first scenario mode according to the mapping relationship between the scenario mode and the call demand response model;
    将所述至少一个呼叫需求和所述运行情况输入所述目标呼叫需求响应模型进行处理,输出响应所述至少一个呼叫需求的至少一个第一电子设备;Input the at least one call demand and the operating condition into the target call demand response model for processing, and output at least one first electronic device that responds to the at least one call demand;
    根据所述至少一个呼叫需求和所述至少一个第一电子设备生成至少一个第一响应指令。At least one first response instruction is generated according to the at least one call demand and the at least one first electronic device.
  16. 根据权利要求15所述的装置,其特征在于,所述装置还包括切换单元,The device according to claim 15, wherein the device further comprises a switching unit,
    所述获得单元,还用于实时或周期性检测是否存在针对情景模式的切换操作;当检测到针对情景模式的切换操作时,获得所述切换操作对应的第二情景模式;The obtaining unit is further configured to detect whether there is a switching operation for the scene mode in real time or periodically; when the switching operation for the scene mode is detected, obtain the second scene mode corresponding to the switching operation;
    所述切换单元,用于将情景模式由所述第一情景模式切换至所述第二情景模式。The switching unit is configured to switch the scene mode from the first scene mode to the second scene mode.
  17. 一种呼叫需求响应装置,其特征在于,所述装置包括相互耦合的处理器、通信接口和存储器,其中:A call demand response device, characterized in that the device comprises a processor, a communication interface and a memory coupled with each other, wherein:
    所述处理器,用于获得设备簇对应的第一情景模式,所述设备簇包括簇头设备;The processor is configured to obtain a first scene mode corresponding to a device cluster, where the device cluster includes a cluster head device;
    所述通信接口,用于获得所述设备簇在所述第一情景模式下的运行情况;The communication interface is used to obtain the operating status of the device cluster in the first scenario mode;
    所述处理器,还用于当检测到至少一个呼叫需求时,根据所述运行情况获得响应至少一个呼叫需求的至少一个第一电子设备和至少一个第一响应指令,所述至少一个第一电子 设备和所述至少一个第一响应指令均与所述至少一个呼叫需求一一对应;The processor is further configured to obtain at least one first electronic device that responds to the at least one call demand and at least one first response instruction according to the operating condition when at least one call demand is detected, and the at least one first electronic device Both the device and the at least one first response instruction correspond to the at least one call demand in a one-to-one correspondence;
    所述通信接口,还用于向所述至少一个第一电子设备中的每个第一电子设备发送其对应的第一响应指令。The communication interface is further configured to send a corresponding first response instruction to each first electronic device in the at least one first electronic device.
  18. 一种计算机可读存储介质,其特征在于,存储有计算机程序,所述计算机程序被硬件执行以实现权利要求1至8中任意一项由所述呼叫需求响应装置执行的方法。A computer-readable storage medium, characterized in that a computer program is stored, and the computer program is executed by hardware to implement the method executed by the call demand response device in any one of claims 1 to 8.
  19. 一种芯片系统,其特征在于,所述芯片系统包括处理器,用于支持电子设备实现权利要求1至8任一项所述的方法。A chip system, characterized in that the chip system includes a processor for supporting an electronic device to implement the method according to any one of claims 1 to 8.
PCT/CN2020/129736 2019-11-25 2020-11-18 Method and apparatus for responding to call request, and electronic device WO2021104122A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911168219.1A CN111031492B (en) 2019-11-25 2019-11-25 Call demand response method and device and electronic equipment
CN201911168219.1 2019-11-25

Publications (1)

Publication Number Publication Date
WO2021104122A1 true WO2021104122A1 (en) 2021-06-03

Family

ID=70202054

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/129736 WO2021104122A1 (en) 2019-11-25 2020-11-18 Method and apparatus for responding to call request, and electronic device

Country Status (2)

Country Link
CN (1) CN111031492B (en)
WO (1) WO2021104122A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113820960A (en) * 2021-09-16 2021-12-21 珠海格力电器股份有限公司 Equipment resource sharing system, method and device, intelligent equipment and storage medium
CN117692481A (en) * 2024-02-04 2024-03-12 常熟理工学院 Remote monitoring system for chronic diseases

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031492B (en) * 2019-11-25 2021-11-19 荣耀终端有限公司 Call demand response method and device and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013182736A1 (en) * 2012-06-08 2013-12-12 Nokia Corporation Determination of context-aware user preferences
CN104580738A (en) * 2015-01-22 2015-04-29 小米科技有限责任公司 Method and device for setting information reminding modes
CN105339894A (en) * 2013-07-01 2016-02-17 三星电子株式会社 Electronic device and methods of updating and managing application status information in the electronic device
CN106469040A (en) * 2015-08-19 2017-03-01 华为终端(东莞)有限公司 Communication means, server and equipment
CN107295533A (en) * 2017-06-20 2017-10-24 海信集团有限公司 A kind of method and apparatus for electing leader cluster node
US20180198680A1 (en) * 2015-07-08 2018-07-12 Convida Wireless, Llc M2m clustering management
CN109769225A (en) * 2019-03-05 2019-05-17 维沃移动通信有限公司 A kind of vehicle is to vehicle V2V communication means, the network equipment and terminal
CN110138968A (en) * 2019-04-30 2019-08-16 努比亚技术有限公司 A kind of incoming call reminding method, wearable device and storage medium
CN111031492A (en) * 2019-11-25 2020-04-17 华为技术有限公司 Call demand response method and device and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754121A (en) * 2015-03-13 2015-07-01 百度在线网络技术(北京)有限公司 Event reminding method and device
CN109379503A (en) * 2018-12-24 2019-02-22 维沃移动通信有限公司 A kind of income prompting method and mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013182736A1 (en) * 2012-06-08 2013-12-12 Nokia Corporation Determination of context-aware user preferences
CN105339894A (en) * 2013-07-01 2016-02-17 三星电子株式会社 Electronic device and methods of updating and managing application status information in the electronic device
CN104580738A (en) * 2015-01-22 2015-04-29 小米科技有限责任公司 Method and device for setting information reminding modes
US20180198680A1 (en) * 2015-07-08 2018-07-12 Convida Wireless, Llc M2m clustering management
CN106469040A (en) * 2015-08-19 2017-03-01 华为终端(东莞)有限公司 Communication means, server and equipment
CN107295533A (en) * 2017-06-20 2017-10-24 海信集团有限公司 A kind of method and apparatus for electing leader cluster node
CN109769225A (en) * 2019-03-05 2019-05-17 维沃移动通信有限公司 A kind of vehicle is to vehicle V2V communication means, the network equipment and terminal
CN110138968A (en) * 2019-04-30 2019-08-16 努比亚技术有限公司 A kind of incoming call reminding method, wearable device and storage medium
CN111031492A (en) * 2019-11-25 2020-04-17 华为技术有限公司 Call demand response method and device and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113820960A (en) * 2021-09-16 2021-12-21 珠海格力电器股份有限公司 Equipment resource sharing system, method and device, intelligent equipment and storage medium
CN117692481A (en) * 2024-02-04 2024-03-12 常熟理工学院 Remote monitoring system for chronic diseases
CN117692481B (en) * 2024-02-04 2024-04-12 常熟理工学院 Remote monitoring system for chronic diseases

Also Published As

Publication number Publication date
CN111031492A (en) 2020-04-17
CN111031492B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
WO2021036770A1 (en) Split-screen processing method and terminal device
CN114397981A (en) Application display method and electronic equipment
WO2020077540A1 (en) Information processing method and electronic device
WO2021104122A1 (en) Method and apparatus for responding to call request, and electronic device
WO2022068483A1 (en) Application startup method and apparatus, and electronic device
CN111628916B (en) Method for cooperation of intelligent sound box and electronic equipment
WO2022127787A1 (en) Image display method and electronic device
WO2021052204A1 (en) Address book-based device discovery method, audio and video communication method, and electronic device
WO2021083128A1 (en) Sound processing method and apparatus thereof
WO2022033320A1 (en) Bluetooth communication method, terminal device, and computer-readable storage medium
CN113961157B (en) Display interaction system, display method and equipment
WO2021052139A1 (en) Gesture input method and electronic device
WO2021052070A1 (en) Frame rate identification method and electronic device
WO2020024108A1 (en) Application icon display method and terminal
WO2022017474A1 (en) Task processing method and related apparatus
WO2021082815A1 (en) Display element display method and electronic device
WO2021143391A1 (en) Video call-based screen sharing method and mobile device
WO2021169370A1 (en) Method for cross-device allocation of service elements, terminal device, and storage medium
WO2022166435A1 (en) Picture sharing method and electronic device
WO2022135157A1 (en) Page display method and apparatus, and electronic device and readable storage medium
WO2022170856A1 (en) Method for establishing connection, and electronic device
CN115333941A (en) Method for acquiring application running condition and related equipment
WO2021052388A1 (en) Video communication method and video communication apparatus

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: 20894413

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20894413

Country of ref document: EP

Kind code of ref document: A1