CN112631705B - Method, device, system and readable storage medium for rendering device list of Internet of things - Google Patents

Method, device, system and readable storage medium for rendering device list of Internet of things Download PDF

Info

Publication number
CN112631705B
CN112631705B CN202011573084.XA CN202011573084A CN112631705B CN 112631705 B CN112631705 B CN 112631705B CN 202011573084 A CN202011573084 A CN 202011573084A CN 112631705 B CN112631705 B CN 112631705B
Authority
CN
China
Prior art keywords
internet
things
equipment
list
intelligent single
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
CN202011573084.XA
Other languages
Chinese (zh)
Other versions
CN112631705A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011573084.XA priority Critical patent/CN112631705B/en
Publication of CN112631705A publication Critical patent/CN112631705A/en
Application granted granted Critical
Publication of CN112631705B publication Critical patent/CN112631705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for rendering an Internet of things device list, which is applied to the field of Internet of things and comprises the following steps of: responding to an operation instruction of rendering the internet of things equipment list, and determining a target equipment list card to be rendered, wherein the target equipment list card is an equipment list card corresponding to the intelligent single-product equipment in the internet of things equipment list; requesting to obtain a customized magnetic patch of the intelligent single-product equipment from a cloud server, wherein the customized magnetic patch is a preset specific magnetic patch reflecting current operation information of the intelligent single-product equipment; and replacing the universal magnetic paste of the target device list card with the customized magnetic paste. The invention also discloses equipment, a system and a readable storage medium for rendering the equipment list of the Internet of things. The method and the system realize rendering of the Internet of things equipment list, generate customized target equipment list cards, and meanwhile decouple the relationship between the Internet of things equipment list and the intelligent single product, so that subsequent maintenance is facilitated, and user experience is optimized.

Description

Method, device, system and readable storage medium for rendering device list of Internet of things
Technical Field
The invention relates to the field of internet of things, in particular to an internet of things equipment list rendering method, equipment, a system and a readable storage medium.
Background
In the prior art, along with the rapid development of the internet of things communication technology, more and more intelligent single-product devices are added in the internet of things device group, a user manages the internet of things device group through a mobile terminal, but the internet of things device list in the existing mobile terminal has single function, can only simply control the internet of things device, and the intelligent single-product presentation mode of the internet of things device list is also single, and cannot effectively follow the state change of the internet of things device to dynamically react, so that the user experience is poor.
Disclosure of Invention
The invention mainly aims to provide a method for rendering an equipment list of the Internet of things, and aims to solve the technical problem that the prior art cannot realize.
In order to achieve the above object, the present invention provides a method for rendering a list of devices on the internet of things, including the following contents:
responding to an operation instruction of rendering the internet of things equipment list, and determining a target equipment list card to be rendered, wherein the target equipment list card is an equipment list card corresponding to intelligent single-product equipment in the internet of things equipment list;
requesting a cloud server to acquire a customized magnetic patch of the intelligent single-product equipment, wherein the customized magnetic patch is a preset customized magnetic patch reflecting current operation information of the intelligent single-product equipment;
And replacing the universal magnetic paste of the target device list card with the customized magnetic paste.
The method for rendering the target device list comprises the following steps of responding to an operation instruction for rendering the device list of the Internet of things, and before determining a target device list card step needing to be rendered, further comprises:
acquiring at least one piece of locally stored intelligent single-product equipment information pushed by an Internet of things management application program;
And using a universal magnetic paste as the device list card of the intelligent single-product device.
The step of determining the rendering target equipment list card to be performed in response to the operation instruction of rendering the internet of things equipment list, further comprises the steps of:
And acquiring an application uniform resource locator of the intelligent single-product equipment corresponding to the target equipment list card pushed by the Internet of things management application program, accessing the application uniform resource locator to acquire an object model of the intelligent single-product equipment, and analyzing the object model to acquire the operation information of the intelligent single-product equipment.
The step of requesting the cloud server to acquire the customized magnetic paste of the intelligent single-product equipment comprises the following steps:
initiating a request for acquiring the customized magnetic paste of the intelligent single-product equipment to the cloud server;
receiving a request response status code returned by the cloud server, wherein the response status of the request response status code is that the request is successful;
and receiving the customized magnetic paste of the real-time intelligent single-product equipment asynchronously transmitted back by the cloud server.
The step of requesting the cloud server to acquire the customized magnetic paste of the intelligent single-product equipment comprises the following steps:
initiating a request for acquiring the customized magnetic paste of the intelligent single-product equipment to the cloud server;
receiving a request response state code asynchronously returned by the cloud server, wherein the response state of the request response state code is a request failure;
and marking the equipment list card of the intelligent single product as a universal single product card, and stopping rendering the universal single product.
The step of requesting the cloud server to acquire the customized magnetic paste of the intelligent single-product equipment further comprises the following steps:
detecting the running state of the intelligent single-product equipment;
If the intelligent single product is in a starting state, requesting and acquiring the device list card customized animation file of the intelligent single product device from a cloud server;
And loading the customized animation file to render the device list card of the intelligent single-product device.
After the step of replacing the universal magnetic paste of the target equipment list card with the customized magnetic paste, the method further comprises the following steps:
And acquiring the MQTT information carrying the state information of the intelligent single-article equipment, which is transmitted by the management application program of the Internet of things, triggering the pre-subscribed event related to the intelligent single-article equipment information, transmitting the MQTT information to the corresponding target equipment list card, and re-rendering.
In addition, in order to achieve the above object, the present invention further provides an internet of things device list rendering device, including: the system comprises a memory, a processor and an Internet of things equipment list rendering program which is stored in the memory and can run on the processor, wherein the Internet of things equipment list rendering program realizes the steps of the Internet of things equipment list rendering method when being executed by the processor.
The invention also provides an Internet of things equipment list rendering system, which comprises:
The intelligent single-product equipment group is a plurality of intelligent single-product equipment which mutually form the Internet of things;
the WIFI module is used for analyzing the data reported by the intelligent single product in the intelligent single product equipment group, acquiring the state information of the intelligent single product equipment, or analyzing the operation instruction issued by the cloud server, translating and sending the operation instruction to the equipment;
The cloud server is used as a message agent in the Internet of things equipment list rendering system and used for issuing the MQTT message;
The Internet of things equipment list rendering equipment is provided with the Internet of things management application program and is used for acquiring the state information of the intelligent single-product equipment group and dynamically rendering the Internet of things equipment list;
the Internet of things device list rendering system realizes the steps of the Internet of things device list rendering method when executing.
The invention also provides a computer readable storage medium, on which an internet of things device list rendering program is stored, which when executed by a processor, implements the steps of the internet of things device list rendering method described above.
According to the method for rendering the Internet of things equipment list, provided by the embodiment of the invention, the target equipment list card required to be rendered is determined by responding to the operation instruction of rendering the Internet of things equipment list, wherein the target equipment list card is the equipment list card corresponding to the intelligent single-product equipment in the Internet of things equipment list; requesting a cloud server to acquire a customized magnetic patch of the intelligent single-product equipment, wherein the customized magnetic patch is a preset customized magnetic patch reflecting current operation information of the intelligent single-product equipment; and replacing the universal magnetic paste of the target device list card with the customized magnetic paste. The method and the system realize rendering of the Internet of things equipment list, enable the equipment list card of the Internet of things equipment list to be specially rendered and set according to specific intelligent single-product equipment, generate customized target equipment list card, meanwhile decouple the relation between the Internet of things equipment list and intelligent single-product, facilitate subsequent maintenance and optimize user experience.
Drawings
Fig. 1 is a schematic structural diagram of an internet of things device list rendering device of a hardware running environment according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of the present invention;
FIG. 3 is a flow chart of a second embodiment of the present invention;
FIG. 4 is a flow chart of a third embodiment of the present invention;
FIG. 5 is a flow chart of a fourth embodiment of the present invention;
FIG. 6 is a flow chart of a fifth embodiment of the present invention;
Fig. 7 is a schematic structural diagram of an internet of things device list rendering system of a hardware running environment according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: responding to an operation instruction of rendering the internet of things equipment list, and determining a target equipment list card to be rendered, wherein the target equipment list card is an equipment list card corresponding to intelligent single-product equipment in the internet of things equipment list; requesting a cloud server to acquire a customized magnetic patch of the intelligent single-product equipment, wherein the customized magnetic patch is a preset customized magnetic patch reflecting current operation information of the intelligent single-product equipment; and replacing the universal magnetic paste of the target device list card with the customized magnetic paste.
In the prior art, along with the rapid development of the internet of things communication technology, more and more intelligent single-product devices are added in the internet of things device group, a user manages the internet of things device group through a mobile terminal, but the internet of things device list in the existing mobile terminal has single function, can only simply control the internet of things device, and the intelligent single-product presentation mode of the internet of things device list is also single, and cannot effectively follow the state change of the internet of things device to dynamically react, so that the user experience is poor.
The invention provides a solution, wherein a target equipment list card to be rendered is determined by responding to an equipment list rendering operation instruction of the Internet of things, and the target equipment list card is an equipment list card corresponding to intelligent single-product equipment in an equipment list of the Internet of things; requesting a cloud server to acquire a customized magnetic patch of the intelligent single-product equipment, wherein the customized magnetic patch is a preset customized magnetic patch reflecting current operation information of the intelligent single-product equipment; and replacing the universal magnetic paste of the target device list card with the customized magnetic paste. The method and the system realize rendering of the Internet of things equipment list, enable the equipment list card of the Internet of things equipment list to be specially rendered and set according to specific intelligent single-product equipment, generate customized target equipment list card, meanwhile decouple the relation between the Internet of things equipment list and intelligent single-product, facilitate subsequent maintenance and optimize user experience.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an internet of things device list rendering device of a hardware running environment according to an embodiment of the internet of things device list rendering method of the present invention.
As shown in fig. 1, the internet of things device list rendering device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the device list rendering device of the internet of things may further include a tuning demodulator, a backhaul channel, an RF (Radio Frequency) circuit, a sensor, an audio circuit, and so on.
Those skilled in the art will appreciate that the hardware structure of the internet of things device list rendering device shown in fig. 1 does not constitute a limitation of the internet of things device list rendering device, and may include more or fewer components than shown in fig. 1, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an internet of things device list rendering program may be included in a memory 1005, which is one type of computer-readable storage medium. The operating system is a program for managing and controlling the application program of the device list rendering device of the Internet of things and supports the operation of the application program of the device list rendering device of the Internet of things.
In the hardware structure of the internet of things device list rendering device shown in fig. 1, the network interface 1004 is mainly used for accessing a network, the user interface 1003 is mainly used for receiving an operation instruction sent by a user, and the processor 1001 may be used for calling an internet of things device list rendering program stored in the memory 1005, and performing the following operations:
responding to an operation instruction of rendering the internet of things equipment list, and determining a target equipment list card to be rendered, wherein the target equipment list card is an equipment list card corresponding to intelligent single-product equipment in the internet of things equipment list;
requesting a cloud server to acquire a customized magnetic patch of the intelligent single-product equipment, wherein the customized magnetic patch is a preset customized magnetic patch reflecting current operation information of the intelligent single-product equipment;
And replacing the universal magnetic paste of the target device list card with the customized magnetic paste.
Further, the processor 1001 may call the internet of things device list rendering program in the memory 1005, and further perform the following operations:
acquiring at least one piece of locally stored intelligent single-product equipment information pushed by an Internet of things management application program;
And using a universal magnetic paste as the device list card of the intelligent single-product device.
Further, the processor 1001 may call the internet of things device list rendering program in the memory 1005, and further perform the following operations:
And acquiring an application uniform resource locator of the intelligent single-product equipment corresponding to the target equipment list card pushed by the Internet of things management application program, accessing the application uniform resource locator to acquire an object model of the intelligent single-product equipment, and analyzing the object model to acquire the operation information of the intelligent single-product equipment.
Further, the processor 1001 may call the internet of things device list rendering program in the memory 1005, and further perform the following operations:
initiating a request for acquiring the customized magnetic paste of the intelligent single-product equipment to the cloud server;
receiving a request response status code returned by the cloud server, wherein the response status of the request response status code is that the request is successful;
and receiving the customized magnetic paste of the real-time intelligent single-product equipment asynchronously transmitted back by the cloud server.
Further, the processor 1001 may call the internet of things device list rendering program in the memory 1005, and further perform the following operations:
initiating a request for acquiring the customized magnetic paste of the intelligent single-product equipment to the cloud server;
receiving a request response state code asynchronously returned by the cloud server, wherein the response state of the request response state code is request failure;
and marking the equipment list card of the intelligent single product as a universal single product card, and stopping rendering the universal single product.
Further, the processor 1001 may call the internet of things device list rendering program in the memory 1005, and further perform the following operations:
detecting the running state of the intelligent single-product equipment;
If the intelligent single product is in a starting state, requesting and acquiring the device list card customized animation file of the intelligent single product device from a cloud server;
And loading the customized animation file to render the device list card of the intelligent single-product device.
Further, the processor 1001 may call the internet of things device list rendering program in the memory 1005, and further perform the following operations:
And acquiring the MQTT information carrying the state information of the intelligent single-article equipment, which is transmitted by the management application program of the Internet of things, triggering and subscribing the event related to the intelligent single-article equipment information, transmitting the MQTT information to the corresponding equipment list card, and re-rendering.
Based on the hardware structure of the device list rendering device of the internet of things, various embodiments of the device list rendering method of the internet of things are provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of the method for rendering an internet of things device list according to the present invention.
The embodiment of the present application provides an embodiment of an internet of things device list rendering method, and it should be noted that, although a logic sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different sequence from that herein.
In this embodiment, the method for rendering the list of devices in the internet of things includes:
Step S10: responding to an operation instruction of rendering the device list of the Internet of things, and determining a target device list card needing to be rendered;
The internet of things is an application mode for carrying out information interaction and connection between emerging users and intelligent single-article equipment and between intelligent single-article equipment and intelligent single-article equipment, which are rapidly developed based on popularization of information technology. A user can remotely control a plurality of intelligent single-product devices in the Internet of things through an Internet of things management application program installed on the mobile terminal. The intelligent single-product equipment in the Internet of things can also acquire operation instructions of the user through communication modes such as a WIFI module and the like, and perform corresponding operations according to the operation instructions of the user. In a specific embodiment, the intelligent single-product device comprises an intelligent door lock, a user remotely issues an unlocking instruction to the intelligent door lock through an intelligent terminal, the intelligent door lock is accessed to a network through WIFI, the unlocking instruction sent by the user is obtained, and corresponding unlocking operation is executed.
Optionally, the user can generate an internet of things device list on the intelligent terminal, where the internet of things device list is a list formed by combining device list cards corresponding to all intelligent single-product devices in the internet of things built by the user based on REACT NATIVE (hybrid mobile application development framework), and the intelligent single-product devices in the internet of things can be acquired by performing information interaction with an internet of things management application program, and a control command is sent to the intelligent single-product devices in the internet of things through the internet of things management application program to control the intelligent single-product devices to execute corresponding operations.
Optionally, after the mobile terminal with the internet of things management application program is started by a user, accessing to the internet through a WIFI, cellular communication network or other network connection modes, the internet of things management application program background downloads an object model of the intelligent single-product device interconnected in the internet of things, and obtains the function and the running state of the intelligent single-product device interconnected in the internet of things. The object model is a digital representation of entity equipment in a reflecting physical space stored in the cloud server, and abstracts an actual product into a JSON format data model composed of attributes, services and events, so that the cloud server can conveniently manage and interact data.
When the internet of things management application program obtains the object model of the intelligent single-product equipment interconnected in the internet of things, appUrl (application program uniform resource locator) of the corresponding intelligent single-product equipment is pushed to the internet of things equipment list in a onRemoteMessage mode. The method comprises the steps that an Internet of things device list responds to an Internet of things device list rendering operation instruction, appUrl of intelligent single-article devices pushed by an Internet of things management application program is obtained through monitoring onRemoteMessage events, appUrl of the intelligent single-article devices are analyzed, device list cards in the Internet of things device list are correspondingly connected with the intelligent single-article devices corresponding to the Internet of things management application program according to appUrl of the intelligent single-article devices, device list cards corresponding to the intelligent single-article devices are determined, and the device list cards are marked as target device list cards needing to be rendered.
Step S20: requesting to obtain the customized magnetic paste of the intelligent single-product equipment from a cloud server;
The internet of things device list acquires appUrl (application uniform resource locator) of the intelligent single-product device pushed by the internet of things management application program through monitoring onRemoteMessage events, appUrl of the intelligent single-product device is analyzed, and a device list card in the internet of things device list is correspondingly connected with the corresponding intelligent single-product device in the internet of things management application program according to appUrl of the intelligent single-product device. The device list card of the intelligent single-article device corresponding to appUrl of the intelligent single-article device obtained by the internet of things device list mark is a target device list card, the internet of things device list sends a state information event of the intelligent single-article device corresponding to the target device list card to the cloud server, and a customized magnetic patch corresponding to the state information of the intelligent single-article device is requested to be obtained remotely from the cloud server. The customized magnetic paste is stored in an Internet of things intelligent single-product equipment deployment catalog in a cloud server, and the preset intelligent single-product equipment corresponds to the customized magnetic paste. The customized magnetic paste can conduct personalized rendering on the corresponding target equipment list card, so that a user can interact with the intelligent single-product equipment through operating the customized magnetic paste to optimize the target equipment list card.
Specifically, after the internet of things device list remotely requests to obtain the customized magnetic patch corresponding to the state information of the intelligent single-product device from the cloud server, the cloud server returns a request response state code (response state) with a read-only attribute, and the internet of things device list analyzes the request response state code and judges to obtain the request state of the customized magnetic patch. Optionally, in an embodiment, if the request response status code is 200, the request for obtaining the customized tile request corresponding to the intelligent single-product device status information is indicated to be successful by the internet of things device list. And the cloud server asynchronously returns the customized magnetic patch file, and the Internet of things equipment list acquires the customized magnetic patch asynchronously returned by the cloud server.
Step S30: and using the universal magnetic paste as the equipment list card of the intelligent single-item equipment.
After the internet of things device list obtains the customized magnetic paste returned by the cloud server, the customized magnetic paste file is executed, and after the customized magnetic paste file is executed, a customized magnetic paste component is generated, wherein the customized magnetic paste component is a preset magnetic paste component corresponding to the current state information of the intelligent single product device and can display the current state information of the intelligent single product. The device list of the Internet of things replaces the generated customized magnetic paste component with the general magnetic paste of the original target device list card, and updates the customized magnetic paste component into the current card magnetic paste of the target device list card. Optionally, the size of the updated target device list card may be the same as the size of the general magnetic patch of the original target device list card; or the size of the updated target equipment list card is larger than the general magnetic paste area of the original target equipment list card; or the size of the updated target device list card is smaller than the general magnetic paste area of the original target device list card.
Optionally, after the customized magnetic patch component replaces the original general magnetic patch of the internet of things device list, a new target device list card is formed. Optionally, the current target device list card has corresponding intelligent single devices in the internet of things, the current target device list card binds to appUrl (application uniform resource locator) in the internet of things management application program of the corresponding intelligent single devices, and when the current target device list card displays the internet of things device list, the current target device list card displays an object model of the intelligent single device corresponding to the current target device list card, that is, the current target device list card displays interactive items such as attributes, services, events and the like of the intelligent single devices for the user to perform interactive operation.
And the optional attribute items are the properties or characteristics of intelligent single-product equipment such as the model number of the intelligent single-product equipment, the address of the equipment, the appearance of the equipment and the like corresponding to the current target equipment list card.
Optionally, the service is a control option of the intelligent single-product device corresponding to the current target device list card, such as a management option for the intelligent single-product device, including power on, power off, standby, pause, and the like.
Optionally, the event is a current running state of the smart item device corresponding to the current list card of the target device.
After the customized magnetic patch assembly renders the target equipment list card, a user can intuitively see attribute information and current running information of a specific intelligent single-article equipment in the Internet of things on the current list card, and the user can also perform interactive operation through service options in the current target equipment list card to control the corresponding intelligent single-article equipment in the Internet of things. After the operation instruction of the user is acquired by the internet of things device list, appUrl of intelligent single-product devices corresponding to the customized magnetic patch assembly are connected in the internet of things management application program, and an MQTT (message queue telemetry transport) control command is sent to the internet of things management application program. The Internet of things management application program reports the MQTT control command to a cloud server, the cloud server transmits the MQTT control command to a WIFI module, the WIFI module analyzes the MQTT control command transmitted by the cloud, and the MQTT control command is transmitted to intelligent single-product equipment pointed by the MQTT control command after translation. The MQTT is a message publishing/subscribing transmission protocol based on a client-server, and has the characteristics of light weight, simplicity, openness and easiness in implementation.
According to the Internet of things equipment list, through appUrl of intelligent single-product equipment pushed by an Internet of things management application program, a request is made to a cloud server for obtaining the customized magnetic paste of the intelligent single-product equipment, after the customized magnetic paste is obtained, a customized magnetic paste file is executed to obtain a customized magnetic paste assembly, and the customized magnetic paste assembly replaces a general magnetic paste serving as a target equipment list card preset in the Internet of things equipment list so as to form a new target equipment list card. And the object model of the intelligent single-article equipment is displayed on the target equipment list card, so that a user can acquire related information of the intelligent single-article equipment from the target equipment list card, and can perform information interaction to the intelligent single-article equipment through the target equipment list card, thereby realizing remote control. After a control instruction sent by a user is acquired by the internet of things equipment list, appUrl corresponding to the intelligent single-product equipment is accessed, an MQTT control instruction is sent to the internet of things application, the MQTT control instruction is transferred to a cloud server, transferred and translated through the cloud server and a WIFI module, finally issued to the intelligent single-product equipment, and the intelligent single-product equipment is controlled to perform corresponding operation. The method and the system realize that the target equipment list card of the internet of things equipment list is dynamically rendered, and meanwhile, the relation between the internet of things equipment list and intelligent single-product equipment is decoupled, so that a user or related operation and maintenance personnel can maintain the internet of things equipment list.
Further, referring to fig. 3, a second embodiment of the method for rendering an internet of things device list according to the present application is provided.
The difference between the second embodiment of the method for rendering the list of the internet of things device and the first embodiment of the method for rendering the list of the internet of things device is that the method for primarily rendering the list of the internet of things device comprises the following steps:
Step S01: acquiring at least one piece of locally stored intelligent single-product equipment information pushed by an Internet of things management application program;
Step S02: and using the universal magnetic paste as the equipment list card of the intelligent single-item equipment to conduct initial rendering.
After the Internet of things equipment list rendering equipment is started, the Internet of things management application program is operated in the background, and reads intelligent single-item equipment information in the Internet of things, which is stored locally, wherein the intelligent single-item equipment information comprises names, models, connection states and the like of intelligent single-item equipment in the Internet of things. The internet of things management application program converts the screened local intelligent single-article equipment information into an intelligent single-article equipment information dialog box containing all intelligent single-article equipment information. The internet of things management application program executes the right confirming operation, judges whether the internet of things device list subscribes to onRemoteMessage events, and if the internet of things device list subscribes to onRemoteMessage events, the internet of things management application program sends an intelligent single-product device information dialog box containing all intelligent single-product device information to the internet of things device list. The internet of things device list acquires the intelligent single-product device information dialog box sent by the internet of things management application program by monitoring onRemoteMessage events, and acquires the locally stored internet of things intelligent single-product device information.
Optionally, if the internet of things device list is not subscribed to onRemoteMessage events, the internet of things management application pops up, on the display screen interface, prompt information of the internet of things device list not subscribed to onRemoteMessage events, prompts a user, acquires an operation instruction sent by the user to control the internet of things device list to subscribe to onRemoteMessage events, and after confirming that the control list is subscribed to onRemoteMessage events, the internet of things management application sends an intelligent single-product device information dialog box containing all intelligent single-product device information to the internet of things device list.
The internet of things device list analyzes an intelligent single-item device information dialog box sent by the internet of things management application program, acquires intelligent single-item device information stored locally, checks whether the intelligent single-item device information stored in the internet of things device list is out of date, and updates the intelligent single-item information stored in the internet of things device list if the intelligent single-item device information stored in the internet of things device list is out of date.
And after the checking of the equipment list of the Internet of things is completed, the equipment list card in the equipment list of the Internet of things is initially rendered, wherein the equipment list card corresponds to the intelligent single-product equipment in the Internet of things one by one. The method comprises the steps that a preset general magnetic paste is extracted from an Internet of things device list, the general magnetic paste is updated into a card component of a device list card to be rendered for the first time, wherein the general magnetic paste is a unified magnetic paste which is preset in the Internet of things device list, uniform in size and shape and free from distinguishing intelligent single-product devices.
According to the method, the intelligent single-article equipment information dialog box of the intelligent single-article equipment information in the Internet of things, which is locally stored by the Internet of things management application program, is obtained, the locally stored intelligent single-article equipment information of the Internet of things is obtained, whether the intelligent single-article equipment information in the Internet of things equipment list is out of date is checked, intelligent single-article equipment of the Internet of things equipment list is updated, the Internet of things equipment list is initially rendered by using the universal magnetic paste, and the universal magnetic paste is used as an equipment list card.
Further, referring to fig. 4, a third embodiment of the method for rendering an internet of things device list according to the present application is provided.
The difference between the third embodiment of the method for rendering the list of the internet of things device and the above embodiment of the method for rendering the list of the internet of things device is that the list of the internet of things device requests the corresponding animation file from the cloud.
Step S11: detecting the reporting state of the intelligent single-product equipment;
Step S21: if the intelligent single product is in a starting state, requesting and acquiring the target equipment list card customized animation file of the intelligent single product equipment from a cloud server;
Step S31: and loading the customized animation file to render the target equipment list card of the intelligent single-product equipment.
When the general magnetic paste is used as a device list card, the operation state of the intelligent single-article device is acquired by subscribing at least one event of an intelligent single-article device state information change event, an intelligent single-article device identification code event and a father node message event. Specifically, the intelligent single-product device reports the report data of the intelligent single-product device state to the WIFI module, and optionally, the report data comprises state information such as the intelligent single-product device name, the identification code, the starting state and the like. And the WIFI module analyzes and encapsulates the data reported by the intelligent single-product equipment and sends the data to the cloud server. The cloud server issues reporting data of the intelligent single-product equipment based on the MQTT protocol; the internet of things management application program triggers subscription MQTT information, locally stores the reported data of the intelligent single product, updates the state information of the intelligent single product, and issues the MQTT information to the internet of things equipment list in a onRemoteMessage mode. And analyzing the Internet of things equipment list to obtain the reporting state of the intelligent single-article equipment, and obtaining the starting state information of the intelligent single-article.
Optionally, the starting state information of the intelligent single-article device includes a starting state or a shutdown state, and if the intelligent single-article device is in the starting state, that is, after the internet of things device list analyzes the reporting state of the intelligent single-article device, the intelligent single-article device is determined to be in the starting state. And the Internet of things equipment list remotely requests the cloud server to acquire the customized animation file of the target equipment list card of the intelligent single-product equipment. The cloud server asynchronously returns the customized animation file, and the Internet of things equipment list acquires the customized animation file which is asynchronously returned by the cloud server.
After the Internet of things device list acquires the customized animation file returned by the cloud server, the customized animation file is analyzed, the customized animation file is added to the target device list card, and the corresponding application program is called for rendering, so that the target device list card can present the corresponding animation effect, and the display effect of the intelligent single-product device can be better displayed.
In this embodiment, the internet of things device list obtains the report information of the intelligent single-product device to determine whether the intelligent single-product device is in a starting state, if the intelligent single-product device is in the starting state, the internet of things device list requests to obtain a customized animation file corresponding to the intelligent single-product device from the cloud server, loads the customized animation file and adds the customized animation file to the target device list card, achieves the corresponding animation effect of the target device list card, optimizes the display effect of the device list card, and simultaneously enables a user to clearly perceive the starting condition of the intelligent single-product device, achieves interaction of the intelligent single-product device more conveniently through the device list card, and optimizes the experience of the user.
Further, referring to fig. 5, a fourth embodiment of the method for rendering an internet of things device list according to the present application is provided.
The fourth embodiment of the method for rendering the list of the devices of the internet of things is different from the above embodiments of the method for rendering the list of the devices of the internet of things in that the priority of the intelligent single-product devices is set, and the cards of the list of the devices are rendered in a differentiated mode according to the priority.
Step S22: initiating a request for acquiring the customized magnetic paste of the intelligent single-product equipment to the cloud server;
Step S23: receiving a request response state code asynchronously returned by the cloud server, wherein the response state of the request response state code is request failure;
step S24: and marking the equipment list card of the intelligent single-product equipment as a universal single-product card, and stopping rendering the universal single-product card.
In this embodiment, to the importance degree of the intelligent single-product device connected in the internet of things, the priority of the intelligent single-product device is set corresponding to the internet of things device list, specifically, in a specific embodiment, the importance degree of the intelligent door lock in the internet of things system is higher than that of the illuminating lamp, and the state change of the intelligent door lock is also more than that of the illuminating lamp, so that the priority of the intelligent door lock is higher than that of the illuminating lamp. And equipment with low importance degree and single state change such as an illuminating lamp is marked as universal intelligent single-product equipment. The cloud server sets according to the priority of the intelligent single-product equipment in the Internet of things, and does not preset customized magnetic patches corresponding to the state information of the intelligent single-product equipment.
The method comprises the steps that a device list card corresponding to general intelligent single-item devices in an Internet of things device list remotely requests to obtain customized magnetic patches from a cloud server, after the cloud server obtains request information, the cloud server returns a request response state code to the Internet of things device list for searching for customized magnetic patches corresponding to preset intelligent single-item devices, the request response state code is 404, and the request response state code indicates that request to obtain the customized magnetic patches corresponding to the intelligent single-item devices fails. After the request response state code is acquired by the internet of things device list, the request response state identification code is analyzed, the device list card corresponding to the intelligent single-product device is marked as a universal single-product card, and rendering of the universal single-product card is stopped.
In the embodiment, the universal intelligent single-product equipment is marked by setting the priority of the intelligent single-product, and the equipment list cards in the equipment list of the internet of things are differently rendered, so that the equipment list of the internet of things is purposefully rendered under the condition that the operation experience of a user is not affected, and the system resources are saved.
Further, referring to fig. 6, a fifth embodiment of the method for rendering an internet of things device list according to the present application is provided.
The fifth embodiment of the method for rendering the equipment list of the internet of things comprises the following steps:
step S40: acquiring MQTT information which is transmitted by an Internet of things management application program and carries state information of intelligent single-article equipment, and triggering pre-subscribed events related to the intelligent single-article equipment information;
Step S50: and transmitting the MQTT information to the corresponding target equipment list card for re-rendering.
In the operation process of the Internet of things, when the operation state of the intelligent single-product equipment changes, the operation state change data of the intelligent single-product equipment is reported to the WIFI module, and the WIFI module analyzes the operation state change data reported by the packaged intelligent single-product equipment and sends the operation state change data to the cloud server. The cloud server issues an MQTT message of the running state change data of the intelligent single-product equipment based on an MQTT protocol, the networking management application program triggers subscription of the MQTT message, the running state change data of the intelligent single-product equipment is obtained, and the MQTT message carrying the running state change data of the intelligent single-product equipment is transmitted to the Internet of things equipment list in a transparent mode. The operation state change data of the intelligent single-article equipment are transparently transmitted to the corresponding target equipment list card by the Internet of things equipment list, the target equipment list card receives the operation state change data of the intelligent single-article equipment in a props mode (communication of father and son components), the target equipment list card component is correspondingly updated, the information of the operation state of the intelligent single-article in the target equipment list card is updated, and the information is re-rendered into a new target equipment list card component.
In this embodiment, by acquiring running state change data of the intelligent single-product device, corresponding to updating a corresponding target device list card in the internet of things device list, re-rendering the target device list card to update intelligent single-product running state information in the target device list card, so as to dynamically render the target device list card.
Further, referring to fig. 7, fig. 7 is a schematic structural diagram of an internet of things device list rendering system of an operating environment according to an embodiment of the present invention.
Based on the method for rendering the list of the devices in the internet of things in the embodiment of the invention, the invention also provides a system for rendering the list of the devices in the internet of things, and in the embodiment, the system for rendering the list of the devices in the internet of things comprises: the system comprises an Internet of things device list rendering device 100, an intelligent single-product device group 200, a WIFI module 300 and a cloud server 400.
Optionally, the internet of things device list rendering device 100 is provided with the internet of things management application program, and is configured to obtain state information of the intelligent single-product device group 200, and dynamically render the internet of things device list;
The intelligent single-product equipment group 200 consists of a plurality of intelligent single-product equipment which mutually form the Internet;
the WIFI module 300 is configured to parse data reported by the intelligent single items in the intelligent single item device group 200, obtain status information of the intelligent single item device, or parse an operation instruction issued by the cloud server 400, and translate and send the operation instruction to the internet of things device list rendering device 100;
the cloud server 400 is used as a message proxy in the internet of things device list rendering system for publishing the MQTT message.
The internet of things device list rendering system implements any step in any of the above-described internet of things device list rendering method embodiments when executing.
In addition, the application also provides a computer readable storage medium, on which an internet of things device list rendering program is stored, which when executed by a processor, implements the steps of the internet of things device list rendering method described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, medicament or system that includes such element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention 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) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. The method for rendering the list of the Internet of things equipment is characterized by comprising the following steps of:
Responding to an operation instruction of rendering an Internet of things device list, acquiring an application uniform resource locator of intelligent single-product device corresponding to a target device list card pushed by an Internet of things management application program, accessing the application uniform resource locator to acquire an object model of the intelligent single-product device, analyzing the object model to acquire operation information of the intelligent single-product device, determining a device list card corresponding to the intelligent single-product device according to the intelligent single-product device corresponding to the application program uniform resource locator in the Internet of things management application program, and marking the device list card as the target device list card needing to be rendered;
Initiating a request for acquiring the customized magnetic paste of the intelligent single-product equipment to a cloud server; receiving a request response status code returned by the cloud server, wherein the response status of the request response status code is that the request is successful; receiving customized magnetic patches of the intelligent single-article equipment, which are asynchronously transmitted back by a cloud server, wherein the customized magnetic patches are preset customized magnetic patches reflecting current operation information of the intelligent single-article equipment, the cloud server correspondingly sets equipment priority settings of the intelligent single-article according to the importance degree of the intelligent single-article in the Internet of things, and the customized magnetic patches corresponding to the state information of the intelligent single-article equipment are not preset for equipment with low importance degree and single state;
And replacing the universal magnetic paste of the target device list card with the customized magnetic paste.
2. The method for rendering the list of devices on the internet of things according to claim 1, wherein before the step of determining the device list card corresponding to the smart single device and marking the device list card as the target device list card to be rendered, the method further comprises:
acquiring at least one piece of locally stored intelligent single-product equipment information pushed by an Internet of things management application program;
And using a universal magnetic paste as the device list card of the intelligent single-product device.
3. The method for rendering the list of devices of the internet of things according to claim 1, wherein after the step of initiating the request for obtaining the customized tile of the smart mono device to the cloud server, the method comprises:
receiving a request response state code asynchronously returned by the cloud server, wherein the response state of the request response state code is request failure;
And marking the equipment list card of the intelligent single-product equipment as a universal single-product card, and stopping rendering the universal single-product card.
4. The method for rendering the list of devices of the internet of things according to claim 1, wherein the step of initiating the request to the cloud server to obtain the customized tile of the smart item device further comprises:
detecting the reporting state of the intelligent single-product equipment;
if the intelligent single product is in a starting state, requesting and acquiring the target equipment list card customized animation file of the intelligent single product equipment from a cloud server;
And loading the customized animation file to render the target equipment list card of the intelligent single-product equipment.
5. The method for rendering the list of devices of the internet of things according to claim 1, wherein after the step of replacing the universal tile of the target device list card with the customized tile, further comprises:
Acquiring MQTT information which is transmitted by an Internet of things management application program and carries state information of intelligent single-article equipment, and triggering pre-subscribed events related to the intelligent single-article equipment information;
And transmitting the MQTT information to the corresponding target equipment list card for re-rendering.
6. An internet of things device list rendering device, characterized in that the internet of things device list rendering device comprises a memory, a processor and an internet of things device list rendering program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the internet of things device list rendering method according to any of claims 1 to 5.
7. A system for rendering an Internet of things device list is characterized in that, the Internet of things equipment list rendering system comprises:
The intelligent single-product equipment group is a plurality of intelligent single-product equipment which mutually form the Internet of things;
the WIFI module is used for analyzing the data reported by the intelligent single items in the intelligent single item equipment group, acquiring the state information of the intelligent single item equipment, or analyzing an operation instruction issued by a cloud server, translating and transmitting the operation instruction to the equipment list rendering equipment of the Internet of things;
The cloud server is used as a message agent in the Internet of things equipment list rendering system and used for issuing the MQTT message;
The Internet of things equipment list rendering equipment is provided with the Internet of things management application program and is used for acquiring the state information of the intelligent single-product equipment group and dynamically rendering the Internet of things equipment list;
the internet of things device list rendering system, when executed, implements the steps of the internet of things device list rendering method according to any one of claims 1 to 5.
8. A computer-readable storage medium, wherein an internet of things device list rendering program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the internet of things device list rendering method of any one of claims 1 to 5.
CN202011573084.XA 2020-12-25 2020-12-25 Method, device, system and readable storage medium for rendering device list of Internet of things Active CN112631705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011573084.XA CN112631705B (en) 2020-12-25 2020-12-25 Method, device, system and readable storage medium for rendering device list of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011573084.XA CN112631705B (en) 2020-12-25 2020-12-25 Method, device, system and readable storage medium for rendering device list of Internet of things

Publications (2)

Publication Number Publication Date
CN112631705A CN112631705A (en) 2021-04-09
CN112631705B true CN112631705B (en) 2024-08-23

Family

ID=75325902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011573084.XA Active CN112631705B (en) 2020-12-25 2020-12-25 Method, device, system and readable storage medium for rendering device list of Internet of things

Country Status (1)

Country Link
CN (1) CN112631705B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112330410A (en) * 2020-11-13 2021-02-05 深圳Tcl新技术有限公司 Method, device, equipment and storage medium for customizing intelligent single product in equipment list
CN114756322B (en) * 2022-05-09 2024-02-20 北京航云物联信息技术有限公司 Picture processing method and device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166562A (en) * 2013-09-25 2014-11-26 北京新锋艾普网络科技有限公司 Method and device for generating application program tiles for window operating system
CN109213564A (en) * 2018-10-22 2019-01-15 珠海格力电器股份有限公司 Intelligent household control interface adjusting method and device, intelligent terminal and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104423990B (en) * 2013-09-02 2019-02-26 腾讯科技(深圳)有限公司 A kind of update method and device of magnet
WO2016036552A1 (en) * 2014-09-02 2016-03-10 Apple Inc. User interactions for a mapping application
CN104917648A (en) * 2015-05-26 2015-09-16 山东蚁巡网络科技有限公司 Method for displaying operation and maintenance monitoring data dynamically and visually
CN107783809A (en) * 2017-09-29 2018-03-09 烽火通信科技股份有限公司 A kind of smart machine control panel remote rendering method
CN111752647A (en) * 2019-03-27 2020-10-09 西安欧思奇软件有限公司 Card information display method and device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166562A (en) * 2013-09-25 2014-11-26 北京新锋艾普网络科技有限公司 Method and device for generating application program tiles for window operating system
CN109213564A (en) * 2018-10-22 2019-01-15 珠海格力电器股份有限公司 Intelligent household control interface adjusting method and device, intelligent terminal and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
以人性,见美好!这可能是最懂你的智能家居APP;wulian;《http://www.wuliangroup.com/cn/index.php/news/dynamic/info/421》;第1-5页 *

Also Published As

Publication number Publication date
CN112631705A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN109725901B (en) Front-end code development method, device, equipment and computer storage medium
CN106897086B (en) Method, device and system for upgrading robot operating system
CN107741844B (en) Method and device for generating application installation package
CN106775836B (en) Interface display method and interface display device
CA2598426C (en) Facilitating mobile device awareness of the availability of new or updated server-side applications
CN112631705B (en) Method, device, system and readable storage medium for rendering device list of Internet of things
US7920852B2 (en) Compression of data transmitted between server and mobile device
US11531573B2 (en) Asynchronous C#-JS data binding bridge
CN112882772B (en) Configuration method of application interface of mobile terminal, mobile terminal and storage medium
CN109614101B (en) Page generation method, system, device, computer equipment and storage medium
CN112130866A (en) Application deployment method and related device
CN115114044B (en) Message pushing method, device, equipment and medium
JP2003051056A (en) Automatic vending machine management system
CN105955739A (en) Graphical interface processing method, apparatus and system
CN113965829A (en) Internet of things equipment control method, device, equipment and medium based on 5G message
CN114531462B (en) Data processing method and device for Internet of things device
CN114115866A (en) Cross-domain-based vehicle-mounted scene self-defining method, device, equipment and storage medium
CN113839992A (en) Equipment control method and device
CN115794637A (en) Method, device, equipment and computer readable medium for automatic test
CN113691413B (en) Method and system for realizing compatibility of Internet of things equipment with multiple modules
US20200021548A1 (en) Method of playback of a plurality of messages exchanged with a conversational agent
CN114070898A (en) Signal pushing method and device for vehicle type and vehicle state and computer readable medium
CN113760581A (en) MQTT-based method and system for synchronizing attribute information of intelligent terminal
CN101751266B (en) Method and device for updating graphic user interface (GUI) component
CN109032651A (en) Using update method, intelligent terminal and computer readable storage medium

Legal Events

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