CN116016006A - A kind of household electrical appliance and its control method - Google Patents
A kind of household electrical appliance and its control method 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
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000004891 communication Methods 0.000 claims abstract description 33
- 230000004913 activation Effects 0.000 claims description 10
- 230000003213 activating effect Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 32
- 230000015654 memory Effects 0.000 description 22
- 238000012545 processing Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 11
- 238000004590 computer program Methods 0.000 description 10
- 238000012423 maintenance Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Landscapes
- Selective Calling Equipment (AREA)
Abstract
Description
技术领域technical field
本申请涉及家电设备技术领域,尤其涉及一种家电设备及其控制方法。The present application relates to the technical field of household appliances, in particular to a household appliance and a control method thereof.
背景技术Background technique
近场通信NFC(near field communication,NFC)技术是一种短距离的高频无线通信技术,在家电设备领域中,NFC技术发挥着重要作用,其不仅可以提供简单、低成本、安全、低功耗的近距离无线连接,还可以提供诸多应用功能,从而为整个智能家居带来了全新层次的便捷性。NFC (near field communication, NFC) technology is a short-distance high-frequency wireless communication technology. In the field of home appliances, NFC technology plays an important role. It can not only provide simple, low-cost, safe, low-power It can also provide many application functions, thus bringing a new level of convenience to the entire smart home.
现有家电设备通常内置一种NFC芯片,只能提供一种NFC服务,当需要为智能家电设备更换新的NFC芯片时,需要重新开发一版新的系统软件,极大的增加了软件开发和维护的成本。Existing home appliances usually have a built-in NFC chip and can only provide one NFC service. When it is necessary to replace a new NFC chip for a smart home appliance, a new version of the system software needs to be redeveloped, which greatly increases the time spent on software development and The cost of maintenance.
发明内容Contents of the invention
本申请提供一种家电设备及其控制方法,用于提升家电设备配置NFC芯片的灵活性。The present application provides a household electrical appliance and a control method thereof, which are used to improve the flexibility of configuring an NFC chip in the household electrical appliance.
为了达到上述目的,本申请采用如下技术方案。In order to achieve the above purpose, the present application adopts the following technical solutions.
第一方面,本申请实施例提供一种家电设备,该家电设备包括:设备主体;位于设备主体内的一个或多个近场通信NFC芯片;与一个或多个NFC芯片通信连接的控制器,控制器配置有操作系统,操作系统包括多NFC服务启动模块、一个或多个NFC系统服务、一个或多个NFC HIDL服务模块以及一个或多个NFC芯片驱动模块,每个NFC HIDL服务模块对应一个NFC系统服务,每个NFC芯片驱动模块对应一个NFC HIDL服务模块;控制器,被配置为:接收第一NFC芯片的启动指令;响应于启动第一NFC芯片的控制指令,获取第一NFC芯片的配置信息;根据第一NFC芯片的配置信息,控制多NFC服务启动模块,从一个或多个NFC系统服务中启动第一NFC系统服务;根据第一NFC系统服务,向与待启动的第一NFC系统服务对应的第一NFC HIDL服务模块传输启动指令,以及加载与待启动的第一NFC系统服务对应的第一NFCHIDL服务模块。In the first aspect, the embodiment of the present application provides a household electrical appliance, which includes: a device main body; one or more near-field communication NFC chips located in the device main body; a controller communicatively connected to the one or more NFC chips, The controller is equipped with an operating system, and the operating system includes multiple NFC service startup modules, one or more NFC system services, one or more NFC HIDL service modules, and one or more NFC chip driver modules, and each NFC HIDL service module corresponds to a NFC system service, each NFC chip driver module corresponds to an NFC HIDL service module; the controller is configured to: receive the start instruction of the first NFC chip; respond to the control instruction of starting the first NFC chip, and obtain the first NFC chip. Configuration information; according to the configuration information of the first NFC chip, control the multi-NFC service startup module, and start the first NFC system service from one or more NFC system services; according to the first NFC system service, to the first NFC to be started The first NFC HIDL service module corresponding to the system service transmits the startup command, and loads the first NFCHIDL service module corresponding to the first NFC system service to be started.
本申请实施例提供的技术方案至少带来以下有益效果:本申请提供的家电设备中包括多个NFC芯片以及多NFC服务启动模块,可以在使用家电设备时,多NFC服务启动模块根据预先配置的NFC芯片的识别信息启动多个NFC系统服务中的一个NFC系统服务。如此,家电设备增加了多个NFC芯片的服务模块,从而可以使得家电设备能够支持多个NFC芯片,并支持多种NFC系统服务,极大降低了开发和维护的成本。The technical solution provided by the embodiment of the present application brings at least the following beneficial effects: the home appliance provided by the present application includes a plurality of NFC chips and a multi-NFC service activation module, and when the home appliance is used, the multi-NFC service activation module can The identification information of the NFC chip starts an NFC system service among multiple NFC system services. In this way, the service module of multiple NFC chips is added to the home appliance, so that the home appliance can support multiple NFC chips and multiple NFC system services, which greatly reduces the cost of development and maintenance.
在一些实施例中,控制器,被配置为:接收NFC切换指令,NFC切换指令中包括待切换的第二NFC芯片的识别信息;响应于NFC切换指令,获取第二NFC芯片的配置信息;通过多NFC服务启动模块控制第一NFC系统服务停止服务,以及从一个或多个NFC系统服务中启动第二NFC系统服务;根据第二NFC系统服务,向与待启动的第二NFC系统服务对应的第二NFCHIDL服务模块传输启动指令,以及加载与待启动的第二NFC系统服务对应的第二NFC HIDL服务模块。In some embodiments, the controller is configured to: receive an NFC switching instruction, the NFC switching instruction includes the identification information of the second NFC chip to be switched; respond to the NFC switching instruction, and obtain the configuration information of the second NFC chip; by Many NFC service start modules control the first NFC system service stop service, and start the second NFC system service from one or more NFC system services; The second NFCHIDL service module transmits the startup instruction, and loads the second NFC HIDL service module corresponding to the second NFC system service to be started.
可以理解,基于本申请提供的家电设备中包括的多个NFC芯片以及多NFC服务启动模块,在家电设备配置多个NFC芯片的场景下,可以根据NFC切换指令,停止运行正在运行的NFC服务模块,并启动多个NFC服务模块中的该切换指令中指示的NFC芯片。如此,可以实现家电设备根据用户需求灵活切换NFC服务,极大的增加了家电设备的灵活适配性。It can be understood that based on the multiple NFC chips and multiple NFC service startup modules included in the home appliance provided by this application, in the scenario where the home appliance is configured with multiple NFC chips, the running NFC service module can be stopped according to the NFC switching instruction , and start the NFC chip indicated in the switching instruction in multiple NFC service modules. In this way, the home appliance can flexibly switch NFC services according to user needs, which greatly increases the flexibility and adaptability of the home appliance.
在一些实施例中,控制器,还被配置为:向第二NFC系统服务对应的第一NFC HIDL服务模块传输停止指令,以及卸载与待启动的第一NFC系统服务对应的第一NFC HIDL服务模块。In some embodiments, the controller is further configured to: transmit a stop instruction to the first NFC HIDL service module corresponding to the second NFC system service, and uninstall the first NFC HIDL service corresponding to the first NFC system service to be started module.
在一些实施例中,控制器,还被配置为:接收用户输入的第一NFC读取指令;响应于第一NFC读取指令,通过第一NFC系统服务,读取用户的NFC设备信息。In some embodiments, the controller is further configured to: receive a first NFC read instruction input by the user; and read the user's NFC device information through the first NFC system service in response to the first NFC read instruction.
第二方面,本申请实施例提供了一种家电设备的控制方法,该方法包括:接收第一NFC芯片的启动指令;响应于启动第一NFC芯片的控制指令,获取第一NFC芯片的配置信息;根据第一NFC芯片的配置信息,控制多NFC服务启动模块,从一个或多个NFC系统服务中启动第一NFC系统服务;根据第一NFC系统服务,向与待启动的第一NFC系统服务对应的第一NFCHIDL服务模块传输启动指令,以及加载与待启动的第一NFC系统服务对应的第一NFC HIDL服务模块。In a second aspect, the embodiment of the present application provides a control method for household electrical appliances, the method comprising: receiving an activation instruction of the first NFC chip; and obtaining configuration information of the first NFC chip in response to the control instruction of activation of the first NFC chip ; According to the configuration information of the first NFC chip, control the multi-NFC service startup module, start the first NFC system service from one or more NFC system services; according to the first NFC system service, to the first NFC system service to be started The corresponding first NFCHIDL service module transmits the startup instruction, and loads the first NFC HIDL service module corresponding to the first NFC system service to be started.
第三方面,本申请实施例提供一种控制器,包括:一个或多个处理器;一个或多个存储器;其中,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,控制器执行第二方面所提供的任一种家电设备的控制方法。In a third aspect, the embodiment of the present application provides a controller, including: one or more processors; one or more memories; wherein, one or more memories are used to store computer program codes, and the computer program codes include computer instructions, When one or more processors execute computer instructions, the controller executes any one of the control methods for household appliances provided in the second aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当计算机指令在计算机上运行时,使得计算机执行第二方面所提供的任一种家电设备的控制方法。In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on the computer, the computer is made to execute any one of the home appliances provided in the second aspect control method.
第五方面,本发明实施例提供一种计算机程序产品,该计算机程序产品可直接加载到存储器中,并含有软件代码,该计算机程序产品经由计算机载入并执行后能够实现如第二方面所提供的任一种家电设备的控制方法。In the fifth aspect, the embodiment of the present invention provides a computer program product, which can be directly loaded into the memory and contains software codes. After the computer program product is loaded and executed by a computer, it can realize the functions as provided in the second aspect. A control method for any kind of home appliances.
需要说明的是,上述计算机指令可以全部或者部分存储在计算机可读存储介质上。其中,计算机可读存储介质可以与控制器的处理器封装在一起的,也可以与控制器的处理器单独封装,本申请对此不作限定。It should be noted that all or part of the above computer instructions may be stored on a computer-readable storage medium. Wherein, the computer-readable storage medium may be packaged together with the processor of the controller, or may be packaged separately with the processor of the controller, which is not limited in this application.
本申请中第二方面至第五方面的描述的有益效果,可以参考第一方面的有益效果分析,此处不再赘述。For the beneficial effects described in the second aspect to the fifth aspect of the present application, reference may be made to the beneficial effect analysis of the first aspect, which will not be repeated here.
附图说明Description of drawings
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The accompanying drawings are used to provide a further understanding of the technical solution of the present invention, and constitute a part of the description, and are used together with the embodiments of the application to explain the technical solution of the present invention, and do not constitute a limitation to the technical solution of the present invention.
图1为本申请实施例提供的一种家电设备的控制方法的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of a method for controlling a home appliance provided in an embodiment of the present application;
图2为本申请实施例提供的一种家电设备的操作系统架构图;FIG. 2 is a diagram of an operating system architecture of a home appliance provided in an embodiment of the present application;
图3为本申请实施例提供的一种家电设备的硬件配置框图;FIG. 3 is a block diagram of a hardware configuration of a home appliance provided by an embodiment of the present application;
图4为本申请实施例提供的一种家电设备的控制方法的流程图;FIG. 4 is a flow chart of a control method for a household electrical appliance provided in an embodiment of the present application;
图5为本申请实施例提供的一种家电设备的控制方法的逻辑框图;FIG. 5 is a logic block diagram of a control method for a household electrical appliance provided in an embodiment of the present application;
图6为本申请实施例提供的另一种家电设备的控制方法的流程图;FIG. 6 is a flow chart of another control method for a household electrical appliance provided by an embodiment of the present application;
图7为本申请实施例提供的另一种家电设备的控制方法的逻辑框图;FIG. 7 is a logic block diagram of another method for controlling household electrical appliances provided by an embodiment of the present application;
图8为本申请实施例提供的一种控制器的硬件结构示意图。FIG. 8 is a schematic diagram of a hardware structure of a controller provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
需要说明,本发明实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back...) in the embodiments of the present invention are only used to explain the relationship between the components in a certain posture (as shown in the accompanying drawings). Relative positional relationship, movement conditions, etc., if the specific posture changes, the directional indication will also change accordingly.
术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present application, unless otherwise specified, "plurality" means two or more.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。另外,在对管线进行描述时,本申请中所用“相连”、“连接”则具有进行导通的意义。具体意义需结合上下文进行理解。In the description of this application, it should be noted that, unless otherwise clearly stipulated and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integrated ground connection. Those of ordinary skill in the art can understand the specific meanings of the above terms in this application in specific situations. In addition, when describing pipelines, "connected" and "connected" used in this application have the meaning of conducting. The specific meaning needs to be understood in conjunction with the context.
在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。In the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
目前,越来越多家电设备生产厂商将NFC技术应用到家电设备中,但是家电设备中通常只配置一种NFC芯片,只能提供一种NFC服务,当家电设备生产厂商需要为家电设备更换新的NFC芯片时,需要重新开发一版的系统软件,极大的增加了软件开发和维护的成本。At present, more and more home appliance manufacturers apply NFC technology to home appliances, but usually only one NFC chip is configured in home appliances, and only one NFC service can be provided. When home appliance manufacturers need to replace home appliances with new When using a new NFC chip, a new version of the system software needs to be developed, which greatly increases the cost of software development and maintenance.
基于此,本申请实施例提供了一种家电设备,包括多个NFC芯片以及多NFC服务启动模块,可以在使用家电设备时,多NFC服务启动模块根据预先配置的NFC芯片的识别信息启动多个NFC系统服务中的一个NFC系统服务。如此,家电设备增加了多个NFC芯片的服务模块,从而可以使得家电设备能够支持多个NFC芯片,并支持多种NFC系统服务,极大降低了开发和维护的成本。Based on this, an embodiment of the present application provides a home appliance, including multiple NFC chips and a multi-NFC service startup module. When using a home appliance, the multi-NFC service startup module can start multiple An NFC system service in NFC system service. In this way, the service module of multiple NFC chips is added to the home appliance, so that the home appliance can support multiple NFC chips and multiple NFC system services, which greatly reduces the cost of development and maintenance.
在本申请的实施例中,NFC芯片可以为当前市场具有的所有NFC芯片型号,对此不作限定。In the embodiment of the present application, the NFC chip may be all models of NFC chips currently available in the market, which is not limited.
图1为本申请一些实施例中提供的家电设备的控制方法的应用场景示意图。如图1所示,该应用场景包括家电设备1和NFC设备2。Fig. 1 is a schematic diagram of an application scenario of a method for controlling a household appliance provided in some embodiments of the present application. As shown in FIG. 1 , the application scenario includes a home appliance device 1 and an NFC device 2 .
家电设备1是指在家庭及类似场所中使用的各种电器和电子器具。例如,图1中示出的家电设备1可以是空调、电视、洗衣机、音响等,且家电设备应当具有至少一个NFC芯片。本申请对家电设备1的具体形式不做特殊限制。The home appliances 1 refer to various electric appliances and electronic appliances used in homes and the like. For example, the home appliance 1 shown in FIG. 1 may be an air conditioner, a TV, a washing machine, a stereo, etc., and the home appliance should have at least one NFC chip. The present application does not impose special restrictions on the specific form of the household electrical appliance 1 .
NFC设备2可以为遥控器、手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备等,也可以是其他形式、具有网络通信功能的终端设备,且NFC设备应当具有NFC读取功能。图1中示出的NFC设备2仅是NFC设备2的一个示例,本申请对该NFC设备2的具体形式不做特殊限制。The NFC device 2 can be a remote control, mobile phone, tablet computer, personal computer (personal computer, PC), personal digital assistant (personal digital assistant, PDA), smart watch, netbook, wearable electronic device, etc., and can also be in other forms, Terminal devices with network communication functions, and NFC devices should have NFC reading functions. The NFC device 2 shown in FIG. 1 is only an example of the NFC device 2 , and the present application does not specifically limit the specific form of the NFC device 2 .
在一些实施例中,用户可以用NFC设备2控制家电设备1。例如,家电设备为冰箱,NFC设备为手机,用户将手机与冰箱进行触碰感应,以建立通信连接。在手机与冰箱建立通信连接后,用户可以通过手机控制冰箱。In some embodiments, the user can use the NFC device 2 to control the home appliance 1 . For example, the home appliance is a refrigerator, and the NFC device is a mobile phone, and the user performs touch sensing on the mobile phone and the refrigerator to establish a communication connection. After the mobile phone establishes a communication connection with the refrigerator, the user can control the refrigerator through the mobile phone.
图2为本申请根据示例性实施例提供的一种家电设备的操作系统架构图。如图2所示,从上至下分别为NFC API接口、多NFC服务启动模块、多个NFC系统服务、多个NFC HIDL服务模块以及多个NFC芯片驱动模块。Fig. 2 is a diagram of an operating system architecture of a home appliance according to an exemplary embodiment of the present application. As shown in Figure 2, from top to bottom are the NFC API interface, multiple NFC service startup modules, multiple NFC system services, multiple NFC HIDL service modules, and multiple NFC chip driver modules.
需要说明的是,家电设备的操作系统的启动过程是从下往上的一个过程。家电设备开机后,加载NFC芯片驱动模块,以控制NFC芯片的运行,并将NFC芯片硬件参数等抽象,启动NFC HIDL服务模块。NFC HIDL服务模块为NFC系统服务提供硬件接口,在NFC HIDL服务模块启动后,启动NFC系统服务。NFC系统服务启动后,加载多NFC服务启动模块,以灵活适配多个NFC HIDL服务模块。在所有的NFC相关模块启动后,NFC设备中的应用程序通过NFC API接口可以切换NFC芯片。It should be noted that the startup process of the operating system of the home appliance is a bottom-up process. After the home appliance is turned on, the NFC chip driver module is loaded to control the operation of the NFC chip, and the NFC chip hardware parameters are abstracted to start the NFC HIDL service module. The NFC HIDL service module provides a hardware interface for the NFC system service, and starts the NFC system service after the NFC HIDL service module is started. After the NFC system service is started, load multiple NFC service startup modules to flexibly adapt to multiple NFC HIDL service modules. After all NFC-related modules are started, the application program in the NFC device can switch the NFC chip through the NFC API interface.
图3为本申请根据示例性实施例提供的一种家电设备的硬件配置图。如图3所示,家电设备100包括:控制器150、多NFC服务启动模块160、多个NFC芯片,例如NFC芯片111、NFC芯片112等,多个NFC系统服务,例如NFC系统服务121、NFC系统服务122等,多个NFC驱动模块,例如NFC驱动模块131、NFC驱动模块132等,多个NFC HIDL(hardware interfacefefinition language,HIDL)服务模块,例如NFC HIDL服务模块141、NFC HIDL服务模块142等。Fig. 3 is a hardware configuration diagram of a household electrical appliance provided by the present application according to an exemplary embodiment. As shown in Figure 3, the home appliance 100 includes: a
其中,多个NFC芯片分别与控制器150连接,NFC芯片用于支持家电设备的通信功能。可选的,部分NFC芯片产品含有加密逻辑电路以及加密/解密模块,从而,NFC芯片还可以对家电设备的通信进行加密/解密。Wherein, a plurality of NFC chips are connected to the
在一些实施例中,多个NFC芯片可以预先被写入标识信息,该标识信息用于控制家电设备执行特定的功能,包括不限于开机、关机、模式、风速等特定功能。可选地,NFC芯片中存储的标识信息的实现形式包括统一资源定位符(UniformResource Locator,URL)链接信息。可选地,每个标识信息对应一种功能,NFC芯片可储存不同的标识信息,以控制家电设备执行不同的功能。In some embodiments, multiple NFC chips can be pre-written with identification information, and the identification information is used to control the home appliance to perform specific functions, including but not limited to specific functions such as power-on, power-off, mode, and wind speed. 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 can store different identification information to control the home appliance to perform different functions.
多NFC服务启动模块160与控制器150连接,用于控制多个NFC系统服务启动或停止。The multi-NFC service starting module 160 is connected with the
多个NFC系统服务分别与控制器150连接,用于提供多个NFC系统服务,以通过多NFC服务启动模块控制NFC系统服务的启动或停止。A plurality of NFC system services are respectively connected to the
多个NFC驱动模块分别与控制器150连接,NFC驱动模块用于保证该家电设备中NFC芯片的正常运行。Multiple NFC driver modules are respectively connected to the
多个NFC HIDL服务模块分别与控制器150连接,NFC HIDL服务模块通过NFC驱动模块控制NFC芯片。A plurality of NFC HIDL service modules are respectively connected with the
在本申请所示的实施例中,控制器150是指可以根据指令操作码和时序信号,产生操作控制信号,指示空调系统执行控制指令的装置。示例性的,控制器150可以为中央处理器(central processing unit,CPU)、通用处理器网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。控制器150还可以是其它具有处理功能的装置,例如电路、器件或软件模块,本申请实施例对此不做任何限制。In the embodiment shown in this application, the
此外,控制器150可以用于控制家电设备内部中各部件工作,以使得家电设备各个部件运行实现家电设备的各预定功能,例如智能烤箱的烘烤功能等。In addition, the
可选的,如图3所示,家电设备100还可以包括通信器180和存储器170。Optionally, as shown in FIG. 3 , the household appliance 100 may further include a communicator 180 and a
在一些实施例中,通信器180用于与其他网络实体建立通信连接,例如与终端设备建立通信连接。通信器180可以包括射频(radio frequency,RF)模块、蜂窝模块、无线保真(wireless fidelity,WIFI)模块、以及GPS模块等。以RF模块为例,RF模块可以用于信号的接收和发送,特别地,将接收到的信息发送给控制器150处理;另外,将控制器150生成的信号发送出去。通常情况下,RF电路可以包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。In some embodiments, the communicator 180 is used to establish a communication connection with other network entities, such as establishing a communication connection with a terminal device. The communicator 180 may include a radio frequency (radio frequency, RF) module, a cellular module, a wireless fidelity (wireless fidelity, WIFI) module, a GPS module, and the like. Taking the RF module as an example, the RF module can be used for receiving and sending signals, in particular, sending received information to the
存储器170可用于存储软件程序及数据。控制器150通过运行存储在存储器170的软件程序或数据,从而执行家电设备的各种功能以及数据处理。存储器170可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。存储器存储有使得家电设备能运行的操作系统。本申请中存储器170可以存储操作系统及各种应用程序,还可以存储执行本申请实施例提供的家电设备的控制方法的代码。The
本领域技术人员可以理解,图3中示出的硬件结构并不构成对家电设备的限定,家电设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the hardware structure shown in Figure 3 does not constitute a limitation to the home appliance, and the home appliance may include more or less components than shown in the figure, or combine certain components, or arrange different components .
下面结合说明书附图,对本申请提供的实施例进行具体介绍。The embodiments provided by the present application will be described in detail below in combination with the accompanying drawings.
如图4所示,本申请实施例提供了一种家电设备的控制方法,应用于上述图3所示的家电设备中的控制器150,该方法包括如下步骤:As shown in FIG. 4, the embodiment of the present application provides a control method for a household electrical appliance, which is applied to the
S101、接收第一NFC芯片的启动指令。S101. Receive an activation instruction of the first NFC chip.
其中,第一NFC芯片为家电设备的多个NFC芯片中的其中一个。例如,第一NFC芯片可以为图3中的NFC芯片111或NFC芯片112等。Wherein, the first NFC chip is one of the multiple 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 .
需要说明的是,具有NFC芯片的家电设备通常会默认配置一种NFC芯片。在家电设备首次被激活,或者在该家电设备每次启动时,家电设备的控制器可以接收默认配置的该种NFC芯片(也即上述第一NFC芯片)的启动指令,以通过启动该种NFC芯片为家电设备提供通信功能。It should be noted that a home appliance with an NFC chip is usually configured with an NFC chip by default. When the home appliance is activated for the first time, or when the home appliance is started every time, the controller of the home appliance can receive the startup instruction of the default configured NFC chip (that is, the above-mentioned first NFC chip), so as to activate the NFC chip by starting the NFC chip. Chips provide communication functions for home appliances.
在一些实施例中,家电设备开机,控制器接收第一NFC芯片的启动指令,以通过启动第一NFC芯片为家电设备提供通信功能。In some embodiments, the home appliance is turned on, and the controller receives an activation instruction of the first NFC chip to provide the home appliance with a communication function by activating the first NFC chip.
示例性的,若一种冰箱中预先配置的NFC芯片可以为图3中的NFC芯片111,则冰箱开机时,控制器可以获取NFC芯片111的启动指令。或者,若一种空调中预先配置的NFC芯片可以为图3中的NFC芯片112,则空调开机时,控制器可以获取NFC芯片112的启动指令。Exemplarily, if the NFC chip pre-configured in a refrigerator can be the NFC chip 111 in FIG. 3 , then when the refrigerator is turned on, the controller can obtain an activation instruction of the NFC chip 111 . Or, if the NFC chip pre-configured in an air conditioner can be the NFC chip 112 in FIG. 3 , then when the air conditioner is turned on, the controller can obtain a startup instruction of the NFC chip 112 .
S102、响应于启动第一NFC芯片的控制指令,获取第一NFC芯片的配置信息。S102. Acquire configuration information of the first NFC chip in response to a control instruction for starting the first NFC chip.
其中,上述第一NFC芯片的配置信息可以为NFC芯片的型号、芯片UID内码等信息。Wherein, the configuration information of the above-mentioned first NFC chip may be information such as the model of the NFC chip, the UID internal code of the chip, and the like.
可选的,家电设备的存储器可以预先存储有此家电设备多个NFC芯片的配置信息。从而,控制器可以从多个NFC芯片的配置信息中获取到第一NFC芯片的识别信息。Optionally, the memory of the home appliance may pre-store configuration information of multiple NFC chips of the home appliance. Therefore, the controller can acquire the identification information of the first NFC chip from the configuration information of the multiple NFC chips.
在一些实施例中,控制器根据接收到的第一NFC芯片的启动指令,获取第一NFC芯片中的配置信息。In some embodiments, the controller acquires the configuration information in the first NFC chip according to the received startup instruction of the first NFC chip.
S103、根据第一NFC芯片的配置信息,控制多NFC服务启动模块,从一个或多个NFC系统服务中启动第一NFC系统服务。S103. According to the configuration information of the first NFC chip, control the multi-NFC service starting module to start the first NFC system service from one or more NFC system services.
其中,第一NFC系统服务为家电设备的多个NFC系统服务中的一个。Wherein, the first NFC system service is one of multiple NFC system services of the home appliance.
可选的,家电设备中的多个NFC芯片与多个NFC系统服务具有一一对应关系。Optionally, multiple NFC chips in the home appliance have a one-to-one correspondence with multiple NFC system services.
示例性的,图3中的NFC芯片111与NFC系统服务121相对应、NFC芯片112与NFC系统服务122相对应。Exemplarily, the NFC chip 111 in FIG. 3 corresponds to the NFC system service 121 , and the NFC chip 112 corresponds to the NFC system service 122 .
从而,若上述第一NFC芯片为图3中的NFC芯片111,则基于该NFC芯片111的配置信息,控制器可以将NFC系统服务121确定为上述第一NFC系统服务,从而控制器启动NFC系统服务121以提供第一NFC系统服务。Thus, if the above-mentioned first NFC chip is the NFC chip 111 in FIG. 3 , then based on the configuration information of the NFC chip 111, the controller can determine the NFC system service 121 as the above-mentioned first NFC system service, so that the controller starts the NFC system service. Service 121 to provide a first NFC system service.
在一些实施例中,根据第一NFC芯片的配置信息,多NFC服务启动模块启动第一NFC芯片对应的第一NFC系统服务。In some embodiments, according to the configuration information of the first NFC chip, the multi-NFC service starting module starts the first NFC system service corresponding to the first NFC chip.
S104、根据第一NFC系统服务,向与待启动的第一NFC系统服务对应的第一NFCHIDL服务模块传输启动指令,以及加载与待启动的第一NFC系统服务对应的第一NFC HIDL服务模块。S104. According to the first NFC system service, transmit a startup instruction to the first NFCHIDL service module corresponding to the first NFC system service to be started, and load the first NFC HIDL service module corresponding to the first NFC system service to be started.
其中,第一NFC HIDL服务模块为家电设备的多个NFC HIDL服务模块中的一个。Wherein, the first NFC HIDL service module is one of a plurality of NFC HIDL service modules of the home appliance.
可选的,家电设备中的多个NFC系统服务与多个NFC HIDL服务模块具有一一对应关系。Optionally, multiple NFC system services in the home appliance have a one-to-one correspondence with multiple NFC HIDL service modules.
示例性的,图3中的NFC系统服务121与NFC HIDL服务模块141相对应、NFC系统服务122与NFC HIDL服务模块142相对应。Exemplarily, the NFC system service 121 in FIG. 3 corresponds to the NFC HIDL service module 141, and the NFC system service 122 corresponds to the NFC HIDL service module 142.
从而,若上述第一NFC系统服务为图3中的NFC系统服务121,则基于该NFC系统服务121,控制器可以将NFC HIDL服务模块141确定为上述第一NFC HIDL服务模块。Thus, if the above-mentioned first NFC system service is the NFC system service 121 in FIG. 3 , then based on the NFC system service 121, the controller can determine the NFC HIDL service module 141 as the above-mentioned first NFC HIDL service module.
在一些实施例中,在第一NFC HIDL服务模块启动后,控制器加载与多个NFC驱动模块中对应的第一NFC驱动模块,并向第一NFC HIDL服务模块发送启动指令,以启动第一NFCHIDL服务模块。In some embodiments, after the first NFC HIDL service module is started, the controller loads the first NFC driver module corresponding to a plurality of NFC driver modules, and sends a startup command to the first NFC HIDL service module to start the first NFC driver module. NFCHIDL service module.
其中,家电设备中的多个NFC HIDL服务模块与多个NFC驱动模块具有一一对应关系。Among them, multiple NFC HIDL service modules in the home appliance have a one-to-one correspondence with multiple NFC driver modules.
示例性的,图3中的NFC HIDL服务模块141与NFC驱动模块131相对应、NFC HIDL服务模块142与NFC驱动模块132相对应。Exemplarily, the NFC HIDL service module 141 in FIG. 3 corresponds to the NFC driver module 131, and the NFC HIDL service module 142 corresponds to the NFC driver module 132.
从而,若上述第一NFC HIDL服务模块为图3中的NFC HIDL服务模块141,则控制器可以将NFC驱动模块131确定为上述第一NFC驱动模块。Thus, if the above-mentioned first NFC HIDL service module is the NFC HIDL service module 141 in FIG. 3, the controller can determine the NFC driver module 131 as the above-mentioned first NFC driver module.
进一步地,第一NFC HIDL服务模块通过第一NFC驱动模块控制第一NFC芯片。Further, the first NFC HIDL service module controls the first NFC chip through the first NFC driver module.
在一些实施例中,控制器可以接收用户输入的第一NFC读取指令。进而,响应于第一NFC读取指令,通过第一NFC系统服务,读取用户的NFC设备信息。In some embodiments, the controller may receive a first NFC read instruction input by a user. Furthermore, in response to the first NFC read instruction, the user's NFC device information is read through the first NFC system service.
在一些实施例中,当用户将NFC设备放在家电设备中NFC芯片的通信范围内,例如用户通过NFC设备与家电设备上的预设NFC感应位置触碰,从而向家电设备输入该第一NFC读取指令。应理解,第一NFC的类型即为用户的NFC设备中的NFC的类型。In some embodiments, when the user places the NFC device within the communication range of the NFC chip in the home appliance, for example, the user touches the NFC device with a preset NFC sensing position on the home appliance, thereby inputting the first NFC sensor to the home appliance. Read instructions. It should be understood that the type of the first NFC is the type of NFC in the user's NFC device.
在一些实施例中,家电设备还可以接收到用户的NFC设备与家电设备连接的指令。In some embodiments, the home appliance may also receive an instruction to connect the user's NFC device to the home appliance.
具体的,用户可以启动NFC设备的NFC服务功能,以使得NFC设备处于待连接状态,在该状态下,NFC设备可以获取到附近NFC通信范围内的其他NFC设备。并且,在家电设备的运行过程中,一直处于NFC待连接状态,或者,用户还可以启动家电设备的NFC服务功能,以使得家电设备也处于NFC待连接状态。从而,在NFC设备和家电设备处于NFC通信范围内时,家电设备可以与NFC设备建立通信连接。Specifically, the user can start the NFC service function of the NFC device, so that the NFC device is in a waiting state, and in this state, the NFC device can obtain other NFC devices within the nearby NFC communication range. Moreover, during the operation of the home appliance, it is always in the NFC ready-to-connect 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 ready-to-connect state. Therefore, when the NFC device and the home appliance are within the NFC communication range, the home appliance can establish a communication connection with the NFC device.
在一些实施例中,家电设备和NFC设备建立通信连接后,控制器通过第一NFC系统服务为NFC设备提供NFC服务,并获取NFC设备信息包括:MAC地址(media access controladdress,MAC)、设备类型、机编等信息,进而基于该NFC设备信息,家电设备和NFC设备绑定成功。In some embodiments, after the home appliance and the NFC device establish a communication connection, the controller provides the NFC service for the NFC device through the first NFC system service, and obtains the NFC device information including: MAC address (media access control address, MAC), device type , machine code and other information, and then based on the NFC device information, the home appliance and the NFC device are successfully bound.
在一些实施例中,家电设备按照根据图2所示的启动过程为NFC设备中提供NFC服务。In some embodiments, the home appliance provides the NFC service for the NFC device according to the startup process shown in FIG. 2 .
需要说明的是,存放在家电设备NFC芯片的标识信息通过近场通信连接传输到NFC设备后,NFC设备的应用程序可以利用上述标识信息为用户服务,以实现家电设备中的NFC芯片为NFC设备提供NFC服务。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 a near-field communication connection, the application program of the NFC device can use the above identification information to serve the user, so as to realize that the NFC chip in the home appliance is an NFC device. Provide NFC service.
示例性的,NFC设备为手机,家电设备为冰箱。用户在手机上打开用于操控家电设备的APP,例如智能家居APP。用户在智能家居APP操作界面选择连接模式,并将手机放在冰箱NFC芯片的通信范围内,进而手机与冰箱建立起NFC通信连接。手机与冰箱NFC通信连接完成后,冰箱获取手机的MAC、手机型号等信息,进而手机与空调绑定成功。Exemplarily, the NFC device is a mobile phone, and the home appliance is a refrigerator. The user opens an APP for controlling home appliances on the mobile phone, such as a smart home APP. The user selects the connection mode on the smart home APP operation interface, and puts the mobile phone within the communication range of the NFC chip of the refrigerator, and then establishes an NFC communication connection between the mobile phone and the refrigerator. After the NFC communication connection between the mobile phone and the refrigerator is completed, the refrigerator obtains information such as the MAC and model of the mobile phone, and then the mobile phone and the air conditioner are successfully bound.
本申请提供的家电设备中包括多个NFC芯片以及多NFC服务启动模块,可以在使用家电设备时,多NFC服务启动模块根据预先配置的NFC芯片的识别信息启动多个NFC系统服务中的一个NFC系统服务。如此,家电设备增加了多个NFC芯片的服务模块,从而可以使得家电设备能够支持多个NFC芯片,并支持多种NFC系统服务,极大降低了开发和维护的成本。The home appliance provided by this application includes multiple NFC chips and a multi-NFC service startup module. When using a home appliance, the multi-NFC service startup module can start one of the multiple NFC system services according to the identification information of the pre-configured NFC chip. system service. In this way, the service module of multiple NFC chips is added to the home appliance, so that the home appliance can support multiple NFC chips and multiple NFC system services, which greatly reduces the cost of development and maintenance.
下面结合逻辑框图,示例性的介绍家电设备的控制方法完整流程:Combined with the logic block diagram, the complete flow of the control method of the household appliance is exemplarily introduced below:
如图5所示,基于图4所示的实施例,该家电设备具有一个NFC芯片时,控制过程包括:As shown in Figure 5, based on the embodiment shown in Figure 4, when the home appliance has an NFC chip, the control process includes:
家电设备开机,用户将NFC设备触碰家电设备中默认配置的NFC芯片,并获取该NFC芯片中的配置信息。多NFC服务启动模块根据NFC芯片的配置信息启动该NFC芯片对应的NFC系统服务。NFC系统服务启动后,启动相应的NFC HIDL服务模块,并加载相应的NFC芯片驱动模块。所有NFC相关模块启动后,家电设备中默认配置的NFC芯片为NFC设备的应用程序提供控制服务。When the home appliance is turned on, the user touches the NFC device to the NFC chip configured by default in the home appliance, and obtains the configuration information in the NFC chip. The multi-NFC service starting module starts the NFC system service corresponding to the NFC chip according to the configuration information of the NFC chip. After the NFC system service is started, start the corresponding NFC HIDL service module and load the corresponding NFC chip driver module. After all NFC-related modules are started, the NFC chip configured by default in the home appliance provides control services for the application program of the NFC device.
在一些实施例中,如图6所示,该方法还可以包括以下步骤:In some embodiments, as shown in Figure 6, the method may also include the following steps:
S201、接收NFC切换指令,NFC切换指令中包括待切换的第二NFC芯片的识别信息。S201. Receive an NFC switching instruction, where the NFC switching instruction includes identification information of a second NFC chip to be switched.
其中,在该家电设备正在运行第一NFC芯片时,第二NFC芯片为家电设备的多个NFC芯片中除第一NFC芯片的另外一个。Wherein, when the home appliance is running the first NFC chip, the second NFC chip is the other one of the multiple NFC chips in the home appliance except the first NFC chip.
应理解,如图3所示,若第一NFC芯片为NFC芯片111,第二NFC芯片可以为NFC芯片112。若第一NFC芯片为NFC芯片112,第二NFC芯片为可以NFC芯片111。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 can be the NFC chip 111 .
在一些实施例中,用户可以通过NFC设备中的应用程序向家电设备下发切换NFC芯片的切换指令。该切换指令中包括待切换的第二NFC芯片的识别信息。In some embodiments, the user can issue a switching instruction to switch the NFC chip to the home appliance through the application program in the NFC device. The switching instruction includes identification information of the second NFC chip to be switched.
从而,若上述第二NFC芯片为图3中的NFC芯片112,则控制器接收到用户输入的NFC切换指令后,基于该NFC切换指令中的第二NFC芯片的识别信息,确实该NFC芯片的类别。Thereby, if the above-mentioned second NFC chip is the NFC chip 112 in Fig. 3, after the controller receives the NFC switching instruction input by the user, based on the identification information of the second NFC chip in the NFC switching instruction, the identification information of the NFC chip is confirmed. category.
S202、响应于NFC切换指令,获取第二NFC芯片的配置信息。S202. Acquire configuration information of the second NFC chip in response to the NFC switching instruction.
在一些实施例中,控制器根据NFC切换指令,获取第二NFC芯片的配置信息。In some embodiments, the controller acquires configuration information of the second NFC chip according to the NFC switching instruction.
示例性的,若正在运行的NFC芯片为NFC芯片111,则控制器在接收到NFC切换指令后,获取NFC芯片111的配置信息。Exemplarily, if the running NFC chip is the NFC chip 111, the controller acquires the configuration information of the NFC chip 111 after receiving the NFC switching instruction.
S203、通过多NFC服务启动模块控制第一NFC系统服务停止服务,以及从一个或多个NFC系统服务中启动第二NFC系统服务。S203. Control the first NFC system service to stop the service through the multi-NFC service starting module, and start the second NFC system service from one or more NFC system services.
在一些实施例中,在获取第二NFC芯片的配置信息后,控制器向家电设备中的多NFC服务启动模块发送停止指令,多NFC服务启动模块控制正在运行的第一NFC系统服务停止运行。In some embodiments, after obtaining the configuration information of the second NFC chip, the controller sends a stop instruction to the multi-NFC service starting module in the household appliance, and the multi-NFC service starting module controls the running first NFC system service to stop running.
进一步地,正在运行的第一NFC系统服务停止运行后,卸载第一NFC驱动模块,并停止运行第一NFC HIDL服务。Further, after the running first NFC system service stops running, uninstall the first NFC driver module, and stop running the first NFC HIDL service.
示例性的,若正在运行的NFC芯片为NFC芯片111,则控制器向家电设备中的多NFC服务启动模块发送停止指令,多NFC服务启动模块控制NFC系统服务121停止运行。NFC系统服务121停止运行后,卸载NFC驱动模块131,并停止运行NFC HIDL服务模块141。Exemplarily, if the running NFC chip is the NFC chip 111, the controller sends a stop instruction to the multi-NFC service starting module in the household appliance, and the multi-NFC service starting module controls the NFC system service 121 to stop running. After the NFC system service 121 stops running, unload the NFC driver module 131, and stop running the NFC HIDL service module 141.
在一些实施例中,正在运行的第一NFC系统服务停止运行后,控制器向多NFC服务启动模块发送启动指令,进而多NFC服务启动模块根据第二NFC芯片的配置信息启动第二NFC系统服务。In some embodiments, after the running first NFC system service stops running, the controller sends a startup command to the multi-NFC service startup module, and then the multi-NFC service startup module starts the second NFC system service according to the configuration information of the second NFC chip .
应理解,如图3所示,若第一NFC系统服务为NFC系统服务121,第二NFC系统服务可以为NFC系统服务122。若第一NFC系统服务为NFC系统服务122,第二NFC系统服务可以为NFC系统服务121。It should be understood that, as shown in FIG. 3 , if the first NFC system service is NFC system service 121 , the second NFC system service may be NFC system service 122 . If the first NFC system service is NFC system service 122 , the second NFC system service can be NFC system service 121 .
示例性的,NFC系统服务121停止运行后,控制器向家电设备中的多NFC服务启动模块发送启动指令,多NFC服务启动模块根据NFC芯片112启动NFC系统服务122。Exemplarily, after the NFC system service 121 stops running, the controller sends a start instruction to the multi-NFC service start module in the home appliance, and the multi-NFC service start module starts the NFC system service 122 according to the NFC chip 112 .
S204、根据第二NFC系统服务,向与待启动的第二NFC系统服务对应的第二NFCHIDL服务模块传输启动指令,以及加载与待启动的第二NFC系统服务对应的第二NFC HIDL服务模块。S204. According to the second NFC system service, transmit a startup instruction to the second NFCHIDL service module corresponding to the second NFC system service to be started, and load the second NFC HIDL service module corresponding to the second NFC system service to be started.
在一些实施例中,第二NFC系统服务启动后,加载第二NFC驱动模块。In some embodiments, after the second NFC system service is started, the second NFC driver module is loaded.
应理解,如图3所示,若第一NFC驱动模块为NFC驱动模块131,第二NFC系统服务可以为NFC驱动模块132。若第一NFC驱动模块为NFC驱动模块132,第二NFC驱动模块可以为NFC驱动模块131。It should be understood that, as shown in FIG. 3 , if the first NFC driver module is the NFC driver module 131 , the second NFC system service can be the NFC driver module 132 . If the first NFC driver module is the NFC driver module 132 , the second NFC driver module can be the NFC driver module 131 .
示例性地,NFC系统服务122启动后,加载NFC驱动模块132。Exemplarily, after the NFC system service 122 is started, the NFC driver module 132 is loaded.
在一些实施例中,在第二NFC驱动模块启动后,控制器向第二NFC HIDL服务模块发送启动指令,并启动第二NFC HIDL服务模块。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.
应理解,如图3所示,若第一NFC HIDL服务模块为NFC HIDL服务模块141,第二NFCHIDL服务模块可以为NFC HIDL服务模块142。若第一NFC HIDL服务模块为NFC HIDL服务模块142,第二NFC HIDL服务模块可以为NFC HIDL服务模块141。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 NFC HIDL service module 142, the second NFC HIDL service module can be NFC HIDL service module 141.
示例性地,NFC系统服务122启动后,控制器向NFC HIDL服务模块142发送启动指令,并启动NFC HIDL服务模块142。Exemplarily, 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.
可以理解,基于本申请提供的家电设备中包括的多个NFC芯片以及多个NFC服务模块,在家电设备配置多个NFC芯片的场景下,可以根据NFC切换指令,停止运行正在运行的NFC服务模块,并启动多个NFC服务模块中的该切换指令中指示的NFC芯片。如此,可以实现家电设备根据用户需求灵活切换NFC服务,极大的增加了家电设备的灵活适配性。It can be understood that based on the multiple NFC chips and multiple NFC service modules included in the home appliance provided by this application, in the scenario where the home appliance is configured with multiple NFC chips, the running NFC service module can be stopped according to the NFC switching instruction , and start the NFC chip indicated in the switching instruction in multiple NFC service modules. In this way, the home appliance can flexibly switch NFC services according to user needs, which greatly increases the flexibility and adaptability of the home appliance.
如图7所示,基于图4所示的实施例,该家电设备具有多个NFC芯片,例如两个NFC芯片时,控制过程包括:As shown in FIG. 7, based on the embodiment shown in FIG. 4, when the home appliance has multiple NFC chips, for example, two NFC chips, the control process includes:
家电设备开机,用户通过NFC设备中的应用程序切换家电设备中NFC芯片,根据切换的NFC芯片信息,多NFC服务启动模块控制运行的NFC系统服务停止运行,并停止运行的NFC HIDL服务模块,卸载运行的NFC芯片驱动模块。卸载运行的NFC芯片驱动模块后,多NFC服务启动模块根据用户需要切换的NFC芯片的配置信息启动相应的NFC系统服务,并启动相应的NFC HIDL服务模块,加载相应的NFC芯片驱动模块。所有NFC相关模块启动后,家电设备中切换后的NFC芯片为NFC设备的应用程序提供控制服务。When the home appliance is turned on, the user switches the NFC chip in the home appliance through the application program in the NFC device. According to the information of the switched NFC chip, the multi-NFC service startup module controls the running NFC system service to stop running, and stops the running NFC HIDL service module. Uninstall The running NFC chip driver module. After uninstalling the running NFC chip driver module, the multi-NFC service startup module starts the corresponding NFC system service according to the configuration information of the NFC chip that the user needs to switch, and starts the corresponding NFC HIDL service module, and loads the corresponding NFC chip driver module. After all NFC-related modules are activated, the switched NFC chip in the home appliance provides control services for the application program of the NFC device.
可以看出,上述主要从方法的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,本申请实施例提供了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。It can be seen that the foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of methods. In order to realize the above functions, the embodiments of the present application provide hardware structures and/or software modules corresponding to each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
本申请实施例可以根据上述方法示例对控制器进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可选的,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the functional modules of the controller may be divided according to the above method examples. 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 above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. Optionally, the division of modules in this embodiment of the present application is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
本申请实施例还提供一种控制器的硬件结构示意图,如图8所示,该控制器150包括处理器3001,可选的,还包括与处理器3001连接的存储器170和通信接口3003。处理器3001、存储器170和通信接口3003通过总线3004连接。The embodiment of the present application also provides a schematic diagram of a hardware structure of a controller. As shown in FIG. 8 , the
处理器3001可以是中央处理器(central processing unit,CPU),通用处理器网络处理器(network processor,NP)、数字信号处理器(digital signal processing,DSP)、微处理器、微控制器、可编程逻辑器件(programmable logic device,PLD)或它们的任意组合。处理器3001还可以是其它任意具有处理功能的装置,例如电路、器件或软件模块。处理器3001也可以包括多个CPU,并且处理器3001可以是一个单核(single-CPU)处理器,也可以是多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路或用于处理数据(例如计算机程序指令)的处理核。The
存储器170可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备、随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,本申请实施例对此不作任何限制。存储器170可以是独立存在,也可以和处理器3001集成在一起。其中,存储器170中可以包含计算机程序代码。处理器3001用于执行存储器170中存储的计算机程序代码,从而实现本申请实施例提供的一种家电设备的控制方法。
通信接口3003可以用于与其他设备或通信网络通信(如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等)。通信接口3003可以是模块、电路、收发器或者任何能够实现通信的装置。The
总线3004可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。总线3004可以分为地址总线、数据总线、控制总线等。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质包括计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行如上述实施例提供的一种家电设备的控制方法。An embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are run on the computer, the computer executes a method for controlling household appliances as provided in the above-mentioned embodiments .
本发明实施例还提供一种计算机程序产品,该计算机程序产品可直接加载到存储器中,并含有软件代码,该计算机程序产品经由计算机载入并执行后能够实现上述实施例提供的一种家电设备的控制方法。The embodiment of the present invention also provides a computer program product, which can be directly loaded into the memory and contains software codes. After the computer program product is loaded and executed by a computer, it can realize the household electrical appliance provided by the above embodiment. control method.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the above one or more examples, the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the 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.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other division methods in actual implementation. For example a plurality of units or components may be combined or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms. A unit described as a separate component may or may not be physically separated, and a component shown as a unit may be one physical unit or multiple physical units, which may be located in one place or distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. If an integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应该以权利要求的保护范围为准。The above is only a specific implementation of the application, but the protection scope of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application should be covered within the protection scope of the application . Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211621004.2A CN116016006A (en) | 2022-12-05 | 2022-12-05 | A kind of household electrical appliance and its control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211621004.2A CN116016006A (en) | 2022-12-05 | 2022-12-05 | A kind of household electrical appliance and its control method |
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 | A kind of household electrical appliance and its control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116016006A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150089586A1 (en) * | 2013-09-24 | 2015-03-26 | Miguel Ballesteros | Systems and methods for nfc access control in a secure element centric nfc architecture |
KR20150089468A (en) * | 2014-01-28 | 2015-08-05 | 허진만 | System and method of portable terminal device recognition and contents transition |
WO2016193417A1 (en) * | 2015-06-05 | 2016-12-08 | BSH Hausgeräte GmbH | Home appliance control method and control system |
CN111107525A (en) * | 2019-04-26 | 2020-05-05 | 华为技术有限公司 | A kind of SE automatic routing method and electronic equipment |
CN115086928A (en) * | 2021-03-16 | 2022-09-20 | 浙江绍兴苏泊尔生活电器有限公司 | Household appliance product |
-
2022
- 2022-12-05 CN CN202211621004.2A patent/CN116016006A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150089586A1 (en) * | 2013-09-24 | 2015-03-26 | Miguel Ballesteros | Systems and methods for nfc access control in a secure element centric nfc architecture |
KR20150089468A (en) * | 2014-01-28 | 2015-08-05 | 허진만 | System and method of portable terminal device recognition and contents transition |
WO2016193417A1 (en) * | 2015-06-05 | 2016-12-08 | BSH Hausgeräte GmbH | Home appliance control method and control system |
CN111107525A (en) * | 2019-04-26 | 2020-05-05 | 华为技术有限公司 | A kind of SE automatic routing method and electronic equipment |
CN115086928A (en) * | 2021-03-16 | 2022-09-20 | 浙江绍兴苏泊尔生活电器有限公司 | Household appliance product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5313301B2 (en) | Wireless internet access device, SD control chip, and data communication method | |
US11252724B2 (en) | Electronic device for transmitting or receiving data in wireless communication system and method therefor | |
JP5939819B2 (en) | COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, COMMUNICATION SYSTEM, PROGRAM | |
CN103281689B (en) | Method for network switching and version upgrading and terminal equipment | |
US8190798B1 (en) | Client device configuration based on information stored by host device | |
CN110762775B (en) | Upgrading method of air conditioner and air conditioner | |
TWI677214B (en) | Docking device, electrical device, and mac address cloning method | |
KR20120096864A (en) | Wireless charging of mobile device | |
JP2014131108A (en) | Communication device, information terminal, control method therefor, and program | |
US20150065053A1 (en) | Method of controlling short-range wireless communication and apparatus supporting the same | |
CN113655727A (en) | Control method and device for household electrical appliance | |
CN106416196B (en) | Mobile terminal, power adapter and upgrading method thereof | |
CN109426324A (en) | Electrification control method, AP chip and mobile terminal | |
EP2291741A1 (en) | System and method of reducing factory program time for wireless devices | |
KR20150026775A (en) | Method for controlling short range wireless communication and Apparatus applying the same | |
EP2383673B1 (en) | Mobile network access device, system and method | |
KR20090083103A (en) | Dual mode terminal and its data service processing method | |
CN116016006A (en) | A kind of household electrical appliance and its control method | |
US9961621B2 (en) | Wireless customer premise equipment and access method therefor | |
CN115150800A (en) | A smart home appliance distribution network system based on NFC technology | |
CN108696367A (en) | Things-internet gateway device and its reset method for restarting | |
KR20110003161A (en) | Wireless access point device connected to portable terminal and control method thereof | |
CN113709713A (en) | Mode switching method, device and equipment of WiFi chip | |
CN104252318A (en) | Data storing and processing method, device and terminal | |
WO2011134393A1 (en) | Wireless internet access device, secure digital control chip and data communication method |
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 |