CN115484119B - Control method and device of equipment, storage medium and electronic device - Google Patents

Control method and device of equipment, storage medium and electronic device Download PDF

Info

Publication number
CN115484119B
CN115484119B CN202211116693.1A CN202211116693A CN115484119B CN 115484119 B CN115484119 B CN 115484119B CN 202211116693 A CN202211116693 A CN 202211116693A CN 115484119 B CN115484119 B CN 115484119B
Authority
CN
China
Prior art keywords
tag
equipment
action
near field
field communication
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.)
Active
Application number
CN202211116693.1A
Other languages
Chinese (zh)
Other versions
CN115484119A (en
Inventor
于茂华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211116693.1A priority Critical patent/CN115484119B/en
Publication of CN115484119A publication Critical patent/CN115484119A/en
Application granted granted Critical
Publication of CN115484119B publication Critical patent/CN115484119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2814Exchanging control software or macros for controlling appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L2012/284Home automation networks characterised by the type of medium used
    • H04L2012/2841Wireless
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The application discloses a control method and a device of equipment, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the control method of the equipment comprises the following steps: acquiring tag data stored in a near field communication tag, wherein the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range; analyzing the tag data to obtain a first field and a second field; the first field is used for describing a service type corresponding to the equipment, and the second field is used for describing equipment actions corresponding to the service type; and sending a device control request to the server based on the first field and the second field so as to control the device. The problems that in the related technology, near field communication tag information is limited, function service is single, service expansion cannot be supported and the like are solved.

Description

Control method and device of equipment, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a control method and device of equipment, a storage medium and an electronic device.
Background
Along with the maturation of NFC (Near Field Communication, near field communication, abbreviated as NFC) technology, NFC is increasingly applied to the field of internet of things. Because the amount of writable information in the NFC patch is small, how to use limited NFC readable information to combine with APP and intelligent household appliances to provide a faster and more convenient equipment control experience for users becomes a great problem. In the related art, after the mobile phone identifies information in the NFC paste of the intelligent household appliance body, the mobile phone is directly applied to controlling the intelligent household appliance through identifying a corresponding control command. However, only a single control command can be identified, and corresponding command update and expansion cannot be performed.
Therefore, aiming at the problems that in the related technology, near field communication tag information is limited, the function service is single, service expansion cannot be supported, and the like, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the application provides a control method and device of equipment, a storage medium and an electronic device, which are used for at least solving the problems that in the related technology, near field communication tag information is limited, function service is single, service expansion cannot be supported and the like.
According to an embodiment of the embodiments of the present application, there is provided a control method of an apparatus, including: acquiring tag data stored in a near field communication tag, wherein the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range, and the near field communication tag is arranged on the surface of equipment; analyzing the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service; and sending a device control request to the server based on the first field and the second field so as to control the device.
In an exemplary embodiment, after sending a device control request to a server based on the first field and the second field to control the device, the method further includes: under the condition that the server side is determined to finish the execution of the equipment control request, an execution result in the server side is obtained; determining a follow-up action corresponding to the equipment control request at present under the condition that the execution result indicates that the equipment control request is successfully executed, wherein the follow-up action is used for keeping continuous control on equipment; and under the condition that the execution result indicates that the equipment control request fails to be executed, prohibiting sending the equipment control request to the equipment, and checking an application programming interface of a server associated with the equipment existence control.
In an exemplary embodiment, before acquiring the tag data stored in the near field communication tag, the method further comprises: under the condition that the distance between the mobile terminal and the near field communication tag is smaller than a first threshold value, the adjustment operation of the first detail data content corresponding to the tag data in the near field communication tag is started; and replacing the first detail data content with a second detail data content through the adjustment operation, and binding the second detail data content with the tag data.
In an exemplary embodiment, before replacing the first detail data content with the second detail data content by the adjustment operation, the method further includes: displaying the first detail data content corresponding to the currently stored tag data on a device detail page of the mobile terminal, and acquiring the action detail data of the latest version corresponding to the device; the action detail data comprise an identification code of the equipment and an action coding set which is allowed to be realized by the equipment; receiving a setting instruction sent by a target object, wherein the setting instruction is used for modifying the content of the first detail data by referring to the action detail data; and editing the first detail data content through the setting instruction to obtain a second detail data content.
In an exemplary embodiment, editing the first detail data content through the setting instruction to obtain a second detail data content includes: under the condition that the setting instruction is a determining instruction, determining the first detail data content as effective data, and stopping the adjustment operation of the first detail data content; and under the condition that the setting instruction is an editing instruction, determining an action set of the action to be executed after updating of the target object, and determining a target action code corresponding to the action set.
In an exemplary embodiment, after editing the first detailed data content by the setting instruction to obtain the second detailed data content, the method further includes: generating a target second field corresponding to the target action code under the condition that the distance between the mobile terminal and the near field communication tag is larger than or equal to a first threshold value and smaller than a second threshold value; and replacing the corresponding second field in the tag data with the target second field.
In an exemplary embodiment, the above method further comprises: acquiring an update period of the tag data; and under the condition that the service period of the tag data is longer than the updating period, sending prompt information to the target object, wherein the prompt information is used for confirming the validity of the tag data stored in the near field communication tag to the target object.
According to another embodiment of the embodiments of the present application, there is also provided a control device of an apparatus, including: the device comprises an acquisition module, a near field communication module and a control module, wherein the acquisition module is used for acquiring tag data stored in a near field communication tag, the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range, and the near field communication tag is arranged at any position on the surface of equipment; the analysis module is used for analyzing the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service; and the control module is used for sending a device control request to a server based on the first field and the second field so as to control the device.
In an exemplary embodiment, the above apparatus further includes: the determining module is used for acquiring an execution result in the server under the condition that the server is determined to finish the execution of the equipment control request; determining a follow-up action corresponding to the equipment control request at present under the condition that the execution result indicates that the equipment control request is successfully executed, wherein the follow-up action is used for keeping continuous control on equipment; and under the condition that the execution result indicates that the equipment control request fails to be executed, prohibiting sending the equipment control request to the equipment, and checking an application programming interface of a server associated with the equipment existence control.
In an exemplary embodiment, the above apparatus further includes: the adjustment module is used for starting adjustment operation of the first detail data content corresponding to the tag data in the near field communication tag under the condition that the distance between the mobile terminal and the near field communication tag is smaller than a first threshold value; and replacing the first detail data content with a second detail data content through the adjustment operation, and binding the second detail data content with the tag data.
In an exemplary embodiment, the adjusting module further includes: the editing unit is used for displaying the first detail data content corresponding to the currently stored tag data on the equipment detail page of the mobile terminal and acquiring the latest version of action detail data corresponding to the equipment; the action detail data comprise an identification code of the equipment and an action coding set which is allowed to be realized by the equipment; receiving a setting instruction sent by a target object, wherein the setting instruction is used for modifying the content of the first detail data by referring to the action detail data; and editing the first detail data content through the setting instruction to obtain a second detail data content.
In an exemplary embodiment, the editing unit is further configured to, in a case where the setting instruction is a determination instruction, determine that the first detail data content is valid data, and stop an adjustment operation for the first detail data content; and under the condition that the setting instruction is an editing instruction, determining an action set of the action to be executed after updating of the target object, and determining a target action code corresponding to the action set.
In an exemplary embodiment, the adjusting module further includes: a replacing unit, configured to generate a target second field corresponding to the target action code when a distance between the mobile terminal and the near field communication tag is greater than or equal to a first threshold and less than a second threshold; and replacing the corresponding second field in the tag data with the target second field.
In an exemplary embodiment, the above method further comprises: the prompt module is also used for acquiring the update period of the tag data; and under the condition that the service period of the tag data is longer than the updating period, sending prompt information to the target object, wherein the prompt information is used for confirming the validity of the tag data stored in the near field communication tag to the target object.
According to still another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the control method of the above-described apparatus when running.
According to still another aspect of the embodiments of the present application, there is further provided an electronic apparatus including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the control method of the device described above through the computer program.
In the embodiment of the application, tag data stored in a near field communication tag is acquired, wherein the near field communication tag is arranged on the surface of equipment, and the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range; analyzing the tag data to obtain a first field and a second field; the first field is used for describing a service type corresponding to the equipment, and the second field is used for describing equipment actions corresponding to the service type; transmitting a device control request to the server based on the first field and the second field to control the device; by adopting the technical scheme, the problems that in the related technology, near field communication tag information is limited, function service is single, service expansion cannot be supported and the like are solved, through setting the content corresponding to the field in the tag data, the application programming interface corresponding to the service type of the corresponding control equipment in the near field communication tag is flexibly set, so that the tag data can be fixed to the service corresponding to the pointing equipment, and then the change of the equipment service type corresponding to the tag data stored in the near field communication tag on the equipment can be realized by replacing the second field, and the support of the near field communication tag to the service expansion is promoted.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a hardware environment of a control method of an apparatus according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of controlling an apparatus according to an embodiment of the present application;
FIG. 3 is a timing diagram of a control method of an apparatus according to an embodiment of the present application;
fig. 4 is a timing diagram of NFC execution action editing according to an embodiment of the present application;
fig. 5 is a block diagram of a control device of an apparatus according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a method for controlling an apparatus is provided. The control method of the device is widely applied to full-house intelligent digital control application scenes such as Smart Home (Smart Home), intelligent Home device ecology, intelligent Home (intelligent house) ecology and the like. Alternatively, in the present embodiment, the control method of the above-described apparatus may be applied to a hardware environment constituted by the terminal apparatus 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, a control method of a device is provided and applied to the computer terminal, and fig. 2 is a flowchart of a control method of a device according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, acquiring tag data stored in a near field communication tag, wherein the near field communication tag is arranged on the surface of equipment, and the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range;
for example, the near field communication tag may be attached, embedded or suspended on the surface of the device, and further may be disposed in an internal table of the device according to the structure of the device.
It should be noted that, when the near field communication tag and the terminal having near field communication are in a preset communication range, for example: when the communication induction range of 5cm is within, the terminal can change the tag data in the near field communication tag, and perform operations such as modification and replacement on the tag data, so that the functional range of the near field communication tag is improved by changing the tag data under the condition that the near field communication tag does not change any state, the practicability of the near field communication tag is further improved, and the tag waste is reduced.
Step S204, analyzing the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service;
optionally, the first field includes configuration information corresponding to an application programming interface indicating a server associated with the device presence control and an action to be performed corresponding to the device, and the second field includes an action code of the configuration information corresponding to the action to be performed;
step S206, a device control request is sent to the server based on the first field and the second field, so as to control the device.
It should be noted that, the device control request determined through the first field and the second field is equivalent to a shortcut instruction that can be executed by a device, and the device can quickly execute the shortcut instruction after receiving the device control request, so that the device can timely adjust to a state required by a target object for setting the tag data.
Through the steps, tag data stored in a near field communication tag are obtained, wherein the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range, and the near field communication tag is arranged on the surface of equipment; analyzing the tag data to obtain a first field and a second field; the first field is used for describing a service type corresponding to the equipment, and the second field is used for describing equipment actions corresponding to the service type; transmitting a device control request to the server based on the first field and the second field to control the device; by adopting the technical scheme, the problems that in the related technology, near field communication tag information is limited, function service is single, service expansion cannot be supported and the like are solved, through setting the content corresponding to the field in the tag data, the application programming interface corresponding to the service type of the corresponding control equipment in the near field communication tag is flexibly set, so that the tag data can be fixed to the service corresponding to the pointing equipment, and then the change of the equipment service type corresponding to the tag data stored in the near field communication tag on the equipment can be realized by replacing the second field, and the support of the near field communication tag to the service expansion is promoted.
The control method of the device can be applied to a target application installed on the mobile terminal.
In an exemplary embodiment, after sending a device control request to a server based on the first field and the second field to control the device, the method further includes: under the condition that the server side is determined to finish the execution of the equipment control request, an execution result in the server side is obtained; determining a follow-up action corresponding to the equipment control request at present under the condition that the execution result indicates that the equipment control request is successfully executed, wherein the follow-up action is used for keeping continuous control on equipment; and under the condition that the execution result indicates that the equipment control request fails to be executed, prohibiting sending the equipment control request to the equipment, and checking an application programming interface of a server associated with the equipment existence control.
It can be understood that, by acquiring an execution result of the device control request from the server, the target application on the mobile terminal determines whether the current device supports device control by using the tag data stored in the near field communication tag, and displays a subsequent action corresponding to the device control request in the target application, and when the device control request cannot be executed by the device, it is indicated that the tag data stored in the near field communication tag is abnormal, and an application programming interface of the server carried in the tag data needs to be checked, so that the validity of interaction between the server and the target application and the effectiveness of interaction between the server and the tag data of the near field communication tag are ensured.
In an exemplary embodiment, before acquiring the tag data stored in the near field communication tag, the method further comprises: under the condition that the distance between the mobile terminal and the near field communication tag is smaller than a first threshold value, the adjustment operation of the first detail data content corresponding to the tag data in the near field communication tag is started; and replacing the first detail data content with a second detail data content through the adjustment operation, and binding the second detail data content with the tag data.
In short, when the distance between the mobile terminal and the near field communication tag is set properly, the tag data in the near field communication tag can execute modification, replacement, deletion and the like on the detail data content corresponding to the tag data through the target application, so that the first detail data content corresponding to the tag data in the target application can be replaced by the second detail data content, thereby changing the service type of the device which can be quickly realized and is provided by the tag data, and enabling the near field communication tag to support function expansion.
In an exemplary embodiment, before replacing the first detail data content with the second detail data content by the adjustment operation, the method further includes: displaying the first detail data content corresponding to the currently stored tag data on a device detail page of the mobile terminal, and acquiring the action detail data of the latest version corresponding to the device; the action detail data comprise an identification code of the equipment and an action coding set which is allowed to be realized by the equipment; receiving a setting instruction sent by a target object, wherein the setting instruction is used for modifying the content of the first detail data by referring to the action detail data; and editing the first detail data content through the setting instruction to obtain a second detail data content.
In an exemplary embodiment, editing the first detail data content through the setting instruction to obtain a second detail data content includes: under the condition that the setting instruction is a determining instruction, determining the first detail data content as effective data, and stopping the adjustment operation of the first detail data content; and under the condition that the setting instruction is an editing instruction, determining an action set of the action to be executed after updating of the target object, and determining a target action code corresponding to the action set.
In other words, when the target object sends a determining instruction on the target application, it indicates that the target object determines that the device corresponding to the tag data in the current near field communication tag allows the service type to be provided as the type required by the target object, and no change is needed; when the target object sends out an editing instruction on the target application, the editing instruction indicates that the action codes selected or input after the target object is combined, and the field content in the tag data is changed.
In an exemplary embodiment, after editing the first detailed data content by the setting instruction to obtain the second detailed data content, the method further includes: generating a target second field corresponding to the target action code under the condition that the distance between the mobile terminal and the near field communication tag is larger than or equal to a first threshold value and smaller than a second threshold value; and replacing the corresponding second field in the tag data with the target second field.
In an exemplary embodiment, the above method further comprises: acquiring an update period of the tag data; and under the condition that the service period of the tag data is longer than the updating period, sending prompt information to the target object, wherein the prompt information is used for confirming the validity of the tag data stored in the near field communication tag to the target object.
In order to better understand the process of the control method of the above-mentioned device, the following describes the implementation method flow of the control of the above-mentioned device with reference to the alternative embodiment, but is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a control method of a device is provided, where a user edits actions (on/off or temperature adjustment, etc.) performed by NFC on a device detail page, and then writes an action code into an NFC tag. The user touches the NFC tag and invokes the service interface to execute corresponding actions. And returns actions to be executed later to the App, jump to a detail page, etc. The user can change the execution action on the detail page without re-writing the NFC tag. Therefore, the user can directly change the NFC shortcut action in the H5 page in the APP without rewriting the NFC label. The user can touch the NFC tag by using the mobile phone, the executed shortcut action can be updated at any time, and the control equipment is more convenient.
Fig. 3 is a timing chart of a control method of an apparatus according to an embodiment of the present application, as shown in fig. 3, the specific procedure is as follows:
step one, after a user (corresponding to the target object in the above embodiment) touches an NFC tag (corresponding to the near field communication tag in the above embodiment), the mobile phone identifies writing information (corresponding to the tag data in the above embodiment) in NFC;
optionally, the NFC tag includes: the type of subtype is API, unique action code.
Step two, the APP is called by writing information in the NFC, and the APP analyzes an untype field (which is equivalent to the first field in the embodiment) to obtain API (Application Programming Interface, application programming interface, abbreviated as API) type data. After the APP end recognizes the API type, the server end is invoked to perform related actions, and optionally, the front end may change actions, such as powering on and powering off, adjusting temperature, and the like.
Step three, the APP requests the interface of the server, and the server is called to execute API action, namely action coding (corresponding to the second field in the embodiment) according to the input API type data. The server side inquires the action content configuration of the action code corresponding to the API action and sends a control command to the equipment side.
Returning to the APP interface callback after the control is successful, wherein the callback can comprise: and executing a result and a follow-up action, and executing the follow-up operation by the APP. I.e. after the server control device has completed execution, the result and the follow-up actions of the APP (e.g. jump details, binding device or no action) are returned.
Optionally, the device detail page in the APP can edit the nfc to execute the action, so that after the home appliance leaves the factory, the nfc paste can set the nfc shortcut function through the APP of the mobile phone (corresponding to the mobile terminal in the embodiment of the invention) without frequent writing. Fig. 4 is a timing diagram of NFC execution action editing according to an embodiment of the present application, as shown in fig. 4, including:
step 1: entering a device detail page in the APP, and acquiring a device control action detail list, wherein the action details comprise a device ID and an action code;
step 2: editing control command details of device control actions
Step 2.1: and storing the edited action to a server, and enabling the edited shortcut action to be used when the mobile phone touches nfc next time.
According to the embodiment, the popularity of the intelligent household appliances is higher, and the user can control the equipment through remote control and voice under the condition that the behavior of the equipment is more frequent. Actions (on/off or temperature adjustment, etc.) performed by NFC are edited by the user on the device details page, and then action codes are written into the NFC tag. The user touches the NFC tag and invokes the service interface to execute corresponding actions. And returns actions to be executed later to the App, jump to a detail page, etc. The user can change the execution action on the detail page without re-writing the NFC tag. On the premise that the existing NFC writable information is small, corresponding tag data are edited, and the problems that after NFC is identified, URL or control equipment can only be singly evoked and function expansion cannot be supported are solved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present application.
Fig. 5 is a block diagram of a control device of an apparatus according to an embodiment of the present application. As shown in fig. 5, includes:
the acquiring module 52 is configured to acquire tag data stored in a near field communication tag, where the near field communication tag is disposed at an arbitrary position on a surface of a device, and the near field communication tag is configured to interact with a terminal having near field communication to perform tag data within a preset communication range;
the parsing module 54 is configured to parse the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service;
and a control module 56, configured to send a device control request to a server based on the first field and the second field, so as to control the device.
Acquiring tag data stored in a near field communication tag through the device, wherein the near field communication tag is arranged on the surface of equipment; analyzing the tag data to obtain a first field and a second field; the first field is used for describing a service type corresponding to the equipment, and the second field is used for describing equipment actions corresponding to the service type; transmitting a device control request to the server based on the first field and the second field to control the device; by adopting the technical scheme, the problems that in the related technology, near field communication tag information is limited, function service is single, service expansion cannot be supported and the like are solved, through setting the content corresponding to the field in the tag data, the application programming interface corresponding to the service type of the corresponding control equipment in the near field communication tag is flexibly set, so that the tag data can be fixed to the service corresponding to the pointing equipment, and then the change of the equipment service type corresponding to the tag data stored in the near field communication tag on the equipment can be realized by replacing the second field, and the support of the near field communication tag to the service expansion is promoted.
In an exemplary embodiment, the above apparatus further includes: the determining module is used for acquiring an execution result in the server under the condition that the server is determined to finish the execution of the equipment control request; determining a follow-up action corresponding to the equipment control request at present under the condition that the execution result indicates that the equipment control request is successfully executed, wherein the follow-up action is used for keeping continuous control on equipment; and under the condition that the execution result indicates that the equipment control request fails to be executed, prohibiting sending the equipment control request to the equipment, and checking an application programming interface of a server associated with the equipment existence control.
In an exemplary embodiment, the above apparatus further includes: the adjustment module is used for starting adjustment operation of the first detail data content corresponding to the tag data in the near field communication tag under the condition that the distance between the mobile terminal and the near field communication tag is smaller than a first threshold value; and replacing the first detail data content with a second detail data content through the adjustment operation, and binding the second detail data content with the tag data.
In an exemplary embodiment, the adjusting module further includes: the editing unit is used for displaying the first detail data content corresponding to the currently stored tag data on the equipment detail page of the mobile terminal and acquiring the latest version of action detail data corresponding to the equipment; the action detail data comprise an identification code of the equipment and an action coding set which is allowed to be realized by the equipment; receiving a setting instruction sent by a target object, wherein the setting instruction is used for modifying the content of the first detail data by referring to the action detail data; and editing the first detail data content through the setting instruction to obtain a second detail data content.
In an exemplary embodiment, the editing unit is further configured to, in a case where the setting instruction is a determination instruction, determine that the first detail data content is valid data, and stop an adjustment operation for the first detail data content; and under the condition that the setting instruction is an editing instruction, determining an action set of the action to be executed after updating of the target object, and determining a target action code corresponding to the action set.
In an exemplary embodiment, the adjusting module further includes: a replacing unit, configured to generate a target second field corresponding to the target action code when a distance between the mobile terminal and the near field communication tag is greater than or equal to a first threshold and less than a second threshold; and replacing the corresponding second field in the tag data with the target second field.
In an exemplary embodiment, the above method further comprises: the prompt module is also used for acquiring the update period of the tag data; and under the condition that the service period of the tag data is longer than the updating period, sending prompt information to the target object, wherein the prompt information is used for confirming the validity of the tag data stored in the near field communication tag to the target object.
Embodiments of the present application also provide a storage medium including a stored program, wherein the program performs the method of any one of the above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, acquiring tag data stored in a near field communication tag, wherein the near field communication tag is arranged on the surface of equipment, and the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range;
s2, analyzing the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service;
and S3, sending a device control request to the server based on the first field and the second field so as to control the device.
Embodiments of the present application also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring tag data stored in a near field communication tag, wherein the near field communication tag is arranged on the surface of equipment, and the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range;
s2, analyzing the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service;
and S3, sending a device control request to the server based on the first field and the second field so as to control the device.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed across a network of computing devices, or they may alternatively be implemented in program code executable by computing devices, such that they may be stored in a memory device for execution by the computing devices and, in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be implemented as individual integrated circuit modules, or as individual integrated circuit modules. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (9)

1. A control method of an apparatus, characterized by comprising:
acquiring tag data stored in a near field communication tag, wherein the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range;
analyzing the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service;
sending a device control request to a server based on the first field and the second field to control the device;
the method further comprises the steps of: under the condition that the server side is determined to finish the execution of the equipment control request, an execution result in the server side is obtained; determining a follow-up action corresponding to the equipment control request at present under the condition that the execution result indicates that the equipment control request is successfully executed, wherein the follow-up action is used for keeping continuous control on equipment; and under the condition that the execution result indicates that the equipment control request fails to be executed, prohibiting sending the equipment control request to the equipment, and checking an application programming interface of a server associated with the equipment existence control.
2. The method of controlling a device according to claim 1, wherein before acquiring tag data stored in a near field communication tag, the method further comprises:
under the condition that the distance between the mobile terminal and the near field communication tag is smaller than a first threshold value, the adjustment operation of the first detail data content corresponding to the tag data in the near field communication tag is started;
and replacing the first detail data content with a second detail data content through the adjustment operation, and binding the second detail data content with the tag data.
3. The method of controlling an apparatus according to claim 2, wherein before replacing the first detail data content with the second detail data content by the adjustment operation, the method further comprises:
displaying the first detail data content corresponding to the currently stored tag data on a device detail page of the mobile terminal, and acquiring the action detail data of the latest version corresponding to the device; the action detail data comprise an identification code of the equipment and an action coding set which is allowed to be realized by the equipment;
receiving a setting instruction sent by a target object, wherein the setting instruction is used for modifying the content of the first detail data by referring to the action detail data;
and editing the first detail data content through the setting instruction to obtain a second detail data content.
4. A control method of an apparatus according to claim 3, wherein editing the first detail data content by the setting instruction to obtain a second detail data content comprises:
under the condition that the setting instruction is a determining instruction, determining the first detail data content as effective data, and stopping the adjustment operation of the first detail data content;
and under the condition that the setting instruction is an editing instruction, determining an action set of the action to be executed after updating of the target object, and determining a target action code corresponding to the action set.
5. The method according to claim 4, wherein after editing the first detail data content by the setting instruction to obtain a second detail data content, the method further comprises: generating a target second field corresponding to the target action code under the condition that the distance between the mobile terminal and the near field communication tag is larger than or equal to a first threshold value and smaller than a second threshold value;
and replacing the corresponding second field in the tag data with the target second field.
6. The control method of an apparatus according to any one of claims 1 to 5, characterized in that the method further comprises:
acquiring an update period of the tag data;
and under the condition that the service period of the tag data is longer than the updating period, sending prompt information to the target object, wherein the prompt information is used for confirming the validity of the tag data stored in the near field communication tag to the target object.
7. A control device of an apparatus, characterized by comprising:
the acquisition module is used for acquiring tag data stored in a near field communication tag, wherein the near field communication tag is used for carrying out interaction of the tag data with a terminal with near field communication in a preset communication range;
the analysis module is used for analyzing the tag data to obtain a first field and a second field; the first field is used for describing the type of the service which the device is allowed to provide, and the second field is used for describing the action of the device corresponding to the type of the service;
the control module is used for sending a device control request to a server based on the first field and the second field so as to control the device;
the apparatus further comprises: the determining module is used for acquiring an execution result in the server under the condition that the server is determined to finish the execution of the equipment control request; determining a follow-up action corresponding to the equipment control request at present under the condition that the execution result indicates that the equipment control request is successfully executed, wherein the follow-up action is used for keeping continuous control on equipment; and under the condition that the execution result indicates that the equipment control request fails to be executed, prohibiting sending the equipment control request to the equipment, and checking an application programming interface of a server associated with the equipment existence control.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, performs the control method of the apparatus as claimed in any one of the preceding claims 1 to 6.
9. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute a control method of the apparatus according to any of the claims 1 to 6 by means of the computer program.
CN202211116693.1A 2022-09-14 2022-09-14 Control method and device of equipment, storage medium and electronic device Active CN115484119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211116693.1A CN115484119B (en) 2022-09-14 2022-09-14 Control method and device of equipment, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211116693.1A CN115484119B (en) 2022-09-14 2022-09-14 Control method and device of equipment, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN115484119A CN115484119A (en) 2022-12-16
CN115484119B true CN115484119B (en) 2023-12-19

Family

ID=84393023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211116693.1A Active CN115484119B (en) 2022-09-14 2022-09-14 Control method and device of equipment, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115484119B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104025556A (en) * 2011-09-01 2014-09-03 艾利丹尼森公司 Apparatus, system and method for consumer tracking
CN105049634A (en) * 2015-08-19 2015-11-11 Tcl移动通信科技(宁波)有限公司 Battery mobile terminal based on NFC recognition and recognition method
CN105409166A (en) * 2013-07-31 2016-03-16 索尼公司 Information processing apparatus, information processing method, program, and information processing system
CN105468005A (en) * 2016-02-03 2016-04-06 天津市乐图软件科技有限公司 Automatic trolley guiding system and method based on RFID and CCD
CN106991352A (en) * 2016-04-01 2017-07-28 珠海艾派克微电子有限公司 The data read-write method of NFC reader and NFC label
WO2018040939A1 (en) * 2016-08-30 2018-03-08 青岛海尔洗衣机有限公司 Washing control method for washing machine, and washing machine
CN109726781A (en) * 2018-11-29 2019-05-07 浙江树人学院 A kind of remote production control method based on RFID label tag
CN109784456A (en) * 2018-12-21 2019-05-21 深圳市远望谷信息技术股份有限公司 A kind of electronic label chip of the double agreements of passive RFID
CN110426964A (en) * 2019-08-13 2019-11-08 合肥美的电冰箱有限公司 Domestic electric appliances controller, smart machine, household electrical appliances, appliance control system and method
CN111413883A (en) * 2020-03-31 2020-07-14 广东美的制冷设备有限公司 Control method and control device for household electrical appliance and computer storage medium
CN113064353A (en) * 2021-03-18 2021-07-02 华帝股份有限公司 Control method of Internet of things intelligent household equipment
CN113686001A (en) * 2021-08-25 2021-11-23 四川虹美智能科技有限公司 Air conditioner control method and system based on NFC
CN215420340U (en) * 2021-05-26 2022-01-04 眉山环天智慧科技有限公司 Pipe network remote control system based on cloud platform

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8028905B2 (en) * 2007-05-18 2011-10-04 Holberg Jordan R System and method for tracking individuals via remote transmitters attached to personal items
US9437060B2 (en) * 2012-08-13 2016-09-06 Crestron Electronics, Inc. Initiating remote control using near field communications

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104025556A (en) * 2011-09-01 2014-09-03 艾利丹尼森公司 Apparatus, system and method for consumer tracking
CN105409166A (en) * 2013-07-31 2016-03-16 索尼公司 Information processing apparatus, information processing method, program, and information processing system
CN105049634A (en) * 2015-08-19 2015-11-11 Tcl移动通信科技(宁波)有限公司 Battery mobile terminal based on NFC recognition and recognition method
CN105468005A (en) * 2016-02-03 2016-04-06 天津市乐图软件科技有限公司 Automatic trolley guiding system and method based on RFID and CCD
CN106991352A (en) * 2016-04-01 2017-07-28 珠海艾派克微电子有限公司 The data read-write method of NFC reader and NFC label
WO2018040939A1 (en) * 2016-08-30 2018-03-08 青岛海尔洗衣机有限公司 Washing control method for washing machine, and washing machine
CN109726781A (en) * 2018-11-29 2019-05-07 浙江树人学院 A kind of remote production control method based on RFID label tag
CN109784456A (en) * 2018-12-21 2019-05-21 深圳市远望谷信息技术股份有限公司 A kind of electronic label chip of the double agreements of passive RFID
CN110426964A (en) * 2019-08-13 2019-11-08 合肥美的电冰箱有限公司 Domestic electric appliances controller, smart machine, household electrical appliances, appliance control system and method
CN111413883A (en) * 2020-03-31 2020-07-14 广东美的制冷设备有限公司 Control method and control device for household electrical appliance and computer storage medium
CN113064353A (en) * 2021-03-18 2021-07-02 华帝股份有限公司 Control method of Internet of things intelligent household equipment
CN215420340U (en) * 2021-05-26 2022-01-04 眉山环天智慧科技有限公司 Pipe network remote control system based on cloud platform
CN113686001A (en) * 2021-08-25 2021-11-23 四川虹美智能科技有限公司 Air conditioner control method and system based on NFC

Also Published As

Publication number Publication date
CN115484119A (en) 2022-12-16

Similar Documents

Publication Publication Date Title
CN113111199B (en) Method and device for continuing playing of multimedia resource, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN108154036B (en) Control method and control device of intelligent equipment
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN115200146A (en) Method and device for sending closing command, storage medium and electronic device
WO2023202029A1 (en) Tag data adjustment method and apparatus, and storage medium
CN112764350A (en) Control method and device of intelligent household equipment and storage medium
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN115460060A (en) Equipment upgrading method and device for intelligent equipment, storage medium and electronic device
CN115297103B (en) Method and device for acquiring logic constraint file, storage medium and electronic device
WO2023202043A1 (en) Data tag binding method and apparatus, storage medium, and electronic apparatus
CN115525309A (en) Version updating method and device, storage medium and electronic device
CN114584416B (en) Electrical equipment control method, system and storage medium
CN114928645B (en) Resource package processing method and device, storage medium and electronic device
CN115373283A (en) Control instruction determination method and device, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115695534A (en) Target application running method and device, storage medium and electronic device
CN115032917A (en) Device control method, storage medium, and electronic apparatus
CN116545791A (en) Parameter adjustment method and device, storage medium and electronic device
CN116010005A (en) Control instruction execution state feedback method and electronic device
CN115001885A (en) Device control method and apparatus, storage medium, and electronic apparatus

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
GR01 Patent grant
GR01 Patent grant