CN116016006A - Household appliance and control method thereof - Google Patents
Household appliance and control method thereof Download PDFInfo
- Publication number
- CN116016006A CN116016006A CN202211621004.2A CN202211621004A CN116016006A CN 116016006 A CN116016006 A CN 116016006A CN 202211621004 A CN202211621004 A CN 202211621004A CN 116016006 A CN116016006 A CN 116016006A
- Authority
- CN
- China
- Prior art keywords
- nfc
- service
- hidl
- chip
- system service
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
The embodiment of the application provides a household electrical appliance and a control method thereof, relates to the technical field of household electrical appliances, and is used for improving flexibility of household electrical appliance configuration NFC chips. The home appliance includes: an apparatus main body; one or more near field communication, NFC, chips located within the device body; a controller communicatively coupled to the one or more NFC chips, the controller configured to: receiving a starting instruction of a first NFC chip; responding to a control instruction for starting the first NFC chip, and acquiring configuration information of the first NFC chip; according to the configuration information of the first NFC chip, a multi-NFC service starting module is controlled, and a first NFC system service is started from one or more NFC system services; and transmitting a starting instruction to a first NFC HIDL service module corresponding to the first NFC system service to be started according to the first NFC system service, and loading the first NFC HIDL service module corresponding to the first NFC system service to be started.
Description
Technical Field
The application relates to the technical field of household appliances, in particular to a household appliance and a control method thereof.
Background
Near field communication (near field communication, NFC) technology is a short-distance high-frequency wireless communication technology, plays an important role in the field of household appliances, can provide short-distance wireless connection with simplicity, low cost, safety and low power consumption, and can provide various application functions, so that a brand-new level of convenience is brought to the whole intelligent home.
The existing household electrical appliance is generally internally provided with an NFC chip, only one NFC service can be provided, and when a new NFC chip needs to be replaced for the intelligent household electrical appliance, a new version of system software needs to be developed again, so that the cost of software development and maintenance is greatly increased.
Disclosure of Invention
The application provides a household electrical appliance and a control method thereof, which are used for improving the flexibility of the household electrical appliance for configuring NFC chips.
In order to achieve the above purpose, the following technical scheme is adopted in the application.
In a first aspect, an embodiment of the present application provides an electric home appliance, including: an apparatus main body; one or more near field communication, NFC, chips located within the device body; a controller in communication with one or more NFC chips, the controller configured with an operating system comprising a multi-NFC service initiation module, one or more NFC system services, one or more NFC HIDL service modules, and one or more NFC chip driver modules, each NFC HIDL service module corresponding to one NFC system service, each NFC chip driver module corresponding to one NFC HIDL service module; a controller configured to: receiving a starting instruction of a first NFC chip; responding to a control instruction for starting the first NFC chip, and acquiring configuration information of the first NFC chip; according to the configuration information of the first NFC chip, a multi-NFC service starting module is controlled, and a first NFC system service is started from one or more NFC system services; and transmitting a starting instruction to a first NFC HIDL service module corresponding to the first NFC system service to be started according to the first NFC system service, and loading the first NFC HIDL service module corresponding to the first NFC system service to be started.
The technical scheme provided by the embodiment of the application at least brings the following beneficial effects: the home appliance provided by the application comprises a plurality of NFC chips and the multi-NFC service starting module, and when the home appliance is used, the multi-NFC service starting module starts one of the plurality of NFC system services according to the identification information of the pre-configured NFC chip. Therefore, the household electrical appliance is provided with the service modules of the NFC chips, so that the household electrical appliance can support the NFC chips and support the services of the NFC systems, and the development and maintenance cost is greatly reduced.
In some embodiments, the controller is configured to: receiving an NFC switching instruction, wherein the NFC switching instruction comprises identification information of a second NFC chip to be switched; responding to the NFC switching instruction, and acquiring configuration information of a second NFC chip; controlling the first NFC system service to stop service and starting the second NFC system service from one or more NFC system services through a multi-NFC service starting module; and transmitting a starting instruction to a second NFC HIDL service module corresponding to the second NFC system service to be started according to the second NFC system service, and loading the second NFC HIDL service module corresponding to the second NFC system service to be started.
It can be understood that, based on the multiple NFC chips and the multiple NFC service activation module included in the home appliance provided by the present application, in a scenario that the home appliance configures the multiple NFC chips, the running NFC service module may be stopped according to an NFC switching instruction, and the NFC chip indicated in the switching instruction in the multiple NFC service modules is activated. Therefore, the home appliance can flexibly switch NFC services according to the user demands, and the flexible adaptability of the home appliance is greatly improved.
In some embodiments, the controller is further configured to: and transmitting a stop instruction to a first NFC HIDL service module corresponding to the second NFC system service, and unloading the first NFC HIDL service module corresponding to the first NFC system service to be started.
In some embodiments, the controller is further configured to: receiving a first NFC reading instruction input by a user; and responding to the first NFC reading instruction, and reading NFC equipment information of the user through the first NFC system service.
In a second aspect, an embodiment of the present application provides a method for controlling a home appliance, where the method includes: receiving a starting instruction of a first NFC chip; responding to a control instruction for starting the first NFC chip, and acquiring configuration information of the first NFC chip; according to the configuration information of the first NFC chip, a multi-NFC service starting module is controlled, and a first NFC system service is started from one or more NFC system services; and transmitting a starting instruction to a first NFC HIDL service module corresponding to the first NFC system service to be started according to the first NFC system service, and loading the first NFC HIDL service module corresponding to the first NFC system service to be started.
In a third aspect, embodiments of the present application provide a controller, including: one or more processors; one or more memories; wherein the one or more memories are configured to store computer program code comprising computer instructions that, when executed by the one or more processors, cause the controller to perform the method of controlling any of the home devices provided in the second aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which includes computer instructions that, when executed on a computer, cause the computer to perform the method for controlling any of the home appliances provided in the second aspect.
In a fifth aspect, embodiments of the present invention provide a computer program product directly loadable into a memory and including software code, when loaded and executed via a computer, for performing the method of controlling any of the home appliances as provided in the second aspect.
It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer readable storage medium may be packaged together with the processor of the controller or may be packaged separately from the processor of the controller, which is not limited in this application.
The beneficial effects described in the second to fifth aspects of the present application may refer to the beneficial effect analysis of the first aspect, and are not described here in detail.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate and do not limit the invention.
Fig. 1 is an application scenario schematic diagram of a control method of a home appliance provided in an embodiment of the present application;
fig. 2 is an operating system architecture diagram of a home appliance according to an embodiment of the present application;
fig. 3 is a hardware configuration block diagram of a home appliance according to an embodiment of the present application;
fig. 4 is a flowchart of a control method of a home appliance provided in an embodiment of the present application;
fig. 5 is a logic block diagram of a control method of a home appliance according to an embodiment of the present application;
fig. 6 is a flowchart of another control method of a home appliance according to an embodiment of the present application;
fig. 7 is a logic block diagram of another control method of a home appliance according to an embodiment of the present application;
fig. 8 is a schematic hardware structure of a controller according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
It should be noted that all directional indicators (such as up, down, left, right, front, and rear … …) in the embodiments of the present invention are merely used to explain the relative positional relationship, movement, etc. between the components in a particular posture (as shown in the drawings), and if the particular posture is changed, the directional indicator is changed accordingly.
The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the description of the present application, it should be noted that, unless explicitly stated and limited otherwise, the terms "connected," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art in a specific context. In addition, when describing a pipeline, the terms "connected" and "connected" as used herein have the meaning of conducting. The specific meaning is to be understood in conjunction with the context.
In the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
At present, more and more home appliance manufacturers apply the NFC technology to the home appliances, but only one NFC chip is usually configured in the home appliances, and only one NFC service can be provided.
Based on this, the embodiment of the application provides a home appliance, which includes a plurality of NFC chips and a multi-NFC service activation module, where the multi-NFC service activation module may activate one of a plurality of NFC system services according to identification information of the pre-configured NFC chip when the home appliance is used. Therefore, the household electrical appliance is provided with the service modules of the NFC chips, so that the household electrical appliance can support the NFC chips and support the services of the NFC systems, and the development and maintenance cost is greatly reduced.
In the embodiment of the present application, the NFC chip may be all NFC chip models that are currently available in the market, which is not limited.
Fig. 1 is an application scenario schematic diagram of a control method of a home appliance provided in some embodiments of the present application. As shown in fig. 1, the application scenario includes a home appliance 1 and an NFC device 2.
The home appliance 1 refers to various electric and electronic appliances used in households and the like. For example, the home appliance 1 shown in fig. 1 may be an air conditioner, a television, a washing machine, a sound, etc., and the home appliance should have at least one NFC chip. The specific form of the home appliance 1 is not particularly limited in this application.
The NFC device 2 may be a remote controller, a mobile phone, a tablet computer, a personal computer (personal computer, PC), a personal digital assistant (personal digital assistant, PDA), a smart watch, a netbook, a wearable electronic device, or the like, or may be a terminal device having a network communication function in other forms, and the NFC device should have an NFC reading function. The NFC device 2 shown in fig. 1 is only one example of the NFC device 2, and the specific form of the NFC device 2 is not particularly limited in the present application.
In some embodiments, the user may control the home device 1 with the NFC device 2. For example, the home appliance is a refrigerator, the NFC device is a mobile phone, and the user performs touch sensing on the mobile phone and the refrigerator to establish communication connection. After the mobile phone establishes communication connection with the refrigerator, a user can control the refrigerator through the mobile phone.
Fig. 2 is an operating system architecture diagram of a home appliance according to an exemplary embodiment of the present application. As shown in fig. 2, from top to bottom, the NFC API interface, the multi-NFC service activation module, the plurality of NFC system services, the plurality of NFC HIDL service modules, and the plurality of NFC chip driving modules are respectively.
The starting process of the operating system of the home appliance is a process from bottom to top. After the home appliance is started, the NFC chip driving module is loaded to control the running of the NFC chip, hardware parameters and the like of the NFC chip are abstracted, and the NFC HIDL service module is started. The NFC HIDL service module provides a hardware interface for NFC system service, and after the NFC HIDL service module is started, the NFC system service is started. After the NFC system service is started, a multi-NFC service starting module is loaded to flexibly adapt to a plurality of NFC HIDL service modules. After all the NFC related modules are started, an application program in the NFC device can switch the NFC chip through the NFC API interface.
Fig. 3 is a hardware configuration diagram of a home appliance according to an exemplary embodiment of the present application. As shown in fig. 3, the home appliance 100 includes: the controller 150, the multi-NFC service enabling module 160, a plurality of NFC chips, such as the NFC chip 111, the NFC chip 112, etc., a plurality of NFC system services, such as the NFC system service 121, the NFC system service 122, etc., a plurality of NFC driving modules, such as the NFC driving module 131, the NFC driving module 132, etc., a plurality of NFC HIDL (hardware interface fefinition language, HIDL) service modules, such as the NFC HIDL service module 141, the NFC HIDL service module 142, etc.
The NFC chips are respectively connected to the controller 150, and are used for supporting the communication function of the home appliance. Optionally, part of the NFC chip product contains an encryption logic circuit and an encryption/decryption module, so that the NFC chip may also encrypt/decrypt communications of the home appliance.
In some embodiments, the plurality of NFC chips may be pre-written with identification information for controlling the home device to perform specific functions, including, but not limited to, power on, power off, mode, wind speed, and the like. Optionally, the implementation form of the identification information stored in the NFC chip includes uniform resource locator (UniformResource Locator, URL) link information. Optionally, each identification information corresponds to a function, and the NFC chip may store different identification information to control the home appliance to perform different functions.
The multi NFC service activation module 160 is connected to the controller 150 and is configured to control activation or deactivation of a plurality of NFC system services.
The plurality of NFC system services are respectively connected to the controller 150 and are used for providing the plurality of NFC system services so as to control the start or stop of the NFC system services through the multi-NFC service starting module.
The plurality of NFC driving modules are respectively connected to the controller 150, and the NFC driving modules are used for ensuring normal operation of the NFC chip in the home appliance.
The plurality of NFC HIDL service modules are respectively connected to the controller 150, and the NFC HIDL service modules control the NFC chip through the NFC driving module.
In the embodiment shown in the present application, the controller 150 refers to a device that can generate an operation control signal according to a command operation code and a timing signal, and instruct the air conditioning system to execute a control command. By way of example, the controller 150 may be a central processing unit (central processing unit, CPU), a general purpose processor network processor (network processor, NP), a digital signal processor (digital signal processing, DSP), a microprocessor, a microcontroller, a programmable logic device (programmable logic device, PLD), or any combination thereof. The controller 150 may also be other devices with processing functions, such as a circuit, a device, or a software module, which is not limited in any way by the embodiments of the present application.
In addition, the controller 150 may be used to control the operation of various components within the home appliance such that the various components of the home appliance operate to perform various predetermined functions of the home appliance, such as a baking function of a smart oven, etc.
Optionally, as shown in fig. 3, the home device 100 may further include a communicator 180 and a memory 170.
In some embodiments, the communicator 180 is configured to establish a communication connection with other network entities, such as with a terminal device. The communicator 180 may include a Radio Frequency (RF) module, a cellular module, a wireless fidelity (wireless fidelity, WIFI) module, a GPS module, and the like. Taking an RF module as an example, the RF module may be used for receiving and transmitting signals, in particular, transmitting the received information to the controller 150 for processing; in addition, a signal generated by the controller 150 is transmitted. Typically, the RF circuitry may include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (low noise amplifier, LNA), a duplexer, and the like.
Those skilled in the art will appreciate that the hardware configuration shown in fig. 3 is not limiting and that an electrical home device may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
The embodiments provided in the present application are specifically described below with reference to the drawings attached to the specification.
As shown in fig. 4, an embodiment of the present application provides a control method of a home appliance, which is applied to the controller 150 in the home appliance shown in fig. 3, and the method includes the following steps:
s101, receiving a starting instruction of a first NFC chip.
The first NFC chip is one of a plurality of NFC chips of the household appliance. For example, the first NFC chip may be the NFC chip 111 or the NFC chip 112 in fig. 3, or the like.
It should be noted that, a home appliance having an NFC chip will generally default to one NFC chip. When the home appliance is activated for the first time, or when the home appliance is started each time, the controller of the home appliance may receive a start instruction of the NFC chip (i.e., the first NFC chip) configured by default, so as to provide a communication function for the home appliance by starting the NFC chip.
In some embodiments, the home device is powered on, and the controller receives a start instruction of the first NFC chip to provide a communication function for the home device by starting the first NFC chip.
For example, if a pre-configured NFC chip in the refrigerator may be the NFC chip 111 in fig. 3, the controller may obtain a start instruction of the NFC chip 111 when the refrigerator is started. Alternatively, if the NFC chip preconfigured in the air conditioner may be the NFC chip 112 in fig. 3, the controller may obtain the start instruction of the NFC chip 112 when the air conditioner is started.
S102, responding to a control instruction for starting the first NFC chip, and acquiring configuration information of the first NFC chip.
The configuration information of the first NFC chip may be information such as a model number of the NFC chip and a UID internal code of the chip.
Optionally, the memory of the home appliance may store configuration information of a plurality of NFC chips of the home appliance in advance. Thus, the controller may acquire the identification information of the first NFC chip from the configuration information of the plurality of NFC chips.
In some embodiments, the controller obtains the configuration information in the first NFC chip according to the received start instruction of the first NFC chip.
And S103, controlling a multi-NFC service starting module according to the configuration information of the first NFC chip, and starting the first NFC system service from one or more NFC system services.
The first NFC system service is one of a plurality of NFC system services of the household appliance.
Optionally, the plurality of NFC chips in the home device have a one-to-one correspondence with the plurality of NFC system services.
Illustratively, NFC chip 111 in fig. 3 corresponds to NFC system service 121, and NFC chip 112 corresponds to NFC system service 122.
Thus, if the first NFC chip is the NFC chip 111 in fig. 3, based on the configuration information of the NFC chip 111, the controller may determine the NFC system service 121 as the first NFC system service, so that the controller starts the NFC system service 121 to provide the first NFC system service.
In some embodiments, according to the configuration information of the first NFC chip, the multi-NFC service activation module activates a first NFC system service corresponding to the first NFC chip.
S104, transmitting a starting instruction to a first NFC HIDL service module corresponding to the first NFC system service to be started according to the first NFC system service, and loading the first NFC HIDL service module corresponding to the first NFC system service to be started.
The first NFC HIDL service module is one of a plurality of NFC HIDL service modules of the home appliance.
Optionally, the plurality of NFC system services in the home device and the plurality of NFC HIDL service modules have a one-to-one correspondence.
Illustratively, NFC system service 121 in fig. 3 corresponds to NFC HIDL service module 141 and NFC system service 122 corresponds to NFC HIDL service module 142.
Thus, if the first NFC system service is the NFC system service 121 in fig. 3, the controller may determine the NFC HIDL service module 141 as the first NFC HIDL service module based on the NFC system service 121.
In some embodiments, after the first NFC HIDL service module is started, the controller loads a first NFC drive module corresponding to the plurality of NFC drive modules, and sends a start instruction to the first NFC HIDL service module to start the first NFC HIDL service module.
The plurality of NFC HIDL service modules in the household appliance have a one-to-one correspondence with the plurality of NFC driving modules.
Exemplary, the NFC HIDL service module 141 in fig. 3 corresponds to the NFC driving module 131, and the NFC HIDL service module 142 corresponds to the NFC driving module 132.
Thus, if the first NFC HIDL service module is the NFC HIDL service module 141 in fig. 3, the controller may determine the NFC driving module 131 as the first NFC driving module.
Further, the first NFC HIDL service module controls the first NFC chip through the first NFC driving module.
In some embodiments, the controller may receive a first NFC read instruction entered by a user. Further, in response to the first NFC reading instruction, NFC device information of the user is read through the first NFC system service.
In some embodiments, when the user places the NFC device within the communication range of the NFC chip in the home device, for example, the user touches the home device with a preset NFC sensing location on the home device, so as to input the first NFC reading instruction to the home device. It should be understood that the first NFC type is the type of NFC in the NFC device of the user.
In some embodiments, the home device may also receive an instruction from the user that the NFC device is connected to the home device.
Specifically, the user may initiate an NFC service function of the NFC device, so that the NFC device is in a to-be-connected state, and in this state, the NFC device may acquire other NFC devices within a nearby NFC communication range. In addition, in the running process of the home appliance, the home appliance is always in the NFC standby connection state, or the user can also start the NFC service function of the home appliance, so that the home appliance is also in the NFC standby connection state. Thus, the home device can establish a communication connection with the NFC device when the NFC device and the home device are within NFC communication range.
In some embodiments, after the home device and the NFC device establish a communication connection, the controller provides an NFC service for the NFC device through a first NFC system service, and acquiring NFC device information includes: information such as a MAC address (media access control address, MAC), a device type, a machine code and the like, and based on the NFC device information, the home appliance and the NFC device are successfully bound.
In some embodiments, the home device provides NFC services in the NFC device according to the start-up procedure shown in fig. 2.
It should be noted that, after the identification information stored in the NFC chip of the home appliance is transmitted to the NFC device through the near field communication connection, an application program of the NFC device may use the identification information to serve a user, so as to implement that the NFC chip in the home appliance provides NFC service for the NFC device.
The NFC device is a mobile phone, and the home appliance is a refrigerator. The user opens an APP, such as a smart home APP, on the handset for operating the home device. The user selects a connection mode at the intelligent home APP operation interface, and places the mobile phone in the communication range of the refrigerator NFC chip, so that NFC communication connection is established between the mobile phone and the refrigerator. After the NFC communication connection of the mobile phone and the refrigerator is completed, the refrigerator acquires information such as the MAC of the mobile phone, the model of the mobile phone and the like, and then the mobile phone and the air conditioner are successfully bound.
The home appliance provided by the application comprises a plurality of NFC chips and the multi-NFC service starting module, and when the home appliance is used, the multi-NFC service starting module starts one of the plurality of NFC system services according to the identification information of the pre-configured NFC chip. Therefore, the household electrical appliance is provided with the service modules of the NFC chips, so that the household electrical appliance can support the NFC chips and support the services of the NFC systems, and the development and maintenance cost is greatly reduced.
The following describes the complete flow of the control method of the home appliance by way of example in combination with a logic block diagram:
as shown in fig. 5, when the home appliance has an NFC chip according to the embodiment shown in fig. 4, the control procedure includes:
the home appliance is started, and a user touches the NFC chip with default configuration in the home appliance by the NFC device and acquires configuration information in the NFC chip. And the multi-NFC service starting module starts NFC system services corresponding to the NFC chip according to the configuration information of the NFC chip. After the NFC system service is started, a corresponding NFC HIDL service module is started, and a corresponding NFC chip driving module is loaded. After all NFC-related modules are started, NFC chips configured by default in the household appliances provide control services for application programs of the NFC equipment.
In some embodiments, as shown in fig. 6, the method may further comprise the steps of:
s201, receiving an NFC switching instruction, wherein the NFC switching instruction comprises identification information of a second NFC chip to be switched.
When the home appliance is running the first NFC chip, the second NFC chip is another one of the plurality of NFC chips of the home appliance except the first NFC chip.
It should be understood that, as shown in fig. 3, if the first NFC chip is the NFC chip 111, the second NFC chip may be the NFC chip 112. If the first NFC chip is the NFC chip 112, the second NFC chip is the NFC capable chip 111.
In some embodiments, the user may issue a switch instruction to switch the NFC chip to the home device through an application in the NFC device. The switching instruction includes identification information of the second NFC chip to be switched.
Thus, if the second NFC chip is the NFC chip 112 in fig. 3, the controller receives the NFC switching instruction input by the user, and determines the type of the NFC chip based on the identification information of the second NFC chip in the NFC switching instruction.
S202, responding to an NFC switching instruction, and acquiring configuration information of a second NFC chip.
In some embodiments, the controller obtains configuration information of the second NFC chip according to the NFC switching instruction.
For example, if the running NFC chip is the NFC chip 111, the controller obtains the configuration information of the NFC chip 111 after receiving the NFC switching instruction.
S203, controlling the first NFC system service to stop service and starting the second NFC system service from one or more NFC system services through the multi-NFC service starting module.
In some embodiments, after obtaining the configuration information of the second NFC chip, the controller sends a stop instruction to a multi-NFC service activation module in the home appliance, where the multi-NFC service activation module controls the running first NFC system service to stop running.
Further, after the running first NFC system service stops running, the first NFC driving module is uninstalled, and the running first NFC HIDL service stops running.
For example, if the running NFC chip is the NFC chip 111, the controller sends a stop instruction to the multi-NFC service activation module in the home appliance, and the multi-NFC service activation module controls the NFC system service 121 to stop running. After the NFC system service 121 stops running, the NFC driving module 131 is uninstalled, and the NFC HIDL service module 141 stops running.
In some embodiments, after the running first NFC system service stops running, the controller sends a start instruction to the multi-NFC service activation module, and then the multi-NFC service activation module activates the second NFC system service according to the configuration information of the second NFC chip.
It should be appreciated that if the first NFC system service is NFC system service 121, the second NFC system service may be NFC system service 122, as shown in fig. 3. If the first NFC system service is NFC system service 122, the second NFC system service may be NFC system service 121.
For example, after the NFC system service 121 stops running, the controller sends a start instruction to the multi-NFC service start module in the home device, and the multi-NFC service start module starts the NFC system service 122 according to the NFC chip 112.
S204, transmitting a starting instruction to a second NFC HIDL service module corresponding to the second NFC system service to be started according to the second NFC system service, and loading the second NFC HIDL service module corresponding to the second NFC system service to be started.
In some embodiments, after the second NFC system service is started, the second NFC driver module is loaded.
It should be appreciated that, as shown in fig. 3, if the first NFC driving module is the NFC driving module 131, the second NFC system service may be the NFC driving module 132. If the first NFC driving module is the NFC driving module 132, the second NFC driving module may be the NFC driving module 131.
Illustratively, after the NFC system service 122 is booted, the NFC driver module 132 is loaded.
In some embodiments, after the second NFC driver module is started, the controller sends a start instruction to the second NFC HIDL service module, and starts the second NFC HIDL service module.
It should be understood that, as shown in fig. 3, if the first NFC HIDL service module is the NFC HIDL service module 141, the second NFC HIDL service module may be the NFC HIDL service module 142. If the first NFC HIDL service module is the NFC HIDL service module 142, the second NFC HIDL service module may be the NFC HIDL service module 141.
Illustratively, after the NFC system service 122 is started, the controller sends a start instruction to the NFC HIDL service module 142 and starts the NFC HIDL service module 142.
It can be understood that, based on the plurality of NFC chips and the plurality of NFC service modules included in the home appliance provided by the present application, in a scenario that the home appliance configures the plurality of NFC chips, the running NFC service module may be stopped according to an NFC switching instruction, and the NFC chip indicated in the switching instruction in the plurality of NFC service modules is started. Therefore, the home appliance can flexibly switch NFC services according to the user demands, and the flexible adaptability of the home appliance is greatly improved.
As shown in fig. 7, when the home appliance has a plurality of NFC chips, for example, two NFC chips, based on the embodiment shown in fig. 4, the control procedure includes:
the home appliance is started, a user switches NFC chips in the home appliance through an application program in the NFC equipment, and according to the information of the switched NFC chips, the multi-NFC service starting module controls running NFC system service to stop running, and the running NFC HIDL service module is stopped, and the running NFC chip driving module is unloaded. After the running NFC chip driving module is unloaded, the multi-NFC service starting module starts corresponding NFC system services according to the configuration information of the NFC chip which is required to be switched by a user, starts a corresponding NFC HIDL service module and loads the corresponding NFC chip driving module. After all NFC related modules are started, the NFC chip after being switched in the household electrical appliance provides control service for the application program of the NFC equipment.
It can be seen that the foregoing description of the solution provided by the embodiments of the present application has been presented mainly from a method perspective. To achieve the above-mentioned functions, embodiments of the present application provide corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The embodiment of the application may divide the functional modules of the controller according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. Optionally, the division of the modules in the embodiments of the present application is schematic, which is merely a logic function division, and other division manners may be actually implemented.
The embodiment of the present application further provides a schematic hardware structure of a controller, as shown in fig. 8, where the controller 150 includes a processor 3001, and optionally, a memory 170 and a communication interface 3003 connected to the processor 3001. The processor 3001, the memory 170, and the communication interface 3003 are connected by a bus 3004.
The processor 3001 may be a central processing unit (central processing unit, CPU), a general purpose processor network processor (network processor, NP), a digital signal processor (digital signal processing, DSP), a microprocessor, a microcontroller, a programmable logic device (programmable logic device, PLD), or any combination thereof. The processor 3001 may also be any other apparatus having processing functionality, such as a circuit, a device, or a software module. The processor 3001 may also include a plurality of CPUs, and the processor 3001 may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, or processing cores for processing data (e.g., computer program instructions).
The memory 170 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), a compact disc read-only memory (compact disc read-only memory) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, as the embodiments of the present application are not limited in this regard. The memory 170 may be separate or integrated with the processor 3001. Wherein the memory 170 may contain computer program code. The processor 3001 is configured to execute computer program codes stored in the memory 170, thereby implementing a control method for a home appliance provided in an embodiment of the present application.
The communication interface 3003 may be used to communicate with other devices or communication networks (e.g., ethernet, radio access network (radio access network, RAN), wireless local area network (wireless local area networks, WLAN), etc.). The communication interface 3003 may be a module, a circuit, a transceiver, or any device capable of enabling communications.
The embodiment of the invention also provides a computer readable storage medium, which comprises computer execution instructions, when the computer execution instructions run on a computer, the computer is caused to execute the control method of the household appliance provided by the embodiment.
The embodiment of the invention also provides a computer program product which can be directly loaded into a memory and contains software codes, and the computer program product can realize the control method of the household appliance provided by the embodiment after being loaded and executed by a computer.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and the division of modules or units, for example, is merely a logical function division, and other manners of division are possible when actually implemented. For example, multiple units or components may be combined or may be integrated into another device, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and the parts shown as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed in a plurality of different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the method described in the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (8)
1. An electric home appliance, characterized in that it comprises:
an apparatus main body;
one or more near field communication, NFC, chips located within the device body;
a controller in communication connection with the one or more NFC chips, the controller configured with an operating system, the operating system including a multi-NFC service activation module, one or more NFC system services, one or more NFC HIDL service modules, and one or more NFC chip driver modules, each NFC HIDL service module corresponding to one NFC system service, each NFC chip driver module corresponding to one NFC HIDL service module;
the controller is configured to:
receiving a starting instruction of a first NFC chip;
responding to a control instruction for starting the first NFC chip, and acquiring configuration information of the first NFC chip;
controlling the multi-NFC service starting module according to the configuration information of the first NFC chip, and starting a first NFC system service from the one or more NFC system services;
and transmitting a starting instruction to a first NFC HIDL service module corresponding to the first NFC system service to be started according to the first NFC system service, and loading the first NFC HIDL service module corresponding to the first NFC system service to be started.
2. The home device of claim 1, wherein the controller is configured to:
receiving an NFC switching instruction, wherein the NFC switching instruction comprises identification information of a second NFC chip to be switched;
responding to the NFC switching instruction, and acquiring configuration information of a second NFC chip;
controlling, by the multi-NFC service activation module, the first NFC system service to stop serving, and activating a second NFC system service from the one or more NFC system services;
and transmitting a starting instruction to a second NFC HIDL service module corresponding to the second NFC system service to be started according to the second NFC system service, and loading the second NFC HIDL service module corresponding to the second NFC system service to be started.
3. The home device of claim 2, wherein the controller is further configured to:
transmitting a stop instruction to a first NFC HIDL service module corresponding to the second NFC system service, and unloading the first NFC HIDL service module corresponding to the first NFC system service to be started.
4. A home appliance according to any of claims 1 to 3, wherein the controller is further configured to:
receiving a first NFC reading instruction input by a user;
and responding to the first NFC reading instruction, and reading NFC equipment information of the user through a first NFC service module.
5. A method for controlling a home appliance, the method comprising:
receiving a starting instruction of a first NFC chip;
responding to a control instruction for starting the first NFC chip, and acquiring configuration information of the first NFC chip;
controlling the multi-NFC service starting module according to the configuration information of the first NFC chip, and starting a first NFC system service from the one or more NFC system services;
and transmitting a starting instruction to a first NFC HIDL service module corresponding to the first NFC system service to be started according to the first NFC system service, and loading the first NFC HIDL service module corresponding to the first NFC system service to be started.
6. The method of claim 5, wherein the method further comprises:
receiving an NFC switching instruction, wherein the NFC switching instruction comprises identification information of a second NFC chip to be switched;
responding to the NFC switching instruction, and acquiring configuration information of a second NFC chip;
controlling, by the multi-NFC service activation module, the first NFC system service to stop serving, and activating a second NFC system service from the one or more NFC system services;
and transmitting a starting instruction to a second NFC HIDL service module corresponding to the second NFC system service to be started according to the second NFC system service, and loading the second NFC HIDL service module corresponding to the second NFC system service to be started.
7. The method of claim 5, wherein the method further comprises:
transmitting a stop instruction to a first NFC HIDL service module corresponding to the second NFC system service, and unloading the first NFC HIDL service module corresponding to the first NFC system service to be started.
8. The method according to any one of claims 5 to 7, further comprising:
receiving a first NFC reading instruction input by a user;
and responding to the first NFC reading instruction, and reading NFC equipment information of a user through the first NFC system service.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211621004.2A CN116016006A (en) | 2022-12-05 | 2022-12-05 | Household appliance and control method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211621004.2A CN116016006A (en) | 2022-12-05 | 2022-12-05 | Household appliance and control method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116016006A true CN116016006A (en) | 2023-04-25 |
Family
ID=86025869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211621004.2A Pending CN116016006A (en) | 2022-12-05 | 2022-12-05 | Household appliance and control method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116016006A (en) |
-
2022
- 2022-12-05 CN CN202211621004.2A patent/CN116016006A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3178146B1 (en) | Power broker module | |
US8483261B2 (en) | Apparatus and method for controlling universal IC card in complex terminal | |
US8942623B2 (en) | Reducing NFC peer mode connection times | |
EP2765483B1 (en) | Method and device for controlling shutdown of terminal | |
US20210271215A1 (en) | Home appliance control system and home appliance | |
KR20190065101A (en) | An electronic device for transmitting and receiving data in a wireless communication system and a method thereof | |
EP2291741A1 (en) | System and method of reducing factory program time for wireless devices | |
CN102693142A (en) | Network adaptation method and device | |
CN110853323B (en) | Upgrading method and device for remote control equipment | |
CN116016006A (en) | Household appliance and control method thereof | |
KR20090083103A (en) | Dual mode terminal and method for processing data service thereof | |
JP5392511B2 (en) | Data card, method for data card reporting port, and method for booting data card | |
KR101631875B1 (en) | Communications terminal and control method thereof | |
EP3048858B1 (en) | Wireless customer premise equipment and accessing method therefor | |
CN114124595B (en) | Method for connecting household electrical appliance to network | |
CN104252318A (en) | Data storing and processing method, device and terminal | |
CN112055400B (en) | Electronic device and system for electronic device | |
CN104519598A (en) | Information processing method and first electronic device | |
KR100706409B1 (en) | Method for booting a mobile terminal employing both wcdma and cdma | |
US12058775B2 (en) | Electronic device multiple sim and operation method thereof | |
CN108064035B (en) | Communication control method and device of electronic equipment and electronic equipment | |
KR20220106556A (en) | Electronic device multiple sim and method for operating thereof | |
CN116760518A (en) | Switching method of sounding reference signal, communication equipment, electronic equipment and medium | |
KR101520481B1 (en) | Automatic installable communication terminal communication system with the same and method for installing thereof | |
KR100565317B1 (en) | Method and apparatus of selecting antenna in usim card for mobile phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |