CN113572816B - Equipment control processing method and device, storage medium and electronic device - Google Patents

Equipment control processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113572816B
CN113572816B CN202110721935.9A CN202110721935A CN113572816B CN 113572816 B CN113572816 B CN 113572816B CN 202110721935 A CN202110721935 A CN 202110721935A CN 113572816 B CN113572816 B CN 113572816B
Authority
CN
China
Prior art keywords
equipment
internet
control
list
attribute
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110721935.9A
Other languages
Chinese (zh)
Other versions
CN113572816A (en
Inventor
孙云健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110721935.9A priority Critical patent/CN113572816B/en
Publication of CN113572816A publication Critical patent/CN113572816A/en
Application granted granted Critical
Publication of CN113572816B publication Critical patent/CN113572816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a device control processing method, a device, a storage medium and an electronic device, wherein the method comprises the following steps: the equipment list and the equipment attribute state of one or more internet of things equipment are acquired through the equipment control middleware arranged on the target equipment, the equipment control middleware is used for controlling the one or more internet of things equipment, the problems that the equipment function can not be configured, continuous compiling and publishing are required, and the flexibility is insufficient due to the fact that the equipment function can not be realized, the equipment control in the interactive terminal is decoupled through the equipment control middleware added in the equipment, the state of the internet of things equipment is uniformly managed through the equipment control middleware, and the equipment control is more flexible are solved.

Description

Equipment control processing method and device, storage medium and electronic device
Technical Field
The present application relates to the field of communications, and in particular, to a device control processing method, a device, a storage medium, and an electronic apparatus.
Background
Smart home (home automation) refers to remote control through a specific interaction device. The equipment accessed to the home network is generally controlled in various modes such as sound control, a panel, a magic mirror, a television, a mobile phone and the like, and the local and remote intelligent control is realized.
The internet of things equipment is rich and various, and the function update frequency is high, and in order to satisfy the quick iteration demand of business, the related technology of dynamization must be used for, and current scheme generally has:
a cross-platform scheme is adopted, and is represented by reaction-native. And dynamically generating the function of the equipment detail page by generating and analyzing the JS bundle resource package. When the component is rendered, the generated JS bundle resource package needs to be resolved into the active component, but a great deal of system resources are consumed certainly. And compatibility problems are serious.
The hot update is realized through the super APP (Application), and the purpose of dynamic update is realized through continuously downloading and replacing the compiled file. Because the configurable equipment functions cannot be realized, continuous compiling and publishing are required, and the flexibility is not enough.
Aiming at the problems that in the related art, hot update is realized through the super APP, continuous compiling and publishing are required due to the fact that the configurable equipment functions cannot be realized, and the flexibility is insufficient, no solution is proposed yet.
Disclosure of Invention
The embodiment of the application provides a device control processing method, a device, a storage medium and an electronic device, which at least solve the problems that in the related art, thermal update is realized through a super APP, and continuous compiling and publishing are required and flexibility is insufficient because the configurable device functions cannot be realized.
According to an embodiment of the present application, there is provided an apparatus control processing method applied to an APP, including:
acquiring a device list and a device attribute state of one or more internet of things devices through a device control middleware arranged on target devices;
and controlling the one or more internet of things devices through the device control middleware.
Optionally, the controlling, by the device control middleware, the one or more internet of things devices includes:
under the condition that the current resource package is the latest version, analyzing the current resource package to obtain a description file of a device list and function details;
generating a device function component according to the description file;
displaying a device list and a device attribute state of the one or more internet of things devices in the device function component;
and based on the equipment functional component, sending a control instruction to the one or more internet of things equipment through the equipment control middleware, wherein the control instruction carries equipment identifiers of the one or more internet of things equipment for control.
Optionally, exposing the device list and the device attribute status of the one or more internet of things devices in the device function component includes:
binding the equipment function component with the equipment attribute state;
acquiring a device attribute state value of the device attribute state through the attribute name in the description file;
and displaying the equipment attribute state on the equipment function component according to the equipment attribute state value.
Optionally, exposing the device list and the device attribute status of the one or more internet of things devices in the device function component includes:
acquiring the type of the equipment functional component;
determining an interaction mode of the equipment functional component according to the type of the equipment functional component;
and displaying the equipment list and the equipment attribute state of the one or more internet of things equipment on the equipment functional component according to the interaction mode of the equipment functional component.
Optionally, in the case that the current resource package is the latest version, before the current resource package is parsed to obtain the description file of the device list and the description file of the function details, the method further includes:
acquiring version information of the current resource package;
the version information is sent to a server;
and receiving confirmation information sent after the server determines that the current resource package is the latest version according to the version information.
Optionally, the obtaining, by the device control middleware provided to the target device, the device list and the device attribute status of the one or more internet of things devices includes:
a remote application programming interface (Application Programming Interface, abbreviated API) subscribed to the device control middleware;
and acquiring the device list and the device attribute state of the one or more internet of things devices acquired by the device control middleware through a device software development kit (Software Development Kit, abbreviated as SDK) through the remote API.
According to another embodiment of the present application, there is also provided an apparatus control processing device applied to an APP, including:
the first acquisition module is used for acquiring equipment lists and equipment attribute states of one or more internet of things equipment through equipment control middleware arranged on target equipment;
and the control module is used for controlling the one or more internet of things devices through the device control middleware.
Optionally, the control module includes:
the analysis sub-module is used for analyzing the current resource package to obtain a description file of the equipment list and the function details under the condition that the current resource package is the latest version;
a generating sub-module for generating a device function component according to the description file;
a display sub-module, configured to display a device list and a device attribute status of the one or more internet of things devices in the device function component;
and the sending submodule is used for sending a control instruction to the one or more internet of things devices through the device control middleware based on the device functional component, wherein the control instruction carries device identifiers of the one or more internet of things devices for control.
Optionally, the display submodule includes:
a binding unit, configured to bind the device function component with the device attribute state;
a first obtaining unit, configured to obtain an equipment attribute state value of the equipment attribute state through an attribute name in the description file;
and the first display unit is used for displaying the equipment attribute state on the equipment function component according to the equipment attribute state value.
Optionally, the display submodule includes:
a second obtaining unit, configured to obtain a type of the device function component;
a determining unit, configured to determine an interaction manner of the device function component according to a type of the device function component;
and the second display unit is used for displaying the equipment list and the equipment attribute state of the one or more internet of things equipment on the equipment functional component according to the interaction mode of the equipment functional component.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring version information of the current resource package;
the sending module is used for sending the version information to a server;
and the receiving module is used for receiving the confirmation information sent after the server determines that the current resource package is the latest version according to the version information.
Optionally, the first acquisition module includes:
a subscription sub-module for subscribing to a remote API of the device control middleware;
and the acquisition sub-module is used for acquiring the equipment list and the equipment attribute state of the one or more internet of things equipment acquired by the equipment control middleware through the equipment SDK through the remote API.
According to a further embodiment of the application, there is also provided a computer-readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, the device list and the device attribute state of one or more Internet of things devices are obtained through the device control middleware arranged on the target device; the equipment control middleware is used for controlling the one or more internet of things equipment, so that the problems that the equipment function is configurable, continuous compiling and publishing are required, and the flexibility is insufficient due to the fact that the equipment function cannot be realized in the related technology, the equipment control middleware added in the equipment is used for realizing decoupling of equipment control in the interactive terminal, the state of the internet of things equipment is uniformly managed through the equipment control middleware, and the equipment control is more flexible are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal of a device control processing method according to an embodiment of the present application;
fig. 2 is a flowchart of a device control processing method according to an embodiment of the present application;
FIG. 3 is a flow chart of a device control middleware acquiring a device list and a device status according to an embodiment of the present application;
FIG. 4 is a flow chart of device resource package loading according to an embodiment of the application;
FIG. 5 is a schematic diagram of generating device UI functional components according to an embodiment of the application;
fig. 6 is a block diagram of a device control processing apparatus according to an embodiment of the present application.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
Example 1
The method according to the first embodiment of the present application may be implemented in a mobile terminal, a computer terminal or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an embodiment of the present application, where, as shown in fig. 1, the mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for communication functions and an input/output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a device control processing method in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, to implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network INterface CoNtroller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio FrequeNcy (RF) module, which is configured to communicate with the internet wirelessly.
Based on the above mobile terminal or network architecture, in this embodiment, a device control processing method is provided, fig. 2 is a flowchart of a device control processing method according to an embodiment of the present application, as shown in fig. 2, applied to APP, where the flowchart includes the following steps:
step S202, obtaining a device list and a device attribute state of one or more Internet of things devices through a device control middleware arranged on a target device;
in the embodiment of the present application, the step S202 may specifically include: subscribing to a remote API of the device control middleware; the device list and the device attribute state of the one or more internet of things devices acquired by the device control middleware through the device SDK are acquired through the remote API, the physical device and the target device are arranged in a local area network, and the physical device and the target device can be a mesh network, and a mesh module is respectively arranged in the target device and the physical device, so that data interaction can be carried out between the physical devices.
Step S204, the device control middleware controls the one or more Internet of things devices.
Through the steps S202 to S204, the device list and the device attribute status of one or more internet of things devices are obtained through the device control middleware provided in the target device; the equipment control middleware is used for controlling the one or more internet of things equipment, so that the problems that the equipment function is configurable, continuous compiling and publishing are required, and the flexibility is insufficient due to the fact that the equipment function cannot be realized in the related technology, the equipment control middleware added in the equipment is used for realizing decoupling of equipment control in the interactive terminal, the state of the internet of things equipment is uniformly managed through the equipment control middleware, and the equipment control is more flexible are solved.
In the embodiment of the present application, the step S204 may specifically include:
s2041, under the condition that the current resource package is the latest version, analyzing the current resource package to obtain a description file of a device list and function details;
s2042, generating a device function component according to the description file;
s2043, displaying a device list and device attribute states of the one or more Internet of things devices in the device function component;
in an embodiment, the step S2043 may specifically include: binding the device function component with the device attribute state; acquiring a device attribute state value of the device attribute state through the attribute name in the description file; the device attribute status is presented on the device functional component according to the device attribute status value.
In another embodiment, the step S2043 may specifically include: acquiring the type of the functional component of the equipment; determining an interaction mode of the equipment functional component according to the type of the equipment functional component; and displaying the device list and the device attribute state of the one or more internet of things devices on the device functional component according to the interaction mode of the device functional component.
S2044, based on the equipment functional component, sending a control instruction to the one or more internet of things equipment through the equipment control middleware, wherein the control instruction carries equipment identifiers of the one or more internet of things equipment for control.
In an optional embodiment, under the condition that the current resource package is the latest version, analyzing the current resource package, and acquiring version information of the current resource package before obtaining a description file of the equipment list and a description file of the function details; transmitting the version information to a server; and receiving confirmation information sent by the server after determining that the current resource packet is the latest version according to the version information.
In the embodiment of the application, the equipment control middleware is a service engine for equipment data exchange between the terminal system and the application, and outputs equipment state information to the front-end business scene. The middleware includes the basic capability to obtain home information and exchange data with devices. At the time of acquiring device list
After the equipment is successfully connected, the equipment list and the related information of the equipment are notified through the remote call API
Giving a front end APP; and the information reported or pushed by the equipment is sent to the information management module and is processed to pop the window according to a certain strategy to remind the user. Fig. 3 is a flowchart of a device control middleware acquiring a device list and a device status according to an embodiment of the present application, as shown in fig. 3, including:
step S301-S302, configuring user information and finishing initialization of middleware.
S303, acquiring a family list, wherein the equipment under different family member accounts have differences, and current family control equipment is required to be acquired.
S304, initializing devices sdk and sdk to perform data interaction with the IOT cloud service, reporting the changed device state to the IOT cloud service, pushing the current latest state of the device to device sdk by the IOT cloud service, providing an interface for changing the device attribute state by device sdk, and obtaining the latest state of the device from the interface by the device control middleware.
S305-S307, a device list is obtained, and the latest device attribute state of the device is obtained by monitoring the change of the device attribute state, including the device state (online-offline), attribute change, alarm information and the like.
S307, the device control middleware completes loading of the device list and synchronization of the device attribute states and opens the device list to the front-end APP through the remote call interface.
The front-end APP subscribes to the state of the device, and sends control instructions and updates the device attribute state of the device through an interface of the device control middleware.
And S308, the middleware receives push messages of the server and the equipment and uniformly manages a message list through a message module.
The front-end APP flexibly displays the UI of the device list and the device detail page through the resource and the componentization of the device function UI, and comprises a device list description file and a device function detail description file. The device list description file defines the attribute state to be displayed by each device, and the device detail description file defines richer functional components including a read-only attribute component, a switch attribute component and a stepping component (generally refers to the attribute regulated within a certain value range, such as the set temperature of a water heater, etc.), and finally, the device list and the UI component of the device detail are generated through a resource package analyzer. The description file should be able to describe the properties of the clear device in principle, and the specific format may be json or xml, etc. FIG. 4 is a flow chart of device resource package loading, as shown in FIG. 4, according to an embodiment of the application, including:
s401, after the APP is initialized, judging whether the current resource package is the latest version, executing the step S402 if the judging result is negative, and executing the step S404 if the judging result is positive;
S402-S403, updating the resource package and caching the disk;
s404, analyzing the resource package, and then executing steps S405 and S407 simultaneously;
S405-S406, starting a device card container to acquire a device card list (namely the device list);
s407, starting a device detail container;
s408, device function details (i.e., the above-described device attribute status) are acquired.
The writing of the description file of the equipment component can conform to the standard of equipment template specification, and can reflect the name and type of equipment attribute to be displayed, such as switch attribute, read-only attribute, time temperature and other stepping attributes. And publishing the description file of the device component to the server. One simple device attribute description example is as follows: the attrName needs to be consistent with the attribute name of the device, and indicates the attribute state of the device to be displayed by the component; the type judgment is a control type of the attribute; defaultValue default or null; value range of valueRange device attributes:
and opening the device control APP to complete the related initialization operation, subscribing the remote API of the middleware, and acquiring the latest device list and device attribute state.
And checking whether the current resource package is the latest version, and if not, requesting and loading the equipment component resource package according to the equipment information to ensure that the equipment component resource package is the latest version.
Analyzing a device resource package to obtain a device list and a description file of function details (namely, the set attribute state), generating a device function component through a UI container, wherein FIG. 5 is a schematic diagram of the generating device UI function component according to an embodiment of the application, as shown in FIG. 5, the related component of the device function needs to be bound with the attribute state of the device, and the device attribute state value of the middleware is obtained through the attribute name in the description file and is displayed on the generating device function component; the control device can be adjusted or read only depending on the type of the component. The device attribute state change of the middleware is notified to the subscribed APP, and the latest state value is updated to the corresponding device function component.
And the device control middleware for uniformly managing the state and the information of the Internet of things device provides interconnection capability of basic devices. The front-end application subscribes to device information through the remote API. And using the equipment template to resource the equipment list and the equipment detail page functional components, and realizing the dynamic access of the specific network device.
According to the embodiment of the application, the decoupling of the equipment control in the interactive terminal is realized by adding the middleware of the equipment control, the state and the notification message of the Internet of things equipment are uniformly managed, and meanwhile, the equipment is flexibly and quickly accessed by using the equipment template and the container on the premise of not sacrificing the performance.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
Example 2
In this embodiment, a device control processing apparatus is further provided, and this apparatus is used to implement the foregoing embodiments and preferred embodiments, and will not be described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 6 is a block diagram of a device control processing apparatus according to an embodiment of the present application, as shown in fig. 6, applied to an APP, including:
a first obtaining module 62, configured to obtain, through device control middleware provided in the target device, a device list and a device attribute status of one or more internet of things devices;
and a control module 64, configured to control the one or more internet of things devices through the device control middleware.
Optionally, the control module 64 includes:
the analysis sub-module is used for analyzing the current resource package to obtain a description file of the equipment list and the function details under the condition that the current resource package is the latest version;
a generating sub-module for generating a device function component according to the description file;
a display sub-module, configured to display a device list and a device attribute status of the one or more internet of things devices in the device function component;
and the sending sub-module is used for sending a control instruction to the one or more internet of things devices through the device control middleware based on the device functional component, wherein the control instruction carries the device identification of the one or more internet of things devices for control.
Optionally, the display submodule includes:
the binding unit is used for binding the equipment function component with the equipment attribute state;
a first obtaining unit, configured to obtain, by using an attribute name in the description file, an equipment attribute state value of the equipment attribute state;
and the first display unit is used for displaying the equipment attribute state on the equipment function component according to the equipment attribute state value.
Optionally, the display submodule includes:
a second obtaining unit, configured to obtain a type of the functional component of the device;
a determining unit, configured to determine an interaction mode of the device function component according to a type of the device function component;
and the second display unit is used for displaying the equipment list and the equipment attribute state of the one or more internet of things equipment on the equipment functional component according to the interaction mode of the equipment functional component.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring version information of the current resource package;
the sending module is used for sending the version information to the server;
and the receiving module is used for receiving the confirmation information sent after the server determines that the current resource package is the latest version according to the version information.
Optionally, the first obtaining module 62 includes:
a subscription sub-module for subscribing to a remote API of the device control middleware;
and the acquisition sub-module is used for acquiring the equipment list and the equipment attribute state of the one or more internet of things equipment acquired by the equipment control middleware through the equipment SDK through the remote API.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Example 3
An embodiment of the application also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, acquiring a device list and a device attribute state of one or more Internet of things devices through a device control middleware arranged on target devices;
s2, controlling the one or more internet of things devices through the device control middleware.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-ONly Memory (ROM), a random access Memory (RaNdom Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Example 4
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, acquiring a device list and a device attribute state of one or more Internet of things devices through a device control middleware arranged on target devices;
s2, controlling the one or more internet of things devices through the device control middleware.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (7)

1. A device control processing method applied to an application program APP, comprising:
acquiring the device list and the device attribute state of one or more internet of things devices through the device control middleware arranged on the target device, wherein the method comprises the following steps: subscribing to a remote API of the device control middleware; acquiring a device list and a device attribute state of the one or more internet of things devices acquired by the device control middleware through a device Software Development Kit (SDK) through the remote API;
controlling, by the device control middleware, the one or more internet of things devices, including: under the condition that the current resource package is the latest version, analyzing the current resource package to obtain a description file of a device list and function details; generating a device function component according to the description file; displaying a device list and a device attribute state of the one or more internet of things devices in the device function component; and based on the equipment functional component, sending a control instruction to the one or more internet of things equipment through the equipment control middleware, wherein the control instruction carries equipment identifiers of the one or more internet of things equipment for control.
2. The method of claim 1, wherein exposing the device list and device attribute status of the one or more internet of things devices in the device function component comprises:
binding the equipment function component with the equipment attribute state;
acquiring a device attribute state value of the device attribute state through the attribute name in the description file;
and displaying the equipment attribute state on the equipment function component according to the equipment attribute state value.
3. The method of claim 1, wherein exposing the device list and device attribute status of the one or more internet of things devices in the device function component comprises:
acquiring the type of the equipment functional component;
determining an interaction mode of the equipment functional component according to the type of the equipment functional component;
and displaying the equipment list and the equipment attribute state of the one or more internet of things equipment on the equipment functional component according to the interaction mode of the equipment functional component.
4. The method according to claim 1, wherein in case the current resource package is the latest version, before parsing the current resource package to obtain the description file of the device list and the description file of the function details, the method further comprises:
acquiring version information of the current resource package;
the version information is sent to a server;
and receiving confirmation information sent after the server determines that the current resource package is the latest version according to the version information.
5. A device control processing apparatus applied to an application APP, comprising:
the first acquisition module is used for acquiring equipment lists and equipment attribute states of one or more internet of things equipment through equipment control middleware arranged on target equipment;
the control module is used for controlling the one or more internet of things devices through the device control middleware;
the first acquisition module includes:
a subscription sub-module for subscribing to a remote API of the device control middleware;
the acquisition submodule is used for acquiring the equipment list and the equipment attribute state of the one or more internet of things equipment acquired by the equipment control middleware through the equipment SDK through the remote API;
the control module includes:
the analysis sub-module is used for analyzing the current resource package to obtain a description file of the equipment list and the function details under the condition that the current resource package is the latest version;
a generating sub-module for generating a device function component according to the description file;
a display sub-module, configured to display a device list and a device attribute status of the one or more internet of things devices in the device function component;
and the sending submodule is used for sending a control instruction to the one or more internet of things devices through the device control middleware based on the device functional component, wherein the control instruction carries device identifiers of the one or more internet of things devices for control.
6. A computer-readable storage medium, characterized in that the storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 4 when run.
7. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 4.
CN202110721935.9A 2021-06-28 2021-06-28 Equipment control processing method and device, storage medium and electronic device Active CN113572816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110721935.9A CN113572816B (en) 2021-06-28 2021-06-28 Equipment control processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110721935.9A CN113572816B (en) 2021-06-28 2021-06-28 Equipment control processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113572816A CN113572816A (en) 2021-10-29
CN113572816B true CN113572816B (en) 2023-10-24

Family

ID=78162917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110721935.9A Active CN113572816B (en) 2021-06-28 2021-06-28 Equipment control processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113572816B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114385287B (en) * 2021-12-13 2024-01-05 武汉慧联无限科技有限公司 Presentation content determining method, apparatus, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889585A (en) * 2019-02-01 2019-06-14 中电科仪器仪表有限公司 A kind of the operating status remote supervision system and method for electronic testing instrument
CN110531714A (en) * 2019-08-07 2019-12-03 广州怡港环保科技股份有限公司 A kind of wisdom street lamp back-stage management method, system, device and storage medium
CN110636136A (en) * 2019-10-11 2019-12-31 山东有人信息技术有限公司 Information interaction method for docking Internet of things cloud platform and middleware system
CN111371898A (en) * 2020-03-13 2020-07-03 北京锐安科技有限公司 Message monitoring method, device, equipment and storage medium
CN112416617A (en) * 2020-11-19 2021-02-26 青岛海尔科技有限公司 Control method and device of Bluetooth equipment, storage medium and electronic device
CN112433875A (en) * 2020-11-23 2021-03-02 京东数字科技控股股份有限公司 Middleware-based database operation method and device and terminal equipment
CN112559027A (en) * 2020-12-23 2021-03-26 平安银行股份有限公司 Method, system, device and readable storage medium for creating and managing functional components

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102133514B1 (en) * 2014-01-13 2020-07-13 삼성전자주식회사 Status message service providing method of electronic apparatus and electronic apparatus thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889585A (en) * 2019-02-01 2019-06-14 中电科仪器仪表有限公司 A kind of the operating status remote supervision system and method for electronic testing instrument
CN110531714A (en) * 2019-08-07 2019-12-03 广州怡港环保科技股份有限公司 A kind of wisdom street lamp back-stage management method, system, device and storage medium
CN110636136A (en) * 2019-10-11 2019-12-31 山东有人信息技术有限公司 Information interaction method for docking Internet of things cloud platform and middleware system
CN111371898A (en) * 2020-03-13 2020-07-03 北京锐安科技有限公司 Message monitoring method, device, equipment and storage medium
CN112416617A (en) * 2020-11-19 2021-02-26 青岛海尔科技有限公司 Control method and device of Bluetooth equipment, storage medium and electronic device
CN112433875A (en) * 2020-11-23 2021-03-02 京东数字科技控股股份有限公司 Middleware-based database operation method and device and terminal equipment
CN112559027A (en) * 2020-12-23 2021-03-26 平安银行股份有限公司 Method, system, device and readable storage medium for creating and managing functional components

Also Published As

Publication number Publication date
CN113572816A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN106897086A (en) Method, apparatus and system for upgraded machine people's operating system
CN111885115A (en) Equipment binding change method and device
CN111885594A (en) Equipment binding method and device
CN112073471A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN111885144A (en) Equipment binding method and device
CN113407157B (en) Object model determining method and device, storage medium and electronic device
CN113572816B (en) Equipment control processing method and device, storage medium and electronic device
CN113064685A (en) H5 page loading method and device
CN112202652A (en) Method and device for displaying information of equipment to be networked, storage medium and electronic device
CN111007733B (en) Method and device for integrating smart home terminal APP with smart device
CN111367685B (en) Interface calling method and device, computer equipment and storage medium
CN114327349B (en) Smart card determining method and device, storage medium and electronic device
CN112671572B (en) Method and device for intelligent equipment network distribution, storage medium and electronic device
CN113467832A (en) Equipment control processing method, device, storage medium and electronic device
CN112416617A (en) Control method and device of Bluetooth equipment, storage medium and electronic device
CN107888772B (en) Method, device and storage medium for determining configuration information
CN113190565B (en) Data updating method and device, storage medium and electronic device
CN113434233B (en) Interface jump method and device, storage medium and electronic device
CN111385110B (en) Network management method and device
CN113282622A (en) Information transmission method and apparatus, storage medium, and electronic apparatus
CN112651523A (en) Event determination method and device, storage medium and electronic device
CN112817593A (en) Control page display method and device, storage medium and electronic device
CN112671915A (en) Message pushing processing method and intelligent device
CN111209613A (en) Rapid design method and system of intelligent product
CN111030925A (en) Multi-gateway communication method and system based on remote procedure call

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant