Method, management device and storage medium for ensuring wireless data reporting is not easily lost
By receiving and processing the human body detection results of the human body radar in the smart hotel, generating and executing control instructions to turn off the power, the problem of data reporting loss caused by unstable network conditions is solved, and the security of smart power consumption and data transmission are improved. reliability.
Patent Information
- Application Number
- CN202310072157.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-13
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-01-13
AI Technical Summary
In a smart hotel scenario, when the network condition is unstable, data reports are easily lost, especially automatic reports are lost due to residents forgetting to turn off the power.
By receiving the setting information sent by the control terminal, the information collection time point is determined, the human body detection results of the human body sensing radar are obtained, and the results are sent to the network platform. The network platform generates control instructions based on the detection results, and controls the management equipment to perform corresponding control actions. For example, turn off the power and increase the number and frequency of data reporting.
It effectively avoids the loss of data reporting, improves the safety of smart power consumption, reduces power waste, and improves the reliability of the power management system.
Smart Images

Figure CN116170767B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless data transmission, and in particular to a method, management equipment and storage medium for ensuring that wireless data reporting is not easily lost. Background Art
[0002] In current hotel scenarios, most power control strategies are implemented around hotel room cards, and power is turned on by inserting the card. However, since the hotel room card is bound to the room door lock, residents have to bring the room card when entering and leaving to ensure safety, and residents are also accustomed to using the room card as the main power switch. In the smart hotel scenario, the physical room card is replaced by a mobile room card, and residents can open the room through a mobile terminal.
[0003] However, residents are still accustomed to unplugging the card to turn off the power. When leaving the room, residents will forget to turn off the power (such as the light). When the single-chip computer of the human body radar senses that there is no one in the current room, it will actively report the data to the wireless module, which will upload it to the network platform. This instruction that only reports data when the preset conditions are met will cause the problem of data loss when the network condition is unstable.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, a management device and a storage medium to ensure that wireless data reporting is not easily lost, so as to solve the problem of data reporting loss in the prior art.
[0006] To achieve the above object, the present invention provides a method for ensuring that wireless data reporting is not easily lost, the method comprising the following steps:
[0007] Receive the setting information sent by the control terminal, and determine the information collection time point according to the setting information;
[0008] When the information collection time point is reached, obtaining the human body detection result collected by the human body sensing radar;
[0009] The human body detection result is sent to a network platform, wherein the network platform generates a control instruction according to the human body detection result to control the management device to perform a corresponding control action.
[0010] Optionally, when the information collection time point is reached, the step of obtaining the human body detection result collected by the human body sensing radar includes:
[0011] When the information collection time point is reached, a human body detection result request is sent to the wireless module of the human body sensing radar, wherein the wireless module sends a serial port command to the micro control unit according to the human body detection result request, and obtains the human body detection result sent by the micro control unit based on the serial port;
[0012] Receive the human body detection result sent by the wireless module of the human body sensing radar.
[0013] Optionally, after the step of acquiring the human body detection result collected by the human body sensing radar when the information collection time point is reached, the method further includes:
[0014] When the information collection time point is not reached, if the human body detection result actively sent by the wireless module is received, the human body detection result is sent to the network platform.
[0015] Optionally, after the step of sending the human body detection result to the network platform, the method further includes:
[0016] receiving the control instruction and determining a target electrical appliance corresponding to the control instruction;
[0017] Acquire the usage status of the target electrical appliance;
[0018] When the target electrical appliance is in an operating state, a power-off action corresponding to the target electrical appliance is executed.
[0019] Optionally, the control instruction includes a first instruction and a second instruction, the first instruction is used to control the shutdown of a first category of electrical appliances, and the second instruction is used to shut down a second category of electrical appliances, wherein the network platform determines the length of time a human body has been away from the room based on the human body detection result, and generates and sends the first instruction and / or the second instruction to the management device based on the length of time the human body has been away.
[0020] Optionally, the first category of electrical appliances includes at least electric lamps and hair dryers, and the second category of electrical appliances includes at least air conditioners and televisions, and when the target electrical appliance is in a running state, the step of executing a power-off action corresponding to the target electrical appliance includes:
[0021] When the electric light and the hair dryer are in operation, turning off the electric light and the hair dryer based on the first instruction;
[0022] When the air conditioner is in operation, the air conditioner is turned off based on the second instruction.
[0023] Optionally, after the step of obtaining the human body detection result collected by the human body sensing radar, the method further includes:
[0024] When the human body detection result indicates that a human body is present, the door reminder device is controlled to display an anti-disturbance reminder message;
[0025] When the detection result is that there is no human body, obtaining cleaning setting information;
[0026] When the cleaning setting information indicates that cleaning is required, the door reminder device is controlled to display the cleaning reminder information, and / or the cleaning reminder information is sent to the target terminal.
[0027] Optionally, after the step of controlling the door reminder device to display cleaning reminder information and / or sending the cleaning reminder message to the target terminal, the step further includes:
[0028] Receive biometric information collected by security components;
[0029] When the biometric information matches the preset information corresponding to the cleaning staff, the security system is controlled to enter the cleaning mode.
[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a management device, which includes a memory, a processor, and a data reporting program stored in the memory and executable on the processor. When the data reporting program of the management device is executed by the processor, the steps of the method for ensuring that wireless data reporting is not easily lost as described above are implemented.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a data reporting program of a management device is stored. When the data reporting program of the management device is executed by a processor, the steps of the method for ensuring that wireless data reporting is not easily lost as described above are implemented.
[0032] The embodiment of the present invention provides a method for ensuring that wireless data reporting is not easily lost, which is applied to a management device, receives setting information sent by a control terminal, and determines the information collection time point according to the setting information. When the information collection time point is reached, the human body detection result collected by the human body sensing radar is obtained, and the human body detection result is sent to a network platform, wherein the network platform generates a control instruction according to the human body detection result, and controls the management device to perform a corresponding control action. It can be seen that by collecting the human body detection results collected by the radar sensor at multiple collection time points, and sending the human body detection results to the network platform, the network platform generates a control instruction, and controls the management device to perform the control action associated with the control instruction, so as to increase the number and frequency of active data reporting, so that the actively reported data is not easily lost. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the description of the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor.
[0034] Figure 1 A flowchart of a first embodiment of a method for ensuring that wireless data reporting is not easily lost according to the present invention;
[0035] Figure 2 It is a flowchart diagram of a second embodiment of the method for ensuring that wireless data reporting is not easily lost according to the present invention;
[0036] Figure 3 It is a schematic diagram of the terminal hardware structure of various embodiments of the method for ensuring that wireless data reporting is not easily lost of the present invention.
[0037] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0038] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0039] In current hotel scenarios, most power control strategies are implemented around hotel room cards, and power is turned on by inserting the card. However, since the hotel room card is bound to the room door lock, residents have to bring the room card when entering and leaving to ensure safety, and residents are also accustomed to using the room card as the main power switch. In the smart hotel scenario, the physical room card is replaced by a mobile room card, and residents can open the room through a mobile terminal.
[0040] However, residents are still accustomed to unplugging the card to turn off the power. When leaving the room, residents will forget to turn off the power (such as the light). When the single-chip computer of the human body radar senses that there is no one in the current room, it will actively report the data to the wireless module, which will upload it to the network platform. This instruction that only reports data when the preset conditions are met will cause the problem of data loss when the network condition is unstable.
[0041] To solve the above defects, an embodiment of the present invention proposes a method for ensuring that wireless data reporting is not easily lost, and its main solution includes the following steps:
[0042] Receive the setting information sent by the control terminal, and determine the information collection time point according to the setting information;
[0043] When the information collection time point is reached, obtaining the human body detection result collected by the human body sensing radar;
[0044] The human body detection result is sent to a network platform, wherein the network platform generates a control instruction according to the human body detection result to control the management device to perform a corresponding control action.
[0045] The present invention uses a method for ensuring that wireless data reporting is not easily lost. The human body detection results collected by a radar sensor are collected at multiple collection time points, and the human body detection results are sent to a network platform. The network platform generates a control instruction and controls the management device to execute the control action associated with the control instruction, so as to increase the number and frequency of active data reporting, so that the actively reported wireless data is not easily lost.
[0046] The content to be protected by the claims of the present invention will be described in detail below with reference to the accompanying drawings.
[0047] Reference Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for ensuring that wireless data reporting is not easily lost according to the present invention.
[0048] The embodiments of the present invention provide embodiments of methods for ensuring that wireless data reporting is not easily lost. It should be noted that although the logical order is shown in the flow chart, in some cases, the steps shown or described may be executed in an order different from that here. The execution subject of each embodiment of the method for ensuring that wireless data reporting is not easily lost of the present invention may be a management device, which includes a conventional control power switch and a power control system for executing complex power instructions, and can be connected to the network and interact with sensors and network systems (network platforms). The various embodiments do not limit the type and style of the management device and the specific implementation details. In this embodiment, the method for ensuring that wireless data reporting is not easily lost includes the following steps S10-S30:
[0049] Step S10, receiving the setting information sent by the control terminal, and determining the information collection time point according to the setting information;
[0050] In this embodiment, the application scenarios of this solution may include smart hotels, smart homes, and smart warehouses. The control terminal may be a smart phone, a tablet computer, or a smart device with an interactive interface. The setting information may be a timed monitoring instruction sent by a user through a control terminal such as a mobile phone, or a preset timed monitoring instruction input by a backend manager through a backend management platform, or an instruction input according to actual user needs. The information collection time point is determined by a terminal device such as a power control system based on the current time and the timed monitoring instruction. For example, if the timed monitoring instruction input by the user through a mobile phone is 5 minutes and the current time is 09:50, the information collection time point may be 09:50, 09:55, 10:00, etc., and the control instruction may be a power off instruction.
[0051] After the power control system receives the scheduled monitoring instruction sent by the user through the mobile phone terminal, it obtains the current time point and determines the information collection point based on the current time point and the scheduled monitoring instruction, so that the power control system can obtain the human body detection results collected by the human body sensing radar based on the information collection point in a timely manner.
[0052] Step S20, when the information collection time point is reached, obtaining the human body detection result collected by the human body sensing radar;
[0053] In this embodiment, when the human body detection result is that there is a person, it is marked with 1, and when there is no person, it is marked with 0. Specifically, when the information collection time point is reached, the power control system obtains the human body detection result collected by the human body sensing radar, and the steps specifically include:
[0054] Step S21, when the information collection time point is reached, sending a human body detection result request to the wireless module of the human body sensing radar, wherein the wireless module sends a serial port command to the micro control unit according to the human body detection result request, and obtains the human body detection result sent by the micro control unit based on the serial port;
[0055] Specifically, the wireless module may be a ZigBee module, and the microcontroller unit is an MCU (MicroControl Unit) of the management device, also known as a single-chip microcomputer.
[0056] Step S22, receiving the human body detection result sent by the wireless module of the human body sensing radar.
[0057] Optionally, when the information collection time point has not been reached, if the human body detection result actively sent by the wireless module is received, the human body detection result is sent to the network platform.
[0058] It should be noted that the human body sensing radar includes at least a wireless module such as a ZigBee module, a sensor and an MCU. The MCU in the human body sensing radar will report the changed information to the ZigBee module only when certain conditions are met. For example, when the user is present, the MCU data is 1, and when the user leaves, the MCU data becomes 0. Only at this time will the MCU report the data change information to the ZigBee module. After receiving the information, the ZigBee module reports the data to the network platform. In the smart hotel scenario, most users leave the room at the same time, which will cause network communication congestion or even interruption, resulting in data upload loss, so that the network platform cannot receive the corresponding human body change information, and cannot generate the corresponding control instructions, thereby causing the power management system to be unable to execute the corresponding control instructions. To this end, this solution actively obtains the data information of the MCU through the ZigBee module. After reaching the information collection time point, the ZigBee module responds to the human body detection result request sent by the power management system, sends a serial port command to the MCU (the command is the MCU protocol command), obtains the current data of the MCU, and then feeds the current data back to the power management system. Based on this, by arriving at the information collection time point, that is, the ZigBee module actively obtains the data of the device MCU at a fixed time, there is no need to wait until the MCU meets the conditions to send data, so that the data can be retransmitted more often, which can effectively ensure that data is not easily lost during transmission. At the same time, in this process, the data uploaded to ZigBee by the MCU when the preset conditions are met does not conflict with the data obtained by the ZigBee module based on the information collection time point. The two can be carried out in parallel. In other words, when the information collection time point is not reached, if the human body detection result sent by the wireless module is received, the human body detection result will be sent to the network platform.
[0059] Based on this, in this embodiment, when the information collection time point is reached, the power management system sends a human body detection request to a wireless module of the human body sensing radar, such as a ZigBee module. When the ZigBee module receives the human body detection result request, it sends a serial port command to the MCU. After the MCU recognizes the serial port command, it feeds back the current data to the ZigBee module, and then the ZigBee module feeds back (returns) the data to the power management system.
[0060] Optionally, before the ZigBee module sends a serial port command to the MCU, the ZigBee module also needs to obtain the serial port communication protocol reported by the MCU data. This can be done by parsing the serial port communication protocol of the data when the data actively sent by the MCU is received for the first time, or by directly sending an access instruction and receiving the serial port protocol information returned by the MCU.
[0061] In another optional embodiment, the method based on the data of the ZigBee module initiative or the device MCU can also be applied in the following scenarios:
[0062] For example, in a culture dish, it is necessary to record the changes in microorganisms when the carbon dioxide concentration reaches 20%. At this time, a device is needed to record, and the device includes at least an MCU and a wireless module (which can be a ZigBee module). When the carbon dioxide concentration reaches 20% (it can be considered that the objective conditions are met or the objective conditions have changed), the MCU will report data to the ZigBee module. If the network condition is not good at this time, the ZigBee module will be unable to upload the data, and the task will be unable to follow up. At this time, the ZigBee module will periodically obtain the carbon dioxide concentration value recorded by the MCU, and upload the data after each acquisition to avoid uploading data only once when the preset conditions are met. If the data fails to be uploaded, the experimental record will fail.
[0063] Or it can be applied to automatic alarm devices. When the smoke concentration reaches a certain threshold, the MCU of the automatic alarm device will upload the alarm data to the ZigBee module, and then transmit it to the network service background, and then control the alarm device to execute the alarm action through the network service background. However, in this case, if the network is affected, the automatic alarm device will not be able to report important information to the network service background in time, and the best alarm time will be missed, causing economic losses.
[0064] Step S30, sending the human body detection result to a network platform, wherein the network platform generates a control instruction according to the human body detection result to control the management device to perform a corresponding control action.
[0065] Specifically, in this embodiment, the power management system will send the human body detection results obtained at each information collection time point to the network platform. After receiving the human body detection results, the network platform will generate corresponding control instructions according to the content represented by the human body detection results. For example, when an unmanned detection result is received, a first-level power-off instruction can be generated. The first-level power-off instruction includes shutting down high-power electrical appliances such as air conditioners, electric water heaters, etc., and the first-level power-off instruction is returned to the power management system.
[0066] Optionally, the control instruction includes a power off action, and after step S30, further includes:
[0067] receiving the control instruction and determining a target electrical appliance corresponding to the control instruction;
[0068] Acquire the usage status of the target electrical appliance;
[0069] When the target electrical appliance is in an operating state, a power-off action corresponding to the target electrical appliance is executed.
[0070] It should be noted that the control instruction includes a first instruction and a second instruction, wherein the first instruction is used to control the shutdown of the first category of electrical appliances, such as lights, hair dryers, etc., which do not need to maintain the current operating state, and the second instruction is used to shut down the second category of electrical appliances, such as air conditioners, etc., wherein the network platform determines the length of time a human body has been away from the room based on the human body detection result, and generates and sends the first instruction and / or the second instruction to the management device based on the length of time the human body has been away.
[0071] Exemplarily, after the user leaves the room, the network platform generates a first instruction for turning off lights, hair dryers and other equipment and a second instruction for turning off the air conditioner and pausing TV playback based on the received detection result of no human presence and the current detection result showing that the human body has been away for more than 10 minutes, and returns the first instruction and the second instruction to the power management system.
[0072] The power management system detects the operating status of the light, hair dryer, air conditioner, TV and other equipment corresponding to the first instruction and the second instruction. When it is detected that the light and hair dryer are still in normal operation, the light and hair dryer are directly powered off based on the first instruction. When it is detected that the air conditioner is in normal operation, the air conditioner needs to be controlled to shut down first, and then the air conditioner power supply is turned off to avoid the impact of the air conditioner and other equipment due to abnormal shutdown.
[0073] Optionally, when it is detected that the TV is still in operation, the current operating status of the TV can be obtained through the ZigBee module. If the TV is in a video-on-demand interface, such as selecting a movie or TV series, the TV is not controlled to shut down, but the current state is maintained and the TV is controlled to enter a paused state. If the TV interface itself is in a paused state, no other operation is required.
[0074] In this embodiment, by receiving the scheduled monitoring instructions sent by the control terminal, the information collection time point is determined according to the scheduled instructions and the current time. After reaching the information collection time point, the human body detection results collected by the human body sensing radar are obtained, and the human body detection results are sent to the network platform, so that the network platform can generate corresponding control instructions according to multiple human body detection results, and control the power management system to perform corresponding management actions, so that data reporting is not easily lost when multiple reports are made. At the same time, it also improves the safety of intelligent electricity use in the application scenarios of power control and reduces power waste.
[0075] Reference Figure 2 Based on the above embodiments, a second embodiment of the method for ensuring that wireless data reporting is not easily lost is proposed in the present application.
[0076] In this embodiment, step S30 further includes steps S40-S60:
[0077] Step S40, when the human body detection result is that there is a human body, controlling the door reminder device to display an anti-disturbance reminder message;
[0078] In this embodiment, the management device includes a power management system. The human body detection result of the MCU of the human body sensing radar actively obtained by the ZigBee module is the presence of a human body. The network platform will generate an anti-disturbance instruction based on the detection result of the presence of a human body. The anti-disturbance instruction is used to control the display device outside the door, such as an electronic display screen, to display anti-disturbance prompt information, and return the anti-disturbance instruction to the power management system. The power management system executes the action of controlling the reminder device outside the door to display the anti-disturbance prompt information according to the information.
[0079] Exemplarily, after the power management system forwards the human body detection result of the presence of human body sent by the ZigBee module to the network platform, the network platform generates an anti-disturbance instruction and returns it to the power management system. After receiving the anti-disturbance instruction, the power management system obtains the current use status of the electronic display screen outside the door. If it is not currently in use, the display screen will be turned on and the prompt message will be changed to "Do not disturb!". Optionally, if it is currently in use, it is determined whether the information displayed on the electronic display screen is the "Do not disturb!" character. If so, it is not processed. Otherwise, the information is replaced with "Do not disturb!".
[0080] Step S50, when the detection result is that there is no human body, obtaining cleaning setting information;
[0081] In this embodiment, the human body detection result of the MCU of the human body sensing radar actively obtained by the ZigBee module is that there is no human body. When the network platform generates a control instruction, it also generates a cleaning instruction based on the detection result of the presence of a human body. The cleaning instruction is used to obtain the cleaning status of the current room and determine whether the room needs to be cleaned based on the cleaning status.
[0082] Exemplarily, after the power management system forwards the human body detection result of the absence of human body sent by the ZigBee module to the network platform, the network platform generates a cleaning instruction and returns it to the power management system. After receiving the cleaning instruction, the power management system obtains the status of the current room. For example, in a smart home scenario, the cleaning setting information can be to obtain the data collected by the smoke concentration sensor, and determine whether to perform cleaning actions based on the smoke concentration threshold. In scenarios such as smart hotels, the setting information can be obtained by obtaining the usage status of the current room. If it is detected that the current usage status of the room is that no one is using it, it is considered that the current cleaning setting information requires cleaning, and the cleaning staff needs to be notified to clean the room.
[0083] Step S60, when the cleaning setting information indicates that cleaning is required, control the door reminder device to display cleaning reminder information, and / or send the cleaning reminder information to the target terminal.
[0084] In this embodiment, the target terminal refers to the instant messaging device of the cleaning staff. The power management system can determine that the current room needs to be cleaned based on the received dust concentration value of the room status or the usage status of the room, and control the reminder device outside the door, such as an electronic display screen, to display cleaning reminder information, and the cleaning reminder information includes words such as "waiting for cleaning" and "please clean". At this time, the cleaning reminder information can also be sent to the instant messaging device of the cleaning staff, so that the cleaning staff can clean the hotel room based on the cleaning reminder information.
[0085] Optionally, after step S70, the method further includes:
[0086] Step S80, receiving biometric information collected by the security component;
[0087] Step S90, when the biometric information matches the preset information corresponding to the cleaning staff, the security system is controlled to enter the cleaning mode.
[0088] In this embodiment, the biometric information may include face data, pupil data, etc. collected by the MCU actively acquired by the camera ZigBee module, or fingerprints collected by the fingerprint collector. The power management system sends the MCU data of the camera actively received by the camera ZigBee module to the network background, and the network background matches the data with the preset information. When the information matches, it generates an instruction to control the security system and returns it to the power management system. After receiving the instruction to control the security system, the power management system starts the camera in the room and monitors the cleaning process of the cleaning staff.
[0089] In this embodiment, the power management system determines that the current room needs to be cleaned based on the cleaning instructions sent by the network platform, and turns on the camera of the current room based on the received security instructions to monitor the cleaning process, thereby improving the intelligence of the room in the smart application scenario.
[0090] Optionally, based on the above embodiments, a third embodiment of the method for ensuring that wireless data reporting is not easily lost is proposed in the present application.
[0091] In this embodiment, when the network platform receives a human body detection result that changes from someone to no one, the control instruction generated may be to shut down high-power electrical appliances, including air conditioners, electric kettles, hair dryers, electric water heaters, etc.
[0092] Specifically, when the management device receives the instruction to shut down the high-power electrical appliance, it obtains the usage status of the high-power electrical appliance;
[0093] When there is a running device in the high-power electrical appliance, the high-power device in use is turned off.
[0094] It should be noted that receiving an instruction to turn off a high-power electrical appliance indicates that the user has just left the area detected by the human body sensing radar. At this time, in order to ensure the safety of electricity use and the intelligent state in the intelligent application scenario, the high-power electrical appliance can be turned off first.
[0095] Exemplarily, after receiving an instruction to shut down a high-power appliance, the power management system needs to obtain the usage status of the high-power appliance. When many high-power appliances detect that the air conditioner is still in operation, the power management system executes the instruction to shut down the high-power appliance and turns off the air conditioner.
[0096] Then, when the network platform receives the human body detection result of no one for the second time in a row, the generated control instruction is to turn off the low-power electrical appliances, which include electric lights, televisions, exhaust fans, etc.
[0097] Specifically, when the management device receives the instruction to turn off the low-power electrical appliance, it obtains the usage status of the low-power electrical appliance;
[0098] When there is a running device among the low-power electrical appliances, the low-power device in use is turned off.
[0099] It should be noted that when receiving the human body detection result of no one for the second time in a row, it means that the user has been away for a long time and all power supplies need to be turned off. On the premise that high-power electrical appliances have already been turned off, only low-power electrical appliances need to be turned off.
[0100] For example, after receiving the instruction to turn off the low-power electrical appliances, the power management system needs to obtain the usage status of the low-power electrical appliances. When many low-power electrical appliances detect that the lights and exhaust fans are still in operation, the instruction to turn off the low-power electrical appliances is executed to turn off the lights and exhaust fans. This achieves intelligent power closure and saves power consumption.
[0101] Optionally, when the network platform receives a human body detection result that changes from no one to someone, the control instruction generated is to turn on the low-power electrical appliance.
[0102] It is understandable that in scenarios such as smart homes and smart hotels, when the user returns to the smart scene, in order to avoid blindly turning on high-power appliances and causing safety hazards, when the human body detection result is re-detected, all low-power appliances can be turned on when the instruction to turn on the low-power appliances is received. The turned-on low-power appliances can be electric lights, exhaust fans, televisions, etc.
[0103] For example, in the specific use scenario of this application, user A lives in a smart hotel. After arriving at the room, the scheduled monitoring information entered through the mobile terminal is 5 minutes. At this time, the power management system obtains and uploads the human body detection results every 5 minutes, and receives the control instructions fed back by the network platform. User A leaves the room without turning off the lights and air conditioner. The power management system successfully sends the human body detection results collected by the inductive human body radar to the network server background. The network service background previously received a human body detection result, but now receives no human body detection results. At this time, the network service background generates a command to turn off high-power electrical appliances. The power management system confirms that the air conditioner in the high-power electrical appliance is not turned off after comparison, and then turns off the air conditioner.
[0104] After this, the network service background receives the human body detection result of no one for the second time in a row, and generates an instruction to turn off the low-power electrical appliances and sends it to the power management system. The power management system compares and confirms that the light in the low-power electrical appliance is not turned off, and turns off the light. When the human body detection result of no one is received for the third time or more in a row, the network service background does not do anything.
[0105] Until user A returns to the room, the human body radar detects a signal and feeds the information back to the power management system, which then sends it to the network service background. At this time, the network server background generates and returns an instruction to turn on all low-power electrical appliances. After receiving the instruction to turn on all low-power electrical appliances, the power management system turns on low-power appliances such as lights, televisions, exhaust fans, and washing machines.
[0106] In this embodiment, the network platform generates instructions based on the power value of the electrical appliances, and returns control instructions for shutting down electrical appliances of different power levels to the power management system, so that the power management system can execute corresponding power-off operations based on the received instructions for shutting down high-power appliances or low-power appliances, thereby improving the safety of smart electricity use while reducing power waste.
[0107] Reference Figure 3 , Figure 3 The figure is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0108] like Figure 3As shown, the terminal may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a network interface 1003, and a memory 1004. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1004 may be a high-speed RAM memory (Random Access Memory, RAM) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1004 may optionally be a storage device independent of the aforementioned processor 1001.
[0109] Those skilled in the art will understand that Figure 3 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0110] like Figure 3 As shown, the memory 1004 as a computer storage medium may include an operating system, a network communication module, and a data reporting program.
[0111] exist Figure 3 In the terminal shown, the network interface 1003 is mainly used to connect to the background server and perform data communication with the background server; the processor 1001 can call the data reporting program stored in the memory 1004 and perform the following operations:
[0112] Receive the setting information sent by the control terminal, and determine the information collection time point according to the setting information;
[0113] When the information collection time point is reached, obtaining the human body detection result collected by the human body sensing radar;
[0114] The human body detection result is sent to a network platform, wherein the network platform generates a control instruction according to the human body detection result to control the management device to perform a corresponding control action.
[0115] Further, the processor 1001 may call the data reporting program stored in the memory 1004, and further perform the following operations:
[0116] When the information collection time point is reached, a human body detection result request is sent to the wireless module of the human body sensing radar, wherein the wireless module sends a serial port command to the micro control unit according to the human body detection result request, and obtains the human body detection result sent by the micro control unit based on the serial port;
[0117] Receive the human body detection result sent by the wireless module of the human body sensing radar.
[0118] Further, the processor 1001 may call the data reporting program stored in the memory 1004, and further perform the following operations:
[0119] When the information collection time point is not reached, if the human body detection result actively sent by the wireless module is received, the human body detection result is sent to the network platform.
[0120] Further, the processor 1001 may call the data reporting program stored in the memory 1004, and further perform the following operations:
[0121] receiving the control instruction and determining a target electrical appliance corresponding to the control instruction;
[0122] Acquire the usage status of the target electrical appliance;
[0123] When the target electrical appliance is in an operating state, a power-off action corresponding to the target electrical appliance is executed.
[0124] Further, the processor 1001 may call the data reporting program stored in the memory 1004, and further perform the following operations:
[0125] When the electric light and the hair dryer are in operation, turning off the electric light and the hair dryer based on the first instruction;
[0126] When the air conditioner is in operation, the air conditioner is turned off based on the second instruction.
[0127] Further, the processor 1001 may call the data reporting program stored in the memory 1004, and further perform the following operations:
[0128] When the human body detection result indicates that a human body is present, the door reminder device is controlled to display an anti-disturbance reminder message;
[0129] When the detection result is that there is no human body, obtaining cleaning setting information;
[0130] When the cleaning setting information indicates that cleaning is required, the door reminder device is controlled to display the cleaning reminder information, and / or the cleaning reminder information is sent to the target terminal.
[0131] Further, the processor 1001 may call the data reporting program stored in the memory 1004, and further perform the following operations:
[0132] Receive biometric information collected by security components;
[0133] When the biometric information matches the preset information corresponding to the cleaning staff, the security system is controlled to enter the cleaning mode.
[0134] In addition, an embodiment of the present invention also proposes a management device, which includes a memory, a processor, and a data reporting program stored in the memory and executable on the processor. When the data reporting program is executed by the processor, the steps of the method for ensuring that wireless data reporting is not easily lost in the above embodiments are implemented.
[0135] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, on which a data reporting program is stored. When the data reporting program is executed by a processor, the steps of the method for ensuring that wireless data reporting is not easily lost as described in the above embodiments are implemented.
[0136] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0137] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0138] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone) to execute the methods described in each embodiment of the present invention.
[0139] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for ensuring that wireless data reporting is not easily lost, characterized in that: Applied to managing equipment, the method comprises: Receive the setting information sent by the control terminal, and determine the information collection time point according to the setting information; When the information collection time point is reached, a human body detection result request is sent to the wireless module of the human body sensing radar, wherein the wireless module sends a serial port command to the micro control unit according to the human body detection result request, and obtains the human body detection result sent by the micro control unit based on the serial port; Receiving the human body detection result sent by the wireless module of the human body sensing radar, wherein the wireless module is a ZigBee module; Sending the human body detection result to a network platform, wherein the network platform generates a control instruction according to the human body detection result to control the management device to perform a corresponding control action; When the information collection time point is not reached, if the human body detection result actively sent by the wireless module is received, the human body detection result is sent to the network platform, the control instruction includes a first instruction and a second instruction, the first instruction is used to control the shutdown of the first category of electrical appliances, and the second instruction is used to shut down the second category of electrical appliances, the first category of electrical appliances at least includes electric lights and hair dryers, and the second category of electrical appliances at least includes air conditioners and televisions, the network platform determines the duration of human body absence according to the human body detection result, and generates the first instruction or the second instruction based on the duration of human body absence; When the human body detection result is that a human body is present, controlling the reminder device outside the door to display an anti-disturbance reminder message; when the detection result is that no human body is present, obtaining cleaning setting information; When the cleaning setting information indicates that cleaning is required, controlling the door reminder device to display cleaning reminder information, and / or sending the cleaning reminder information to the target terminal; Receiving biometric information collected by the security component, wherein the biometric information is face data and pupil data collected by the microcontroller unit and actively acquired by the camera ZigBee module; When the biometric information matches the preset information corresponding to the cleaning staff, the security system is controlled to enter the cleaning mode.
2. The method according to claim 1, characterized in that The control action includes a power off action, and after the step of sending the human body detection result to the network platform, it also includes: receiving the control instruction and determining a target electrical appliance corresponding to the control instruction; Acquire the usage status of the target electrical appliance; When the target electrical appliance is in an operating state, a power-off action corresponding to the target electrical appliance is executed.
3. The method according to claim 2, characterized in that The first category of electrical appliances at least includes electric lamps and hair dryers, and the second category of electrical appliances at least includes air conditioners and televisions. When the target electrical appliance is in a running state, the step of executing a power-off action corresponding to the target electrical appliance comprises: When the electric light and the hair dryer are in operation, turning off the electric light and the hair dryer based on the first instruction; When the air conditioner is in operation, the air conditioner is turned off based on the second instruction.
4. A management device, characterized in that: The management device includes: a memory, a processor, and a data reporting program stored in the memory and executable on the processor. When the data reporting program of the management device is executed by the processor, the steps of the method for ensuring that wireless data reporting is not easily lost as claimed in any one of claims 1 to 3 are implemented.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a data reporting program of the management device, and when the data reporting program of the management device is executed by the processor, the steps of the method for ensuring that wireless data reporting is not easily lost as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Equipment control system, method and device, electronic equipment and storage medium
CN114326501A
