CN112596406A - Control method and device of intelligent equipment, control panel and storage medium - Google Patents

Control method and device of intelligent equipment, control panel and storage medium Download PDF

Info

Publication number
CN112596406A
CN112596406A CN202011506575.2A CN202011506575A CN112596406A CN 112596406 A CN112596406 A CN 112596406A CN 202011506575 A CN202011506575 A CN 202011506575A CN 112596406 A CN112596406 A CN 112596406A
Authority
CN
China
Prior art keywords
control panel
intelligent equipment
local area
network
area network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011506575.2A
Other languages
Chinese (zh)
Inventor
黄奇耀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo 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 Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202011506575.2A priority Critical patent/CN112596406A/en
Publication of CN112596406A publication Critical patent/CN112596406A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • 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)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application discloses a control method, a control device, a control panel and a storage medium of intelligent equipment, and relates to the field of intelligent home furnishing, wherein the method comprises the following steps: acquiring a network state when the control panel and the intelligent equipment are connected through an external network; if the network state meets a preset condition, searching the intelligent equipment in a local area network where the control panel is located to obtain an IP address of the intelligent equipment; establishing local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment; and controlling the intelligent equipment through the local area network. The communication of the local area network between the control panel and the intelligent device can be established quickly and effectively, the control panel is ensured to control the intelligent device in real time, the situation that the intelligent device cannot be controlled due to the fact that network bandwidth is insufficient or the state is poor is avoided, and user experience is improved.

Description

Control method and device of intelligent equipment, control panel and storage medium
Technical Field
The present application relates to the field of smart home, and more particularly, to a method and an apparatus for controlling a smart device, a control panel, and a storage medium.
Background
Along with the rapid development of science and technology, more and more families can all be equipped with intelligent home equipment, and a plurality of intelligent home equipment in the family can be controlled by control panel is unified usually, and this just needs all to insert control panel and the intelligent home equipment in the family into the internet, realizes the communication between control panel and the intelligent home.
However, since the control panel controls the smart home devices through the internet, when the internet is in a disconnected state or a network state is not good, the control panel cannot effectively control the smart home devices, which results in poor user experience.
Disclosure of Invention
In view of the above problems, the present application provides a method and an apparatus for controlling a smart device, a control panel, and a storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a method for controlling an intelligent device, which is applied to a control panel, and the method includes: acquiring a network state when the control panel and the intelligent equipment are connected through an external network; if the network state meets the preset condition, searching the intelligent equipment in the local area network where the control panel is located to obtain the IP address of the intelligent equipment; establishing local area network communication between a control panel and the intelligent equipment based on the IP address of the intelligent equipment; and controlling the intelligent equipment through the local area network.
In a second aspect, an embodiment of the present application provides a control apparatus for an intelligent device, where the control apparatus for the intelligent device is applied to a control panel, and the control apparatus for the intelligent device includes: the device comprises a network state acquisition module, an IP address acquisition module, a communication establishment module and a control module. Wherein: the network state acquisition module is used for acquiring the network state when the control panel and the intelligent equipment are connected through an external network; the IP address acquisition module is used for searching the intelligent equipment in the local area network where the control panel is located if the network state meets the preset condition to obtain the IP address of the intelligent equipment; the communication establishing module is used for establishing local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment; the control module is used for controlling the intelligent equipment through the local area network.
In a third aspect, an embodiment of the present application provides a control panel, including: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where a program code is stored, and the program code may be called by a processor to execute the method of the first aspect.
The control method, the device, the control panel and the storage medium of the intelligent device provided by the embodiment of the application can be used for searching the intelligent device in the local area network where the control panel is located to obtain the IP address of the intelligent device by acquiring the network state when the control panel and the intelligent device are connected through an external network if the network state meets the preset condition, then establishing the local area network communication between the control panel and the intelligent device based on the IP address of the intelligent device, and finally controlling the intelligent device through the local area network, so that the local area network of the control panel and the intelligent device can be automatically established when the network state of the external network is not good, the control panel is controlled by the intelligent device through the local area network, the intelligent device can be controlled by the control panel in real time, the problem that the intelligent device cannot be controlled due to network problems is avoided, and the user experience is improved.
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 is a schematic diagram illustrating an application environment of a control method of a smart device according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a control method of an intelligent device according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating a control method of an intelligent device according to another embodiment of the present application.
Fig. 4 is a flowchart illustrating a method according to an embodiment of step S220 in the method for controlling the smart device illustrated in fig. 3.
Fig. 5 is a flowchart illustrating a control method of an intelligent device according to another embodiment of the present application.
Fig. 6 is a flowchart illustrating a control method of a smart device according to still another embodiment of the present application.
Fig. 7 is a functional block diagram of a control apparatus of an intelligent device according to an embodiment of the present application.
Fig. 8 shows a block diagram of a control panel provided according to an embodiment of the present application.
Fig. 9 illustrates a storage medium provided according to an embodiment of the present application to store or carry program codes for implementing a control method of a smart device according to an 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.
With the development of science and technology, more and more intelligent household devices enter the families of people, and because the quantity and the types of the intelligent household devices become more, if the intelligent household devices are controlled separately, the control is very complicated, so that the current families generally adopt a control panel to establish network communication with the intelligent household devices to uniformly control the intelligent household devices.
However, at present, the smart home devices are all communicated with the control panel through the internet, and when the network state of the internet is poor, the control panel cannot effectively control the smart home devices.
The inventor finds that if the network state of the internet is poor, the local area network of the intelligent household equipment and the control panel is established, the intelligent household equipment is controlled through the local area, and the user can be guaranteed to be capable of effectively controlling the intelligent household equipment through the control panel at any time.
However, the number of the smart home devices in the home is often more than one, so that when the control panel establishes the local area network, the smart home devices that the user needs to control are not easily and quickly selected to establish the local area network communication, which results in a slow speed and low efficiency for establishing the local area network communication, and further influences the control panel to effectively control the smart home devices, thereby reducing the user experience.
Therefore, in view of the above problems, the inventor provides a method and an apparatus for controlling an intelligent device, a control panel, and a storage medium in the embodiments of the present application, which can quickly and effectively establish communication of a local area network between the control panel and the intelligent device, and ensure that the control panel can control the intelligent device in real time, avoid the situation that the intelligent device cannot be controlled due to insufficient network bandwidth or poor state, and improve user experience.
Referring to fig. 1, fig. 1 shows an application environment schematic diagram of a control method of an intelligent device according to an embodiment of the present application, specifically, the control method of an intelligent device according to the embodiment of the present application may be applied to an intelligent device control system 100 shown in fig. 1, where the intelligent device control system 100 may include a control panel 110, an intelligent device 120, and a local area network gateway 130, where the control panel 110 may be connected to the intelligent device 120 through the local area network gateway 130, or may directly establish communication with the intelligent device 120 through a cloud. Optionally, the lan gateway 130 may also have access to the cloud. It is understood that when the lan gateway 130 accesses the cloud, the smart device 120 connected to the lan gateway 130 may be considered to be in communication with the control panel 110 through the cloud.
The number of the control panels 110 may be one or more, and the specific number is not limited herein. It can be understood that the control panel 110 may be used as a user operation inlet, may communicate with and control peripheral household appliances, may access and output text, picture and audio/video information in a wireless or wired communication manner, or may forward server-side information to a local or playing device for display, and the like, and may specifically be an intelligent gateway.
The number of the smart devices 120 may be one or more, and the specific number is not limited herein. Alternatively, the smart device 120 may include, but is not limited to, a smart fan, a smart refrigerator, a smart air conditioner, a smart door lock, a smart light, and the like.
The number of the lan gateways 130 may be one or more, and the specific number is not limited herein. In particular, the lan gateway 130 may be a router.
Referring to fig. 2, fig. 2 illustrates a control method of an intelligent device according to an embodiment of the present application, which may be applied to the control panel 110 of fig. 1, and the method includes:
and S110, acquiring the network state of the control panel and the intelligent equipment when the control panel and the intelligent equipment are connected through an external network.
In some embodiments, the control panel may send test data for testing a network state to the intelligent device, detect feedback data of the intelligent device for the test data, and determine the network state when the control panel and the intelligent device are connected through the external network according to the feedback data, thereby obtaining the network state.
As an example, after the control panel sends out the test data and does not receive the feedback data of the smart device, the network status may be determined to be the disconnected status.
As another example, if the control panel receives feedback data of the intelligent device after sending the test data, information such as a delay rate, a packet loss rate, and the like of the data transmission may be determined according to the feedback data, and then a network bandwidth may be determined according to information such as a sending rate, a receiving rate, a network delay, a packet loss rate, and the like, and if the network bandwidth is within a normal network bandwidth range, it is determined that the control panel and the intelligent device can communicate normally, and it may be determined that the network state is a normal state.
It can be understood that the connection between the control panel and the smart device through the external network may be equivalent to the connection between the control panel and the smart device through the cloud in fig. 1.
And S120, if the network state meets the preset condition, searching the intelligent equipment in the local area network where the control panel is located to obtain the IP address of the intelligent equipment.
The preset condition can be used for judging whether the network state meets the condition that the control panel and the intelligent device normally communicate.
When the control panel and the intelligent device cannot normally communicate through the external network, the user cannot control the intelligent device through the control panel. In some embodiments, when the network status obtained according to S110 is a disconnected status, it may be determined that the network status meets a preset condition, that is, the control panel and the smart device cannot communicate with each other through the external network.
As an example, please refer to fig. 1 again, in fig. 1, a local area network gateway is respectively connected to an intelligent device and a control panel, and the intelligent device and the control panel connected to the local area network gateway can be regarded as being in the same local area network, so that the control panel can search for the intelligent device connected to the local area network gateway. When the control panel can search the intelligent device connected with the local area network gateway, the IP address of the intelligent device can be obtained.
As one mode, the IP address of the intelligent device may be obtained by searching the intelligent device in the local area network where the control panel is located through a User Datagram Protocol (udp) communication Protocol or/and a multicast dns (mdns) communication Protocol.
The IP address is a uniform address format provided by the IP protocol, and a logical address is allocated to each network and each host on the Internet, so as to shield the difference of physical addresses.
The mDNS mainly realizes the mutual discovery and communication of hosts in the local area network under the condition that a traditional DNS server is not provided, the used port is 5353, the DNS protocol is followed, and the existing DNS information structure, name grammar and resource record type can be used.
The udp communication protocol may provide a method for the control panel to send encapsulated IP packets without establishing a connection.
Optionally, the control panel may search for the intelligent device in the local area network where the control panel is located only through the udp communication protocol, may search for the intelligent device in the local area network where the control panel is located only through the mDNS communication protocol, and may search for the intelligent device in the local area network where the control panel is located through the udp communication protocol and the mDNS communication protocol at the same time. When the two communication protocols are used for searching, the search can be performed through the udp communication protocol, if the intelligent equipment is not searched, the search is performed through the mDNS communication protocol, or the search is performed through the mDNS communication protocol, if the intelligent equipment is not searched, the search is performed through the udp communication protocol.
Therefore, in the embodiment, the intelligent device in the local area network where the control panel is located is searched through the udp communication protocol or/and the mDNS communication protocol, so that the search success rate can be improved, and the search efficiency is improved.
It is understood that the IP address may be pre-bound to the smart device, and when the control panel searches for the smart device, the IP address of the smart device is obtained.
S130, establishing local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment.
In some embodiments, after obtaining the IP address of the smart device, the control panel may actively connect to the IP address through the lan gateway and maintain long connection communication.
In some embodiments, when establishing the local area network of the control panel and the smart device, the types of networks that can be used by the local area network may include: a WiFi network, a bluetooth network, a ZigBee network, and the like, and it is not limited herein to specifically use which network is used to establish the local area network.
And S140, controlling the intelligent equipment through the local area network.
As an example, after the control panel and the smart device establish a local area network communication, the control panel may receive control information made by a user for the smart device in real time, generate a control instruction based on the control information, and send the control instruction to the smart device through the local area network to instruct the smart device to execute an action corresponding to the control instruction. The control information includes, but is not limited to, touch information and voice information. As an example, a user may input a target temperature for the air conditioning device on a control panel, for example, and the control panel may generate a control command based on the temperature parameter and send the control command to the air conditioning device over the local area network to instruct the air conditioning device to adjust the room temperature to the target temperature.
It can be seen that, in this embodiment, by obtaining the network state when the control panel and the intelligent device are connected through the external network, if the network state meets the preset condition, searching the intelligent device in the local area network where the control panel is located to obtain the IP address of the intelligent device, and then establishing the local area network communication between the control panel and the intelligent device based on the IP address of the intelligent device, the suitable intelligent device can be quickly and accurately searched from the plurality of intelligent devices to establish the local area network communication, so as to improve the efficiency of establishing the local area network, and finally, the intelligent device is controlled through the local area network, so that the local area network of the control panel and the intelligent device can be automatically established when the network state of the external network is not good, and the control panel can be used to control the intelligent device through the local area network, thereby ensuring that the control panel can control the intelligent device in real time, and avoiding the situation that the control cannot be performed due to the problem of insufficient network bandwidth or poor network state, the user experience is improved.
Referring to fig. 3, fig. 3 illustrates a control method of an intelligent device according to another embodiment of the present application, which may be applied to the control panel 110 of fig. 1, and the method may include:
s210, acquiring a network state when the control panel and the intelligent device are connected through an external network.
S220, if the network state meets the preset condition, searching the intelligent equipment in the local area network where the control panel is located to obtain the IP address of the intelligent equipment.
The specific implementation of S210 and S220 may refer to S110 and S120, and therefore, is not described herein.
In some embodiments, the network status includes a network bandwidth, and a specific implementation manner of S220 may be to detect whether the network bandwidth does not exceed a network bandwidth threshold within a specified time period, and if so, determine that the network status satisfies a preset condition, and search the smart device in the local area network where the control panel is located to obtain an IP address of the smart device. As an example, for example, the network bandwidth threshold is 512Kbit/s, the specified duration is 5s, the control panel may detect the network bandwidth of the external network in real time when communicating with the intelligent device through the external network, and if none of the detected network bandwidths exceeds 512Kbit/s within 5s, it may be determined that the network status satisfies the preset condition.
In practical application, the control panel may identify a type of the smart device, where the type may include a real-time monitoring device, a non-real-time monitoring device, and the like, and then the network bandwidth threshold may be determined according to the type of the smart device. The equipment such as an intelligent electric lamp which does not need real-time monitoring of a control panel does not need high network bandwidth, so that the corresponding network bandwidth threshold value is low. Alternatively, the type and the IP of the smart device may be bound in advance, and the control panel may identify the type of the smart device according to the IP of the smart device obtained in the above embodiment.
In the embodiment, the network state is determined to meet the preset conditions by enabling the network state to include the network bandwidth, and when the network bandwidth is detected not to exceed the network bandwidth threshold within the specified duration, whether the network state is in a poor state or not can be accurately judged in real time.
In addition, considering that the network state fluctuates, when the network bandwidth does not exceed the network bandwidth threshold for a very small number of times, the normal communication between the control panel and the intelligent device is not affected very much, so in the embodiment, by detecting whether the network bandwidth within the specified duration is not less than the network bandwidth threshold, it can be determined more accurately whether the network state meets the preset condition.
In other embodiments, as shown in fig. 4, S220 may include:
and S221, determining whether the network state is an off-line state.
In some embodiments, the disconnect status may include, but is not limited to: the state that at least one of the control panel or the intelligent device is disconnected with the extranet server, the state that at least one of the control panel or the intelligent device is failed to be connected with the extranet server and the like.
In practical application, the control panel can send information to the intelligent device through the external network server and detect whether a response exists, and if no response exists, the network state can be determined to be the disconnection state. In a similar way, the intelligent device can detect whether the intelligent device is in the disconnection state or not in the above mode.
Optionally, the Control panel may detect whether it can maintain Transmission Control Protocol (TCP) communication with the extranet server within a certain time, and if not, may determine that the network state is an offline state by setting the current network state as a state in which connection with the extranet server fails. Similarly, the intelligent device can also detect the state of connection failure with the external network server in the above manner.
S222, if the network status is an offline status, determining that the network status meets a preset condition.
When the network state is the disconnection state, the control panel and the intelligent device can not normally communicate, and therefore the network state can be determined to meet the preset condition.
S223, searching the intelligent device in the local area network where the control panel is located to obtain the IP address of the intelligent device.
The specific implementation of S223 may refer to S120, and therefore is not described herein.
In the embodiment, whether the network state is the disconnection state or not is determined, and if the network state is the disconnection state, the network state can be determined to meet the preset condition, and the intelligent device in the local area network where the control panel is located is searched to obtain the IP address of the intelligent device, so that whether the network state is in a poor network state or not can be determined more quickly and effectively.
In still other embodiments, the control panel may first detect whether the network status is disconnected. If the network state is the disconnection state, it can be determined that the network state satisfies the preset condition. If the network state is not in the disconnection state, the network bandwidth can be continuously acquired, whether the network bandwidth does not exceed the network bandwidth threshold value within the specified duration is detected, and if the network bandwidth does not exceed the network bandwidth threshold value within the specified duration, the network state can be determined to meet the preset condition. In this embodiment, the control panel can first detect whether the network state is the disconnected state. If the network state is the disconnection state, it can be determined that the network state satisfies the preset condition. If the network state is not in the disconnection state, the network bandwidth can be continuously acquired, whether the network bandwidth does not exceed the network bandwidth threshold value within the specified duration is detected, and if the network bandwidth does not exceed the network bandwidth threshold value within the specified duration, the network state can be determined to meet the preset conditions, so that whether the network state can meet normal communication of the intelligent device and the control panel is detected from multiple aspects, and further the detection comprehensiveness and accuracy are improved.
And S230, establishing local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment.
The specific implementation of S230 may refer to S130, and therefore is not described herein.
And S240, acquiring the state parameters reported by the intelligent equipment through the local area network.
In some embodiments, the intelligent device may report the state parameter of the intelligent device in real time through a local area network, and the control panel may also receive the reported state parameter through the local area network, so as to obtain the state parameter. The state parameters may include the current power, the current operating state, the current operating voltage, the operating time, and the like of the smart device. Optionally, the control panel may also receive the state parameter reported by the intelligent device at intervals; the control panel can also actively send a state parameter acquisition request according to the requirement so as to inform the intelligent equipment to report the state parameters.
And S250, updating the display state of the control panel aiming at the intelligent equipment based on the state parameters.
When receiving the state parameter reported by the intelligent device, the control panel may update the display state of the intelligent device in the display screen of the control panel in real time according to the state parameter, for example, the intelligent device is an air conditioner, the working state of the air conditioner displayed by the control panel is an on state, and when receiving that the current working state uploaded by the air conditioner is an off state, the control panel may update the working state of the air conditioner to be an off state.
In this embodiment, by obtaining a network state when the control panel and the intelligent device are connected through an external network, if the network state meets a preset condition, the intelligent device in the local area network where the control panel is located is searched, and an IP address of the intelligent device is obtained. The method comprises the steps of establishing local area network communication between a control panel and the intelligent equipment based on an IP address of the intelligent equipment, obtaining state parameters reported by the intelligent equipment through the local area network, updating the display state of the control panel aiming at the intelligent equipment based on the state parameters, and accordingly, the control panel can automatically establish the local area network of the control panel and the intelligent equipment when the network state of an external network is not good, and real-time monitoring of the intelligent equipment by the control panel is guaranteed.
In some embodiments, when the control panel is restarted, local area network communication of the control panel with the smart device is automatically established through the IP address of the smart device.
As an example, when the control panel is powered off, the connection of the lan is disconnected, and if the control panel is restarted, a network that can be connected needs to be searched again and connected, so that on one hand, the external network can be automatically connected, and on the other hand, the lan that has been established once can be automatically connected.
Referring to fig. 5, fig. 5 illustrates a control method of an intelligent device according to another embodiment of the present application, which can be applied to the control panel 110 of fig. 1, wherein the control panel is connected to a lan gateway. The method comprises the following steps:
s310, acquiring the network state of the control panel and the intelligent device when the control panel and the intelligent device are connected through an external network.
The specific implementation of S310 may refer to S110, and therefore is not described herein.
And S320, if the network state meets the preset condition, determining whether the intelligent equipment is connected with the local area network gateway.
Referring to fig. 1 again, in fig. 1, some smart devices are connected to the control panel through the lan gateway, and some smart devices are directly connected to the control panel through the cloud without being connected to the lan gateway. The intelligent equipment connected with the local area network gateway is equivalent to share one local area network gateway with the control panel, so that the intelligent equipment and the control panel can directly establish local area network communication by using the shared local area network gateway, and the intelligent equipment which is not connected with the local area network gateway cannot establish a local area network with the control panel.
In some embodiments, the control panel may search for an IP address of the smart device through the lan gateway, and if the IP address can be searched, it may be determined that the smart device is connected to the lan gateway, and if the IP address cannot be searched, it may be determined that the smart device is not connected to the lan gateway.
S330, if the intelligent device is connected with the local area network gateway, searching the intelligent device through the local area network gateway to obtain the IP address of the intelligent device.
S340, establishing local area network communication between the control panel and the intelligent device based on the IP address of the intelligent device.
And S350, controlling the intelligent equipment through the local area network.
The embodiments of S330 to S350 can refer to S120 to S140, and are not described herein.
In this embodiment, whether the intelligent device is connected with the lan gateway is determined if the network state satisfies the preset condition, and if the intelligent device is connected with the lan gateway, the intelligent device is searched through the lan gateway to obtain the IP address of the intelligent device, so that the appropriate intelligent device can be selected more quickly and effectively to establish lan communication, and the efficiency of establishing lan communication is improved.
Referring to fig. 6, fig. 6 illustrates a control method of an intelligent device according to still another embodiment of the present application, applied to the control panel 110 shown in fig. 1, where the method includes:
s410, acquiring the network state of the control panel and the intelligent device when the control panel and the intelligent device are connected through an external network.
And S420, if the network state meets the preset condition, determining whether the intelligent equipment is connected with the local area network gateway.
And S430, if the intelligent equipment is connected with the local area network gateway, searching the intelligent equipment through the local area network gateway to obtain the IP address of the intelligent equipment.
S440, establishing local area network communication between the control panel and the intelligent device based on the IP address of the intelligent device.
And S450, controlling the intelligent equipment through the local area network.
The specific implementation of S410 to S450 can refer to S310 to S350, and therefore is not described herein.
And S460, if the intelligent equipment is not connected with the local area network gateway, acquiring gateway information of a target gateway connected with the intelligent equipment.
In some embodiments, the identifier of the smart device and the identifier of the lan gateway connected to the smart device may be bound in advance to generate a mapping table, which may be shown in table 1 as an example:
TABLE 1
Figure BDA0002845101270000131
As can be seen from table 1, the smart device a and the smart device B are connected to the lan gateway 1, and the smart device C is connected to the lan gateway 2. If the control panel is connected with the local area network gateway 1, when the control panel needs to establish a local area network with the intelligent device C, the intelligent device C can be determined not to share one local area network gateway with the control panel, so that the control panel can inquire the local area network gateway 2 connected with the intelligent device C according to the mapping relation table, and the identification of the local area network gateway 2 is used as gateway information of a target gateway.
And S480, generating and sending out reminding information based on the gateway information so as to remind a user to connect the control panel with the target gateway.
Bearing the above example, the control panel may generate the reminding information based on the identifier of the lan gateway 2 and send the reminding information, and optionally, the reminding information may be text information, image information, video information, and the like displayed on the control panel for instructing the user to connect the control panel with the lan gateway 2, or may be voice information played by the control panel for instructing the user to connect the control panel with the lan gateway 2, and the like.
Optionally, after the control panel generates the prompt message, the prompt message can be remotely sent to the mobile terminal bound with the control panel in advance by the user, so that the reminding efficiency is improved.
In this embodiment, if the smart device cannot be connected to the lan gateway, gateway information of a target gateway connected to the smart device is acquired, and a reminding message is generated and sent based on the gateway information to remind a user to connect the control panel to the target gateway, so that the user can be effectively reminded and instructed how to establish lan communication between the control panel and the smart device, the efficiency of establishing the lan is improved, and user experience is improved.
Referring to fig. 7, fig. 7 illustrates a control apparatus of an intelligent device according to an embodiment of the present application, where the control apparatus 500 of the intelligent device may be applied to the control panel 110 in fig. 1, and the control apparatus 500 of the intelligent device may include a network status obtaining module 510, an IP address obtaining module 520, a communication establishing module 530, and a control module 540. Wherein:
a network status obtaining module 510, configured to obtain a network status when the control panel and the smart device are connected through an external network.
The IP address obtaining module 520 is configured to search the intelligent device in the local area network where the control panel is located to obtain an IP address of the intelligent device if the network state meets the preset condition.
A communication establishing module 530 for establishing local area network communication between the control panel and the intelligent device based on the IP address of the intelligent device.
And the control module 540 is configured to control the smart device through the local area network.
Optionally, the IP address obtaining module 520 is specifically configured to search, through the udp communication protocol or/and the mDNS communication protocol, for the intelligent device in the local area network where the control panel is located, so as to obtain the IP address of the intelligent device.
Optionally, the control panel is connected to the lan gateway, and the IP address obtaining module 520 includes:
and the gateway connection determining submodule is used for determining whether the intelligent equipment is connected with the local area network gateway or not if the network state meets the preset condition.
And the IP address acquisition submodule is used for searching the intelligent equipment through the local area network gateway to obtain the IP address of the intelligent equipment if the intelligent equipment is connected with the local area network gateway.
And the local area network establishing submodule is used for establishing the local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment.
Optionally, the control apparatus 500 of the smart device further includes:
and the gateway information acquisition module is used for acquiring the gateway information of the target gateway connected with the intelligent equipment if the intelligent equipment is not connected with the local area network gateway.
And the reminding module is used for generating and sending reminding information based on the gateway information so as to remind a user to connect the control panel with the target gateway.
Optionally, the network status includes a network bandwidth, and the IP address obtaining module 520 is specifically configured to determine that the network status satisfies a preset condition when the network bandwidth does not exceed a network bandwidth threshold within a specified duration, and search for an intelligent device in a local area network where the control panel is located to obtain an IP address of the intelligent device.
Optionally, the IP address obtaining module 520 includes:
and the judgment submodule is used for determining whether the network state is an disconnection state.
And the judging submodule is used for determining that the network state meets the preset condition if the network state is the disconnection state.
And the searching submodule is used for searching the intelligent equipment in the local area network where the control panel is located to obtain the IP address of the intelligent equipment.
Optionally, the control module 540 comprises:
and the reporting submodule is used for acquiring the state parameters reported by the intelligent equipment through the local area network.
And the updating submodule is used for updating the display state of the control panel aiming at the intelligent equipment based on the state parameters.
Optionally, the control apparatus 500 of the smart device further includes:
and the restarting module is used for automatically establishing the local area network communication between the control panel and the intelligent equipment through the IP address of the intelligent equipment when the control panel is restarted.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described modules may refer to the corresponding process in the foregoing method embodiment, and is 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, a block diagram of a control panel according to an embodiment of the present invention is shown. The control panel 600 may be the control panel 600 capable of running the program in the foregoing embodiments. The control panel 600 of the present invention may include one or more of the following components: a processor 610, a memory 620, a temperature sensor 630, and one or more programs, wherein the one or more programs may be stored in the memory 620 and configured to be executed by the one or more processors 610, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
The processor 610 may include one or more processing cores. The processor 610 connects various parts within the overall control panel using various interfaces and lines, performs various functions of the control panel and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 620, and calling data stored in the memory 620. Alternatively, the processor 610 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 610 may integrate one or more of a Central Processing Unit (CPU) 610, a Graphics Processing Unit (GPU) 610, a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 610, but may be implemented by a communication chip.
The Memory 620 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 620 may be used to store instructions, programs, code sets, or instruction sets. The memory 620 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc., a photographing function), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal in use, such as a phone book, audio-video data, map data, driving record data, and the like.
Referring to fig. 9, a block diagram of a computer-readable storage medium according to an embodiment of the present invention is shown. The computer readable medium 700 has stored therein a program code 710, the program code 710 being capable of being invoked by a processor to perform the methods described in the method embodiments above.
The computer-readable storage medium 700 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 includes a non-transitory computer-readable storage medium. The computer readable storage medium has a storage space for program code for performing any of the method steps of the above-described method. The program code can be read from or written to one or more computer program products. The program code may be compressed, for example, in a suitable form.
To sum up, in the control method, the apparatus, the control panel and the storage medium of the intelligent device provided in this embodiment, by obtaining the network state when the control panel and the intelligent device are connected via the external network, if the network state meets the preset condition, searching the intelligent device in the local area network where the control panel is located, obtaining the IP address of the intelligent device, and then establishing the local area network communication between the control panel and the intelligent device based on the IP address of the intelligent device, the intelligent device can be searched from a plurality of intelligent devices quickly and accurately to establish the local area network communication, the efficiency of establishing the local area network is improved, and finally the intelligent device is controlled via the local area network, so that the local area network between the control panel and the intelligent device can be automatically established when the network state of the external network is not good, the control panel is controlled by the intelligent device via the local area network, and the control panel is ensured to control the intelligent device in real time, the situation that the control cannot be performed due to the fact that the network bandwidth is not enough or the state is not good is avoided, and user experience is improved.
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 (11)

1. A control method of intelligent equipment is applied to a control panel and comprises the following steps:
acquiring a network state when the control panel and the intelligent equipment are connected through an external network;
if the network state meets a preset condition, searching the intelligent equipment in a local area network where the control panel is located to obtain an IP address of the intelligent equipment;
establishing local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment;
and controlling the intelligent equipment through the local area network.
2. The method of claim 1, wherein the searching for the smart device in a local area network connected to the control panel to obtain the IP address of the smart device comprises:
and searching the intelligent equipment in the local area network where the control panel is positioned through a udp communication protocol or/and an mDNS communication protocol to obtain the IP address of the intelligent equipment.
3. The method of claim 1, wherein the controlling panel is connected to a lan gateway, and the searching for the smart device in the lan connected to the controlling panel to obtain the IP address of the smart device if the network status satisfies a predetermined condition comprises:
if the network state meets a preset condition, determining whether the intelligent equipment is connected with the local area network gateway or not;
if the intelligent equipment is connected with the local area network gateway, searching the intelligent equipment through the local area network gateway to obtain the IP address of the intelligent equipment;
and establishing local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment.
4. The method of claim 3, further comprising:
if the intelligent equipment is not connected with the local area network gateway, acquiring gateway information of a target gateway connected with the intelligent equipment;
and generating and sending reminding information based on the gateway information so as to remind a user to connect the control panel with the target gateway.
5. The method according to claim 1, wherein the network status includes a network bandwidth, and the searching for the smart device in the local area network where the control panel is located to obtain the IP address of the smart device if the network status satisfies a preset condition includes:
if the network bandwidth does not exceed a network bandwidth threshold value within a specified time length, determining that the network state meets a preset condition, and searching the intelligent equipment in the local area network where the control panel is located to obtain the IP address of the intelligent equipment.
6. The method according to claim 1, wherein if the network status satisfies a preset condition, searching the smart device in a local area network where the control panel is located to obtain an IP address of the smart device, including:
determining whether the network state is an offline state;
if the network state is a disconnection state, determining that the network state meets a preset condition;
and searching the intelligent equipment in the local area network where the control panel is located to obtain the IP address of the intelligent equipment.
7. The method according to any one of claims 1 to 6, wherein the controlling the smart device via the local area network comprises:
acquiring state parameters reported by the intelligent equipment through the local area network;
updating a display state of the control panel for the smart device based on the state parameter.
8. The method according to any one of claims 1 to 6, further comprising, after the controlling the smart device via the local area network:
and when the control panel is restarted, automatically establishing local area network communication between the control panel and the intelligent equipment through the IP address of the intelligent equipment.
9. The utility model provides a controlling means of smart machine which characterized in that is applied to control panel, includes:
the network state acquisition module is used for acquiring the network state when the control panel is connected with the intelligent equipment through an external network;
the IP address acquisition module is used for searching the intelligent equipment in the local area network where the control panel is located to obtain the IP address of the intelligent equipment if the network state meets a preset condition;
the communication establishing module is used for establishing local area network communication between the control panel and the intelligent equipment based on the IP address of the intelligent equipment;
and the control module is used for controlling the intelligent equipment through the local area network.
10. A control panel, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-8.
11. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 8.
CN202011506575.2A 2020-12-18 2020-12-18 Control method and device of intelligent equipment, control panel and storage medium Pending CN112596406A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011506575.2A CN112596406A (en) 2020-12-18 2020-12-18 Control method and device of intelligent equipment, control panel and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011506575.2A CN112596406A (en) 2020-12-18 2020-12-18 Control method and device of intelligent equipment, control panel and storage medium

Publications (1)

Publication Number Publication Date
CN112596406A true CN112596406A (en) 2021-04-02

Family

ID=75199362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011506575.2A Pending CN112596406A (en) 2020-12-18 2020-12-18 Control method and device of intelligent equipment, control panel and storage medium

Country Status (1)

Country Link
CN (1) CN112596406A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113671844A (en) * 2021-08-06 2021-11-19 深圳市欧瑞博科技股份有限公司 Intelligent device control method and device, intelligent control device and storage medium
CN114500612A (en) * 2022-04-06 2022-05-13 深圳航天信息有限公司 Method and device for local networking of Internet of things, electronic equipment and storage medium
CN115168427A (en) * 2022-09-08 2022-10-11 中科声龙科技发展(北京)有限公司 Equipment searching method, device, equipment and storage medium
CN115378750A (en) * 2021-05-20 2022-11-22 海信集团控股股份有限公司 OTA (over the air) upgrading method and device for electronic home equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160165508A1 (en) * 2013-07-30 2016-06-09 Huawei Technologies Co., Ltd. Network Handover Method, Apparatus, Device, and System
CN106789468A (en) * 2016-12-22 2017-05-31 Tcl集团股份有限公司 A kind of appliances equipment control method and system based on intelligent terminal
WO2018030826A1 (en) * 2016-08-12 2018-02-15 Samsung Electronics Co., Ltd. Method for controlling a user equipment
CN108882262A (en) * 2017-05-09 2018-11-23 深圳市Tcl高新技术开发有限公司 Equipment state synchronous method, system, intelligent terminal and readable storage medium storing program for executing
CN111404762A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 User video quality difference positioning method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160165508A1 (en) * 2013-07-30 2016-06-09 Huawei Technologies Co., Ltd. Network Handover Method, Apparatus, Device, and System
WO2018030826A1 (en) * 2016-08-12 2018-02-15 Samsung Electronics Co., Ltd. Method for controlling a user equipment
CN106789468A (en) * 2016-12-22 2017-05-31 Tcl集团股份有限公司 A kind of appliances equipment control method and system based on intelligent terminal
CN108882262A (en) * 2017-05-09 2018-11-23 深圳市Tcl高新技术开发有限公司 Equipment state synchronous method, system, intelligent terminal and readable storage medium storing program for executing
CN111404762A (en) * 2019-01-02 2020-07-10 中国移动通信有限公司研究院 User video quality difference positioning method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378750A (en) * 2021-05-20 2022-11-22 海信集团控股股份有限公司 OTA (over the air) upgrading method and device for electronic home equipment
CN115378750B (en) * 2021-05-20 2023-09-19 海信集团控股股份有限公司 OTA upgrading method and equipment for electronic home equipment
CN113671844A (en) * 2021-08-06 2021-11-19 深圳市欧瑞博科技股份有限公司 Intelligent device control method and device, intelligent control device and storage medium
CN114500612A (en) * 2022-04-06 2022-05-13 深圳航天信息有限公司 Method and device for local networking of Internet of things, electronic equipment and storage medium
CN114500612B (en) * 2022-04-06 2022-07-05 深圳航天信息有限公司 Method and device for local networking of Internet of things, electronic equipment and storage medium
CN115168427A (en) * 2022-09-08 2022-10-11 中科声龙科技发展(北京)有限公司 Equipment searching method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112596406A (en) Control method and device of intelligent equipment, control panel and storage medium
CN112764351A (en) Control method and device of intelligent device, electronic device and storage medium
WO2020223854A1 (en) Device network configuration method and apparatus, electronic device and storage medium
WO2020206693A1 (en) Smart home scheduling method, apparatus and system, server and storage medium
CN113348725B (en) Device operation method, device, gateway, electronic device and computer readable medium
WO2016197866A1 (en) Network wake-up method, remote server, and network switching device
CN113545009B (en) Scene operation method and device, electronic equipment and computer readable medium
CN108924274B (en) Domain name system DNS processing method and device, storage medium and electronic equipment
US20110029659A1 (en) Method and System for Network Proxy Services for Energy Efficient Networking
CN109753034B (en) Control method, control device, electronic equipment and storage medium
CN109617963B (en) Equipment control method and device and Internet of things system
WO2020168568A1 (en) Data processing method and apparatus, electronic device and readable storage medium
CN106909081B (en) Household electrical appliance and expansion platform based on same
CN109314723A (en) A kind of method, apparatus and terminal for realizing data service
CN110012527B (en) Awakening method and electronic equipment
WO2020107698A1 (en) Air-conditioning device control method and air-conditioning device
EP3139376A1 (en) Voice recognition method, device, and system, and computer storage medium
CN111245677A (en) Communication abnormity reporting method and device, electronic equipment and storage medium
CN113672146A (en) Light control method, device, system, electronic equipment and storage medium
CN111277505B (en) Multi-terminal joint control method, device, equipment and storage medium based on local area network
CN109981424B (en) Linkage scheme processing method and device, electronic equipment and storage medium
CN111405059A (en) Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN109451354B (en) Terminal and method for awakening same
WO2020228031A1 (en) Instruction processing method and apparatus, electronic device and storage medium
CN106998501B (en) Television control method and device

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