CN109413515B - Equipment control method and device, mobile terminal and server - Google Patents

Equipment control method and device, mobile terminal and server Download PDF

Info

Publication number
CN109413515B
CN109413515B CN201811395078.2A CN201811395078A CN109413515B CN 109413515 B CN109413515 B CN 109413515B CN 201811395078 A CN201811395078 A CN 201811395078A CN 109413515 B CN109413515 B CN 109413515B
Authority
CN
China
Prior art keywords
zigbee device
zigbee
mobile terminal
server
data
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
CN201811395078.2A
Other languages
Chinese (zh)
Other versions
CN109413515A (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 Lutuo Technology Co Ltd
Original Assignee
Shenzhen Lutuo 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 Lutuo Technology Co Ltd filed Critical Shenzhen Lutuo Technology Co Ltd
Priority to CN201811395078.2A priority Critical patent/CN109413515B/en
Publication of CN109413515A publication Critical patent/CN109413515A/en
Application granted granted Critical
Publication of CN109413515B publication Critical patent/CN109413515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/04Details of telephonic subscriber devices including near field communication means, e.g. RFID
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q2209/00Arrangements in telecontrol or telemetry systems
    • H04Q2209/40Arrangements in telecontrol or telemetry systems using a wireless architecture
    • H04Q2209/43Arrangements in telecontrol or telemetry systems using a wireless architecture using wireless personal area networks [WPAN], e.g. 802.15, 802.15.1, 802.15.4, Bluetooth or ZigBee

Abstract

The embodiment of the application provides a device control method, a device control device, a mobile terminal, a server and a storage medium. According to the method, when the ZigBee device is detected to be in a network access state, the mobile terminal obtains the characteristic information of the ZigBee device through a short-distance wireless communication technology, wherein the characteristic information comprises a device type identifier of the ZigBee device; then the mobile terminal sends a functional data acquisition request to the server, wherein the functional data acquisition request carries the equipment type identification of the ZigBee equipment; then the mobile terminal receives function data of the ZigBee device corresponding to the device type identification of the ZigBee device, which is returned by the server; and finally, displaying the functional data by the mobile terminal. This application can realize controlling the operation mode with the equipment of multiple different grade type equipment originally, unify to using the mobile terminal to control equipment, can control interface control equipment through the familiar touch of user, has avoided the user operation puzzlement, and then has promoted the user experience of equipment.

Description

Equipment control method and device, mobile terminal and server
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a device control method, apparatus, mobile terminal, server, and storage medium.
Background
With the appearance of the internet of things, the system adds boosting to the development and application of the intelligent home system. For the electric appliances and electronic equipment of the Internet of things, a user needs a corresponding controller to operate the corresponding equipment. In a common scene, one controller corresponds to a designated device or similar devices in a certain area, such as a lamp switch and an air conditioner switch of an office building; equipment control keys and a water and electricity switch in a factory; arming and disarming of a security and protection warning system in a warehouse and the like; except traditional physics switch, button, thing networking equipment also can be through cell-phone or other mobile terminal, installation intelligent control APP, long-range wireless control equipment state. However, since one controller can only control corresponding devices, when a user installs multiple or multiple devices, for example, hundreds of lamps, air conditioners, fans, curtains and the like in one office area, different devices adopt different physical keys, switches or knobs and the like, and the operation modes are different, and when the user faces a large number of devices with different operation modes, it is difficult to accurately select the operated device, and misoperation is easy to occur.
Disclosure of Invention
In view of the above, embodiments of the present application provide a device control method, apparatus, mobile terminal, server, and storage medium to achieve improvement of the above problem.
In a first aspect, an embodiment of the present application provides an apparatus control method, which is applied to a mobile terminal, and the apparatus control method includes: when the ZigBee device is detected to be in a network access state, the mobile terminal acquires the characteristic information of the ZigBee device through a short-distance wireless communication technology, wherein the characteristic information comprises a device type identifier of the ZigBee device; the method comprises the steps that a mobile terminal sends a functional data acquisition request to a server, wherein the functional data acquisition request carries a device type identifier of ZigBee devices; the mobile terminal receives function data of the ZigBee device corresponding to the device type identifier of the ZigBee device, which is returned by the server; the mobile terminal displays the functional data.
In a second aspect, an embodiment of the present application provides an apparatus control method, which is applied to a server, and the apparatus control method includes: the server receives a functional data acquisition request which is sent by the mobile terminal and carries the equipment type identifier of the ZigBee equipment; the server searches for the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device; and the server returns the searched functional data of the ZigBee device to the mobile terminal so that the mobile terminal can display the functional data.
In a third aspect, an embodiment of the present application provides an apparatus control method, including: when the ZigBee device is detected to be in a network access state, the mobile terminal acquires the characteristic information of the ZigBee device through a short-distance wireless communication technology, wherein the characteristic information comprises a device type identifier of the ZigBee device; the method comprises the steps that a mobile terminal sends a functional data acquisition request to a server, wherein the functional data acquisition request carries a device type identifier of ZigBee devices; the server receives the function data acquisition request and searches for the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device; the server returns the searched functional data of the ZigBee device to the mobile terminal; and the mobile terminal receives and displays the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device, which is returned by the server.
In a fourth aspect, an embodiment of the present application provides an apparatus control device, operating in a mobile terminal, where the apparatus control device includes: the characteristic information acquisition module is used for acquiring the characteristic information of the ZigBee device by the mobile terminal through a short-distance wireless communication technology when the ZigBee device is detected to be in a network access state, wherein the characteristic information comprises a device type identifier of the ZigBee device; the request sending module is used for sending a functional data acquisition request to the server by the mobile terminal, wherein the functional data acquisition request carries the equipment type identifier of the ZigBee equipment; the data receiving module is used for receiving the functional data of the ZigBee equipment, corresponding to the equipment type identification of the ZigBee equipment, returned by the server by the mobile terminal; and the data display module is used for displaying the functional data by the mobile terminal.
In a fifth aspect, an embodiment of the present application provides an apparatus control device, operating on a server, including: the request receiving module is used for receiving a functional data acquisition request which is sent by the mobile terminal and carries the equipment type identifier of the ZigBee equipment by the server; the data searching module is used for searching the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device by the server; and the data returning module is used for returning the searched functional data of the ZigBee device to the mobile terminal by the server.
In a sixth aspect, an embodiment of the present application provides a network system, which includes a mobile terminal, a server, and a ZigBee device. The mobile terminal is used for acquiring the characteristic information of the ZigBee device through a short-distance wireless communication technology when the ZigBee device is detected to be in a network access state, wherein the characteristic information comprises a device type identifier of the ZigBee device; the mobile terminal is also used for sending a functional data acquisition request to the server, wherein the functional data acquisition request carries the equipment type identifier of the ZigBee equipment; the server is used for receiving the function data acquisition request and searching the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device; the server is also used for returning the searched functional data of the ZigBee device to the mobile terminal; the mobile terminal is also used for receiving and displaying the function data of the ZigBee device corresponding to the device type identification of the ZigBee device, which is returned by the server.
In a seventh aspect, an embodiment of the present application provides a mobile terminal, including a memory and one or more processors, where one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the device control method in the first aspect.
In an eighth aspect, an embodiment of the present application provides a server, including a memory and one or more processors, where one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the device control method according to the second aspect.
In a ninth aspect, the present application provides a computer-readable storage medium, in which program codes are stored, wherein the apparatus control method is executed when the program codes are loaded and executed by a processor.
Compared with the prior art, the embodiment of the application provides a device control method, a device, a mobile terminal, a server and a storage medium, wherein the method comprises the steps that when the ZigBee device is detected to be in a network access state, the mobile terminal obtains the characteristic information of the ZigBee device through a short-distance wireless communication technology, wherein the characteristic information comprises a device type identifier of the ZigBee device; then the mobile terminal sends a functional data acquisition request to the server, wherein the functional data acquisition request carries the equipment type identification of the ZigBee equipment; then the mobile terminal receives the function of the ZigBee device corresponding to the device type identification of the ZigBee device returned by the server; and finally, the mobile terminal displays the corresponding function data of the ZigBee device according to the device state identifier. This application can realize controlling the operation mode with the equipment of multiple different grade type equipment originally, unify to using the mobile terminal to control equipment, can control interface control equipment through the familiar touch of user, has avoided the user operation puzzlement, and then has promoted the user experience of equipment.
In order to make the aforementioned and other objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic diagram of a network system provided in an embodiment of the present application.
Fig. 2 shows a flowchart of an interaction process of a device control method provided in an embodiment of the present application.
FIG. 3 shows a display interface diagram of functional data of a device in the method of FIG. 2.
Fig. 4 shows a flowchart of a device control method according to another embodiment of the present application.
Fig. 5 is a flowchart illustrating a device control method according to still another embodiment of the present application.
Fig. 6 shows a block diagram of a device control apparatus according to an embodiment of the present application.
Fig. 7 shows a block diagram of a device control apparatus according to another embodiment of the present application.
Fig. 8 shows a block diagram of a network system according to an embodiment of the present application.
Fig. 9 shows a block diagram of a mobile terminal according to an embodiment of the present application.
Fig. 10 shows a block diagram of a server according to an embodiment of the present application.
Fig. 11 illustrates a storage unit for storing or carrying a program code implementing the device control method according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
NFC (Near Field Communication) is an emerging technology, which is integrated and evolved from Radio Frequency Identification (RFID) and interconnection technologies, and utilizes a single chip to combine functions of an inductive card reader, an inductive card and a point-to-point, so that devices (such as mobile phones) using NFC technology can perform Identification and data exchange when they are close to each other. The Zigbee Technology (Zigbee Technology ) is an emerging short-range, low-rate, low-power consumption two-way wireless communication Technology, which is a technical proposal between wireless tag Technology and bluetooth, and is mainly used for short-range wireless connection. With the continuous development of the internet of things, the NFC technology and the ZigBee communication technology are also gradually applied to the aspect of smart home.
ZigBee devices can be divided into two broad categories: a gateway and a sub-device. The ZigBee gateway is used as a core device for establishing the ZigBee network and is an important basis for popularization of a ZigBee network protocol all the time, and the ZigBee sub-devices are connected with the gateway to form the ZigBee network. Because the ZigBee network belongs to a local area network, in order to expand application scenes, the ZigBee gateway is mostly matched with the Internet access function at present. As a mode, based on internet access, a user can use a mobile phone APP to remotely operate ZigBee equipment through the internet, so that intelligent management is achieved, and intelligent home, intelligent office, intelligent factory and the like are achieved.
For the electric appliances and electronic equipment of the Internet of things, a user needs a corresponding controller to operate the corresponding equipment. In a common scene, one controller controls corresponding designated equipment or similar equipment in a certain area, such as a lamp switch, an air conditioner switch and the like in an office building; as a mode, except traditional physics switch, button, thing networking device can also be through cell-phone or other mobile terminal, installation intelligent control APP, long-range wireless control equipment's state. However, as the number of devices increases, the number of controllers also increases, for example, hundreds of lights, air conditioners, fans, curtains and the like may exist in one office area, and different devices are controlled by different physical keys, switches, knobs and the like, and the operation modes are different. When a user faces a large number of devices with different operation modes, the devices and the corresponding controllers are not in visual correspondence, so that the user is difficult to distinguish. As a mode, when APP remote control is used, for tens of hundreds of devices, higher memory cost is also needed to accurately select a device to be controlled, and misoperation is easy to occur, so that user experience is poor.
Therefore, the inventor finds that intuitive corresponding relation is lacking between the equipment and the corresponding controller, so that users are difficult to distinguish, and the technical problem that misoperation is easy to occur and inconvenience is brought to the users is solved.
For the convenience of describing the scheme of the present application in detail, the following description will first describe an application environment in the embodiments of the present application with reference to the drawings.
Referring to fig. 1, a network system 10 according to an embodiment of the present application is provided, where the network system 10 includes: mobile terminal 11, server 12, gateway 13, kid device 14, and router 15. The mobile terminal 11 may be any device with communication and storage functions, such as: the smart phone, the desktop computer, the notebook computer, the tablet computer or other smart communication devices with network connection functions. The server 12 may be a network access server, a database server, a cloud server, or the like. Optionally, the gateway 13 is built based on a ZigBee protocol, and the sub-device 14 may be a device added in the gateway 13 in advance, for example, the sub-device may be a device in a suite to which the gateway belongs when the gateway leaves a factory; or a device subsequently connected to the gateway 13 by a user operation. The sub-devices 14 may be physical intelligent devices, such as electric meters, door sensors, body sensors, door and window sensors, temperature and humidity sensors, water sensors, natural gas alarms, smoke alarms, wall switches, wall sockets, smart sockets, wireless switches, wireless wall switches, magic cube controllers, curtain motors, multifunctional gateways, air conditioner partners, cameras, and other intelligent devices, or may be virtual sensor devices, such as virtual body sensor devices, which are not limited herein.
Optionally, a client capable of managing the smart home device is installed in the mobile terminal 11, where the client may be an application client (such as a mobile phone APP) or a web page client, and is not limited herein.
Alternatively, one or more of the sub-devices 14 may establish a network connection with the gateway 13 based on the ZigBee protocol, thereby joining the ZigBee network. Both the gateway 13 and the mobile terminal 11 may be connected to a router 15, and may be connected to the ethernet via the router 15, and the router 15 may be connected to the server 12 via 2G/3G/4G/5G, WIFI, etc. For example, the gateway 13 and the mobile terminal 11 may store the acquired information in the server 12. Optionally, the mobile terminal 11 may also establish a network connection with the server 12 through 2G/3G/4G/5G, WIFI, so as to obtain data sent by the server 12.
Alternatively, the local area network path as shown in fig. 1 indicates that the mobile terminal 11 is in the same local area network as the router 15 and the gateway 13, and the wide area network path indicates that the mobile terminal 11 is in the same local area network as the router 15 and the gateway 13. Wherein, when the mobile terminal 11 is in the same local area network as the router 15 and the gateway 13, the mobile terminal 11 may interact with the gateway 13 and the sub-device 14 connected to the gateway 13 through the local area network path as shown in fig. 1; it is also possible to interact with the gateway 13 and the sub-devices 14 connected to the gateway 13 via a wide area network path as shown in fig. 1. When the mobile terminal 11 is not in the same local area network as the router 15 and the gateway 13, the mobile terminal 11 may interact with the gateway 13 and the sub-device 14 connected to the gateway 13 through a wide area network path as shown in fig. 1.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a flowchart of an interaction process of an apparatus control method according to an embodiment of the present application is shown, where the embodiment provides an apparatus control method, where the method includes:
step S110: when detecting that the ZigBee device is in a network access state, the mobile terminal acquires the characteristic information of the ZigBee device through a short-distance wireless communication technology, wherein the characteristic information comprises a device type identifier of the ZigBee device.
It should be noted that, in the embodiment of the present application, a device that performs communication based on a ZigBee network protocol is referred to as a ZigBee device in the embodiment of the present application. Optionally, ZigBee devices may be divided into two broad categories: ZigBee gateway and ZigBee sub-equipment. Optionally, the ZigBee device and the mobile terminal both have a short-range wireless communication function (such as NFC, bluetooth, infrared, or WiFi, etc., and no limitation is made herein), and the mobile terminal is provided with an APP that can be used for displaying a control interface of the ZigBee device, and the display of the state of the ZigBee device and the control of the device can be realized through the APP.
Optionally, if the mobile terminal has started the NFC wireless communication function, when the mobile terminal is close to the ZigBee device or touches the ZigBee device, the device type identifier of the ZigBee device may be quickly acquired through the NFC wireless communication function, wherein a duration that the mobile terminal is close to or touches the ZigBee device may change according to an operation requirement, and may be affected by the network communication signal. However, by controlling the ZigBee device in such a way, the user can be prevented from spending unnecessary time on the mobile terminal to select the related information of the ZigBee device to be controlled, and the operation efficiency can be improved.
As an implementation manner, if the working state of the ZigBee device needs to be controlled by the APP, the ZigBee device needs to be in a network access state, and in some implementation manners, the ZigBee device needs to be bound with a login account of the mobile terminal. Optionally, if the ZigBee device is a sub device, as an implementation manner, the sub device may access a gateway based on a ZigBee protocol, and the gateway is connected to a WiFi router and then accesses a network where a server is located, so that the sub device is accessed to the internet; as another implementation, the child device may access the internet by means of the NFC function of the mobile terminal. If the ZigBee device is a gateway, the gateway can be connected with a WiFi router to further access the Internet; optionally, the gateway may also access the internet by means of the NFC function of the mobile terminal.
As one way, a firmware program may be included in the ZigBee device, and the firmware program includes a network status flag bit (for example, the network status flag bit may be NetStatus) for characterizing the network access status of the ZigBee device. Optionally, the network state flag bit of the ZigBee device is in an unconnected state by default, and the network state flag bit may be read by the mobile terminal through an NFC function. If the mobile terminal starts the NFC function of wireless communication, when the mobile terminal approaches the ZigBee device, the network status flag bit of the ZigBee device may be read by the NFC function to determine whether the ZigBee device has accessed the network, for example, when NetStatus ═ OnLine or OffLine is read (where NetStatus ═ OnLine may be used to represent that the ZigBee device has accessed the network and is OnLine and the ZigBee device is bound to a login account of the mobile terminal, and NetStatus ═ OffLine may be used to represent that the ZigBee device has accessed the network and is bound to a login account of the mobile terminal, but is currently in an OffLine mode), it may be determined that the ZigBee device is in an accessed state.
Optionally, if the network state flag bit of the ZigBee device is read to be null (for example, NetStatus ═ None), the mobile terminal may automatically jump to the device network access interface, and as an implementation manner, the mobile terminal may automatically fill the device network access interface with information required for network access of the ZigBee device, which is acquired through the NFC function; as another implementation manner, the mobile terminal may also obtain the information required for the ZigBee device to access the network, which is input by the user on the device access interface, so that the ZigBee device can access the internet according to the information required for the access. The information required for network access may include information of a gateway accessed by the ZigBee device (such as a name and a password of the gateway), and/or access information of an internet WiFi router (such as a name, an SSID, and a password of the WiFi router).
Optionally, after the ZigBee device is connected to the network, a verification key for verifying the NFC communication authority with the ZigBee device is generated, the verification key is stored in the data security storage area of the ZigBee device, and optionally, the ZigBee device may also upload the verification key to the server for storage. Optionally, when the ZigBee device is a sub device, the sub device uploads the verification key to the gateway, so that the gateway uploads the verification key to the server for storage; and when the ZigBee device is a gateway, the gateway uploads the verification key to a server for storage.
Optionally, the ZigBee device includes an identification code of the ZigBee device, and after the mobile terminal detects that the ZigBee device is in a network access state, in order to control the ZigBee device through an intelligent control program (such as a mobile phone APP), the mobile terminal needs to obtain NFC communication authority authentication with the ZigBee device. Optionally, the mobile terminal may send a data query request carrying a login account of the mobile terminal and an identification code of the ZigBee device to the server, so that the server searches whether the identification code of the ZigBee device exists under the login account according to the identification code of the ZigBee, where the identification code may be used to uniquely identify the ZigBee device.
Optionally, the server receives a data query request which is sent by the mobile terminal and carries the login account of the mobile terminal and the identification code of the ZigBee device, as a mode, the server searches whether the identification code of the ZigBee device exists in the corresponding ZigBee device identification code under the login account, and if the identification code of the ZigBee device exists, returns the first verification key corresponding to the identification code of the ZigBee device, so that the mobile terminal can perform permission verification through the first verification key.
Optionally, the mobile terminal receives a first verification key corresponding to the found identification code of the ZigBee device returned by the server, and then sends the first verification key to the ZigBee device, so that the ZigBee device determines whether the first verification key is consistent with the verification key of the ZigBee device stored in the data security storage area of the ZigBee device. Optionally, if the two signals are consistent, the ZigBee device allows the communication connection to be established, and returns a consistent signal to the mobile terminal, otherwise, there is no response. As one mode, if the mobile terminal receives a consistent signal returned by the ZigBee device, the mobile terminal may turn on an operation function of the ZigBee device corresponding to the authority of the login account. As a mode, different login accounts correspond to different operation authorities of the ZigBee devices.
Optionally, after obtaining the NFC communication right with the ZigBee device, in order to facilitate control of the ZigBee device, the mobile terminal needs to obtain related data of the device. As one mode, the mobile terminal may acquire feature information of the ZigBee device through the NFC technology, where the feature information includes a device type identifier of the ZigBee device (for example, a device model may be referred to as Hub _ a012, which indicates a device type of the ZigBee device) and a device status identifier (for example, a device status may be referred to as a Normal indicates a current operating status of the device).
The device type identifier is used to characterize the device model of the ZigBee device, and may uniquely identify the device type of the ZigBee device, for example, a device model — Hub _ a012 may be used to indicate that the device type number of a certain ZigBee device is "Hub _ a 012". Alternatively, the identification code (which may be denoted by DeviceID) is similar to the identification number, and each ZigBee device possesses a unique DeviceID. As a mode, the device type identifier can quickly, accurately and intuitively identify the device type of the ZigBee device, and the identification code of the ZigBee device is slower than the device type identifier in identifying the type of the ZigBee device, optionally, if the device id and the device model are used in combination, the identification speed of the device type of the ZigBee device can be increased.
Step S120: and the mobile terminal sends a functional data acquisition request to a server, wherein the functional data acquisition request carries the equipment type identifier of the ZigBee equipment.
It should be noted that the server stores functional data of all ZigBee devices bound to the login account of the mobile terminal, and in order to visually display the operating state of the ZigBee devices to the user, the mobile terminal needs to send a functional data acquisition request to the server.
As one mode, the server stores the function data of the ZigBee device and the device type identifier of the ZigBee device in a data table in a corresponding manner, wherein the device type identifier can be used for uniquely identifying the ZigBee device. In this case, when the mobile terminal requests the server for the function data, the mobile terminal sends a function data acquisition request carrying the device type identifier of the ZigBee device, so that the server searches the function data associated with the device type identifier in the data table according to the device type identifier.
Furthermore, the functional data stored in the server may be adapted to versions of multiple ZigBee devices, or may be adapted to a certain ZigBee device. It can be understood that a version suitable for a certain ZigBee device can better show the functional characteristics of the ZigBee device. As another way, when storing function data dedicated to a certain ZigBee device, the server may store the function data in correspondence with both a device type identifier and a device firmware version identifier, where the device firmware version identifier may be used to indicate a firmware program version of the ZigBee device, and for example, a firmware version may be referred to as Hub _ v17_20180726 to indicate a firmware program version of the device. When the mobile terminal needs to acquire the function data of a specific type of ZigBee device, and sends a function data acquisition request to the server, the function data acquisition request simultaneously carries the device type identifier and the device firmware version identifier of the ZigBee device.
Step S130: and the server receives the function data acquisition request and searches for the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device.
Optionally, the server stores function data of all ZigBee devices bound to the login account of the mobile terminal, and the data may be stored in a form of a data table or in other formats, which is not limited herein. For example, one format of the data table may be in the form of "device name, device current firmware version, device support function".
Optionally, after receiving the function data acquisition request sent by the mobile terminal, the server may find, as a mode, the function data associated with the ZigBee device in the data table according to the device type identifier if the server recognizes that the function data acquisition request carries the device type identifier of the ZigBee device. As another mode, if the server recognizes that the function data acquisition request carries the device type identifier and the device firmware version identifier of the ZigBee device, the server may find the function data associated with the ZigBee device in the data table according to the device type identifier and the device firmware version identifier.
For example, assuming that the ZigBee device is an intelligent switch, if the server recognizes that the function data acquisition request carries the device type identifier of the intelligent switch, the server may search the function data associated with the intelligent switch in the data table according to the device type identifier of the intelligent switch. If the server recognizes that the function data acquisition request carries the device type identifier and the firmware version identifier of the intelligent switch, the server can search the function data associated with the intelligent switch in the data table according to the device type identifier and the firmware version identifier of the intelligent switch. Optionally, the function data may be functions of "click, double click, and long press" of the intelligent switch, and the click, double click, and long press may respectively correspond to different control function data.
Step S140: and the server returns the searched functional data of the ZigBee device to the mobile terminal.
Step S150: and the mobile terminal receives and displays the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device, which is returned by the server.
Generally, a controller with a display screen for displaying and controlling the operating state of the Zigbee device is configured for the Zigbee device, however, most of the time, a user does not care about the display data of the controller, but the screen is always in the display state, which causes waste of energy consumption. Meanwhile, the price of the device provided with the display screen is higher than that of the device not provided with the display screen. Therefore, the embodiment of the application provides a method for unifying the running state of the display device and the related function data of the device by using the display interface (such as an APP operation interface) of the mobile terminal, so as to reduce energy consumption and save cost.
Optionally, the mobile terminal receives function data of the ZigBee device, which is returned by the server and corresponds to the device type identifier and the firmware version identifier of the ZigBee device. Optionally, the feature information of the ZigBee device further includes a device status identifier, where the device status identifier may be used to characterize an operating state of the ZigBee device, and in order to facilitate better control of the device, the mobile terminal may preferentially display a corresponding device operable function according to the device status identifier (for example, may be represented by DeviceStatus) of the device.
Optionally, the operation state of the ZigBee device includes a normal operation state and an abnormal operation state because of a network abnormality (such as a network interruption caused by a WiFi or ZigBee network signal being not good, a router power failure, or a gateway power failure).
As a mode, the functional data includes operation functional data and detection functional data, where the operation functional data includes data used for representing operation functions of the ZigBee device, such as a viewing function, a working state control function, a working mode selection function, a reminding function, and the like of the ZigBee device; the detection function data includes data for characterizing a detection function of the operation state detection of the ZigBee device, such as temperature detection, operation state detection, and the like of the ZigBee device.
For example, assuming that the ZigBee device is a gateway, as shown in fig. 3, some common functions of the gateway are shown, and of course, common functions may be added to the interface according to user preferences. Wherein, as a mode, click the shift knob and can open or close the gateway, trigger the night-light button and can light the night-light, trigger once more and can close the night-light, the warning button can be used for if opening this function, can indicate the user when gateway configuration mistake or trouble, clicks other functions that more operations can show the zigBee equipment, and the user can trigger corresponding button and carry out control operation to zigBee equipment.
As an implementation manner, when the ZigBee device is in a normal operation state, the mobile terminal may display operation function data of the ZigBee device, for example, an operation interface, or the like, or display detection function data of the ZigBee device, for example, current detection data, or the like. Of course, both the operational function data and the test function data may be displayed. The operation interface can be used for modifying display content, working modes or working states and the like of the ZigBee equipment, and the current detection data comprise the temperature, the humidity, the electric quantity or the running speed and the like of the ZigBee equipment.
As another mode, when the ZigBee device is in an abnormal operation state, the mobile terminal may display the abnormal determination data of the ZigBee device.
It should be noted that, the ZigBee device in the embodiment of the present application may be one or more ZigBee devices, and as an implementation, the step of displaying the function data by the mobile terminal may include: firstly, detecting whether the ZigBee device controls a plurality of areas; when detecting that the ZigBee device controls the plurality of areas, the mobile terminal may display the function data corresponding to each of the plurality of areas in the function data, respectively. Optionally, the function data may include operation function data of the ZigBee device, so that it is possible to detect whether the ZigBee device includes a plurality of operation function data, where each operation function data may be used to characterize and control devices in one area; if yes, the ZigBee device can be judged to control a plurality of areas.
For example, assume that the ZigBee device is a switch that controls the turning on and off of lights of a floor of an office building. The office building is divided into a plurality of areas, and the switch has the functions of single click, double click, long press and the like. One of the lights in one third of the floor can be turned on by clicking, all the lights in the floor can be turned on by clicking twice, and all the lights in the floor can be turned off by pressing for a long time. Since triggering different operations can enable the switch to control the lamps in different areas of the floor to be turned on or off, or different lamps controlled correspondingly by different triggering operation instructions are detected, the switch can be regarded as being capable of controlling a plurality of areas, and a more complex implementation manner can be included in practical implementation, which is not limited herein.
It should be noted that the server stores function data of all ZigBee devices bound to the login account of the mobile terminal, and in order to visually display the control function of the ZigBee devices to the user, the mobile terminal needs to identify the control area of the ZigBee devices in the function data of the ZigBee devices returned by the server. As a way, if the ZigBee device controls a region, and the server correspondingly stores the function data of the ZigBee device, the device type identifier of the ZigBee device, and the region identifier of the controlled region in the data table, as an implementation way, if the mobile terminal recognizes that the function data returned by the server includes a region identifier, it is determined that the ZigBee device controls a region, and therefore the mobile terminal only displays the function data of the ZigBee device and the corresponding controlled region.
As another mode, if the ZigBee device controls multiple regions, and the server stores the function data of the ZigBee device in the data table in correspondence with the device type identifier of the ZigBee device and the region identifiers of the controlled multiple regions, as an implementation mode, if the mobile terminal recognizes that the function data returned by the server includes multiple region identifiers, it is determined that the ZigBee device controls multiple regions, and therefore the mobile terminal displays the ZigBee device and the function data corresponding to the correspondingly controlled multiple regions in different regions.
Step S160: and the mobile terminal sends a shielding instruction to the ZigBee device.
Generally, for some public places, owners do not want the general population to directly control devices, such as lighting fixtures, air conditioners, displays and/or security alarm devices of malls, hospitals, restaurants and office buildings, and professional authorized personnel are needed to turn on or off the related functions. In order to avoid unnecessary loss caused by misoperation of the equipment, the embodiment of the application provides that the physical control function of the designated ZigBee equipment is set to be in a shielding state through the mobile terminal, so that the misoperation of the equipment can be avoided, and further the user experience of the equipment is improved.
Optionally, the ZigBee device may include a plurality of ZigBee devices, and the mobile terminal may implement a physical control function of shielding a designated ZigBee device of the plurality of ZigBee devices by sending a shielding instruction to the ZigBee device, so that the designated ZigBee device does not respond to a control instruction of the corresponding physical controller.
Step S170: and the ZigBee device receives the shielding instruction and shields the physical control function of the ZigBee device according to the shielding instruction.
Optionally, the ZigBee device receives a shielding instruction sent from the mobile terminal, shields a function related to the instruction, and when the physical control function of the ZigBee device needs to be used again, the mobile terminal may be close to the ZigBee device, and the mobile terminal has an operation right only when logging in an account bound to the ZigBee device. Optionally, the mobile terminal may identify the ZigBee device by accessing the database of the server, and if the identification is passed, that is, the cloud verifies that the ZigBee device is bound with the current login account of the mobile terminal, the display interface of the mobile terminal may virtualize an operation control interface corresponding to the ZigBee device to control the ZigBee device, so that the misoperation of the user may be avoided.
In the device control method provided by this embodiment, when it is detected that the ZigBee device is in a network access state, the mobile terminal acquires feature information of the ZigBee device through a short-range wireless communication technology, where the feature information includes a device type identifier of the ZigBee device; then the mobile terminal sends a functional data acquisition request to the server, wherein the functional data acquisition request carries the equipment type identification of the ZigBee equipment; the server receives the function data acquisition request and searches for the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device; the server returns the searched functional data of the ZigBee device to the mobile terminal; then the mobile terminal receives and displays the functions of the ZigBee equipment corresponding to the equipment type identification of the ZigBee equipment, which are returned by the server; then the mobile terminal sends a shielding instruction to the ZigBee device; and the ZigBee device receives the shielding instruction and shields the physical control function of the ZigBee device according to the shielding instruction. The method can realize that the original equipment control operation modes of various different types of equipment are unified into the control of the equipment by using the mobile terminal, and the equipment can be controlled by a touch control interface familiar to a user, so that the operation trouble of the user is avoided; and the mobile terminal can set a physical control function for shielding the designated equipment, so that equipment misoperation in public places is avoided, and the user experience of the equipment is improved.
Referring to fig. 4, a flowchart of an apparatus control method according to an embodiment of the present application is shown, where the embodiment provides an apparatus control method, and a processing flow of a mobile terminal is described in the embodiment, where the method includes:
step S210: when detecting that the ZigBee device is in a network access state, the mobile terminal acquires the characteristic information of the ZigBee device through a short-distance wireless communication technology, wherein the characteristic information comprises a device type identifier of the ZigBee device.
Step S220: and the mobile terminal sends a functional data acquisition request to a server, wherein the functional data acquisition request carries the equipment type identifier of the ZigBee equipment.
Step S230: and the mobile terminal receives the function data of the ZigBee device, corresponding to the device type identifier of the ZigBee device, returned by the server.
Step S240: and the mobile terminal displays the functional data.
In the device control method provided by this embodiment, when it is detected that the ZigBee device is in a network access state, the mobile terminal acquires feature information of the ZigBee device through a short-range wireless communication technology, where the feature information includes a device type identifier of the ZigBee device; then the mobile terminal sends a functional data acquisition request to the server, wherein the functional data acquisition request carries the equipment type identification of the ZigBee equipment; then the mobile terminal receives the function of the ZigBee device corresponding to the device type identification of the ZigBee device returned by the server; and finally, the mobile terminal displays the corresponding function data of the ZigBee device according to the device state identifier. The method can realize that the original equipment control operation modes of various different types of equipment are unified to control the equipment by using the mobile terminal, and the equipment can be controlled by the touch control interface familiar to the user, so that the user operation trouble is avoided, and the user experience of the equipment is further improved.
Referring to fig. 5, a flowchart of an apparatus control method provided in an embodiment of the present application is shown, where the embodiment provides an apparatus control method, and a processing flow of a server is described in the embodiment, where the method includes:
step S310: and the server receives a functional data acquisition request which is sent by a mobile terminal and carries the equipment type identifier of the ZigBee equipment.
Step S320: and the server searches the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device.
Step S330: and the server returns the searched functional data of the ZigBee device to the mobile terminal so that the mobile terminal can display the functional data.
In the device control method provided by this embodiment, a server receives a function data acquisition request carrying a device type identifier of a ZigBee device from a mobile terminal, then searches for function data of the ZigBee device corresponding to the device type identifier of the ZigBee device, and returns the searched function data of the ZigBee device to the mobile terminal, so that the mobile terminal displays the function data. The method can realize that the original equipment control operation modes of various different types of equipment are unified to control the equipment by using the mobile terminal, and the equipment can be controlled by the touch control interface familiar to the user, so that the operation trouble of the user is avoided, and the user experience of the equipment is further improved.
Referring to fig. 6, a block diagram of a device control apparatus according to an embodiment of the present disclosure is shown, where the embodiment provides a device control apparatus 400, which operates on a mobile terminal, and the device control apparatus 400 includes: a characteristic information acquisition module 410, a request sending module 420, a data receiving module 430 and a data display module 440.
The feature information obtaining module 410 is configured to, when it is detected that the ZigBee device is in a network access state, obtain, by the mobile terminal, feature information of the ZigBee device through a short-range wireless communication technology, where the feature information includes a device type identifier of the ZigBee device.
Optionally, the ZigBee device includes an identification code of the ZigBee device, and the device control apparatus 400 further includes a request sending module, where the request sending module is configured to send, to the server, a data query request carrying a login account of the mobile terminal and the identification code of the ZigBee device by the mobile terminal, so that the server searches whether the identification code of the ZigBee device exists under the login account according to the identification code of the ZigBee device.
Optionally, the device control apparatus 400 further includes a data receiving module, where the data receiving module is configured to receive, by the mobile terminal, a first verification key corresponding to the found identifier of the ZigBee device, where the first verification key is returned by the server.
Optionally, the device control apparatus 400 further includes a data sending module, where the data sending module is configured to send the first verification key to the ZigBee device by the mobile terminal, so that the ZigBee device determines whether the first verification key is consistent with the verification key of the ZigBee device stored in the data security storage area of the ZigBee device.
Optionally, the device control apparatus 400 further includes a function starting module, where the function starting module is configured to start an operation function of the ZigBee device corresponding to the authority of the login account of the mobile terminal if the mobile terminal receives a consistent signal returned by the ZigBee device.
A request sending module 420, configured to send a function data obtaining request to a server by the mobile terminal, where the function data obtaining request carries a device type identifier of the ZigBee device.
A data receiving module 430, configured to receive, by the mobile terminal, function data of the ZigBee device, where the function data corresponds to the device type identifier of the ZigBee device, and is returned by the server.
A data display module 440, configured to display the function data by the mobile terminal.
Optionally, the ZigBee device may have a plurality of ZigBee devices, and the device control apparatus 400 further includes a function shielding module, where the function shielding module is configured to shield a physical control function of a designated ZigBee device in the plurality of ZigBee devices, so that the designated ZigBee device does not respond to a control instruction of the corresponding physical controller.
In the device control apparatus provided in this embodiment, when it is detected that the ZigBee device is in a network access state, the mobile terminal acquires feature information of the ZigBee device through a short-range wireless communication technology, where the feature information includes a device type identifier of the ZigBee device; then the mobile terminal sends a functional data acquisition request to the server, wherein the functional data acquisition request carries the equipment type identification of the ZigBee equipment; then the mobile terminal receives the function of the ZigBee device corresponding to the device type identification of the ZigBee device returned by the server; and finally, the mobile terminal displays the corresponding function data of the ZigBee device according to the device state identifier. The device control operation mode of multiple different types of devices originally can be unified to control the devices by using the mobile terminal, the user operation trouble can be avoided by controlling the interface control device in a touch mode familiar to the user, and the user experience of the devices is further improved.
Referring to fig. 7, a block diagram of an apparatus control device according to an embodiment of the present disclosure is shown, where the apparatus control device 500 is operated in a server, and the apparatus control device 500 includes: a request receiving module 510, a data lookup module 520, and a data return module 530.
A request receiving module 510, configured to receive, by the server, a function data acquisition request that is sent by a mobile terminal and carries the device type identifier of the ZigBee device.
Optionally, the device control apparatus 500 further includes an inquiry request receiving module, where the inquiry request receiving module is configured to receive, by the server, a data inquiry request that is sent by the mobile terminal and carries the login account of the mobile terminal and the identification code of the ZigBee device, and the identification code may be used to uniquely identify the ZigBee device.
Optionally, the device control apparatus 500 further includes a data search module, where the data search module is configured to search, by the server, whether the identification code of the ZigBee device exists in the corresponding ZigBee device identification code under the login account of the mobile terminal.
Optionally, the device control apparatus 500 further includes a data returning module, where the data returning module is configured to return a first verification key corresponding to the identification code of the ZigBee device if the identification code of the ZigBee device is found in the corresponding ZigBee device identification code under the login account of the mobile terminal, so that the mobile terminal performs permission verification according to the first verification key. As one mode, the first authentication key receives, at the server, a data query request which is sent by the mobile terminal and carries a login account of the mobile terminal and an identification code of the ZigBee device, and the server receives and stores the authentication key of the ZigBee device sent by the ZigBee device.
A data searching module 520, configured to search, by the server, the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device.
A data returning module 530, configured to return the found function data of the ZigBee device to the mobile terminal by the server, so that the mobile terminal displays the function data.
In the device control apparatus provided in this embodiment, a server receives a functional data acquisition request carrying a device type identifier of a ZigBee device from a mobile terminal, then searches for functional data of the ZigBee device corresponding to the device type identifier of the ZigBee device, and returns the searched functional data of the ZigBee device to the mobile terminal, so that the mobile terminal displays the functional data. The device control operation mode of multiple different types of devices originally can be unified to control the devices by using the mobile terminal, the user operation trouble can be avoided by controlling the interface control device in a touch mode familiar to the user, and the user experience of the devices is further improved.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 8, an embodiment of the present application further provides a network system 10, which includes a ZigBee device 16, a mobile terminal 11, and a server 12. The mobile terminal is used for acquiring the characteristic information of the ZigBee device through a short-distance wireless communication technology when the ZigBee device is detected to be in a network access state, wherein the characteristic information comprises a device type identifier of the ZigBee device; the mobile terminal is also used for sending a functional data acquisition request to the server, wherein the functional data acquisition request carries the equipment type identifier of the ZigBee equipment; the server is used for receiving the function data acquisition request and searching the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device; the server is also used for returning the searched functional data of the ZigBee device to the mobile terminal; the mobile terminal is also used for receiving and displaying the function data of the ZigBee device corresponding to the device type identification of the ZigBee device, which is returned by the server.
Referring to fig. 9, a block diagram of a mobile terminal 11 applicable to the embodiments of the present application is shown, where the mobile terminal 11 may include a memory 111 and one or more processors 113, where the memory 111 and the processors 113 are coupled, and the memory 111 and the processors 113 are connected by communication lines.
The memory 111 may be used to store software programs and modules, such as the method for controlling the device in the embodiment of the present application, and program instructions/modules corresponding to the apparatus, and the processor 113 executes various functional applications and data processing, such as the method for controlling the device provided in the embodiment of the present application, by executing the software programs and modules stored in the memory 111.
The memory 111 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. It will be appreciated that the configuration shown in fig. 9 is merely illustrative, and that mobile terminal 11 may include more or fewer components than shown in fig. 9, or may have a different configuration than shown in fig. 9. The components shown in fig. 9 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 10, a block diagram of a server 12 applicable to the embodiment of the present application is shown, where the server 12 may include a memory 121 and one or more processors 123, where the memory 121 and the processors 123 are coupled, and the memory 121 and the processors 123 are connected by communication lines.
The memory 121 may be used for storing software programs and modules, such as the method for controlling the device in the embodiment of the present application, and program instructions/modules corresponding to the apparatus, and the processor 123 executes various functional applications and data processing, such as the method for controlling the device provided in the embodiment of the present application, by executing the software programs and modules stored in the memory 121.
Memory 121 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. It will be appreciated that the configuration shown in fig. 10 is merely illustrative and that server 12 may include more or fewer components than shown in fig. 10 or have a different configuration than shown in fig. 10. The components shown in fig. 10 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 11, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 600 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (18)

1. An apparatus control method, applied to a mobile terminal, the method comprising:
when detecting that the ZigBee device is in a network access state, the mobile terminal acquires feature information of the ZigBee device through a short-distance wireless communication technology, wherein the feature information comprises a device type identifier of the ZigBee device;
the mobile terminal sends a functional data acquisition request to a server, wherein the functional data acquisition request carries the equipment type identification of the ZigBee equipment;
the mobile terminal receives function data of the ZigBee device, corresponding to the device type identifier of the ZigBee device, returned by the server;
the mobile terminal displays the functional data;
the steps before the mobile terminal acquires the characteristic information of the ZigBee device through the short-distance wireless communication technology after the ZigBee device is detected to be in the network access state further comprise:
the mobile terminal sends a data query request carrying a login account of the mobile terminal and the identification code of the ZigBee device to a server, so that the server can search whether the identification code of the ZigBee device exists under the login account or not according to the identification code of the ZigBee device;
receiving a first verification key which is returned by the server and corresponds to the searched identification code of the ZigBee device;
sending the first verification key to the ZigBee device so that the ZigBee device can judge whether the first verification key is consistent with a verification key of the ZigBee device stored in a data security storage area of the ZigBee device;
and if the mobile terminal receives a consistent signal returned by the ZigBee device, starting an operation function of the ZigBee device corresponding to the authority of the login account.
2. The device control method according to claim 1, wherein the ZigBee device has a plurality of ZigBee devices, the device control method further comprising:
and the mobile terminal shields the physical control function of the designated ZigBee device in the plurality of ZigBee devices so that the designated ZigBee device does not respond to the control instruction of the corresponding physical controller.
3. The device control method according to claim 2, wherein the step of the mobile terminal masking the physical control function of a designated ZigBee device of the plurality of ZigBee devices comprises:
the mobile terminal sends a shielding instruction to the designated ZigBee device;
and indicating the designated ZigBee device to shield the physical control function.
4. The device control method according to claim 1, wherein the step of displaying the function data by the mobile terminal comprises:
detecting whether the ZigBee device controls a plurality of areas;
and when the ZigBee device is detected to control a plurality of areas, the mobile terminal respectively displays the function data corresponding to the plurality of areas in the function data.
5. The device control method according to claim 4, wherein the function data includes operation function data of the ZigBee device, and the step of detecting whether the ZigBee device controls a plurality of zones comprises:
detecting whether the ZigBee device comprises a plurality of operation function data or not, wherein each operation function data is used for representing and controlling the devices in one area;
and if so, judging that the ZigBee device controls a plurality of areas.
6. The device control method according to claim 1, wherein the feature information further includes a device status identifier, the device status identifier is used for representing an operation status of the ZigBee device, and the displaying of the function data by the mobile terminal includes:
displaying the corresponding function of the ZigBee device according to the device state identifier;
when the ZigBee device is in a normal operation state, the mobile terminal displays an operation interface of the ZigBee device or current detection data;
and when the ZigBee device is in an abnormal operation state, the mobile terminal displays the abnormal judgment data of the ZigBee device.
7. The device control method according to any one of claims 1 to 6, wherein the function data acquisition request further carries a firmware version identifier, the firmware version identifier is used for representing a firmware program version of the ZigBee device, and the step of the mobile terminal receiving the function data of the ZigBee device, corresponding to the device type identifier of the ZigBee device, returned by the server includes:
and the mobile terminal receives the function data of the ZigBee device, which is returned by the server and corresponds to the device type identifier and the firmware version identifier of the ZigBee device.
8. An apparatus control method applied to a server, the method comprising:
the server receives a functional data acquisition request which is sent by the mobile terminal and carries the equipment type identifier of the ZigBee equipment;
the server searches for the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device;
the server returns the searched functional data of the ZigBee device to the mobile terminal so that the mobile terminal can display the functional data;
before the step of the server receiving the function data acquisition request carrying the device type identifier of the ZigBee device sent by the mobile terminal, the method further includes:
the server receives a data query request which is sent by the mobile terminal and carries a login account of the mobile terminal and an identification code of the ZigBee device, wherein the identification code is used for uniquely identifying the ZigBee device;
the server searches whether the corresponding ZigBee device identification code under the login account has the identification code of the ZigBee device;
if yes, returning a first verification key corresponding to the identification code of the ZigBee device, so that the mobile terminal can conveniently carry out authority verification according to the first verification key.
9. The device control method according to claim 8, wherein the function data acquisition request further carries a device firmware version identifier of the ZigBee device, and the step of the server searching for the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device includes:
the server inquires the equipment type of the ZigBee equipment according to the equipment type identification of the ZigBee equipment;
and the server reads the functional data of the ZigBee device corresponding to the found device type of the ZigBee device according to the device firmware version identification.
10. An apparatus control method, characterized in that the method comprises:
when detecting that the ZigBee device is in a network access state, the mobile terminal acquires the characteristic information of the ZigBee device through a short-distance wireless communication technology, wherein the characteristic information comprises a device type identifier of the ZigBee device;
the mobile terminal sends a functional data acquisition request to a server, wherein the functional data acquisition request carries the equipment type identification of the ZigBee equipment;
the server receives the function data acquisition request and searches for the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device;
the server returns the searched functional data of the ZigBee device to the mobile terminal;
the mobile terminal receives and displays the function data of the ZigBee equipment corresponding to the equipment type identification of the ZigBee equipment, which is returned by the server;
the steps before the mobile terminal acquires the characteristic information of the ZigBee device through the short-range wireless communication technology after detecting that the ZigBee device is in the network access state further include:
the mobile terminal sends a data query request carrying a login account of the mobile terminal and the identification code of the ZigBee device to a server, so that the server can search whether the identification code of the ZigBee device exists under the login account or not according to the identification code of the ZigBee device;
receiving a first verification key which is returned by the server and corresponds to the searched identification code of the ZigBee device;
sending the first verification key to the ZigBee device so that the ZigBee device can judge whether the first verification key is consistent with a verification key of the ZigBee device stored in a data security storage area of the ZigBee device;
and if the mobile terminal receives a consistent signal returned by the ZigBee device, starting an operation function of the ZigBee device corresponding to the authority of the login account.
11. The apparatus control method according to claim 10, characterized in that the method further comprises:
the mobile terminal sends a shielding instruction to the ZigBee device;
and the ZigBee device receives the shielding instruction and shields the physical control function of the ZigBee device according to the shielding instruction.
12. An apparatus control device, operating in a mobile terminal, the apparatus comprising:
the mobile terminal comprises a characteristic information acquisition module, a short-distance wireless communication module and a communication module, wherein the characteristic information acquisition module is used for acquiring the characteristic information of the ZigBee device through a short-distance wireless communication technology when the ZigBee device is detected to be in a network access state, and the characteristic information comprises a device type identifier of the ZigBee device;
a request sending module, configured to send a functional data acquisition request to a server by the mobile terminal, where the functional data acquisition request carries a device type identifier of the ZigBee device;
the data receiving module is used for receiving the functional data of the ZigBee device, corresponding to the device type identifier of the ZigBee device, returned by the server by the mobile terminal;
the data display module is used for displaying the functional data by the mobile terminal;
the request sending module is further used for sending a data query request carrying a login account of the mobile terminal and the identification code of the ZigBee device to a server by the mobile terminal, so that the server can search whether the identification code of the ZigBee device exists under the login account or not according to the identification code of the ZigBee device;
the data receiving module is further configured to receive a first verification key corresponding to the found identification code of the ZigBee device, and the first verification key is returned by the server; sending the first verification key to the ZigBee device so that the ZigBee device can judge whether the first verification key is consistent with a verification key of the ZigBee device stored in a data security storage area of the ZigBee device; and if the mobile terminal receives a consistent signal returned by the ZigBee device, starting an operation function of the ZigBee device corresponding to the authority of the login account.
13. An apparatus for controlling a device, operating on a server, the apparatus comprising:
the request receiving module is used for receiving a functional data acquisition request which is sent by the mobile terminal and carries the equipment type identifier of the ZigBee equipment;
the data searching module is used for searching the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device by the server;
the data return module is used for returning the searched functional data of the ZigBee device to the mobile terminal by the server so that the mobile terminal can display the functional data;
the request receiving module is further configured to receive a data query request which is sent by the mobile terminal and carries a login account of the mobile terminal and an identification code of the ZigBee device, before the server receives a functional data acquisition request which is sent by the mobile terminal and carries a device type identifier of the ZigBee device, wherein the identification code is used for uniquely identifying the ZigBee device;
the data searching module is further used for the server to search whether the corresponding ZigBee device identification code under the login account has the identification code of the ZigBee device;
the data returning module is further configured to return a first verification key corresponding to the identification code of the ZigBee device if the authentication key exists, so that the mobile terminal performs permission verification according to the first verification key.
14. A network system, comprising: mobile terminal, server and zigBee equipment:
the mobile terminal is used for acquiring the characteristic information of the ZigBee device through a short-distance wireless communication technology when the ZigBee device is detected to be in a network access state, wherein the characteristic information comprises a device type identifier of the ZigBee device;
the mobile terminal is further used for sending a functional data acquisition request to a server, wherein the functional data acquisition request carries the equipment type identifier of the ZigBee equipment;
the server is used for receiving the function data acquisition request and searching the function data of the ZigBee device corresponding to the device type identifier of the ZigBee device;
the server is also used for returning the searched function data of the ZigBee device to the mobile terminal;
the mobile terminal is further used for receiving and displaying the function data of the ZigBee device, corresponding to the device type identifier of the ZigBee device, returned by the server;
the mobile terminal is further used for sending a data query request carrying a login account of the mobile terminal and an identification code of the ZigBee device to a server after the ZigBee device is detected to be in a network access state and before the mobile terminal acquires the characteristic information of the ZigBee device through a short-distance wireless communication technology, so that the server can conveniently search whether the identification code of the ZigBee device exists under the login account or not according to the identification code of the ZigBee device; receiving a first verification key which is returned by the server and corresponds to the searched identification code of the ZigBee device; sending the first verification key to the ZigBee device so that the ZigBee device can judge whether the first verification key is consistent with a verification key of the ZigBee device stored in a data security storage area of the ZigBee device; and if the mobile terminal receives a consistent signal returned by the ZigBee device, starting an operation function of the ZigBee device corresponding to the authority of the login account.
15. The network system of claim 14, wherein the system further comprises:
the mobile terminal is further used for sending a shielding instruction to the ZigBee device;
and the ZigBee device is used for receiving the shielding instruction and shielding the physical control function of the ZigBee device according to the shielding instruction.
16. A mobile terminal comprising a memory, and one or more processors;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
17. A server, comprising a memory, and one or more processors;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 8-9.
18. A computer-readable storage medium, having program code stored therein, wherein the program code when loaded and executed by a processor performs the method of any of claims 1-11.
CN201811395078.2A 2018-11-20 2018-11-20 Equipment control method and device, mobile terminal and server Active CN109413515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811395078.2A CN109413515B (en) 2018-11-20 2018-11-20 Equipment control method and device, mobile terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811395078.2A CN109413515B (en) 2018-11-20 2018-11-20 Equipment control method and device, mobile terminal and server

Publications (2)

Publication Number Publication Date
CN109413515A CN109413515A (en) 2019-03-01
CN109413515B true CN109413515B (en) 2021-08-31

Family

ID=65474371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811395078.2A Active CN109413515B (en) 2018-11-20 2018-11-20 Equipment control method and device, mobile terminal and server

Country Status (1)

Country Link
CN (1) CN109413515B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110161990A (en) * 2019-04-28 2019-08-23 安恩达科技(深圳)有限公司 The control method and its device and readable storage medium storing program for executing of Intelligent switch controller
CN110430558B (en) * 2019-06-26 2023-04-07 深圳绿米联创科技有限公司 Device control method, device, electronic device and storage medium
CN112448832B (en) * 2019-08-30 2023-12-26 广东美的制冷设备有限公司 Household appliance network distribution method, device and equipment
CN111049711B (en) * 2019-11-28 2022-01-11 苏宁智能终端有限公司 Device control right sharing method and device, computer device and storage medium
CN110972080B (en) * 2019-11-29 2022-03-04 广东好太太智能家居有限公司 ZigBee gateway searching method, equipment and storage medium
CN111372231A (en) * 2020-03-11 2020-07-03 杭州涂鸦信息技术有限公司 Z-Wave S2 equipment network access method and system and equipment thereof
CN113572800B (en) * 2020-09-10 2022-09-16 华为技术有限公司 Method, system, server and storage medium for acquiring download information of application
CN112672330A (en) * 2020-12-07 2021-04-16 深圳市晨北科技有限公司 Communication method and system, device and storage medium
CN113064641B (en) * 2021-03-15 2023-12-22 无锡小天鹅电器有限公司 Starting method and system of preset platform of electric control equipment, terminal and electric control equipment
CN115327998A (en) * 2022-09-08 2022-11-11 蔚来汽车科技(安徽)有限公司 Mobile terminal for industrial human-computer interface and use method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104749996A (en) * 2015-03-05 2015-07-01 南京物联传感技术有限公司 Remote control method of ZigBee remote controller
CN105204353A (en) * 2015-09-07 2015-12-30 北京君正集成电路股份有限公司 Control method and control system
CN105357629A (en) * 2015-11-20 2016-02-24 青岛海尔股份有限公司 Method and device used for binding mobile terminal with intelligent household electrical appliance
CN107197420A (en) * 2017-05-16 2017-09-22 深圳市欧瑞博电子有限公司 A kind of closely information interacting method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2779598B1 (en) * 2013-03-14 2019-10-09 Samsung Electronics Co., Ltd. Method and apparatus for operating electronic device with cover

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104749996A (en) * 2015-03-05 2015-07-01 南京物联传感技术有限公司 Remote control method of ZigBee remote controller
CN105204353A (en) * 2015-09-07 2015-12-30 北京君正集成电路股份有限公司 Control method and control system
CN105357629A (en) * 2015-11-20 2016-02-24 青岛海尔股份有限公司 Method and device used for binding mobile terminal with intelligent household electrical appliance
CN107197420A (en) * 2017-05-16 2017-09-22 深圳市欧瑞博电子有限公司 A kind of closely information interacting method and system

Also Published As

Publication number Publication date
CN109413515A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109413515B (en) Equipment control method and device, mobile terminal and server
CN109587018B (en) Equipment configuration method, device, network system and mobile terminal
US9883571B2 (en) Systems and methods of controlling light sources according to location
CN108092861B (en) Configuration method for realizing equipment linkage, equipment linkage control method and device
CN108205282B (en) Intelligent control panel and control method and control device thereof
CN111262761B (en) Electronic device and method for operating electronic device
US9602172B2 (en) User identification and location determination in control applications
CN108573596B (en) Control method
US10212047B2 (en) Modular interface framework for network devices
US9204291B2 (en) User identification and location determination in control applications
CN109660387B (en) Method and device for managing equipment configuration data, server and storage medium
CN108141393A (en) Include the domestic automation system and correlation technique of device subscription pairing
US20150198938A1 (en) Systems, devices, methods and graphical user interface for configuring a building automation system
CN106165441B (en) Server device, control system, and control method
WO2018129515A1 (en) Method, system and device for connecting devices
CN111025925A (en) Intelligent home furnishing system based on cloud computing
CN108234238B (en) Commissioning and personalization device in a local area network
CN109753034B (en) Control method, control device, electronic equipment and storage medium
CN110278135B (en) Equipment position searching method, device, gateway and storage medium
CN109640326B (en) Authority management method, device and system and mobile terminal
US9524174B2 (en) Configuration assistant for a control system within an operational environment
CN106125568A (en) Smart Home management method and device
CN108803371B (en) Control method and device for electrical equipment
CN109240098B (en) Equipment configuration method and device, terminal equipment and storage medium
CN108600062B (en) Control method, device and system of household appliance

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