CN116430756A - Device control method, device control apparatus, device, and storage medium - Google Patents

Device control method, device control apparatus, device, and storage medium Download PDF

Info

Publication number
CN116430756A
CN116430756A CN202310289627.2A CN202310289627A CN116430756A CN 116430756 A CN116430756 A CN 116430756A CN 202310289627 A CN202310289627 A CN 202310289627A CN 116430756 A CN116430756 A CN 116430756A
Authority
CN
China
Prior art keywords
controller
controllers
networking
working mode
control system
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
CN202310289627.2A
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.)
Shenzhen Kaihong Digital Industry Development Co Ltd
Original Assignee
Shenzhen Kaihong Digital Industry Development 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 Shenzhen Kaihong Digital Industry Development Co Ltd filed Critical Shenzhen Kaihong Digital Industry Development Co Ltd
Priority to CN202310289627.2A priority Critical patent/CN116430756A/en
Publication of CN116430756A publication Critical patent/CN116430756A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention provides a device control method, a device, equipment and a storage medium. The device control method is applied to a control system, and comprises a plurality of devices, wherein the devices comprise controllers and controlled elements, the controllers have a system with preset levels, and the controllers of any device can be connected with the controllers of other devices through a distributed soft bus, and the device control method comprises the following steps: networking controllers of the equipment in the preset area to construct a control system, wherein the controllers of the networked equipment are connected through a distributed soft bus; the method comprises the steps that an operating mode is configured for a plurality of controllers of a control system, the operating mode comprises a first operating mode and a second operating mode, the first operating mode is that a controller of equipment controls a controlled element of the first operating mode, and the second operating mode is that the controllers of other equipment and the controller of the equipment simultaneously control the controlled element of the second operating mode; and controlling the controlled element of each device to work according to the configured working mode. Embodiments of the present application are directed to controlling a device with a controller based on different modes of operation.

Description

Device control method, device control apparatus, device, and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a device control method, a device control apparatus, a device, and a computer readable storage medium.
Background
With the rapid development of internet and mobile internet of things technologies, distributed controllers such as intelligent door locks and novel intelligent home have been applied to everywhere in life. Current distributed controllers are typically based on connections in end-to-end fashion, e.g., for a controller such as a smart switch, a dedicated smart switch can only control a particular device, often requiring replacement of the device it controls after the smart switch is damaged, or to repair the smart switch. Not only is time and labor wasted, but also the use experience of the user is affected.
Disclosure of Invention
The application provides a device control method, a device control device, a device and a computer readable storage medium, and aims to control the device by using a controller based on different working modes so as to improve the use experience of a user.
In order to achieve the above object, the present application provides an apparatus control method, where the apparatus control method uses a control system disposed in a preset area, where the control system includes a plurality of apparatuses, where the apparatuses include a controller and a controlled element controlled by the controller, where the controller is equipped with an operating system of a preset level, and where a controller of any one of the apparatuses can be communicatively connected to a controller of another of the apparatuses through a distributed soft bus; the device control method comprises the following steps:
networking controllers of a plurality of devices in the preset area to construct the control system, wherein the controllers of the plurality of devices after networking are connected through a distributed soft bus;
the method comprises the steps that a working mode is configured for a plurality of controllers of the control system, wherein the working mode at least comprises a first working mode and a second working mode, the first working mode is that a controller of the equipment controls a controlled element of the first working mode, and the second working mode is that the controllers of other equipment and the controller of the equipment simultaneously control the controlled element of the second working mode;
and controlling the controlled element of each device to work according to the configured working mode.
To achieve the above object, the present application further provides an apparatus control device, including:
the networking module is used for networking controllers of a plurality of devices in the preset area, constructing the control system and connecting the networked controllers of the plurality of devices through a distributed soft bus;
the working mode configuration module is used for configuring working modes for a plurality of controllers of the control system, the working modes at least comprise a first working mode and a second working mode, the first working mode is that a controller of the equipment controls a controlled element of the first working mode, and the second working mode is that the controllers of other equipment and the controller of the equipment simultaneously control the controlled element of the second working mode;
and the control module is used for controlling the controlled element of each device to work according to the configured working mode.
In addition, in order to achieve the above object, the present application further provides an apparatus including a controller and a controlled element controlled by the controller, the controller including a memory and a processor; the memory is used for storing a computer program; the processor is configured to execute the computer program and implement the steps of any one of the device control methods provided in the embodiments of the present application when the computer program is executed.
In addition, to achieve the above object, the present application further provides a computer-readable storage medium storing a computer program, which when executed by a processor, causes the processor to implement the steps of the device control method according to any one of the embodiments provided herein.
The device control method, the device control apparatus, the device and the computer readable storage medium disclosed in the embodiments of the present application can network the controllers of a plurality of devices in an area to construct a control system. And further configures the operating mode for the control system. The working modes at least comprise a first working mode and a second working mode. The first working mode is to control the controlled element by the controller of the equipment, and the second working mode is to control the controlled element by the controller of other equipment and the controller of the equipment at the same time. Further, the controlled elements of each device may be controlled to operate based on the configured mode of operation. The control system and the control method can control equipment by using the controller based on different working modes, stability and replaceability of the controller in the control system are achieved, flexibility of the control system is improved, and use experience of a user is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic step diagram of a device control method according to an embodiment of the present application;
fig. 2 is a schematic view of a scenario of a device control method in a first working mode according to an embodiment of the present application;
fig. 3 is a schematic view of a scenario of a device control method in a second working mode according to an embodiment of the present application;
FIG. 4 is a schematic diagram of steps for constructing a control system according to an embodiment of the present application;
fig. 5 is a schematic view of a scenario in which a master controller issues networking information according to an embodiment of the present application;
fig. 6 is a schematic view of a scenario in which a controller that does not participate in networking issues networking information according to an embodiment of the present application;
fig. 7 is a schematic view of a scenario in which networking information is issued by a cloud end according to an embodiment of the present application;
FIG. 8 is a schematic step diagram of another method for controlling a device according to an embodiment of the present disclosure;
fig. 9 is a schematic view of a scenario of the device control method shown in fig. 8;
FIG. 10 is a schematic step diagram of yet another method for controlling a device according to an embodiment of the present application;
FIG. 11 is a schematic block diagram of a device control apparatus provided in an embodiment of the present application;
fig. 12 is a schematic block diagram of an apparatus provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations. In addition, although the division of the functional modules is performed in the apparatus schematic, in some cases, the division of the modules may be different from that in the apparatus schematic.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first recognition model and the second recognition model are merely for distinguishing between different callback functions, and are not limited in their order of precedence. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating steps of a device control method according to an embodiment of the present application. The device control method is applied to a control system arranged in a preset area, the control system comprises a plurality of devices, the devices comprise controllers and controlled elements controlled by the controllers, the controllers are provided with operation systems with preset levels, and the controller of any one device can be in communication connection with the controllers of other devices through a distributed soft bus.
As shown in fig. 1, the device control method includes steps S11 to S13.
Step S11: networking controllers of a plurality of devices in a preset area, and constructing a control system, wherein the controllers of the plurality of devices after networking are connected through a distributed soft bus.
The preset area is not limited in this application, and may be, for example, a home indoor area, or another outdoor or indoor area, etc., and this application describes a preset area as a home indoor area. It will be appreciated that communication connections may be made between devices within the predetermined area.
Further, the apparatus includes a controller and a controlled element controlled by the controller. The device can be at least one of a refrigerator, an intelligent lamp, an air conditioner and a television, the controller is a control unit of the refrigerator, the intelligent lamp, the air conditioner and the television, and correspondingly, the controlled element can comprise an element controlled by the control unit in the refrigerator, the intelligent lamp, the air conditioner and the television. For example, for a refrigerator, the controlled elements may be a refrigeration unit, a lamp, etc., which is not limited in this application. Further, the controlled elements may be controlled by one or more controllers for implementing their corresponding functions.
In addition, the controller is provided with an operating system with a preset level, and the controller of any one device can be in communication connection with the controllers of other devices through a distributed soft bus.
It should be noted that the present application is not limited to the preset level, and for example, the preset level may be set based on the priority of the controller. Specifically, the preset level may be set to a first level, a second level, and a third level according to the priority from high to low, respectively. It can be understood that the controller corresponding to the operating system of the first level can control not only the controlled element corresponding to the controller of the first level, but also the controlled elements corresponding to the controllers of the second level and the third level. In this way, problems with failure of the individual controllers to control the controlled elements can be prevented.
Furthermore, the distributed soft bus technology can realize unified distributed communication management capability among near field devices, and provides discovery connection, networking and transmission capability among devices without distinguishing links. Therefore, the controller of any one device based on the distributed soft bus can discover each other and establish communication connection with the controllers of other devices.
Optionally, the controllers of the plurality of devices after networking are connected through a distributed soft bus, including: the controller of any one device after networking can be in communication connection with the controllers of other devices through a plurality of communication links, wherein the plurality of communication links comprise a WiFi communication link, a BR communication link and a BLE communication link.
Specifically, the distributed soft bus provides discovery and connection functions between devices based on the coordination of the softness and hardness of the Ethernet, the WIFI and the Bluetooth, namely discovery connection capability between controllers based on communication modes such as a WiFi communication link, a BR communication link, a BLE communication link and the like. Therefore, a plurality of controllers in the control system can arbitrarily select a better communication mode of the communication signals, so that stable and faster communication transmission can be realized between the controllers.
In the embodiment of the application, the controllers of the plurality of devices in the preset area can be networked based on the distributed full bus to construct a control system. The distributed soft bus can provide discovery connection capability between controllers based on communication modes such as a WiFi communication link, a BR communication link, a BLE communication link and the like. Therefore, the controllers in the control system can be connected in a communication mode without being limited to one communication mode, and the flexibility of the control system and the stability and the high efficiency of the communication process are improved.
Step S12: an operating mode is configured for a plurality of controllers of the control system.
The working modes at least comprise a first working mode and a second working mode, wherein the first working mode is that a controller of the equipment controls a controlled element of the equipment, and the second working mode is that the controllers of other equipment and the controller of the equipment simultaneously control the controlled element of the equipment.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic view of a scenario of a device control method in a first working mode according to an embodiment of the present application; fig. 3 is a schematic view of a scenario of a device control method in a second working mode according to an embodiment of the present application.
As shown in fig. 2, in the first working mode, the controller may be connected to the controlled element in a factory configuration manner or an autonomous pairing manner, so as to control the controlled element through the controller. In the second mode of operation, the controller of the other device and the controller of the device simultaneously control its controlled elements, as shown in fig. 3. That is, the controlled element may be controlled by a plurality of controllers.
In the embodiment of the application, the working modes can be configured for a plurality of controllers of the control system. The working modes at least comprise a first working mode and a second working mode, and the first working mode and the second working mode respectively correspond to a single-controller controlled element and a multi-controller controlled element.
Step S13: and controlling the controlled element of each device to work according to the configured working mode.
Since the above-described operation mode corresponds to a specific manner in which the controller controls the controlled element. Thus, after the operation mode is configured for the control system, the controlled element of each device may be controlled to operate by the corresponding controller according to the operation mode.
In the embodiment of the application, the controllers of a plurality of devices in the area can be networked to construct a control system, and then the working mode is configured for the control system. The working modes at least comprise a first working mode and a second working mode. The first working mode is to control the controlled element by the controller of the equipment, and the second working mode is to control the controlled element by the controller of other equipment and the controller of the equipment at the same time. Further, the controlled elements of each device may be controlled to operate based on the configured mode of operation. The control system and the control method can control equipment by using the controller based on different working modes, stability and replaceability of the controller in the control system are achieved, flexibility of the control system is improved, and use experience of a user is further improved.
Optionally, referring to fig. 4, fig. 4 is a schematic diagram of steps for constructing a control system according to an embodiment of the present application. As shown in fig. 4, the construction of the control system may be realized through steps S21 to S24.
Step S21: and determining a master controller and a slave controller which can be used for networking based on the distributed soft bus.
The networking information includes a coding scheme, a modulation scheme, a communication rate, address code information, and the like, which are used for communication, and the present application is not limited thereto.
It should be noted that, the present application does not limit the object that issues the networking information, for example, the networking information may be issued by the host controller, the controller that does not participate in networking, and the cloud.
Referring specifically to fig. 5 to fig. 7, fig. 5 is a schematic view of a scenario in which a master controller issues networking information according to an embodiment of the present application; fig. 6 is a schematic view of a scenario in which a controller that does not participate in networking issues networking information according to an embodiment of the present application; fig. 7 is a schematic view of a scenario in which networking information is sent by a cloud end according to an embodiment of the present application.
As shown in fig. 5, networking information may be issued by the host controller. Specifically, any one of the control systems can be designated as the main controller, and then the main controller issues networking information for itself and other controllers to be networked. As shown in fig. 6, networking information may be issued by a controller that does not participate in networking. Specifically, the controllers not participating in the networking may issue networking information to the controllers participating in the networking. As shown in fig. 7, networking information may be delivered by the cloud. That is, the cloud directly transmits networking information to the controller to be networked, or the controller to be networked actively acquires the networking information from the cloud, which is not defined in the application
In addition, the master and slave controllers available for networking may also be determined based on the distributed soft bus. Wherein, the master controller can actively establish connection with the slave controller.
In the embodiment of the application, networking information can be acquired, and a master controller and a slave controller are determined to be used for realizing networking among the controllers.
Step S22: and carrying out network configuration on the master controller and the slave controllers based on the networking information.
After the networking information is obtained, network configuration can be performed on the networking controller based on the networking information. It can be understood that the master controller is configured by the network to enable the slave controller to perform the next networking step.
Step S23: after the master controller and the slave controller find each other, a networking request is sent to the slave controller through the master controller.
In particular, the master controller and the slave controller may rely on a distributed soft bus to implement mutual discovery between the two. The distributed soft bus mainly adopts WiFi P2P technology, so that the slave controller can be directly connected with the master controller equipment. Further, the mutual discovery process between the slave controller and the master controller based on the distributed soft bus is mainly divided into two steps: the first step is to let other controllers find themselves by sending specific packets to other controllers, and the second step is to let itself receive specific packets sent by other controllers so as to realize that other controllers are found by itself. In the process, the master controller and the slave controller can switch back and forth between a monitoring state and a device sending state, so that the self device can be found.
Further, after the master controller and the slave controller discover each other, a networking request can be sent to the slave controller by the master controller for networking.
Optionally, after the master controller and the slave controller discover each other, sending, by the master controller, a networking request to the slave controller, including: after the master controller and the slave controller are discovered mutually, authenticating the controller through the master controller; and sending a networking request to the slave controller after the authentication operation is passed through the master controller.
Alternatively, after the master controller and the slave controller discover each other, the unique NETWORK ID (NETWORK identification code) of the master controller and the slave controller may be registered with the distributed soft bus by constructing a KV string, and submit own device attribute information. After the distributed soft bus receives the information, the received KV character string can be analyzed to carry out authentication judgment, and a networking request is sent to the slave controller after the authentication operation is passed through the master controller, so that networking is realized.
It should be noted that, to ensure the uniqueness of the NETWORK ID, the NETWORK ID of the device may be a UUID (Universally Unique Identifier, universal unique identification code) generated randomly.
In the embodiment of the application, the network configuration can be performed on the master controller and the slave controller based on networking information. And further, after the master controller and the slave controller find each other, a networking request is sent to the slave controller through the master controller for networking. In addition, the authentication operation can be carried out on the controller through the main controller, so that the safety and reliability in the networking process are improved.
Step S24: after receiving the networking request from the controller, the connection between the master controller and the slave controller is established to construct the control system.
It can be understood that after receiving the networking request from the controller, the connection between the master controller and the slave controller can be established, so that the networking of the master controller and the slave controller is realized, i.e. the control system is constructed.
In the embodiment of the application, the network configuration can be performed on the networked controllers based on the networking information, and then after the master controller and the slave controllers are discovered mutually, a networking request is sent to the slave controllers through the master controller. Thus, after the controller receives the networking request, the connection between the master controller and the slave controller is established to construct the control system. Because the networking process is realized based on the distributed soft bus, unified networking and topology management capabilities of the controller are provided, and therefore high-efficiency networking efficiency is realized.
Optionally, please continue to refer to fig. 8 to fig. 9, fig. 8 is a schematic step diagram of another device control method according to an embodiment of the present application; fig. 9 is a schematic view of a scenario of the device control method shown in fig. 8. As shown in fig. 8, in the case where the operation mode is the first operation mode, the construction of a new control system can be achieved through steps S31 to S32.
Step S31: and when the controller of the controlled element fails, determining a new controller positioned in a communication range corresponding to the preset area.
Specifically, on the basis of the first working mode, when the controller of the controlled element such as the controller needs to be maintained or replaced fails, a new controller in a communication range corresponding to the preset area can be determined. Wherein the new controller can be used to control the controlled element.
Step S32: networking the new controller with other controllers in a preset area to construct a new control system.
Specifically, the new controller and other controllers in the preset area can be networked again to construct a new control system. It can be appreciated that the new controller in the new control system can control the controlled element, and the controlled element can only be networked with the new controller. The risk of simultaneous control by multiple controllers is avoided.
In the embodiment of the application, when the controller of the controlled element fails in the first working mode, a new controller can be networked with other controllers to construct a new control system. Therefore, the new controller can control the controlled element to work without replacing the controlled element or maintaining the failed controller, and the use experience of a user is improved.
Optionally, referring to fig. 10, fig. 10 is a schematic step diagram of another device control method according to an embodiment of the present application. As shown in fig. 10, in the case where the operation mode is the second operation mode, the construction of a new control system can be achieved through steps S41 to S42.
Step S41: and determining a new controller positioned in a communication range corresponding to the preset area.
Specifically, when a new controller is required, a new controller positioned in a communication range corresponding to the preset area can be determined. The new controller is used for controlling the controlled elements of the new controller and the controllers of other devices at the same time.
Step S42: networking the new controller with other controllers in a preset area to construct a new control system.
Specifically, the new controller and other controllers in the preset area can be networked again to construct a new control system. It will be appreciated that the new controller in the new control system can control the controlled elements, and that the controllers of the other devices as well as the new controller can simultaneously control the controlled elements.
In this embodiment of the present application, in the second working mode, when a new controller is required, a new controller positioned in a communication range corresponding to the preset area may be determined. And networking the new controller with other controllers to construct a new control system. Therefore, the multiple controllers can control the controlled elements, the flexibility of the control system is improved, and the failure of controlling the controlled elements caused by the abnormality of a single controller can be avoided.
Referring to fig. 11, fig. 11 is a schematic block diagram of an apparatus control device according to an embodiment of the present application. The device control apparatus may be configured in a server for executing the aforementioned device control method.
As shown in fig. 11, the device control apparatus 200 includes: networking module 201, working mode configuration module 202, control module 203.
The networking module 201 is configured to perform networking on the controllers of the plurality of devices in the preset area, construct the control system, and connect the controllers of the plurality of devices after networking through a distributed soft bus;
an operation mode configuration module 202, configured to configure operation modes for a plurality of controllers of the control system, where the operation modes at least include a first operation mode and a second operation mode, the first operation mode is that a controller of the device controls a controlled element thereof, and the second operation mode is that a controller of other devices and a controller of the device simultaneously control the controlled element thereof;
and the control module 203 is used for controlling the controlled element of each device to work according to the configured working mode.
The networking module 201 is further configured to obtain networking information, and determine a master controller and a slave controller that are available for networking based on the distributed soft bus; performing network configuration on the master controller and the slave controllers based on the networking information; after the master controller and the slave controller find each other, sending a networking request to the slave controller through the master controller; after the slave controller receives the networking request, connection between the master controller and the slave controller is established to construct the control system.
The networking module 201 is further configured to perform an authentication operation on the slave controller through the master controller after the master controller and the slave controller find each other; and sending a networking request to the slave controller after the authentication operation is passed through the master controller.
The networking module 201 is further configured to determine a new controller located in a communication range corresponding to the preset area when the controller of the controlled element fails, where the new controller is used to control the controlled element; and networking the new controller with other controllers in the preset area to construct a new control system.
The networking module 201 is further configured to determine a new controller located in a communication range corresponding to the preset area, where the new controller is configured to control the controlled element of the new controller and the controller of the other device at the same time; and networking the new controller with other controllers in the preset area to construct a new control system.
It should be noted that, for convenience and brevity of description, specific working processes of the above-described apparatus and each module, unit may refer to corresponding processes in the foregoing method embodiments, which are not repeated herein.
The methods and apparatus of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
By way of example, the methods, apparatus described above may be implemented in the form of a computer program that is executable on a device such as that shown in fig. 12.
Referring to fig. 12, fig. 12 is a schematic block diagram of an apparatus according to an embodiment of the present application.
As shown in fig. 12, the apparatus includes a controller including a processor, a memory, and a network interface connected through a system bus, and a controlled element controlled by the controller, wherein the memory may include a volatile storage medium, a nonvolatile storage medium, and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions which, when executed, cause a processor to perform the steps of any of the device control methods.
The processor is used to provide computing and control capabilities to support the operation of the entire device.
The internal memory provides an environment for the execution of a computer program in a non-volatile storage medium that, when executed by a processor, causes the processor to perform the steps of any of the device control methods.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure of the apparatus is merely a block diagram of some of the structures associated with the aspects of the present application and is not limiting of the apparatus to which the aspects of the present application may be applied, and that a particular apparatus may include more or less components than those shown, or may combine some of the components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in some embodiments the processor is configured to run a computer program stored in the memory to implement the steps of: networking controllers of a plurality of devices in the preset area to construct the control system, wherein the controllers of the plurality of devices after networking are connected through a distributed soft bus; the method comprises the steps that a working mode is configured for a plurality of controllers of the control system, wherein the working mode at least comprises a first working mode and a second working mode, the first working mode is that a controller of the equipment controls a controlled element of the first working mode, and the second working mode is that the controllers of other equipment and the controller of the equipment simultaneously control the controlled element of the second working mode; and controlling the controlled element of each device to work according to the configured working mode.
In some embodiments, the processor is further configured to obtain networking information, and determine a master controller and a slave controller available for networking based on the distributed soft bus; performing network configuration on the master controller and the slave controllers based on the networking information; after the master controller and the slave controller find each other, sending a networking request to the slave controller through the master controller; after the slave controller receives the networking request, connection between the master controller and the slave controller is established to construct the control system.
In some embodiments, the processor is further configured to perform an authentication operation on the slave controller by the master controller after the master controller and the slave controller find each other; and sending a networking request to the slave controller after the authentication operation is passed through the master controller.
In some embodiments, the processor is further configured to register device information to the distributed soft bus by constructing KV strings after the master controller and the slave controller discover each other, where the device information includes a NETWORK ID and device attribute information;
and after the distributed soft bus receives the equipment information, carrying out authentication judgment on the equipment information, and sending a networking request to a slave controller after authentication operation is passed through the master controller.
In some embodiments, the processor is further configured to determine a new controller located in a communication range corresponding to the preset area when the controller of the controlled element fails, where the new controller is configured to control the controlled element; and networking the new controller with other controllers in the preset area to construct a new control system.
In some embodiments, the processor is further configured to determine a new controller located in a communication range corresponding to the preset area, where the new controller is configured to control the controlled element of the new controller and the controller of the other device at the same time; and networking the new controller with other controllers in the preset area to construct a new control system.
The embodiment of the application also provides a computer readable storage medium, and a computer program is stored on the computer readable storage medium, and the computer program includes program instructions, and when the program instructions are executed, the program instructions implement the steps of any one of the device control methods provided in the embodiment of the application.
The computer readable storage medium may be an internal storage unit of the device according to the foregoing embodiment, for example, a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the device.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. The device control method is characterized in that the device control method adopts a control system arranged in a preset area, the control system comprises a plurality of devices, the devices comprise controllers and controlled elements controlled by the controllers, the controllers are provided with operation systems with preset levels, and the controller of any one device can be in communication connection with the controllers of other devices through a distributed soft bus; the device control method comprises the following steps:
networking controllers of a plurality of devices in the preset area to construct the control system, wherein the controllers of the plurality of devices after networking are connected through a distributed soft bus;
the method comprises the steps that a working mode is configured for a plurality of controllers of the control system, wherein the working mode at least comprises a first working mode and a second working mode, the first working mode is that a controller of the equipment controls a controlled element of the first working mode, and the second working mode is that the controllers of other equipment and the controller of the equipment simultaneously control the controlled element of the second working mode;
and controlling the controlled element of each device to work according to the configured working mode.
2. The device control method according to claim 1, wherein the networking the controllers of the plurality of devices in the preset area, and constructing the control system, includes:
acquiring networking information, and determining a master controller and a slave controller which can be used for networking based on a distributed soft bus;
performing network configuration on the master controller and the slave controllers based on the networking information;
after the master controller and the slave controller find each other, sending a networking request to the slave controller through the master controller;
after the slave controller receives the networking request, connection between the master controller and the slave controller is established to construct the control system.
3. The method according to claim 2, wherein the issuing, by the master controller, a networking request to the slave controller after the master controller and the slave controller find each other, includes:
after the master controller and the slave controller find each other, the slave controller is subjected to authentication operation through the master controller;
and sending a networking request to the slave controller after the authentication operation is passed through the master controller.
4. The method of claim 2, wherein the networking information is issued by the master controller, a controller not participating in networking, or a cloud.
5. The method according to claim 2, wherein the issuing, by the master controller, a networking request to the slave controller after the master controller and the slave controller find each other, includes:
after the master controller and the slave controller find each other, registering equipment information to the distributed soft bus respectively by constructing KV character strings, wherein the equipment information comprises NETWORK ID and equipment attribute information;
and after the distributed soft bus receives the equipment information, carrying out authentication judgment on the equipment information, and sending a networking request to a slave controller after authentication operation is passed through the master controller.
6. The method of claim 1, wherein the networked controllers of the plurality of devices are connected by a distributed soft bus, comprising: the controller of any one of the devices after networking can be in communication connection with the controllers of other of the devices through a plurality of communication links, wherein the plurality of communication links comprise a WiFi communication link, a BR communication link and a BLE communication link.
7. The method of claim 1, wherein the operating mode is a first operating mode, the method further comprising:
when the controller of the controlled element fails, determining a new controller positioned in a communication range corresponding to the preset area, wherein the new controller is used for controlling the controlled element;
and networking the new controller with other controllers in the preset area to construct a new control system.
8. The method of claim 1, wherein the operating mode is a second operating mode, the method further comprising:
determining a new controller positioned in a communication range corresponding to the preset area, wherein the new controller is used for controlling controlled elements of the new controller, the controller of other equipment and the new controller at the same time;
and networking the new controller with other controllers in the preset area to construct a new control system.
9. The method of claim 1, wherein the device comprises at least one of a refrigerator, a smart light, an air conditioner, and a television, the controller is a control unit of the refrigerator, the smart light, the air conditioner, and the television, and the controlled elements comprise elements of the refrigerator, the smart light, the air conditioner, and the television that are controlled by the control unit.
10. A device control apparatus, characterized in that the device control apparatus comprises:
the networking module is used for networking controllers of a plurality of devices in the preset area, constructing the control system and connecting the networked controllers of the plurality of devices through a distributed soft bus;
the working mode configuration module is used for configuring working modes for a plurality of controllers of the control system, the working modes at least comprise a first working mode and a second working mode, the first working mode is that a controller of the equipment controls a controlled element of the first working mode, and the second working mode is that the controllers of other equipment and the controller of the equipment simultaneously control the controlled element of the second working mode;
and the control module is used for controlling the controlled element of each device to work according to the configured working mode.
11. An apparatus comprising a controller and a controlled element controlled by the controller, the controller comprising: a memory and a processor; wherein the memory is connected to the processor for storing a program, and the processor is configured to implement the steps of the device control method according to any one of claims 1 to 9 by running the program stored in the memory.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to implement the steps of the device control method according to any one of claims 1 to 9.
CN202310289627.2A 2023-03-16 2023-03-16 Device control method, device control apparatus, device, and storage medium Pending CN116430756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310289627.2A CN116430756A (en) 2023-03-16 2023-03-16 Device control method, device control apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310289627.2A CN116430756A (en) 2023-03-16 2023-03-16 Device control method, device control apparatus, device, and storage medium

Publications (1)

Publication Number Publication Date
CN116430756A true CN116430756A (en) 2023-07-14

Family

ID=87093516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310289627.2A Pending CN116430756A (en) 2023-03-16 2023-03-16 Device control method, device control apparatus, device, and storage medium

Country Status (1)

Country Link
CN (1) CN116430756A (en)

Similar Documents

Publication Publication Date Title
US10791193B2 (en) Remote access gateway configurable control system
US11811903B2 (en) Distributed dynamic architecture for error correction
JP6318308B2 (en) LED lighting device, wireless network, and control method thereof
US9920948B2 (en) Asynchronous reporting system
US8190275B2 (en) Peer-to-peer home automation management
US9980352B2 (en) Wireless light pairing, dimming and control
US10284499B2 (en) Dedicated control path architecture for systems of devices
CN113170581A (en) Internet of things modular system
US9806900B2 (en) Wireless provisioning and configuring of hardware elements of a home automation system
US12001255B2 (en) Persistent Power over Ethernet
CN113778463B (en) Business service deployment method and device
CN116430756A (en) Device control method, device control apparatus, device, and storage medium
JP6589516B2 (en) Information processing device
TW201408885A (en) System and method for controlling sharing of fans
CN112596763A (en) Method, device and equipment for wireless upgrading of intelligent household equipment
US11310319B1 (en) Computing architecture for hierarchical control of network addressable devices
CN111698138B (en) Intelligent equipment gateway and data communication method thereof
KR102566970B1 (en) Mesh type network iot service system
CN104267681A (en) Intelligent device information interaction system and method
CN106170022B (en) Distributed multimedia sensor control system
CN114760615A (en) Connection establishment method, device, equipment and storage medium of Bluetooth 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