CN113965428A - Linkage control method and device, computer equipment and storage medium - Google Patents

Linkage control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113965428A
CN113965428A CN202111209720.5A CN202111209720A CN113965428A CN 113965428 A CN113965428 A CN 113965428A CN 202111209720 A CN202111209720 A CN 202111209720A CN 113965428 A CN113965428 A CN 113965428A
Authority
CN
China
Prior art keywords
control
instruction
equipment
linkage
information
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
Application number
CN202111209720.5A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111209720.5A priority Critical patent/CN113965428A/en
Publication of CN113965428A publication Critical patent/CN113965428A/en
Pending legal-status Critical Current

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisious for transferring data to distant stations, e.g. from a sensing device
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The application relates to a linkage control method, a linkage control device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining tag information stored in an NFC tag through an NFC communication technology, wherein the tag information comprises a target linkage instruction, the target linkage instruction comprises an association relation between a plurality of control instructions and equipment information of control equipment, obtaining operation information of the plurality of control equipment corresponding to the target linkage instruction, deleting the association relation related to abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information, wherein the abnormal equipment is the control equipment of which the operation information cannot meet the execution condition of the corresponding control instruction, and avoiding the condition that all control equipment corresponding to the target linkage instruction cannot execute the corresponding control instruction due to the influence of the individual control equipment which cannot execute the control instruction.

Description

Linkage control method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a linkage control method and apparatus, a computer device, and a storage medium.
Background
Near Field Communication (NFC) is a fast short-distance high-frequency wireless Communication technology that operates on a frequency of 13.56MHz (megahertz), has a Communication connection establishment time of less than 1 second, and has a Communication distance generally limited to 10 centimeters.
The NFC tag can communicate with portable communication equipment such as a mobile phone, so that the working state of the mobile phone can be changed or software or settings related to the NFC tag in the mobile phone can be opened. The NFC label is stored with data written in by a mobile phone in advance, when the mobile phone with the NFC function is close to the NFC label, the mobile phone senses the NFC label and effectively recognizes the NFC label, the working state of the mobile phone can be converted through mobile phone software, if the mobile phone automatically opens navigation, the mobile phone automatically enters a meeting mode, automatically connects a designated Wifi hotspot, automatically listens to music, automatically closes a Wifi signal, enters a flight mode and the like.
The linkage pattern stored in the NFC tag may involve linkage of multiple devices, for example: the linkage mode corresponds to linkage control participated by a plurality of devices such as a closed curtain, a closed television, a closed sound and the like, but when a certain device changes and can not execute corresponding actions, all devices in the whole linkage mode can not execute the corresponding actions or report errors, the linkage trigger rate of the linkage mode is easily reduced, and the use experience of a user is influenced.
Disclosure of Invention
In order to solve the technical problem that a linkage mode comprising equipment cannot normally operate when the equipment is changed, the application provides a linkage control method, a linkage control device, computer equipment and a storage medium.
In a first aspect, the present application provides a linkage control method, including:
acquiring label information in the NFC label, wherein the label information comprises a target linkage instruction, and the target linkage instruction comprises an incidence relation between a plurality of control instructions and equipment information of control equipment;
acquiring operation information of a plurality of control devices corresponding to the target linkage instruction;
and deleting the association relation related to the abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information corresponding to the plurality of control equipment, wherein the abnormal equipment is the control equipment of which the operation information can not meet the execution condition of the corresponding control instruction.
In a second aspect, the present application provides a linkage control apparatus comprising:
the tag induction module is used for acquiring tag information in the NFC tag, wherein the tag information comprises a target linkage instruction, and the target linkage instruction comprises an incidence relation between a plurality of control instructions and equipment information of control equipment;
the information acquisition module is used for acquiring the operation information of a plurality of control devices corresponding to the target linkage instruction;
and the instruction updating module is used for deleting the association relation related to the abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information corresponding to the plurality of control equipment, wherein the abnormal equipment is the control equipment of which the operation information can not meet the execution condition of the corresponding control instruction.
In a third aspect, the present embodiment provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
acquiring label information in the NFC label, wherein the label information comprises a target linkage instruction, and the target linkage instruction comprises an incidence relation between a plurality of control instructions and equipment information of control equipment;
acquiring operation information of a plurality of control devices corresponding to the target linkage instruction;
and deleting the association relation related to the abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information corresponding to the plurality of control equipment, wherein the abnormal equipment is the control equipment of which the operation information can not meet the execution condition of the corresponding control instruction.
In a fourth aspect, the present embodiments provide a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
acquiring label information in the NFC label, wherein the label information comprises a target linkage instruction, and the target linkage instruction comprises an incidence relation between a plurality of control instructions and equipment information of control equipment;
acquiring operation information of a plurality of control devices corresponding to the target linkage instruction;
and deleting the association relation related to the abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information corresponding to the plurality of control equipment, wherein the abnormal equipment is the control equipment of which the operation information can not meet the execution condition of the corresponding control instruction.
Based on the linkage control method, label information stored in the NFC label is obtained through an NFC communication technology, the label information comprises a target linkage instruction, the target linkage instruction comprises an association relation between a plurality of control instructions and equipment information of control equipment, namely, the control equipment related to the target linkage instruction performs linkage action according to the corresponding control instructions, operation information of the plurality of control equipment corresponding to the target linkage instruction is obtained, whether the control equipment meets the execution condition of the corresponding control instruction or not is judged according to the operation information, under the condition that abnormal equipment exists in the plurality of control equipment is determined according to the operation information, the association relation related to the abnormal equipment in the target linkage instruction is deleted, the abnormal equipment is the control equipment of which the operation information cannot meet the execution condition of the corresponding control instruction, namely, the control instruction related to the abnormal equipment is deleted in the target linkage instruction, the control device is used for skipping the control instruction corresponding to the abnormal device when executing the target linkage instruction, and enabling other control devices meeting the execution condition of the corresponding control instruction to normally execute the corresponding control instruction, so that the situation that all control devices corresponding to the target linkage instruction cannot execute the corresponding control instruction due to the influence of individual control devices which cannot execute the control instruction is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a diagram of an exemplary linkage control method;
FIG. 2 is a schematic flow chart of a linkage control method according to an embodiment;
FIG. 3 is a block diagram of a linkage control apparatus according to one embodiment;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is an application environment diagram of the linkage control method in one embodiment. Referring to fig. 1, the coordinated control method is applied to a coordinated control system. The coordinated control system includes an NFC device 110, an NFC tag 120, and a control device 130. The NFC device 110 and the control device 130 are connected via a network, and the NFC device 110 and the NFC tag 120 communicate via NFC communication technology. The NFC device 110 may specifically be an NFC reader, or may also be any electronic device supporting NFC communication, for example, a terminal supporting NFC communication, where the terminal may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like. The control equipment is any intelligent equipment capable of being controlled, such as an intelligent television, an intelligent refrigerator, a floor sweeping robot, an intelligent sound box and the like.
The NFC tag 120 includes an NFC coil and an NFC chip, and the NFC tag 120 can communicate with the NFC device 110. An NFC coil is a coil in which an NFC antenna is wound in a circle or an ellipse or any other shape, and is used to capture electric energy from an electromagnetic field and perform transceiving communication carrying a small amount of data by demodulating or modulating the electromagnetic field. The NFC chip is a chip for storing information. When the NFC device 110 is close to the NFC tag 120, the NFC device 110 emits electromagnetic energy to the NFC tag 120, the NFC coil on the NFC tag 120 couples the electromagnetic energy and transfers the electromagnetic energy to the NFC chip connected to the NFC coil, and the NFC chip converts the electromagnetic energy into a power supply required by circuits such as a microcontroller, a modem, and a memory inside the NFC chip through a rectifying circuit. When the circuits such as the microcontroller, the modem, and the memory start to operate after power-on, tag information stored in the NFC chip may be transmitted to the NFC device 110 through the NFC coil.
In one embodiment, fig. 2 is a flow chart illustrating a linkage control method according to one embodiment, and referring to fig. 2, a linkage control method is provided. In this embodiment, the method is mainly applied to the NFC device 110 in fig. 1 for example, in this embodiment, a terminal with an NFC function is taken as the NFC device 110 for example, and the linkage control method specifically includes the following steps:
step S210, obtaining tag information in the NFC tag.
In this embodiment, the tag information includes linkage instructions corresponding to a plurality of linkage modes, each linkage mode corresponds to one linkage scene, each linkage scene corresponds to one linkage instruction, the linkage modes may specifically be an outgoing mode, a home mode, a sleep mode, and the like, each linkage instruction includes an association relationship between a plurality of control instructions and device information of a control device corresponding to each control instruction, that is, the linkage instruction includes a plurality of control instructions, each control instruction is used to control one control device, each control device acts according to the control instruction having the association relationship with the control device, for example, the linkage instruction corresponding to the outgoing mode includes a plurality of control instructions for closing a smart door and window, closing a smart television, closing a smart sound box, and closing a smart lamp. The target linkage instruction is any one or more of the plurality of linkage instructions, and naturally also includes an association relationship between the plurality of control instructions and the device information of the control device corresponding to each control instruction.
And step S220, acquiring the operation information of a plurality of control devices corresponding to the target linkage instruction.
In this embodiment, before the plurality of control devices corresponding to the target linkage command act according to the respective corresponding control commands, it is necessary to detect whether the control device related to the target linkage command satisfies the execution condition of the corresponding control command, it is necessary to acquire the operation information of the plurality of control devices related to the target linkage command, thereby judging whether a plurality of control devices related to the target linkage instruction meet the execution conditions of the corresponding control instructions or not, wherein the operation information comprises the operation state and the attribute information of the control devices, the operation state specifically comprises an operation mode and a start-stop state, the operation mode is used for indicating the operation mode of the control devices for realizing different functions, for example, the operation modes of the smart air conditioner include a cooling mode, a heating mode, a ventilation mode, a dehumidification mode and the like, and the operation modes of the smart television include a normal mode and a child mode. The start-stop state specifically includes a standby state, a power-on state, a power-off state and the like. The attribute information refers to device parameters of the control device, such as the model, size, and type of the control device.
And step S230, deleting the association relation related to the abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information corresponding to the plurality of control equipment.
In this embodiment, the abnormal device is a control device whose operation information cannot satisfy the execution condition of the corresponding control instruction, and the association relation related to the abnormal device in the target linkage instruction is deleted, that is, the device information of the abnormal device and the control instruction corresponding to the abnormal device in the target linkage instruction are deleted, so that the control instruction corresponding to the abnormal device is skipped when the target linkage instruction is executed, and other control devices satisfying the execution condition of the corresponding control instruction are enabled to normally execute the corresponding control instruction, thereby avoiding that all control devices corresponding to the target linkage instruction cannot execute the corresponding control instruction due to the influence of individual control devices which cannot execute the control instruction.
For example, the linkage mode corresponding to the target linkage instruction is an outgoing mode, the linkage instruction corresponding to the outgoing mode comprises a control instruction for closing the intelligent door and window, a control instruction for closing the intelligent television, a control instruction for closing the intelligent sound box and a control instruction for closing the intelligent lamp, however, because the smart sound box fails or is moved out of the preset area, the preset area refers to a designated area where the NFC device can receive the operation information of each control device, for example, the preset area is a home area, then the control instruction corresponding to the intelligent sound box in the target linkage instruction is deleted, so that under the condition that the NFC equipment induces the NFC label and triggers the outgoing mode, although the intelligent sound box cannot meet the execution condition of the corresponding control instruction, the target linkage instruction is correspondingly optimized and modified, so that the target linkage instruction corresponding to the outgoing mode cannot be continuously executed or an error is reported because the intelligent sound box cannot execute the corresponding control instruction.
Before the response NFC label, can write into the NFC label in advance with the linkage instruction, when NFC equipment sensed the NFC label, can trigger this linkage instruction, when the some controlgear that the linkage instruction related appears unusually (damage, remove), the linkage instruction can't be revised automatically in prior art, for example in the linkage instruction about closing intelligent door and window, close smart television, close control instruction such as intelligent stereo set, but the intelligent stereo set has been bad or has been taken away by friend, lead to this linkage instruction can't continue the execution.
However, in this embodiment, the linkage command can be dynamically and automatically corrected, that is, a control command that cannot be executed in the linkage command is automatically subtracted, which is described in the above example: the linkage instruction relates to control instructions such as closing a window curtain, closing a television, closing a sound box and the like, but the intelligent sound box is damaged or taken away by friends, and according to the running information of the intelligent sound box, the control instruction corresponding to the intelligent sound box in the linkage instruction is directly removed, or whether the control instruction corresponding to the intelligent sound box is removed from the linkage instruction is prompted to a user, so that the linkage instruction is automatically corrected.
In one embodiment, after deleting the association relation related to the abnormal device in the target linkage command, the method further includes: and sending a control instruction corresponding to the target equipment in the target linkage instruction to the target equipment.
Specifically, after the target linkage instruction is optimized according to the abnormal device, the control instruction corresponding to the target device in the target linkage instruction can be continuously executed according to the optimized target linkage instruction, and the control instruction corresponding to the target device in the target linkage instruction is sent to the target device, where the target device is a control device whose operation information satisfies the execution condition of the corresponding control instruction, that is, the control device satisfying the corresponding control instruction in the plurality of control devices related to the target linkage instruction is allowed to continuously execute the corresponding control instruction, and the execution of the corresponding control instruction is not stopped due to the influence of the abnormal device.
The issuing of the control commands can be synchronous or one by one. After the control instruction is issued, it is determined whether the control device is successfully executed without comparing the device state, but feedback data of the target device is received, where the feedback data includes control data and an execution result that the control device executes according to the control instruction, and whether the device is successfully executed is also determined according to the execution result, where the execution result may be specifically represented in any character form, where in this embodiment, the execution result is OK indicates that the execution is successful, and the execution result is NO indicates that the execution is failed.
In one embodiment, the acquiring operation information of a plurality of control devices corresponding to the target linkage mode includes: sending a test instruction to the plurality of control devices; receiving first response information of the plurality of control devices to the test instruction, wherein the operation information comprises the first response information; before sending a control instruction corresponding to the target device in the target linkage instruction to the target device, the method further includes: and taking the control device corresponding to the first response information as the target device under the condition that the first response information indicates that the response is successful.
Specifically, the test instruction is used for instructing whether the test control device can respond successfully or not, the control device is determined to be the target device or the abnormal device according to first response information of each control device to the test instruction, the first response information is used for instructing a response result of the control device to the test instruction, the response result is response success or response failure, and when the first response information indicates that the response is successful, the control device is used as the target device when the control device meets an execution condition of the control instruction.
In one embodiment, after receiving the first response information of the control device to the test instruction, the method further includes: when the first response information indicates that the response fails, taking the control device corresponding to the first response information as an abnormal device; and stopping sending the corresponding control instruction to the abnormal equipment.
Specifically, if the first response information indicates that the response is failed, and indicates that the control device cannot respond to the test instruction, the control device is taken as an abnormal device, the control instruction corresponding to the abnormal device in the target linkage instruction is deleted according to the above embodiment, the abnormal device is skipped, the corresponding control instruction is rejected to be sent to the abnormal device, and only the target device is allowed to continue to execute the corresponding action according to the corresponding control instruction.
In one embodiment, in a case where the first response information indicates a response failure, the method further comprises: acquiring response records of the plurality of control devices to the test instruction; and under the condition that the second response information is matched with the first response information, taking the control equipment corresponding to the second response information as abnormal equipment.
Specifically, if the current control device fails to respond to the test instruction, response information of the control device responding to the test instruction before is acquired, and whether the control device cannot successfully respond to the test instruction currently due to accidental factors or cannot successfully respond to the test instruction due to abnormality of the control device is comprehensively judged by combining the previous response information. The response record comprises historical response information of the control equipment responding to the test instruction every time, the response information which is the latest time from the timestamp of the first response information in the historical response information is second response information, the timestamp of the second response information is earlier than the timestamp of the first response information, the second response information of the last response test instruction is compared with the first response information of the current response test instruction, the first response information indicates response failure, if the first response information is matched with the second response information, the control equipment responds to the test instruction last time and fails to respond to the test instruction two times, the control equipment can accurately judge that the control equipment cannot respond to the test instruction due to accidental factors, and the control equipment is judged to be abnormal equipment.
For an abnormal device, the abnormal device may be identified as an abnormal device when a response failure occurs in the previous embodiment; or when the linkage instruction is triggered next time, acquiring response information of the control equipment, comparing the first response information failed in response with the second response information recorded last time, and judging that the target equipment of the instruction is abnormal if the first response information and the second response information are consistent.
The abnormal device failing to respond may be obtained according to the content in the above embodiment, or may be detected by the gateway, for example, a certain network-connectable control device is disconnected, or an administrator removes a certain control device from the gateway.
In one embodiment, after determining that there is an abnormal device among the plurality of control devices, the method further includes: sending a write request to the NFC tag.
Specifically, after determining that an abnormal device exists in the plurality of control devices, a write request is automatically sent to the NFC tag, the write request comprises a deletion instruction, the deleting instruction is used for deleting the association relation related to the abnormal device in the NFC label, namely, under the condition that the NFC equipment determines abnormal equipment, the association relation related to the abnormal equipment in the target linkage command in the NFC label is automatically deleted, when the NFC label is used for sensing the next time to trigger the linkage instruction, the linkage action of each control device in the corresponding linkage mode can be realized directly according to the modified and optimized linkage instruction, the condition that the linkage instruction containing the association relation of abnormal devices is received when the NFC label is sensed next time is avoided, therefore, the NFC device needs to revise and optimize the linkage instruction including the abnormal device again according to the process in the above embodiment, which is equivalent to optimizing the linkage process of the subsequent linkage mode of the NFC device.
In one embodiment, before sending the write request to the NFC tag, the method further comprises: generating prompt information corresponding to the abnormal equipment; and sending a write request to the NFC tag under the condition that an operation instruction corresponding to the prompt information is received.
Specifically, when it is determined that abnormal devices exist in the plurality of control devices, prompt information is generated, where the prompt information is used to prompt a user that the abnormal devices cannot respond to corresponding control instructions and prompt the user whether the control instructions related to the abnormal devices in the target linkage instructions in the NFC tag need to be deleted, the operation instructions are used to instruct the user to operate the NFC device and to instruct deletion, the touch operation may specifically be a click operation, a slide operation, a voice input operation, or the like, and when the operation instructions are received, a write request is sent to the NFC tag to delete the control instructions related to the abnormal devices in the target linkage instructions in the NFC tag according to the will of the user.
In summary, after the abnormal device is automatically skipped when the target linkage instruction is executed, a write request may be sent to the NFC tag at the same time, and a new linkage instruction is written, that is, the linkage instruction after the control instruction corresponding to the abnormal device is deleted; and prompting a linkage instruction in the NFC label to be rewritten and prompting the rewritten linkage instruction to the user, sending a writing request to the NFC label when the user selects rewriting, and writing the rewritten linkage instruction into the NFC label.
In one embodiment, before sending the control command corresponding to the target device in the target linkage command to the target device, the method further includes: and under the condition that the attribute information of the control equipment corresponding to the target linkage instruction is matched with the corresponding preset attribute and the running state of the control equipment corresponding to the target linkage instruction is matched with the corresponding preset state, taking the control equipment as the target equipment, wherein the running information comprises the attribute information and the running state, and the execution condition comprises the preset attribute and the preset state.
Specifically, for example, the 3 rd instruction in the target linkage instruction is "request the smart television to open a CCTV5 channel", the instruction requests that the smart television operates in a normal mode, if the smart television operates in a child mode, the instruction cannot be executed, the preset attribute is the smart television, the preset state is used for indicating that the smart television operates in the normal mode, comparing the attribute information of the control device with the preset attribute, and if the attribute information of the control device includes the smart television, determining that the attribute information of the control device matches with the preset attribute; and if the attribute information of the control equipment does not comprise the intelligent television but comprises the intelligent sound box, determining that the attribute information of the control equipment is not matched with the preset attribute.
Comparing the running state of the control equipment with a preset state, if the running state of the control equipment indicates that the intelligent television runs in a normal mode, determining that the running state of the control equipment is matched with the preset state, and taking the intelligent television as target equipment; and if the running state of the control equipment indicates that the intelligent television runs in the child mode, determining that the running state of the control equipment is not matched with the preset state.
Or whether the control equipment is powered on or connected with wifi or whether the execution working condition corresponding to the control instruction is met is judged according to the running state, for example: and if the control command is 25 degrees in a heating mode, but some air conditioners can only refrigerate and cannot meet the heating working condition, determining that the air conditioners cannot respond to the corresponding control command.
In one embodiment, obtaining the target linkage instruction in the NFC tag includes: acquiring tag information in the NFC tag, wherein the tag information comprises a plurality of linkage modes, each linkage mode corresponds to one linkage instruction, and each linkage instruction comprises a plurality of control instructions and equipment information of control equipment corresponding to the control instructions; and under the condition that a selection instruction is received, taking an interlocking mode corresponding to the selection instruction as a target interlocking mode, wherein the interlocking instruction corresponding to the target interlocking mode is taken as a target interlocking instruction.
Specifically, under the condition that a plurality of linkage instructions are stored in the NFC tag, all the linkage instructions in the NFC tag can be sent to the NFC device and displayed on a display screen of the NFC device to inform a user of linkage scenes corresponding to the linkage instructions, the selection instruction is used for instructing the user to select an instruction of a linkage scene corresponding to the current linkage scene from the plurality of linkage scenes through the NFC device, a linkage mode corresponding to the linkage scene selected by the user is used as a target linkage mode, and the linkage instruction corresponding to the target linkage mode is the target linkage instruction.
In a specific embodiment, different control devices are combined into a set executable linkage scene, and a linkage command is issued, namely, control commands which are expected to be set for all the control devices under the linkage command are issued at one time, and the control is similar to the control of a device independently.
When the linkage scene of the control device is set, the identifier of the control device, for example, the mac address of the control device, is used, the linkage instruction format is the mac address of the device a + the control instruction of the expected setting, the control instruction of one control device is ended by the identifier after the control instruction is ended, and then the control instructions of the expected setting of the device B and the device C are sequentially carried out, and the identifier may be a semicolon or other unique identifier.
After the linkage scene setting is completed, the produced linkage instruction is stored in the FLASH or the server, and when the NFC equipment needs to be executed, the linkage instruction is read from the FLASH and is issued by the server.
When the NFC equipment executes the linkage instruction, the complete linkage instruction is issued to each control equipment according to the mac address of each control equipment, the control equipment needs to be positioned to the control instruction corresponding to the control equipment according to the mac address of the control equipment, namely the corresponding mac address is matched from the instruction separator, and the corresponding control instruction is analyzed if the control instruction is consistent with the control instruction, so that the corresponding control instruction is executed to realize the corresponding function.
Or the NFC equipment matches the mac address of each control equipment with the corresponding control instruction, and issues the control instruction corresponding to the mac address to the corresponding control equipment according to the mac address.
In the process that the control device executes the control command corresponding to the control device in the linkage command, the state of the control device may change, the NFC device collects the operation information of the control device after the change, compares the operation information with the execution condition of the control command, and if the comparison is consistent, the successful execution can be ensured; if the comparison is inconsistent and the control device is used for executing the control instruction for the first time, the running information is not compared with the execution condition of the corresponding control instruction, the control device does not process the control instruction according to the fact that the control device does not receive the control instruction, namely, the control instruction corresponding to the control instruction is retransmitted again, if the control device does not successfully execute the control instruction, the control device is automatically deleted from a plurality of control devices related to the linkage instruction, and the repeated sending caused by the fact that the control device does not receive the control instruction is reduced; meanwhile, a control device which pushes a control instruction not executed in the NFC device may have a fault, and a user is reminded to check the processing device and modify the setting of the linkage scene in time.
FIG. 2 is a flow chart illustrating a linkage control method according to an embodiment. It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a linkage control apparatus including:
the tag sensing module 310 is configured to, when an NFC tag is sensed, obtain tag information in the NFC tag, where the tag information includes a target linkage instruction, and the target linkage instruction includes an association relationship between a plurality of control instructions and device information of a control device;
the information acquisition module 320 is configured to acquire operation information of a plurality of control devices corresponding to the target linkage instruction;
the instruction updating module 330 is configured to delete the association relation related to the abnormal device in the target linkage instruction when it is determined that the abnormal device exists in the plurality of control devices according to the operation information corresponding to the plurality of control devices, where the abnormal device is a control device whose operation information cannot satisfy the execution condition of the corresponding control instruction.
In one embodiment, after deleting the association relation related to the abnormal device in the target linkage instruction, the apparatus further includes an instruction issuing module configured to:
and sending a control instruction corresponding to the target equipment in the target linkage instruction to the target equipment, wherein the target equipment is the control equipment of which the operation information meets the execution condition of the corresponding control instruction.
In one embodiment, the information obtaining module 320 is further configured to:
sending a test instruction to the plurality of control devices;
receiving first response information of the plurality of control devices to the test instruction, wherein the operation information comprises the first response information;
before sending the control instruction corresponding to the target equipment in the target linkage instruction to the target equipment, the device further comprises an equipment detection module used for:
and taking the control device corresponding to the first response information as the target device under the condition that the first response information indicates that the response is successful.
In one embodiment, after receiving the first response information of the control device to the test instruction, the device detection module is further configured to:
when the first response information indicates that the response fails, taking the control device corresponding to the first response information as an abnormal device;
and stopping sending the corresponding control instruction to the abnormal equipment.
In one embodiment, in a case that the first response information indicates a response failure, the device detection module is further configured to:
acquiring a response record of the plurality of control devices to the test instruction, wherein the response record comprises second response information, and the time stamp of the second response information is earlier than that of the first response information;
and under the condition that the second response information is matched with the first response information, taking the control equipment corresponding to the second response information as abnormal equipment.
In one embodiment, after determining that an abnormal device exists in the plurality of control devices, the apparatus further includes an information sending module configured to:
sending a write request to the NFC tag, wherein the write request comprises a deletion instruction, and the deletion instruction is used for deleting the association relation related to the abnormal equipment in the NFC tag.
In one embodiment, before sending the write request to the NFC tag, the information sending module is further configured to:
generating prompt information corresponding to the abnormal equipment;
and sending a write request to the NFC tag under the condition that an operation instruction corresponding to the prompt information is received.
In one embodiment, before the control instruction corresponding to the target device in the target linkage instruction is sent to the target device, the device detection module is further configured to:
and under the condition that the attribute information of the control equipment corresponding to the target linkage instruction is matched with the corresponding preset attribute and the running state of the control equipment corresponding to the target linkage instruction is matched with the corresponding preset state, taking the control equipment as the target equipment, wherein the running information comprises the attribute information and the running state, and the execution condition comprises the preset attribute and the preset state.
In one embodiment, the tag sensing module 310 is further configured to:
acquiring tag information in the NFC tag, wherein the tag information comprises a plurality of linkage modes, each linkage mode corresponds to one linkage instruction, and each linkage instruction comprises a plurality of control instructions and equipment information of control equipment corresponding to the control instructions;
and under the condition that a selection instruction is received, taking an interlocking mode corresponding to the selection instruction as a target interlocking mode, wherein the interlocking instruction corresponding to the target interlocking mode is taken as a target interlocking instruction.
FIG. 4 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be the NFC device 110 in fig. 1. As shown in fig. 4, the computer apparatus includes a processor, a memory, a network interface, an input device, and a display screen connected through a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement the coordinated control method. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the coordinated control method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the linkage control apparatus provided herein may be implemented in the form of a computer program that is executable on a computer device such as that shown in FIG. 4. The memory of the computer device may store various program modules constituting the linkage control apparatus, such as the tag sensing module 310, the information acquiring module 320, and the command updating module 330 shown in fig. 3. The computer program constituted by the respective program modules causes the processor to execute the steps in the coordinated control method according to each embodiment of the present application described in the present specification.
The computer device shown in fig. 4 may acquire, by the tag sensing module 310 in the linkage control apparatus shown in fig. 3, tag information in an NFC tag when the NFC tag is sensed, where the tag information includes a target linkage instruction, and the target linkage instruction includes an association relationship between a plurality of control instructions and device information of a control device. The computer device may execute, by the information obtaining module 320, obtaining the operation information of the plurality of control devices corresponding to the target linkage instruction. The computer device may execute, by the instruction updating module 330, deleting the association relation related to the abnormal device in the target linkage instruction when it is determined that the abnormal device exists in the plurality of control devices according to the operation information corresponding to the plurality of control devices, where the abnormal device is a control device whose operation information cannot satisfy the execution condition of the corresponding control instruction.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the method of any of the above embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any of the above embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A linkage control method is applied to an NFC device, and comprises the following steps:
acquiring label information in the NFC label, wherein the label information comprises a target linkage instruction, and the target linkage instruction comprises an incidence relation between a plurality of control instructions and equipment information of control equipment;
acquiring operation information of a plurality of control devices corresponding to the target linkage instruction;
and deleting the association relation related to the abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information corresponding to the plurality of control equipment, wherein the abnormal equipment is the control equipment of which the operation information can not meet the execution condition of the corresponding control instruction.
2. The method of claim 1, wherein after deleting the association relationship associated with the abnormal device in the target linkage command, the method further comprises:
and sending a control instruction corresponding to the target equipment in the target linkage instruction to the target equipment, wherein the target equipment is the control equipment of which the operation information meets the execution condition of the corresponding control instruction.
3. The method according to claim 2, wherein the acquiring operation information of the plurality of control devices corresponding to the target linkage mode includes:
sending a test instruction to the plurality of control devices;
receiving first response information of the plurality of control devices to the test instruction, wherein the operation information comprises the first response information;
before sending a control instruction corresponding to the target device in the target linkage instruction to the target device, the method further includes:
and taking the control device corresponding to the first response information as the target device under the condition that the first response information indicates that the response is successful.
4. The method of claim 3, wherein after receiving the first response information of the control device to the test instruction, the method further comprises:
when the first response information indicates that the response fails, taking the control device corresponding to the first response information as an abnormal device;
and stopping sending the corresponding control instruction to the abnormal equipment.
5. The method of claim 4, wherein in case that the first response information indicates a response failure, the method further comprises:
acquiring a response record of the plurality of control devices to the test instruction, wherein the response record comprises second response information, and the time stamp of the second response information is earlier than that of the first response information;
and under the condition that the second response information is matched with the first response information, taking the control equipment corresponding to the second response information as abnormal equipment.
6. The method of claim 1, wherein after determining that an abnormal device exists among the plurality of control devices, the method further comprises:
sending a write request to the NFC tag, wherein the write request comprises a deletion instruction, and the deletion instruction is used for deleting the association relation related to the abnormal equipment in the NFC tag.
7. The method of claim 6, wherein before sending the write request to the NFC tag, the method further comprises:
generating prompt information corresponding to the abnormal equipment;
and sending a write request to the NFC tag under the condition that an operation instruction corresponding to the prompt information is received.
8. The method according to claim 2, wherein before sending the control command corresponding to the target device in the target linkage command to the target device, the method further comprises:
and under the condition that the attribute information of the control equipment corresponding to the target linkage instruction is matched with the corresponding preset attribute and the running state of the control equipment corresponding to the target linkage instruction is matched with the corresponding preset state, taking the control equipment as the target equipment, wherein the running information comprises the attribute information and the running state, and the execution condition comprises the preset attribute and the preset state.
9. The method of claim 1, wherein obtaining target linkage instructions within the NFC tag comprises:
acquiring tag information in the NFC tag, wherein the tag information comprises a plurality of linkage modes, each linkage mode corresponds to one linkage instruction, and each linkage instruction comprises a plurality of control instructions and equipment information of control equipment corresponding to the control instructions;
and under the condition that a selection instruction is received, taking an interlocking mode corresponding to the selection instruction as a target interlocking mode, wherein the interlocking instruction corresponding to the target interlocking mode is taken as a target interlocking instruction.
10. A linkage control apparatus, characterized in that the apparatus comprises:
the tag induction module is used for acquiring tag information in the NFC tag, wherein the tag information comprises a target linkage instruction, and the target linkage instruction comprises an incidence relation between a plurality of control instructions and equipment information of control equipment;
the information acquisition module is used for acquiring the operation information of a plurality of control devices corresponding to the target linkage instruction;
and the instruction updating module is used for deleting the association relation related to the abnormal equipment in the target linkage instruction under the condition that the abnormal equipment exists in the plurality of control equipment according to the operation information corresponding to the plurality of control equipment, wherein the abnormal equipment is the control equipment of which the operation information can not meet the execution condition of the corresponding control instruction.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 9 are implemented when the computer program is executed by the processor.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
CN202111209720.5A 2021-10-18 2021-10-18 Linkage control method and device, computer equipment and storage medium Pending CN113965428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111209720.5A CN113965428A (en) 2021-10-18 2021-10-18 Linkage control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111209720.5A CN113965428A (en) 2021-10-18 2021-10-18 Linkage control method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113965428A true CN113965428A (en) 2022-01-21

Family

ID=79465041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111209720.5A Pending CN113965428A (en) 2021-10-18 2021-10-18 Linkage control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113965428A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615307A (en) * 2022-01-27 2022-06-10 海信视像科技股份有限公司 Equipment control method, control terminal and server equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190130647A1 (en) * 2017-09-27 2019-05-02 Goertek Technology Co.,Ltd. Display control method and system, and virtual reality device
CN111413883A (en) * 2020-03-31 2020-07-14 广东美的制冷设备有限公司 Control method and control device for household electrical appliance and computer storage medium
CN111596562A (en) * 2020-05-15 2020-08-28 杭州涂鸦信息技术有限公司 Device control method, cloud device and computer storage medium
CN112202648A (en) * 2019-07-08 2021-01-08 九阳股份有限公司 Control method and system of networked home equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190130647A1 (en) * 2017-09-27 2019-05-02 Goertek Technology Co.,Ltd. Display control method and system, and virtual reality device
CN112202648A (en) * 2019-07-08 2021-01-08 九阳股份有限公司 Control method and system of networked home equipment
CN111413883A (en) * 2020-03-31 2020-07-14 广东美的制冷设备有限公司 Control method and control device for household electrical appliance and computer storage medium
CN111596562A (en) * 2020-05-15 2020-08-28 杭州涂鸦信息技术有限公司 Device control method, cloud device and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114615307A (en) * 2022-01-27 2022-06-10 海信视像科技股份有限公司 Equipment control method, control terminal and server equipment
CN114615307B (en) * 2022-01-27 2023-10-27 海信视像科技股份有限公司 Equipment control method, control terminal and server equipment

Similar Documents

Publication Publication Date Title
US11131976B2 (en) Device control system, method and apparatus, and gateways
US9152480B2 (en) Method for storing application data and terminal device
WO2020107905A1 (en) Monitoring and managing methods for device, and terminal device
CN102801758B (en) The remote system of terminal, remote operation method
WO2016101729A1 (en) Wireless network access method, device and system
CN105634881A (en) Application scene recommending method and device
CN110235087A (en) A kind of method and terminal for realizing voice control
CN106332156A (en) WIFI anomaly detection control system and method
WO2023134153A1 (en) Linkage control configuration method, linkage control method and linkage control system
CN108829856A (en) The resource of web application preloads method and device in display terminal
US10627789B2 (en) User device, driving method of user device, apparatus for providing service and driving method of apparatus for providing service
CN113965428A (en) Linkage control method and device, computer equipment and storage medium
CN104183105A (en) Mobile-terminal-based remote control method and device
CN111563036B (en) Function logic judgment method and device, intelligent equipment and storage medium
CN107329791A (en) Method, device and the computer-readable recording medium of application are installed in scanning
CN113552808A (en) Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
CN112433739B (en) Firmware upgrading method
CN104796967A (en) Wireless network data recovery method and device
CN104317205A (en) Terminal control method and system
CN107193603A (en) The upgrade method and device of a kind of intelligent appliance
CN115633056A (en) Intelligent information prompting method, device, equipment and medium in operating system of Internet of things
KR20140067476A (en) Method for operating wireless network, recording medium for operating wireless network, and mobile terminal using the same
CN109634782A (en) A kind of detection method of system robustness, device, storage medium and terminal
CN109491825A (en) A kind of method, apparatus, storage medium and the terminal of positioning booting abnormal problem
CN115509812A (en) Data backup method and server based on Keepalive dual-computer hot standby

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