CN114598564A - Equipment control method, system, electronic equipment and storage medium - Google Patents

Equipment control method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN114598564A
CN114598564A CN202210168073.6A CN202210168073A CN114598564A CN 114598564 A CN114598564 A CN 114598564A CN 202210168073 A CN202210168073 A CN 202210168073A CN 114598564 A CN114598564 A CN 114598564A
Authority
CN
China
Prior art keywords
control
key
equipment
double
virtual
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.)
Granted
Application number
CN202210168073.6A
Other languages
Chinese (zh)
Other versions
CN114598564B (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.)
Hangzhou Bolian Intelligent Technology Co ltd
Original Assignee
Hangzhou Bolian Intelligent 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 Hangzhou Bolian Intelligent Technology Co ltd filed Critical Hangzhou Bolian Intelligent Technology Co ltd
Priority to CN202210168073.6A priority Critical patent/CN114598564B/en
Publication of CN114598564A publication Critical patent/CN114598564A/en
Application granted granted Critical
Publication of CN114598564B publication Critical patent/CN114598564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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
    • 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 relates to a device control method, which is applied to a double-control/multi-control scene, wherein the method comprises the following steps: adding a first device and a second device in a client according to user requirements, and respectively allocating different short addresses to the first device and the second device; creating virtual equipment in a client, defining virtual keys, and associating the virtual keys with target keys of first equipment and second equipment respectively to obtain a double-control key; when the double-control key is operated by a user, the client generates a control instruction based on the response signal and the short address of the double-control key and sends the control instruction to a network environment; and the first equipment or the second equipment receives the control instruction, judges whether the short address stored locally is matched with the short address in the control instruction or not, and modifies the on-off state of the target key if the short address is matched with the short address in the control instruction. Through the application, the problem that the existing double-control/multi-control mode is poor in convenience is solved, the convenience is improved, and the resource cost is saved.

Description

Equipment control method, system, electronic equipment and storage medium
Technical Field
The present application relates to the field of smart home, and in particular, to a device control method, system, electronic device, and storage medium.
Background
In recent years, with the rapid development of the internet and the internet of things, whole-house intelligence in smart homes is more and more popular, and double control/multiple control is one typical application of the whole-house intelligence.
The dual control application refers to controlling one light bulb or other electric appliances through two switches, and the two switches are commonly used for controlling the on or off of the electric appliances such as the light bulb, for example, the switch is turned on when going downstairs, and the switch is turned off when going upstairs. The traditional method generally needs to be wired in advance, depends on a double-control switch, has poor convenience, generates higher hardware cost for users,
at present, no effective solution is provided for the problem of poor convenience of a device double-control/multi-control method in the related technology.
Disclosure of Invention
The embodiment of the application provides a device control method, a system, computer equipment and a computer readable storage medium, so as to at least solve the problem of poor convenience of a device double control/multiple control method in the related art.
In a first aspect, an embodiment of the present application provides a device control method, which is applied in a dual control/multi control scenario, and the method includes:
adding a first device and a second device in a client according to user requirements, and respectively allocating different short addresses to the first device and the second device;
creating virtual equipment in the client and defining virtual keys, and associating the virtual keys with target keys of the first equipment and the second equipment respectively to obtain a double-control key;
when the double control key is operated by a user, the client generates a control instruction based on the response signal of the double control key and the short address and sends the control instruction to a network environment;
and the first equipment or the second equipment receives the control instruction, judges whether a short address stored locally is matched with a short address in the control instruction or not, and modifies the on-off state of the target key if the short address is matched with the short address in the control instruction.
In some embodiments, associating the virtual key with a target key of the first device and a target key of the second device to obtain a duel key comprises:
traversing all the function keys in the first equipment and the second equipment;
setting a double-control mask for each function key, and sending the double-control mask to the first device and the second device, wherein the bit state of the double-control mask of the target key to be associated is set to be 1, and the bit states of other keys are set to be 0;
and adding a double-control mask corresponding to the target key associated with the virtual key to obtain the double-control key.
In some embodiments, in the client generating the control instruction, the response signal of the dual-control key includes a dual-control mask corresponding to its associated target key.
In some embodiments, in the case that the locally stored short address matches the short address in the control instruction, the method further comprises:
the first device and the second device respectively determine the target key to be executed according to the double-control mask in the control instruction;
and the first equipment and the second equipment respectively locally inquire the bit state of the target key, and modify the switch state of the target key under the condition that the bit state is 1.
In some embodiments, before adding a first device and a second device in a client according to user requirements, the client and the first device and the second device complete pairing through bluetooth;
and the client sends the control instruction to the network environment through Bluetooth broadcasting.
In some of these embodiments, the method further comprises:
the client allocates a short address to the virtual equipment and sends the short address of the virtual equipment to the first equipment and the second equipment respectively for storage;
when a target key of the first device is operated by a user, the first device generates a first control instruction based on a double-control mask corresponding to the target key and the short address of the virtual device and sends the first control instruction to a network environment through Bluetooth broadcasting;
after receiving the first control instruction, the second device performs matching authentication according to the short address of the virtual device, after the authentication is successful, locally determines a target key to be executed according to the double-control mask code in the first control instruction, inquires the bit state of the target key, and modifies the switch state of the target key under the condition that the bit state is 1.
In a second aspect, an embodiment of the present application provides an apparatus control system, which is applied in a dual control/multi control scenario, and the system includes: the method comprises the steps of creating a correlation module, an instruction generation module and a response module, wherein the correlation module, the instruction generation module and the response module are arranged in the system;
the association creating module is used for adding a first device and a second device in a client according to user requirements, respectively allocating different short addresses to the first device and the second device, and,
creating virtual equipment in the client and defining virtual keys, and associating the virtual keys with target keys of the first equipment and the second equipment respectively to obtain a double-control key;
the instruction generating module is used for indicating the client to generate a control instruction based on a response signal of the double control key and the short address when the double control key is operated by a user and sending the control instruction to a network environment;
and the response module is used for judging whether the locally stored short address is matched with the short address in the control instruction or not after the first equipment or the second equipment receives the control instruction, and if so, modifying the switch state of the target key.
In some embodiments, associating the virtual key with the target key of the first device and the target key of the second device respectively to obtain the duel-control key comprises:
traversing all the function keys in the first equipment and the second equipment;
setting a double-control mask for each function key, and sending the double-control mask to the first device and the second device, wherein the bit state of the double-control mask of the target key to be associated is set to be 1, and the bit states of other keys are set to be 0;
and adding the double-control mask of the target key associated with the virtual key to obtain the double-control key.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the device control method according to the first aspect when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the device control method according to the first aspect.
According to the equipment control method provided by the embodiment of the application, the first equipment and the second equipment are added in the client according to the user requirements, and different short addresses are respectively allocated to the first equipment and the second equipment; creating virtual equipment in a client, defining virtual keys, and associating the virtual keys with target keys of first equipment and second equipment respectively to obtain a double-control key; when the double-control key is operated by a user, the client generates a control instruction based on the response signal and the short address of the double-control key and sends the control instruction to a network environment; and the first equipment and the second equipment receive the control instruction, judge whether the short address stored locally is matched with the short address in the control instruction, and modify the on-off state of the target key if the short address is matched with the short address in the control instruction. Compared with a double-control/multi-control method needing wiring in advance in the related technology, the technical scheme of the application is realized based on Bluetooth communication and software technology, the problem that the existing double-control/multi-control mode is poor in convenience is solved, the realization convenience is improved, and meanwhile, the resource cost is saved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic application environment diagram of a device control method according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of controlling a device according to an embodiment of the present application;
FIG. 3 is a schematic diagram of creating a virtual device and associated duel control keys according to an embodiment of the present application;
FIG. 4 is a flowchart of associating a virtual key with a target key of a first device and a second device to obtain a duel control key;
FIG. 5 is a block diagram of a device control system according to an embodiment of the present application;
fig. 6 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by one of ordinary skill in the art that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The lighting device control method provided in the embodiment of the present application may be applied to an application environment shown in fig. 1, fig. 1 is an application environment schematic diagram of the device control method according to the embodiment of the present application, and as shown in fig. 1, the client 10 and the entity device 11 may be set in an intelligent home scene. In the early stages, the client 10 may abstract a virtual device based on the intersection of functional attributes existing between multiple devices participating in the bi-control/multi-control. In a subsequent application link, the control effect of the user on the virtual device may be embodied in real time on the entity device 11 corresponding to the virtual device, for example, after a control instruction generated based on the on/off operation on the virtual device is sent to each entity device 11 through the bluetooth network, the same control effect as the virtual device may be realized on a plurality of entity devices 11. It should be noted that the client in the embodiment of the present application may be, but is not limited to, a personal computer, a notebook computer, a smart phone, a tablet computer, and a portable wearable device, and the entity device 11 may be a switch panel.
An embodiment of the present application provides an apparatus control method, and fig. 2 is a flowchart of an apparatus control method according to an embodiment of the present application, where as shown in fig. 2, the flowchart includes the following steps:
s201, adding a first device and a second device in a client according to user requirements, and respectively allocating different short addresses to the first device and the second device;
the client side is provided with the Internet of things application under the intelligent home scene, and a user can add entity equipment under the intelligent home scene in the Internet of things application according to the requirement of the user. It should be noted that before adding again, the entity device and the client are required to complete pairing.
It should be noted that, in this embodiment, for a lightweight intelligent scene based on bluetooth communication, the terminals and the devices participating in the control all support a bluetooth network, and bluetooth is adopted for communication between the terminals and the devices and between the devices.
Further, the short address is identification information for management and control assigned to the device by the client, for example, a short address [0000001] is assigned to the first device, and a short address [0000002] is assigned to the second device. Of course, in practical applications, the format of the short address is not necessarily the format described above, and the data structure may be more complicated.
S202, creating virtual equipment in a client, defining virtual keys, and associating the virtual keys with target keys of the first equipment and the second equipment respectively to obtain a double-control key;
wherein the virtual device is abstracted based on the intersection of the physical devices on the functional attributes, and is not a device which exists in reality. Specifically, when the physical device is a switch panel, two or more switch panels simultaneously have the switch key 1, the switch key 2, and the switch key 3, and in this case, the virtual device can be constructed by the "switch function attribute" of both the two switch panels.
Further, the virtual key is a key in a virtual device, and a user may autonomously define one or more virtual keys in the virtual device, for example (virtual key 1, virtual key 2 … … dual-control key N), through an internet of things application according to actual needs. And then, associating the virtual key with the entity keys of the plurality of entity devices to obtain the double-control key.
Fig. 3 is a schematic diagram of creating a virtual device and an associated duel-control key according to an embodiment of the present application, and as shown in fig. 3, an entity device a and an entity device B have a plurality of entity keys, and the keys have the same switch attribute;
based on the function intersection on the switch attribute between the device a and the device B, a virtual device C may be created, and necessary information such as a device type, a device short address, and a control key may be added to the virtual device C. Furthermore, one or more virtual keys are set in the virtual device, and after the virtual keys are associated with the physical keys of the device a and/or the device B, a dual-control effect can be provided through the virtual keys, namely the dual-control keys.
It should be noted that the dual-control key on the virtual device C may be associated with the target keys on the entity devices a and B by setting the dual-control mask, and after the association is successful, the device a and the device B obtain the dual-control mask corresponding to the local entity key. After that, when the device a and the device B receive the control instruction containing the dual-control mask code at the same time, the corresponding key can be opened or closed according to the dual-control mask code, thereby realizing the dual-control effect.
S203, when the double control key is operated by a user, the client generates a control instruction based on the response signal and the short address of the double control key and sends the control instruction to a network environment;
in the multi-device environment, a short address carried in the control instruction is used for indicating a specific object to be controlled. In conjunction with the above embodiment, when the short address contained in the control instruction is [0000001], that is, the client will perform control on the first device.
When a user operates a duel key through the internet of things application interface, the on-off state of the duel key changes, for example, on → off, off → on. Furthermore, the duel-control key synchronously generates a corresponding response signal, it should be noted that the response signal only indicates that the on-off state of the duel-control key changes, and as for the response signal, it is specifically "from on to off" or "from off to on", which has no central influence on the scheme of the present application.
Further, the client generates a control instruction based on the response signal and the short address, and sends the control instruction to a network environment through bluetooth broadcast, wherein the network environment may be a home local area network.
And S204, the first device or the second device receives the control instruction, judges whether the short address stored locally is matched with the short address in the control instruction, and modifies the on-off state of the target key if the short address is matched with the short address in the control instruction.
In step S203, the control instruction is already sent by bluetooth broadcast, and correspondingly, in this step, the first device and the second device acquire the control instruction synchronously.
The first device and the second device judge whether the local short address stored locally is matched with the short address in the control instruction, if so, the instruction is confirmed to be sent to the first device, the first device responds to the control instruction, and the on-off state of the target key is switched according to the double-control mask in the control instruction.
The following is illustrated in connection with the above examples:
when the control instruction sent by broadcasting contains the short address [0000001] of the device A, the device A receives the control instruction, further the short address [0000001] is matched successfully, and then the action corresponding to the double control mask is executed in response to the control instruction.
For other devices that are not associated (e.g., device C, short address 00000003), the short address must not match when the control command is received, in which case the control command is not responded to.
Through the steps S201 to S204, compared with a method of implementing dual control/multi control by means of hardware wiring or the like in the related art, the present application implements dual control/multi control by combining software and hardware based on dual control mask and bluetooth communication, and dual control can be implemented without wiring in advance. The user can flexibly and autonomously set the equipment participating in double control/multi-control according to the self requirement, so that the double control convenience of the equipment can be improved, and the resource cost is saved.
In some embodiments, fig. 4 is a flowchart for associating a virtual key with a target key of a first device and a second device to obtain a duel-key, as shown in fig. 4, where the flowchart includes the following steps:
s401, traversing all function keys in the first equipment and the second equipment;
when the first device and the second device are both switch panels, the client side obtains all switch keys (key 1, key 2 … … key N) in the switch panels, wherein each key has unique identification information;
s402, setting a double control mask for each function key, and sending the double control mask to the first device and the second device, wherein the bit state of the double control mask of the target key to be associated is set to be 1, and the bit states of other keys are set to be 0.
Optionally, the entity device side may store the short address of the virtual device and the dual control mask in a form of a list, for example, as shown in table 1 below:
push-button 5 4 3 2 1
Dual control mask BIT4 BIT3 BIT2 BIT1 BIT0
Device A bit state 0 1 0 0 1
B bit state of device 0 0 0 1 0
Each entity key corresponds to one double-control mask, further, each double-control mask has two bit states of 0 and 1, if a user wants a certain key to participate in double control, the bit state of the double-control mask corresponding to the key is set to be 1, otherwise, the bit state is set to be 0;
and S403, adding a double-control mask corresponding to the target key associated with the virtual key to obtain the double-control key.
Corresponding to table 1 above, if the virtual case 1 of the virtual device C is to be associated with the keys 1 of the entity device a and the entity device B, the virtual case can be implemented by setting the same double control mask "BIT 0" as the entity key 1 to the virtual key 1.
In addition, in order to associate the virtual key 1 with the physical key 1 of the physical device a and the physical key 2 of the physical device B, the double control mask "BIT 0" corresponding to the physical key 1 and the double control mask "BIT 1" corresponding to the physical key 2 need to be provided for the virtual key 1.
Of course, for each of the above-mentioned onlooker masks, a mapping relationship with the short address of the operated device needs to be established, i.e., which onlooker mask is executed by which entity device is indicated by the short address.
In some embodiments, after the first device and the second device receive the control instruction, the first device and the second device will switch the on-off state of the target key according to the dual control mask in the control instruction, which specifically includes:
the first equipment and the second equipment respectively determine a target key to be executed according to the double-control mask in the control instruction;
and the first equipment and the second equipment respectively locally acquire the bit state of the target key and modify the switch state of the target key under the condition that the bit state is 1.
For clarity, the above examples and Table 1 are incorporated herein by way of example:
if the user performs an operation on the dike key 1 (the dike key 1 is added with the dike mask "BIT 0"), the dike key 1 will send a response signal (including "BIT 0").
Further, the client generates a control command ("BIT 0" + "device a short address 0000001" + "device B short address 0000002") according to the response signal and the short address of the entity device, and transmits it to the network environment through bluetooth broadcasting.
And the entity equipment A and the entity equipment B acquire the control instruction, firstly, the locally stored short address of the equipment is compared with the short address in the control instruction, whether the equipment is matched with the control instruction is judged, and if the equipment is matched with the control instruction, the subsequent steps are carried out.
Under the condition of successful matching, according to the double control mask code 'BIT 0' in the control instruction, the corresponding target key is found locally, and the target key to be executed is found: namely a 'key 1';
further, when the bit state of the inquiry 'key 1' is 1, the on-off state of the target key is modified; specifically, if the current is on, the switch is turned off; if the current is off, the current is modified to be on.
In some embodiments, before the first device and the second device are added to the client, the client and the first device and the second device complete pairing through bluetooth;
the client sends a control instruction to the network environment through Bluetooth broadcasting.
Wherein, this customer end and terminal equipment pass through bluetooth communication protocol and accomplish to pair, should pair the mode and do not rely on gateway or high in the clouds, and is more simple and reliable. Therefore, the normal work of linkage of various service functions and scenes can be maintained under the condition that no gateway or cloud support exists.
In addition, the control instruction is sent through Bluetooth broadcasting, and the effect of reducing time delay and improving response speed can be achieved.
In some embodiments, the present application may implement dual control/multiple control not only through a virtual device, but also through a certain entity device participating in control, and specifically includes:
the client allocates short addresses to the virtual equipment and respectively sends the short addresses of the virtual equipment to the first equipment and the second equipment for storage;
when a target key of the first device is operated by a user, the first device generates a first control instruction based on a double-control mask corresponding to the target key and a short address of the virtual device and sends the first control instruction to a network environment through Bluetooth broadcasting;
after receiving the first control instruction, the second device performs matching authentication according to the short address of the virtual device in the first control instruction, that is, whether the locally stored short address of the virtual device is matched with the short address in the control instruction is judged;
after the matching is successful, locally determining a target key to be executed according to the double-control mask in the first control instruction, inquiring the bit state of the target key, and modifying the switch state of the target key under the condition that the bit state is 1.
Optionally, in the method provided in this embodiment, the user may not only implement dual control/multiple control through a software program, but also implement dual control/multiple control through actual operations on hardware in an online environment, and the method specifically includes:
when a user presses an entity key 1 of first equipment participating in double control/multi-control in an off-line space, the first equipment generates a control instruction according to a double control mask corresponding to the entity key 1 and broadcasts the control instruction to a network environment, and after receiving the instruction, second equipment correspondingly indicates the entity key 1 to follow the action.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment also provides an apparatus control system, which is used to implement the foregoing embodiments and preferred embodiments, and the description of which has been already made is omitted. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a device control system according to an embodiment of the present application, and as shown in fig. 5, the system is applied in a dual-control/multi-control scenario and includes: a create association module 50, an instruction generation module 51 and a response module 52, wherein;
the association module 50 is created for adding a first device and a second device in the client according to the user's requirement, and assigning different short addresses to the first device and the second device, respectively, and,
creating virtual equipment in a client, defining virtual keys, and associating the virtual keys with target keys of first equipment and second equipment respectively to obtain a double-control key;
the instruction generating module 51 is configured to, when the duel-control key is operated by a user, instruct the client to generate a control instruction based on a response signal and a short address of the duel-control key, and send the control instruction to a network environment;
the response module 52 is configured to, after the first device or the second device receives the control instruction, determine whether the locally stored short address matches the short address in the control instruction, and if so, modify the on-off state of the target key.
In some embodiments, the creating an association module associates the virtual key with the target keys of the first device and the second device to obtain the duel-control key, including:
traversing all the function keys in the first equipment and the second equipment;
setting a double-control mask for each function key, and sending the double-control mask to first equipment and second equipment, wherein the bit state of the double-control mask of a target key to be associated is set to be 1, and the bit states of other keys are set to be 0;
and adding the double-control mask of the target key associated with the virtual key to obtain the double-control key.
In an embodiment, fig. 6 is a schematic internal structure diagram of an electronic device according to an embodiment of the present application, and as shown in fig. 6, there is provided an electronic device, which may be a server, and its internal structure diagram may be as shown in fig. 6. The electronic device comprises a processor, a network interface, an internal memory and a non-volatile memory connected by an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used for providing calculation and control capability, the network interface is used for communicating with an external terminal through network connection, the internal memory is used for providing an environment for an operating system and the running of a computer program, the computer program is executed by the processor to realize the equipment control method, and the database is used for storing data.
Those skilled in the art will appreciate that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
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 hardware instructions of 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 Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A device control method is applied to a dual control/multi control scene, and the method comprises the following steps:
adding a first device and a second device in a client according to user requirements, and respectively allocating different short addresses to the first device and the second device;
creating virtual equipment in the client and defining virtual keys, and associating the virtual keys with target keys of the first equipment and the second equipment respectively to obtain a double-control key;
when the double control key is operated by a user, the client generates a control instruction based on the response signal of the double control key and the short address and sends the control instruction to a network environment;
and the first equipment or the second equipment receives the control instruction, judges whether the short address stored locally is matched with the short address in the control instruction or not, and modifies the on-off state of the target key if the short address is matched with the short address in the control instruction.
2. The method of claim 1, wherein associating the virtual key with a target key of the first device and the second device, respectively, to obtain a duel-control key comprises:
traversing all the function keys in the first equipment and the second equipment;
setting a double-control mask for each function key, and sending the double-control mask to the first device and the second device, wherein the bit state of the double-control mask of the target key to be associated is set to be 1, and the bit states of other keys are set to be 0;
and adding a double-control mask corresponding to the target key associated with the virtual key to obtain the double-control key.
3. The method of claim 2, wherein in the step of generating the control command at the client, the response signal of the on-key button comprises an on-key mask corresponding to the target key associated therewith.
4. The method of claim 3, wherein in the event that the locally stored short address matches a short address in the control instruction, the method further comprises:
the first device and the second device respectively determine the target key to be executed according to the double-control mask in the control instruction;
and the first equipment and the second equipment respectively locally inquire the bit state of the target key, and modify the switch state of the target key under the condition that the bit state is 1.
5. The method according to claim 1, wherein before adding a first device and a second device in a client according to user requirements, the client and the first device and the second device complete pairing through Bluetooth;
and the client sends the control instruction to the network environment through Bluetooth broadcasting.
6. The method of claim 5, further comprising:
the client allocates a short address to the virtual equipment and sends the short address of the virtual equipment to the first equipment and the second equipment respectively for storage;
when a target key of the first device is operated by a user, the first device generates a first control instruction based on a double-control mask corresponding to the target key and the short address of the virtual device and sends the first control instruction to a network environment through Bluetooth broadcasting;
after receiving the first control instruction, the second device performs matching authentication according to the short address of the virtual device, after the authentication is successful, locally determines a target key to be executed according to the double-control mask in the first control instruction, inquires the bit state of the target key, and modifies the on-off state of the target key under the condition that the bit state is 1.
7. A device control system for use in a dual/multi-control scenario, the system comprising: the method comprises the steps of creating a correlation module, an instruction generation module and a response module, wherein the correlation module, the instruction generation module and the response module are arranged in the communication network;
the association creating module is used for adding a first device and a second device in a client according to user requirements, respectively allocating different short addresses to the first device and the second device, and,
creating virtual equipment in the client and defining virtual keys, and associating the virtual keys with target keys of the first equipment and the second equipment respectively to obtain a double-control key;
the instruction generating module is used for indicating the client to generate a control instruction based on a response signal of the double control key and the short address when the double control key is operated by a user and sending the control instruction to a network environment;
and the response module is used for judging whether the locally stored short address is matched with the short address in the control instruction or not after the first equipment or the second equipment receives the control instruction, and if so, modifying the on-off state of the target key.
8. The system of claim 7, wherein associating the virtual key with a target key of the first device and the second device, respectively, to obtain a duel-key comprises:
traversing all the function keys in the first equipment and the second equipment;
setting a double-control mask for each function key, and sending the double-control mask to the first device and the second device, wherein the bit state of the double-control mask of the target key to be associated is set to be 1, and the bit states of other keys are set to be 0;
and adding the double-control mask of the target key associated with the virtual key to obtain the double-control key.
9. 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 processor implements the device control method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the device control method according to any one of claims 1 to 6.
CN202210168073.6A 2022-02-23 2022-02-23 Equipment control method, system, electronic equipment and storage medium Active CN114598564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210168073.6A CN114598564B (en) 2022-02-23 2022-02-23 Equipment control method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210168073.6A CN114598564B (en) 2022-02-23 2022-02-23 Equipment control method, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114598564A true CN114598564A (en) 2022-06-07
CN114598564B CN114598564B (en) 2023-07-04

Family

ID=81804582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210168073.6A Active CN114598564B (en) 2022-02-23 2022-02-23 Equipment control method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114598564B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6307843B1 (en) * 1997-07-18 2001-10-23 Nec Corporation Ad hoc network of mobile hosts using link table for identifying wireless links and destination addresses
US20030204635A1 (en) * 2002-04-27 2003-10-30 Eun-Sook Ko Internet protocol based communication system and method for setting host address and selecting source address therein
CN102404379A (en) * 2010-07-30 2012-04-04 兄弟工业株式会社 Communication device and communication method
WO2014012348A1 (en) * 2012-07-18 2014-01-23 Shi Yi Cloud numerical control system
CN105137930A (en) * 2014-05-20 2015-12-09 Abb技术股份公司 Method and a device are disclosed for managing and configuring field devices in an automation installation with a configuration tool
CN105573139A (en) * 2016-02-18 2016-05-11 夏竹兵 Switch panel and home control system
CN106130837A (en) * 2016-07-05 2016-11-16 无锡市华东电力设备有限公司 Intelligent home control system
CN106292323A (en) * 2016-09-20 2017-01-04 深圳广田智能科技有限公司 Switch panel is configured to the system and method for Multifunctional control panel
CN106527159A (en) * 2016-09-28 2017-03-22 杭州鸿雁智能科技有限公司 Method for redefining key functions, server, electrical equipment and system
CN106547213A (en) * 2016-10-13 2017-03-29 湖南工业大学 A kind of soft-touch control interlocking collocation method
CN107505924A (en) * 2017-09-12 2017-12-22 昌奎 With the intelligent electric appliance management system and method for single-chip microcomputer autocoding
CN107608218A (en) * 2017-09-06 2018-01-19 苏州健雄职业技术学院 Household electrical appliance intelligent power control method
CN108021031A (en) * 2018-01-12 2018-05-11 湖南金鹤科技有限公司 Intelligent switch and intelligent switch control system
CN108196468A (en) * 2018-03-26 2018-06-22 京东方科技集团股份有限公司 Intelligent home furnishing control method and intelligent domestic system
CN110572306A (en) * 2019-10-15 2019-12-13 厦门狄耐克智能科技股份有限公司 wired intelligent home system with ad hoc network and ad hoc network method thereof
CN110764421A (en) * 2018-07-27 2020-02-07 珠海格力电器股份有限公司 Control method, controlled method, equipment, intelligent terminal and intelligent household appliance
CN112526891A (en) * 2020-11-30 2021-03-19 星络智能科技有限公司 Intelligent switch key control system and method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6307843B1 (en) * 1997-07-18 2001-10-23 Nec Corporation Ad hoc network of mobile hosts using link table for identifying wireless links and destination addresses
US20030204635A1 (en) * 2002-04-27 2003-10-30 Eun-Sook Ko Internet protocol based communication system and method for setting host address and selecting source address therein
CN102404379A (en) * 2010-07-30 2012-04-04 兄弟工业株式会社 Communication device and communication method
WO2014012348A1 (en) * 2012-07-18 2014-01-23 Shi Yi Cloud numerical control system
CN105137930A (en) * 2014-05-20 2015-12-09 Abb技术股份公司 Method and a device are disclosed for managing and configuring field devices in an automation installation with a configuration tool
CN105573139A (en) * 2016-02-18 2016-05-11 夏竹兵 Switch panel and home control system
CN106130837A (en) * 2016-07-05 2016-11-16 无锡市华东电力设备有限公司 Intelligent home control system
CN106292323A (en) * 2016-09-20 2017-01-04 深圳广田智能科技有限公司 Switch panel is configured to the system and method for Multifunctional control panel
CN106527159A (en) * 2016-09-28 2017-03-22 杭州鸿雁智能科技有限公司 Method for redefining key functions, server, electrical equipment and system
CN106547213A (en) * 2016-10-13 2017-03-29 湖南工业大学 A kind of soft-touch control interlocking collocation method
CN107608218A (en) * 2017-09-06 2018-01-19 苏州健雄职业技术学院 Household electrical appliance intelligent power control method
CN107505924A (en) * 2017-09-12 2017-12-22 昌奎 With the intelligent electric appliance management system and method for single-chip microcomputer autocoding
CN108021031A (en) * 2018-01-12 2018-05-11 湖南金鹤科技有限公司 Intelligent switch and intelligent switch control system
CN108196468A (en) * 2018-03-26 2018-06-22 京东方科技集团股份有限公司 Intelligent home furnishing control method and intelligent domestic system
CN110764421A (en) * 2018-07-27 2020-02-07 珠海格力电器股份有限公司 Control method, controlled method, equipment, intelligent terminal and intelligent household appliance
CN110572306A (en) * 2019-10-15 2019-12-13 厦门狄耐克智能科技股份有限公司 wired intelligent home system with ad hoc network and ad hoc network method thereof
CN112526891A (en) * 2020-11-30 2021-03-19 星络智能科技有限公司 Intelligent switch key control system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
BAUYRZHAN OSPAN: "Context Aware Virtual Assistant with Case-Based Conflict Resolution in Multi-User Smart Home Environment", 《2018 INTERNATIONAL CONFERENCE ON COMPUTING AND NETWORK COMMUNICATIONS (COCONET)》 *
单思宇;: "无线自组网中的路由协议", 电脑知识与技术 *
林刚勇;张建文;王强;: "移动自组网中基于电源消耗的数据位置管理策略", 微计算机信息 *

Also Published As

Publication number Publication date
CN114598564B (en) 2023-07-04

Similar Documents

Publication Publication Date Title
US20220342713A1 (en) Information reporting method, apparatus and device, and storage medium
CN113348725B (en) Device operation method, device, gateway, electronic device and computer readable medium
WO2021051961A1 (en) Intelligent networking method and system
CN109600285A (en) Dynamic construction environment adjusts the method and device of list of rules in a kind of smart home
US20220022022A1 (en) Device discovery method and apparatus, control terminal, and internet of things auxiliary device
CN110933170A (en) Multi-device linkage control method and device of ZigBee gateway and storage medium
CN109639692A (en) Method, apparatus, equipment, system and the storage medium logged in offline
CN111107176A (en) Data transmission method and device, computer equipment and storage medium
WO2011045919A1 (en) Distributed system, communication means selecting method and communication means selecting program
CN107545892B (en) Equipment control method, device and system
CN111585801A (en) ZigBee device upgrading method and related device
US20120002570A1 (en) Coordinating and Establishing Communication Networks Between Communication Devices
CN108600411A (en) A kind of distribution method, device, train apparatus and the storage medium of train address
CN113238756B (en) Live broadcast service processing method and device, electronic equipment and storage medium
CN109218994B (en) Equivalent equipment Bluetooth communication method and device based on gateway
WO2022041841A1 (en) Device network distribution method, device control method, terminal apparatus and device control system
CN111459676A (en) Node resource management method, device and storage medium
US10462194B2 (en) Minimizing productivity loss in a collaborative sharing environment
CN112492030B (en) Data storage method, device, computer equipment and storage medium
CN114598564B (en) Equipment control method, system, electronic equipment and storage medium
CN112398845B (en) Data transmission method, data transmission device, data transmission system and electronic equipment
WO2023202678A1 (en) Device control method and apparatus, electronic device, and storage medium
US6721552B1 (en) Low power radio network
CN108199857B (en) Household appliance, control method and system thereof, and computer readable storage medium
CN112448869A (en) Naming method and system of intelligent household equipment and computer equipment

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