CN112468595B - Equipment control method, device and system based on gateway - Google Patents

Equipment control method, device and system based on gateway Download PDF

Info

Publication number
CN112468595B
CN112468595B CN202011386679.4A CN202011386679A CN112468595B CN 112468595 B CN112468595 B CN 112468595B CN 202011386679 A CN202011386679 A CN 202011386679A CN 112468595 B CN112468595 B CN 112468595B
Authority
CN
China
Prior art keywords
equipment
gateway
information
networking
control
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
CN202011386679.4A
Other languages
Chinese (zh)
Other versions
CN112468595A (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 Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202011386679.4A priority Critical patent/CN112468595B/en
Publication of CN112468595A publication Critical patent/CN112468595A/en
Application granted granted Critical
Publication of CN112468595B publication Critical patent/CN112468595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/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
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • G16Y40/35Management of things, i.e. controlling in accordance with a policy or in order to achieve specified objectives
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a method, a device and a system for controlling equipment based on a gateway, wherein the method for controlling the equipment based on the gateway comprises the following steps: after the gateway is inserted, acquiring equipment information of the networking equipment according to the gateway; and sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction. The technical problems that the equipment networking cost is high and the networking operation is complex when an independent gateway or equipment fusion gateway function is used for networking are solved, the low-cost gateway setting is realized through a mode of externally connecting one gateway, and the control of networking equipment is carried out based on the gateway.

Description

Equipment control method, device and system based on gateway
Technical Field
The application relates to the technical field of smart televisions, in particular to a gateway-based equipment control method, device and system.
Background
In the current field of internet of things, a gateway is generally used to connect an object-side device with the internet. Current gateway products are broadly divided into two categories: the device comprises an independent gateway (such as a zigbee gateway and a Sub-1G gateway) and a device integration gateway function (such as a router and an intelligent sound box), wherein when the independent gateway is used for device networking, the following problems can be caused: in the process of network distribution of a gateway or equipment, auxiliary operation needs to be carried out by means of a mobile phone; in the operation and process, the mobile phone and the gateway need to communicate through the internet, and the success rate is extremely low in the poor network state; the independent gateway is expensive and has no other functions; the equipment needs an independent power supply system to supply power to the equipment, so that the attractiveness of the equipment is difficult to ensure in placement and installation; the performance of the equipment is limited, and complex operation and concurrent networking cannot be performed. When the device convergence gateway function is used for networking, the following problems can be caused: the overall cost of the equipment is higher than that of the same type of products without the gateway; after the user has owned the common device, the power for repeatedly purchasing products for the gateway function is insufficient; after the gateway function is updated, a whole set of fusion equipment needs to be purchased again; in the process of network distribution of a gateway or equipment, auxiliary operation needs to be carried out by means of a mobile phone; in the operation and process, the mobile phone and the gateway need to communicate through the internet, and the success rate is extremely low in the poor network state. In summary, no matter the "independent gateway" or the "device convergence gateway function" is used for networking, the problems of high device networking cost and complex networking operation exist.
Disclosure of Invention
The embodiment of the application provides a gateway-based equipment control method, device and system, and aims to solve the problems of high equipment networking cost and complex networking operation when an independent gateway or an equipment fusion gateway function is used for networking.
In order to achieve the above object, an aspect of the present application provides a gateway-based device control method, including:
after the gateway is inserted, acquiring equipment information of the networking equipment according to the gateway;
and sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction.
Optionally, the step of sending a control instruction to the networked device according to the device information includes:
judging whether the Internet of things equipment is combined control equipment or not according to the equipment information;
if the Internet of things equipment is non-combined control equipment, sending a first control instruction to the networking equipment, wherein the first control instruction is used for controlling the operation of single equipment; alternatively, the first and second electrodes may be,
and if the Internet of things equipment is combined control equipment, sending a second control instruction to the networking equipment, wherein the second control instruction is used for controlling the operation of a plurality of pieces of equipment.
Optionally, after the step of sending the control instruction to the network-connected device according to the device information, the method further includes:
receiving abnormal information sent by the Internet of things equipment based on the gateway;
and sending prompt information of equipment abnormity to a user based on the abnormity information, and maintaining the abnormal equipment by the user based on the prompt information.
Optionally, after the step of inserting the gateway, the method further includes:
searching the current Internet of things equipment based on the gateway to obtain the Internet of things equipment which is not networked;
and carrying out network distribution on the Internet of things equipment which is not networked.
Optionally, after the step of inserting the gateway, the method further includes:
receiving a modification instruction of the Internet of things equipment;
and modifying the equipment information of the Internet of things equipment according to the modification instruction.
Optionally, the step of obtaining the device information of the networked device according to the gateway includes:
setting a control application program of the gateway;
device information of the networked device is obtained based on the control application.
Optionally, before the step after the gateway is inserted, the method further includes:
setting a cache unit;
and caching the data to be processed by the gateway based on the caching unit.
Optionally, after the step of obtaining the device information of the networked device according to the gateway after the gateway is inserted, the method further includes:
and if the gateway is pulled out, the equipment information of the Internet of things equipment cannot be acquired.
In addition, to achieve the above object, another aspect of the present application further provides an apparatus for controlling a gateway-based device, the apparatus including:
the acquisition module is used for acquiring equipment information of the networking equipment according to the gateway after the gateway is inserted;
and the control module is used for sending a control instruction to the networking equipment according to the equipment information, and the Internet of things equipment executes corresponding control operation based on the control instruction.
In addition, in order to realize the above object, another aspect of the present application further provides an internet of things system, which is applied to the gateway-based device control apparatus, the system includes a gateway terminal, a television terminal, and an internet of things module terminal.
In the embodiment, after the gateway is inserted, the device information of the networking device is acquired according to the gateway; and sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction. The technical problems that equipment is high in networking cost and complex in networking operation when an independent gateway or equipment fusion gateway function is used for networking are solved, the low-cost gateway is set in a mode of externally connecting one gateway, and the networking equipment is controlled based on the gateway.
Drawings
Fig. 1 is a schematic diagram of a television structure of a hardware operating environment according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a first embodiment of a gateway-based device control method according to the present application;
fig. 3 is a schematic flowchart of a second embodiment of the gateway-based device control method according to the present application;
fig. 4 is a schematic flowchart of a third embodiment of the gateway-based device control method according to the present application;
fig. 5 is a schematic flowchart of the gateway-based device control method before the step of inserting the gateway;
fig. 6 is a schematic flowchart of a process of sending a control instruction to the networking device according to the device information in the gateway-based device control method according to the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: after the gateway is inserted, acquiring equipment information of the networking equipment according to the gateway; and sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction.
Because the existing equipment is networked by using an independent gateway or a device fusion gateway function, the problems of high equipment networking cost and complex networking operation exist. After the gateway is inserted, equipment information of the networking equipment is obtained according to the gateway; and sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction. The technical problems that equipment is high in networking cost and complex in networking operation when an independent gateway or equipment fusion gateway function is used for networking are solved, the low-cost gateway is set in a mode of externally connecting one gateway, and the networking equipment is controlled based on the gateway.
As shown in fig. 1, fig. 1 is a schematic diagram of a television structure of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the television may include: a processor 1001, e.g. a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the television may also include a camera, RF (Radio Frequency) circuitry, sensors, remote controls, audio circuitry, wiFi modules, detectors, and the like. Of course, the television may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, and a temperature sensor, which are not described herein again.
Those skilled in the art will appreciate that the television architecture shown in fig. 1 does not constitute a limitation of television apparatus and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a gateway-based device control program.
In the television shown in fig. 1, the network interface 1004 is mainly used for connecting a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to invoke the gateway-based device control program in the memory 1005 and perform the following operations:
after the gateway is inserted, acquiring equipment information of the networking equipment according to the gateway;
and sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a gateway-based device control method according to the present application.
While a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown or described herein.
The gateway-based device control method comprises the following steps:
step S10, after a gateway is inserted, equipment information of networking equipment is obtained according to the gateway;
the application environment of the method provided in this embodiment is applied to a television, which may be an intelligent device with an IOS or Android operating system, and it should be noted that the method provided in this embodiment may also be applied to an intelligent terminal such as a smart phone or a tablet computer, and is not limited herein.
The television side needs to install a control application program APP of the gateway, and the APP provides networking capability for the television system to communicate with the cloud side (based on combination protocols such as MQTT \ HTTP \ SSE \ HTTP2 and the like). Simultaneously APP provides for the gateway based on the powerful operational capability of the TV: FIFO, FOTA, data compression and decompression, timing scheduling and the like. At the gateway end, the gateway communicates with the television end APP through a communication protocol (such as USB-HID), analyzes/sends the message of the APP end based on the communication protocol (such as ProtoBufer), and finally abstracts the communication between the Internet of things module end and the television host end.
After the television is inserted into the gateway dongle, the gateway establishes network connection with the Internet of things equipment in the Internet of things module end, and the television can check states, such as states, types, names, offline online and abnormal states of the Internet of things equipment having association relation with the gateway in real time through the APP, such as the equipment names, operating parameters, equipment types and the like of air conditioners associated with the gateway through the APP.
And further, after the television is inserted into the gateway dongle, an automatic search function is started to search the current home Internet of things equipment, and when a new Internet of things equipment without a distribution network is found, the television interface prompts a user that the Internet of things equipment without the distribution network exists, and asks the user whether the equipment needs to be added into a wireless network where the gateway is located currently. When the television receives information when a user determines that the Internet of things equipment without a distribution network is added to a wireless network where the user is located, the matched network configuration information is obtained, for example, service Set Identification (SSID) and passwords in the networking configuration information are collected, and the distribution network setting is performed on the Internet of things equipment without the distribution network, so that the Internet of things equipment without the distribution network is accessed to a corresponding local area network. When the distribution network is set, the television also needs to acquire the device types of the internet of things devices which are not distributed with the network, such as an intelligent switch, an intelligent lamp, an intelligent refrigerator and the like, and sets distribution network information based on the device types, and the internet of things devices which are not distributed with the network are distributed with the network according to the distribution network information. Specifically, in a networking UI setting interface of the television, a user can set information such as names and locations of devices in the internet of things, for example, a refrigerator in a kitchen for networking, or an atmosphere light in a living room for networking. The internet of things equipment can be further set into a combined control relation, for example, a certain switch device and other lights in a house are combined to achieve a leaving mode, a returning mode and the like, or when the air conditioner starts a refrigeration mode, a window is automatically closed and the like. After the television distributes the network to the Internet of things equipment which is not distributed with the network, the equipment information such as equipment name, equipment type, equipment position and the like can be automatically stored, so that the equipment can still be used after the environment is changed.
Because the television, the mobile phone or other control terminals do not record the affiliation of the equipment, after the gateway is pulled out, the control terminals such as the television, the mobile phone and the like lose the control capability of all the equipment and cannot check the equipment information of the internet of things equipment associated with the gateway in the APP. Until the gateway is inserted into the television again, the television, the mobile phone and other control terminals (such as web pages and the like) using the same account with the television have various control devices associated with the gateway and the gateway in the control APP of the internet of things.
The gateway dongle is a small plug-in capable of being attached to a parallel port, a serial port or a USB of a computer, comprises a factory-burned EPROM and a customized application-specific integrated circuit, and belongs to hardware protection equipment. The gateway dongle is composed of a USB interface, an MCU controller, a wireless communication component and the like, and gateway equipment is connected with a television through a standard USB-Type-A, so that the television has specific control capability on gateway down-connection equipment. The gateway serves as a USB-Device end, the gateway wireless communication component uses SUB-1G (frequency is set to 433 MHz) to communicate with the equipment, wherein the communication function is not limited to the SUB-1G, and BLE, BLE-MESH, zigbee, BLE-MESH, lora and other wireless protocols can be used for substitution. Further, the gateway itself has a persistent storage capability for storing the distribution network information of the internet of things module, and meanwhile, the gateway is used for realizing software upgrading according to four data partitions, which are respectively: boot partition, which is used for guiding software to run or finishing program upgrade; a Data partition for storing device Data; a program partition for storing a runnable Freetos system and associated logic code; and the Update partition is used for storing a program which can be run and is carried to the program partition by the boot after the upgrade is finished.
Because the operational capability and the peripheral functions of the current television are rich, the gateway can directly utilize the functions of voice control, a dual-frequency WIFI network, man-machine interaction (display, remote control and the like) and the like of the television, and the gateway can realize additional functions of intelligent sound boxes, large-screen control, voice control and the like without internally arranging related functions, but the cost of any hardware cannot be increased for the functions, and the cost of the gateway is effectively reduced.
Further, referring to fig. 5, before the step after the gateway is inserted, the method further includes:
step S11, a cache unit is arranged;
and step S12, caching the data to be processed by the gateway based on the caching unit.
The television is provided with a larger FIFO buffer unit for buffering the data to be processed by the gateway, wherein the FIFO is a first-in first-out buffer, the data received by the television can be first-in FIFO and does not need to be immediately stored in the gateway, so that the burden of the gateway can be reduced. Similarly, for the transmission data, the data to be transmitted may be written into the FIFO together, and then sequentially transmitted to the gateway in the order of writing. By arranging the FIFO buffer unit, the processing pressure of the gateway dongle can be reduced, and the system stability is greatly improved.
And S20, sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction.
When the television acquires the equipment information through the gateway, a control instruction is sent to the Internet of things equipment based on the equipment information, and after the Internet of things equipment receives the control instruction, corresponding control operation is executed, wherein the control instruction can be an opening/closing instruction, an operation parameter adjusting instruction and the like. For example: the television determines that the air conditioner is in a standby state through the equipment information, the current indoor temperature is 30 ℃, namely the temperature is too high, and at the moment, the television can send a control instruction to the air conditioner; after receiving the control instruction, the air conditioner acquires control parameters, and if the current control parameters are starting, the air conditioner is switched to the starting state from the standby state and operates the refrigeration mode and the refrigeration temperature is 25 ℃, the air conditioner is switched to the cooling mode and operates the refrigeration mode and the refrigeration temperature is 25 ℃.
Further, referring to fig. 6, the step of sending a control instruction to the networked device according to the device information includes:
step S21, judging whether the Internet of things equipment is combined control equipment or not according to the equipment information;
step S22, if the Internet of things equipment is non-combined control equipment, a first control instruction is sent to the networking equipment, and the first control instruction is used for controlling the operation of single equipment; alternatively, the first and second electrodes may be,
and S23, if the Internet of things equipment is combined control equipment, sending a second control instruction to the networking equipment, wherein the second control instruction is used for controlling the operation of a plurality of pieces of equipment.
The method comprises the steps that linkage scene modes such as a home/away scene, an air conditioning scene, a washing machine scene and the like are preset by a user in a television, and a main control device (namely a linkage control device) and a controlled device are arranged in each linkage scene mode, wherein the main control device and the controlled device have an association relation. For example, in a home/leaving scenario, the master control device is an intelligent door lock, the controlled device is an intelligent lamp tube in a living room, and when the intelligent door lock is controlled to open a door, the intelligent lamp tube in the living room is automatically opened; or in the air-conditioning scene, the main control device is an air conditioner, the controlled devices are an intelligent window and an intelligent fan, and when the air conditioner is controlled to start the refrigeration mode, the intelligent window is automatically closed and the intelligent fan is automatically started.
The television can determine whether the current networking equipment needing to be controlled is joint control equipment or not based on the information acquired from the APP, and if the Internet of things equipment is non-joint control equipment, a first control instruction is sent to the networking equipment, wherein the first control instruction is used for controlling the operation of single equipment. For example: if the atmosphere lamp in the living room is the non-joint control device, when the current television sends a turn-on instruction to the atmosphere lamp in the living room, the atmosphere lamp executes automatic turn-on operation. And if the Internet of things equipment is the combined control equipment, sending a second control instruction to the networking equipment, wherein the second control instruction is used for controlling the operation of the plurality of equipment. For example: if the air conditioner is combined control equipment, the controlled equipment corresponding to the air conditioner is an intelligent window and an intelligent fan, when the television sends a refrigerating operation instruction to the air conditioner, the air conditioner executes refrigerating operation, the intelligent window is automatically closed, and the intelligent fan is automatically opened. The television set can control the operation parameters of the controlled equipment, for example, the gear of the intelligent fan is controlled to be the first gear, and the wind direction is up-down wind sweeping.
After the gateway is inserted, the current internet of things equipment is searched to obtain the internet of things equipment without a distribution network, and the internet of things equipment without the distribution network is distributed to obtain the networking equipment; and acquiring equipment information of the networking equipment based on the gateway, sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the Internet of things equipment based on the control instruction. The networking control of the equipment is realized by adding a gateway USB-dongle outside the television, and the gateway equipment only needs to have basic wireless functions (networking, control and data acquisition) and USB functions, so that the cost advantage is realized in design cost and product volume, and meanwhile, the control of the networking equipment is realized based on the gateway.
Further, referring to fig. 3, a second embodiment of the gateway-based device control method of the present application is provided.
The second embodiment of the gateway-based device control method is different from the first embodiment of the gateway-based device control method in that, after the step of sending the control instruction to the networked device according to the device information, the method further includes:
step S24, receiving abnormal information sent by the Internet of things equipment based on the gateway;
and S25, sending prompt information of equipment abnormity to a user based on the abnormity information, and maintaining the abnormal equipment by the user based on the prompt information.
When abnormal conditions such as consumable exhaustion, equipment failure and the like occur, the Internet of things equipment automatically sends abnormal information to the control terminal, and when the television receives the abnormal information, the television acquires information such as equipment type, equipment model, equipment position, abnormal reason and the like carried in the abnormal information, generates prompt information of equipment abnormality based on the information and sends the prompt information to a user; the prompt message can be sent to the mobile phone of the user, or the voice prompt message can be directly sent. After receiving the prompt message of the abnormal equipment, the user modifies the equipment according to the prompt message, for example, after the filter element of the water purifier is expired, the television sends the abnormal prompt message of the filter element to the user for prompting the user to replace the filter element.
Furthermore, the television can also collect common abnormal information of each networking device in advance, extract abnormal characteristic information from the abnormal information, establish an abnormal database based on the characteristic information, and set one or more solutions for each abnormal condition in the database. When the television receives the abnormal information sent by the networking equipment, the characteristic information in the abnormal information is obtained, the characteristic information is matched with the characteristic information in the abnormal database, and a corresponding solution is determined. For example: if the abnormal information currently received by the television is that the rotating shaft of the fan does not rotate, there may be various reasons for the abnormal information, for example: the lubricating oil is not arranged on the rotating shaft of the fan; or due to the overlarge gap of the rotating shaft of the fan; or a damaged line. The corresponding solution is as follows: the first scheme is as follows: adding lubricating oil to the rotating shaft; scheme II: adjusting the gasket after the motor is disassembled; the third scheme is as follows: and detecting each line of the wiring, and replacing the damaged line.
In the embodiment, the information type of the equipment information is determined, and if the information type is abnormal information of the networking equipment, prompt information of the equipment abnormality is sent to the user, so that the user can maintain the abnormal equipment based on the prompt information, and the normal operation and safety of the equipment are ensured.
Further, referring to fig. 4, a third embodiment of the gateway-based device control method of the present application is provided.
The third embodiment of the gateway-based device control method differs from the first and second embodiments of the gateway-based device control method in that, after the step of inserting the gateway, the method further comprises:
step S13, receiving a modification instruction of the Internet of things equipment;
and S14, modifying the equipment information of the equipment of the Internet of things according to the modification instruction.
After the television is plugged into the gateway, information modification can be performed on the networked equipment, such as modifying information of equipment name, model and the like, or deleting certain networked equipment and the like. Specifically, when the television receives a modification instruction of the internet of things device, modification content corresponding to the modification instruction is obtained, and information of the internet of things device is modified based on the modification content. For example: the current modification information is that the name of the air conditioner is modified into 'air conditioner A', and the original name of the air conditioner is modified into 'air conditioner A' by the television; or the current modification information is to delete the controlled device (fan) in the air-conditioning scene, i.e. to remove the fan from the air-conditioning scene.
According to the embodiment, the modification instruction of the Internet of things equipment is received, and the information of the Internet of things equipment is modified based on the modification instruction, so that the equipment information can be flexibly and conveniently modified to meet the requirements of users.
The present application further provides a gateway-based device control apparatus, which in an embodiment includes a memory, a processor, and a gateway-based device control program stored in the memory and executable on the processor, where the gateway-based device control program implements the following steps when executed by the processor:
after the gateway is inserted, acquiring equipment information of the networking equipment according to the gateway;
and sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the equipment of the Internet of things based on the control instruction.
In one embodiment, the gateway-based device control apparatus includes: the device comprises an acquisition module and a control module;
the acquisition module is used for acquiring equipment information of the networking equipment according to the gateway after the gateway is inserted;
and the control module is used for sending a control instruction to the networking equipment according to the equipment information, and the Internet of things equipment executes corresponding control operation based on the control instruction.
Further, the control module comprises a judging unit;
the judging unit is used for judging whether the Internet of things equipment is combined control equipment or not according to the equipment information;
the judging unit is further configured to send a first control instruction to the networking device if the internet of things device is a non-joint control device, where the first control instruction is to control operation of a single device; alternatively, the first and second electrodes may be,
the judging unit is further configured to send a second control instruction to the networking device if the internet of things device is a combined control device, where the second control instruction is to control operation of multiple devices.
Further, the control module further comprises a receiving unit and a sending unit;
the receiving unit is used for receiving abnormal information sent by the Internet of things equipment based on the gateway;
and the sending unit is used for sending prompt information of equipment abnormity to a user based on the abnormity information, and the user maintains the abnormal equipment based on the prompt information.
Further, the acquisition module comprises a search unit and a distribution network unit;
the searching unit is used for searching the current Internet of things equipment based on the gateway to obtain the Internet of things equipment which is not networked;
and the distribution network unit is used for distributing the network to the Internet of things equipment which is not networked.
Further, the acquisition module further comprises a receiving unit and a modifying unit;
the receiving unit is used for receiving a modification instruction of the Internet of things equipment;
the modification unit is used for modifying the equipment information of the Internet of things equipment according to the modification instruction.
Further, the acquisition module further comprises a setting unit and an acquisition unit;
the setting unit is used for setting a control application program of the gateway;
the acquisition unit is used for acquiring the equipment information of the networking equipment based on the control application program.
Further, the obtaining module further comprises a cache unit;
the setting unit is also used for setting a cache unit;
and the cache unit is used for caching the data to be processed by the gateway based on the cache unit.
Further, the acquiring module further comprises a judging unit;
and the judging unit is used for not obtaining the equipment information of the Internet of things equipment if the gateway is pulled out.
The implementation of the functions of each module of the gateway-based device control apparatus is similar to the process in the method embodiment, and is not described in detail here.
In addition, this application still provides an thing networking systems, is applied to equipment control device based on the gateway, the system includes gateway end, TV end and thing networking module end.
The television end has basic networking and app installation capabilities and USB expansion capabilities; the gateway end represents an internet of things expansion gateway component of the television and is connected with the television through a USB port; the terminal of the Internet of things module refers to equipment of the Internet of things, such as a refrigerator, a washing machine, an air conditioner, a switch and the like, meanwhile, the Internet of things module is divided into a server and a client, the server can communicate with the gateway, and the client is used as a wireless expansion remote controller of the server and does not directly communicate with the gateway except for a distribution network. The internet of things system further comprises a control terminal and a server side, wherein the control terminal refers to a mobile phone APP, a computer, a third-party cloud docking platform and the like, and the main functions of the control terminal are to control the object side equipment to be distributed/networked, equipment control, voice recording and uploading, data visualization and the like. The control terminal is connected to a virtualized cloud server (comprising a database, a user system, a service server and the like) through a load balancing server. The server side realizes the functions of caching/forwarding of equipment control information, voice instruction recognition and semantic recognition, scene issuing and triggering and the like.
Furthermore, the television end is used as a host for uploading and issuing data, and as most of current televisions already have the function of screen-off standby, the system stability and the operational capability of the television are obviously lower than those of a common gateway system. Therefore, the method is very suitable for being used as a data transcoding and forwarding processing unit. At the television end, the system realizes the communication between the data and the gateway by realizing the forms of data analysis, transcoding, grouping, compression and the like. Meanwhile, the larger FIFO buffer unit is arranged and used for buffering the data to be processed by the gateway, so that the processing pressure of the gateway dongle can be reduced, and the system stability is greatly improved.
The gateway end communicates through a USB interface (USB-HID-CUSTOM) protocol, and uses a communication protocol, such as Protobuf, to realize data structured coding and data compression. Meanwhile, in the program, the equipment control task and the gateway function are divided into two parts, the equipment function refers to the control and monitoring of the function and the state of the equipment of the Internet of things, and the gateway function mainly manages the local linkage and equipment combination relation.
The server side of the module of the Internet of things is mainly used as a data communication component of the equipment of the Internet of things (such as a door lock, a switch, an on-off device and the like), and the module has the functions of a gateway distribution network, remote controller adaptation, data communication, equipment control and the like. The client of the internet of things module is actually a similar remote controller device only having one-way broadcast communication, and the main function is key expansion of the server of the internet of things module or a trigger signal of a gateway linkage function.
The Internet of things system solves the problems of high equipment networking cost and complex networking operation when an independent gateway or an equipment fusion gateway function is used for networking in a mode of externally connecting a gateway, realizes low-cost gateway setting, and controls networking equipment based on the gateway.
In addition, the television comprises a memory, a processor and a gateway-based device control method program which is stored in the memory and runs on the processor, the television starts an automatic search function after the gateway is inserted, and when a new Internet of things device which is not provided with a network is found to be needed, a television interface prompts a user that the new device exists and inquires whether the user needs to add the device to a wireless network where the gateway is located currently. If the user determines to add the equipment, the name, the position and other information (such as a living room lamp, an atmosphere lamp and the like) of the equipment of the Internet of things can be set according to the type and the personal habit of the equipment; or the internet of things equipment is set in a combined control relationship (for example, a control panel is linked with other equipment, for example, a certain switch equipment is combined with other lights in a house to realize a leaving mode and a returning mode, etc.). After the TV is added with the additive networking equipment, the gateway can automatically store the equipment information so as to be convenient for use after the environment is changed. Further, after the internet of things equipment is added into the network, under the condition that the television power supply is connected, the equipment can be used by a mobile phone, a television remote controller, voice, a local control panel and the like. After the television is accessed to the gateway, the states of the equipment, such as the state, the type, the name, the offline online state, the abnormal state and the like, can be checked, and control can be issued, such as the control of the opening and the closing of an air conditioner; or combining a plurality of device states into a scene mode and controlling. When the internet of things equipment is exhausted in consumable items and equipment fails, the television can obtain abnormal information and give and prompt according to related abnormity, and if the filter element of the water purifier is expired, a user can be guided to replace the filter element. Moreover, after the gateway is inserted into the television, the user can modify and delete the name of the internet of things device through the television. By externally connecting a gateway, when an independent gateway or equipment is used for networking by fusing gateway functions, the method has the problems of high equipment networking cost and complex networking operation, realizes the low-cost gateway setting, and controls the networking equipment based on the gateway.
Further, the present application provides a computer-readable storage medium having stored thereon a gateway-based device control method program, which when executed by a processor, implements the steps of the gateway-based device control method as described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (8)

1. A device control method based on a gateway is characterized by being applied to an intelligent terminal; the method comprises the following steps:
setting an FIFO cache unit on the intelligent terminal;
caching the data to be processed by the gateway based on the FIFO cache unit;
after the gateway is inserted, acquiring equipment information of the networking equipment according to the gateway;
sending a control instruction to the networking equipment according to the equipment information, and executing corresponding control operation by the networking equipment based on the control instruction;
after a gateway is inserted, searching for current networking equipment based on the gateway, when new networking equipment which is not networked is found, prompting that the networking equipment which is not networked exists, inquiring whether the networking equipment which is not networked is added to a wireless network where the gateway is located currently, when response information for determining that the networking equipment which is not networked is added to the wireless network is received, obtaining matched network configuration information and equipment types of the networking equipment which is not networked, setting distribution network information based on the network configuration information and the equipment types, and carrying out distribution network setting on the networking equipment which is not networked according to the configuration information so that the networking equipment which is not networked accesses to a corresponding local area network, wherein the gateway communicates with a control application program of the intelligent terminal through a USB-HID communication protocol, and analyzes or sends a message of the control application program of the intelligent terminal based on the ProtoBufer communication protocol so that the networking equipment communicates with the intelligent terminal.
2. The gateway-based device control method according to claim 1, wherein the step of sending a control instruction to the networked device according to the device information comprises:
judging whether the networking equipment is combined control equipment or not according to the equipment information;
if the networking equipment is non-joint control equipment, sending a first control instruction to the networking equipment, wherein the first control instruction is used for controlling the operation of single equipment; alternatively, the first and second electrodes may be,
and if the networking equipment is the joint control equipment, sending a second control instruction to the networking equipment, wherein the second control instruction is used for controlling the running of the plurality of equipment.
3. The gateway-based device control method according to claim 1, wherein after the step of sending the control instruction to the networked device according to the device information, further comprising:
receiving abnormal information sent by the networking equipment based on the gateway;
and sending prompt information of equipment abnormity to a user based on the abnormity information, and maintaining the abnormal equipment by the user based on the prompt information.
4. The gateway-based device control method according to any one of claims 1 to 3, further comprising, after the step of inserting a gateway:
receiving a modification instruction of the networking device;
and modifying the equipment information of the networking equipment according to the modification instruction.
5. The gateway-based device control method according to any one of claims 1 to 3, wherein the step of acquiring device information of networked devices according to the gateway includes:
provided with said gateway controlling the application program;
device information of the networked device is obtained based on the control application.
6. The gateway-based device control method according to claim 1, wherein after the step of obtaining the device information of the networked device according to the gateway after the gateway is inserted, the method further comprises:
and if the gateway is pulled out, the equipment information of the networking equipment cannot be acquired.
7. An apparatus for gateway-based device control, the apparatus comprising:
the acquisition module is used for setting an FIFO cache unit on the intelligent terminal; caching the data to be processed by the gateway based on the FIFO cache unit; after the gateway is inserted, acquiring equipment information of the networking equipment according to the gateway;
the control module is used for sending a control instruction to the networking equipment according to the equipment information, and the networking equipment executes corresponding control operation based on the control instruction;
after a gateway is inserted, searching for current networking equipment based on the gateway, when new networking equipment which is not networked is found, prompting that the networking equipment which is not networked exists, inquiring whether the networking equipment which is not networked is added to a wireless network where the gateway is located currently, when response information for determining that the networking equipment which is not networked is added to the wireless network is received, obtaining matched network configuration information and equipment types of the networking equipment which is not networked, setting distribution network information based on the network configuration information and the equipment types, and carrying out distribution network setting on the networking equipment which is not networked according to the configuration information so that the networking equipment which is not networked accesses to a corresponding local area network, wherein the gateway communicates with a control application program of the intelligent terminal through a USB-HID communication protocol, and analyzes or sends a message of the control application program of the intelligent terminal based on the ProtoBufer communication protocol so that the networking equipment communicates with the intelligent terminal.
8. The Internet of things system is applied to the gateway-based equipment control device as claimed in claim 7, and comprises a gateway end, a television end and an Internet of things module end.
CN202011386679.4A 2020-11-30 2020-11-30 Equipment control method, device and system based on gateway Active CN112468595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011386679.4A CN112468595B (en) 2020-11-30 2020-11-30 Equipment control method, device and system based on gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011386679.4A CN112468595B (en) 2020-11-30 2020-11-30 Equipment control method, device and system based on gateway

Publications (2)

Publication Number Publication Date
CN112468595A CN112468595A (en) 2021-03-09
CN112468595B true CN112468595B (en) 2023-04-07

Family

ID=74806735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011386679.4A Active CN112468595B (en) 2020-11-30 2020-11-30 Equipment control method, device and system based on gateway

Country Status (1)

Country Link
CN (1) CN112468595B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113406891B (en) * 2021-06-18 2023-04-21 杭州深渡科技有限公司 Internet of things equipment linkage control method, system, device and storage medium
CN114039818B (en) * 2021-12-27 2023-06-13 四川启睿克科技有限公司 Pluggable multi-gateway equipment management system and method
CN115499283A (en) * 2022-07-29 2022-12-20 天翼云科技有限公司 Editable intelligent Internet of things system
CN115733861A (en) * 2022-11-21 2023-03-03 四川长虹电器股份有限公司 MQTT-based Internet of things equipment information processing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8438319B1 (en) * 2010-06-24 2013-05-07 Atmel Wi-Fi Solutions, Inc. Method and apparatus for virtualizing hardware dongle over a wireless connection
CN104954843A (en) * 2015-06-18 2015-09-30 Tcl集团股份有限公司 Remote control method and system of smart television
WO2015200342A1 (en) * 2014-06-23 2015-12-30 Google, Inc. Methods and apparatus for using smart environment devices via application program interfaces
CN105979324A (en) * 2016-05-31 2016-09-28 青岛海信电器股份有限公司 Method and device of intelligent TV for controlling remote controller microphone

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204539375U (en) * 2014-12-22 2015-08-05 广东省广播电视网络股份有限公司 A kind of intelligent home control device based on television network broadcast home gateway
CN204291029U (en) * 2014-12-29 2015-04-22 朔联科技(上海)有限公司 A kind of Internet of Things cloud gateway
CN105487394A (en) * 2015-11-30 2016-04-13 青岛海尔智能家电科技有限公司 Intelligent household appliance control method and device and gateway
CN207234796U (en) * 2017-08-17 2018-04-13 帕诺迪电器(深圳)有限公司 A kind of intelligent domestic gateway device
CN107493214A (en) * 2017-09-29 2017-12-19 四川长虹电器股份有限公司 A kind of plug and play realizes smart home Internet of Things network control system and method
EP3672292B1 (en) * 2018-12-20 2022-10-26 GN Audio A/S Audio communication method and system with a dongle
CN110515644A (en) * 2019-09-12 2019-11-29 苏州澜普智能技术有限公司 A kind of networking installation and debugging method for applying lamp indoors

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8438319B1 (en) * 2010-06-24 2013-05-07 Atmel Wi-Fi Solutions, Inc. Method and apparatus for virtualizing hardware dongle over a wireless connection
WO2015200342A1 (en) * 2014-06-23 2015-12-30 Google, Inc. Methods and apparatus for using smart environment devices via application program interfaces
CN104954843A (en) * 2015-06-18 2015-09-30 Tcl集团股份有限公司 Remote control method and system of smart television
CN105979324A (en) * 2016-05-31 2016-09-28 青岛海信电器股份有限公司 Method and device of intelligent TV for controlling remote controller microphone

Also Published As

Publication number Publication date
CN112468595A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN112468595B (en) Equipment control method, device and system based on gateway
CN105471705B (en) Intelligent control method, equipment and system based on instant messaging
KR102252258B1 (en) Method and apparatus for controlling a group of home devices in a home network system
CN103023681B (en) Smart home control device, update method
KR100605189B1 (en) Home network system
CN111930082B (en) Method and device for replacing intelligent household equipment
EP3279750A1 (en) Smart home system and product thereof
WO2016058246A1 (en) Smart home gateway and smart home system
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN113348725B (en) Device operation method, device, gateway, electronic device and computer readable medium
CN103388888B (en) Functions of wireless middle controller and central air-conditioning long-range control method and system
CN113412469A (en) Equipment network distribution method and device, electronic equipment and storage medium
CN113110147B (en) Method and device for cross-platform linkage of intelligent equipment, equipment and storage medium
WO2016058254A1 (en) Home appliance control method and control device, and home data terminal
US20070169074A1 (en) Upgrade apparatus and its method for home network system
AU2013388030B2 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
KR102566171B1 (en) Electronic device and method for controlling thereof
CN111770156B (en) Linkage control method and device and computer readable storage medium
CN109945296B (en) Air conditioner, control method of household appliance, household appliance and storage medium
CN111856956A (en) Control method and control terminal for realizing scene interaction
WO2016192579A1 (en) Information processing method, cloud service platform and information processing system
CN105159104A (en) Intelligent terminal remote controller object connection control system and method
CN110515307A (en) A kind of method and the network equipment controlling smart home device
CN111915870A (en) Method and device for adding remote controller code value through voice, television and storage medium
CN104898448A (en) Intelligent household equipment control method and intelligent household equipment

Legal Events

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