CN114296359A - Device control system, method, apparatus, electronic device, storage medium - Google Patents

Device control system, method, apparatus, electronic device, storage medium Download PDF

Info

Publication number
CN114296359A
CN114296359A CN202111617043.0A CN202111617043A CN114296359A CN 114296359 A CN114296359 A CN 114296359A CN 202111617043 A CN202111617043 A CN 202111617043A CN 114296359 A CN114296359 A CN 114296359A
Authority
CN
China
Prior art keywords
control
server
equipment
state change
client
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
CN202111617043.0A
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.)
BOE Technology Group Co Ltd
Beijing Zhongxiangying Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Beijing Zhongxiangying 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 BOE Technology Group Co Ltd, Beijing Zhongxiangying Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202111617043.0A priority Critical patent/CN114296359A/en
Publication of CN114296359A publication Critical patent/CN114296359A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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]

Landscapes

  • Telephonic Communication Services (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The disclosure provides a device control system, a method, a device, an electronic device and a storage medium, and belongs to the technical field of computers. The method is applied to the client and comprises the following steps: acquiring state change information issued by a server based on long connection with the server through subscription service, wherein the state change information is sent to the server by a control terminal through a public network; generating a control instruction according to the state change information; and sending the control instruction to an equipment controller through an internal network, wherein the control instruction is used for indicating the equipment controller to execute control operation on the electrical equipment. The remote control system and the remote control method realize that the remote equipment can conveniently control intelligent and non-intelligent electrical equipment.

Description

Device control system, method, apparatus, electronic device, storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a system, a method, an apparatus, an electronic device, and a storage medium for controlling a device.
Background
With the application of electronic information technology in furniture and electric appliances, more and more electric appliances start to have the function of intelligent control.
In the related art, an application program is usually installed in a terminal device, so that a user can control an electrical device with an intelligent control function through the terminal device, but if the electrical device cannot provide the application program for intelligent control or the terminal device does not have an application program client, the electrical device cannot be controlled, and the efficiency of on-off control of the electrical device is reduced.
Disclosure of Invention
The disclosure provides a device control system, a method, a device, an electronic device and a storage medium.
Some embodiments of the present disclosure provide an appliance control system, the system comprising: the system comprises a control end, a server end, a client end and an equipment controller, wherein the control end, the server end and the client end are in communication connection based on a public network, and the client end and the equipment controller are in communication connection based on an internal network;
the control terminal is configured to respond to user operation received in the displayed control interface, generate state change information for the electric equipment and send the state change information to the server terminal;
the server is configured to send the state change information to the client based on a long connection with the client maintained through a subscription service;
the client is configured to generate a control instruction according to the state change information; sending the control instruction to an equipment controller through an internal network;
the device controller is configured to perform a control operation on the connected electrical device according to the control instruction; after the control operation is finished, a success signal is sent to the client through an internal network;
the client is further configured to send a status change success notification to the server based on the success signal;
the server is further configured to forward the status change success notification to the control end;
the control end is further configured to display the state change notification in the control interface.
Some embodiments of the present disclosure provide an apparatus control method, applied to a client, the method including:
acquiring state change information issued by a server based on long connection with the server through subscription service, wherein the state change information is sent to the server by a control terminal through a public network;
generating a control instruction according to the state change information;
and sending the control instruction to an equipment controller through an internal network, wherein the control instruction is used for indicating the equipment controller to execute control operation on the electrical equipment.
Optionally, the state change information at least includes: equipment number and instruction action; the generating of the control instruction according to the state change information includes:
and assembling the instruction action and the equipment number according to a preset instruction format to obtain a control instruction, wherein the control instruction is used for instructing the equipment controller to execute the instruction action on the electrical equipment corresponding to the equipment number.
Optionally, after the sending the control instruction to the device controller, the method further includes:
and updating the equipment state information of the electrical equipment based on the equipment state relative to the instruction action in response to a success signal sent by the equipment controller.
Optionally, before the updating of the device state information of the electrical device based on the instruction action in response to the success signal sent by the device controller, the method further comprises:
receiving a success signal sent by the equipment controller, wherein the success signal is generated after the control operation is executed on the electrical equipment by the equipment controller;
and responding to the success signal, calling a state notification interface of the server to send a state change success notification to the control terminal through the server.
Optionally, the method further comprises:
responding to the initialized configuration parameters sent by the server, and establishing communication connection between the server and the client based on a queue telemetry transmission protocol;
and starting a subscription service based on the communication connection in a main interface of the client, wherein the subscription service is used for acquiring the state change information from the server.
Optionally, the sending the control instruction to the device controller includes:
and encapsulating the control instruction into a data packet format of a target transmission protocol to send the encapsulated control instruction to the device controller, wherein the target transmission protocol is a transmission protocol supported by the device controller.
Optionally, the device controller is electrically connected to a relay of the electrical device to perform a switching operation on the electrical device.
Some embodiments of the present disclosure provide an apparatus for controlling a device, which is applied to a client, the apparatus including:
the receiving module is configured to acquire state change information issued by a server based on long connection with the server through subscription service, wherein the state change information is sent to the server by a control terminal through a public network;
a control module configured to generate a control instruction according to the state change information;
and sending the control instruction to an equipment controller through an internal network, wherein the control instruction is used for indicating the equipment controller to execute control operation on the electrical equipment.
Optionally, the state change information at least includes: equipment number and instruction action; the control module further configured to:
and assembling the instruction action and the equipment number according to a preset instruction format to obtain a control instruction, wherein the control instruction is used for instructing the equipment controller to execute the instruction action on the electrical equipment corresponding to the equipment number.
Optionally, the control module is further configured to:
and updating the equipment state information of the electrical equipment based on the equipment state relative to the instruction action in response to a success signal sent by the equipment controller.
Optionally, the control module is further configured to:
receiving a success signal sent by the equipment controller, wherein the success signal is generated after the control operation is executed on the electrical equipment by the equipment controller;
and responding to the success signal, calling a state notification interface of the server to send a state change success notification to the control terminal through the server.
Optionally, the apparatus further comprises: a connection module configured to
Responding to the initialized configuration parameters sent by the server, and establishing communication connection between the server and the client based on a queue telemetry transmission protocol;
and starting a subscription service based on the communication connection in a main interface of the client, wherein the subscription service is used for acquiring the state change information from the server.
Optionally, the control module is further configured to:
and encapsulating the control instruction into a data packet format of a target transmission protocol to send the encapsulated control instruction to the device controller, wherein the target transmission protocol is a transmission protocol supported by the device controller.
Optionally, the device controller is electrically connected to a relay of the electrical device to perform a switching operation on the electrical device.
Some embodiments of the present disclosure provide a computing processing device comprising:
a memory having computer readable code stored therein;
one or more processors that, when the computer readable code is executed by the one or more processors, the computing processing device performs the device control method as described above.
Some embodiments of the present disclosure provide a computer program comprising computer readable code which, when run on a computing processing device, causes the computing processing device to perform a device control method as described above.
Some embodiments of the present disclosure provide a non-transitory computer readable medium in which the device control method as described above is stored.
The utility model provides an equipment control system, method, device, electronic equipment, storage medium, through being in the same internal network's of equipment controller customer end as the intermediate medium, make the control end only need to send the state change information to electrical equipment to the server end through public network after, by the server end based on with the long connection based on subscription service between the customer end with state information transfer to the customer end, the customer end is responsible for will generating corresponding control command, and send control command to the equipment controller through the internal network, and then the equipment controller carries out control operation to electrical equipment based on control command, realized that far-end equipment can control intelligent and non-intelligent electrical equipment conveniently.
The foregoing description is only an overview of the technical solutions of the present disclosure, and the embodiments of the present disclosure are described below in order to make the technical means of the present disclosure more clearly understood and to make the above and other objects, features, and advantages of the present disclosure more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained according to the drawings without creative efforts for those skilled in the art.
Fig. 1 schematically illustrates a system flow diagram of a device control method according to some embodiments of the present disclosure;
fig. 2 schematically illustrates a flow chart of a device control method provided by some embodiments of the present disclosure;
FIG. 3 schematically illustrates a flow diagram of another apparatus control method provided by some embodiments of the present disclosure;
FIG. 4 schematically illustrates a panel schematic of an equipment controller provided by some embodiments of the present disclosure;
FIG. 5 schematically illustrates a wiring diagram of an equipment controller provided by some embodiments of the present disclosure;
fig. 6 schematically illustrates a structural diagram of an apparatus control device according to some embodiments of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a computing processing device for performing methods according to some embodiments of the present disclosure;
fig. 8 schematically illustrates a memory unit for holding or carrying program code implementing methods according to some embodiments of the present disclosure.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Fig. 1 schematically shows a system flow diagram of a device control method provided by the present disclosure, where the system includes: the method comprises the following steps that:
it should be noted that the control end may be an electronic device such as a mobile phone, a tablet computer, and a personal computer, where an application program capable of bearing an applet is installed, and the applet is an application that can be used without downloading and installing, and can be started through a client of the application program or a component provided by a web browser. The server is a server for providing the applet starting data and the service data for the control end. The client is an electronic device such as a smart television, a tablet computer, a personal computer and the like which is provided with an application program. The device controller is an electronic device for controlling an electrical device, and specifically can be connected to a relay of the electrical device, so that on/off control of the electrical device can be realized by closing/opening a switch of the relay, and certainly, when the electrical device is an intelligent device and is provided with a data control interface, the device controller can be connected to the data control interface of the electronic device to control various intelligent functions provided by the electrical device, such as controlling air conditioner temperature, adjusting light color and brightness, and the like, and can be specifically set according to actual requirements, which is not limited herein. The electrical equipment may be electrical equipment such as a lamp, a television, an atomizing glass, and the like in a target scene, and it is worth explaining that whether the electrical equipment is intelligent equipment or not, the relay of the electrical equipment may be switched by the equipment controller in the embodiment of the present disclosure to realize control operation on the electrical equipment. It should be noted that the communication connection between the client and the device controller may be implemented based on an internal network such as a local area network, a cellular network, etc., and the communication connection between the server and the client and the communication connection between the server and the control end may be implemented based on a public network such as a mobile network, a broadband network, etc.
Step 101, the control terminal responds to the user operation received in the displayed control interface, generates state change information for the electric appliance equipment, and sends the state change information to the server terminal.
In the embodiment of the disclosure, the control terminal may display the control interface through the installed application interface, the applet interface, or the web page, so that the user may view and control the current operating state of the electrical device in the control interface. Specifically, the control interface is provided with control components for the electrical equipment which does not pass through, such as a light switch button, an air conditioner temperature adjusting button and the like. The control terminal responds to the input operation of a user on any control component in the control interface, and determines the state change information of the required change of the electrical equipment, wherein the state change information is information for describing the change of the operation state of the electrical equipment, such as the change of a certain electrical equipment from an on state to an off state, the change of a certain electrical equipment from an off state to an on state and the like. And the control end responds to the control operation of the user in the control interface, and calls an interface provided by the server end for updating the equipment state so as to send the state change information to the server end through the public network.
And 102, the server side sends the state change information to the client side based on long connection kept between the server side and the client side through subscription service.
In the embodiment of the present disclosure, the server and the client establish a long connection in advance based on MQTT protocol (Message Queuing teletransmission). Specifically, the long connection is established as follows:
a1, establishing MQTT service (subscription service) by a service end, and configuring parameters such as IP, passwords, account numbers, MQTT _ TOPIC, MQTT _ CLIENTID and the like;
a2, the client creates an empty project through android studio (android integrated development tool), and sets the project as self-starting;
a3, the client side carries out initialization configuration work of MQTT service according to configuration parameters provided by the server side;
a4, the client side creates MQTT service connection test, and long connection between the server side and the client side can be maintained after the connection is successful.
A5, configuring MqttCallback by the client, acquiring the instruction message of the server and processing the instruction message;
a5, starting the MQTT service in the MainActivity page (main page) of the client.
Furthermore, after an interface for updating the state of the device provided by the server is called, the state change information is transmitted to the client through the configured MQTT service.
And 103, generating a control instruction by the client according to the state change information.
And 104, the client sends the control instruction to the equipment controller through an internal network.
In this embodiment of the application, after receiving the state change information, the client may generate a control instruction through a preset instruction template format, for example, "HS-KEY15-setkey-" + Index + Action ", where" HS-KEY15-setkey- "is a signal of the device controller," Index "is a device number of the electrical device, and a word number needs to be consistent with a device number recorded by the device controller to ensure that the device controller identifies the control instruction, and" Action "is an Action instruction, for example: keydown-0 indicates on, and keyup-1 indicates off. Of course, this is merely an exemplary illustration, and the generation manner of the control command may be specifically set according to actual requirements, and is not limited here.
The client and the equipment controller are in the same internal network, can keep connection and communicate through a TCP protocol, and can directly transmit a control instruction to the equipment controller through the internal network.
And 105, the equipment controller executes control operation on the connected electric equipment according to the control instruction.
In the embodiment of the disclosure, after receiving the control instruction, the device controller may perform a switching action on a relay of the connected electrical device, so as to implement switching control on the electrical device.
And 106, after the control operation is finished, the device controller sends a success signal to the client through the internal network.
In the embodiment of the disclosure, after the electrical equipment is successfully controlled, the equipment controller feeds back a success signal to the client in an instruction mode.
And 107, the client sends a state change success notification to the server based on the success signal.
In the embodiment of the disclosure, the client calls the server interface to send a state change success notification to the server.
Step 108, the server side forwards the state change success notification to the control side.
In the embodiment of the present disclosure, the server returns the status change success notification to the control end in response to the status change information.
Step 109, the control end displays the state change notification in the control interface.
In the embodiment of the present disclosure, the control terminal changes the operation state of the electrical equipment displayed in the control interface in response to the state change success notification, for example, the illumination lamp that is originally in the off state is changed to the on state, or the on state is changed to the off state, so that the user knows that the electrical equipment is successfully controlled.
The client side which is in the same internal network with the equipment controller is used as an intermediate medium, so that the control end only needs to send the state change information of the electrical equipment to the server side through a public network, the server side transmits the state information to the client side based on long connection based on subscription service between the server side and the client side, the client side is responsible for generating corresponding control instructions, the control instructions are sent to the equipment controller through the internal network, and then the equipment controller executes control operation on the electrical equipment based on the control instructions, and the remote equipment can conveniently control intelligent and non-intelligent electrical equipment.
Fig. 2 schematically shows a flowchart of a device control method provided by the present disclosure, which is applied to a client, and the method includes:
step 201, acquiring state change information issued by a server based on a long connection with the server through a subscription service, wherein the state change information is sent to the server by a control terminal through a public network.
This step can refer to the detailed description of step 102, which is not repeated here.
Step 202, generating a control command according to the state change information.
This step can refer to the detailed description of step 103, which is not repeated herein.
And 203, sending the control instruction to an equipment controller through an internal network, wherein the control instruction is used for instructing the equipment controller to execute control operation on the electrical equipment.
This step can refer to the detailed description of step 104, which is not repeated here.
The client side which is in the same internal network with the equipment controller is used as an intermediate medium, so that the control end only needs to send the state change information of the electrical equipment to the server side through a public network, the server side transmits the state information to the client side based on long connection based on subscription service between the server side and the client side, the client side is responsible for generating a corresponding control instruction, the control instruction is sent to the equipment controller through the internal network, the equipment controller executes control operation on the electrical equipment based on the control instruction, and the remote equipment can conveniently control intelligent and non-intelligent electrical equipment.
Optionally, the state change information at least includes: the device number and the instruction action, step 202, may include: and assembling the instruction action and the equipment number according to a preset instruction format to obtain a control instruction, wherein the control instruction is used for instructing the equipment controller to execute the instruction action on the electrical equipment corresponding to the equipment number.
In the embodiment of the present disclosure, referring to the above description, the device number is a unique identifier for indicating the electrical device, and the device controller and the client have previously entered therein the device number corresponding to the connected electrical device. The instruction action is a unique identification for indicating an operation action for the electrical appliance.
Specifically, the client analyzes the received state change information, extracts the device number and the command action of the electronic device that needs to be started, and then assembles the device number and the device action based on the preset command format set by the protocol to obtain the control command, which may specifically refer to the detailed description in step 104 and is not described here again.
According to the embodiment of the disclosure, the client converts the state change information into the control instruction and then sends the control instruction to the equipment controller, so that the data processing amount required by the server and the control terminal in the control process of the electrical equipment is reduced.
Optionally, referring to fig. 3, after the step 203, the method further includes:
step 301, receiving a success signal sent by the device controller, where the success signal is generated by the device controller after the control operation is performed on the electrical device.
And step 302, responding to a success signal sent by the equipment controller, and updating the equipment state information of the electrical equipment based on the equipment state relative to the instruction action.
Step 303, in response to the success signal, invoking a state notification interface of the server to send a state change success notification to the control end through the server.
Step 301 to step 303 can refer to the detailed description of step 105 to step 108, and are not described herein again.
According to the embodiment of the invention, the state change notification is returned to the server after the device controller executes the control operation on the electrical equipment, so that the server can further notify the control terminal, and a user can conveniently know the condition of device control.
Optionally, the method further comprises:
b1, responding to the initial configuration parameters sent by the server, and establishing a communication connection between the server and the communication terminal based on the queue telemetry transmission protocol.
And B2, starting a subscription service based on the communication connection in the main interface of the client, wherein the subscription service is used for acquiring the state change information from the server.
The steps can refer to the detailed descriptions of a1 to a5 in step 102, and are not described herein again.
According to the method and the device, the long connection between the server and the client based on the subscription service is constructed in advance, so that the client can acquire the state change information of the electrical equipment in real time.
Optionally, the step 202 may include: and encapsulating the control instruction into a data packet format of a target transmission protocol to send the encapsulated control instruction to the device controller, wherein the target transmission protocol is a transmission protocol supported by the device controller.
In the embodiment of the present disclosure, it is considered that different transmission protocols supported by different device controllers are different, and therefore, the control instruction sent by the client to the device controller needs to be in a data packet format specified by a target transmission protocol supported by the device controller, so as to ensure that the device controller can identify the control instruction.
Optionally, the device controller is electrically connected to a relay of the electrical device to perform a switching operation on the electrical device.
In the embodiment of the disclosure, for the non-intelligent electrical equipment, the relay of the electrical equipment can be connected through the equipment controller, so that the equipment controller can switch the electrical equipment by switching the relay, and the remote control of the non-intelligent electrical equipment is realized.
Illustratively, referring to FIG. 4, there is shown a schematic diagram of a panel of a device controller, wherein the device controller includes 8 switch keys 1-8, each of which is connectable to a relay of a different electrical device. Further, referring to FIG. 5, a wiring diagram of an equipment controller is shown.
Fig. 6 schematically shows a structural schematic diagram of a device control apparatus 40 provided by the present disclosure, applied to a client, the apparatus including:
a receiving module 401, configured to obtain state change information issued by a server based on a long connection maintained through a subscription service with the server, where the state change information is sent to the server by a control end through a public network;
a control module 402 configured to generate a control instruction according to the state change information;
and sending the control instruction to an equipment controller through an internal network, wherein the control instruction is used for indicating the equipment controller to execute control operation on the electrical equipment.
Optionally, the state change information at least includes: equipment number and instruction action; the control module 402, further configured to:
and assembling the instruction action and the equipment number according to a preset instruction format to obtain a control instruction, wherein the control instruction is used for instructing the equipment controller to execute the instruction action on the electrical equipment corresponding to the equipment number.
Optionally, the control module 402 is further configured to:
and updating the equipment state information of the electrical equipment based on the equipment state relative to the instruction action in response to a success signal sent by the equipment controller.
Optionally, the control module 402 is further configured to:
receiving a success signal sent by the equipment controller, wherein the success signal is generated after the control operation is executed on the electrical equipment by the equipment controller;
and responding to the success signal, calling a state notification interface of the server to send a state change success notification to the control terminal through the server.
Optionally, the apparatus further comprises: a connection module configured to
Responding to the initialized configuration parameters sent by the server, and establishing communication connection between the server and the client based on a queue telemetry transmission protocol;
and starting a subscription service based on the communication connection in a main interface of the client, wherein the subscription service is used for acquiring the state change information from the server.
Optionally, the control module 402 is further configured to:
and encapsulating the control instruction into a data packet format of a target transmission protocol to send the encapsulated control instruction to the device controller, wherein the target transmission protocol is a transmission protocol supported by the device controller.
Optionally, the device controller is electrically connected to a relay of the electrical device to perform a switching operation on the electrical device.
The client side which is in the same internal network with the equipment controller is used as an intermediate medium, so that the control end only needs to send the state change information of the electrical equipment to the server side through a public network, the server side transmits the state information to the client side based on long connection based on subscription service between the server side and the client side, the client side is responsible for generating corresponding control instructions, the control instructions are sent to the equipment controller through the internal network, and then the equipment controller executes control operation on the electrical equipment based on the control instructions, and the remote equipment can conveniently control intelligent and non-intelligent electrical equipment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Various component embodiments of the disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components in a computing processing device according to embodiments of the present disclosure. The present disclosure may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present disclosure may be stored on a non-transitory computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
For example, FIG. 7 illustrates a computing processing device that may implement methods in accordance with the present disclosure. The computing processing device conventionally includes a processor 510 and a computer program product or non-transitory computer-readable medium in the form of a memory 520. The memory 520 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. The memory 520 has a memory space 530 for program code 531 for performing any of the method steps in the method described above. For example, the storage space 530 for the program code may include respective program codes 531 for implementing various steps in the above method, respectively. The program code can be read from or written to one or more computer program products. These computer program products comprise a program code carrier such as a hard disk, a Compact Disc (CD), a memory card or a floppy disk. Such a computer program product is typically a portable or fixed storage unit as described with reference to fig. 8. The memory unit may have memory segments, memory spaces, etc. arranged similarly to memory 520 in the computing processing device of fig. 7. The program code may be compressed, for example, in a suitable form. Typically, the memory unit comprises computer readable code 531', i.e. code that can be read by a processor, such as 510, for example, which when executed by a computing processing device causes the computing processing device to perform the steps of the method described above.
It should be understood that, although the steps in the flowcharts of the figures 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 may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present disclosure. Moreover, it is noted that instances of the word "in one embodiment" are not necessarily all referring to the same embodiment.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the disclosure may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present disclosure.

Claims (10)

1. An appliance control system, the system comprising: the system comprises a control end, a server end, a client end and an equipment controller, wherein the control end, the server end and the client end are in communication connection based on a public network, and the client end and the equipment controller are in communication connection based on an internal network;
the control terminal is configured to respond to user operation received in the displayed control interface, generate state change information for the electric equipment and send the state change information to the server terminal;
the server is configured to send the state change information to the client based on a long connection with the client maintained through a subscription service;
the client is configured to generate a control instruction according to the state change information; sending the control instruction to an equipment controller through an internal network;
the device controller is configured to perform a control operation on the connected electrical device according to the control instruction; after the control operation is finished, a success signal is sent to the client through an internal network;
the client is further configured to send a status change success notification to the server based on the success signal;
the server is further configured to forward the status change success notification to the control end;
the control end is further configured to display the state change notification in the control interface.
2. An apparatus control method, applied to a client, includes:
acquiring state change information issued by a server based on long connection with the server through subscription service, wherein the state change information is sent to the server by a control terminal through a public network;
generating a control instruction according to the state change information;
and sending the control instruction to an equipment controller through an internal network, wherein the control instruction is used for indicating the equipment controller to execute control operation on the electrical equipment.
3. The method of claim 2, wherein the state change information comprises at least: equipment number and instruction action; the generating of the control instruction according to the state change information includes:
and assembling the instruction action and the equipment number according to a preset instruction format to obtain a control instruction, wherein the control instruction is used for instructing the equipment controller to execute the instruction action on the electrical equipment corresponding to the equipment number.
4. The method of claim 3, wherein after said sending the control instruction to the device controller, the method further comprises:
and updating the equipment state information of the electrical equipment based on the equipment state relative to the instruction action in response to a success signal sent by the equipment controller.
5. The method of claim 4, wherein prior to said updating the device status information of the appliance device based on the commanded action in response to a success signal sent by the device controller, the method further comprises:
receiving a success signal sent by the equipment controller, wherein the success signal is generated after the control operation is executed on the electrical equipment by the equipment controller;
and responding to the success signal, calling a state notification interface of the server to send a state change success notification to the control terminal through the server.
6. The method of claim 4, further comprising:
responding to the initialized configuration parameters sent by the server, and establishing communication connection between the server and the client based on a queue telemetry transmission protocol;
and starting a subscription service based on the communication connection in a main interface of the client, wherein the subscription service is used for acquiring the state change information from the server.
7. The method of claim 2, wherein said sending the control instruction to a device controller comprises:
and encapsulating the control instruction into a data packet format of a target transmission protocol to send the encapsulated control instruction to the device controller, wherein the target transmission protocol is a transmission protocol supported by the device controller.
8. An apparatus for controlling a device, applied to a client, the apparatus comprising:
the receiving module is configured to acquire state change information issued by a server based on long connection with the server through subscription service, wherein the state change information is sent to the server by a control terminal through a public network;
a control module configured to generate a control instruction according to the state change information;
and sending the control instruction to an equipment controller through an internal network, wherein the control instruction is used for indicating the equipment controller to execute control operation on the electrical equipment.
9. A computing processing device, comprising:
a memory having computer readable code stored therein;
one or more processors that when the computer readable code is executed by the one or more processors, the computing processing device performs the device control method of any of claims 2-7.
10. A non-transitory computer-readable medium, characterized in that a computer program of the device control method according to any one of claims 2 to 7 is stored therein.
CN202111617043.0A 2021-12-27 2021-12-27 Device control system, method, apparatus, electronic device, storage medium Pending CN114296359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111617043.0A CN114296359A (en) 2021-12-27 2021-12-27 Device control system, method, apparatus, electronic device, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111617043.0A CN114296359A (en) 2021-12-27 2021-12-27 Device control system, method, apparatus, electronic device, storage medium

Publications (1)

Publication Number Publication Date
CN114296359A true CN114296359A (en) 2022-04-08

Family

ID=80969817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111617043.0A Pending CN114296359A (en) 2021-12-27 2021-12-27 Device control system, method, apparatus, electronic device, storage medium

Country Status (1)

Country Link
CN (1) CN114296359A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190147A (en) * 2022-06-29 2022-10-14 北京奕斯伟计算技术股份有限公司 Intelligent equipment control method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205827133U (en) * 2016-07-06 2016-12-21 智慧云谷智能科技(深圳)有限公司 A kind of Novel intelligent home control system
CN110474980A (en) * 2019-08-13 2019-11-19 深圳市商汤科技有限公司 Data control method and device, electronic equipment and storage medium
CN110716439A (en) * 2019-10-21 2020-01-21 合肥美的电冰箱有限公司 Household appliance state synchronization method, household appliance and medium
CN112910744A (en) * 2019-12-03 2021-06-04 北京沃东天骏信息技术有限公司 Intelligent device control method and device, storage medium and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205827133U (en) * 2016-07-06 2016-12-21 智慧云谷智能科技(深圳)有限公司 A kind of Novel intelligent home control system
CN110474980A (en) * 2019-08-13 2019-11-19 深圳市商汤科技有限公司 Data control method and device, electronic equipment and storage medium
CN110716439A (en) * 2019-10-21 2020-01-21 合肥美的电冰箱有限公司 Household appliance state synchronization method, household appliance and medium
CN112910744A (en) * 2019-12-03 2021-06-04 北京沃东天骏信息技术有限公司 Intelligent device control method and device, storage medium and electronic device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
邓庆绪: "《大数据的Python基础》", 30 April 2020, 西安电子科技大学出版社, pages: 284 - 105 *
邓庆绪: "《物联网中间件技术与应用》", 机械工业出版社, pages: 104 - 105 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115190147A (en) * 2022-06-29 2022-10-14 北京奕斯伟计算技术股份有限公司 Intelligent equipment control method, device and system
CN115190147B (en) * 2022-06-29 2024-03-22 北京奕斯伟计算技术股份有限公司 Intelligent device control method, device and system

Similar Documents

Publication Publication Date Title
CN105471686B (en) Terminal control method, device and system
EP1402101B1 (en) Service system for electric home appliances and method thereof
CN112073471B (en) Control method and device of equipment, storage medium and electronic device
CN102932695B (en) A kind of remote control thereof, intelligent terminal and intelligent remote control system
EP1278391B1 (en) Remote operation system for electric apparatus, remote operating method for electric apparatus and base station for performing remote operation of electric apparatus
CN108513154A (en) Intelligent home furnishing control method, smart television based on smart television and storage medium
CN102323803B (en) Intelligent home control method and system
AU2002315929A1 (en) Service system for electric home appliances and method thereof
CN108156058B (en) Method and device for accessing intelligent gateway equipment and readable storage medium
CN110099461B (en) Communication method and system between terminals, electronic equipment and storage medium
CN113168334A (en) Data processing method and device, electronic equipment and readable storage medium
CN111930020B (en) Equipment control system, method, device, terminal and readable storage medium
CN105049340A (en) Method and device for accessing intelligent equipment based on instant communication
CN104936036A (en) Intelligent television display method in household intelligent home integration system and system thereof
CN105049339A (en) Method and device for loading control interface of intelligent device
CN114326501A (en) Device control system, method, apparatus, electronic device, storage medium
CN114296359A (en) Device control system, method, apparatus, electronic device, storage medium
CN106331284A (en) Communication system based on WIFI Internet of things technology
US20150256650A1 (en) Network system, communication method, server, and terminal
CN101465980B (en) Television program watch control service system
CN113825004B (en) Multi-screen sharing method and device for display content, storage medium and electronic device
US20070130278A1 (en) Home network system
CN112019409B (en) Equipment distribution network processing method, equipment distribution network processing device and electronic equipment
CN110149254B (en) Wireless switch control method, wireless switch and computer readable storage medium
CN115884434A (en) Connection method of terminal and household appliance, terminal, household appliance and readable storage medium

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