CN115474225A - Online state determination method and device, storage medium and electronic device - Google Patents

Online state determination method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115474225A
CN115474225A CN202210899791.0A CN202210899791A CN115474225A CN 115474225 A CN115474225 A CN 115474225A CN 202210899791 A CN202210899791 A CN 202210899791A CN 115474225 A CN115474225 A CN 115474225A
Authority
CN
China
Prior art keywords
devices
gateway
proxy
equipment
gateway device
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
CN202210899791.0A
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210899791.0A priority Critical patent/CN115474225A/en
Publication of CN115474225A publication Critical patent/CN115474225A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/10Scheduling measurement reports ; Arrangements for measurement reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a method and a device for determining an online state, a storage medium and an electronic device, which relate to the technical field of smart families, wherein the method for determining the online state comprises the following steps: receiving heartbeat messages sent by a plurality of gateway devices, wherein the heartbeat messages carry signal strength of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning manner; determining a main gateway device from the plurality of gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message; and receiving heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.

Description

Online state determination method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart homes, in particular to a method and a device for determining an online state, a storage medium and an electronic device.
Background
Currently, with the development of the smart home industry, gateway devices having BLE (bluetooth) and wifi (wireless) functions are frequently applied to home networking, and play a very important role, such as providing an online status of other proxy devices (devices without a direct communication capability with a cloud platform) for a cloud platform. However, when a user has multiple gateway devices, the online status of the proxy device may be repeatedly reported or the status may be mistakenly reported due to simultaneous proxy of multiple gateway devices, which reduces user experience.
Based on the current multi-gateway scenario, if the distance between the proxy device and each gateway device is different, the communication between the different gateway devices and the proxy device is unstable, and may not be available at all. The broadcast fluctuation caused by the distance and the environment also causes the online state judgment error of different gateway devices for the same agent device, that is, one gateway reports the online state of the agent device a to the cloud platform, and the other device reports the offline state of the agent device a to the cloud platform because of the distance.
Therefore, in the related art, there is a problem of how to accurately determine the online state of the proxy device.
Aiming at the problem of how to accurately determine the online state of the proxy equipment in the related technology, an effective solution is not provided.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining an online state, a storage medium and an electronic device, so as to at least solve the problem of how to accurately determine the online state of proxy equipment in the related art.
According to an embodiment of the present application, a method for determining an online status is provided, including: receiving heartbeat messages sent by a plurality of gateway devices, wherein the heartbeat messages carry signal strength of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode; determining a main gateway device from the plurality of gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message; and receiving the heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
In an exemplary embodiment, determining a master gateway device from the plurality of gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message includes: for each gateway device in the plurality of gateway devices, obtaining a second preset number of a plurality of proxy devices corresponding to each gateway device; determining the gateway device with the largest second preset number as the main gateway device under the condition that the same value does not exist in the second preset numbers corresponding to the plurality of gateway devices; under the condition that the second preset quantity corresponding to the plurality of gateway devices has the same value, acquiring an average value of the signal intensity of a plurality of proxy devices corresponding to each gateway device; and determining the gateway device with the average value closest to a preset value as the main gateway device.
In one exemplary embodiment, the method further comprises: under the condition of receiving the offline state of the first proxy device sent by the main gateway device, sending a query message to other gateway devices to instruct the other gateway devices to continue sending heartbeat messages of the proxy devices; if the heartbeat messages do not contain the heartbeat messages of the first proxy equipment, sending alarm messages to a target object to prompt the target object that the first proxy equipment is in an off-line state; and if the heartbeat message of the first proxy equipment is determined to be contained in the heartbeat message, determining the main gateway equipment from the other gateway equipment again according to the heartbeat message of the proxy equipment sent by the other gateway equipment.
In one exemplary embodiment, the method further comprises: determining a master gateway device from the plurality of gateway devices according to the number of the plurality of proxy devices carried in the heartbeat message, including: for each gateway device in the plurality of gateway devices, obtaining a second preset number of proxy devices corresponding to each gateway device; determining the gateway device having the largest second preset number as the primary gateway device.
According to another embodiment of the present application, there is further provided a method for determining an online status, applied to a gateway device, including: sending heartbeat messages to a cloud platform through a plurality of gateway devices, wherein the heartbeat messages carry signal intensity of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode; and acquiring the main gateway device determined by the cloud platform, and sending the heartbeat messages of all the agent devices through the main gateway device, so that the cloud platform determines the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
In one exemplary embodiment, the method further comprises: receiving notification information sent by the cloud platform, wherein the notification information is used for indicating the main gateway device to send heartbeat messages of all the agent devices to the cloud platform and indicating other gateway devices to stop sending heartbeat messages of the agent devices to the cloud platform, the notification information carries identification information of the main gateway device, and the other gateway devices are other gateway devices except the main gateway device in the plurality of gateway devices.
In one exemplary embodiment, the method further comprises: under the condition that the main gateway device is determined to be in an offline state, receiving a wakeup message sent by the cloud platform through the other gateway devices, and continuously sending a heartbeat message of the proxy device according to the wakeup message; and sending a heartbeat message of the proxy device to the cloud platform, so that the cloud platform determines the main gateway device from the other gateway devices again.
In one exemplary embodiment, the method further comprises: monitoring the online states of a plurality of proxy devices corresponding to the main gateway device, and determining any proxy device as a first proxy device under the condition that the online state of any proxy device in the plurality of proxy devices is determined to be converted into an offline state; sending an offline state of the first proxy device to the cloud platform; continuously sending heartbeat messages of the agent equipment according to the query messages sent by the cloud platform, so that the cloud platform executes the following operations: if the heartbeat message does not contain the heartbeat message of the first proxy equipment, sending an alarm message to a target object to prompt the first proxy equipment of the target object to be in an off-line state; and if the heartbeat message of the first proxy equipment is determined to be contained in the heartbeat message, determining the main gateway equipment from the other gateway equipment again according to the heartbeat message of the proxy equipment sent by the other gateway equipment.
According to another embodiment of the present application, there is also provided an online status determining apparatus, including: the receiving module is used for receiving heartbeat messages sent by a plurality of gateway devices, wherein the heartbeat messages carry signal strength of Bluetooth broadcast performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode; a first determining module, configured to determine, according to the signal strengths of all the proxy devices carried in the heartbeat message, a master gateway device from the multiple gateway devices; a second determining module, configured to receive the heartbeat messages of all the agent devices sent by the primary gateway device, and determine the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the primary gateway device.
According to another aspect of the embodiments of the present application, there is also provided an online status determining system, including: the proxy equipment is used for carrying out Bluetooth broadcasting and sending heartbeat information to the gateway equipment; the gateway device is used for receiving the Bluetooth broadcast of the agent device and sending the received signal intensity and heartbeat information of the Bluetooth broadcast of the agent device to a cloud platform; the cloud platform is used for receiving heartbeat messages sent by a plurality of gateway devices and determining a main gateway device from the plurality of gateway devices according to the signal strength of all proxy devices carried in the heartbeat messages; and receiving the heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
According to another embodiment of the present application, there is also provided an online status determining apparatus, including: the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending heartbeat messages to a cloud platform through a plurality of gateway devices, the heartbeat messages carry the signal intensity of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode; and a second sending module, configured to obtain the master gateway device determined by the cloud platform, and send the heartbeat messages of all the agent devices through the master gateway device, so that the cloud platform determines the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the master gateway device.
According to still another aspect of the embodiments of the present application, there is further provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above online status determining method when running.
According to another aspect of the embodiments of the present application, there is provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the online status determining method through the computer program.
In the embodiment of the application, heartbeat messages sent by a plurality of gateway devices are received, wherein the heartbeat messages carry signal strength of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning manner; determining a main gateway device from the plurality of gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message; receiving heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device; by adopting the technical scheme, the problem of how to accurately determine the online state of the agent equipment is solved, and the online state of the agent equipment is further accurately determined.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a hardware environment diagram of a method for determining presence status according to an embodiment of the present disclosure;
FIG. 2 is a flow diagram of a method of presence determination according to an embodiment of the present application;
FIG. 3 is a flow chart of yet another method of presence determination according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a presence determination system according to an embodiment of the present application;
FIG. 5 is a block diagram (I) of an online status determining apparatus according to an embodiment of the present application;
FIG. 6 is a block diagram of an online status determining apparatus according to an embodiment of the present application;
fig. 7 is a block diagram (iii) of a presence determination apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, 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 some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a method for determining presence status is provided. The online state determination method is widely applied to full-house intelligent digital control application scenes such as Smart Home (Smart Home), smart Home equipment ecology, smart Home (Intelligent House) ecology and the like. Alternatively, in this embodiment, the above-described online status determination method may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, set a database on the server or independent of the server, and provide a data storage service for the server 104, and configure a cloud computing and/or edge computing service on the server or independent of the server, and provide a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity ), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, a method for determining a presence status is provided, and is applied to the above-mentioned computer terminal, and fig. 2 is a flowchart of a method for determining a presence status according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, receiving heartbeat messages sent by a plurality of gateway devices, wherein the heartbeat messages carry signal strength of Bluetooth broadcast performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode;
it should be noted that the gateway device may be understood as an intelligent household appliance having a function of directly communicating with a cloud platform, for example, a device having a WIFI technology and a BLE technology. The proxy device may be understood as a device that does not have a direct communication capability with the cloud platform and needs to be scanned by the multiple gateway devices through a wireless scanning manner, for example, but not limited to, a device that only possesses bluetooth technology, and the like.
The wireless scanning mode may include, but is not limited to, WIFI technology and bluetooth technology.
Step S204, determining a main gateway device from the plurality of gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message;
in an embodiment, before the step S204, the following technical solutions may also be implemented: determining a main gateway device from the plurality of gateway devices according to the number of the proxy devices carried in the heartbeat message: determining the equipment number of the proxy equipment carried in the heartbeat messages sent by the plurality of gateway equipment; and if the number of the devices is the same, determining the main gateway device from the plurality of gateway devices according to the signal strength of the proxy device carried in the heartbeat message. For the case that the number of devices is the same, the master gateway device may be determined from the multiple gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message.
It should be noted that, when the number of devices is the same and the number of devices is equal to the number of proxy devices, the master gateway device may be determined from the multiple gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message;
further, the master gateway device is determined from the plurality of gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message. If the number of devices is different, the gateway device with the largest number of devices is determined to be the primary gateway device.
Step S206, receiving the heartbeat messages of all the proxy devices sent by the main gateway device, and determining the online states of all the proxy devices according to the heartbeat messages of all the proxy devices sent by the main gateway device.
Receiving heartbeat messages sent by a plurality of gateway devices through the steps, wherein the heartbeat messages carry the signal intensity of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode; determining a main gateway device from the plurality of gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message; and receiving the heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device, so that the problem of how to accurately determine the online states of the agent devices in the related art is solved, and the online states of the agent devices are further accurately determined.
In an exemplary embodiment, in order to better understand how to implement the technical scheme of determining a master gateway device from the multiple gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message in step S204, for each gateway device in the multiple gateway devices, a second preset number of the multiple proxy devices corresponding to each gateway device may be obtained; determining the gateway device with the largest second preset number as the main gateway device under the condition that the same value does not exist in the second preset numbers corresponding to the plurality of gateway devices; under the condition that the second preset quantity corresponding to the plurality of gateway devices has the same value, acquiring the average value of the signal intensity of the plurality of proxy devices corresponding to each gateway device; and determining the gateway device with the average value closest to the preset value as the main gateway device.
It should be noted that the unit of the signal strength may be, for example, DBm, and the preset value may be 0, so that when the signal strength value is 0DBm, the signal strength is the maximum.
In an exemplary embodiment, an implementation process for obtaining an average value of signal strengths of the proxy devices corresponding to each gateway device is further provided, and the specific steps include: determining a plurality of signal strength values of a first preset number received by each gateway device; the first preset number represents the number of the proxy devices corresponding to each gateway device, and each signal strength value in the multiple signal strength values is an average value of the signal strengths of the corresponding proxy devices; determining a first sum of the plurality of signal strength values, and determining a quotient of the first sum and the first preset number as an average of the signal strengths corresponding to each gateway device.
In an exemplary embodiment, a technical solution for determining a master gateway device from the multiple gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message in step S204 is further provided, and specifically may include: acquiring the device numbers of a plurality of proxy devices in heartbeat messages sent by the plurality of gateway devices; determining whether the device numbers of the plurality of proxy devices are bound to the same network account; and under the condition that the equipment numbers of the plurality of proxy equipment are bound with the same network account, determining main gateway equipment from the plurality of gateway equipment according to the signal strength of all the proxy equipment carried in the heartbeat message.
In an exemplary embodiment, after determining the master gateway device from the multiple gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message, another technical solution is further provided, which is specifically as follows: in scheme 1, notification information is sent to the plurality of gateway devices to indicate that a main gateway device in the plurality of gateway devices sends heartbeat messages of all proxy devices to a cloud platform, and other gateway devices stop sending heartbeat messages of the proxy devices to the cloud platform, wherein the notification information carries identification information of the main gateway device, and the other gateway devices are other gateway devices except the main gateway device in the plurality of gateway devices.
In the scheme 2, under the condition that the main gateway device is determined to be in the offline state, a wakeup message is sent to other gateway devices to indicate the other gateway devices to continue sending heartbeat messages of the proxy devices; and determining the main gateway equipment from the other gateway equipment again according to the heartbeat messages of the proxy equipment sent by the other gateway equipment.
And in the scheme 3, under the condition that the offline state of the first proxy device sent by the main gateway device is received, the inquiry message is sent to other gateway devices through the cloud platform so as to instruct the other gateway devices to continuously send the heartbeat messages of the proxy devices. If the heartbeat messages do not contain the heartbeat messages of the first proxy equipment, which indicates that the first proxy equipment is offline, sending an alarm message to a target object to prompt the first proxy equipment of the target object to be in an offline state, and overhauling the offline first proxy equipment; and if the heartbeat messages include the heartbeat messages of the first proxy equipment, which indicates that the offline messages sent by the main gateway equipment are wrong and the main gateway equipment needs to be determined again, determining the main gateway equipment from the other gateway equipment again according to the heartbeat messages of the proxy equipment sent by the other gateway equipment.
Through the embodiment, the heartbeat and the offline online state of each gateway device are reported to the cloud platform according to the scanned broadcast signal strength of the device, then the cloud platform calculates and designates a certain gateway device as a main gateway device, and simultaneously informs each gateway device, and then the main gateway device arranged by the cloud platform proxies the heartbeat and the online state of other devices, if the main gateway device is offline, the cloud platform is aware, and can recalculate and designate another main gateway device. Only one main gateway device interacts with the cloud, and the pressure of the server can be further relieved.
Fig. 3 is a flowchart of a method for determining an online status according to an embodiment of the present application, where the flowchart includes the following steps:
step S302, heartbeat messages are sent to a cloud platform through a plurality of gateway devices, wherein the heartbeat messages carry signal intensity of Bluetooth broadcast performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode;
step S304, obtaining the main gateway device determined by the cloud platform, and sending the heartbeat messages of all the agent devices through the main gateway device, so that the cloud platform determines the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
Through the steps, heartbeat messages carrying the signal intensity of the Bluetooth broadcast performed by the proxy equipment are sent to the cloud platform through the plurality of gateway equipment, wherein the proxy equipment is equipment scanned by the plurality of gateway equipment in a wireless scanning mode; the method comprises the steps of obtaining main gateway equipment determined by the cloud platform, and sending heartbeat messages of all agent equipment through the main gateway equipment so that the cloud platform can determine the online states of all the agent equipment according to the heartbeat messages of all the agent equipment sent by the main gateway equipment, and therefore the problem that how to accurately determine the online states of the agent equipment exists in the related technology is solved, and the online states of the agent equipment are accurately determined.
In an embodiment, notification information sent by the cloud platform may also be received, where the notification information is used to instruct the main gateway device to send heartbeat messages of all proxy devices to the cloud platform, and instruct other gateway devices to stop sending heartbeat messages of proxy devices to the cloud platform, where the notification information carries identification information of the main gateway device, and the other gateway devices are other gateway devices except the main gateway device in the plurality of gateway devices.
In one embodiment, when it is determined that the primary gateway device is in an offline state, receiving, by the other gateway devices, a wake-up message sent by the cloud platform, and continuously sending a heartbeat message of a proxy device according to the wake-up message; and sending a heartbeat message of the proxy device to the cloud platform, so that the cloud platform determines the main gateway device from the other gateway devices again.
In an embodiment, further, the online states of a plurality of agent devices corresponding to the main gateway device may be monitored, and in a case that it is determined that the online state of any agent device in the plurality of agent devices is changed into an offline state, the any agent device is determined as a first agent device; sending an offline state of the first proxy device to the cloud platform; continuously sending heartbeat messages of the agent equipment according to the query messages sent by the cloud platform, so that the cloud platform executes the following operations: if the heartbeat messages do not contain the heartbeat messages of the first proxy equipment, sending alarm messages to a target object to prompt the target object that the first proxy equipment is in an off-line state; and if the heartbeat message of the first proxy equipment is determined to be contained in the heartbeat message, determining the main gateway equipment from the other gateway equipment again according to the heartbeat message of the proxy equipment sent by the other gateway equipment.
In order to better understand the process of the online status determination method, the following describes a flow of the online status determination implementation method with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present application.
In this embodiment, a method for determining an online status is provided, and fig. 4 is a schematic diagram of a method for determining an online status according to an embodiment of the present application, and as shown in fig. 4, the following steps are specifically provided:
before executing the method of the present embodiment, preparation is performed as follows:
1. and acquiring a proxy device, wherein the proxy device is an intelligent household appliance device without a function of directly communicating with the cloud platform, such as a device only having a Bluetooth technology.
2. The method comprises the steps of obtaining gateway equipment, wherein the gateway equipment is intelligent household electrical appliance equipment with a cloud platform direct communication function, such as equipment with a WIFI technology and a BLE technology.
3. And setting a communication mode between the gateway device and the proxy device, for example, setting the gateway device and the proxy device to communicate in a Bluetooth broadcast and Bluetooth connection mode. For example, the gateway device may confirm whether the device is online and proxiable by scanning for broadcasts to the proxy device.
4. And setting the gateway equipment to report the online heartbeat of the equipment to the cloud platform every 60 seconds (the heartbeat comprises the average rssi of every 10 times of received broadcast, namely the average value of the signal strength). And if the offline message or the online message exists, reporting immediately.
5. And setting a tcp-ip connection mode adopted by communication between the gateway equipment and the cloud platform.
6. And simultaneously configuring and binding the gateway equipment and the proxy equipment under the same user account.
As shown in fig. 3, an embodiment of the present application further provides an online status determining system, including: the proxy equipment is used for carrying out Bluetooth broadcasting and sending heartbeat information to the gateway equipment; the gateway device is used for receiving the Bluetooth broadcast of the agent device and sending the received signal intensity and heartbeat information of the Bluetooth broadcast of the agent device to the cloud platform; the cloud platform is used for receiving heartbeat messages sent by a plurality of gateway devices and determining a main gateway device from the plurality of gateway devices according to the signal strength of all proxy devices carried in the heartbeat messages; and receiving heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
Next, a flow of assigning and calculating the master gateway device will be described with reference to fig. 4:
step S1: the proxy apparatus 1 transmits a bluetooth broadcast.
It should be noted that the proxy devices 1, 2, and 3 in fig. 3 are only exemplary, and do not represent a limitation to the number of proxy devices. The operation processes of the proxy device 2 and the proxy device 3 are the same as those of the proxy device 1, and the present embodiment will be described by taking the proxy device 1 as an example.
Step S2: the gateway devices each start a bluetooth scan and sweep the bluetooth broadcast of the proxy device and derive the signal strength rssi of the bluetooth broadcast.
And step S3: the gateway device calculates the rssi average every 10 times.
And step S4: and the gateway equipment adds the rssi average value calculated by the gateway equipment to the heartbeat message of the proxy equipment and reports the heartbeat message to the cloud.
Step S5: and the cloud platform receives the rssi values of the proxy devices reported by all the gateway devices under the user name, and obtains the device ID which can be used as the main gateway device through calculation.
The cloud platform can calculate the rsi values of the proxy devices reported by all the gateway devices through the calculation center.
Step S6: the cloud platform informs all gateway devices under the user name of the id of the main gateway device through a specified protocol command.
Step S7: and the other gateway equipment stops sending the heartbeat of the proxy equipment when finding that the other gateway equipment is not set as the main gateway equipment.
Step S8: the heartbeat of the proxy device continues to be sent by the primary gateway device.
Step S9: the primary gateway device is determined in real time.
This process can be achieved by the following steps:
step S10: if the main gateway device goes down the ionization line, the cloud end finds that the main gateway device goes off the line, and immediately sends a wakeup message to other gateways under the user name, and the other gateway devices continue to scan and report the heartbeat of the proxy device. The above step S2 is re-executed.
Step S11: if a certain proxy device is offline, the main gateway device reports the offline of the proxy device, after receiving the offline message, the cloud platform needs to issue query commands to all the named gateway devices, each gateway should report the heartbeat of the proxy device which the gateway depots, and if all the gateway devices do not report the heartbeat of the proxy device, the cloud platform judges that the device is offline and immediately pushes the device to a user. Otherwise, the flow of calculating the main gateway device is restarted, and a message of recalculating the main gateway device is pushed to all the devices. Each gateway device re-executes step S4.
Further, the process for calculating the primary gateway device may be implemented by:
step S12: the cloud platform receives the RSSI average value of the proxy equipment and the heartbeat of the proxy equipment, which are reported by the gateway equipment;
step S13: and comprehensively calculating the RSSI value and the device heartbeat of all the gateway devices under the same user name. Wherein, step S13 is realized through steps S1301 to S1302:
step S1301: if the number of the proxy devices reported by each gateway device is different. The gateway device with the largest number of devices is selected as the primary gateway device.
Step S1302: if the number of the proxy devices reported by each gateway device is the same, the main gateway device with the best RSSI signal is calculated according to the RSSI. The specific calculation method is as follows:
1) Firstly, the RSSI average value of all the reported proxy equipment reported by each gateway is calculated.
2) The calculated RSSI averages are then compared.
3) In the results, the closer the RSSI average is to 0 indicates the better the gateway device is located.
4) The gateway device is set as the master gateway device.
Through the embodiment, the main gateway equipment in each gateway equipment is calculated by combining the cloud computing technology, so that the capability of unifying the proxy of other equipment is achieved, and the access between each equipment in a family and a cloud platform can be optimized, so that the pressure of a cloud platform server is relieved. The invention can provide the online state of each device for the user when the user uses a plurality of intelligent household appliances, thereby improving the perception accuracy of the user on the state of the device, improving the control accuracy of each device and further improving the user experience.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
FIG. 5 is a block diagram (I) of an online status determining apparatus according to an embodiment of the present application; as shown in fig. 5, includes:
a receiving module 42, configured to receive heartbeat messages sent by multiple gateway devices, where the heartbeat messages carry signal strength of a proxy device performing bluetooth broadcast, and the proxy device is a device scanned by the multiple gateway devices in a wireless scanning manner;
it should be noted that, the gateway device may be understood as an intelligent household electrical appliance device having a function of directly communicating with a cloud platform, for example, a device having a WIFI technology and a BLE technology. The proxy device may be understood as a device that does not have a direct communication capability with the cloud platform and needs to be scanned by the multiple gateway devices through a wireless scanning manner, for example, a device that only possesses bluetooth technology, and the like, but is not limited thereto.
The wireless scanning mode may include, but is not limited to, a WIFI technology and a bluetooth technology.
A first determining module 44, configured to determine, according to the signal strengths of all the proxy devices carried in the heartbeat message, a master gateway device from the multiple gateway devices;
in an embodiment, before the step S204, the following technical solutions may also be implemented: determining a master gateway device from the plurality of gateway devices according to the number of the proxy devices carried in the heartbeat message: determining the number of the proxy devices carried in the heartbeat messages sent by the plurality of gateway devices; and if the number of the devices is the same, determining the main gateway device from the plurality of gateway devices according to the signal strength of the proxy device carried in the heartbeat message. For the case that the number of devices is the same, the master gateway device may be determined from the multiple gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message.
It should be noted that, in the case that the number of devices is the same and the number of devices is equal to the number of proxy devices, the primary gateway device may be determined from the multiple gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message.
Further, the main gateway device is determined from the multiple gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message. If the number of devices is different, the gateway device with the largest number of devices is determined to be the primary gateway device.
A second determining module 46, configured to receive the heartbeat messages of all the agent devices sent by the primary gateway device, and determine the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the primary gateway device.
By the device, heartbeat messages sent by a plurality of gateway devices are received, wherein the heartbeat messages carry signal strength of Bluetooth broadcast performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode; determining a main gateway device from the plurality of gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message; and receiving the heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device, thereby solving the problem of how to accurately determine the online states of the agent devices in the related art and further accurately determining the online states of the agent devices.
In an embodiment, the first determining module 44 is further configured to, for each of the plurality of gateway devices, obtain a second preset number of the plurality of proxy devices corresponding to each of the plurality of gateway devices; determining the gateway device with the largest second preset number as the main gateway device under the condition that the same value does not exist in the second preset numbers corresponding to the plurality of gateway devices; under the condition that the second preset quantity corresponding to the plurality of gateway devices has the same value, acquiring the average value of the signal intensity of the plurality of proxy devices corresponding to each gateway device; and determining the gateway device with the average value closest to a preset value as the main gateway device.
It should be noted that the unit of the signal strength may be, for example, DBm, and the preset value may be 0, so that when the signal strength value is 0DBm, the signal strength is the maximum.
In an exemplary embodiment, the first determining module 44 is further configured to determine a first preset number of multiple signal strength values received by each gateway device; the first preset number represents the number of the proxy devices corresponding to each gateway device, and each signal strength value in the multiple signal strength values is an average value of the signal strengths of the corresponding proxy devices; determining a first sum of the plurality of signal strength values, and determining a quotient of the first sum and the first preset number as an average value of the signal strength corresponding to each gateway device.
In an exemplary embodiment, the first determining module 44 is further configured to obtain device numbers of a plurality of proxy devices in heartbeat messages sent by the plurality of gateway devices; determining whether the device numbers of the plurality of proxy devices are bound to the same network account; and under the condition that the equipment numbers of the plurality of proxy equipment are determined to be bound with the same network account, determining the main gateway equipment from the plurality of gateway equipment according to the signal strength of all the proxy equipment carried in the heartbeat message.
FIG. 6 is a block diagram of an online status determining apparatus according to an embodiment of the present application; as shown in fig. 6, in an exemplary embodiment, the online status determining apparatus further includes a first indication module 62, configured to: and sending notification information to the plurality of gateway devices to indicate a main gateway device in the plurality of gateway devices to send heartbeat messages of all proxy devices to a cloud platform and other gateway devices to stop sending heartbeat messages of the proxy devices to the cloud platform, wherein the notification information carries identification information of the main gateway device, and the other gateway devices are other gateway devices except the main gateway device in the plurality of gateway devices.
In an exemplary embodiment, the apparatus for determining an online status further includes a second indication module, configured to send a wake-up message to another gateway device to indicate the other gateway device to continue sending heartbeat messages of a proxy device, when it is determined that the main gateway device is in an offline state; and determining the main gateway equipment from the other gateway equipment again according to the heartbeat messages of the proxy equipment sent by the other gateway equipment.
In an exemplary embodiment, the above apparatus for determining an online status further includes a third indication module, configured to send, by the cloud platform, a query message to the other gateway device to indicate the other gateway device to continue sending heartbeat messages of the proxy device, when it is determined that the main gateway device sends the offline status of the first proxy device to the cloud platform. If the heartbeat messages do not contain the heartbeat messages of the first proxy equipment, and the first proxy equipment is off-line, sending an alarm message to a target object to prompt the target object to overhaul the off-line first proxy equipment; if it is determined that the heartbeat message includes the heartbeat message of the offline first proxy device, which indicates that the offline message sent by the main gateway device is incorrect, and the main gateway device needs to be determined again, the main gateway device is determined again from the other gateway devices according to the heartbeat messages of the proxy devices sent by the other gateway devices.
Fig. 7 is a block diagram (iii) of an online status determining apparatus according to an embodiment of the present application; as shown in fig. 7, the online status determination device includes:
a first sending module 72, configured to send a heartbeat message to a cloud platform through a plurality of gateway devices, where the heartbeat message carries a signal strength of a proxy device performing bluetooth broadcast, and the proxy device is a device scanned by the plurality of gateway devices in a wireless scanning manner;
a second sending module 74, configured to obtain the primary gateway device determined by the cloud platform, and send the heartbeat messages of all the agent devices through the primary gateway device, so that the cloud platform determines the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the primary gateway device.
By the device, heartbeat messages carrying the signal intensity of the Bluetooth broadcast performed by the proxy equipment are sent to the cloud platform through the plurality of gateway equipment, wherein the proxy equipment is equipment scanned by the plurality of gateway equipment in a wireless scanning mode; the method comprises the steps of obtaining main gateway equipment determined by the cloud platform, sending heartbeat messages of all agent equipment through the main gateway equipment, enabling the cloud platform to determine the online states of all the agent equipment according to the heartbeat messages of all the agent equipment sent by the main gateway equipment, solving the problem of how to accurately determine the online states of the agent equipment in the related technology, and further accurately determining the online states of the agent equipment.
In an embodiment, the apparatus for determining an online state further includes a notification information receiving module, configured to receive notification information sent by the cloud platform, where the notification information is used to instruct the main gateway device to send heartbeat messages of all proxy devices to the cloud platform, and instruct other gateway devices to stop sending heartbeat messages of the proxy devices to the cloud platform, where the notification information carries identification information of the main gateway device, and the other gateway devices are other gateway devices, except the main gateway device, in the plurality of gateway devices.
In an embodiment, the apparatus for determining an online status further includes a wakeup information receiving module, configured to receive, by the other gateway devices, a wakeup message sent by the cloud platform and continue to send a heartbeat message of the agent device according to the wakeup message when it is determined that the main gateway device is in an offline state; and sending a heartbeat message of the proxy device to the cloud platform, so that the cloud platform determines the main gateway device from the other gateway devices again.
In an embodiment, the apparatus for determining an online state further includes a monitoring module, configured to monitor an online state of a plurality of proxy devices corresponding to the primary gateway device, and determine, when it is determined that the online state of any one of the plurality of proxy devices is changed to an offline state, the any one of the proxy devices as a first proxy device; sending an offline state of the first proxy device to the cloud platform; continuously sending heartbeat messages of the agent equipment according to the query messages sent by the cloud platform, so that the cloud platform executes the following operations: if the heartbeat message does not contain the heartbeat message of the first proxy equipment, sending an alarm message to a target object to prompt the first proxy equipment of the target object to be in an off-line state; and if the heartbeat message of the first proxy equipment is determined to be contained in the heartbeat message, determining the main gateway equipment from the other gateway equipment again according to the heartbeat message of the proxy equipment sent by the other gateway equipment.
Embodiments of the present application further provide a storage medium including a stored program, where the program executes the method of any one of the above.
Alternatively, in this embodiment, the storage medium may be configured to store program codes for performing the following steps:
the method comprises the following steps that S1, heartbeat messages sent by a plurality of gateway devices are received, wherein the heartbeat messages carry signal intensity of Bluetooth broadcast performed by proxy devices, and the proxy devices are devices scanned by the gateway devices in a wireless scanning mode;
s2, determining main gateway equipment from the plurality of gateway equipment according to the signal strength of all the proxy equipment carried in the heartbeat message;
and S3, receiving the heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
the method comprises the following steps that S1, heartbeat messages sent by a plurality of gateway devices are received, wherein the heartbeat messages carry signal intensity of Bluetooth broadcast performed by proxy devices, and the proxy devices are devices scanned by the gateway devices in a wireless scanning mode;
s2, determining main gateway equipment from the plurality of gateway equipment according to the signal strength of all the proxy equipment carried in the heartbeat message;
and S3, receiving the heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (12)

1. A method for presence determination, comprising:
receiving heartbeat messages sent by a plurality of gateway devices, wherein the heartbeat messages carry signal strength of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode;
determining a main gateway device from the plurality of gateway devices according to the signal strength of all the proxy devices carried in the heartbeat message;
and receiving the heartbeat messages of all the agent devices sent by the main gateway device, and determining the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
2. The method of claim 1, wherein determining a master gateway device from the plurality of gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message comprises:
for each gateway device in the plurality of gateway devices, obtaining a second preset number of a plurality of proxy devices corresponding to each gateway device;
determining the gateway device with the largest second preset number as the main gateway device under the condition that the same value does not exist in the second preset numbers corresponding to the plurality of gateway devices;
under the condition that the second preset quantity corresponding to the plurality of gateway devices has the same value, acquiring the average value of the signal intensity of the plurality of proxy devices corresponding to each gateway device;
and determining the gateway device with the average value closest to a preset value as the main gateway device.
3. The presence determination method of claim 1, further comprising:
under the condition of receiving the offline state of the first proxy device sent by the main gateway device, sending a query message to other gateway devices to instruct the other gateway devices to continue sending heartbeat messages of the proxy devices;
if the heartbeat messages do not contain the heartbeat messages of the first proxy equipment, sending alarm messages to a target object to prompt the target object that the first proxy equipment is in an off-line state;
and if the heartbeat message contains the heartbeat message of the first proxy device, determining the main gateway device from the other gateway devices again according to the heartbeat messages of the proxy devices sent by the other gateway devices.
4. The method of claim 1, wherein determining a master gateway device from the plurality of gateway devices according to the signal strengths of all the proxy devices carried in the heartbeat message comprises:
acquiring the device numbers of a plurality of proxy devices in heartbeat messages sent by the plurality of gateway devices;
determining whether the device numbers of the plurality of proxy devices are bound to the same network account;
and under the condition that the equipment numbers of the plurality of proxy equipment are determined to be bound with the same network account, determining the main gateway equipment from the plurality of gateway equipment according to the signal strength of all the proxy equipment carried in the heartbeat message.
5. A method for determining the presence status is applied to a gateway device, and comprises the following steps:
sending heartbeat messages to a cloud platform through a plurality of gateway devices, wherein the heartbeat messages carry signal intensity of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode;
and acquiring the main gateway equipment determined by the cloud platform, and sending heartbeat messages of all the agent equipment through the main gateway equipment so that the cloud platform determines the online states of all the agent equipment according to the heartbeat messages of all the agent equipment sent by the main gateway equipment.
6. The presence determination method of claim 5, further comprising:
receiving notification information sent by the cloud platform, wherein the notification information is used for indicating the main gateway device to send heartbeat messages of all the agent devices to the cloud platform and indicating other gateway devices to stop sending heartbeat messages of the agent devices to the cloud platform, the notification information carries identification information of the main gateway device, and the other gateway devices are other gateway devices except the main gateway device in the plurality of gateway devices.
7. The presence determination method of claim 6, wherein the method further comprises:
under the condition that the main gateway device is determined to be in an offline state, receiving a wakeup message sent by the cloud platform through the other gateway devices, and continuously sending a heartbeat message of the proxy device according to the wakeup message;
and sending a heartbeat message of the proxy device to the cloud platform, so that the cloud platform determines the main gateway device from the other gateway devices again.
8. The presence determination method of claim 6, further comprising:
monitoring the online states of a plurality of proxy devices corresponding to the main gateway device, and determining any proxy device as a first proxy device under the condition that the online state of any proxy device in the plurality of proxy devices is determined to be changed into an offline state;
sending an offline state of the first proxy device to the cloud platform;
continuously sending heartbeat messages of the agent equipment according to the query messages sent by the cloud platform, so that the cloud platform executes the following operations: if the heartbeat message does not contain the heartbeat message of the first proxy equipment, sending an alarm message to a target object to prompt the first proxy equipment of the target object to be in an off-line state; and if the heartbeat message of the first proxy equipment is determined to be contained in the heartbeat message, determining the main gateway equipment from the other gateway equipment again according to the heartbeat message of the proxy equipment sent by the other gateway equipment.
9. An online status determining apparatus, comprising:
the receiving module is used for receiving heartbeat messages sent by a plurality of gateway devices, wherein the heartbeat messages carry signal strength of Bluetooth broadcast performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode;
a first determining module, configured to determine, according to the signal strengths of all the proxy devices carried in the heartbeat message, a master gateway device from the multiple gateway devices;
a second determining module, configured to receive the heartbeat messages of all the agent devices sent by the primary gateway device, and determine the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the primary gateway device.
10. An online status determining apparatus, comprising:
the system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending heartbeat messages to a cloud platform through a plurality of gateway devices, the heartbeat messages carry signal intensity of Bluetooth broadcasting performed by proxy devices, and the proxy devices are devices scanned by the plurality of gateway devices in a wireless scanning mode;
and the second sending module is used for obtaining the main gateway device determined by the cloud platform and sending the heartbeat messages of all the agent devices through the main gateway device, so that the cloud platform determines the online states of all the agent devices according to the heartbeat messages of all the agent devices sent by the main gateway device.
11. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 8.
12. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 8 by means of the computer program.
CN202210899791.0A 2022-07-28 2022-07-28 Online state determination method and device, storage medium and electronic device Pending CN115474225A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210899791.0A CN115474225A (en) 2022-07-28 2022-07-28 Online state determination method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210899791.0A CN115474225A (en) 2022-07-28 2022-07-28 Online state determination method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115474225A true CN115474225A (en) 2022-12-13

Family

ID=84366670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210899791.0A Pending CN115474225A (en) 2022-07-28 2022-07-28 Online state determination method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115474225A (en)

Similar Documents

Publication Publication Date Title
CN110971495A (en) Equipment binding method and device of intelligent household system and storage medium
CN110365704B (en) Equipment binding method and device and electronic equipment
CN106909081B (en) Household electrical appliance and expansion platform based on same
CN116016002A (en) Intelligent household appliance network distribution method and device and electronic device
CN113824617A (en) Network distribution method, storage medium, household appliance and cloud server
CN110535733B (en) Control method and device of household appliance, computer equipment and storage medium
CN113296729A (en) Prompt message broadcasting method, device and system, storage medium and electronic device
CN115474225A (en) Online state determination method and device, storage medium and electronic device
CN116614858A (en) Data transmission method and device, storage medium and electronic equipment
CN114900826A (en) Equipment binding method and device, storage medium and electronic device
CN115345225A (en) Method and device for determining recommended scene, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN109151014B (en) NAN-based intelligent management method and related product
CN113938339A (en) Network distribution method, storage medium, household appliance, mobile terminal and network distribution system
CN107920003B (en) Method, equipment and system for managing household electrical equipment
CN113904890B (en) Linkage method, device and equipment of chopping block disinfection machine
CN114697359B (en) Data collection method and device, storage medium and electronic device
CN115174292B (en) Equipment data management platform
CN115314549B (en) Offline equipment management method, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115314503A (en) Data transmission method and device, storage medium and electronic device
CN117749593A (en) Distribution network data filling method and device, storage medium and electronic device
CN115113534A (en) Scene execution method and device, storage medium and electronic device
CN116527425A (en) Message processing method and device, storage medium and electronic device
CN115695182A (en) Network connection method, device, storage medium and electronic 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