WO2023207171A1 - Home device control method, home device, and smart cooking method - Google Patents

Home device control method, home device, and smart cooking method Download PDF

Info

Publication number
WO2023207171A1
WO2023207171A1 PCT/CN2022/141875 CN2022141875W WO2023207171A1 WO 2023207171 A1 WO2023207171 A1 WO 2023207171A1 CN 2022141875 W CN2022141875 W CN 2022141875W WO 2023207171 A1 WO2023207171 A1 WO 2023207171A1
Authority
WO
WIPO (PCT)
Prior art keywords
hardware capability
home device
hardware
information
cooking
Prior art date
Application number
PCT/CN2022/141875
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
Priority claimed from CN202210456488.3A external-priority patent/CN114755934A/en
Priority claimed from CN202210457638.2A external-priority patent/CN114740746A/en
Application filed by 青岛海信智慧生活科技股份有限公司 filed Critical 青岛海信智慧生活科技股份有限公司
Publication of WO2023207171A1 publication Critical patent/WO2023207171A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]

Definitions

  • This application relates to the field of smart home technology, specifically, to a control method for home equipment, home equipment and an intelligent cooking method.
  • home devices can be connected to the network and communicate with other devices through the network.
  • an oven and a refrigerator can be connected through the network, and according to the type of food in the refrigerator, the food can be placed in different functional zones of the oven for steaming and baking. Since different home devices may have different functions, if the home devices are properly controlled, the functions of each home device can be fully utilized.
  • Some embodiments of the present application provide a method for controlling home equipment.
  • the method includes: determining a target home equipment based on a hardware capability information library stored in the current home equipment.
  • the target home equipment refers to a device other than the current home equipment.
  • a home device with a first hardware capability, the first hardware capability refers to the hardware capability to be called by the current home device; wherein the hardware capability information library includes description information of multiple hardware capabilities, and the description information includes The function pointer and parameter indication information of the callback function corresponding to the corresponding hardware capability.
  • the parameter indication information is used to indicate the parameters required by the callback function.
  • the multiple hardware capabilities belong to multiple home devices.
  • the multiple hardware The capability includes the first hardware capability; based on the parameter indication information of the callback function corresponding to the first hardware capability, determine the parameters required by the callback function corresponding to the first hardware capability; send the hardware capability to the target home device A call request.
  • the hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability.
  • the hardware capability call request is used to instruct the target home device to call the first hardware capability.
  • the corresponding callback function is used to perform the corresponding action through the first hardware capability.
  • the home device includes: a memory configured to store a software program; a processor configured to: determine the target home device based on the hardware capability information library stored by the current home device.
  • Home equipment refers to home equipment that has the first hardware capability in addition to the current home device.
  • the first hardware capability refers to the hardware capability to be called by the current home device.
  • the hardware capability information base includes description information of multiple hardware capabilities.
  • the description information includes the function pointer and parameter indication information of the callback function corresponding to the corresponding hardware capability.
  • the parameter indication information is used to indicate the parameters required by the callback function.
  • the multiple hardware capabilities belong to multiple home devices.
  • the multiple hardware capabilities include First hardware capability.
  • the parameters required by the callback function corresponding to the first hardware capability are determined.
  • the hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability.
  • the hardware capability call request is used to instruct the target home device to call the first hardware capability corresponding to
  • the callback function is used to perform the corresponding action through the first hardware capability.
  • Some embodiments of the present application provide an intelligent cooking method.
  • the method includes: responding to an ingredient category identification instruction, photographing ingredients placed in different sections of the baking pan, and determining the categories of ingredients in each section based on the captured images, wherein , Different partitions of the baking pan correspond to different heating tubes, and each heating tube is arranged above the corresponding partition; determine the cooking information corresponding to different food categories, and the cooking information includes cooking temperature, cooking time and cooking interval; for any one Partitioning, based on the cooking information corresponding to the different food categories, cooks the ingredients in any one of the partitions.
  • Figure 1 is a structural block diagram of a household device provided by some embodiments of the present application.
  • Figure 2 is a schematic structural diagram of a server provided by some embodiments of the present application.
  • Figure 3 is a schematic diagram of a system architecture provided by some embodiments of the present application.
  • Figure 4 is a schematic diagram of another system architecture provided by some embodiments of the present application.
  • Figure 5 is a flow chart of a control method for home equipment provided by some embodiments of the present application.
  • Figure 6 is a schematic diagram of the layout of heating tubes inside an oven device provided by some embodiments of the present application.
  • Figure 7 is a schematic structural diagram of a heating tube provided by some embodiments of the present application.
  • Figure 8 is a schematic diagram of a parallel structure of heating tubes provided by some embodiments of the present application.
  • Figure 9 is a schematic diagram of an application scenario of an intelligent cooking method provided by some embodiments of the present application.
  • Figure 10 is a schematic diagram of another application scenario of an intelligent cooking method provided by some embodiments of the present application.
  • Figure 11 is a schematic diagram of another application scenario of an intelligent cooking method provided by some embodiments of the present application.
  • Figure 12 is a schematic flow chart of an intelligent cooking method provided by some embodiments of the present application.
  • Figure 13 is a schematic diagram of a two-partition baking pan provided by some embodiments of the present application.
  • Figure 14 is a schematic diagram of a 2-zone heating tube layout provided by some embodiments of the present application.
  • Figure 15 is a schematic diagram of a five-partition baking pan provided by some embodiments of the present application.
  • Figure 16 is a schematic flowchart of querying the categories of ingredients in the refrigerator provided by some embodiments of the present application.
  • Figure 17 is a schematic diagram of an oven equipment display interface provided by some embodiments of the present application.
  • Figure 18 is a schematic diagram of another recipe matching process provided by some embodiments of the present application.
  • Figure 19 is a schematic diagram of another oven equipment display interface provided by some embodiments of the present application.
  • “more than” can be understood as greater than, or greater than or equal to. When “more than” is understood to mean greater than, “less than” can be understood to mean less than or equal to. Where “more than” is understood to mean greater than or equal to, “less than” can be understood to mean less than. This explanation can be used for reference to “more than” and “less than” later.
  • FIG. 1 is a structural block diagram of a household device provided by some embodiments of the present application.
  • home equipment can be any electronic product that can be connected to the network, such as ovens, refrigerators, washing machines, air conditioners, and televisions.
  • the home device 100 includes: a processor 101 and a memory 102.
  • the processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
  • the processor 101 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array).
  • the processor 101 may also include a main processor and a co-processor.
  • the main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode.
  • the processor 101 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing content that needs to be displayed on the display screen.
  • the processor 101 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
  • AI Artificial Intelligence, artificial intelligence
  • the processor is configured to install an operating system, and the operating system is divided into four layers, from top to bottom: Applications layer (referred to as “Application layer”), Application Framework (Application Framework) ) layer (referred to as “framework layer”), Android runtime (Android runtime) and system library layer (referred to as “system runtime library layer”), and kernel layer.
  • Applications layer referred to as "Application layer”
  • Application Framework Application Framework
  • framework layer referred to as "framework layer”
  • Android runtime Android runtime
  • system library layer referred to as “system runtime library layer”
  • kernel layer Among them, the application framework layer includes managers (Managers), content providers (Content Provider), etc.
  • the manager includes at least one of the following modules: Activity Manager (Activity Manager) is used to interact with all activities running in the system; Location Manager (Location Manager) is used to provide system locations for system services or applications. Access to services; Package Manager is used to retrieve various information related to application packages currently installed on the device; Notification Manager is used to control the display and clearing of notification messages; Window Manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers and desktop components on the user interface.
  • Activity Manager Activity Manager
  • Location Manager Location Manager
  • Package Manager is used to retrieve various information related to application packages currently installed on the device
  • Notification Manager is used to control the display and clearing of notification messages
  • Window Manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers and desktop components on the user interface.
  • the system runtime layer provides support for the upper layer, the framework layer.
  • the Android operating system will run the C/C++ library included in the system runtime layer to implement the functions to be implemented by the framework layer.
  • the kernel layer contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply Driver etc.
  • Memory 102 may include one or more computer-readable storage media, which may be non-transitory. Memory 102 may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 102 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 101 to implement the home device provided by the method embodiment in this application. control method.
  • the home device 100 may further include: a peripheral device interface 103 and at least one peripheral device.
  • the processor 101, the memory 102 and the peripheral device interface 103 may be connected through a bus or a signal line.
  • Each peripheral device can be connected to the peripheral device interface 103 through a bus, a signal line or a circuit board.
  • the peripheral graphics device includes: at least one of a radio frequency circuit 104, a display screen 105, a camera component 106, an audio circuit 107, a positioning component 108 and a power supply 109.
  • the peripheral device interface 103 may be used to connect at least one I/O (Input/Output) related peripheral device to the processor 101 and the memory 102 .
  • the processor 101, the memory 102 and the peripheral device interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 101, the memory 102 and the peripheral device interface 103 or Both of them can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
  • the radio frequency circuit 104 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. Radio frequency circuit 104 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. Radio frequency circuitry 104 can communicate with other home devices through at least one wireless communication protocol.
  • RF Radio Frequency, radio frequency
  • the wireless communication protocol includes but is not limited to: World Wide Web, metropolitan area network, intranet, mobile communication networks of all generations (2G, 3G, 4G and 5G), wireless LAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.
  • the radio frequency circuit 104 may also include NFC (Near Field Communication) related circuits, etc.
  • the display screen 105 is used to display UI (User Interface, user interface).
  • the UI can include graphics, text, icons, videos, and any combination thereof.
  • display screen 105 is a touch display screen, display screen 105 also has the ability to collect touch signals on or above the surface of display screen 105 .
  • the touch signal can be input to the processor 101 as a control signal for processing.
  • the display screen 105 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the display screen 105 may be a flexible display screen, disposed on the curved surface or folding surface of the home device 100. Even, the display screen 105 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen.
  • the display screen 105 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
  • the camera assembly 106 is used to capture images or videos.
  • camera assembly 106 includes a front-facing camera and a rear-facing camera.
  • the front camera is set on the front panel of the home device, and the rear camera is set on the back of the home device.
  • there are at least two rear cameras one of which is a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the integration of the main camera and the depth-of-field camera to realize the background blur function.
  • camera assembly 106 may also include a flash.
  • the flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
  • Audio circuitry 107 may include a microphone and a speaker.
  • the microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 101 for processing, or input to the radio frequency circuit 104 to implement voice communication.
  • the microphone can also be an array microphone or an omnidirectional collection microphone.
  • the speaker is used to convert electrical signals from the processor 101 or the radio frequency circuit 104 into sound waves.
  • the loudspeaker can be a traditional membrane loudspeaker or a piezoelectric ceramic loudspeaker.
  • audio circuitry 107 may also include a headphone jack.
  • the positioning component 108 is used to locate the current geographical location of the home device 100 to implement navigation or LBS (Location Based Service).
  • the positioning component 108 may be a positioning component based on the United States' GPS (Global Positioning System), China's Beidou system, or Russia's Galileo system.
  • the power supply 109 is used to power various components in the home device 100 .
  • the power source 109 may be AC, DC, disposable batteries, or rechargeable batteries.
  • the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. Wired rechargeable batteries are batteries that are charged through wired lines, and wireless rechargeable batteries are batteries that are charged through wireless coils.
  • the rechargeable battery can also be used to support fast charging technology.
  • FIG. 1 does not limit the home device 100 and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
  • FIG. 2 is a schematic structural diagram of a server provided by some embodiments of the present application.
  • the server 200 includes a central processing unit (CPU) 201, a random access memory (RAM) 202 and a read-only memory (ROM) 203.
  • system memory 204 and a system bus 205 connecting the system memory 204 and the central processing unit 201.
  • Server 200 also includes a basic input/output system (I/O system) 206 that facilitates the transfer of information between various devices within the computer, and a mass storage device 207 for storing an operating system 213, application programs 214, and other program modules 215 .
  • Server 200 is connected to network 212 through network interface unit 211.
  • the basic input/output system 206 includes a display 208 for displaying information and input devices 209 such as a mouse and a keyboard for the user to input information.
  • the display 208 and the input device 209 are both connected to the central processing unit 201 through the input and output controller 210 connected to the system bus 205 .
  • Basic input/output system 206 may also include an input/output controller 210 for receiving and processing input from a variety of other devices such as a keyboard, mouse, or electronic stylus.
  • input and output controller 210 also provides output to a display screen, printer, or other type of output device.
  • Mass storage device 207 is connected to central processing unit 201 through a mass storage controller (not shown) connected to system bus 205 .
  • Mass storage device 207 and its associated computer-readable media provide non-volatile storage for server 200 . That is, mass storage device 207 may include computer-readable media (not shown) such as a hard disk or a CD-ROM drive.
  • FIG 3 is a schematic diagram of a system architecture provided by some embodiments of the present application.
  • the system includes multiple home devices 301 (3 home devices are schematically illustrated in Figure 3).
  • the multiple home devices 301 Interact via wireless communication.
  • the home device is used as the current home device.
  • the current home device determines the target home device based on the stored hardware capability information library, and determines the parameters required by the callback function corresponding to the first hardware capability based on the parameter indication information of the callback function corresponding to the first hardware capability, and then sends the target home device to the target home device.
  • the home device sends a hardware capability call request.
  • the target home device After receiving the hardware capability call request sent by the current home device, the target home device calls the callback function corresponding to the first hardware capability based on the function pointer and required parameters of the callback function corresponding to the first hardware capability, so that the target home device executes corresponding action.
  • the current home device and the target home device can access the same access point, that is, the current home device and the target home device can be in the same WLAN (Wireless Local Area Networks, Wireless LAN).
  • WLAN Wireless Local Area Networks
  • the current home device sends the hardware capability invocation request to the access point, and the access point receives the hardware capability invocation request sent by the current home device.
  • the hardware capability invocation request is sent to the target home device, so that the target home device can receive the hardware capability invocation request.
  • other interaction processes involving the current home device and the target home device can also be implemented through this access point. That is to say, home devices 301 connected to the same access point can directly interact with each other without interacting through a server.
  • the current home device and the target home device may also access different access points. That is, the current home device and the target home device may also be located in different WLANs.
  • Figure 4 is a schematic diagram of another system architecture provided by some embodiments of the present application.
  • the system includes multiple home devices 301 and a server 302.
  • the multiple home devices 301 can communicate with the server 302.
  • the communication connection may be a wired or wireless connection, which is not limited in some embodiments of the present application.
  • the current home device sends the hardware capability invocation request to the server.
  • the server receives the hardware capability invocation request sent by the current home device, it calls the hardware capability The request is sent to the target home device so that the target home device can receive the hardware capability calling request.
  • other interaction processes involving the current home device and the target home device can also be implemented through the server. That is to say, home devices 301 connected to different access points need to interact with each other through the server and cannot interact directly.
  • the home device 301 can be any electronic product that can be connected to the network.
  • the home device 301 can be any electronic product that can be connected to the network.
  • Server 302 can be an independent server, a server cluster or a distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud services, etc.
  • Cloud servers for basic cloud computing services such as communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, or a cloud computing service center.
  • system architecture described in some embodiments of the present application is to more clearly illustrate the technical solutions of some embodiments of the present application, and does not constitute a limitation on the technical solutions provided by some embodiments of the present application.
  • Those of ordinary skill in the art It can be seen that with the evolution of system architecture, the technical solutions provided by some embodiments of this application are also applicable to similar technical problems.
  • Figure 5 is a flow chart of a method for controlling home equipment provided by some embodiments of the present application. Please refer to Figure 5. The method includes the following steps.
  • Step S301 The current home device determines the target home device based on the stored hardware capability information database.
  • the target home device refers to the home device that has the first hardware capability in addition to the current home device.
  • the first hardware capability refers to the current home device to be called. hardware capabilities.
  • the hardware capability information base includes description information of multiple hardware capabilities.
  • the description information includes function pointers and parameter indication information of the callback function corresponding to the corresponding hardware capability.
  • the parameter indication information is used to indicate the parameters required by the callback function.
  • the multiple A hardware capability belongs to multiple home devices, and the multiple hardware capabilities include a first hardware capability.
  • the description information may also include other information.
  • the description information includes the name of the corresponding hardware capability and the identification of the home device to which the corresponding hardware capability belongs.
  • the current home device can determine a candidate home device with the first hardware capability based on the stored hardware capability information library. Then, the current home device determines the location information of the current home device and the candidate home device respectively according to the relevant algorithm, and then determines each home device in the current home device and the candidate home device based on the location information of the current home device and the candidate home device. The distance between devices, the home device with the smallest distance from the current home device among the candidate home devices is determined as the target home device. In this way, the target home device can be selected from the candidate home devices having the first hardware capability.
  • the description information of each hardware capability in the hardware capability information database may include the name of the hardware capability and the identification of the home device to which it belongs. That is, the hardware capability information database stores the name of the hardware capability and the identification of the home device to which it belongs. Correspondence between identifications of home equipment. In this way, when the current home device needs to call the first hardware capability, based on the name of the first hardware capability, all home devices with the first hardware capability can be obtained from the corresponding relationship between the stored hardware capability name and the home device identification. logo. Then, the home devices corresponding to the acquired identifiers are determined as candidate home devices.
  • the current household device is an oven
  • the first hardware capability is the speaker capability.
  • the oven obtains the identifiers of all home devices with speaker capabilities from the correspondence between the hardware capability names and home device identifiers stored in the hardware capability information database as shown in Table 1 below. Assume that home devices with speaker capabilities include a washing machine and a television, and then the washing machine and the television are determined as candidate home devices.
  • Hardware capability name Home equipment identification roast steak oven measure temperature air conditioner Measure humidity air conditioner Measure carbon dioxide levels air purifier speaker washing machine speaker television
  • the identification of the home equipment is used to uniquely identify the home equipment.
  • the identification can be the type, number, manufacturer, brand, model, etc. of the home equipment, or it can be obtained by a combination of these information.
  • the current home device includes a hardware capability virtualization module, and the current home device can determine candidate home devices through the hardware capability virtualization module. That is to say, when the current home device needs to call the first hardware capability, the hardware capability virtualization module obtains the first hardware capability based on the name of the first hardware capability from the corresponding relationship between the stored hardware capability name and the home device identification. Identification of hardware capabilities for all home devices. Then, the home devices corresponding to the acquired identifiers are determined as candidate home devices.
  • the hardware capabilities of the home equipment may be functions of the home equipment, or may also be capabilities corresponding to components of the home equipment.
  • the household device is an oven, and the function of the oven is to grill steak.
  • the oven includes components such as speakers, timers, and temperature controllers.
  • the hardware capabilities of the oven include grilling steaks, speaker capabilities, timing and temperature control, etc.
  • the description information of hardware capabilities is used to describe hardware capabilities and the home devices to which the hardware capabilities belong.
  • the description information of hardware capabilities can also describe other information, which is not limited in some embodiments of the present application.
  • the description information of the hardware capability may also describe the attributes of the hardware capability, and the attributes of the hardware capability are used to indicate the capability range of the hardware capability. Assume that the hardware capability is the speaker capability, and the attributes of the speaker capability are the minimum volume and maximum volume of the speaker.
  • the current home device may also determine the target home device in other ways. For example, the current home device determines the candidate home device with the first hardware capability based on the stored hardware capability information library, determines the location information of the user, the user is the user who uses the current home device, and determines each home device in the candidate home device. Based on the location information of the user and the location information of the candidate home devices, the home device closest to the user is selected from the candidate home devices as the target home device. That is, when the user uses the current home device, the current home device determines the location information of the user and the candidate home device respectively according to relevant algorithms.
  • the distance between the user and each of the candidate home devices is determined, and the home device with the smallest distance between the candidate home devices and the user is determined.
  • Target home equipment In this way, when the target home device calls the first hardware capability to perform a corresponding action, the user can learn the current working status of the home device through the target home device closest to the user.
  • users may carry user terminals such as mobile phones and wearable devices with them. Therefore, the implementation process of the current home device to determine the user's location information includes: the current home device sends a location information query request to the user terminal. The location information query The request is used to query the user's location information at the current time. After receiving the location information query request sent by the current home device, the user terminal sends the user's current time location information to the current home device.
  • the candidate home device with the first hardware capability includes at least one home device
  • the current home device selects the target home device from the at least one home device.
  • the candidate home devices with the first hardware capability may also include only one home device. In this case, the current home device directly determines the home device as the target home device.
  • the current home device is based on the stored hardware capability information library. Before determining the target home device, it is necessary to follow the following steps S401-S404 to determine the hardware capability information library, which specifically includes:
  • the current home device performs self-test on its own hardware capabilities to determine the hardware capabilities that have succeeded in self-test.
  • the current home device For any hardware capability that the current home device has, it collects the output voltage of the hardware module used to provide the any hardware capability. When the output voltage exceeds the voltage threshold, it is determined that the self-test of any hardware capability is successful. , when the output voltage is lower than the voltage threshold, it is determined that any hardware capability self-test has failed.
  • the voltage threshold of the hardware module is used to indicate whether the hardware module has failed, if the output voltage of the hardware module exceeds the voltage threshold, it indicates that the hardware module has not failed and the hardware module can provide hardware capabilities normally. At this point, the hardware capability self-test is successful. If the output voltage of the hardware module is lower than the voltage threshold, it indicates that the hardware module is faulty and cannot provide hardware capabilities normally. At this time, the hardware capability self-test fails.
  • current home devices can perform self-tests on their own hardware capabilities during the process of starting up, or they can perform self-tests on their own hardware capabilities after being turned on. Some embodiments of the present application may There is no limit to the self-test timing of hardware capabilities.
  • the voltage threshold of the hardware module is set in advance. Moreover, the voltage threshold of the hardware module can also be adjusted according to different needs. In addition, different hardware modules can correspond to different voltage thresholds, and different hardware modules can also correspond to the same voltage threshold. Some embodiments of the present application do not limit this.
  • current home devices perform self-tests on their own hardware capabilities in the above manner.
  • current home devices can also perform self-tests on their own hardware capabilities in other ways, which is not limited in some embodiments of the present application.
  • the current home device generates and stores a local hardware capability information base based on the hardware capabilities that have successfully self-tested.
  • the local hardware capability information base includes description information of the hardware capabilities that have successfully self-tested.
  • the current home device creates a description information for each hardware capability that has successfully self-tested, so as to obtain the description information of at least one hardware capability. Then, the description information of the at least one hardware capability is combined to generate a local hardware capability information library, and the local hardware capability information library is stored.
  • a callback function can also be set for each hardware capability that has successfully self-tested, and determines the corresponding The function pointer and parameter indication information of the callback function. In this way, when other home devices need to call the hardware capabilities of the current home device, the current home device can call the corresponding hardware capabilities based on the function pointer and required parameters of the callback function corresponding to the hardware capabilities to be called by other home devices. Callback.
  • the current home device obtains the hardware capability information database stored by other home devices that have performed hardware capability self-test.
  • each home device After a certain home device performs hardware capability self-test, it is also necessary to obtain the hardware capability information library stored in other home devices that have performed hardware capability self-test, so as to synchronize the hardware capability information library stored in each home device.
  • the current home device before the current home device performs a hardware capability self-test, there may be at least one other home device that has already performed a hardware capability self-test. Since each home device in the at least one home device has updated the local hardware capability information database based on the hardware capability information database stored by other home devices. That is, each home device in the at least one home device stores the same hardware capability information library. Therefore, after the current home device performs self-test of its own hardware capabilities and generates a local hardware capability information library, the current home device can also obtain the hardware capability information library stored by other home devices that have performed hardware capability self-tests.
  • the current home device may broadcast a capability information query request, and the capability information query request is used to query hardware capability information libraries stored by other home devices.
  • a certain home device among the above at least one home device receives the capability information query request, a query response is sent to the current home device, and the query response carries the hardware capability information library stored by other home devices.
  • the current home device receives a query response sent by a certain home device to obtain the hardware capability information library stored by other home devices that have performed hardware capability self-tests.
  • the current home device updates the local hardware capability information database based on the hardware capability information database stored by other home devices to obtain the hardware capability information database stored by the current home device.
  • the current home device After the current home device obtains the hardware capability information library stored by other home devices, it can merge the description information of the hardware capabilities included in the local hardware capability information library with the description information of the hardware capabilities included in the hardware capability information library stored by other home devices. To obtain the updated hardware capability information database, and store the updated hardware capability information database. At this time, the hardware capability information library stored by the current home device includes description information of the hardware capabilities of the current home device itself, as well as description information of multiple hardware capabilities originally included in the hardware capability information library stored by other home devices.
  • the current home device after the current home device updates the local hardware capability information library based on the hardware capability information library stored by other home devices to obtain the hardware capability information library stored by the current home device, it can also broadcast the hardware capability information library stored by the current home device.
  • the hardware capability information database enables other home devices to update their own stored hardware capability information database. That is to say, the current home device broadcasts the hardware capability information library stored by the current home device.
  • the current home device After other home devices receive the hardware capability information library stored by the current home device broadcast by the current home device, based on the hardware capability information library stored by the current home device, Update the hardware capability information database stored by itself.
  • the hardware capability information database stored by other home devices is the same before the current home device performs hardware capability self-test.
  • the current home device obtains and broadcasts the hardware capability information database stored by the current home device
  • other home devices can update their own stored hardware capability information database based on the hardware capability information database stored by the current home device. In this way, the current home device and other home devices store the same hardware capability information database.
  • the current home device can also obtain the version identifier stored by other home devices that have performed hardware capability self-tests.
  • the version identifier is used to uniquely identify the hardware capability information library stored by other home devices.
  • the version identification can also be updated to obtain The updated version identifier is broadcast while broadcasting the hardware capability information library stored in the current home device.
  • the updated version identifier is used to uniquely identify the hardware capability information library stored in the current home device.
  • the hardware capability information library stored in the current home device and the updated version identifier broadcast by the current home device After other home devices receive the hardware capability information library stored in the current home device and the updated version identifier broadcast by the current home device, they compare the updated version identifier with their own stored version identifiers. If the level of the updated version identifier is higher than the version identifier stored by itself, the hardware capability information library stored by itself is updated based on the hardware capability information library stored by the current home device. If the level of the updated version identifier is not higher than the version identifier stored by itself, there is no need to update the hardware capability information library stored by itself based on the hardware capability information library stored by the current home device corresponding to the updated version identifier. renew. This improves the accuracy of updates to the hardware capability information base.
  • the process of updating the hardware capability information library stored by other home devices based on the hardware capability information library stored by the current home device is the same as the process of updating the hardware capability information library stored by the current home device based on the hardware capability information library stored by other home devices in the above steps.
  • the process of updating the information database is similar, so you can refer to the relevant content of the above steps and will not go into details here.
  • the above content takes as an example that other home devices that perform hardware capability self-test before the current home device receive the hardware capability information library stored by the current home device broadcast by the current home device, and update their own stored hardware capability information library.
  • the current home device can also receive the hardware capability information library broadcast by other home devices that perform hardware capability self-tests after the current home device, and based on the received hardware capability information library, the current home device stores the hardware capability information library.
  • the hardware capability information base is updated.
  • Step S302 The current home device determines the parameters required by the callback function corresponding to the first hardware capability based on the parameter indication information of the callback function corresponding to the first hardware capability.
  • the hardware capability information base includes parameter indication information of the callback function corresponding to the corresponding hardware capability. Therefore, when the current home device needs to call the first hardware capability, the current home device can convert the information of calling the first hardware capability to perform the corresponding action according to the relevant algorithm into the parameters required by the callback function corresponding to the first hardware capability.
  • Step S303 The current home device sends a hardware capability call request to the target home device.
  • the hardware capability call request carries the function pointer of the callback function corresponding to the first hardware capability and the required parameters.
  • the hardware capability call request is used to instruct the target home device. Call the callback function corresponding to the first hardware capability to perform the corresponding action through the first hardware capability.
  • the hardware capability invocation request may also carry the identification of the current home device, the name of the first hardware capability, and the identification of the target home device.
  • the hardware capability invocation request may also carry other information. This application Some embodiments do not limit this.
  • the current home device and the target home device may access the same access point, or they may access different access points. That is, the current home device and the target home device may be located in the same WLAN or may be located in different WLANs. In different situations, the process of the current home device sending the hardware capability calling request to the target home device is different.
  • the current home device and the target home device are in the same WLAN.
  • the current home device sends the hardware capability calling request to the access point.
  • the access point After receiving the hardware capability invocation request sent by the current home device, the access point sends the hardware capability invocation request to the target home device.
  • the access point After the current home device sends the hardware capability invocation request to the access point, the access point directly sends the hardware capability invocation request to the target home device. It does not first send the hardware capability invocation request to the server, and then the server forwards it to Target home equipment. That is, the hardware capability invocation request is sent directly to the target home device by the access point and is not forwarded to the target home device through the server, so the sending efficiency of the hardware capability invocation request is improved.
  • the current home device and the target home device are in different WLANs.
  • the current home device sends the hardware capability calling request to the server.
  • the server After receiving the hardware capability invocation request sent by the current home device, the server sends the hardware capability invocation request to the target home device, thereby realizing interaction between home devices located in different WLANs.
  • the hardware capability information database also includes the SSID (Service Set Identifier, Service Set Identifier) of the access point corresponding to each home device in the plurality of home devices. That is, the hardware capability information database stores the correspondence between hardware capability names, home device identifiers, and SSIDs. In this way, after the current home device selects the target home device from the candidate home devices, it can obtain the target home device corresponding to the target home device based on the stored correspondence between the hardware capability name, the home device identifier, and the SSID. SSID. Then, the SSID corresponding to the current home device is compared with the SSID corresponding to the target home device to determine whether the current home device and the target home device are in the same WLAN.
  • SSID Service Set Identifier, Service Set Identifier
  • the SSID corresponding to the current home device is the same as the SSID corresponding to the target home device, it indicates that the current home device and the target home device are in the same WLAN. If the SSID corresponding to the current home device is different from the SSID corresponding to the target home device, it indicates that the current home device and the target home device are in different WLANs.
  • the correspondence between the hardware capability name, home device identification and SSID stored in the hardware capability information database is as shown in Table 2 below.
  • Hardware capability name Home equipment identification SSID roast steak oven SSID1 measure temperature air conditioner SSID2 Measure humidity air conditioner SSID2 Measure carbon dioxide levels air purifier SSID2 speaker washing machine SSID1 speaker television SSID1
  • the current home equipment includes a hardware capability virtualization module
  • the target home equipment also includes a hardware capability virtualization module.
  • the hardware capability virtualization modules can communicate with each other through a communication protocol library. That is, the hardware capability virtualization module of the current home device can send a hardware capability invocation request to the hardware capability virtualization module of the target home device through the communication protocol library.
  • the operating system of the current home device may be different from the operating system of the target home device.
  • the current operating system of home equipment is Android operating system
  • the operating system of target home equipment is Linux operating system.
  • C language, C++ language, Java and other languages need to be used. Hybrid compilation of hardware capability virtualization modules.
  • Step S304 The target home device receives the hardware capability calling request sent by the current home device, and based on the function pointer and required parameters of the callback function corresponding to the first hardware capability, calls the callback function corresponding to the first hardware capability to pass the first hardware capability.
  • a hardware capability performs the corresponding action.
  • the hardware capability call request carries the function pointer of the callback function corresponding to the first hardware capability and the required parameters.
  • the target home device is equipped with callback functions for each hardware capability it possesses, and each callback function corresponds to a function pointer. Therefore, after receiving the hardware capability calling request, the target home device can determine the callback function corresponding to the first hardware capability based on the function pointer of the callback function corresponding to the first hardware capability. Then, the target home device calls the callback function corresponding to the first hardware capability based on the parameters required by the callback function corresponding to the first hardware capability, so that the target home device performs the corresponding action.
  • the current home equipment is an oven
  • the target home equipment is a washing machine
  • the first hardware capability is the speaker capability.
  • the oven sends a speaker capability call request to the washing machine.
  • the speaker capability call request carries the function pointer of the callback function corresponding to the speaker capability and the parameters required to call the speaker capability.
  • the washing machine receives the speaker capability calling request sent by the oven and determines the callback function corresponding to the speaker capability. Then, based on the parameters required by the speaker capability, the washing machine calls the callback function corresponding to the speaker capability, so that the washing machine can broadcast the current working status of the oven through the speaker.
  • the target home device may also send a hardware capability invocation response to the current home device.
  • the hardware capability invocation response is used to indicate whether the target home device successfully performs the corresponding action. .
  • the target home device receives hardware capability invocation requests sent by multiple home devices, and each hardware capability invocation request carries the identification of the corresponding home device.
  • the target home device can determine the calling priorities corresponding to the multiple home devices based on the correspondence between the home device identifiers and the calling priorities, and then determine the calling priorities of the multiple home devices based on the identifications of the multiple home devices.
  • the calling priority corresponding to the device calls the first hardware capability in sequence.
  • the correspondence between the identification of the home device and the call priority may be set based on experience values, or may be determined based on the user's frequency of use of each home device, or may be manually set by the user.
  • the above content is based on the example of the current home device calling the first hardware capability of the target home device.
  • the target home device can also call the second hardware capability of the current home device.
  • the target home device can send a hardware capability invocation request to the current home device through the methods provided by some embodiments of this application.
  • the hardware capability invocation request carries the function pointer and required parameters of the callback function corresponding to the second hardware capability.
  • the current home device receives the hardware capability calling request sent by the target home device, and determines the callback function corresponding to the second hardware capability based on the function pointer of the callback function corresponding to the second hardware capability. Then, based on the parameters required by the callback function corresponding to the second hardware capability, the callback function corresponding to the second hardware capability is called, so that the current home device performs the corresponding action.
  • the current home device determines the callback function corresponding to the second hardware capability based on the function pointer of the callback function corresponding to the second hardware capability, and based on the parameters required by the callback function corresponding to the second hardware capability, calls the callback function corresponding to the second hardware capability.
  • the process of the callback function is the same as that in the above step S304, the target home device determines the callback function corresponding to the first hardware capability based on the function pointer of the callback function corresponding to the first hardware capability, and the parameters required for the callback function corresponding to the first hardware capability,
  • the process of calling the callback function corresponding to the first hardware capability is similar, so you can refer to the relevant content of step S304 above, which will not be described again here.
  • current home equipment includes a hardware capability virtualization module.
  • the current home equipment also includes a control module, and the hardware capability virtualization module can communicate with the control module. That is, after the hardware capability virtualization module of the current home device receives the hardware capability call request sent by the target home device, it determines the callback function corresponding to the second hardware capability based on the function pointer of the callback function corresponding to the second hardware capability. Then, based on the parameters required by the callback function corresponding to the second hardware capability, the control module of the current home device calls the callback function corresponding to the second hardware capability to control the current home device to perform corresponding actions.
  • control methods for home equipment can also be applied to home equipment linkage scenarios.
  • a hardware capability call request is sent to the dryer before the washing machine finishes washing, so that the dryer can turn on the dryer in advance for preheating.
  • the smoke machine can automatically adjust the power of the smoke machine based on the temperature, firepower and other information of the stove.
  • the hardware capability information database includes hardware capability description information of multiple home devices
  • the current home device can send hardware to the target home device. Capability call request.
  • the target home device can determine the callback function corresponding to the first hardware capability based on the function pointer carried by the hardware capability call request, and then call the callback function corresponding to the first hardware capability based on the parameters required by the callback function.
  • the callback function is used to perform the corresponding action through the first hardware capability, thereby fully utilizing the first hardware capability of the target home device.
  • home devices located in the same WLAN can interact directly with each other, thus improving the communication speed of home devices.
  • home devices located in different WLANs can also interact with each other through the server. In this way, the application scope of the home device control method provided by some embodiments of the present application can be further expanded.
  • the home device can be implemented by software, hardware, or a combination of the two to become part or all of the current home devices.
  • the device includes:
  • Processor configured as:
  • the target home device Based on the hardware capability information database stored in the current home device, the target home device is determined.
  • the target home device refers to the home device that has the first hardware capability in addition to the current home device.
  • the first hardware capability refers to the hardware capability to be called by the current home device.
  • the hardware capability information base includes description information of multiple hardware capabilities.
  • the description information includes the function pointer and parameter indication information of the callback function corresponding to the corresponding hardware capability.
  • the parameter indication information is used to indicate the parameters required by the callback function. Multiple hardware capabilities belong to multiple home devices, and the multiple hardware capabilities include the first hardware capability.
  • the parameters required by the callback function corresponding to the first hardware capability are determined.
  • the hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability.
  • the hardware capability call request is used to instruct the target home device to call the first hardware capability corresponding to
  • the callback function is used to perform the corresponding action through the first hardware capability.
  • the processor is further configured to:
  • the local hardware capability information library includes a description of the hardware capabilities that have succeeded in self-test. information; obtain the hardware capability information database stored by other home devices that have performed hardware capability self-test; update the local hardware capability information database based on the hardware capability information database stored by other home devices to obtain the hardware capability information stored by the current home device Library.
  • the processor is further configured to:
  • the output voltage of the hardware module used to provide the any hardware capability is collected; when the output voltage exceeds the voltage threshold, it is determined that the self-test of any hardware capability is successful; When the output voltage is lower than the voltage threshold, it is determined that any hardware capability self-test has failed.
  • the processor is further configured to:
  • the processor is further configured to:
  • the processor is further configured to:
  • the processor is further configured to:
  • the candidate home device Based on the hardware capability information database stored in the current home device, determine the candidate home device with the first hardware capability; determine the location information of the current home device; determine the location information of each home device in the candidate home device; based on the location information of the current home device and the location information of the candidate home devices, and selects the home device closest to the current home device from the candidate home devices as the target home device.
  • the processor is further configured to:
  • the candidate home device Based on the hardware capability information database stored in the current home device, determine the candidate home device with the first hardware capability; determine the location information of the user, who is the user using the current home device; determine the location information of each home device in the candidate home device ; Based on the location information of the user and the location information of the candidate home devices, select the home device closest to the user from the candidate home devices as the target home device.
  • the processor is further configured to:
  • the hardware capability call request sent by the target home device carries the function pointer and required parameters of the callback function corresponding to the second hardware capability.
  • the second hardware capability refers to the function to be called by the target home device.
  • Hardware capability Based on the function pointer and required parameters of the callback function corresponding to the second hardware capability, call the callback function corresponding to the second hardware capability to perform the corresponding action through its own second hardware capability.
  • the hardware capability information database includes hardware capability description information of multiple home devices
  • the current home device can send hardware to the target home device. Capability call request.
  • the target home device can determine the callback function corresponding to the first hardware capability based on the function pointer carried by the hardware capability call request, and then call the callback function corresponding to the first hardware capability based on the parameters required by the callback function.
  • the callback function is used to perform the corresponding action through the first hardware capability, thereby fully utilizing the first hardware capability of the target home device.
  • home devices located in the same WLAN can interact directly with each other, thus improving the communication speed of home devices.
  • home devices located in different WLANs can also interact with each other through the server. In this way, the application scope of the home device control method provided by some embodiments of the present application can be further expanded.
  • control device for home equipment provided in the above embodiments and the control method embodiment for home equipment belong to the same concept. Please refer to the method embodiment for details of the specific implementation process, which will not be described again here.
  • the home equipment can further realize other functions.
  • the following is a scenario about the linkage between the oven and the refrigerator. After the oven and the refrigerator are connected through the above control method, the oven can further realize intelligent cooking, as follows:
  • the oven device includes: a baking pan, the baking pan includes a plurality of partitions;
  • a plurality of heating tubes are arranged above the baking pan, and different heating tubes correspond to different partitions of the baking pan; a circuit control board is connected to the heating tubes so that the different heating tubes can respond to food in different partitions. Carry out cooking; the memory is communicatively connected with the circuit control board and is used to store a computer program.
  • the computer program is used to cause the computer to execute any of the following intelligent cooking methods of oven equipment.
  • FIG. 6 is a schematic diagram of the layout of heating tubes inside an oven device provided in some embodiments of the present application.
  • the layout of the heating tubes inside the oven device is as shown in Figure 6.
  • the oven device includes a top heating tube and a back heating tube.
  • the bottom heating tube when cooking different ingredients at the same time, in order to ensure that different ingredients in different partitions are heated at different temperatures, only the top heating tube is controlled through the circuit control board for heating, and the bottom heating tube and back heating tube are not heated; If ingredients with a long cooking time, such as meat, are placed on the grill pan area close to the back heating tube, the top heating tube and back heating tube corresponding to the area can be controlled through the circuit control board to cook the meat at the same time. ; If the same food is placed in each zone on the baking pan, the bottom heating tube can be controlled by the circuit control board to cook the food.
  • FIG 7 is a schematic structural diagram of a heating tube provided by some embodiments of the present application.
  • the structure of the top heating tube of the oven is shown in Figure 7.
  • the top heating tube includes a quartz shell, a heating wire, two connection terminals and an insulating protective sleeve; wherein, The heating wire is arranged inside the quartz shell; the two connection terminals are respectively fixed at both ends of the quartz shell and connected to the heating wire in the quartz shell; the two connection terminals are located in the insulating protective sleeve.
  • a quartz shell and a metal resistor are used as heating wires to form a heating tube. Since the quartz tube does not require far-infrared coating, it has good spectral radiation matching and absorption characteristics, and its radiation performance does not degrade after long-term use. It has high conversion efficiency between electrical energy and thermal energy, and is more energy-saving than ordinary metal heating tubes. For cooking different ingredients at the same time, Different heating temperatures are required. The working temperature of the quartz shell is high and the wide range of options can solve the above problems. The quartz shell heats up quickly, which can shorten the cooking time to a certain extent. Moreover, the quartz shell is also resistant to high temperatures and is better than ordinary ones. The metal heating tube is corrosion-resistant, has stable thermochemical properties, has high insulation strength and is pollution-free. It is a clean heater.
  • the heating wire is arranged in a spring shape, so that the heating wire can withstand pressure, is not easily deformed due to heat in the quartz shell, and is easy to install.
  • the quartz shell is a cylinder, and the cross-sectional area is slightly larger than the cross-sectional area of the spring-shaped heating wire.
  • the length of the quartz shell is set to 380mm, the length of the entire heating tube is 435mm, and the 950mm heating wire is bent into a spring-shaped heating wire as shown in Figure 7.
  • the connection terminal is conductive, in order to prevent the risk of electric shock caused by accidental touching, or the short circuit between the lines caused by the loose connection between the heating wire and the connection terminal, the connection terminal is placed in an insulating protective sleeve.
  • the material may be silica gel or other insulating materials, which are not specifically limited in some embodiments of this application.
  • Figure 8 is a schematic diagram of a parallel structure of heating tubes provided by some embodiments of the present application.
  • Figure 8 is a schematic diagram of a parallel structure of top heating tubes.
  • One end of any heating tube is connected to a relay, and the other end is connected to any one of the heating tubes. Adjacent to the heating tube, the other end of the relay is connected to the circuit control board. Since the heating tubes on the top are connected in parallel, any one heating tube can be individually controlled for heating through the circuit control board, so that any one heating tube can heat the food in any section of the baking pan.
  • FIG 9 is a schematic diagram of an application scenario of an intelligent cooking method provided by some embodiments of the present application.
  • the application scenario includes: an oven device 1101 and a refrigerator 1102, where the oven device 1101 can communicate with the refrigerator 1102 through a wireless module Communication is carried out (the oven device 1101 queries the food material category in the refrigerator 1102, and the refrigerator 1102 sends the food material category to the oven device 1101).
  • a wireless module Communication is carried out (the oven device 1101 queries the food material category in the refrigerator 1102, and the refrigerator 1102 sends the food material category to the oven device 1101).
  • FIG 10 is a schematic diagram of an application scenario of another intelligent cooking method provided by some embodiments of the present application. Some embodiments of the present application also provide an application scenario of another intelligent cooking method.
  • this application scenario includes an oven.
  • the cloud server 1201 queries the food category in the refrigerator 1102, the refrigerator 1102 sends the food category to the cloud server 1201, and the cloud server 1201 feeds back the query result to the oven device 1101).
  • FIG 11 is a schematic diagram of an application scenario of another intelligent cooking method provided by some embodiments of the present application. Some embodiments of the present application also provide an application scenario of another intelligent cooking method. As shown in Figure 11, this application scenario includes an oven. Device 1101, refrigerator 1102, cloud server 1201 and mobile terminal 1301. The communication between the oven device 1101, the refrigerator 1102 and the cloud server 1201 is as in the above embodiment, which will not be repeated here. The mobile terminal 1301 can communicate with the oven through the cloud server 1201. Device 1101 and refrigerator 1102 communicate, and the "dashed line" indicates an indirect connection. Mobile terminals include but are not limited to mobile phones, tablets, etc.
  • Figure 12 is a schematic flow chart of an intelligent cooking method provided by some embodiments of the present application. Some embodiments of the present application provide an intelligent cooking method, as shown in Figure 12, applied to the above-mentioned oven equipment. The method includes:
  • S501 In response to the ingredient category identification instruction, photograph the ingredients placed in different sections of the baking pan, and determine the categories of the ingredients in each section based on the captured images. Different sections of the baking pan correspond to different heating tubes. The heating pipes are arranged above the corresponding partitions.
  • the baking pan is partitioned.
  • the heating tube is arranged above the baking tray.
  • the materials between the partitions of the baking tray can also be separated. Material set to insulate.
  • Figure 13 is a schematic diagram of a two-partition baking pan provided by some embodiments of the present application.
  • Figure 13 is a schematic diagram of a two-partition baking pan provided by some embodiments of the present application.
  • the baking pan Can be set to 2 partitions: Partition 1 and Partition 2.
  • FIG 14 is a schematic diagram of a 2-zone heating tube layout provided by some embodiments of the present application.
  • Insulating materials can be set up.
  • the layout of the heating tubes corresponding to each partitioned baking pan is shown in Figure 14.
  • Each heating tube is arranged on the top of the oven equipment. Among them, the heating tube 1 and the heating tube 2 form an inner ring heating tube, which is located in the oven.
  • the plate partition 1 it is used to cook the ingredients in partition 1; the heating tube 2 and the heating tube 3 form the grilling middle ring heating tube, and the heating tube 3 and the heating tube 4 form the grilling outer ring heating tube, which is located in the baking pan partition 2 above are used to cook the ingredients in partition 2; the baking pan can also be divided into 4 partitions, and each heating tube corresponds to a partition. In some embodiments of the present application, there is no heating relationship between each heating tube and each partition. Make specific limitations.
  • the rated power of each heating tube can be the same or different.
  • the rated power of heating tube 1 and heating tube 4 is set to 1000W
  • the rated power of heating tube 2 and heating tube 3 is set to 500W.
  • partition 1 is set As an area for cooking vegetables
  • Zone 2 is set as an area for cooking meat
  • the rated power of the heating tube corresponding to Zone 1 can be slightly lower than the rated power of the heating tube corresponding to Zone 2.
  • the food category corresponding to each zone is not After setting, the rated power of each heating tube can be set to be the same.
  • the value of the power of each heating tube is not specifically limited here.
  • FIG 15 is a schematic diagram of a 5-section baking pan provided by some embodiments of the present application.
  • the baking pan can also include five partitions, such as partition 1, partition 2, partition 3, partition 4 and partition 5 as shown in Figure 15, and can be set between each partition.
  • the shape of the baking pan and the shape of each partition can be set to be circular or other shapes, and are not specifically limited here.
  • the layout of the baking pan partitions changes, the layout of the heating tubes corresponding to each partition also changes appropriately. It should be noted that regardless of the number of heating tubes and how the heating tubes are laid out, the heating tubes are connected in parallel.
  • the oven device can identify the food category locally; in some embodiments, if in the application scenario as shown in Figure 10, the oven device uploads the captured image to the cloud, And receive the categories of ingredients in each partition recognized by the cloud server based on the captured images; in the application scenario as shown in Figure 11, the cloud server can also send the recognition results to the mobile terminal for the user to confirm. After confirmation, the device on the oven can be remotely controlled to start the cooking process.
  • the mobile terminal communicates with the oven through the cloud server.
  • the oven equipment Before taking pictures of the ingredients placed in different partitions, the oven equipment provided by some embodiments of the present application can also recommend recipes.
  • the specific implementation is as follows:
  • Figure 16 is a schematic flowchart of querying the categories of ingredients in the refrigerator provided by some embodiments of the present application. In some embodiments, before photographing the ingredients placed in different partitions of the baking tray, as shown in Figure 16, it includes:
  • S601 Query the categories of ingredients in the refrigerator and match them with the categories of ingredients in multiple preset recipes;
  • the cloud server queries the category of ingredients in the refrigerator.
  • S602 Display at least one recipe that exactly matches the category of ingredients in the refrigerator on the display interface.
  • Figure 19 is a schematic diagram of another oven equipment display interface provided by some embodiments of the present application.
  • Recipe 1 Tender Grilled Steak is pre-stored locally in the oven.
  • the food categories include: main course: sirloin steak; side dishes Dishes: Broccoli, tomatoes and mushrooms: Recipe 2: Lemon Pork Chop, the ingredients include: Main dish: Pork Chop; Side dish: Lemon and onion.
  • the oven equipment queries the main dish category in the refrigerator including: pork chop, and the side dish categories include: lemon, onion and tomato, which are matched with the ingredient categories in the above-mentioned recipe 1 and recipe 2 respectively, and are determined to completely match the ingredient category in recipe 2. , then Recipe 2 is displayed on the display interface of the oven for the user to select, as shown in Figure 19. If the user does not want to select the recipe, he can click the return button in the upper left corner to reselect the recipe.
  • Figure 17 is a schematic diagram of an oven equipment display interface provided by some embodiments of the present application.
  • the main dish category includes: pork chop and sirloin steak
  • the side dish category includes: onion
  • the matching degree of sirloin steak and onions If it is determined that the matching degree of onions and pork chops is higher, the recipe including pork chops will be displayed on the display interface (as shown in Figure 17), or fed back to the user through the terminal.
  • Figure 18 is a schematic diagram of another recipe matching process provided by some embodiments of the present application.
  • it includes:
  • the oven equipment queries the main dish categories in the refrigerator, including: pork chop, lemon, and tomatoes, and matches them with the ingredient categories in the above-mentioned recipe 1 and recipe 2 respectively. It is determined that onions are missing in recipe 1, and sirloin steak, sirloin, and sirloin are missing in recipe 2. Blue flowers and mushrooms.
  • S702 Display the multiple recipes and corresponding missing ingredient categories on the display interface.
  • the information of each recipe can be fed back to the customer through the mobile terminal, and the customer can select the recipe to be cooked through the mobile terminal and send the selected The recipes are fed back to the oven through the cloud server.
  • recipe recommendations can also be made to users based on the frequency of each recipe selection.
  • Specific implementation methods include:
  • S802 Based on the display order, display at least one recipe that completely matches the category of ingredients in the refrigerator on the interface.
  • the oven device can automatically query all ingredient information in the Hisense refrigerator, and form recommended recipes based on local recipes or cloud server recipes, which are automatically recommended to the user before each meal.
  • recommended recipes based on local recipes or cloud server recipes, which are automatically recommended to the user before each meal.
  • identifying the captured images belongs to the existing technology. Specifically, the image can be segmented first, and then recognized through the food category recognition model. Some embodiments of the present application do not specifically limit the specific food category recognition method.
  • S502 Determine cooking information corresponding to different food material categories.
  • the cooking information includes cooking temperature, cooking time and cooking intervals.
  • Recipes are pre-stored locally in the oven, and the recipes include different ingredient analogies and their corresponding cooking information.
  • the cooking information corresponding to different food ingredient categories can be determined.
  • recipe 1 tender grilled steak, main dish: sirloin steak; side dishes: broccoli, tomatoes and mushrooms, seasoning: black pepper; cooking method: the cooking temperature of sirloin steak is 230 degrees, and the cooking time is 10 minutes. There is no cooking interval.
  • the cooking temperature of broccoli, tomatoes and mushrooms is 150 degrees, and the cooking time is 4 minutes; Recipe 2: lemon pork chop, main dish: pork chop; side dishes: lemon and onion; seasonings: green onions, ginger, Cooking wine and salt; cooking method: the cooking temperature of pork chop is 250 degrees, the cooking time is 10 minutes, stop for 1 minute and then heat at 180 degrees for 3 minutes, the cooking temperature of lemon is 150 degrees, the cooking time is 1 minute, without interruption, The cooking temperature of onions is 150 degrees, and the cooking time is 3 minutes, without interruption.
  • the oven device If the oven device is connected to a cloud server, it needs to receive cooking information corresponding to different food ingredient categories sent by the cloud server.
  • cooking the ingredients in any one partition based on the corresponding cooking information includes:
  • S901 For any partition, determine the cooking information corresponding to the food category placed in any partition from the determined cooking information corresponding to different food material categories.
  • the oven device determines the baking modes of zone 1 and zone 2 based on the cooking information. If the oven device uploads the captured image of the ingredients to the cloud server, the corresponding cooking information is determined through the cloud server, and the baking mode of each partition is determined and then sent to the oven device for implementation.
  • S902 Set the heating temperature of the heating tube in any zone according to the cooking temperature in the cooking information, and set the heating time of the heating tube in any zone according to the cooking time in the cooking information. , and setting the heating interval of the heating tube of any one zone according to the cooking interval in the cooking information.
  • the temperature and time values of the inner ring, middle ring and outer ring heating tubes are controlled respectively. For example, if it is detected that beef is placed on the inner ring, broccoli, mushrooms and tomatoes are placed on the middle and outer rings, the baking mode is as follows:
  • the inner grilling ring stops heating, and the heating temperature of the grilling middle ring reaches 150 degrees for 1 minute;
  • the baking pan in the above embodiment has 2 partitions, so the vegetable ingredients are placed in partition 2. Since broccoli, tomatoes and mushrooms belong to different categories of ingredients, they should be placed in the same partition for cooking, and in partition 2 and partition 1.
  • the oven equipment or cloud server
  • will formulate a comprehensive plan (such as calculating an average temperature) based on the cooking method in the recipe to ensure the optimal doneness of various ingredients. .
  • the oven equipment is also equipped with the ability to monitor the doneness of each ingredient, thereby avoiding a mismatch between the doneness of the ingredients and the doneness corresponding to the cooking time in the cooking information due to errors.
  • the method further includes:
  • the oven device If the oven device is connected to the cloud server, it will take pictures and upload them to the cloud server every 3 seconds.
  • the cloud server will segment the images of the ingredients in each partition, and then perform image recognition respectively to identify the maturity of the ingredients.
  • the user can be reminded through the display interface or speaker of the mobile terminal when the oven is about to burn.
  • this application provides an intelligent cooking method applied to a cloud server.
  • the method includes:
  • S1001 Receive images sent by the oven device, where the images are obtained by the oven device photographing ingredients placed in different sections of the baking pan.
  • S1002 Recognize images of food ingredients in different partitions, determine the categories of food ingredients in each zone, and determine cooking information corresponding to the types of food ingredients in each zone based on the types of food ingredients in each zone.
  • S1003 Send the cooking information to the oven device, so that the oven device cooks the ingredients in any partition based on the cooking information corresponding to the different ingredient categories for any partition; wherein the cooking information Includes cooking temperature, cooking time and cooking intervals.
  • the cooking process of the oven device according to the cooking information is as described in S503 above, which will not be described again here.
  • the intelligent cooking method provided by some embodiments of the present application, it is possible to cook multiple types of ingredients at the same time. There is no need to cook one type of ingredients, take them out, and then cook another type of ingredients, which saves cooking time; intelligently recommend recipes to users. , ensuring the diversity and nutritional balance of recipes; monitoring the doneness of each ingredient for different cooking times in real time to avoid burning the ingredients.
  • the oven device is connected to the cloud server, when the recipes in the cloud service are updated, the local recipes of the oven device are also updated, and the recipes are stored locally on the oven device so that the oven device can realize intelligence even when it is not connected to the cloud server. Cooking; connecting the oven equipment to the mobile terminal can realize remote control of the oven equipment.
  • an intelligent cooking device which includes a memory and a processor, wherein the processor is configured to:
  • the ingredients placed in different sections of the baking pan are photographed, and the categories of the ingredients in each section are determined based on the captured images, where the different sections of the baking pan correspond to different heating tubes, and each heating tube Arranged above the corresponding partition;
  • the food materials in any one partition are cooked based on the cooking information corresponding to the different food material categories.
  • cooking the ingredients in any one partition based on the corresponding cooking information includes:
  • the method further includes:
  • the method before determining the categories of ingredients in each partition based on the captured images, the method further includes:
  • the determination of cooking information corresponding to different food ingredient categories includes:
  • Some embodiments of the present application also provide a cloud server, where the server includes a memory and a processor, and the processor is configured to:
  • the cooking information is sent to the oven device, so that the oven device cooks the ingredients in any partition based on the cooking information corresponding to the different ingredient categories for any partition; wherein the cooking information includes cooking Temperature, cooking time and cooking intervals.

Abstract

A home device control method, a home device, and a smart cooking method. The control method comprises: determining a target home device on the basis of a hardware capability information library which is stored in the current home device (S301); on the basis of parameter indication information of a callback function corresponding to a first hardware capability, determining parameters required by the callback function corresponding to the first hardware capability (S302); and sending a hardware capability calling request to the target home device (S303). A hardware capability information library comprises hardware capability description information of a plurality of home devices, so that when the current home device needs to call a first hardware capability, the current home device may send a hardware capability calling request to a target home device.

Description

家居设备的控制方法、家居设备及智能烹饪方法Control method of home equipment, home equipment and smart cooking method
相关申请的交叉引用Cross-references to related applications
本申请要求于2022年4月27日提交的、申请号为202210457638.2;于2022年4月24日提交的、申请号为202210456488.3的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese patent applications with application number 202210457638.2, submitted on April 27, 2022; and application number 202210456488.3, submitted on April 24, 2022, the entire contents of which are incorporated into this application by reference. .
技术领域Technical field
本申请涉及智能家居技术领域,具体而言,涉及一种家居设备的控制方法、家居设备及智能烹饪方法。This application relates to the field of smart home technology, specifically, to a control method for home equipment, home equipment and an intelligent cooking method.
背景技术Background technique
随着家居设备智能化的发展,家居设备可以连接至网络中,并通过网络与其他设备进行通信。例如,可以通过网络连接烤箱和冰箱,根据冰箱中的食物类型,规划食物放在烤箱的不同功能分区进行蒸烤。由于不同的家居设备可能具备不同的功能,如果合理地控制家居设备,则可以充分利用各个家居设备的功能。With the development of smart home devices, home devices can be connected to the network and communicate with other devices through the network. For example, an oven and a refrigerator can be connected through the network, and according to the type of food in the refrigerator, the food can be placed in different functional zones of the oven for steaming and baking. Since different home devices may have different functions, if the home devices are properly controlled, the functions of each home device can be fully utilized.
发明内容Contents of the invention
本申请一些实施例提供一种家居设备的控制方法,所述方法包括:基于当前家居设备存储的硬件能力信息库,确定目标家居设备,所述目标家居设备是指除所述当前家居设备之外具备第一硬件能力的家居设备,所述第一硬件能力是指所述当前家居设备待调用的硬件能力;其中,所述硬件能力信息库包括多个硬件能力的描述信息,所述描述信息包括相应硬件能力对应的回调函数的函数指针和参数指示信息,所述参数指示信息用于指示所述回调函数所需的参数,所述多个硬件能力归属于多个家居设备,所述多个硬件能力包括所述第一硬件能力;基于所述第一硬件能力对应的回调函数的参数指示信息,确定所述第一硬件能力对应的回调函数所需的参数;向所述目标家居设备发送硬件能力调用请求,所述硬件能力调用请求携带所述第一硬件能力对应的回调函数的函数指针和所需的参数,所述硬件能力调用请求用于指示所述目标家居设备调用所述第一硬件能力对应的回调函数,以通过所述第一硬件能力来执行对应的动作。Some embodiments of the present application provide a method for controlling home equipment. The method includes: determining a target home equipment based on a hardware capability information library stored in the current home equipment. The target home equipment refers to a device other than the current home equipment. A home device with a first hardware capability, the first hardware capability refers to the hardware capability to be called by the current home device; wherein the hardware capability information library includes description information of multiple hardware capabilities, and the description information includes The function pointer and parameter indication information of the callback function corresponding to the corresponding hardware capability. The parameter indication information is used to indicate the parameters required by the callback function. The multiple hardware capabilities belong to multiple home devices. The multiple hardware The capability includes the first hardware capability; based on the parameter indication information of the callback function corresponding to the first hardware capability, determine the parameters required by the callback function corresponding to the first hardware capability; send the hardware capability to the target home device A call request. The hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability. The hardware capability call request is used to instruct the target home device to call the first hardware capability. The corresponding callback function is used to perform the corresponding action through the first hardware capability.
本申请一些实施例提供一种家居设备,所述家居设备包括:存储器,被配置为存储软件程序;处理器,被配置为:基于当前家居设备存储的硬件能力信息库,确定目标家居设备,目标家居设备是指除当前家居设备之外具备第一硬件能力的家居设备,第一硬件能力是指当前家居设备待调用的硬件能力,其中,硬件能力信息库包括多个硬件能力的描述信息,该描述信息包括相应硬件能力对应的回调函数的函数指针和参数指示信息,该参数指示信息用于指示回调函数所需的参数,该多个硬件能力归属于多个家居设备,该多个硬件能力包括第一硬件能力。基于第一硬件能力对应的回调函数的参数指示信息,确定第一硬件能力对应的回调函数所需的参数。向目标家居设备发送硬件能力调用请求,该硬件能力调用请求携带第一硬件能力对应的回调函数的函数指针和所需的参数,该硬件能力调用请求用于指示目标家居设备调用第一硬件能力对应的回调函数,以通过第一硬件能力来执 行对应的动作。Some embodiments of the present application provide a home device. The home device includes: a memory configured to store a software program; a processor configured to: determine the target home device based on the hardware capability information library stored by the current home device. Home equipment refers to home equipment that has the first hardware capability in addition to the current home device. The first hardware capability refers to the hardware capability to be called by the current home device. The hardware capability information base includes description information of multiple hardware capabilities. The description information includes the function pointer and parameter indication information of the callback function corresponding to the corresponding hardware capability. The parameter indication information is used to indicate the parameters required by the callback function. The multiple hardware capabilities belong to multiple home devices. The multiple hardware capabilities include First hardware capability. Based on the parameter indication information of the callback function corresponding to the first hardware capability, the parameters required by the callback function corresponding to the first hardware capability are determined. Send a hardware capability call request to the target home device. The hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability. The hardware capability call request is used to instruct the target home device to call the first hardware capability corresponding to The callback function is used to perform the corresponding action through the first hardware capability.
本申请一些实施例提供一种智能烹饪方法,所述方法包括:响应于食材类别识别指令,对放置在烤盘不同分区的食材进行拍摄,并基于拍摄得到的图像确定各分区食材的类别,其中,所述烤盘的不同分区对应不同的加热管,各加热管布置在对应的分区上方;确定不同食材类别对应的烹饪信息,所述烹饪信息包括烹饪温度、烹饪时间和烹饪间歇;针对任意一个分区,基于所述不同食材类别对应的所述烹饪信息,对所述任意一个分区的食材进行烹饪。Some embodiments of the present application provide an intelligent cooking method. The method includes: responding to an ingredient category identification instruction, photographing ingredients placed in different sections of the baking pan, and determining the categories of ingredients in each section based on the captured images, wherein , Different partitions of the baking pan correspond to different heating tubes, and each heating tube is arranged above the corresponding partition; determine the cooking information corresponding to different food categories, and the cooking information includes cooking temperature, cooking time and cooking interval; for any one Partitioning, based on the cooking information corresponding to the different food categories, cooks the ingredients in any one of the partitions.
附图说明Description of the drawings
图1为是本申请一些实施例提供的一种家居设备的结构框图;Figure 1 is a structural block diagram of a household device provided by some embodiments of the present application;
图2是本申请一些实施例提供的一种服务器的结构示意图;Figure 2 is a schematic structural diagram of a server provided by some embodiments of the present application;
图3是本申请一些实施例提供的一种系统架构的示意图;Figure 3 is a schematic diagram of a system architecture provided by some embodiments of the present application;
图4是本申请一些实施例提供的另一种系统架构的示意图;Figure 4 is a schematic diagram of another system architecture provided by some embodiments of the present application;
图5是本申请一些实施例提供的一种家居设备的控制方法的流程图;Figure 5 is a flow chart of a control method for home equipment provided by some embodiments of the present application;
图6是本申请一些实施例提供的一种烤箱设备内部加热管布局示意图;Figure 6 is a schematic diagram of the layout of heating tubes inside an oven device provided by some embodiments of the present application;
图7是本申请一些实施例提供的一种加热管结构示意图;Figure 7 is a schematic structural diagram of a heating tube provided by some embodiments of the present application;
图8是本申请一些实施例提供的一种加热管并联结构示意图;Figure 8 is a schematic diagram of a parallel structure of heating tubes provided by some embodiments of the present application;
图9是本申请一些实施例提供的一种智能烹饪方法的应用场景示意图;Figure 9 is a schematic diagram of an application scenario of an intelligent cooking method provided by some embodiments of the present application;
图10是本申请一些实施例提供的另一种智能烹饪方法应用场景示意图;Figure 10 is a schematic diagram of another application scenario of an intelligent cooking method provided by some embodiments of the present application;
图11是本申请一些实施例提供的另一种智能烹饪方法应用场景示意图;Figure 11 is a schematic diagram of another application scenario of an intelligent cooking method provided by some embodiments of the present application;
图12是本申请一些实施例提供的一种智能烹饪方法流程示意图;Figure 12 is a schematic flow chart of an intelligent cooking method provided by some embodiments of the present application;
图13是本申请一些实施例提供的一种2分区的烤盘示意图;Figure 13 is a schematic diagram of a two-partition baking pan provided by some embodiments of the present application;
图14是本申请一些实施例提供的一种2分区的加热管布局示意图;Figure 14 is a schematic diagram of a 2-zone heating tube layout provided by some embodiments of the present application;
图15是本申请一些实施例提供的一种5分区的烤盘示意图;Figure 15 is a schematic diagram of a five-partition baking pan provided by some embodiments of the present application;
图16是本申请一些实施例提供的一种查询冰箱中食材类别流程示意图;Figure 16 is a schematic flowchart of querying the categories of ingredients in the refrigerator provided by some embodiments of the present application;
图17是本申请一些实施例提供的一种烤箱设备显示界面示意图;Figure 17 is a schematic diagram of an oven equipment display interface provided by some embodiments of the present application;
图18是本申请一些实施例提供的另一种菜谱匹配流程示意图;Figure 18 is a schematic diagram of another recipe matching process provided by some embodiments of the present application;
图19是本申请一些实施例提供的另一种烤箱设备显示界面示意图。Figure 19 is a schematic diagram of another oven equipment display interface provided by some embodiments of the present application.
具体实施方式Detailed ways
为使本申请的目的、实施方式和优点更加清楚,下面将结合本申请示例性实施例中的附图,对本申请示例性实施方式进行清楚、完整地描述,显然,所描述的示例性实施例仅是本申请一部分实施例,而不是全部的实施例。In order to make the purpose, implementation and advantages of the present application clearer, the exemplary embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments These are only some of the embodiments of this application, not all of them.
基于本申请描述的示例性实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请所附权利要求保护的范围。此外,虽然本申请中公开内容按照示范性一个或几个实例来介绍,但应理解,可以就这些公开内容的各个方面也可以单独构成一个完整实施方式。需要说明的是,本申请中对于术语的简要说明,仅是为了方便理解接下来描述的实施方式,而不是意图限定本申请的实施方式。除非另有说明,这些术语应当按照其普通和通常的含义理解。Based on the exemplary embodiments described in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of the claims appended to this application. In addition, although the disclosure in this application is introduced in terms of one or several exemplary examples, it should be understood that each aspect of these disclosures can also individually constitute a complete embodiment. It should be noted that the brief description of terms in this application is only to facilitate understanding of the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood according to their ordinary and usual meaning.
本申请一些实施例中,“超过”可以理解为大于,也可以理解为大于或等于。在“超过”理解为大于的情况下,“低于”可以理解为小于或等于。在“超过”理解为大于或等于的情况下,“低于”可以理解为小于。后续涉及的“超过”和“低于”都可以参考该解释。In some embodiments of this application, "more than" can be understood as greater than, or greater than or equal to. When "more than" is understood to mean greater than, "less than" can be understood to mean less than or equal to. Where "more than" is understood to mean greater than or equal to, "less than" can be understood to mean less than. This explanation can be used for reference to "more than" and "less than" later.
图1为是本申请一些实施例提供的一种家居设备的结构框图。参考图1,家居设备可以是任何一种可以连接至网络中的电子产品,比如:烤箱、冰箱、洗衣机、空调、电视。通常,家居设备100包括有:处理器101和存储器102。Figure 1 is a structural block diagram of a household device provided by some embodiments of the present application. Referring to Figure 1, home equipment can be any electronic product that can be connected to the network, such as ovens, refrigerators, washing machines, air conditioners, and televisions. Generally, the home device 100 includes: a processor 101 and a memory 102.
处理器101可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器101可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器101也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。The processor 101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 101 can adopt at least one hardware form among DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), and PLA (Programmable Logic Array, programmable logic array). accomplish. The processor 101 may also include a main processor and a co-processor. The main processor is a processor used to process data in the wake-up state, also called CPU (Central Processing Unit, central processing unit); the co-processor is A low-power processor used to process data in standby mode.
在一些实施例中,处理器101可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器101还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。In some embodiments, the processor 101 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is responsible for rendering and drawing content that needs to be displayed on the display screen. In some embodiments, the processor 101 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process computing operations related to machine learning.
在一些实施例中,处理器被配置为装有操作系统,将操作系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),安卓运行时(Android runtime)和系统库层(简称“系统运行库层”),以及内核层。其中,应用程序框架层包括管理器(Managers),内容提供者(Content Provider)等。In some embodiments, the processor is configured to install an operating system, and the operating system is divided into four layers, from top to bottom: Applications layer (referred to as "Application layer"), Application Framework (Application Framework) ) layer (referred to as "framework layer"), Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and kernel layer. Among them, the application framework layer includes managers (Managers), content providers (Content Provider), etc.
其中,管理器包括以下模块中的至少一个:活动管理器(Activity Manager)用与和系统中正在运行的所有活动进行交互;位置管理器(Location Manager)用于给系统服务或应用提供了系统位置服务的访问;文件包管理器(Package Manager)用于检索当前安装在设备上的应用程序包相关的各种信息;通知管理器(Notification Manager)用于控制通知消息的显示和清除;窗口管理器(Window Manager)用于管理用户界面上的图标、窗口、工具栏、壁纸和桌面部件。Among them, the manager includes at least one of the following modules: Activity Manager (Activity Manager) is used to interact with all activities running in the system; Location Manager (Location Manager) is used to provide system locations for system services or applications. Access to services; Package Manager is used to retrieve various information related to application packages currently installed on the device; Notification Manager is used to control the display and clearing of notification messages; Window Manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers and desktop components on the user interface.
系统运行库层为上层即框架层提供支撑,当框架层被使用时,安卓操作系统会运行系统运行库层中包含的C/C++库以实现框架层要实现的功能。The system runtime layer provides support for the upper layer, the framework layer. When the framework layer is used, the Android operating system will run the C/C++ library included in the system runtime layer to implement the functions to be implemented by the framework layer.
内核层至少包含以下驱动中的至少一种:音频驱动、显示驱动、蓝牙驱动、摄像头驱动、WIFI驱动、USB驱动、HDMI驱动、传感器驱动(如指纹传感器,温度传感器,压力传感器等)、以及电源驱动等。The kernel layer contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply Driver etc.
存储器102可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器102还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器102中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器101所执行以实现本申请中方法实施例提供的家居设备的控制方法。 Memory 102 may include one or more computer-readable storage media, which may be non-transitory. Memory 102 may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 102 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 101 to implement the home device provided by the method embodiment in this application. control method.
在一些实施例中,家居设备100还可包括有:外围设备接口103和至少一个外围设备。处理器101、存储器102和外围设备接口103之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口103相连。具体地,外围图设备包括: 射频电路104、显示屏105、摄像头组件106、音频电路107、定位组件108和电源109中的至少一种。In some embodiments, the home device 100 may further include: a peripheral device interface 103 and at least one peripheral device. The processor 101, the memory 102 and the peripheral device interface 103 may be connected through a bus or a signal line. Each peripheral device can be connected to the peripheral device interface 103 through a bus, a signal line or a circuit board. Specifically, the peripheral graphics device includes: at least one of a radio frequency circuit 104, a display screen 105, a camera component 106, an audio circuit 107, a positioning component 108 and a power supply 109.
外围设备接口103可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器101和存储器102。在一些实施例中,处理器101、存储器102和外围设备接口103被集成在同一芯片或电路板上;在一些其他实施例中,处理器101、存储器102和外围设备接口103中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。The peripheral device interface 103 may be used to connect at least one I/O (Input/Output) related peripheral device to the processor 101 and the memory 102 . In some embodiments, the processor 101, the memory 102 and the peripheral device interface 103 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 101, the memory 102 and the peripheral device interface 103 or Both of them can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
射频电路104用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路104通过电磁信号与通信网络以及其他通信设备进行通信。射频电路104将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。在一些实施例中,射频电路104包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等。射频电路104可以通过至少一种无线通信协议来与其它家居设备进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路104还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路等。The radio frequency circuit 104 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals. Radio frequency circuit 104 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like. Radio frequency circuitry 104 can communicate with other home devices through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: World Wide Web, metropolitan area network, intranet, mobile communication networks of all generations (2G, 3G, 4G and 5G), wireless LAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network. In some embodiments, the radio frequency circuit 104 may also include NFC (Near Field Communication) related circuits, etc.
显示屏105用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏105是触摸显示屏时,显示屏105还具有采集在显示屏105的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器101进行处理。此时,显示屏105还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏105可以为一个,设置家居设备100的前面板;在另一些实施例中,显示屏105可以为至少两个,分别设置在家居设备100的不同表面或呈折叠设计;在另一些实施例中,显示屏105可以是柔性显示屏,设置在家居设备100的弯曲表面上或折叠面上。甚至,显示屏105还可以设置成非矩形的不规则图形,也即异形屏。显示屏105可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。The display screen 105 is used to display UI (User Interface, user interface). The UI can include graphics, text, icons, videos, and any combination thereof. When display screen 105 is a touch display screen, display screen 105 also has the ability to collect touch signals on or above the surface of display screen 105 . The touch signal can be input to the processor 101 as a control signal for processing. At this time, the display screen 105 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards. In some embodiments, there may be one display screen 105, which is provided on the front panel of the home device 100; in other embodiments, there may be at least two display screens 105, which are respectively provided on different surfaces of the home device 100 or have a folding design. ; In other embodiments, the display screen 105 may be a flexible display screen, disposed on the curved surface or folding surface of the home device 100. Even, the display screen 105 can also be set in a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 105 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
摄像头组件106用于采集图像或视频。在一些实施例中,摄像头组件106包括前置摄像头和后置摄像头。通常,前置摄像头设置在家居设备的前面板,后置摄像头设置在家居设备的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件106还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。The camera assembly 106 is used to capture images or videos. In some embodiments, camera assembly 106 includes a front-facing camera and a rear-facing camera. Usually, the front camera is set on the front panel of the home device, and the rear camera is set on the back of the home device. In some embodiments, there are at least two rear cameras, one of which is a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the integration of the main camera and the depth-of-field camera to realize the background blur function. Integrated with a wide-angle camera to achieve panoramic shooting and VR (Virtual Reality, virtual reality) shooting functions or other integrated shooting functions. In some embodiments, camera assembly 106 may also include a flash. The flash can be a single color temperature flash or a dual color temperature flash. Dual color temperature flash refers to a combination of warm light flash and cold light flash, which can be used for light compensation under different color temperatures.
音频电路107可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器101进行处理,或者输入至射频电路104以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在家居设备100的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器101或射频电路104的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以 将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路107还可以包括耳机插孔。 Audio circuitry 107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 101 for processing, or input to the radio frequency circuit 104 to implement voice communication. For the purpose of stereo collection or noise reduction, there can be multiple microphones, which are respectively arranged at different parts of the home device 100 . The microphone can also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 101 or the radio frequency circuit 104 into sound waves. The loudspeaker can be a traditional membrane loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves that are audible to humans, but also convert electrical signals into sound waves that are inaudible to humans for purposes such as ranging. In some embodiments, audio circuitry 107 may also include a headphone jack.
定位组件108用于定位家居设备100的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件108可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。The positioning component 108 is used to locate the current geographical location of the home device 100 to implement navigation or LBS (Location Based Service). The positioning component 108 may be a positioning component based on the United States' GPS (Global Positioning System), China's Beidou system, or Russia's Galileo system.
电源109用于为家居设备100中的各个组件进行供电。电源109可以是交流电、直流电、一次性电池或可充电电池。当电源109包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。The power supply 109 is used to power various components in the home device 100 . The power source 109 may be AC, DC, disposable batteries, or rechargeable batteries. When the power source 109 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. Wired rechargeable batteries are batteries that are charged through wired lines, and wireless rechargeable batteries are batteries that are charged through wireless coils. The rechargeable battery can also be used to support fast charging technology.
本领域技术人员可以理解,图1中示出的结构并不构成对家居设备100的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 1 does not limit the home device 100 and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
图2是本申请一些实施例提供的一种服务器的结构示意图,参考图2,服务器200包括中央处理单元(CPU)201、包括随机存取存储器(RAM)202和只读存储器(ROM)203的系统存储器204,以及连接系统存储器204和中央处理单元201的系统总线205。服务器200还包括帮助计算机内的各个器件之间传输信息的基本输入/输出系统(I/O系统)206,和用于存储操作系统213、应用程序214和其他程序模块215的大容量存储设备207。服务器200通过网络接口单元211连接到网络212。Figure 2 is a schematic structural diagram of a server provided by some embodiments of the present application. Referring to Figure 2, the server 200 includes a central processing unit (CPU) 201, a random access memory (RAM) 202 and a read-only memory (ROM) 203. system memory 204, and a system bus 205 connecting the system memory 204 and the central processing unit 201. Server 200 also includes a basic input/output system (I/O system) 206 that facilitates the transfer of information between various devices within the computer, and a mass storage device 207 for storing an operating system 213, application programs 214, and other program modules 215 . Server 200 is connected to network 212 through network interface unit 211.
基本输入/输出系统206包括有用于显示信息的显示器208和用于用户输入信息的诸如鼠标、键盘之类的输入设备209。其中显示器208和输入设备209都通过连接到系统总线205的输入输出控制器210连接到中央处理单元201。基本输入/输出系统206还可以包括输入输出控制器210以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器210还提供输出到显示屏、打印机或其他类型的输出设备。The basic input/output system 206 includes a display 208 for displaying information and input devices 209 such as a mouse and a keyboard for the user to input information. The display 208 and the input device 209 are both connected to the central processing unit 201 through the input and output controller 210 connected to the system bus 205 . Basic input/output system 206 may also include an input/output controller 210 for receiving and processing input from a variety of other devices such as a keyboard, mouse, or electronic stylus. Similarly, input and output controller 210 also provides output to a display screen, printer, or other type of output device.
大容量存储设备207通过连接到系统总线205的大容量存储控制器(未示出)连接到中央处理单元201。大容量存储设备207及其相关联的计算机可读介质为服务器200提供非易失性存储。也就是说,大容量存储设备207可以包括诸如硬盘或者CD-ROM驱动器之类的计算机可读介质(未示出)。 Mass storage device 207 is connected to central processing unit 201 through a mass storage controller (not shown) connected to system bus 205 . Mass storage device 207 and its associated computer-readable media provide non-volatile storage for server 200 . That is, mass storage device 207 may include computer-readable media (not shown) such as a hard disk or a CD-ROM drive.
图3是本申请一些实施例提供的一种系统架构的示意图,请参考图3,该系统包括多个家居设备301(图3中以3个家居设备示意性说明),该多个家居设备301通过无线通信的方式进行交互。在该多个家居设备301中的某个家居设备需要调用第一硬件能力的情况下,将该家居设备作为当前家居设备。然后,当前家居设备基于存储的硬件能力信息库,确定目标家居设备,并基于第一硬件能力对应的回调函数的参数指示信息,确定第一硬件能力对应的回调函数所需的参数,进而向目标家居设备发送硬件能力调用请求。目标家居设备接收到当前家居设备发送的硬件能力调用请求之后,基于第一硬件能力对应的回调函数的函数指针和所需的参数,调用第一硬件能力对应的回调函数,以使目标家居设备执行相应的动作。Figure 3 is a schematic diagram of a system architecture provided by some embodiments of the present application. Please refer to Figure 3. The system includes multiple home devices 301 (3 home devices are schematically illustrated in Figure 3). The multiple home devices 301 Interact via wireless communication. When a certain home device among the plurality of home devices 301 needs to call the first hardware capability, the home device is used as the current home device. Then, the current home device determines the target home device based on the stored hardware capability information library, and determines the parameters required by the callback function corresponding to the first hardware capability based on the parameter indication information of the callback function corresponding to the first hardware capability, and then sends the target home device to the target home device. The home device sends a hardware capability call request. After receiving the hardware capability call request sent by the current home device, the target home device calls the callback function corresponding to the first hardware capability based on the function pointer and required parameters of the callback function corresponding to the first hardware capability, so that the target home device executes corresponding action.
在一些实施例中,当前家居设备和目标家居设备可以接入同一接入点,也即是,当前家居设备和目标家居设备可以位于同一WLAN(Wireless Local Area Networks,无线局域网)中。这样,在当前家居设备向目标家居设备发送硬件能力调用请求的过程中,当前家居设备将该硬件能力调用请求发送给该接入点,该接入点接收到当前家居设备发送的该硬件能力调用请求之后,将该硬件能力调用请求发送给目标家居设备,使得目标家居设备能 够接收到该硬件能力调用请求。当然,其他涉及当前家居设备与目标家居设备之间的交互过程也可以通过该接入点实现。也就是说,连接至同一个接入点的家居设备301相互之间可以直接进行交互,而无需通过服务器进行交互。In some embodiments, the current home device and the target home device can access the same access point, that is, the current home device and the target home device can be in the same WLAN (Wireless Local Area Networks, Wireless LAN). In this way, during the process of the current home device sending the hardware capability invocation request to the target home device, the current home device sends the hardware capability invocation request to the access point, and the access point receives the hardware capability invocation request sent by the current home device. After the request, the hardware capability invocation request is sent to the target home device, so that the target home device can receive the hardware capability invocation request. Of course, other interaction processes involving the current home device and the target home device can also be implemented through this access point. That is to say, home devices 301 connected to the same access point can directly interact with each other without interacting through a server.
在另一些实施例中,当前家居设备和目标家居设备也可以接入不同的接入点,也即是,当前家居设备和目标家居设备也可以位于不同的WLAN中。图4是本申请一些实施例提供的另一种系统架构的示意图,在图4中,该系统包括多个家居设备301和服务器302,该多个家居设备301可以与服务器302进行通信连接。该通信连接可以为有线或者无线连接,本申请一些实施例对此不做限定。In other embodiments, the current home device and the target home device may also access different access points. That is, the current home device and the target home device may also be located in different WLANs. Figure 4 is a schematic diagram of another system architecture provided by some embodiments of the present application. In Figure 4, the system includes multiple home devices 301 and a server 302. The multiple home devices 301 can communicate with the server 302. The communication connection may be a wired or wireless connection, which is not limited in some embodiments of the present application.
在当前家居设备向目标家居设备发送硬件能力调用请求的过程中,当前家居设备将该硬件能力调用请求发送给服务器,服务器接收到当前家居设备发送的该硬件能力调用请求之后,将该硬件能力调用请求发送给目标家居设备,使得目标家居设备能够接收到该硬件能力调用请求。当然,其他涉及当前家居设备与目标家居设备之间的交互过程也可以通过服务器实现。也就是说,连接至不同的接入点的家居设备301相互之间需要通过服务器进行交互,并不能直接进行交互。In the process of the current home device sending a hardware capability invocation request to the target home device, the current home device sends the hardware capability invocation request to the server. After the server receives the hardware capability invocation request sent by the current home device, it calls the hardware capability The request is sent to the target home device so that the target home device can receive the hardware capability calling request. Of course, other interaction processes involving the current home device and the target home device can also be implemented through the server. That is to say, home devices 301 connected to different access points need to interact with each other through the server and cannot interact directly.
其中,家居设备301可以是任何一种可以连接至网络中的电子产品。例如烤箱、冰箱、洗衣机、空调、电视等。Among them, the home device 301 can be any electronic product that can be connected to the network. For example, oven, refrigerator, washing machine, air conditioner, TV, etc.
服务器302可以是一台独立的服务器,也可以是由多台物理服务器组成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN(Content Delivery Network,内容分发网络)、以及大数据和人工智能平台等基础云计算服务的云服务器,或者是一个云计算服务中心。 Server 302 can be an independent server, a server cluster or a distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud services, etc. Cloud servers for basic cloud computing services such as communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms, or a cloud computing service center.
本领域技术人员应能理解上述家居设备301和服务器302仅为举例,其他现有的或今后可能出现的家居设备或服务器如可适用于本申请一些实施例,也应包含在本申请一些实施例保护范围以内,并在此以引用方式包含于此。Persons skilled in the art should understand that the above-mentioned home equipment 301 and server 302 are only examples. Other existing or future home equipment or servers that may be applicable to some embodiments of this application should also be included in some embodiments of this application. protected and are hereby incorporated by reference.
需要说明的是,本申请一些实施例描述的系统架构是为了更加清楚的说明本申请一些实施例的技术方案,并不构成对于本申请一些实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变,本申请一些实施例提供的技术方案对于类似的技术问题,同样适用。It should be noted that the system architecture described in some embodiments of the present application is to more clearly illustrate the technical solutions of some embodiments of the present application, and does not constitute a limitation on the technical solutions provided by some embodiments of the present application. Those of ordinary skill in the art It can be seen that with the evolution of system architecture, the technical solutions provided by some embodiments of this application are also applicable to similar technical problems.
接下来对本申请一些实施例提供的家居设备的控制方法进行详细地解释说明。图5是本申请一些实施例提供的一种家居设备的控制方法的流程图,请参考图5,该方法包括如下步骤。Next, the control methods of home equipment provided by some embodiments of the present application will be explained in detail. Figure 5 is a flow chart of a method for controlling home equipment provided by some embodiments of the present application. Please refer to Figure 5. The method includes the following steps.
步骤S301:当前家居设备基于存储的硬件能力信息库,确定目标家居设备,目标家居设备是指除当前家居设备之外具备第一硬件能力的家居设备,第一硬件能力是指当前家居设备待调用的硬件能力。Step S301: The current home device determines the target home device based on the stored hardware capability information database. The target home device refers to the home device that has the first hardware capability in addition to the current home device. The first hardware capability refers to the current home device to be called. hardware capabilities.
其中,硬件能力信息库包括多个硬件能力的描述信息,该描述信息包括相应硬件能力对应的回调函数的函数指针和参数指示信息,参数指示信息用于指示该回调函数所需的参数,该多个硬件能力归属于多个家居设备,该多个硬件能力包括第一硬件能力。在一些实施例中,该描述信息还可以包括其他的信息。例如,该描述信息包括对应的硬件能力的名称以及对应的硬件能力所属的家居设备的标识。Wherein, the hardware capability information base includes description information of multiple hardware capabilities. The description information includes function pointers and parameter indication information of the callback function corresponding to the corresponding hardware capability. The parameter indication information is used to indicate the parameters required by the callback function. The multiple A hardware capability belongs to multiple home devices, and the multiple hardware capabilities include a first hardware capability. In some embodiments, the description information may also include other information. For example, the description information includes the name of the corresponding hardware capability and the identification of the home device to which the corresponding hardware capability belongs.
在一些实施例中,当前家居设备可以基于存储的硬件能力信息库,确定具备第一硬件 能力的候选家居设备。然后,当前家居设备按照相关的算法分别确定当前家居设备以及候选家居设备的位置信息,进而基于当前家居设备的位置信息以及候选家居设备的位置信息,确定当前家居设备与候选家居设备中每个家居设备之间的距离,将候选家居设备中与当前家居设备之间的距离最小的家居设备确定为目标家居设备。这样,可以从具备第一硬件能力的候选家居设备中选择出目标家居设备。In some embodiments, the current home device can determine a candidate home device with the first hardware capability based on the stored hardware capability information library. Then, the current home device determines the location information of the current home device and the candidate home device respectively according to the relevant algorithm, and then determines each home device in the current home device and the candidate home device based on the location information of the current home device and the candidate home device. The distance between devices, the home device with the smallest distance from the current home device among the candidate home devices is determined as the target home device. In this way, the target home device can be selected from the candidate home devices having the first hardware capability.
基于上文描述,硬件能力信息库中每个硬件能力的描述信息可以包括该硬件能力的名称以及其所属的家居设备的标识,也即是,硬件能力信息库存储有硬件能力的名称与其所属的家居设备的标识之间的对应关系。这样,在当前家居设备需要调用第一硬件能力时,可以基于第一硬件能力的名称,从存储的硬件能力名称与家居设备标识之间的对应关系中,获取具备第一硬件能力的所有家居设备的标识。然后,将获取的这些标识所对应的家居设备确定为候选家居设备。Based on the above description, the description information of each hardware capability in the hardware capability information database may include the name of the hardware capability and the identification of the home device to which it belongs. That is, the hardware capability information database stores the name of the hardware capability and the identification of the home device to which it belongs. Correspondence between identifications of home equipment. In this way, when the current home device needs to call the first hardware capability, based on the name of the first hardware capability, all home devices with the first hardware capability can be obtained from the corresponding relationship between the stored hardware capability name and the home device identification. logo. Then, the home devices corresponding to the acquired identifiers are determined as candidate home devices.
例如,当前家居设备为烤箱,第一硬件能力为扬声器能力。在烤箱需要调用扬声器能力时,烤箱从如下表1所示的硬件能力信息库存储的硬件能力名称与家居设备标识之间的对应关系中,获取所有具备扬声器能力的家居设备的标识。假设,具备扬声器能力的家居设备包括洗衣机以及电视,则将洗衣机以及电视确定为候选家居设备。For example, the current household device is an oven, and the first hardware capability is the speaker capability. When the oven needs to call the speaker capability, the oven obtains the identifiers of all home devices with speaker capabilities from the correspondence between the hardware capability names and home device identifiers stored in the hardware capability information database as shown in Table 1 below. Assume that home devices with speaker capabilities include a washing machine and a television, and then the washing machine and the television are determined as candidate home devices.
表1Table 1
硬件能力名称Hardware capability name 家居设备标识Home equipment identification
烤牛排roast steak 烤箱oven
测量温度measure temperature 空调air conditioner
测量湿度Measure humidity 空调air conditioner
测量二氧化碳含量Measure carbon dioxide levels 空气净化器air purifier
扬声器speaker 洗衣机washing machine
扬声器speaker 电视television
其中,家居设备的标识用于唯一标识家居设备,该标识可以是家居设备的类型、编号、生产厂家、品牌以及型号等,或者通过这些信息进行组合得到。Among them, the identification of the home equipment is used to uniquely identify the home equipment. The identification can be the type, number, manufacturer, brand, model, etc. of the home equipment, or it can be obtained by a combination of these information.
在一些实施例中,当前家居设备包括硬件能力虚拟化模块,当前家居设备可以通过硬件能力虚拟化模块确定候选家居设备。也即是,在当前家居设备需要调用第一硬件能力时,硬件能力虚拟化模块基于第一硬件能力的名称,从存储的硬件能力名称与家居设备标识之间的对应关系中,获取具备第一硬件能力的所有家居设备的标识。然后,将获取的这些标识所对应的家居设备确定为候选家居设备。In some embodiments, the current home device includes a hardware capability virtualization module, and the current home device can determine candidate home devices through the hardware capability virtualization module. That is to say, when the current home device needs to call the first hardware capability, the hardware capability virtualization module obtains the first hardware capability based on the name of the first hardware capability from the corresponding relationship between the stored hardware capability name and the home device identification. Identification of hardware capabilities for all home devices. Then, the home devices corresponding to the acquired identifiers are determined as candidate home devices.
需要说明的是,家居设备具备的硬件能力可以为家居设备的功能,或者,也可以为家居设备的部件所对应的能力。假设,家居设备为烤箱,烤箱的功能为烤牛排,烤箱包括扬声器、定时器以及控温器等部件。此时,烤箱具备的硬件能力包括烤牛排、扬声器能力、定时以及控温等。It should be noted that the hardware capabilities of the home equipment may be functions of the home equipment, or may also be capabilities corresponding to components of the home equipment. Assume that the household device is an oven, and the function of the oven is to grill steak. The oven includes components such as speakers, timers, and temperature controllers. At this time, the hardware capabilities of the oven include grilling steaks, speaker capabilities, timing and temperature control, etc.
以上内容是以硬件能力的描述信息用于描述硬件能力以及硬件能力所属的家居设备为例。当然,在实际应用中,硬件能力的描述信息还可以描述其他的信息,本申请一些实施例对此不做限定。例如,硬件能力的描述信息还可以描述硬件能力的属性,硬件能力的属性用于指示硬件能力的能力范围。假设,硬件能力为扬声器能力,扬声器能力的属性为 扬声器的最小音量以及最大音量。The above content is based on the example where the description information of hardware capabilities is used to describe hardware capabilities and the home devices to which the hardware capabilities belong. Of course, in actual applications, the description information of hardware capabilities can also describe other information, which is not limited in some embodiments of the present application. For example, the description information of the hardware capability may also describe the attributes of the hardware capability, and the attributes of the hardware capability are used to indicate the capability range of the hardware capability. Assume that the hardware capability is the speaker capability, and the attributes of the speaker capability are the minimum volume and maximum volume of the speaker.
在另一些实施例中,当前家居设备还可以按照其他的方式确定目标家居设备。示例地,当前家居设备基于存储的硬件能力信息库,确定具备第一硬件能力的候选家居设备,确定用户的位置信息,该用户为使用当前家居设备的用户,确定候选家居设备中每个家居设备的位置信息,基于该用户的位置信息以及候选家居设备的位置信息,从候选家居设备中选择距离该用户最近的一个家居设备作为目标家居设备。也即是,在用户使用当前家居设备的情况下,当前家居设备按照相关的算法分别确定该用户以及候选家居设备的位置信息。然后,基于该用户的位置信息以及候选家居设备的位置信息,确定该用户与候选家居设备中每个家居设备之间的距离,将候选家居设备中与该用户之间的距离最小的家居设备确定为目标家居设备。这样,在目标家居设备调用第一硬件能力执行相应的动作时,该用户可以通过距离用户最近的目标家居设备获知当前家居设备的工作状态。In other embodiments, the current home device may also determine the target home device in other ways. For example, the current home device determines the candidate home device with the first hardware capability based on the stored hardware capability information library, determines the location information of the user, the user is the user who uses the current home device, and determines each home device in the candidate home device. Based on the location information of the user and the location information of the candidate home devices, the home device closest to the user is selected from the candidate home devices as the target home device. That is, when the user uses the current home device, the current home device determines the location information of the user and the candidate home device respectively according to relevant algorithms. Then, based on the location information of the user and the location information of the candidate home devices, the distance between the user and each of the candidate home devices is determined, and the home device with the smallest distance between the candidate home devices and the user is determined. Target home equipment. In this way, when the target home device calls the first hardware capability to perform a corresponding action, the user can learn the current working status of the home device through the target home device closest to the user.
在一些实施例中,用户可能会随身携带手机、穿戴设备等用户终端,所以,当前家居设备确定用户的位置信息的实现过程包括:当前家居设备向用户终端发送位置信息查询请求,该位置信息查询请求用于查询用户当前时间的位置信息。用户终端接收到当前家居设备发送的位置信息查询请求之后,向当前家居设备发送用户当前时间的位置信息。In some embodiments, users may carry user terminals such as mobile phones and wearable devices with them. Therefore, the implementation process of the current home device to determine the user's location information includes: the current home device sends a location information query request to the user terminal. The location information query The request is used to query the user's location information at the current time. After receiving the location information query request sent by the current home device, the user terminal sends the user's current time location information to the current home device.
以上内容是以具备第一硬件能力的候选家居设备包括至少一个家居设备时,当前家居设备从该至少一个家居设备中选择目标家居设备为例。当然,在实际应用中,具备第一硬件能力的候选家居设备也可能仅包括一个家居设备,此时,当前家居设备直接将该家居设备确定为目标家居设备。The above content takes as an example that when the candidate home device with the first hardware capability includes at least one home device, the current home device selects the target home device from the at least one home device. Of course, in actual applications, the candidate home devices with the first hardware capability may also include only one home device. In this case, the current home device directly determines the home device as the target home device.
在一些实施例中,当前家居设备基于存储的硬件能力信息库,确定目标家居设备之前还需要按照下述步骤S401-S404,确定硬件能力信息库,具体包括:In some embodiments, the current home device is based on the stored hardware capability information library. Before determining the target home device, it is necessary to follow the following steps S401-S404 to determine the hardware capability information library, which specifically includes:
S401当前家居设备对自身具备的硬件能力进行自检,以确定自检成功的硬件能力。S401 The current home device performs self-test on its own hardware capabilities to determine the hardware capabilities that have succeeded in self-test.
当前家居设备对于自身具备的任一硬件能力,对用于提供该任一硬件能力的硬件模块的输出电压进行采集,在该输出电压超过电压阈值的情况下,确定该任一硬件能力自检成功,在该输出电压低于电压阈值的情况下,确定该任一硬件能力自检失败。For any hardware capability that the current home device has, it collects the output voltage of the hardware module used to provide the any hardware capability. When the output voltage exceeds the voltage threshold, it is determined that the self-test of any hardware capability is successful. , when the output voltage is lower than the voltage threshold, it is determined that any hardware capability self-test has failed.
由于硬件模块的电压阈值用于指示硬件模块是否出现故障,所以,如果硬件模块的输出电压超过电压阈值,则表明该硬件模块没有出现故障,该硬件模块可以正常提供硬件能力。此时,硬件能力自检成功。如果硬件模块的输出电压低于电压阈值,则表明该硬件模块出现故障,该硬件模块无法正常提供硬件能力。此时,硬件能力自检失败。Since the voltage threshold of the hardware module is used to indicate whether the hardware module has failed, if the output voltage of the hardware module exceeds the voltage threshold, it indicates that the hardware module has not failed and the hardware module can provide hardware capabilities normally. At this point, the hardware capability self-test is successful. If the output voltage of the hardware module is lower than the voltage threshold, it indicates that the hardware module is faulty and cannot provide hardware capabilities normally. At this time, the hardware capability self-test fails.
在本申请一些实施例中,当前家居设备可以在开机的过程中,对自身具备的硬件能力进行自检,也可以在开机之后,对自身具备的硬件能力进行自检,本申请一些实施例对硬件能力的自检时机不做限定。In some embodiments of the present application, current home devices can perform self-tests on their own hardware capabilities during the process of starting up, or they can perform self-tests on their own hardware capabilities after being turned on. Some embodiments of the present application may There is no limit to the self-test timing of hardware capabilities.
其中,硬件模块的电压阈值是事先设置的。而且,硬件模块的电压阈值还可以按照不同的需求来调整。此外,不同的硬件模块可以对应不同的电压阈值,不同的硬件模块也可以对应相同的电压阈值,本申请一些实施例对此不做限定。Among them, the voltage threshold of the hardware module is set in advance. Moreover, the voltage threshold of the hardware module can also be adjusted according to different needs. In addition, different hardware modules can correspond to different voltage thresholds, and different hardware modules can also correspond to the same voltage threshold. Some embodiments of the present application do not limit this.
当前家居设备按照上述方式对自身具备的硬件能力进行自检为一种示例。在实际应用中,当前家居设备还可以按照其他的方式对自身具备的硬件能力进行自检,本申请一些实施例对此不做限定。As an example, current home devices perform self-tests on their own hardware capabilities in the above manner. In practical applications, current home devices can also perform self-tests on their own hardware capabilities in other ways, which is not limited in some embodiments of the present application.
S402当前家居设备基于自检成功的硬件能力,生成并存储本地硬件能力信息库,本地硬件能力信息库包括自检成功的硬件能力的描述信息。S402 The current home device generates and stores a local hardware capability information base based on the hardware capabilities that have successfully self-tested. The local hardware capability information base includes description information of the hardware capabilities that have successfully self-tested.
当前家居设备为自检成功的每个硬件能力建立一个描述信息,以得到至少一个硬件能力的描述信息。然后,将该至少一个硬件能力的描述信息进行组合,以此来生成本地硬件能力信息库,并将本地硬件能力信息库进行存储。The current home device creates a description information for each hardware capability that has successfully self-tested, so as to obtain the description information of at least one hardware capability. Then, the description information of the at least one hardware capability is combined to generate a local hardware capability information library, and the local hardware capability information library is stored.
在一些实施例中,当前家居设备基于自检成功的硬件能力,生成并存储本地硬件能力信息库时,还可以为自检成功的每个硬件能力设置一个回调函数,并确定每个硬件能力对应的回调函数的函数指针和参数指示信息。这样,在其他家居设备需要调用当前家居设备具备的硬件能力时,当前家居设备可以基于其他家居设备待调用的硬件能力对应的回调函数的函数指针和所需的参数,调用相应的硬件能力对应的回调函数。In some embodiments, when the current home device generates and stores a local hardware capability information base based on the hardware capabilities that have successfully self-tested, a callback function can also be set for each hardware capability that has successfully self-tested, and determines the corresponding The function pointer and parameter indication information of the callback function. In this way, when other home devices need to call the hardware capabilities of the current home device, the current home device can call the corresponding hardware capabilities based on the function pointer and required parameters of the callback function corresponding to the hardware capabilities to be called by other home devices. Callback.
S403当前家居设备获取已进行硬件能力自检的其他家居设备存储的硬件能力信息库。S403 The current home device obtains the hardware capability information database stored by other home devices that have performed hardware capability self-test.
在某个家居设备进行硬件能力自检之后,还需要获取其他已经进行硬件能力自检的家居设备所存储的硬件能力信息库,从而对各个家居设备存储的硬件能力信息库进行同步。但是,在当前家居设备进行硬件能力自检之前,可能存在其他已经进行硬件能力自检的至少一个家居设备。由于该至少一个家居设备中的每个家居设备均已经基于其他家居设备存储的硬件能力信息库,对本地硬件能力信息库进行更新。也即是,该至少一个家居设备中的每个家居设备存储的硬件能力信息库相同。所以,在当前家居设备对自身具备的硬件能力进行自检,并生成本地硬件能力信息库之后,当前家居设备还可以获取已进行硬件能力自检的其他家居设备存储的硬件能力信息库。After a certain home device performs hardware capability self-test, it is also necessary to obtain the hardware capability information library stored in other home devices that have performed hardware capability self-test, so as to synchronize the hardware capability information library stored in each home device. However, before the current home device performs a hardware capability self-test, there may be at least one other home device that has already performed a hardware capability self-test. Since each home device in the at least one home device has updated the local hardware capability information database based on the hardware capability information database stored by other home devices. That is, each home device in the at least one home device stores the same hardware capability information library. Therefore, after the current home device performs self-test of its own hardware capabilities and generates a local hardware capability information library, the current home device can also obtain the hardware capability information library stored by other home devices that have performed hardware capability self-tests.
在一些实施例中,当前家居设备可以广播能力信息查询请求,该能力信息查询请求用于查询其他家居设备存储的硬件能力信息库。当上述至少一个家居设备中的某个家居设备接收到该能力信息查询请求时,向当前家居设备发送查询响应,该查询响应携带其他家居设备存储的硬件能力信息库。当前家居设备接收某个家居设备发送的查询响应,以此来获取已进行硬件能力自检的其他家居设备存储的硬件能力信息库。In some embodiments, the current home device may broadcast a capability information query request, and the capability information query request is used to query hardware capability information libraries stored by other home devices. When a certain home device among the above at least one home device receives the capability information query request, a query response is sent to the current home device, and the query response carries the hardware capability information library stored by other home devices. The current home device receives a query response sent by a certain home device to obtain the hardware capability information library stored by other home devices that have performed hardware capability self-tests.
S404当前家居设备基于其他家居设备存储的硬件能力信息库,对本地硬件能力信息库进行更新,以得到当前家居设备存储的硬件能力信息库。S404 The current home device updates the local hardware capability information database based on the hardware capability information database stored by other home devices to obtain the hardware capability information database stored by the current home device.
当前家居设备获取到其他家居设备存储的硬件能力信息库之后,可以将本地硬件能力信息库包括的硬件能力的描述信息与其他家居设备存储的硬件能力信息库包括的硬件能力的描述信息进行合并,以得到更新后的硬件能力信息库,并将更新后的硬件能力信息库进行存储。此时,当前家居设备存储的硬件能力信息库包括当前家居设备自身具备的硬件能力的描述信息,以及其他家居设备存储的硬件能力信息库原来包括的多个硬件能力的描述信息。After the current home device obtains the hardware capability information library stored by other home devices, it can merge the description information of the hardware capabilities included in the local hardware capability information library with the description information of the hardware capabilities included in the hardware capability information library stored by other home devices. To obtain the updated hardware capability information database, and store the updated hardware capability information database. At this time, the hardware capability information library stored by the current home device includes description information of the hardware capabilities of the current home device itself, as well as description information of multiple hardware capabilities originally included in the hardware capability information library stored by other home devices.
在一些实施例中,当前家居设备基于其他家居设备存储的硬件能力信息库,对本地硬件能力信息库进行更新,以得到当前家居设备存储的硬件能力信息库之后,还可以广播当前家居设备存储的硬件能力信息库,以使其他家居设备对自身存储的硬件能力信息库进行更新。也即是,当前家居设备广播当前家居设备存储的硬件能力信息库,其他家居设备接收到当前家居设备广播的当前家居设备存储的硬件能力信息库之后,基于当前家居设备存储的硬件能力信息库,对自身存储的硬件能力信息库进行更新。由于其他家居设备的硬件能力自检时间均位于当前家居设备的硬件能力自检时间之前,所以,在当前家居设备进行硬件能力自检之前,其他家居设备存储的硬件能力信息库相同。在当前家居设备得到并广播当前家居设备存储的硬件能力信息库之后,其他家居设备可以基于当前家居设备存储的硬件能力信息库,对自身存储的硬件能力信息库进行更新。这样,当前家居设备和其他家 居设备存储的硬件能力信息库相同。In some embodiments, after the current home device updates the local hardware capability information library based on the hardware capability information library stored by other home devices to obtain the hardware capability information library stored by the current home device, it can also broadcast the hardware capability information library stored by the current home device. The hardware capability information database enables other home devices to update their own stored hardware capability information database. That is to say, the current home device broadcasts the hardware capability information library stored by the current home device. After other home devices receive the hardware capability information library stored by the current home device broadcast by the current home device, based on the hardware capability information library stored by the current home device, Update the hardware capability information database stored by itself. Since the hardware capability self-test time of other home devices is before the hardware capability self-test time of the current home device, the hardware capability information database stored by other home devices is the same before the current home device performs hardware capability self-test. After the current home device obtains and broadcasts the hardware capability information database stored by the current home device, other home devices can update their own stored hardware capability information database based on the hardware capability information database stored by the current home device. In this way, the current home device and other home devices store the same hardware capability information database.
在另一些实施例中,当前家居设备还可以获取已进行硬件能力自检的其他家居设备存储的版本标识,该版本标识用于唯一标识其他家居设备存储的硬件能力信息库。这样,在当前家居设备基于其他家居设备存储的硬件能力信息库,对本地硬件能力信息库进行更新,以得到当前家居设备存储的硬件能力信息库之后,还可以对该版本标识进行更新,以得到更新后的版本标识,并在广播当前家居设备存储的硬件能力信息库的同时,广播该更新后的版本标识,该更新后的版本标识用于唯一标识当前家居设备存储的硬件能力信息库。其他家居设备接收到当前家居设备广播的当前家居设备存储的硬件能力信息库和该更新后的版本标识之后,将该更新后的版本标识与自身存储的版本标识进行比较。如果该更新后的版本标识的等级高于自身存储的版本标识,则基于当前家居设备存储的硬件能力信息库,对自身存储的硬件能力信息库进行更新。如果该更新后的版本标识的等级不高于自身存储的版本标识,则不需要基于该更新后的版本标识所对应的当前家居设备存储的硬件能力信息库,对自身存储的硬件能力信息库进行更新。这样可以提高硬件能力信息库的更新准确性。In other embodiments, the current home device can also obtain the version identifier stored by other home devices that have performed hardware capability self-tests. The version identifier is used to uniquely identify the hardware capability information library stored by other home devices. In this way, after the current home device updates the local hardware capability information library based on the hardware capability information library stored by other home devices to obtain the hardware capability information library stored by the current home device, the version identification can also be updated to obtain The updated version identifier is broadcast while broadcasting the hardware capability information library stored in the current home device. The updated version identifier is used to uniquely identify the hardware capability information library stored in the current home device. After other home devices receive the hardware capability information library stored in the current home device and the updated version identifier broadcast by the current home device, they compare the updated version identifier with their own stored version identifiers. If the level of the updated version identifier is higher than the version identifier stored by itself, the hardware capability information library stored by itself is updated based on the hardware capability information library stored by the current home device. If the level of the updated version identifier is not higher than the version identifier stored by itself, there is no need to update the hardware capability information library stored by itself based on the hardware capability information library stored by the current home device corresponding to the updated version identifier. renew. This improves the accuracy of updates to the hardware capability information base.
其中,其他家居设备基于当前家居设备存储的硬件能力信息库,对自身存储的硬件能力信息库进行更新的过程与上述步骤中当前家居设备基于其他家居设备存储的硬件能力信息库,对本地硬件能力信息库进行更新的过程相似,所以,可以参考上述步骤的相关内容,此处不再赘述。Among them, the process of updating the hardware capability information library stored by other home devices based on the hardware capability information library stored by the current home device is the same as the process of updating the hardware capability information library stored by the current home device based on the hardware capability information library stored by other home devices in the above steps. The process of updating the information database is similar, so you can refer to the relevant content of the above steps and will not go into details here.
以上内容是以在当前家居设备之前进行硬件能力自检的其他家居设备接收当前家居设备广播的当前家居设备存储的硬件能力信息库,并对自身存储的硬件能力信息库进行更新为例。当然,在实际应用中,当前家居设备也可以接收在当前家居设备之后进行硬件能力自检的其他家居设备广播的硬件能力信息库,并基于接收到的硬件能力信息库,对当前家居设备存储的硬件能力信息库进行更新。The above content takes as an example that other home devices that perform hardware capability self-test before the current home device receive the hardware capability information library stored by the current home device broadcast by the current home device, and update their own stored hardware capability information library. Of course, in practical applications, the current home device can also receive the hardware capability information library broadcast by other home devices that perform hardware capability self-tests after the current home device, and based on the received hardware capability information library, the current home device stores the hardware capability information library. The hardware capability information base is updated.
步骤S302:当前家居设备基于第一硬件能力对应的回调函数的参数指示信息,确定第一硬件能力对应的回调函数所需的参数。Step S302: The current home device determines the parameters required by the callback function corresponding to the first hardware capability based on the parameter indication information of the callback function corresponding to the first hardware capability.
基于上文描述,由于硬件能力信息库包括相应硬件能力对应的回调函数的参数指示信息。所以,在当前家居设备需要调用第一硬件能力时,当前家居设备可以按照相关的算法将调用第一硬件能力执行相应动作的信息,转化为第一硬件能力对应的回调函数所需的参数。Based on the above description, the hardware capability information base includes parameter indication information of the callback function corresponding to the corresponding hardware capability. Therefore, when the current home device needs to call the first hardware capability, the current home device can convert the information of calling the first hardware capability to perform the corresponding action according to the relevant algorithm into the parameters required by the callback function corresponding to the first hardware capability.
步骤S303:当前家居设备向目标家居设备发送硬件能力调用请求,该硬件能力调用请求携带第一硬件能力对应的回调函数的函数指针和所需的参数,该硬件能力调用请求用于指示目标家居设备调用第一硬件能力对应的回调函数,以通过第一硬件能力来执行对应的动作。Step S303: The current home device sends a hardware capability call request to the target home device. The hardware capability call request carries the function pointer of the callback function corresponding to the first hardware capability and the required parameters. The hardware capability call request is used to instruct the target home device. Call the callback function corresponding to the first hardware capability to perform the corresponding action through the first hardware capability.
在一些实施例中,该硬件能力调用请求还可以携带当前家居设备的标识、第一硬件能力的名称、以及目标家居设备的标识,当然,该硬件能力调用请求还可以携带其他的信息,本申请一些实施例对此不做限定。In some embodiments, the hardware capability invocation request may also carry the identification of the current home device, the name of the first hardware capability, and the identification of the target home device. Of course, the hardware capability invocation request may also carry other information. This application Some embodiments do not limit this.
基于上文描述,当前家居设备和目标家居设备可能接入同一接入点,也可能接入不同的接入点。即,当前家居设和目标家居设备可能位于同一WLAN中,也可能位于不同的WLAN中。在不同的情况下,当前家居设备向目标家居设备发送该硬件能力调用请求的过程不同。Based on the above description, the current home device and the target home device may access the same access point, or they may access different access points. That is, the current home device and the target home device may be located in the same WLAN or may be located in different WLANs. In different situations, the process of the current home device sending the hardware capability calling request to the target home device is different.
在一些实施例中,当前家居设和目标家居设备位于同一WLAN中。此时,当前家居设备将该硬件能力调用请求发送给接入点。接入点接收到当前家居设备发送的该硬件能力调用请求之后,将该硬件能力调用请求发送给目标家居设备。In some embodiments, the current home device and the target home device are in the same WLAN. At this time, the current home device sends the hardware capability calling request to the access point. After receiving the hardware capability invocation request sent by the current home device, the access point sends the hardware capability invocation request to the target home device.
在当前家居设备将该硬件能力调用请求发送给接入点之后,接入点直接将该硬件能力调用请求发送给目标家居设备,并不是先将该硬件能力调用请求发送给服务器,服务器再转发给目标家居设备。即,该硬件能力调用请求是接入点直接发送给目标家居设备的,并不是通过服务器转发给目标家居设备的,所以提高了该硬件能力调用请求的发送效率。After the current home device sends the hardware capability invocation request to the access point, the access point directly sends the hardware capability invocation request to the target home device. It does not first send the hardware capability invocation request to the server, and then the server forwards it to Target home equipment. That is, the hardware capability invocation request is sent directly to the target home device by the access point and is not forwarded to the target home device through the server, so the sending efficiency of the hardware capability invocation request is improved.
在一些实施例中,当前家居设和目标家居设备位于不同的WLAN中。此时,当前家居设备将该硬件能力调用请求发送给服务器。服务器接收到当前家居设备发送的该硬件能力调用请求之后,将该硬件能力调用请求发送给目标家居设备,以此来实现位于不同WLAN中的家居设备相互之间的交互。In some embodiments, the current home device and the target home device are in different WLANs. At this time, the current home device sends the hardware capability calling request to the server. After receiving the hardware capability invocation request sent by the current home device, the server sends the hardware capability invocation request to the target home device, thereby realizing interaction between home devices located in different WLANs.
在一些实施例中,硬件能力信息库还包括该多个家居设备中每个家居设备对应的接入点的SSID(Service Set Identifier,服务集标识)。即,硬件能力信息库存储有硬件能力名称、家居设备标识以及SSID之间的对应关系。这样,当前家居设备从候选家居设备中选择出目标家居设备之后,可以基于目标家居设备的标识,从存储的硬件能力名称、家居设备标识以及SSID之间的对应关系中,获取目标家居设备所对应的SSID。然后,将当前家居设备所对应的SSID与目标家居设备所对应的SSID进行比较,以此来判断当前家居设备与目标家居设备是否位于同一WLAN中。即,如果当前家居设备所对应的SSID与目标家居设备所对应的SSID相同,则表明当前家居设和目标家居设备位于同一WLAN中。如果当前家居设备所对应的SSID与目标家居设备所对应的SSID不相同,则表明当前家居设和目标家居设备位于不同的WLAN中。In some embodiments, the hardware capability information database also includes the SSID (Service Set Identifier, Service Set Identifier) of the access point corresponding to each home device in the plurality of home devices. That is, the hardware capability information database stores the correspondence between hardware capability names, home device identifiers, and SSIDs. In this way, after the current home device selects the target home device from the candidate home devices, it can obtain the target home device corresponding to the target home device based on the stored correspondence between the hardware capability name, the home device identifier, and the SSID. SSID. Then, the SSID corresponding to the current home device is compared with the SSID corresponding to the target home device to determine whether the current home device and the target home device are in the same WLAN. That is, if the SSID corresponding to the current home device is the same as the SSID corresponding to the target home device, it indicates that the current home device and the target home device are in the same WLAN. If the SSID corresponding to the current home device is different from the SSID corresponding to the target home device, it indicates that the current home device and the target home device are in different WLANs.
例如,硬件能力信息库存储的硬件能力名称、家居设备标识以及SSID之间的对应关系如下述表2所示。For example, the correspondence between the hardware capability name, home device identification and SSID stored in the hardware capability information database is as shown in Table 2 below.
表2Table 2
硬件能力名称Hardware capability name 家居设备标识Home equipment identification SSIDSSID
烤牛排roast steak 烤箱oven SSID1SSID1
测量温度measure temperature 空调air conditioner SSID2SSID2
测量湿度Measure humidity 空调air conditioner SSID2SSID2
测量二氧化碳含量Measure carbon dioxide levels 空气净化器air purifier SSID2SSID2
扬声器speaker 洗衣机washing machine SSID1SSID1
扬声器speaker 电视television SSID1SSID1
基于上文描述,当前家居设备包括硬件能力虚拟化模块,目标家居设备也包括硬件能力虚拟化模块,硬件能力虚拟化模块相互之间可以通过通信协议库进行通信。即,当前家居设备的硬件能力虚拟化模块可以通过通信协议库,向目标家居设备的硬件能力虚拟化模块发送硬件能力调用请求。Based on the above description, the current home equipment includes a hardware capability virtualization module, and the target home equipment also includes a hardware capability virtualization module. The hardware capability virtualization modules can communicate with each other through a communication protocol library. That is, the hardware capability virtualization module of the current home device can send a hardware capability invocation request to the hardware capability virtualization module of the target home device through the communication protocol library.
在一些实施例中,当前家居设备的操作系统可能与目标家居设备的操作系统不同。例如,当前家居设备的操作系统为安卓操作系统,目标家居设备的操作系统为Linux操作系统,为了实现不同的操作系统均可以兼容硬件能力虚拟化模块,需要采用C语言、C++语 言以及Java等语言对硬件能力虚拟化模块进行混合编译。In some embodiments, the operating system of the current home device may be different from the operating system of the target home device. For example, the current operating system of home equipment is Android operating system, and the operating system of target home equipment is Linux operating system. In order to realize that different operating systems can be compatible with the hardware capability virtualization module, C language, C++ language, Java and other languages need to be used. Hybrid compilation of hardware capability virtualization modules.
步骤S304:目标家居设备接收当前家居设备发送的该硬件能力调用请求,并基于第一硬件能力对应的回调函数的函数指针和所需的参数,调用第一硬件能力对应的回调函数,以通过第一硬件能力执行相应的动作。Step S304: The target home device receives the hardware capability calling request sent by the current home device, and based on the function pointer and required parameters of the callback function corresponding to the first hardware capability, calls the callback function corresponding to the first hardware capability to pass the first hardware capability. A hardware capability performs the corresponding action.
基于上文描述,该硬件能力调用请求携带第一硬件能力对应的回调函数的函数指针和所需的参数。而且目标家居设备为自身具备的各个硬件能力设置有回调函数,每个回调函数对应一个函数指针。所以,目标家居设备接收到该硬件能力调用请求之后,可以基于第一硬件能力对应的回调函数的函数指针,确定第一硬件能力所对应的回调函数。然后,目标家居设备基于第一硬件能力对应的回调函数所需的参数,调用第一硬件能力对应的回调函数,以使目标家居设备执行相应的动作。Based on the above description, the hardware capability call request carries the function pointer of the callback function corresponding to the first hardware capability and the required parameters. Moreover, the target home device is equipped with callback functions for each hardware capability it possesses, and each callback function corresponds to a function pointer. Therefore, after receiving the hardware capability calling request, the target home device can determine the callback function corresponding to the first hardware capability based on the function pointer of the callback function corresponding to the first hardware capability. Then, the target home device calls the callback function corresponding to the first hardware capability based on the parameters required by the callback function corresponding to the first hardware capability, so that the target home device performs the corresponding action.
假设,当前家居设备为烤箱,目标家居设备为洗衣机,第一硬件能力为扬声器能力。烤箱向洗衣机发送扬声器能力调用请求,扬声器能力调用请求携带扬声器能力对应的回调函数的函数指针,以及调用扬声器能力所需的参数。洗衣机接收烤箱发送的扬声器能力调用请求,并确定扬声器能力所对应的回调函数。然后,洗衣机基于扬声器能力所需的参数,调用扬声器能力对应的回调函数,使得洗衣机可以通过扬声器广播烤箱当前的工作状态。Assume that the current home equipment is an oven, the target home equipment is a washing machine, and the first hardware capability is the speaker capability. The oven sends a speaker capability call request to the washing machine. The speaker capability call request carries the function pointer of the callback function corresponding to the speaker capability and the parameters required to call the speaker capability. The washing machine receives the speaker capability calling request sent by the oven and determines the callback function corresponding to the speaker capability. Then, based on the parameters required by the speaker capability, the washing machine calls the callback function corresponding to the speaker capability, so that the washing machine can broadcast the current working status of the oven through the speaker.
本一些实施例中,目标家居设备通过第一硬件能力执行相应的动作之后,还可以向当前家居设备发送硬件能力调用响应,该硬件能力调用响应用于指示目标家居设备是否成功地执行相应的动作。In some embodiments, after the target home device performs the corresponding action through the first hardware capability, it may also send a hardware capability invocation response to the current home device. The hardware capability invocation response is used to indicate whether the target home device successfully performs the corresponding action. .
当然,在实际应用中,可能存在多个家居设备同时调用目标家居设备具备的第一硬件能力。即,目标家居设备接收到多个家居设备发送的硬件能力调用请求,每个硬件能力调用请求中携带对应的家居设备的标识。此时,目标家居设备可以基于该多个家居设备的标识,从家居设备的标识与调用优先级之间的对应关系中,确定该多个家居设备对应的调用优先级,进而按照该多个家居设备对应的调用优先级,依次调用第一硬件能力。Of course, in actual applications, there may be multiple home devices that simultaneously call the first hardware capability of the target home device. That is, the target home device receives hardware capability invocation requests sent by multiple home devices, and each hardware capability invocation request carries the identification of the corresponding home device. At this time, the target home device can determine the calling priorities corresponding to the multiple home devices based on the correspondence between the home device identifiers and the calling priorities, and then determine the calling priorities of the multiple home devices based on the identifications of the multiple home devices. The calling priority corresponding to the device calls the first hardware capability in sequence.
其中,家居设备的标识与调用优先级之间的对应关系可以是根据经验值设置的,或者还可以是基于用户对各个家居设备的使用频率确定的,又或者还可以是用户手动设置的。The correspondence between the identification of the home device and the call priority may be set based on experience values, or may be determined based on the user's frequency of use of each home device, or may be manually set by the user.
以上内容是以当前家居设备调用目标家居设备具备的第一硬件能力为例,当然,在实际应用中,目标家居设备也可以调用当前家居设备具备的第二硬件能力。此时,目标家居设备可以通过本申请一些实施例提供的方法向当前家居设备发送硬件能力调用请求,该硬件能力调用请求携带第二硬件能力对应的回调函数的函数指针和所需的参数。当前家居设备接收目标家居设备发送的该硬件能力调用请求,基于第二硬件能力对应的回调函数的函数指针,确定第二硬件能力对应的回调函数。然后,基于第二硬件能力对应的回调函数所需的参数,调用第二硬件能力对应的回调函数,以使当前家居设备执行相应的动作。The above content is based on the example of the current home device calling the first hardware capability of the target home device. Of course, in actual applications, the target home device can also call the second hardware capability of the current home device. At this time, the target home device can send a hardware capability invocation request to the current home device through the methods provided by some embodiments of this application. The hardware capability invocation request carries the function pointer and required parameters of the callback function corresponding to the second hardware capability. The current home device receives the hardware capability calling request sent by the target home device, and determines the callback function corresponding to the second hardware capability based on the function pointer of the callback function corresponding to the second hardware capability. Then, based on the parameters required by the callback function corresponding to the second hardware capability, the callback function corresponding to the second hardware capability is called, so that the current home device performs the corresponding action.
其中,当前家居设备基于第二硬件能力对应的回调函数的函数指针,确定第二硬件能力对应的回调函数,以及基于第二硬件能力对应的回调函数所需的参数,调用第二硬件能力对应的回调函数的过程与上述步骤S304中目标家居设备基于第一硬件能力对应的回调函数的函数指针,确定第一硬件能力对应的回调函数,以及基于第一硬件能力对应的回调函数所需的参数,调用第一硬件能力对应的回调函数的过程相似,所以,可以参考上述步骤S304的相关内容,此处不再赘述。Among them, the current home device determines the callback function corresponding to the second hardware capability based on the function pointer of the callback function corresponding to the second hardware capability, and based on the parameters required by the callback function corresponding to the second hardware capability, calls the callback function corresponding to the second hardware capability. The process of the callback function is the same as that in the above step S304, the target home device determines the callback function corresponding to the first hardware capability based on the function pointer of the callback function corresponding to the first hardware capability, and the parameters required for the callback function corresponding to the first hardware capability, The process of calling the callback function corresponding to the first hardware capability is similar, so you can refer to the relevant content of step S304 above, which will not be described again here.
基于上文描述,当前家居设备包括硬件能力虚拟化模块。本一些实施例中,当前家居设备还包括控制模块,硬件能力虚拟化模块可以与控制模块进行通信。即,当前家居设备 的硬件能力虚拟化模块接收到目标家居设备发送的硬件能力调用请求之后,基于第二硬件能力对应的回调函数的函数指针,确定第二硬件能力所对应的回调函数。然后,当前家居设备的控制模块基于第二硬件能力对应的回调函数所需的参数,调用第二硬件能力对应的回调函数,控制当前家居设备执行相应的动作。Based on the above description, current home equipment includes a hardware capability virtualization module. In some embodiments, the current home equipment also includes a control module, and the hardware capability virtualization module can communicate with the control module. That is, after the hardware capability virtualization module of the current home device receives the hardware capability call request sent by the target home device, it determines the callback function corresponding to the second hardware capability based on the function pointer of the callback function corresponding to the second hardware capability. Then, based on the parameters required by the callback function corresponding to the second hardware capability, the control module of the current home device calls the callback function corresponding to the second hardware capability to control the current home device to perform corresponding actions.
需要说明的是,本申请一些实施例提供的家居设备的控制方法还可以应用于家居设备联动的场景。例如,针对洗衣机和干衣机联动的场景,在洗衣机结束洗衣之前向干衣机发送硬件能力调用请求,使得干衣机可以提前打开干衣机进行预热。又例如,针对炉灶和抽烟机联动的场景,抽烟机可以根据炉灶的温度,火力等信息,自动调节抽烟机的动力大小。It should be noted that the control methods for home equipment provided by some embodiments of the present application can also be applied to home equipment linkage scenarios. For example, in a scenario where a washing machine and a clothes dryer are linked, a hardware capability call request is sent to the dryer before the washing machine finishes washing, so that the dryer can turn on the dryer in advance for preheating. For another example, in the scenario where the stove and the smoke machine are linked, the smoke machine can automatically adjust the power of the smoke machine based on the temperature, firepower and other information of the stove.
在本申请一些实施例中,由于硬件能力信息库包括多个家居设备的硬件能力描述信息,所以,在当前家居设备需要调用第一硬件能力的情况下,当前家居设备可以向目标家居设备发送硬件能力调用请求。这样,目标家居设备接收到硬件能力调用请求之后,可以基于该硬件能力调用请求携带的函数指针确定第一硬件能力对应的回调函数,进而基于第一硬件能力对应的回调函数所需的参数调用该回调函数,以通过第一硬件能力来执行对应的动作,从而充分利用目标家居设备的第一硬件能力。此外,位于同一WLAN中的家居设备相互之间可以直接进行交互,从而提高了家居设备的通信速度。当然,位于不同的WLAN中的家居设备相互之间也可以通过服务器进行交互。这样,可以进一步的扩大本申请一些实施例提供的家居设备的控制方法的应用范围。In some embodiments of the present application, since the hardware capability information database includes hardware capability description information of multiple home devices, when the current home device needs to call the first hardware capability, the current home device can send hardware to the target home device. Capability call request. In this way, after the target home device receives the hardware capability call request, it can determine the callback function corresponding to the first hardware capability based on the function pointer carried by the hardware capability call request, and then call the callback function corresponding to the first hardware capability based on the parameters required by the callback function. The callback function is used to perform the corresponding action through the first hardware capability, thereby fully utilizing the first hardware capability of the target home device. In addition, home devices located in the same WLAN can interact directly with each other, thus improving the communication speed of home devices. Of course, home devices located in different WLANs can also interact with each other through the server. In this way, the application scope of the home device control method provided by some embodiments of the present application can be further expanded.
本申请一些实施例还提供了一种家居设备,该家居设备可以由软件、硬件或者两者的结合实现成为当前家居设备的部分或者全部,该设备包括:Some embodiments of the present application also provide a home device. The home device can be implemented by software, hardware, or a combination of the two to become part or all of the current home devices. The device includes:
存储器,被配置为存储软件程序;memory configured to store software programs;
处理器,被配置为:Processor, configured as:
基于当前家居设备存储的硬件能力信息库,确定目标家居设备,目标家居设备是指除当前家居设备之外具备第一硬件能力的家居设备,第一硬件能力是指当前家居设备待调用的硬件能力,其中,硬件能力信息库包括多个硬件能力的描述信息,该描述信息包括相应硬件能力对应的回调函数的函数指针和参数指示信息,该参数指示信息用于指示回调函数所需的参数,该多个硬件能力归属于多个家居设备,该多个硬件能力包括第一硬件能力。Based on the hardware capability information database stored in the current home device, the target home device is determined. The target home device refers to the home device that has the first hardware capability in addition to the current home device. The first hardware capability refers to the hardware capability to be called by the current home device. , wherein the hardware capability information base includes description information of multiple hardware capabilities. The description information includes the function pointer and parameter indication information of the callback function corresponding to the corresponding hardware capability. The parameter indication information is used to indicate the parameters required by the callback function. Multiple hardware capabilities belong to multiple home devices, and the multiple hardware capabilities include the first hardware capability.
基于第一硬件能力对应的回调函数的参数指示信息,确定第一硬件能力对应的回调函数所需的参数。Based on the parameter indication information of the callback function corresponding to the first hardware capability, the parameters required by the callback function corresponding to the first hardware capability are determined.
向目标家居设备发送硬件能力调用请求,该硬件能力调用请求携带第一硬件能力对应的回调函数的函数指针和所需的参数,该硬件能力调用请求用于指示目标家居设备调用第一硬件能力对应的回调函数,以通过第一硬件能力来执行对应的动作。详细实现过程参考上述各个实施例中对应的内容,此处不再赘述。Send a hardware capability call request to the target home device. The hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability. The hardware capability call request is used to instruct the target home device to call the first hardware capability corresponding to The callback function is used to perform the corresponding action through the first hardware capability. For the detailed implementation process, refer to the corresponding content in each of the above embodiments, and will not be described again here.
本一些实施例中,所述处理器还被配置为:In some embodiments, the processor is further configured to:
对自身具备的硬件能力进行自检,以确定自检成功的硬件能力;基于自检成功的硬件能力,生成并存储本地硬件能力信息库,本地硬件能力信息库包括自检成功的硬件能力的描述信息;获取已进行硬件能力自检的其他家居设备存储的硬件能力信息库;基于其他家居设备存储的硬件能力信息库,对本地硬件能力信息库进行更新,以得到当前家居设备存储的硬件能力信息库。Perform self-test on its own hardware capabilities to determine the hardware capabilities that have succeeded in self-test; based on the hardware capabilities that have succeeded in self-test, generate and store a local hardware capability information library. The local hardware capability information library includes a description of the hardware capabilities that have succeeded in self-test. information; obtain the hardware capability information database stored by other home devices that have performed hardware capability self-test; update the local hardware capability information database based on the hardware capability information database stored by other home devices to obtain the hardware capability information stored by the current home device Library.
本一些实施例中,所述处理器还被配置为:In some embodiments, the processor is further configured to:
对于自身具备的任一硬件能力,对用于提供该任一硬件能力的硬件模块的输出电压进 行采集;在该输出电压超过电压阈值的情况下,确定该任一硬件能力自检成功;在该输出电压低于电压阈值的情况下,确定该任一硬件能力自检失败。For any hardware capability it has, the output voltage of the hardware module used to provide the any hardware capability is collected; when the output voltage exceeds the voltage threshold, it is determined that the self-test of any hardware capability is successful; When the output voltage is lower than the voltage threshold, it is determined that any hardware capability self-test has failed.
本一些实施例中,所述处理器还被配置为:In some embodiments, the processor is further configured to:
为自检成功的硬件能力中的每个硬件能力设置一个回调函数;确定每个硬件能力对应的回调函数的函数指针和参数指示信息。Set a callback function for each hardware capability in the hardware capability that has succeeded in self-test; determine the function pointer and parameter indication information of the callback function corresponding to each hardware capability.
本一些实施例中,所述处理器还被配置为:In some embodiments, the processor is further configured to:
广播当前家居设备存储的硬件能力信息库,以使其他家居设备对自身存储的硬件能力信息库进行更新。Broadcast the hardware capability information database stored by the current home device, so that other home devices can update their own stored hardware capability information database.
本一些实施例中,所述处理器还被配置为:In some embodiments, the processor is further configured to:
接收在当前家居设备之后进行硬件能力自检的其他家居设备广播的硬件能力信息库;基于接收到的硬件能力信息库,对当前家居设备存储的硬件能力信息库进行更新。Receive the hardware capability information library broadcast by other home devices that perform hardware capability self-test after the current home device; based on the received hardware capability information library, update the hardware capability information library stored by the current home device.
本一些实施例中,所述处理器还被配置为:In some embodiments, the processor is further configured to:
基于当前家居设备存储的硬件能力信息库,确定具备第一硬件能力的候选家居设备;确定当前家居设备的位置信息;确定候选家居设备中每个家居设备的位置信息;基于当前家居设备的位置信息以及候选家居设备的位置信息,从候选家居设备中选择距离当前家居设备最近的一个家居设备作为目标家居设备。Based on the hardware capability information database stored in the current home device, determine the candidate home device with the first hardware capability; determine the location information of the current home device; determine the location information of each home device in the candidate home device; based on the location information of the current home device and the location information of the candidate home devices, and selects the home device closest to the current home device from the candidate home devices as the target home device.
本一些实施例中,所述处理器还被配置为:In some embodiments, the processor is further configured to:
基于当前家居设备存储的硬件能力信息库,确定具备第一硬件能力的候选家居设备;确定用户的位置信息,该用户为使用当前家居设备的用户;确定候选家居设备中每个家居设备的位置信息;基于该用户的位置信息以及候选家居设备的位置信息,从候选家居设备中选择距离该用户最近的一个家居设备作为目标家居设备。Based on the hardware capability information database stored in the current home device, determine the candidate home device with the first hardware capability; determine the location information of the user, who is the user using the current home device; determine the location information of each home device in the candidate home device ; Based on the location information of the user and the location information of the candidate home devices, select the home device closest to the user from the candidate home devices as the target home device.
本一些实施例中,处理器还被配置为:In some embodiments, the processor is further configured to:
接收目标家居设备发送的硬件能力调用请求,目标家居设备发送的硬件能力调用请求携带第二硬件能力对应的回调函数的函数指针和所需的参数,第二硬件能力是指目标家居设备待调用的硬件能力;基于第二硬件能力对应的回调函数的函数指针和所需的参数,调用第二硬件能力对应的回调函数,以通过自身的第二硬件能力来执行相应的动作。Receive a hardware capability call request sent by the target home device. The hardware capability call request sent by the target home device carries the function pointer and required parameters of the callback function corresponding to the second hardware capability. The second hardware capability refers to the function to be called by the target home device. Hardware capability: Based on the function pointer and required parameters of the callback function corresponding to the second hardware capability, call the callback function corresponding to the second hardware capability to perform the corresponding action through its own second hardware capability.
在本申请一些实施例中,由于硬件能力信息库包括多个家居设备的硬件能力描述信息,所以,在当前家居设备需要调用第一硬件能力的情况下,当前家居设备可以向目标家居设备发送硬件能力调用请求。这样,目标家居设备接收到硬件能力调用请求之后,可以基于该硬件能力调用请求携带的函数指针确定第一硬件能力对应的回调函数,进而基于第一硬件能力对应的回调函数所需的参数调用该回调函数,以通过第一硬件能力来执行对应的动作,从而充分利用目标家居设备的第一硬件能力。此外,位于同一WLAN中的家居设备相互之间可以直接进行交互,从而提高了家居设备的通信速度。当然,位于不同的WLAN中的家居设备相互之间也可以通过服务器进行交互。这样,可以进一步的扩大本申请一些实施例提供的家居设备的控制方法的应用范围。In some embodiments of the present application, since the hardware capability information database includes hardware capability description information of multiple home devices, when the current home device needs to call the first hardware capability, the current home device can send hardware to the target home device. Capability call request. In this way, after the target home device receives the hardware capability call request, it can determine the callback function corresponding to the first hardware capability based on the function pointer carried by the hardware capability call request, and then call the callback function corresponding to the first hardware capability based on the parameters required by the callback function. The callback function is used to perform the corresponding action through the first hardware capability, thereby fully utilizing the first hardware capability of the target home device. In addition, home devices located in the same WLAN can interact directly with each other, thus improving the communication speed of home devices. Of course, home devices located in different WLANs can also interact with each other through the server. In this way, the application scope of the home device control method provided by some embodiments of the present application can be further expanded.
需要说明的是:上述实施例提供的家居设备的控制装置与家居设备的控制方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that the control device for home equipment provided in the above embodiments and the control method embodiment for home equipment belong to the same concept. Please refer to the method embodiment for details of the specific implementation process, which will not be described again here.
在上述家居设备的控制基础之上,家居设备还能够进一步实现其他功能,如下是关于烤箱和冰箱联动的场景,烤箱和冰箱通过上述控制方法建立连接后,烤箱能够进一步实现智能烹饪,具体如下:Based on the control of the above home equipment, the home equipment can further realize other functions. The following is a scenario about the linkage between the oven and the refrigerator. After the oven and the refrigerator are connected through the above control method, the oven can further realize intelligent cooking, as follows:
本申请一些实施例提供一种烤箱设备,所述烤箱设备包括:烤盘,所述烤盘包括多个分区;Some embodiments of the present application provide an oven device. The oven device includes: a baking pan, the baking pan includes a plurality of partitions;
多个加热管,所述加热管布置在所述烤盘的上方,不同的加热管对应烤盘不同的分区;电路控制板,与加热管连接,以使所述不同加热管对不同分区的食材进行烹饪;存储器,与所述电路控制板通信连接,用于存储计算机程序,所述计算机程序用于使计算机执行如下任一烤箱设备的智能烹饪方法。A plurality of heating tubes are arranged above the baking pan, and different heating tubes correspond to different partitions of the baking pan; a circuit control board is connected to the heating tubes so that the different heating tubes can respond to food in different partitions. Carry out cooking; the memory is communicatively connected with the circuit control board and is used to store a computer program. The computer program is used to cause the computer to execute any of the following intelligent cooking methods of oven equipment.
图6是本申请一些实施例提供的一种烤箱设备内部加热管布局示意图,在一些实施例中,烤箱设备内部加热管的布局如图6所示,该烤箱设备包括顶部加热管、背部加热管和底部加热管,在同时烹饪不同食材时,为了保证对不同分区的不同食材利用不同的温度进行加热,仅通过电路控制板控制顶部加热管进行加热,底部加热管和背部加热管不进行加热;若将烹饪时间较长的食材,例如,肉类放置在靠近背部加热管的烤盘分区上,可以通过电路控制板同时控制与该分区对应的顶部加热管和背部加热管对该肉类进行烹饪;若在烤盘上的各分区放置相同的食材,则可以通过电路控制板控制底部加热管对该食材烹饪。Figure 6 is a schematic diagram of the layout of heating tubes inside an oven device provided in some embodiments of the present application. In some embodiments, the layout of the heating tubes inside the oven device is as shown in Figure 6. The oven device includes a top heating tube and a back heating tube. And the bottom heating tube, when cooking different ingredients at the same time, in order to ensure that different ingredients in different partitions are heated at different temperatures, only the top heating tube is controlled through the circuit control board for heating, and the bottom heating tube and back heating tube are not heated; If ingredients with a long cooking time, such as meat, are placed on the grill pan area close to the back heating tube, the top heating tube and back heating tube corresponding to the area can be controlled through the circuit control board to cook the meat at the same time. ; If the same food is placed in each zone on the baking pan, the bottom heating tube can be controlled by the circuit control board to cook the food.
图7是本申请一些实施例提供的一种加热管结构示意图,烤箱顶部加热管的结构如图7所示,顶部加热管包括石英外壳、加热导线、两个连接端子以及绝缘保护套;其中,加热导线布置在石英外壳内部;两个连接端子分别固定在石英外壳的两端,且与石英外壳内的加热导线连接;两个连接端子位于绝缘保护套中。Figure 7 is a schematic structural diagram of a heating tube provided by some embodiments of the present application. The structure of the top heating tube of the oven is shown in Figure 7. The top heating tube includes a quartz shell, a heating wire, two connection terminals and an insulating protective sleeve; wherein, The heating wire is arranged inside the quartz shell; the two connection terminals are respectively fixed at both ends of the quartz shell and connected to the heating wire in the quartz shell; the two connection terminals are located in the insulating protective sleeve.
本申请一些实施例中采用了石英外壳配合金属电阻作为加热导线组成了加热管。由于石英管无需远红外涂层,光谱辐射匹配吸收特性好,长期使用辐射性能不退变,电能、热能之间转换效率高,比一般的金属加热管节能;对于同时烹饪不同的食材来说,需要不同的加热温度,石英外壳的工作温度高,可选择的范围宽的特性可以解决上述问题;石英外壳升温快,在一定程度上可以缩短烹饪时间;而且石英外壳还有耐高温、比一般的金属加热管耐腐蚀、热化学性能稳定,绝缘强度高且无污染,是一种清洁型的加热器。In some embodiments of the present application, a quartz shell and a metal resistor are used as heating wires to form a heating tube. Since the quartz tube does not require far-infrared coating, it has good spectral radiation matching and absorption characteristics, and its radiation performance does not degrade after long-term use. It has high conversion efficiency between electrical energy and thermal energy, and is more energy-saving than ordinary metal heating tubes. For cooking different ingredients at the same time, Different heating temperatures are required. The working temperature of the quartz shell is high and the wide range of options can solve the above problems. The quartz shell heats up quickly, which can shorten the cooking time to a certain extent. Moreover, the quartz shell is also resistant to high temperatures and is better than ordinary ones. The metal heating tube is corrosion-resistant, has stable thermochemical properties, has high insulation strength and is pollution-free. It is a clean heater.
将加热导线设置为弹簧状,使得加热导线耐压,不容易在石英外壳中由于受到热力而产生变形,而且安装方便。其中石英外壳为圆柱体,横截面积略大于弹簧状的加热导线的横截面积。为了适应烤箱设备,石英外壳的长度设置为380mm,整个加热管的长度为435mm,将950mm的加热导线弯折成如图7所示的弹簧状的加热导线。由于连接端子是导电的,为了防止由于误碰引起的触电危险,或加热导线与连接端子之间的连接松动而造成的线路之间的短路,将连接端子放置在绝缘保护套中,绝缘保护套的材料可以是硅胶,也可以是其它的绝缘材料,本申请一些实施例中不进行具体限定。The heating wire is arranged in a spring shape, so that the heating wire can withstand pressure, is not easily deformed due to heat in the quartz shell, and is easy to install. The quartz shell is a cylinder, and the cross-sectional area is slightly larger than the cross-sectional area of the spring-shaped heating wire. In order to adapt to the oven equipment, the length of the quartz shell is set to 380mm, the length of the entire heating tube is 435mm, and the 950mm heating wire is bent into a spring-shaped heating wire as shown in Figure 7. Since the connection terminal is conductive, in order to prevent the risk of electric shock caused by accidental touching, or the short circuit between the lines caused by the loose connection between the heating wire and the connection terminal, the connection terminal is placed in an insulating protective sleeve. The material may be silica gel or other insulating materials, which are not specifically limited in some embodiments of this application.
图8是本申请一些实施例提供的一种加热管并联结构示意图,如图8为顶部加热管的并联结构示意图,任意一个加热管的一端与继电器连接,另一端连接与所述任意一个加热管相邻的加热管,继电器的另一端与电路控制板连接。由于顶部各加热管之间为并联连接,因此可以通过电路控制板单独控制任意一个加热管进行加热,以使任意一个加热管能够对烤盘任意一个分区上的食材进行加热。Figure 8 is a schematic diagram of a parallel structure of heating tubes provided by some embodiments of the present application. Figure 8 is a schematic diagram of a parallel structure of top heating tubes. One end of any heating tube is connected to a relay, and the other end is connected to any one of the heating tubes. Adjacent to the heating tube, the other end of the relay is connected to the circuit control board. Since the heating tubes on the top are connected in parallel, any one heating tube can be individually controlled for heating through the circuit control board, so that any one heating tube can heat the food in any section of the baking pan.
图9是本申请一些实施例提供的一种智能烹饪方法的应用场景示意图,如图9所示,该应用场景中包括:烤箱设备1101和冰箱1102,其中烤箱设备1101可以与冰箱1102通过无线模块进行通信(烤箱设备1101查询冰箱1102中的食材类别,冰箱1102将食材类别发送至烤箱设备1101)。具体的网络连接可参考前文介绍。Figure 9 is a schematic diagram of an application scenario of an intelligent cooking method provided by some embodiments of the present application. As shown in Figure 9, the application scenario includes: an oven device 1101 and a refrigerator 1102, where the oven device 1101 can communicate with the refrigerator 1102 through a wireless module Communication is carried out (the oven device 1101 queries the food material category in the refrigerator 1102, and the refrigerator 1102 sends the food material category to the oven device 1101). For specific network connections, please refer to the previous introduction.
图10是本申请一些实施例提供的另一种智能烹饪方法应用场景示意图,本申请一些 实施例还提供了另一种智能烹饪方法的应用场景,如图10所示,该应用场景中包括烤箱设备1101、冰箱1102和云服务器1201,其中烤箱设备1101与冰箱1102均可以与云服务器1201进行通信(烤箱设备1101发送拍摄的图像至云服务器1201,云服务器1201将处理结果反馈至烤箱设备1101;云服务器1201查询冰箱1102中的食材类别,冰箱1102将食材类别发送至云服务器1201,云服务器1201将查询到的结果反馈至烤箱设备1101)。Figure 10 is a schematic diagram of an application scenario of another intelligent cooking method provided by some embodiments of the present application. Some embodiments of the present application also provide an application scenario of another intelligent cooking method. As shown in Figure 10, this application scenario includes an oven. Device 1101, refrigerator 1102 and cloud server 1201, where both the oven device 1101 and the refrigerator 1102 can communicate with the cloud server 1201 (the oven device 1101 sends the captured image to the cloud server 1201, and the cloud server 1201 feeds back the processing results to the oven device 1101; The cloud server 1201 queries the food category in the refrigerator 1102, the refrigerator 1102 sends the food category to the cloud server 1201, and the cloud server 1201 feeds back the query result to the oven device 1101).
图11是本申请一些实施例提供的另一种智能烹饪方法应用场景示意图,本申请一些实施例还提供了另一种智能烹饪方法的应用场景,如图11所示,该应用场景中包括烤箱设备1101、冰箱1102、云服务器1201和移动终端1301,其中烤箱设备1101、冰箱1102与云服务器1201之间的通信如上述实施方式,此处不再赘述,移动终端1301可以通过云服务器1201与烤箱设备1101、冰箱1102进行通信,“虚线”表示间接连接,移动终端包括但不仅限于手机、平板电脑等。Figure 11 is a schematic diagram of an application scenario of another intelligent cooking method provided by some embodiments of the present application. Some embodiments of the present application also provide an application scenario of another intelligent cooking method. As shown in Figure 11, this application scenario includes an oven. Device 1101, refrigerator 1102, cloud server 1201 and mobile terminal 1301. The communication between the oven device 1101, the refrigerator 1102 and the cloud server 1201 is as in the above embodiment, which will not be repeated here. The mobile terminal 1301 can communicate with the oven through the cloud server 1201. Device 1101 and refrigerator 1102 communicate, and the "dashed line" indicates an indirect connection. Mobile terminals include but are not limited to mobile phones, tablets, etc.
图12是本申请一些实施例提供的一种智能烹饪方法流程示意图,本申请一些实施例提供了一种智能烹饪方法,如图12所示,应用于上述烤箱设备,所述方法包括:Figure 12 is a schematic flow chart of an intelligent cooking method provided by some embodiments of the present application. Some embodiments of the present application provide an intelligent cooking method, as shown in Figure 12, applied to the above-mentioned oven equipment. The method includes:
S501:响应于食材类别识别指令,对放置在烤盘不同分区的食材进行拍摄,并基于拍摄得到的图像确定各分区食材的类别,其中,所述烤盘的不同分区对应不同的加热管,各加热管布置在对应的分区上方。S501: In response to the ingredient category identification instruction, photograph the ingredients placed in different sections of the baking pan, and determine the categories of the ingredients in each section based on the captured images. Different sections of the baking pan correspond to different heating tubes. The heating pipes are arranged above the corresponding partitions.
为了能够实现将不同类别的食材同时进行烹饪,对烤盘进行分区,为了保证各分区之间的温度不互相影响,将加热管布置在烤盘上方,也可以将烤盘各分区之间的材料设置为隔热的材料。In order to be able to cook different types of ingredients at the same time, the baking pan is partitioned. In order to ensure that the temperatures between the partitions do not affect each other, the heating tube is arranged above the baking tray. The materials between the partitions of the baking tray can also be separated. Material set to insulate.
图13是本申请一些实施例提供的一种2分区的烤盘示意图,如图13所示是本申请一些实施例提供的一种二分区烤盘示意图,在本申请一些实施例中,烤盘可以设置为2分区:分区1和分区2。Figure 13 is a schematic diagram of a two-partition baking pan provided by some embodiments of the present application. Figure 13 is a schematic diagram of a two-partition baking pan provided by some embodiments of the present application. In some embodiments of the present application, the baking pan Can be set to 2 partitions: Partition 1 and Partition 2.
图14是本申请一些实施例提供的一种2分区的加热管布局示意图,在一些实施例中,为了进一步避免对分区1的食材进行烹饪时影响到分区2食材的烹饪温度,分区之间还可以设置隔热材料,各分区烤盘对应的加热管布局如图14所示,各加热管布置在烤箱设备顶部,其中,由加热管1和加热管2组成炙烤内环加热管,位于烤盘分区1的上方,用于对分区1的食材进行烹饪;由加热管2和加热管3组成炙烤中环加热管,加热管3和加热管4组成炙烤外环加热管,位于烤盘分区2的上方,均用于对分区2的食材进行烹饪;也可以将烤盘分成4个分区,每个加热管分别对应一个分区,本申请一些实施例中不对各加热管与各分区的加热关系进行具体限定。Figure 14 is a schematic diagram of a 2-zone heating tube layout provided by some embodiments of the present application. In some embodiments, in order to further avoid affecting the cooking temperature of food in Zone 2 when cooking food in Zone 1, there are also Insulating materials can be set up. The layout of the heating tubes corresponding to each partitioned baking pan is shown in Figure 14. Each heating tube is arranged on the top of the oven equipment. Among them, the heating tube 1 and the heating tube 2 form an inner ring heating tube, which is located in the oven. Above the plate partition 1, it is used to cook the ingredients in partition 1; the heating tube 2 and the heating tube 3 form the grilling middle ring heating tube, and the heating tube 3 and the heating tube 4 form the grilling outer ring heating tube, which is located in the baking pan partition 2 above are used to cook the ingredients in partition 2; the baking pan can also be divided into 4 partitions, and each heating tube corresponds to a partition. In some embodiments of the present application, there is no heating relationship between each heating tube and each partition. Make specific limitations.
其中,各加热管的额定功率可以相同,也可以不同,例如,设置加热管1和加热管4的额定功率为1000W,设置加热管2和加热管3的额定功率为500W,若将分区1设置为烹饪蔬菜的区域,将分区2设置为烹饪肉类的区域,则分区1对应的加热管的额定功率可以略低于则分区2对应的加热管的额定功率,若不对各分区对应的食材类别进行设置,则可以将各加热管的额定功率设置为相同,此处不对各加热管功率的数值进行具体限定。Among them, the rated power of each heating tube can be the same or different. For example, the rated power of heating tube 1 and heating tube 4 is set to 1000W, and the rated power of heating tube 2 and heating tube 3 is set to 500W. If partition 1 is set As an area for cooking vegetables, if Zone 2 is set as an area for cooking meat, then the rated power of the heating tube corresponding to Zone 1 can be slightly lower than the rated power of the heating tube corresponding to Zone 2. If the food category corresponding to each zone is not After setting, the rated power of each heating tube can be set to be the same. The value of the power of each heating tube is not specifically limited here.
图15是本申请一些实施例提供的一种5分区的烤盘示意图。在一些实施例中,除了上述分区方式外,该烤盘还可以包括5个分区,如图15中所示的分区1、分区2、分区3、分区4和分区5,各分区之间可以设置为隔热材料。烤盘的形状和各分区的形状可以设置为圆形或其它形状,此处不做具体限定。当烤盘分区的布局发生变化时,各分区对应的加热管的布局也进行适当的变化。需要注意的是,无论加热管的数量是多少,以及各加热管 如何布局,各加热管之间为并联连接。Figure 15 is a schematic diagram of a 5-section baking pan provided by some embodiments of the present application. In some embodiments, in addition to the above-mentioned partitioning method, the baking pan can also include five partitions, such as partition 1, partition 2, partition 3, partition 4 and partition 5 as shown in Figure 15, and can be set between each partition. For thermal insulation materials. The shape of the baking pan and the shape of each partition can be set to be circular or other shapes, and are not specifically limited here. When the layout of the baking pan partitions changes, the layout of the heating tubes corresponding to each partition also changes appropriately. It should be noted that regardless of the number of heating tubes and how the heating tubes are laid out, the heating tubes are connected in parallel.
在如图9所示的应用场景中,烤箱设备可以在本地进行食材类别的识别;在一些实施例中,若在如图10所示的应用场景中,烤箱设备将拍摄的图像上传至云端,并接收云服务器根据拍摄得到的图像进行识别得到的各分区食材的类别;若在如图11所示的应用场景中,云服务器还可以将识别的结果发送至移动终端以使用户进行确认,用户确认无误后,可以远程控制烤箱上设备启动烹饪过程,其中移动终端是通过云服务器与烤箱进行通信的。In the application scenario as shown in Figure 9, the oven device can identify the food category locally; in some embodiments, if in the application scenario as shown in Figure 10, the oven device uploads the captured image to the cloud, And receive the categories of ingredients in each partition recognized by the cloud server based on the captured images; in the application scenario as shown in Figure 11, the cloud server can also send the recognition results to the mobile terminal for the user to confirm. After confirmation, the device on the oven can be remotely controlled to start the cooking process. The mobile terminal communicates with the oven through the cloud server.
在对放入不同分区的食材进行拍摄之前,本申请一些实施例提供的烤箱设备还可以进行菜谱推荐,具体实施方式如下:Before taking pictures of the ingredients placed in different partitions, the oven equipment provided by some embodiments of the present application can also recommend recipes. The specific implementation is as follows:
图16是本申请一些实施例提供的一种查询冰箱中食材类别流程示意图,在一些实施例中,所述对放置在烤盘不同分区的食材进行拍摄之前,如图16所示,包括:Figure 16 is a schematic flowchart of querying the categories of ingredients in the refrigerator provided by some embodiments of the present application. In some embodiments, before photographing the ingredients placed in different partitions of the baking tray, as shown in Figure 16, it includes:
S601:查询冰箱中的食材类别,并分别与预设的多个菜谱中的食材类别进行匹配;S601: Query the categories of ingredients in the refrigerator and match them with the categories of ingredients in multiple preset recipes;
若烤箱设备与云服务器存在连接关系,如图10所示的应用场景中,则由云服务器查询冰箱中食材类别。If there is a connection relationship between the oven device and the cloud server, as in the application scenario shown in Figure 10, the cloud server queries the category of ingredients in the refrigerator.
S602:将与所述冰箱中的食材类别完全匹配的至少一个菜谱显示在显示界面上。S602: Display at least one recipe that exactly matches the category of ingredients in the refrigerator on the display interface.
图19是本申请一些实施例提供的另一种烤箱设备显示界面示意图,在一些实施例中,在烤箱本地预先存储了菜谱1:嫩烤牛排,食材类别包括:主菜:西冷牛排;配菜:西蓝花、西红柿和口蘑:菜谱2:柠檬猪扒,食材类别包括:主菜:猪扒;配菜:柠檬和洋葱。Figure 19 is a schematic diagram of another oven equipment display interface provided by some embodiments of the present application. In some embodiments, Recipe 1: Tender Grilled Steak is pre-stored locally in the oven. The food categories include: main course: sirloin steak; side dishes Dishes: Broccoli, tomatoes and mushrooms: Recipe 2: Lemon Pork Chop, the ingredients include: Main dish: Pork Chop; Side dish: Lemon and onion.
烤箱设备查询冰箱中的主菜类别包括:猪扒,配菜类别包括:柠檬、洋葱和西红柿,分别与上述菜谱1和菜谱2中的食材类别进行匹配,确定与菜谱2中的食材类别完全匹配,则将菜谱2显示在烤箱的显示界面上以供用户进行选择,如图19所示,若用户不想选择该菜谱,则可以点击左上角的返回按键,重新选择菜谱。The oven equipment queries the main dish category in the refrigerator including: pork chop, and the side dish categories include: lemon, onion and tomato, which are matched with the ingredient categories in the above-mentioned recipe 1 and recipe 2 respectively, and are determined to completely match the ingredient category in recipe 2. , then Recipe 2 is displayed on the display interface of the oven for the user to select, as shown in Figure 19. If the user does not want to select the recipe, he can click the return button in the upper left corner to reselect the recipe.
图17是本申请一些实施例提供的一种烤箱设备显示界面示意图,在一些实施例中,若主菜类别包括:猪扒和西冷牛排,配菜类别包括:洋葱,分别计算猪扒与洋葱,以及西冷牛排与洋葱的匹配程度,确定洋葱与猪扒的匹配度更高,则将包括猪扒的菜谱显示到显示界面上(如图17所示),或通过终端反馈至用户。Figure 17 is a schematic diagram of an oven equipment display interface provided by some embodiments of the present application. In some embodiments, if the main dish category includes: pork chop and sirloin steak, and the side dish category includes: onion, calculate the pork chop and onion respectively. , and the matching degree of sirloin steak and onions. If it is determined that the matching degree of onions and pork chops is higher, the recipe including pork chops will be displayed on the display interface (as shown in Figure 17), or fed back to the user through the terminal.
图18是本申请一些实施例提供的另一种菜谱匹配流程示意图,在一些实施例中,分别与预先存储在本地的多个菜谱中的食材类别进行匹配之后,如图18所示包括:Figure 18 is a schematic diagram of another recipe matching process provided by some embodiments of the present application. In some embodiments, after matching with ingredient categories in multiple recipes pre-stored locally, as shown in Figure 18, it includes:
S701:若在所述多个菜谱中没有与冰箱中的食材类别完全匹配的菜谱,则统计各菜谱对应缺少的食材类别。S701: If there is no recipe among the multiple recipes that completely matches the category of ingredients in the refrigerator, count the missing ingredient categories corresponding to each recipe.
例如烤箱设备查询冰箱中的主菜类别包括:猪扒、柠檬和西红柿,分别与上述菜谱1和菜谱2中的食材类别进行匹配,确定菜谱1中缺少洋葱,菜谱2中缺少西冷牛排、西蓝花和口蘑。For example, the oven equipment queries the main dish categories in the refrigerator, including: pork chop, lemon, and tomatoes, and matches them with the ingredient categories in the above-mentioned recipe 1 and recipe 2 respectively. It is determined that onions are missing in recipe 1, and sirloin steak, sirloin, and sirloin are missing in recipe 2. Blue flowers and mushrooms.
S702:将所述多个菜谱以及对应缺少的食材类别显示在显示界面上。S702: Display the multiple recipes and corresponding missing ingredient categories on the display interface.
将菜谱1、菜谱2以及缺少的食材类别显示在显示界面上,如图19所示。对于某些放置冰箱中的调料,如葱姜等,若没有匹配的也可以显示在显示界面上,以提醒用户进行购买;另外对于某些需要腌制的有嫩牛肉片、掌中宝、菌干、鸡翅、排骨、花甲,掌中宝等等,可以提前通知用户进行腌制,其提醒方式可以通过显示到烤箱设备的显示界面上,或者在与移动终端存在通信的情况下,可以通过移动终端反馈至客户。Display recipe 1, recipe 2 and the missing ingredient categories on the display interface, as shown in Figure 19. For some spices placed in the refrigerator, such as onions, ginger, etc., if there is no match, it can also be displayed on the display interface to remind the user to purchase; in addition, for some spices that need to be marinated, such as tender beef slices, palm treasures, and dried mushrooms , chicken wings, ribs, sixtieth birthday, palm treasure, etc., the user can be notified in advance to pickle. The reminder can be displayed on the display interface of the oven device, or when there is communication with the mobile terminal, feedback can be provided through the mobile terminal to customers.
在一些实施例中,若烤箱设备和冰箱通过云服务器移动终端进行通信,则可以将各菜谱的各项信息通过移动终端反馈至客户,客户可以通过移动终端选择需要烹饪的菜谱,并 将选择的菜谱通过云服务器反馈至烤箱。In some embodiments, if the oven device and the refrigerator communicate through the cloud server mobile terminal, the information of each recipe can be fed back to the customer through the mobile terminal, and the customer can select the recipe to be cooked through the mobile terminal and send the selected The recipes are fed back to the oven through the cloud server.
在一些实施例中,还可以根据各菜谱选择的频率对用户进行菜谱推荐,具体实施方式包括:In some embodiments, recipe recommendations can also be made to users based on the frequency of each recipe selection. Specific implementation methods include:
S801:若与所述冰箱中的食材类别完全匹配的菜谱有多个,则根据预设时间段内各菜谱的选择频率,确定显示顺序;S801: If there are multiple recipes that completely match the category of ingredients in the refrigerator, determine the display order according to the selection frequency of each recipe within the preset time period;
S802:基于显示顺序,将与所述冰箱中的食材类别完全匹配的至少一个菜谱显示在界面上。S802: Based on the display order, display at least one recipe that completely matches the category of ingredients in the refrigerator on the interface.
烤箱设备可以自动查询海信冰箱中的所有食材信息,并且根据本地菜谱或云服务器的菜谱,形成推荐菜谱,每次饭前自动推荐给用户,通过上述实施方式,可以将最近选择频率较低的菜谱推荐给用户,尽量保证不重样且营养均衡。The oven device can automatically query all ingredient information in the Hisense refrigerator, and form recommended recipes based on local recipes or cloud server recipes, which are automatically recommended to the user before each meal. Through the above implementation, recently selected recipes with low frequency can be Recommended to users, try to ensure that they are not duplicated and have balanced nutrition.
其中,识别拍摄图像属于现有技术,具体可以先对图像进行分割,再通过食材类别识别模型进行识别,本申请一些实施例不对具体的食材类别识别方式做具体限定。Among them, identifying the captured images belongs to the existing technology. Specifically, the image can be segmented first, and then recognized through the food category recognition model. Some embodiments of the present application do not specifically limit the specific food category recognition method.
S502:确定不同食材类别对应的烹饪信息,所述烹饪信息包括烹饪温度、烹饪时间和烹饪间歇。S502: Determine cooking information corresponding to different food material categories. The cooking information includes cooking temperature, cooking time and cooking intervals.
在烤箱本地预先存储了菜谱,所述菜谱包括不同的食材类比及其对应的烹饪信息。Recipes are pre-stored locally in the oven, and the recipes include different ingredient analogies and their corresponding cooking information.
根据上述S501中的实施方式选择菜谱后,即可确定不同食材类别对应的烹饪信息。After selecting a recipe according to the implementation in S501 above, the cooking information corresponding to different food ingredient categories can be determined.
例如菜谱1:嫩烤牛排,主菜:西冷牛排;配菜:西蓝花、西红柿和口蘑,调料:黑胡椒;烹饪方式:西冷牛排的烹饪温度为230度,烹饪时间是10分钟,无烹饪间歇,西蓝花和西红柿和口蘑的烹饪温度为150度,烹饪时长为4分钟;菜谱2:柠檬猪扒,主菜:猪扒;配菜:柠檬和洋葱;调料:葱、姜、料酒和盐;烹饪方式:猪扒的烹饪温度为250度,烹饪时间是10分钟,停止1分钟在以180度加热3分钟,柠檬的烹饪温度为150度,烹饪时长为1分钟,无间歇,洋葱的烹饪温度为150度,烹饪时长为3分钟,无间歇。For example, recipe 1: tender grilled steak, main dish: sirloin steak; side dishes: broccoli, tomatoes and mushrooms, seasoning: black pepper; cooking method: the cooking temperature of sirloin steak is 230 degrees, and the cooking time is 10 minutes. There is no cooking interval. The cooking temperature of broccoli, tomatoes and mushrooms is 150 degrees, and the cooking time is 4 minutes; Recipe 2: lemon pork chop, main dish: pork chop; side dishes: lemon and onion; seasonings: green onions, ginger, Cooking wine and salt; cooking method: the cooking temperature of pork chop is 250 degrees, the cooking time is 10 minutes, stop for 1 minute and then heat at 180 degrees for 3 minutes, the cooking temperature of lemon is 150 degrees, the cooking time is 1 minute, without interruption, The cooking temperature of onions is 150 degrees, and the cooking time is 3 minutes, without interruption.
若烤箱设备与云服务器进行连接,则需要接收所述云服务器发送的不同食材类别对应的烹饪信息。If the oven device is connected to a cloud server, it needs to receive cooking information corresponding to different food ingredient categories sent by the cloud server.
S503:针对任意一个分区,基于所述不同食材类别对应的所述烹饪信息,对所述任意一个分区的食材进行烹饪。S503: For any partition, cook the food ingredients in any partition based on the cooking information corresponding to the different food material categories.
在一些实施例中,所述针对任意一个分区,基于对应的所述烹饪信息对所述任意一个分区的食材进行烹饪,包括:In some embodiments, for any one partition, cooking the ingredients in any one partition based on the corresponding cooking information includes:
S901:针对任意一个分区,从确定的不同食材类别对应的烹饪信息中,确定所述任意一个分区放置的食材类别对应的烹饪信息。S901: For any partition, determine the cooking information corresponding to the food category placed in any partition from the determined cooking information corresponding to different food material categories.
以S502中的菜谱1、如图13所示的烤盘,以及以图14所示布局的加热管为例,将西冷牛排放置在分区1,西蓝花、西蓝花,口蘑和西红柿在分区2,烤箱设备根据烹饪信息确定分区1和分区2的烘烤模式。若烤箱设备将拍摄的食材图像上传云服务器,则通过云服务器确定对应的烹饪信息,确定各分区的烘烤模式后,下发给烤箱设备进行实施。Taking recipe 1 in S502, the baking pan as shown in Figure 13, and the heating tube layout as shown in Figure 14 as an example, place the sirloin steak in partition 1, broccoli, broccoli, mushrooms and tomatoes in In zone 2, the oven device determines the baking modes of zone 1 and zone 2 based on the cooking information. If the oven device uploads the captured image of the ingredients to the cloud server, the corresponding cooking information is determined through the cloud server, and the baking mode of each partition is determined and then sent to the oven device for implementation.
S902:根据所述烹饪信息中的烹饪温度对所述任意一个分区的加热管的加热温度进行设置,并根据所述烹饪信息中的烹饪时间对所述任意一个分区的加热管的加热时间进行设置,以及根据所述烹饪信息中的烹饪间歇对所述任意一个分区的加热管的加热间歇进行设置。S902: Set the heating temperature of the heating tube in any zone according to the cooking temperature in the cooking information, and set the heating time of the heating tube in any zone according to the cooking time in the cooking information. , and setting the heating interval of the heating tube of any one zone according to the cooking interval in the cooking information.
根据S901中食材放的位置不同从而分别控制内环,中环,外环加热管的温度和时间值。比如检测到牛肉放在内环,西蓝花,口蘑和西红柿在中环和外环,烘烤模式如下:According to the different positions of the food ingredients in S901, the temperature and time values of the inner ring, middle ring and outer ring heating tubes are controlled respectively. For example, if it is detected that beef is placed on the inner ring, broccoli, mushrooms and tomatoes are placed on the middle and outer rings, the baking mode is as follows:
首先,炙烤内环加热温度到230度,持续10分钟;First, heat the inner ring to 230 degrees for 10 minutes;
然后,炙烤内环停止加热,炙烤中环加热温度到150度,持续1分钟;Then, the inner grilling ring stops heating, and the heating temperature of the grilling middle ring reaches 150 degrees for 1 minute;
最后,炙烤内环,炙烤中环,炙烤外环同时加热3分钟。Finally, grill the inner ring, grill the middle ring, and grill the outer ring for 3 minutes at the same time.
上述实施例中的烤盘为2分区,则将蔬菜类的食材放置在分区2,由于西蓝花、西红柿和口蘑属于不同类别的食材,当放置在同一分区进行烹饪,且在分区2和分区1均利用加热管2进行烹饪的情况下,烤箱设备(或云服务器)会根据菜谱中的烹饪方式,制定一个综合的方案(例如计算一个平均温度),以保证各类食材的最佳熟度。The baking pan in the above embodiment has 2 partitions, so the vegetable ingredients are placed in partition 2. Since broccoli, tomatoes and mushrooms belong to different categories of ingredients, they should be placed in the same partition for cooking, and in partition 2 and partition 1. When both heating tubes 2 are used for cooking, the oven equipment (or cloud server) will formulate a comprehensive plan (such as calculating an average temperature) based on the cooking method in the recipe to ensure the optimal doneness of various ingredients. .
在本申请一些实施例中,烤箱设备还具备对各食材熟度的监测,避免了防止由于误差食材的熟度与烹饪信息中已烹饪时长对应的熟度不匹配的情况。In some embodiments of the present application, the oven equipment is also equipped with the ability to monitor the doneness of each ingredient, thereby avoiding a mismatch between the doneness of the ingredients and the doneness corresponding to the cooking time in the cooking information due to errors.
在一些实施例中,基于对应的所述烹饪信息对所述任意一个分区的食材进行烹饪之后,还包括:In some embodiments, after cooking the ingredients in any partition based on the corresponding cooking information, the method further includes:
响应于食材熟度识别指令,周期对所述任意一个分区的食材进行拍摄,并基于拍摄得到的图像确定所述任意一个分区中食材的熟度以及已烹饪时长;In response to the ingredient doneness recognition instruction, periodically photograph the ingredients in any one of the partitions, and determine the doneness and cooking time of the ingredients in any one of the partitions based on the captured images;
将确定的所述食材的熟度与所述烹饪信息中所述已烹饪时长对应的熟度进行匹配;Match the determined doneness of the ingredients with the doneness corresponding to the cooking time in the cooking information;
若不匹配,则对所述任意一个分区的加热管的加热温度、加热时间和加热间歇中的部分或全部进行调整。If they do not match, adjust some or all of the heating temperature, heating time and heating intervals of the heating tube in any of the zones.
在烘焙过程中也每隔预设时间(例如3秒)进行拍摄,并对每个分区所放的食材图像进行图片分割,然后分别进行图像识别,识别出食材的成熟度,以防止由于误差将食材烤糊了。对于快烤糊了的时候,及时同烤箱设备的显示界面提醒用户。During the baking process, photos are also taken every preset time (for example, 3 seconds), and the images of the ingredients placed in each partition are segmented, and then image recognition is performed separately to identify the maturity of the ingredients to prevent errors from being The ingredients are burnt. When the oven is about to burn, the display interface of the oven equipment will remind the user in a timely manner.
若烤箱设备与云服务器存在连接,则每隔3秒进行拍摄上传云服务器,云服务器对每个分区所放的食材图像进行图片分割,然后分别进行图像识别,识别出食材的成熟度。If the oven device is connected to the cloud server, it will take pictures and upload them to the cloud server every 3 seconds. The cloud server will segment the images of the ingredients in each partition, and then perform image recognition respectively to identify the maturity of the ingredients.
若烤箱设备与移动终端存在连接,对于快烤糊了的时候,还可以通过移动终端的显示界面或扬声器提醒用户。If the oven device is connected to the mobile terminal, the user can be reminded through the display interface or speaker of the mobile terminal when the oven is about to burn.
S903:在设置完成后启动所述任意一个分区的加热管。S903: After the setting is completed, start the heating tube of any one of the zones.
基于相同的发明构思,本申请提供了一种智能烹饪方法,应用于云服务器,所述方法包括:Based on the same inventive concept, this application provides an intelligent cooking method applied to a cloud server. The method includes:
S1001:接收烤箱设备发送的图像,其中所述图像是所述烤箱设备对放置在烤盘不同分区的食材进行拍摄得到的。S1001: Receive images sent by the oven device, where the images are obtained by the oven device photographing ingredients placed in different sections of the baking pan.
S1002:对不同分区的食材的图像进行识别,确定各分区食材的类别,并根据所述各分区食材的类别,确定所述各分区食材的类别对应的烹饪信息。S1002: Recognize images of food ingredients in different partitions, determine the categories of food ingredients in each zone, and determine cooking information corresponding to the types of food ingredients in each zone based on the types of food ingredients in each zone.
S1003:将所述烹饪信息发送至烤箱设备,以使烤箱设备针对任意一个分区,基于所述不同食材类别对应的所述烹饪信息,对所述任意一个分区的食材进行烹饪;其中所述烹饪信息包括烹饪温度、烹饪时间和烹饪间歇。S1003: Send the cooking information to the oven device, so that the oven device cooks the ingredients in any partition based on the cooking information corresponding to the different ingredient categories for any partition; wherein the cooking information Includes cooking temperature, cooking time and cooking intervals.
烤箱设备烹饪根据烹饪信息烹饪的过程如上述S503,此处不再赘述。The cooking process of the oven device according to the cooking information is as described in S503 above, which will not be described again here.
通过本申请一些实施例提供的智能烹饪方法,可以实现多种类别食材的同时烹饪,无需烹饪好一类食材,取出后,再烹饪另一类食材,节省了烹饪时间;智能地向用户推荐菜谱,保证了菜谱的多样性和营养均衡;实时对各食材不同烹饪时长的熟度进行监测,避免了食材烤糊的情况。在烤箱设备与云服务器连接的时候,当云服务其中的菜谱更新时,烤箱设备本地的菜谱也进行更新,在烤箱设备本地存储菜谱,以使烤箱设备在不连接云服务器的时候也可以实现智能烹饪;将烤箱设备与移动终端进行连接,可以实现了烤箱设备的 远程控制。Through the intelligent cooking method provided by some embodiments of the present application, it is possible to cook multiple types of ingredients at the same time. There is no need to cook one type of ingredients, take them out, and then cook another type of ingredients, which saves cooking time; intelligently recommend recipes to users. , ensuring the diversity and nutritional balance of recipes; monitoring the doneness of each ingredient for different cooking times in real time to avoid burning the ingredients. When the oven device is connected to the cloud server, when the recipes in the cloud service are updated, the local recipes of the oven device are also updated, and the recipes are stored locally on the oven device so that the oven device can realize intelligence even when it is not connected to the cloud server. Cooking; connecting the oven equipment to the mobile terminal can realize remote control of the oven equipment.
基于相同的发明构思,本申请一些实施例还提供一种智能烹饪装置,所述智能烹饪装置包括存储器,处理器,其中,处理器被配置为:Based on the same inventive concept, some embodiments of the present application also provide an intelligent cooking device, which includes a memory and a processor, wherein the processor is configured to:
响应于食材类别识别指令,对放置在烤盘不同分区的食材进行拍摄,并基于拍摄得到的图像确定各分区食材的类别,其中,所述烤盘的不同分区对应不同的加热管,各加热管布置在对应的分区上方;In response to the ingredient category identification instruction, the ingredients placed in different sections of the baking pan are photographed, and the categories of the ingredients in each section are determined based on the captured images, where the different sections of the baking pan correspond to different heating tubes, and each heating tube Arranged above the corresponding partition;
确定不同食材类别对应的烹饪信息,所述烹饪信息包括烹饪温度、烹饪时间和烹饪间歇;Determine cooking information corresponding to different food ingredient categories, where the cooking information includes cooking temperature, cooking time and cooking intervals;
针对任意一个分区,基于所述不同食材类别对应的所述烹饪信息,对所述任意一个分区的食材进行烹饪。For any one partition, the food materials in any one partition are cooked based on the cooking information corresponding to the different food material categories.
在一些实施例中,所述针对任意一个分区,基于对应的所述烹饪信息对所述任意一个分区的食材进行烹饪,包括:In some embodiments, for any one partition, cooking the ingredients in any one partition based on the corresponding cooking information includes:
针对任意一个分区,从确定的不同食材类别对应的烹饪信息中,确定所述任意一个分区放置的食材类别对应的烹饪信息;For any partition, determine the cooking information corresponding to the food category placed in any partition from the determined cooking information corresponding to different food material categories;
根据所述烹饪信息中的烹饪温度对所述任意一个分区的加热管的加热温度进行设置,并根据所述烹饪信息中的烹饪时间对所述任意一个分区的加热管的加热时间进行设置,以及根据所述烹饪信息中的烹饪间歇对所述任意一个分区的加热管的加热间歇进行设置;Set the heating temperature of the heating tube in any one zone according to the cooking temperature in the cooking information, and set the heating time of the heating tube in any one zone according to the cooking time in the cooking information, and Set the heating interval of the heating tube of any zone according to the cooking interval in the cooking information;
在设置完成后启动所述任意一个分区的加热管。After the setting is completed, start the heating tube in any of the zones.
在一些实施例中,所述针对任意一个分区,基于对应的所述烹饪信息对所述任意一个分区的食材进行烹饪之后,还包括:In some embodiments, after cooking the ingredients in any partition based on the corresponding cooking information, the method further includes:
响应于食材熟度识别指令,周期对所述任意一个分区的食材进行拍摄,并基于拍摄得到的图像确定所述任意一个分区中食材的熟度以及已烹饪时长;In response to the ingredient doneness recognition instruction, periodically photograph the ingredients in any one of the partitions, and determine the doneness and cooking time of the ingredients in any one of the partitions based on the captured images;
将确定的所述食材的熟度与所述烹饪信息中所述已烹饪时长对应的熟度进行匹配;Match the determined doneness of the ingredients with the doneness corresponding to the cooking time in the cooking information;
若不匹配,则对所述任意一个分区的加热管的加热温度、加热时间和加热间歇中的部分或全部进行调整。If they do not match, adjust some or all of the heating temperature, heating time and heating intervals of the heating tube in any of the zones.
在一些实施例中,所述基于拍摄得到的图像确定各分区食材的类别之前,还包括:In some embodiments, before determining the categories of ingredients in each partition based on the captured images, the method further includes:
将拍摄的图像上传至云端,并接收云服务器根据拍摄得到的图像进行识别得到的各分区食材的类别;Upload the captured images to the cloud, and receive the categories of ingredients in each partition recognized by the cloud server based on the captured images;
所述确定不同食材类别对应的烹饪信息,包括:The determination of cooking information corresponding to different food ingredient categories includes:
接收所述云服务器发送的所述不同食材类别对应的烹饪信息。Receive cooking information corresponding to the different food ingredient categories sent by the cloud server.
其中,详细步骤请参考上文方法的相关步骤的介绍,这里不再展开。Among them, please refer to the introduction of the relevant steps of the above method for detailed steps, which will not be elaborated here.
本申请一些实施例还提供一种云服务器,所述服务器包括存储器和处理器,所述处理器被配置为:Some embodiments of the present application also provide a cloud server, where the server includes a memory and a processor, and the processor is configured to:
接收烤箱设备发送的图像,其中所述图像是所述烤箱设备对放置在烤盘不同分区的食材进行拍摄得到的;Receive images sent by the oven device, where the images are obtained by the oven device photographing ingredients placed in different sections of the baking pan;
对不同分区的食材的图像进行识别,确定各分区食材的类别,并根据所述各分区食材的类别,确定所述各分区食材的类别对应的烹饪信息;Recognize images of ingredients in different partitions, determine the categories of ingredients in each zone, and determine cooking information corresponding to the categories of ingredients in each zone based on the categories of ingredients in each zone;
将所述烹饪信息发送至烤箱设备,以使烤箱设备针对任意一个分区,基于所述不同食材类别对应的所述烹饪信息,对所述任意一个分区的食材进行烹饪;其中所述烹饪信息包括烹饪温度、烹饪时间和烹饪间歇。The cooking information is sent to the oven device, so that the oven device cooks the ingredients in any partition based on the cooking information corresponding to the different ingredient categories for any partition; wherein the cooking information includes cooking Temperature, cooking time and cooking intervals.
具体的,请参考前文介绍,这里不再详细展开。For details, please refer to the previous introduction and will not go into details here.
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述在一些实施例中讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理以及实际的应用,从而使得本领域技术人员更好的使用实施方式以及适于具体使用考虑的各种不同的变形的实施方式。For convenience of explanation, the above description has been made in conjunction with specific implementation modes. However, the above discussion of some embodiments is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed. Various modifications and variations are possible in light of the above teachings. The above embodiments are selected and described to better explain the principles and practical applications, thereby enabling those skilled in the art to better use the embodiments and various modified embodiments suitable for specific use considerations.

Claims (22)

  1. 一种家居设备的控制方法,所述方法包括:A control method for home equipment, the method includes:
    基于当前家居设备存储的硬件能力信息库,确定目标家居设备,所述目标家居设备是指除所述当前家居设备之外具备第一硬件能力的家居设备,所述第一硬件能力是指所述当前家居设备待调用的硬件能力;Based on the hardware capability information database stored in the current home device, the target home device is determined. The target home device refers to a home device that has a first hardware capability in addition to the current home device. The first hardware capability refers to the The hardware capabilities to be called by the current home equipment;
    其中,所述硬件能力信息库包括多个硬件能力的描述信息,所述描述信息包括相应硬件能力对应的回调函数的函数指针和参数指示信息,所述参数指示信息用于指示所述回调函数所需的参数,所述多个硬件能力归属于多个家居设备,所述多个硬件能力包括所述第一硬件能力;Wherein, the hardware capability information library includes description information of multiple hardware capabilities. The description information includes function pointers and parameter indication information of the callback functions corresponding to the corresponding hardware capabilities. The parameter indication information is used to indicate the callback function. Required parameters, the plurality of hardware capabilities belong to multiple home devices, and the multiple hardware capabilities include the first hardware capability;
    基于所述第一硬件能力对应的回调函数的参数指示信息,确定所述第一硬件能力对应的回调函数所需的参数;Based on the parameter indication information of the callback function corresponding to the first hardware capability, determine the parameters required for the callback function corresponding to the first hardware capability;
    向所述目标家居设备发送硬件能力调用请求,所述硬件能力调用请求携带所述第一硬件能力对应的回调函数的函数指针和所需的参数,所述硬件能力调用请求用于指示所述目标家居设备调用所述第一硬件能力对应的回调函数,以通过所述第一硬件能力来执行对应的动作。Send a hardware capability call request to the target home device. The hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability. The hardware capability call request is used to indicate the target The home device calls the callback function corresponding to the first hardware capability to perform the corresponding action through the first hardware capability.
  2. 如权利要求1所述的方法,所述基于所述当前家居设备存储的硬件能力信息库,确定目标家居设备之前,还包括:The method of claim 1, before determining the target home device based on the hardware capability information library stored in the current home device, further comprising:
    对自身具备的硬件能力进行自检,以确定自检成功的硬件能力;Conduct self-test on its own hardware capabilities to determine the hardware capabilities that have succeeded in self-test;
    基于所述自检成功的硬件能力,生成并存储本地硬件能力信息库,所述本地硬件能力信息库包括所述自检成功的硬件能力的描述信息;Based on the hardware capabilities that have successfully self-tested, generate and store a local hardware capability information library, where the local hardware capability information library includes description information of the hardware capabilities that have successfully self-tested;
    获取已进行硬件能力自检的其他家居设备存储的硬件能力信息库;Obtain the hardware capability information database stored by other home devices that have performed hardware capability self-test;
    基于所述其他家居设备存储的硬件能力信息库,对所述本地硬件能力信息库进行更新,以得到所述当前家居设备存储的硬件能力信息库。Based on the hardware capability information database stored in the other home devices, the local hardware capability information database is updated to obtain the hardware capability information database stored in the current home device.
  3. 如权利要求2所述的方法,所述对自身具备的硬件能力进行自检,以确定自检成功的硬件能力,包括:The method of claim 2, wherein the self-checking of hardware capabilities possessed by oneself to determine the hardware capabilities that have succeeded in self-checking includes:
    对于自身具备的任一硬件能力,对用于提供所述任一硬件能力的硬件模块的输出电压进行采集;For any hardware capability it possesses, collect the output voltage of the hardware module used to provide any hardware capability;
    在所述输出电压超过电压阈值的情况下,确定所述任一硬件能力自检成功;In the case where the output voltage exceeds the voltage threshold, it is determined that any of the hardware capability self-tests are successful;
    在所述输出电压低于所述电压阈值的情况下,确定所述任一硬件能力自检失败。In the case where the output voltage is lower than the voltage threshold, it is determined that any hardware capability self-test fails.
  4. 如权利要求2所述的方法,所述基于所述自检成功的硬件能力,生成并存储本地硬件能力信息库,包括:The method according to claim 2, generating and storing a local hardware capability information base based on the hardware capability of successful self-test, including:
    为所述自检成功的硬件能力中的每个硬件能力设置一个回调函数;Set a callback function for each hardware capability in the hardware capabilities that are successful in the self-test;
    确定所述每个硬件能力对应的回调函数的函数指针和参数指示信息。Determine the function pointer and parameter indication information of the callback function corresponding to each hardware capability.
  5. 如权利要求2所述的方法,所述基于所述其他家居设备存储的硬件能力信息库,对所述本地硬件能力信息库进行更新,以得到所述当前家居设备存储的硬件能力信息库之后,还包括:The method of claim 2, after updating the local hardware capability information library based on the hardware capability information library stored in the other home devices to obtain the hardware capability information library stored in the current home device, Also includes:
    广播所述当前家居设备存储的硬件能力信息库,以使所述其他家居设备对自身存储的硬件能力信息库进行更新。Broadcast the hardware capability information library stored by the current home device, so that the other home devices update their own stored hardware capability information libraries.
  6. 如权利要求2所述的方法,所述基于所述其他家居设备存储的硬件能力信息库,对 所述本地硬件能力信息库进行更新,以得到所述当前家居设备存储的硬件能力信息库之后,还包括:The method of claim 2, after updating the local hardware capability information library based on the hardware capability information library stored in the other home devices to obtain the hardware capability information library stored in the current home device, Also includes:
    接收在所述当前家居设备之后进行硬件能力自检的其他家居设备广播的硬件能力信息库;Receive the hardware capability information library broadcast by other home devices that perform hardware capability self-tests after the current home device;
    基于接收到的硬件能力信息库,对所述当前家居设备存储的硬件能力信息库进行更新。Based on the received hardware capability information database, the hardware capability information database stored in the current home device is updated.
  7. 如权利要求1所述的方法,所述基于当前家居设备存储的硬件能力信息库,确定目标家居设备,包括:The method according to claim 1, determining the target home device based on the hardware capability information database stored in the current home device, including:
    基于所述当前家居设备存储的硬件能力信息库,确定具备所述第一硬件能力的候选家居设备;Based on the hardware capability information database stored in the current home device, determine candidate home devices with the first hardware capability;
    确定所述当前家居设备的位置信息;Determine the location information of the current home device;
    确定所述候选家居设备中每个家居设备的位置信息;Determine the location information of each of the candidate home devices;
    基于所述当前家居设备的位置信息以及所述候选家居设备的位置信息,从所述候选家居设备中选择距离所述当前家居设备最近的一个家居设备作为所述目标家居设备。Based on the location information of the current home device and the location information of the candidate home device, a home device closest to the current home device is selected from the candidate home devices as the target home device.
  8. 如权利要求1所述的方法,所述基于当前家居设备存储的硬件能力信息库,确定目标家居设备,包括:The method according to claim 1, determining the target home device based on the hardware capability information database stored in the current home device, including:
    基于所述当前家居设备存储的硬件能力信息库,确定具备所述第一硬件能力的候选家居设备;Based on the hardware capability information database stored in the current home device, determine candidate home devices with the first hardware capability;
    确定用户的位置信息,所述用户为使用所述当前家居设备的用户;Determine the location information of the user, who is the user using the current home device;
    确定所述候选家居设备中每个家居设备的位置信息;Determine the location information of each of the candidate home devices;
    基于所述用户的位置信息以及所述候选家居设备的位置信息,从所述候选家居设备中选择距离所述用户最近的一个家居设备作为所述目标家居设备。Based on the location information of the user and the location information of the candidate home devices, a home device closest to the user is selected from the candidate home devices as the target home device.
  9. 如权利要求1-8任一所述的方法,所述方法还包括:The method according to any one of claims 1-8, further comprising:
    接收所述目标家居设备发送的硬件能力调用请求,所述目标家居设备发送的硬件能力调用请求携带第二硬件能力对应的回调函数的函数指针和所需的参数,所述第二硬件能力是指所述目标家居设备待调用的硬件能力;Receive a hardware capability call request sent by the target home device. The hardware capability call request sent by the target home device carries the function pointer and required parameters of the callback function corresponding to the second hardware capability. The second hardware capability refers to The hardware capabilities to be called by the target home device;
    基于所述第二硬件能力对应的回调函数的函数指针和所需的参数,调用所述第二硬件能力对应的回调函数,以通过自身的所述第二硬件能力来执行相应的动作。Based on the function pointer and required parameters of the callback function corresponding to the second hardware capability, the callback function corresponding to the second hardware capability is called to perform the corresponding action through the second hardware capability itself.
  10. 一种家居设备,所述家居设备包括:A kind of home equipment, the home equipment includes:
    存储器,被配置为存储软件程序;memory configured to store software programs;
    处理器,被配置为:Processor, configured as:
    基于当前家居设备存储的硬件能力信息库,确定目标家居设备,目标家居设备是指除当前家居设备之外具备第一硬件能力的家居设备,第一硬件能力是指当前家居设备待调用的硬件能力,其中,硬件能力信息库包括多个硬件能力的描述信息,该描述信息包括相应硬件能力对应的回调函数的函数指针和参数指示信息,该参数指示信息用于指示回调函数所需的参数,该多个硬件能力归属于多个家居设备,该多个硬件能力包括第一硬件能力。Based on the hardware capability information database stored in the current home device, the target home device is determined. The target home device refers to the home device that has the first hardware capability in addition to the current home device. The first hardware capability refers to the hardware capability to be called by the current home device. , wherein the hardware capability information base includes description information of multiple hardware capabilities. The description information includes the function pointer and parameter indication information of the callback function corresponding to the corresponding hardware capability. The parameter indication information is used to indicate the parameters required by the callback function. Multiple hardware capabilities belong to multiple home devices, and the multiple hardware capabilities include the first hardware capability.
    基于第一硬件能力对应的回调函数的参数指示信息,确定第一硬件能力对应的回调函数所需的参数。Based on the parameter indication information of the callback function corresponding to the first hardware capability, the parameters required by the callback function corresponding to the first hardware capability are determined.
    向目标家居设备发送硬件能力调用请求,该硬件能力调用请求携带第一硬件能力对应的回调函数的函数指针和所需的参数,该硬件能力调用请求用于指示目标家居设备调用第一硬件能力对应的回调函数,以通过第一硬件能力来执行对应的动作。Send a hardware capability call request to the target home device. The hardware capability call request carries the function pointer and required parameters of the callback function corresponding to the first hardware capability. The hardware capability call request is used to instruct the target home device to call the first hardware capability corresponding to The callback function is used to perform the corresponding action through the first hardware capability.
  11. 如权利要求10所述的家居设备,还被配置为:The home device of claim 10, further configured to:
    在所述基于所述当前家居设备存储的硬件能力信息库,确定目标家居设备之前,还包括:Before determining the target home device based on the hardware capability information database stored in the current home device, the method further includes:
    对自身具备的硬件能力进行自检,以确定自检成功的硬件能力;Conduct self-test on its own hardware capabilities to determine the hardware capabilities that have succeeded in self-test;
    基于所述自检成功的硬件能力,生成并存储本地硬件能力信息库,所述本地硬件能力信息库包括所述自检成功的硬件能力的描述信息;Based on the hardware capabilities that have successfully self-tested, generate and store a local hardware capability information library, where the local hardware capability information library includes description information of the hardware capabilities that have successfully self-tested;
    获取已进行硬件能力自检的其他家居设备存储的硬件能力信息库;Obtain the hardware capability information database stored by other home devices that have performed hardware capability self-test;
    基于所述其他家居设备存储的硬件能力信息库,对所述本地硬件能力信息库进行更新,以得到所述当前家居设备存储的硬件能力信息库。Based on the hardware capability information database stored in the other home devices, the local hardware capability information database is updated to obtain the hardware capability information database stored in the current home device.
  12. 如权利要求11所述的家居设备,还被配置为:The home device of claim 11, further configured to:
    所述对自身具备的硬件能力进行自检,以确定自检成功的硬件能力,包括:The self-test of the hardware capabilities one has to determine the hardware capabilities that have succeeded in self-test includes:
    对于自身具备的任一硬件能力,对用于提供所述任一硬件能力的硬件模块的输出电压进行采集;For any hardware capability it possesses, collect the output voltage of the hardware module used to provide any hardware capability;
    在所述输出电压超过电压阈值的情况下,确定所述任一硬件能力自检成功;In the case where the output voltage exceeds the voltage threshold, it is determined that any of the hardware capability self-tests are successful;
    在所述输出电压低于所述电压阈值的情况下,确定所述任一硬件能力自检失败。In the case where the output voltage is lower than the voltage threshold, it is determined that any hardware capability self-test fails.
  13. 如权利要求11所述的家居设备,还被配置为:The home device of claim 11, further configured to:
    所述基于所述自检成功的硬件能力,生成并存储本地硬件能力信息库,包括:Generating and storing a local hardware capability information base based on the hardware capabilities that have been successfully self-tested includes:
    为所述自检成功的硬件能力中的每个硬件能力设置一个回调函数;Set a callback function for each hardware capability in the hardware capabilities that are successful in the self-test;
    确定所述每个硬件能力对应的回调函数的函数指针和参数指示信息。Determine the function pointer and parameter indication information of the callback function corresponding to each hardware capability.
  14. 如权利要求11所述的家居设备,还被配置为:The home device of claim 11, further configured to:
    在所述基于所述其他家居设备存储的硬件能力信息库,对所述本地硬件能力信息库进行更新,以得到所述当前家居设备存储的硬件能力信息库之后,还包括:After updating the local hardware capability information library based on the hardware capability information library stored in the other home devices to obtain the hardware capability information library stored in the current home device, it also includes:
    广播所述当前家居设备存储的硬件能力信息库,以使所述其他家居设备对自身存储的硬件能力信息库进行更新。Broadcast the hardware capability information library stored by the current home device, so that the other home devices update their own stored hardware capability information libraries.
  15. 如权利要求11所述的家居设备,还被配置为:The home device of claim 11, further configured to:
    在所述基于所述其他家居设备存储的硬件能力信息库,对所述本地硬件能力信息库进行更新,以得到所述当前家居设备存储的硬件能力信息库之后,还包括:After updating the local hardware capability information library based on the hardware capability information library stored in the other home devices to obtain the hardware capability information library stored in the current home device, it also includes:
    接收在所述当前家居设备之后进行硬件能力自检的其他家居设备广播的硬件能力信息库;Receive the hardware capability information library broadcast by other home devices that perform hardware capability self-tests after the current home device;
    基于接收到的硬件能力信息库,对所述当前家居设备存储的硬件能力信息库进行更新。Based on the received hardware capability information database, the hardware capability information database stored in the current home device is updated.
  16. 如权利要求10所述的家居设备,还被配置为:The home device of claim 10, further configured to:
    所述基于当前家居设备存储的硬件能力信息库,确定目标家居设备,包括:Determining the target home device based on the hardware capability information database stored in the current home device includes:
    基于所述当前家居设备存储的硬件能力信息库,确定具备所述第一硬件能力的候选家居设备;Based on the hardware capability information database stored in the current home device, determine candidate home devices with the first hardware capability;
    确定所述当前家居设备的位置信息;Determine the location information of the current home device;
    确定所述候选家居设备中每个家居设备的位置信息;Determine the location information of each of the candidate home devices;
    基于所述当前家居设备的位置信息以及所述候选家居设备的位置信息,从所述候选家居设备中选择距离所述当前家居设备最近的一个家居设备作为所述目标家居设备。Based on the location information of the current home device and the location information of the candidate home device, a home device closest to the current home device is selected from the candidate home devices as the target home device.
  17. 如权利要求10所述的家居设备,还被配置为:The home device of claim 10, further configured to:
    所述基于当前家居设备存储的硬件能力信息库,确定目标家居设备,包括:Determining the target home device based on the hardware capability information database stored in the current home device includes:
    基于所述当前家居设备存储的硬件能力信息库,确定具备所述第一硬件能力的候选家居设备;Based on the hardware capability information database stored in the current home device, determine candidate home devices with the first hardware capability;
    确定用户的位置信息,所述用户为使用所述当前家居设备的用户;Determine the location information of the user, who is the user using the current home device;
    确定所述候选家居设备中每个家居设备的位置信息;Determine the location information of each of the candidate home devices;
    基于所述用户的位置信息以及所述候选家居设备的位置信息,从所述候选家居设备中选择距离所述用户最近的一个家居设备作为所述目标家居设备。Based on the location information of the user and the location information of the candidate home devices, a home device closest to the user is selected from the candidate home devices as the target home device.
  18. 如权利要求10-17任一所述的家居设备,还被配置为:The home equipment according to any one of claims 10-17, further configured to:
    接收所述目标家居设备发送的硬件能力调用请求,所述目标家居设备发送的硬件能力调用请求携带第二硬件能力对应的回调函数的函数指针和所需的参数,所述第二硬件能力是指所述目标家居设备待调用的硬件能力;Receive a hardware capability call request sent by the target home device. The hardware capability call request sent by the target home device carries the function pointer and required parameters of the callback function corresponding to the second hardware capability. The second hardware capability refers to The hardware capabilities to be called by the target home device;
    基于所述第二硬件能力对应的回调函数的函数指针和所需的参数,调用所述第二硬件能力对应的回调函数,以通过自身的所述第二硬件能力来执行相应的动作。Based on the function pointer and required parameters of the callback function corresponding to the second hardware capability, the callback function corresponding to the second hardware capability is called to perform the corresponding action through the second hardware capability itself.
  19. 一种智能烹饪方法,所述方法包括:An intelligent cooking method, the method includes:
    响应于食材类别识别指令,对放置在烤盘不同分区的食材进行拍摄,并基于拍摄得到的图像确定各分区食材的类别,其中,所述烤盘的不同分区对应不同的加热管,各加热管布置在对应的分区上方;In response to the ingredient category identification instruction, the ingredients placed in different sections of the baking pan are photographed, and the categories of the ingredients in each section are determined based on the captured images, where the different sections of the baking pan correspond to different heating tubes, and each heating tube Arranged above the corresponding partition;
    确定不同食材类别对应的烹饪信息,所述烹饪信息包括烹饪温度、烹饪时间和烹饪间歇;Determine cooking information corresponding to different food ingredient categories, where the cooking information includes cooking temperature, cooking time and cooking intervals;
    针对任意一个分区,基于所述不同食材类别对应的所述烹饪信息,对所述任意一个分区的食材进行烹饪。For any one partition, the food materials in any one partition are cooked based on the cooking information corresponding to the different food material categories.
  20. 如权利要求19所述的方法,所述针对任意一个分区,基于对应的所述烹饪信息对所述任意一个分区的食材进行烹饪,包括:The method of claim 19, wherein for any partition, cooking the ingredients in any partition based on the corresponding cooking information includes:
    针对任意一个分区,从确定的不同食材类别对应的烹饪信息中,确定所述任意一个分区放置的食材类别对应的烹饪信息;For any partition, determine the cooking information corresponding to the food category placed in any partition from the determined cooking information corresponding to different food material categories;
    根据所述烹饪信息中的烹饪温度对所述任意一个分区的加热管的加热温度进行设置,并根据所述烹饪信息中的烹饪时间对所述任意一个分区的加热管的加热时间进行设置,以及根据所述烹饪信息中的烹饪间歇对所述任意一个分区的加热管的加热间歇进行设置;Set the heating temperature of the heating tube in any one zone according to the cooking temperature in the cooking information, and set the heating time of the heating tube in any one zone according to the cooking time in the cooking information, and Set the heating interval of the heating tube of any zone according to the cooking interval in the cooking information;
    在设置完成后启动所述任意一个分区的加热管。After the setting is completed, start the heating tube in any of the zones.
  21. 如权利要求19所述的方法,所述针对任意一个分区,基于对应的所述烹饪信息对所述任意一个分区的食材进行烹饪之后,还包括:The method of claim 19, after cooking the ingredients in any partition based on the corresponding cooking information, further comprising:
    响应于食材熟度识别指令,周期对所述任意一个分区的食材进行拍摄,并基于拍摄得到的图像确定所述任意一个分区中食材的熟度以及已烹饪时长;In response to the ingredient doneness recognition instruction, periodically photograph the ingredients in any one of the partitions, and determine the doneness and cooking time of the ingredients in any one of the partitions based on the captured images;
    将确定的所述食材的熟度与所述烹饪信息中所述已烹饪时长对应的熟度进行匹配;Match the determined doneness of the ingredients with the doneness corresponding to the cooking time in the cooking information;
    若不匹配,则对所述任意一个分区的加热管的加热温度、加热时间和加热间歇中的部分或全部进行调整。If they do not match, adjust some or all of the heating temperature, heating time and heating intervals of the heating tube in any of the zones.
  22. 如权利要求19所述的方法,所述基于拍摄得到的图像确定各分区食材的类别之前,还包括:The method of claim 19, before determining the categories of ingredients in each partition based on the captured images, further comprising:
    将拍摄的图像上传至云端,并接收云服务器根据拍摄得到的图像进行识别得到的各分区食材的类别;Upload the captured images to the cloud, and receive the categories of ingredients in each partition recognized by the cloud server based on the captured images;
    所述确定不同食材类别对应的烹饪信息,包括:The determination of cooking information corresponding to different food ingredient categories includes:
    接收所述云服务器发送的所述不同食材类别对应的烹饪信息。Receive cooking information corresponding to the different food ingredient categories sent by the cloud server.
PCT/CN2022/141875 2022-04-24 2022-12-26 Home device control method, home device, and smart cooking method WO2023207171A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202210456488.3A CN114755934A (en) 2022-04-24 2022-04-24 Control method of household equipment and household equipment
CN202210456488.3 2022-04-24
CN202210457638.2 2022-04-27
CN202210457638.2A CN114740746A (en) 2022-04-27 2022-04-27 Home scene recommendation method and device of home system

Publications (1)

Publication Number Publication Date
WO2023207171A1 true WO2023207171A1 (en) 2023-11-02

Family

ID=88517234

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141875 WO2023207171A1 (en) 2022-04-24 2022-12-26 Home device control method, home device, and smart cooking method

Country Status (1)

Country Link
WO (1) WO2023207171A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001350676A (en) * 2000-06-08 2001-12-21 Sharp Corp Domestic network device
CN107800702A (en) * 2017-10-31 2018-03-13 成都常明信息技术有限公司 One kind is based on Embedded Intelligent home monitoring system
CN108322372A (en) * 2018-04-24 2018-07-24 苏州宏云智能科技有限公司 Smart home is wirelessly connected hardware bridge device
CN110519134A (en) * 2019-09-03 2019-11-29 青岛海信电器股份有限公司 Home equipment control method and device, storage medium
CN110887069A (en) * 2019-11-20 2020-03-17 广东美的厨房电器制造有限公司 Cooking apparatus, control method of cooking apparatus, and computer-readable storage medium
CN114114934A (en) * 2020-09-01 2022-03-01 青岛海尔洗衣机有限公司 Control method for intelligent household system
CN114755934A (en) * 2022-04-24 2022-07-15 青岛海信智慧生活科技股份有限公司 Control method of household equipment and household equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001350676A (en) * 2000-06-08 2001-12-21 Sharp Corp Domestic network device
CN107800702A (en) * 2017-10-31 2018-03-13 成都常明信息技术有限公司 One kind is based on Embedded Intelligent home monitoring system
CN108322372A (en) * 2018-04-24 2018-07-24 苏州宏云智能科技有限公司 Smart home is wirelessly connected hardware bridge device
CN110519134A (en) * 2019-09-03 2019-11-29 青岛海信电器股份有限公司 Home equipment control method and device, storage medium
CN110887069A (en) * 2019-11-20 2020-03-17 广东美的厨房电器制造有限公司 Cooking apparatus, control method of cooking apparatus, and computer-readable storage medium
CN114114934A (en) * 2020-09-01 2022-03-01 青岛海尔洗衣机有限公司 Control method for intelligent household system
CN114755934A (en) * 2022-04-24 2022-07-15 青岛海信智慧生活科技股份有限公司 Control method of household equipment and household equipment

Similar Documents

Publication Publication Date Title
EP3211836B1 (en) Cooking state alerting method and apparatus, computer program and recording medium
US9431014B2 (en) Intelligent placement of appliance response to voice command
CN107005830B (en) Method of transmitting/receiving signal in neighbor network and electronic device thereof
WO2016058246A1 (en) Smart home gateway and smart home system
CN106647532B (en) Recommendation method and device for cooking equipment
KR20160063041A (en) Method for proximity service data and an electronic device thereof
CN106444451B (en) Food taking and placing prompting method and device in intelligent electric cooker
US20220044685A1 (en) Voice Recognition Device, Waking-Up and Responding Method of the Same, and Computer Storage Medium
CN105930533B (en) Multimedia programming methods of exhibiting and device
WO2023207171A1 (en) Home device control method, home device, and smart cooking method
CN108415293B (en) Cooking control method and device for cooking
US11765245B2 (en) Electronic device and method for performing service discovery in electronic device
CN103885352B (en) A kind of intelligent interactive method, air-conditioning, kitchen appliance and television set
WO2023193411A1 (en) Network distribution method and apparatus for devices, computer device, and storage medium
WO2016165083A1 (en) Method of sending message in local area network, local area network gateway, and wearable device
JP6495371B2 (en) refrigerator
CN111314398A (en) Equipment control method, network distribution method, system and equipment
CN115082149A (en) Electronic equipment, server and cooking equipment recommendation method
CN113467316A (en) Menu generation and execution method and device
CN107526305A (en) The control method and device of cooking appliance
CN112134936A (en) Communication connection method and device of intelligent equipment, storage medium and computer equipment
US20210191345A1 (en) Home automation (ha) system including virtual assistant audible notification based upon learned device operational pattern and related methods
KR102567454B1 (en) Electronic Device capable of Determining timeline about Cooking Task
CN114568948A (en) Cooking control method, device and system
WO2023109247A1 (en) Food storage device, server, and interface display method

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

Country of ref document: EP

Kind code of ref document: A1