CN115942429B - Method and device for controlling public household appliances, electronic equipment and storage medium - Google Patents

Method and device for controlling public household appliances, electronic equipment and storage medium Download PDF

Info

Publication number
CN115942429B
CN115942429B CN202211519950.6A CN202211519950A CN115942429B CN 115942429 B CN115942429 B CN 115942429B CN 202211519950 A CN202211519950 A CN 202211519950A CN 115942429 B CN115942429 B CN 115942429B
Authority
CN
China
Prior art keywords
time
shift
initial connection
disconnection
average
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211519950.6A
Other languages
Chinese (zh)
Other versions
CN115942429A (en
Inventor
邹伟
尹志坚
易长平
吴映云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xin Yupeng Electronic Technology Co ltd
Original Assignee
Shenzhen Xin Yupeng Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Xin Yupeng Electronic Technology Co ltd filed Critical Shenzhen Xin Yupeng Electronic Technology Co ltd
Priority to CN202211519950.6A priority Critical patent/CN115942429B/en
Publication of CN115942429A publication Critical patent/CN115942429A/en
Application granted granted Critical
Publication of CN115942429B publication Critical patent/CN115942429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to the technical field of intelligent household appliances, and provides a public household appliance control method, a public household appliance control device, an electronic device and a storage medium, wherein the method comprises the following steps: respectively acquiring initial connection time and disconnection time of each user terminal in the preset Bluetooth connection range within a second preset time period at intervals of a first preset time period; calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The intelligent and reasonable intelligent control system has the beneficial effects of high intelligence and rationality.

Description

Method and device for controlling public household appliances, electronic equipment and storage medium
Technical Field
The application relates to the technical field of intelligent household appliances, in particular to a public household appliance control method, a public household appliance control device, electronic equipment and a storage medium.
Background
For some employee dormitories, some public smart appliances may be provided, for example: the washing machine is commonly used for control and management. It is known that washing machines emit loud noise during operation, which affects surrounding households. Thus, the manager in the above place generally limits the service time of the washing machine, for example: the available time of the washing machine is 8 a.m. to 10 a.m..
Although the scheme can be suitable for most application scenes, not all staff execute according to the management system of the public washing machine on the office, each staff has a habitual life mode, and if the life habits of households around the public washing machine cannot be fully considered, the life experience and the working efficiency of the staff can be influenced.
Based on the above problems, no effective solution is currently available.
Disclosure of Invention
The application aims to provide a public household appliance control method, a public household appliance control device, electronic equipment and a storage medium, which can realize intelligent control of usable time periods of public household appliances and match work and rest of users.
In a first aspect, the present application provides a method for controlling a public home appliance, which is applied to a public home appliance, wherein the public home appliance can automatically perform bluetooth connection with a user terminal entering a preset bluetooth connection range of the public home appliance, and the method includes the following steps:
s1, respectively acquiring initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range within a second preset time period at intervals of a first preset time period;
s2, calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day;
S3, adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal.
According to the public household appliance control method, the initial connection time and disconnection time of each user terminal in the preset Bluetooth connection range are respectively acquired in a second preset time period every first preset time period; respectively calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The intelligent control of the usable time period of the public household appliance can be realized, the intelligent control can be continuously regulated, the work and rest rules of the user can be better matched, and the rationality of setting the usable time period of the public household appliance is effectively improved.
Optionally, the method for controlling public home appliances provided by the present application, step S1 includes:
s101, when the user terminal leaves the preset Bluetooth connection range so that the user terminal and the public household appliance are disconnected, recording the time of disconnecting the user terminal from the public household appliance as first disconnection time;
S102, after the first disconnection time, if the user terminal does not realize Bluetooth connection with the public household appliance again within a third preset time period, taking the first disconnection time as the disconnection time;
after the first disconnection time, if the user terminal is connected with the public home appliance again in the third preset time period, the recorded first disconnection time is cleared, and the step S101 is returned.
Through the arrangement mode, the obtained disconnection time can reflect the outgoing time of the user more accurately, and the available time period of the public household appliance can be adjusted more reasonably.
Optionally, the available time period includes a white shift available time period and a night shift available time period;
the step S3 comprises the following steps:
s301, classifying the user terminals into a shift user terminal or a night shift user terminal according to the average initial connection time and the average disconnection time of the user terminals for each user terminal;
s302, respectively adjusting the available time period of the shift and the available time period of the night shift according to the shift user terminal and the night shift user terminal.
Optionally, the method for controlling public home appliances provided by the present application, step S301 includes:
classifying the user terminals with the average initial connection time or the average disconnection time falling into a first preset interval as night shift user terminals; classifying the user terminals with the average initial connection time or the average disconnection time falling into a second preset interval as shift user terminals;
step S302 includes:
A1. respectively obtaining average initial connection time and average disconnection time corresponding to all night shift user terminals, and average initial connection time and average disconnection time corresponding to all white shift user terminals;
A2. respectively calculating the night shift initial connection time and the night shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the night shift user terminals;
respectively calculating the white-shift initial connection time and the white-shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the white-shift user terminals;
A3. the available time period of the night shift is adjusted according to the off-connection time of the night shift and the initial connection time of the night shift;
and adjusting the available time period of the shift according to the shift disconnection time and the shift initial connection time.
Compared with the traditional mode of controlling the public household appliances by adopting the fixed time period, the setting mode is more intelligent, the reasonable control time period can be fully adjusted according to the use characteristics of the early-shift user terminal and the night-shift user terminal, the early-shift user and the night-shift user can be conveniently and respectively used, and the user is prevented from using the public household appliances in other time periods, so that the rest of nearby users is influenced.
Optionally, the method for controlling public home appliances provided by the present application, step A3 includes:
if the night shift disconnection time is later than the preset night shift rest starting time, the usable night shift time period is adjusted according to the night shift rest starting time and the night shift initial connection time;
and if the shift disconnection time is later than the preset shift rest starting time, adjusting the shift usable time period according to the shift rest starting time and the shift initial connection time.
By the arrangement mode, the public household appliances can be prevented from continuously working at nodes where most users are ready to fall asleep, and then normal fall asleep of other households is affected.
Optionally, in the method for controlling public home appliances provided by the present application, step A3 further includes:
If the initial connection time of the night shift is earlier than the preset stop time of the white shift, the available night shift period of the public household appliance is adjusted according to the stop time of the white shift and the disconnection time of the night shift;
and if the initial connection time of the shift is earlier than the preset night shift rest ending time, adjusting the shift usable time period of the public household appliance according to the night shift rest ending time and the shift disconnection time.
Optionally, the method for controlling public home appliances provided by the present application further includes, after step S3:
B1. acquiring current date information;
B2. and if the current date information is matched with a preset holiday schedule, temporarily adjusting the usable time period according to the preset holiday use time period.
According to the public household appliance control method provided by the application, the initial connection time and disconnection time of each user terminal in the preset Bluetooth connection range are respectively acquired in a second preset time period every first preset time period; respectively calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The intelligent control of the usable time period of the public household appliance can be realized, the intelligent control can be continuously regulated, the work and rest rules of the user can be better matched, and the rationality of setting the usable time period of the public household appliance is effectively improved.
In a second aspect, the present application provides a public home appliance control device, applied to a public home appliance, where the public home appliance can automatically perform bluetooth connection with a user terminal entering a preset bluetooth connection range of the public home appliance, and the public home appliance control device includes the following modules:
a first acquisition module: the method comprises the steps of respectively acquiring initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range in a second preset time period at intervals of a first preset time period;
the calculation module: the average initial connection time and the average disconnection time of the corresponding user terminals are calculated according to the initial connection time and the disconnection time of each user terminal every day;
and an adjustment module: and the available time period of the public household appliance is adjusted according to the average initial connection time and the average disconnection time corresponding to each user terminal.
According to the public household appliance control device provided by the application, the first acquisition module is used for respectively acquiring the initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range every first preset time period; the calculation module calculates average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and the adjustment module adjusts the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The intelligent control of the usable time period of the public household appliance can be realized, the intelligent control can be continuously regulated, the work and rest rules of the user can be better matched, and the rationality of setting the usable time period of the public household appliance is effectively improved.
In a third aspect, the application provides an electronic device comprising a processor and a memory storing computer readable instructions which, when executed by the processor, perform the steps of the method as provided in the first aspect above.
In a fourth aspect, the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method as provided in the first aspect above.
In summary, the public household appliance control method, the public household appliance control device, the electronic equipment and the storage medium can realize intelligent control of the usable time period of the public household appliance, can be continuously adjusted, better matches the work and rest rules of users, and effectively improves the rationality of setting the usable time period of the public household appliance.
Drawings
Fig. 1 is a flowchart of a method for controlling a public home appliance according to the present application.
Fig. 2 is a schematic structural diagram of a public home appliance control device provided by the application.
Fig. 3 is a schematic structural diagram of an electronic device provided by the present application.
Description of the reference numerals:
201. a first acquisition module; 202. a computing module; 203. an adjustment module; 301. a processor; 302. a memory; 303. a communication bus.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the application. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to fall within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart of a method for controlling a public home appliance according to some embodiments of the present application, which is applied to a public home appliance, and the public home appliance can automatically perform bluetooth connection with a user terminal entering a preset bluetooth connection range of the public home appliance, and includes the following steps:
s1, respectively acquiring initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range in a second preset time period every first preset time period;
s2, calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day;
s3, adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal.
According to the public household appliance control method, the initial connection time and disconnection time of each user terminal in the preset Bluetooth connection range are respectively acquired in a second preset time period every first preset time period; respectively calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The intelligent control of the usable time period of the public household appliance can be realized, the intelligent control can be continuously regulated, the work and rest rules of the user can be better matched, and the rationality of setting the usable time period of the public household appliance is effectively improved.
It should be noted that the public home appliance can only be started in the usable time period, so as to ensure that the user cannot start the public home appliance in the non-usable time period and has influence on other users.
In practical application, the user terminal may be a bluetooth-capable mobile phone, a tablet computer, etc., and the user may download corresponding program software on the user terminal, or open a bluetooth setting by opening a mini-program of a WeChat, automatically implement bluetooth connection with the public household appliance when entering a preset bluetooth connection range of the public household appliance, and automatically disconnect bluetooth connection with the public household appliance when leaving the preset bluetooth connection range of the public household appliance.
In step S1, the first preset time period and the second preset time period may be set according to needs, where the first preset time period and the second preset time period are generally integer days, and the second preset time period is smaller than the first preset time period; the preset bluetooth connection range may be a spherical region centering on a public home appliance, and a radius is set according to noise intensity of the public home appliance. By the arrangement mode, households affected by noise of public household appliances can be accurately counted. In some embodiments, the public home appliance broadcasts a bluetooth signal, the strength (RSSI value) of the bluetooth signal decreases as the distance between the user terminal and the public home appliance increases, the RSSI value of the bluetooth signal at a radius from the public home appliance is recorded as an RSSI threshold, and the user terminal determines whether to enter a preset bluetooth connection range by determining whether the RSSI value of the bluetooth signal of the public home appliance is higher than the RSSI threshold, and then automatically performs bluetooth connection with the public home appliance when determining to enter the preset bluetooth connection range.
The initial connection time refers to the time when the user terminal within the preset bluetooth connection range realizes bluetooth connection with the public home appliance on the same day (which generally characterizes the time when the user enters a dormitory); when a user terminal that is bluetooth-connected to a public home appliance leaves a preset bluetooth connection range, the user terminal is disconnected from the public home appliance, and the time when the user terminal is disconnected from the public home appliance is called the disconnection time (which generally characterizes the time when the user leaves the dormitory and can reflect the time when the user ends the rest).
In some scenarios, the user may leave the preset bluetooth connection range temporarily due to other events, such as taking a take-out from a building, taking an express, or going to another dormitory gate, which may cause the user terminal to be disconnected from the public home appliance temporarily, but the user terminal may return to the preset bluetooth connection range for a period of time, re-implement bluetooth connection with the public home appliance, and then continue to use the public home appliance. Therefore, if the time of the initial disconnection between the user and the public home appliance is directly recorded as the disconnection time (the obtained disconnection time cannot reliably reflect the time of the user for ending the rest), the average disconnection time is affected in the subsequent calculation, and the adjustment of the usable time period of the public home appliance is unreasonable.
Thus, in a further embodiment, step S1 comprises:
s101, recording the time of disconnecting the Bluetooth connection of the user terminal and the public household appliance as first disconnection time when the user terminal leaves a preset Bluetooth connection range so that the user terminal and the public household appliance are disconnected;
s102, after the first disconnection time, if the user terminal does not realize Bluetooth connection with the public household appliance again within a third preset time period, taking the first disconnection time as the disconnection time;
after the first disconnection time, if the user terminal is connected with the public home appliance again in the third preset time period, the recorded first disconnection time is cleared, and the step S101 is returned.
In step S102, the third preset time period may be set as needed.
In practical application, it is assumed that the third preset time period is set to 30 minutes, the initial connection time of the user terminal "a" on the same day is 9 points 02 minutes, the user terminal "a" is separated by a preset bluetooth connection range at 9 points 20 on the same day, that is, the user terminal "a" is disconnected with the public household appliance by bluetooth, and at this time, the acquired first disconnection time is 9 points 20 minutes; at point 45 of the day, the user terminal A is connected with the public household appliance again, and the user terminal A is connected with the public household appliance again for Bluetooth for not exceeding a third preset time period, so that the 9 point 20 of the first disconnection time which is acquired originally is cleared, and the first disconnection time is acquired again; if the user terminal 'A' has not realized Bluetooth connection with the public household appliance before 9 points 50 minutes of the current day, the first disconnection time 9 points 20 minutes is taken as the disconnection time. Through the arrangement mode, the obtained disconnection time is more accurate, and the available time period of the public household appliance is adjusted more reasonably.
For convenience of explanation, it is assumed that the second preset period of time is set to 4 days.
In step S2, assuming that the initial connection time of the user terminal "a" in the second preset period of time is 8 points on the first day, the initial connection time of the user terminal "a" in the second preset period of time is 8 points 15 minutes on the second day, the initial connection time of the user terminal "a" in the third day is 8 points 30 minutes, and the initial connection time of the user terminal "a" in the fourth day is 8 points 07 minutes, the average initial connection time is calculated by the following formula:
average initial connection time= (initial connection time of first day within second preset time period +.+ initial connection time of last first day within second preset time period)/second preset time period
Thus, the average initial connection time of the user terminal "a" can be calculated to be 8 points 13 minutes.
Similarly, the disconnection time of the user terminal "a" in the second preset time period on the first day is 10 points, the disconnection time of the user terminal on the second day is 10 points and 15 minutes, the disconnection time of the user terminal on the third day is 10 points and 30 minutes, and the disconnection time of the user terminal on the fourth day is 10 points and 07 minutes, and then the average disconnection time is calculated by the following formula:
average disconnection time= (disconnection time of first day within second preset time period +.+ disconnection time of last first day within second preset time period)/second preset time period
From this, it can be calculated that the average disconnection time of the user terminal "a" is 10 points 13 minutes.
Through the calculation mode, the average initial connection time and the average disconnection time corresponding to each user terminal can be calculated.
In other scenes, such as staff dormitories, staff needing to go to night shift can exist in the dormitories within the preset Bluetooth connection range, and the night shift time is 22 points of the day to 6 points of the next day; other staff need to go to the white-space, the white-space time is 9 points of the day-17 pm, if the use time of the public household appliances is not set in a segmented mode, the rest time of the staff can be influenced, for example, the situation that staff going to the white-space use the public household appliances and staff going to the night use the public household appliances and staff going to the white-space use the public household appliances appears.
Thus in some preferred embodiments, the available time periods include a shift available time period and a night shift available time period;
the step S3 comprises the following steps:
s301, classifying the user terminals into a shift user terminal or a night shift user terminal according to the average initial connection time and the average disconnection time of the user terminals aiming at each user terminal;
S302, adjusting the available time period of the shift and the available time period of the night shift according to the shift user terminal and the night shift user terminal respectively.
Specifically, step S301 includes:
classifying the user terminals with average initial connection time or average disconnection time falling into a first preset interval as night shift user terminals; and classifying the user terminals with the average initial connection time or the average disconnection time falling into a second preset interval as the shift user terminals.
In practical application, a first preset interval and a second preset interval can be set at will, wherein the first preset interval is 6-12 points on the same day, and the second preset interval is 17-22 points on the same day; assuming that the average initial connection time of the user terminal A is 9 points 13 points on the same day, and the average disconnection time is 12 points 13 points on the same day; the average initial connection time of the user terminal "b" is 19 points 30 minutes on the same day, and the average disconnection time is 21 points 10 minutes on the same day. The average initial connection time of the user terminal A falls into a first preset interval, so that the user terminal A is classified as a night shift user terminal; the average initial connection time and the average disconnection time of the user terminal "b" both fall into the second preset interval, so that the user terminal "b" is classified as a shift user terminal. By the classification mode, the user terminals on the shift can be accurately distinguished from the user terminals on the night shift.
Further, step S302 includes:
A1. respectively obtaining average initial connection time and average disconnection time corresponding to all night shift user terminals, and average initial connection time and average disconnection time corresponding to all white shift user terminals;
A2. respectively calculating the night shift initial connection time and the night shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the night shift user terminals;
respectively calculating the white shift initial connection time and the white shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the white shift user terminals;
A3. the available time period of the night shift is adjusted according to the disconnection time and the initial connection time of the night shift;
and adjusting the usable time period of the shift according to the shift disconnection time and the shift initial connection time.
In the step A1, all night shift user terminals are respectively designated as 'A', 'B', 'C', wherein the average initial connection time of the night shift user terminal 'A' is 10 points 30 minutes on the same day, and the average disconnection time is 12 points 20 minutes on the same day; the average initial connection time of the night shift user terminal 'B' is 9 points 40 minutes on the same day, and the average disconnection time is 11 points 10 minutes on the same day; the average initial connection time of the night shift user terminal 'C' is 10 points 20 minutes on the same day, and the average disconnection time is 12 points on the same day;
All the early-shift user terminals are respectively 'T', 'E' and 'Y', wherein the average initial connection time of the early-shift user terminal 'T' is 19 points 30 minutes on the same day, and the average disconnection time is 21 points 20 minutes on the same day; the average initial connection time of the early-shift user terminal 'pentyl' is 20 points 30 minutes on the same day, and the average disconnection time is 22 points 10 minutes on the same day; the average initial connection time of the early-shift user terminal is 20 points on the same day, and the average disconnection time is 22 points on the same day.
In step A2, the night shift initial connection time and the night shift disconnection time are calculated according to the following formulas:
night shift initial connection time = sum of average initial connection times of all night shift user terminals/number of night shift user terminals
Night shift disconnection time = sum of average disconnection times of all night shift user terminals/number of night shift user terminals
According to the assumption of the step A1, the initial connection time of the night shift is 10 minutes of the day, and the disconnection time of the night shift is 11 minutes and 50 minutes.
The early shift initial connection time and the early shift disconnection time are calculated according to the following formula:
early shift initial connection time = sum of average initial connection times of all early shift user terminals/number of early shift user terminals
Early shift disconnection time = sum of average disconnection times of all early shift user terminals/number of early shift user terminals
According to the assumption of the step A1, the initial connection time of the early shift is calculated to be 20 points on the same day, and the disconnection time of the early shift is calculated to be 21 points and 50 points.
In the step A3, the calculated initial connection time of the night shift is 10 minutes at the 10 th point of the day, and the disconnection time of the night shift is 11 minutes at the 50 th point, so that the usable time period of the night shift is set to be 10 minutes at the 10 th point to 11 minutes at the 50 th point; and the initial connection time of the early shift is 20 points on the same day, and the disconnection time of the early shift is 21 points and 50 points, so that the usable time period of the early shift is set to be 20 points-21 points and 50 points. Compared with the traditional mode of controlling the public household appliances by adopting the fixed time period, the setting mode is more intelligent, the reasonable control time period can be fully adjusted according to the use characteristics of the early-shift user terminal and the night-shift user terminal, the early-shift user and the night-shift user can be conveniently and respectively used, and the user is prevented from using the public household appliances in other time periods, so that the rest of nearby users is influenced.
In some application scenarios, most users on duty start to rest at night, and most users on duty start to rest at noon, so if public household appliances are also used at the time when users start to rest, the users who are ready to fall asleep will be influenced.
Thus, in a further embodiment, step A3 comprises:
if the night shift disconnection time is later than the preset night shift rest starting time, the available night shift time period is adjusted according to the night shift rest starting time and the night shift initial connection time;
and if the white shift disconnection time is later than the preset white shift rest starting time, adjusting the usable white shift time period according to the white shift rest starting time and the white shift initial connection time.
In practical use, it is assumed that an employee on the night shift (22 th of the day-6 th of the next day) will generally start resting at 13 midday, so the night shift resting start time can be set to 13 th of the day. Assuming that the night shift initial connection time is 11 points and 15 points, the night shift disconnection time is 13 points and 10 points, and since the night shift disconnection time is later than the night shift rest starting time, the night shift usable time period is adjusted according to the night shift rest starting time and the night shift initial connection time, namely the night shift usable time period is adjusted to 11 points 15-13 points of the same day;
assuming that an employee on a shift (9 th of the day-17 pm) will typically start a break at 22 pm, the shift break start time can be set to 22 th of the day. Assuming that the initial connection time of the shift is 19 points 45 minutes, the disconnection time of the shift is 22 points 10 minutes, and since the disconnection time of the shift is later than the rest start time of the shift, the usable shift time period is adjusted according to the rest start time of the shift and the initial connection time of the shift, namely, the usable shift time period is adjusted to 19 points 45-22 points of the same day.
By the arrangement mode, the public household appliances can be prevented from continuously working at nodes where most users are ready to fall asleep, and then normal fall asleep of other households is affected.
In other application scenes, some users who finish the night shift get off duty at quasi-points, and when the users return to dormitory, the users who finish the night shift do not wake up from the dream yet, and if the users who finish the night shift use public household appliances at the moment, the users who finish the night shift are awake from the dream, so that the rest of the users who finish the night shift is seriously disturbed; also, some users who finish the night shift get off the shift, and when the users return to the dormitory, the users who finish the night shift do not wake up from the nightmare yet, and if the users who finish the night shift use public household appliances at the moment, the users who finish the night shift are awake from the nightmare, and the rest of the users who finish the night shift is seriously disturbed.
Thus, in a further embodiment, step A3 further comprises:
if the initial connection time of the night shift is earlier than the preset stop time of the shift, the usable time period of the night shift of the public household appliance is adjusted according to the stop time of the shift and the disconnection time of the night shift;
and if the initial connection time of the shift is earlier than the preset night shift rest ending time, adjusting the shift usable time period of the public household appliance according to the night shift rest ending time and the shift disconnection time.
In practical use, it is assumed that an employee who is on a shift (9 th of the day-17 th of the afternoon) will generally get up at 8 th of the morning, so the shift rest end time can be set to 8 th of the day. Assuming that the initial connection time of the night shift is 7 points 45 minutes, the disconnection time of the night shift is 12 points 10 minutes, and because the initial connection time of the night shift is earlier than the rest start time of the white shift, the usable time period of the night shift is adjusted according to the rest end time of the white shift and the disconnection time of the night shift, namely the usable time period of the night shift is adjusted to 8 points-12 points 10 minutes of the day;
assuming that an employee who is on a night shift (22 th of the day to 6 th of the next day) will generally get out of bed at 21 st of the evening, the night shift rest end time can be set to 21 st of the day. Assuming that the initial connection time of the shift is 20 points and 45 points, the disconnection time of the shift is 23 points and 10 points, and since the initial connection time of the shift is earlier than the rest ending time of the night shift, the usable period of the shift is adjusted according to the rest ending time of the night shift and the disconnection time of the shift, namely, the usable period of the shift is adjusted to 21 points-23 points of 10 points of the same day.
Through the arrangement mode, the user who finishes the night shift can be prevented from using the public household appliance to disturb the user in the early shift in the deep sleep, and the user who finishes the early shift can be prevented from using the public household appliance to disturb the user in the night shift in the deep sleep.
In other preferred embodiments, step S3 further comprises, after:
B1. acquiring current date information;
B2. and if the current date information is matched with the preset holiday date table, temporarily adjusting the usable time period according to the preset holiday use time period.
In step B1, the current date information is obtained as in the prior art.
In the step B2, the preset holiday table comprises a common weekend, a labor holiday, a spring holiday, a national celebration holiday (10 months 1 day-10 months 7 days) and the like, and the preset holiday use period is 10 points-22 points in the evening; assuming that the current date information is 0 point of 1 day of 10 months and is matched with national celebration holidays in a preset holiday schedule, replacing the original usable time period from 10 points of the day of the use time period of the holiday to 22 points of night; the original usable time period can also be prolonged, wherein the usable time period comprises a start use time and an end use time, for example, the start use time of the public household appliance is advanced by several hours, or the end use time of the public household appliance is delayed by several hours, so that the usable time period can be adjusted, and the original usable time period is restored until the holiday is ended. By the adjustment mode, the working period of the public household appliance can be adjusted according to the time length of the holiday, so that the flexibility and the adaptability are improved, and the living demands of users are better met.
As can be seen from the above, according to the public household appliance control method, the initial connection time and disconnection time of each user terminal within the preset bluetooth connection range are respectively obtained in the second preset time period every first preset time period; respectively calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The intelligent control of the usable time period of the public household appliance can be realized, the intelligent control can be continuously regulated, the work and rest rules of the user can be better matched, and the rationality of setting the usable time period of the public household appliance is effectively improved.
Referring to fig. 2, fig. 2 is a control device for public home appliances according to some embodiments of the present application, which is applied to public home appliances, and the public home appliances can automatically perform bluetooth connection with a user terminal entering a preset bluetooth connection range of the public home appliances, and includes the following modules:
the first acquisition module 201: the method comprises the steps that initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range are obtained respectively every first preset time period in a second preset time period;
The calculation module 202: the method comprises the steps of respectively calculating average initial connection time and average disconnection time of corresponding user terminals according to initial connection time and disconnection time of each user terminal every day;
the adjustment module 203: and the method is used for adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal.
In the first obtaining module 201, a first preset time period and a second preset time period may be set as required, where the first preset time period and the second preset time period are generally integer days, and the second preset time period is smaller than the first preset time period; the preset bluetooth connection range may be a spherical region centering on a public home appliance, and a radius is set according to noise intensity of the public home appliance. By the arrangement mode, households affected by noise of public household appliances can be accurately counted. In some embodiments, the public home appliance broadcasts a bluetooth signal, the strength (RSSI value) of the bluetooth signal decreases as the distance between the user terminal and the public home appliance increases, the RSSI value of the bluetooth signal at a radius from the public home appliance is recorded as an RSSI threshold, and the user terminal determines whether to enter a preset bluetooth connection range by determining whether the RSSI value of the bluetooth signal of the public home appliance is higher than the RSSI threshold, and then automatically performs bluetooth connection with the public home appliance when determining to enter the preset bluetooth connection range.
The initial connection time refers to the time when the user terminal within the preset bluetooth connection range realizes bluetooth connection with the public home appliance on the same day (which generally characterizes the time when the user enters a dormitory); when a user terminal that is bluetooth-connected to a public home appliance leaves a preset bluetooth connection range, the user terminal is disconnected from the public home appliance, and the time when the user terminal is disconnected from the public home appliance is called the disconnection time (which generally characterizes the time when the user leaves the dormitory and can reflect the time when the user ends the rest).
In some scenarios, the user may leave the preset bluetooth connection range temporarily due to other events, such as taking a take-out from a building, taking an express, or going to another dormitory gate, which may cause the user terminal to be disconnected from the public home appliance temporarily, but the user terminal may return to the preset bluetooth connection range for a period of time, re-implement bluetooth connection with the public home appliance, and then continue to use the public home appliance. Therefore, if the time of the initial disconnection between the user and the public home appliance is directly recorded as the disconnection time (the obtained disconnection time cannot reliably reflect the time of the user for ending the rest), the average disconnection time is affected in the subsequent calculation, and the adjustment of the usable time period of the public home appliance is unreasonable.
Therefore, in a further embodiment, the first obtaining module 201 performs the following steps when the initial connection time and the disconnection time of each user terminal within the preset bluetooth connection range are each day within the second preset time period for obtaining the second preset time period respectively every the first preset time period:
s101, recording the time of disconnecting the Bluetooth connection of the user terminal and the public household appliance as first disconnection time when the user terminal leaves a preset Bluetooth connection range so that the user terminal and the public household appliance are disconnected;
s102, after the first disconnection time, if the user terminal does not realize Bluetooth connection with the public household appliance again within a third preset time period, taking the first disconnection time as the disconnection time;
after the first disconnection time, if the user terminal is connected with the public home appliance again in the third preset time period, the recorded first disconnection time is cleared, and the step S101 is returned.
In step S102, the third preset time period may be set as needed.
In practical application, it is assumed that the third preset time period is set to 30 minutes, the initial connection time of the user terminal "a" on the same day is 9 points 02 minutes, the user terminal "a" is separated by a preset bluetooth connection range at 9 points 20 on the same day, that is, the user terminal "a" is disconnected with the public household appliance by bluetooth, and at this time, the acquired first disconnection time is 9 points 20 minutes; at point 45 of the day, the user terminal A is connected with the public household appliance again, and the user terminal A is connected with the public household appliance again for Bluetooth for not exceeding a third preset time period, so that the 9 point 20 of the first disconnection time which is acquired originally is cleared, and the first disconnection time is acquired again; if the user terminal 'A' has not realized Bluetooth connection with the public household appliance before 9 points 50 minutes of the current day, the first disconnection time 9 points 20 minutes is taken as the disconnection time. Through the arrangement mode, the obtained disconnection time is more accurate, and the available time period of the public household appliance is adjusted more reasonably.
For convenience of explanation, it is assumed that the second preset period of time is set to 4 days.
In the calculation module 202, assuming that the initial connection time of the user terminal "a" in the first day is 8 points, the initial connection time of the user terminal "a" in the second preset time period is 8 points and 15 minutes, the initial connection time of the user terminal "a" in the third day is 8 points and 30 minutes, and the initial connection time of the user terminal "a" in the fourth day is 8 points and 07 minutes, the average initial connection time is calculated by the following formula:
average initial connection time= (initial connection time of first day within second preset time period +.+ initial connection time of last first day within second preset time period)/second preset time period
Thus, the average initial connection time of the user terminal "a" can be calculated to be 8 points 13 minutes.
Similarly, the disconnection time of the user terminal "a" in the second preset time period on the first day is 10 points, the disconnection time of the user terminal on the second day is 10 points and 15 minutes, the disconnection time of the user terminal on the third day is 10 points and 30 minutes, and the disconnection time of the user terminal on the fourth day is 10 points and 07 minutes, and then the average disconnection time is calculated by the following formula:
average disconnection time= (disconnection time of first day within second preset time period +.+ disconnection time of last first day within second preset time period)/second preset time period
From this, it can be calculated that the average disconnection time of the user terminal "a" is 10 points 13 minutes.
Through the calculation mode, the average initial connection time and the average disconnection time corresponding to each user terminal can be calculated.
In other scenes, such as staff dormitories, staff needing to go to night shift can exist in the dormitories within the preset Bluetooth connection range, and the night shift time is 22 points of the day to 6 points of the next day; other staff need to go to the white-space, the white-space time is 9 points of the day-17 pm, if the use time of the public household appliances is not set in a segmented mode, the rest time of the staff can be influenced, for example, the situation that staff going to the white-space use the public household appliances and staff going to the night use the public household appliances and staff going to the white-space use the public household appliances appears.
Thus in some preferred embodiments, the available time periods include a shift available time period and a night shift available time period;
the adjustment module 203 is configured to, when adjusting the usable time period of the public home appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal, perform the following steps:
S301, classifying the user terminals into a shift user terminal or a night shift user terminal according to the average initial connection time and the average disconnection time of the user terminals aiming at each user terminal;
s302, adjusting the available time period of the shift and the available time period of the night shift according to the shift user terminal and the night shift user terminal respectively.
Specifically, step S301 includes:
classifying the user terminals with average initial connection time or average disconnection time falling into a first preset interval as night shift user terminals; and classifying the user terminals with the average initial connection time or the average disconnection time falling into a second preset interval as the shift user terminals.
In practical application, a first preset interval and a second preset interval can be set at will, wherein the first preset interval is 6-12 points on the same day, and the second preset interval is 17-22 points on the same day; assuming that the average initial connection time of the user terminal A is 9 points 13 points on the same day, and the average disconnection time is 12 points 13 points on the same day; the average initial connection time of the user terminal "b" is 19 points 30 minutes on the same day, and the average disconnection time is 21 points 10 minutes on the same day. The average initial connection time of the user terminal A falls into a first preset interval, so that the user terminal A is classified as a night shift user terminal; the average initial connection time and the average disconnection time of the user terminal "b" both fall into the second preset interval, so that the user terminal "b" is classified as a shift user terminal. By the classification mode, the user terminals on the shift can be accurately distinguished from the user terminals on the night shift.
Further, step S302 includes:
A1. respectively obtaining average initial connection time and average disconnection time corresponding to all night shift user terminals, and average initial connection time and average disconnection time corresponding to all white shift user terminals;
A2. respectively calculating the night shift initial connection time and the night shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the night shift user terminals;
respectively calculating the white shift initial connection time and the white shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the white shift user terminals;
A3. the available time period of the night shift is adjusted according to the disconnection time and the initial connection time of the night shift;
and adjusting the usable time period of the shift according to the shift disconnection time and the shift initial connection time.
In the step A1, all night shift user terminals are respectively designated as 'A', 'B', 'C', wherein the average initial connection time of the night shift user terminal 'A' is 10 points 30 minutes on the same day, and the average disconnection time is 12 points 20 minutes on the same day; the average initial connection time of the night shift user terminal 'B' is 9 points 40 minutes on the same day, and the average disconnection time is 11 points 10 minutes on the same day; the average initial connection time of the night shift user terminal 'C' is 10 points 20 minutes on the same day, and the average disconnection time is 12 points on the same day;
All the early-shift user terminals are respectively 'T', 'E' and 'Y', wherein the average initial connection time of the early-shift user terminal 'T' is 19 points 30 minutes on the same day, and the average disconnection time is 21 points 20 minutes on the same day; the average initial connection time of the early-shift user terminal 'pentyl' is 20 points 30 minutes on the same day, and the average disconnection time is 22 points 10 minutes on the same day; the average initial connection time of the early-shift user terminal is 20 points on the same day, and the average disconnection time is 22 points on the same day.
In step A2, the night shift initial connection time and the night shift disconnection time are calculated according to the following formulas:
night shift initial connection time = sum of average initial connection times of all night shift user terminals/number of night shift user terminals
Night shift disconnection time = sum of average disconnection times of all night shift user terminals/number of night shift user terminals
According to the assumption of the step A1, the initial connection time of the night shift is 10 minutes of the day, and the disconnection time of the night shift is 11 minutes and 50 minutes.
The early shift initial connection time and the early shift disconnection time are calculated according to the following formula:
early shift initial connection time = sum of average initial connection times of all early shift user terminals/number of early shift user terminals
Early shift disconnection time = sum of average disconnection times of all early shift user terminals/number of early shift user terminals
According to the assumption of the step A1, the initial connection time of the early shift is calculated to be 20 points on the same day, and the disconnection time of the early shift is calculated to be 21 points and 50 points.
In the step A3, the calculated initial connection time of the night shift is 10 minutes at the 10 th point of the day, and the disconnection time of the night shift is 11 minutes at the 50 th point, so that the usable time period of the night shift is set to be 10 minutes at the 10 th point to 11 minutes at the 50 th point; and the initial connection time of the early shift is 20 points on the same day, and the disconnection time of the early shift is 21 points and 50 points, so that the usable time period of the early shift is set to be 20 points-21 points and 50 points. Compared with the traditional mode of controlling the public household appliances by adopting the fixed time period, the setting mode is more intelligent, the reasonable control time period can be fully adjusted according to the use characteristics of the early-shift user terminal and the night-shift user terminal, the early-shift user and the night-shift user can be conveniently and respectively used, and the user is prevented from using the public household appliances in other time periods, so that the rest of nearby users is influenced.
In some application scenarios, most users on duty start to rest at night, and most users on duty start to rest at noon, so if public household appliances are also used at the time when users start to rest, the users who are ready to fall asleep will be influenced.
Thus, in a further embodiment, step A3 comprises:
if the night shift disconnection time is later than the preset night shift rest starting time, the available night shift time period is adjusted according to the night shift rest starting time and the night shift initial connection time;
and if the white shift disconnection time is later than the preset white shift rest starting time, adjusting the usable white shift time period according to the white shift rest starting time and the white shift initial connection time.
In practical use, it is assumed that an employee on the night shift (22 th of the day-6 th of the next day) will generally start resting at 13 midday, so the night shift resting start time can be set to 13 th of the day. Assuming that the night shift initial connection time is 11 points and 15 points, the night shift disconnection time is 13 points and 10 points, and since the night shift disconnection time is later than the night shift rest starting time, the night shift usable time period is adjusted according to the night shift rest starting time and the night shift initial connection time, namely the night shift usable time period is adjusted to 11 points 15-13 points of the same day;
assuming that an employee on a shift (9 th of the day-17 pm) will typically start a break at 22 pm, the shift break start time can be set to 22 th of the day. Assuming that the initial connection time of the shift is 19 points 45 minutes, the disconnection time of the shift is 22 points 10 minutes, and since the disconnection time of the shift is later than the rest start time of the shift, the usable shift time period is adjusted according to the rest start time of the shift and the initial connection time of the shift, namely, the usable shift time period is adjusted to 19 points 45-22 points of the same day.
By the arrangement mode, the public household appliances can be prevented from continuously working at nodes where most users are ready to fall asleep, and then normal fall asleep of other households is affected.
In other application scenes, some users who finish the night shift get off duty at quasi-points, and when the users return to dormitory, the users who finish the night shift do not wake up from the dream yet, and if the users who finish the night shift use public household appliances at the moment, the users who finish the night shift are awake from the dream, so that the rest of the users who finish the night shift is seriously disturbed; also, some users who finish the night shift get off the shift, and when the users return to the dormitory, the users who finish the night shift do not wake up from the nightmare yet, and if the users who finish the night shift use public household appliances at the moment, the users who finish the night shift are awake from the nightmare, and the rest of the users who finish the night shift is seriously disturbed.
Thus, in a further embodiment, step A3 further comprises:
if the initial connection time of the night shift is earlier than the preset stop time of the shift, the usable time period of the night shift of the public household appliance is adjusted according to the stop time of the shift and the disconnection time of the night shift;
and if the initial connection time of the shift is earlier than the preset night shift rest ending time, adjusting the shift usable time period of the public household appliance according to the night shift rest ending time and the shift disconnection time.
In practical use, it is assumed that an employee who is on a shift (9 th of the day-17 th of the afternoon) will generally get up at 8 th of the morning, so the shift rest end time can be set to 8 th of the day. Assuming that the initial connection time of the night shift is 7 points 45 minutes, the disconnection time of the night shift is 12 points 10 minutes, and because the initial connection time of the night shift is earlier than the rest start time of the white shift, the usable time period of the night shift is adjusted according to the rest end time of the white shift and the disconnection time of the night shift, namely the usable time period of the night shift is adjusted to 8 points-12 points 10 minutes of the day;
assuming that an employee who is on a night shift (22 th of the day to 6 th of the next day) will generally get out of bed at 21 st of the evening, the night shift rest end time can be set to 21 st of the day. Assuming that the initial connection time of the shift is 20 points and 45 points, the disconnection time of the shift is 23 points and 10 points, and since the initial connection time of the shift is earlier than the rest ending time of the night shift, the usable period of the shift is adjusted according to the rest ending time of the night shift and the disconnection time of the shift, namely, the usable period of the shift is adjusted to 21 points-23 points of 10 points of the same day.
Through the arrangement mode, the user who finishes the night shift can be prevented from using the public household appliance to disturb the user in the early shift in the deep sleep, and the user who finishes the early shift can be prevented from using the public household appliance to disturb the user in the night shift in the deep sleep.
In other preferred embodiments, the utility home appliance control device of the present application further comprises the following modules:
and a second acquisition module: the method is used for acquiring current date information;
and a second adjustment module: and if the current date information is matched with the preset holiday date table, temporarily adjusting the usable time period according to the preset holiday use time period.
In the second acquisition module, acquiring current date information is the prior art.
In the second adjustment module, the preset holiday table comprises a common weekend, a labor holiday, a spring holiday, a national celebration holiday (10 months 1 day-10 months 7 days) and the like, and the preset holiday use period is 10 points-22 points in the day; assuming that the current date information is 0 point of 1 day of 10 months and is matched with national celebration holidays in a preset holiday schedule, replacing the original usable time period from 10 points of the day of the use time period of the holiday to 22 points of night; the original usable time period can also be prolonged, wherein the usable time period comprises a start use time and an end use time, for example, the start use time of the public household appliance is advanced by several hours, or the end use time of the public household appliance is delayed by several hours, so that the usable time period can be adjusted, and the original usable time period is restored until the holiday is ended. By the adjustment mode, the working period of the public household appliance can be adjusted according to the time length of the holiday, so that the flexibility and the adaptability are improved, and the living demands of users are better met.
As can be seen from the above, the public home appliance control device of the present application respectively acquires the initial connection time and disconnection time of each user terminal within the preset bluetooth connection range every first preset time period through the first acquisition module 201; the calculation module 202 calculates average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and disconnection time of each user terminal every day; the adjustment module 203 adjusts the usable time period of the public home appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The intelligent control of the usable time period of the public household appliance can be realized, the intelligent control can be continuously regulated, the work and rest rules of the user can be better matched, and the rationality of setting the usable time period of the public household appliance is effectively improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes: processor 301 and memory 302, the processor 301 and memory 302 being interconnected and in communication with each other by a communication bus 303 and/or other form of connection mechanism (not shown), the memory 302 storing computer readable instructions executable by the processor 301, which when executed by an electronic device, the processor 301 executes the computer readable instructions to perform the method in any of the alternative implementations of the above embodiments to perform the following functions: respectively acquiring initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range in a second preset time period at intervals of a first preset time period; respectively calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal.
An embodiment of the present application provides a storage medium having stored thereon a computer program which, when executed by a processor, performs the method of any of the alternative implementations of the above embodiments to implement the following functions: respectively acquiring initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range in a second preset time period at intervals of a first preset time period; respectively calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day; and adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal. The storage medium may be implemented by any type of volatile or nonvolatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM), electrically erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), programmable Read-Only Memory (PROM), read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other manners. The system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions in actual implementation, and e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only of embodiments of the present application and is not intended to limit the scope of the present application, and various modifications and variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (6)

1. The utility household appliance control method is characterized by being applied to a utility household appliance, wherein the utility household appliance can automatically carry out Bluetooth connection with a user terminal entering a preset Bluetooth connection range of the utility household appliance, and the method comprises the following steps:
s1, respectively acquiring initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range within a second preset time period at intervals of a first preset time period;
s2, calculating average initial connection time and average disconnection time of the corresponding user terminals according to the initial connection time and the disconnection time of each user terminal every day;
S3, adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal;
the usable time period comprises a white shift usable time period and a night shift usable time period; the step S3 comprises the following steps:
s301, classifying the user terminals into a shift user terminal or a night shift user terminal according to the average initial connection time and the average disconnection time of the user terminals for each user terminal;
s302, respectively adjusting the available time period of the shift and the available time period of the night shift according to the shift user terminal and the night shift user terminal;
step S301 includes:
classifying the user terminals with the average initial connection time or the average disconnection time falling into a first preset interval as night shift user terminals; classifying the user terminals with the average initial connection time or the average disconnection time falling into a second preset interval as shift user terminals;
step S302 includes:
A1. respectively obtaining average initial connection time and average disconnection time corresponding to all night shift user terminals, and average initial connection time and average disconnection time corresponding to all white shift user terminals;
A2. Respectively calculating the night shift initial connection time and the night shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the night shift user terminals;
respectively calculating the white-shift initial connection time and the white-shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the white-shift user terminals;
A3. the available time period of the night shift is adjusted according to the off-connection time of the night shift and the initial connection time of the night shift;
the available time period of the shift is adjusted according to the shift disconnection time and the shift initial connection time;
the step A3 comprises the following steps:
if the night shift disconnection time is later than the preset night shift rest starting time, the usable night shift time period is adjusted according to the night shift rest starting time and the night shift initial connection time;
if the shift disconnection time is later than the preset shift rest starting time, the shift usable time period is adjusted according to the shift rest starting time and the shift initial connection time;
if the initial connection time of the night shift is earlier than the preset stop time of the white shift, the available night shift period of the public household appliance is adjusted according to the stop time of the white shift and the disconnection time of the night shift;
And if the initial connection time of the shift is earlier than the preset night shift rest ending time, adjusting the shift usable time period of the public household appliance according to the night shift rest ending time and the shift disconnection time.
2. The method of controlling a public home appliance according to claim 1, wherein step S1 includes:
s101, when the user terminal leaves the preset Bluetooth connection range so that the user terminal and the public household appliance are disconnected, recording the time of disconnecting the user terminal from the public household appliance as first disconnection time;
s102, after the first disconnection time, if the user terminal does not realize Bluetooth connection with the public household appliance again within a third preset time period, taking the first disconnection time as the disconnection time;
after the first disconnection time, if the user terminal is connected with the public home appliance again in the third preset time period, the recorded first disconnection time is cleared, and the step S101 is returned.
3. The method of controlling a public home appliance according to claim 1, further comprising, after step S3:
B1. acquiring current date information;
B2. And if the current date information is matched with a preset holiday schedule, temporarily adjusting the usable time period according to the preset holiday use time period.
4. The utility household appliance control device is characterized in that the utility household appliance control device is applied to a utility household appliance, and the utility household appliance can automatically carry out Bluetooth connection with a user terminal which enters the preset Bluetooth connection range of the utility household appliance, and comprises the following modules:
a first acquisition module: the method comprises the steps of respectively acquiring initial connection time and disconnection time of each user terminal in a preset Bluetooth connection range in a second preset time period at intervals of a first preset time period;
the calculation module: the average initial connection time and the average disconnection time of the corresponding user terminals are calculated according to the initial connection time and the disconnection time of each user terminal every day;
and an adjustment module: the method comprises the steps of adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal;
the usable time period comprises a white shift usable time period and a night shift usable time period; the adjusting module is used for: the method for adjusting the usable time period of the public household appliance according to the average initial connection time and the average disconnection time corresponding to each user terminal comprises the following steps:
S301, classifying the user terminals into a shift user terminal or a night shift user terminal according to the average initial connection time and the average disconnection time of the user terminals for each user terminal;
s302, respectively adjusting the available time period of the shift and the available time period of the night shift according to the shift user terminal and the night shift user terminal;
step S301 includes:
classifying the user terminals with the average initial connection time or the average disconnection time falling into a first preset interval as night shift user terminals; classifying the user terminals with the average initial connection time or the average disconnection time falling into a second preset interval as shift user terminals;
step S302 includes:
A1. respectively obtaining average initial connection time and average disconnection time corresponding to all night shift user terminals, and average initial connection time and average disconnection time corresponding to all white shift user terminals;
A2. respectively calculating the night shift initial connection time and the night shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the night shift user terminals;
respectively calculating the white-shift initial connection time and the white-shift disconnection time according to the average initial connection time and the average disconnection time corresponding to all the white-shift user terminals;
A3. The available time period of the night shift is adjusted according to the off-connection time of the night shift and the initial connection time of the night shift;
the available time period of the shift is adjusted according to the shift disconnection time and the shift initial connection time;
the step A3 comprises the following steps:
if the night shift disconnection time is later than the preset night shift rest starting time, the usable night shift time period is adjusted according to the night shift rest starting time and the night shift initial connection time;
if the shift disconnection time is later than the preset shift rest starting time, the shift usable time period is adjusted according to the shift rest starting time and the shift initial connection time;
if the initial connection time of the night shift is earlier than the preset stop time of the white shift, the available night shift period of the public household appliance is adjusted according to the stop time of the white shift and the disconnection time of the night shift;
and if the initial connection time of the shift is earlier than the preset night shift rest ending time, adjusting the shift usable time period of the public household appliance according to the night shift rest ending time and the shift disconnection time.
5. An electronic device comprising a processor and a memory storing computer readable instructions that when executed by the processor perform the steps in the method of controlling a utility appliance of any one of claims 1-3.
6. A storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of controlling a utility appliance as claimed in any one of claims 1 to 3.
CN202211519950.6A 2022-11-30 2022-11-30 Method and device for controlling public household appliances, electronic equipment and storage medium Active CN115942429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211519950.6A CN115942429B (en) 2022-11-30 2022-11-30 Method and device for controlling public household appliances, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211519950.6A CN115942429B (en) 2022-11-30 2022-11-30 Method and device for controlling public household appliances, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115942429A CN115942429A (en) 2023-04-07
CN115942429B true CN115942429B (en) 2023-10-03

Family

ID=86648518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211519950.6A Active CN115942429B (en) 2022-11-30 2022-11-30 Method and device for controlling public household appliances, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115942429B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018064867A1 (en) * 2016-10-09 2018-04-12 广州视源电子科技股份有限公司 Duration recording method, bluetooth slave device and duration recording system
CN107943583A (en) * 2017-11-14 2018-04-20 广东欧珀移动通信有限公司 Processing method, device, storage medium and the electronic equipment of application program
CN108134722A (en) * 2017-12-27 2018-06-08 惠州Tcl家电集团有限公司 Control method for washing machine, mobile terminal, system and readable storage medium storing program for executing
CN109240114A (en) * 2018-10-26 2019-01-18 无锡小天鹅股份有限公司 Appliances equipment control method, device, electronic equipment and storage medium
CN109361578A (en) * 2017-12-29 2019-02-19 广州Tcl智能家居科技有限公司 A kind of washing machine sharing method, system and and storage medium
CN112235166A (en) * 2020-12-04 2021-01-15 歌尔科技有限公司 Bluetooth connection time detection method and system
CN112866969A (en) * 2021-03-09 2021-05-28 浙江一通电子科技有限公司 Bluetooth connection method and connection system for multi-frequency conversion control of tower crane
CN112954760A (en) * 2021-03-15 2021-06-11 维沃移动通信有限公司 Connection method and device of Bluetooth equipment and electronic equipment
CN115131092A (en) * 2022-06-02 2022-09-30 山东洗之郎智能科技有限公司 Big data-based smart campus sharing equipment utilization rate monitoring method and equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166396B (en) * 2014-08-27 2016-09-28 深圳创维-Rgb电子有限公司 A kind of intelligent home furnishing control method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018064867A1 (en) * 2016-10-09 2018-04-12 广州视源电子科技股份有限公司 Duration recording method, bluetooth slave device and duration recording system
CN107943583A (en) * 2017-11-14 2018-04-20 广东欧珀移动通信有限公司 Processing method, device, storage medium and the electronic equipment of application program
CN108134722A (en) * 2017-12-27 2018-06-08 惠州Tcl家电集团有限公司 Control method for washing machine, mobile terminal, system and readable storage medium storing program for executing
CN109361578A (en) * 2017-12-29 2019-02-19 广州Tcl智能家居科技有限公司 A kind of washing machine sharing method, system and and storage medium
CN109240114A (en) * 2018-10-26 2019-01-18 无锡小天鹅股份有限公司 Appliances equipment control method, device, electronic equipment and storage medium
CN112235166A (en) * 2020-12-04 2021-01-15 歌尔科技有限公司 Bluetooth connection time detection method and system
CN112866969A (en) * 2021-03-09 2021-05-28 浙江一通电子科技有限公司 Bluetooth connection method and connection system for multi-frequency conversion control of tower crane
CN112954760A (en) * 2021-03-15 2021-06-11 维沃移动通信有限公司 Connection method and device of Bluetooth equipment and electronic equipment
CN115131092A (en) * 2022-06-02 2022-09-30 山东洗之郎智能科技有限公司 Big data-based smart campus sharing equipment utilization rate monitoring method and equipment

Also Published As

Publication number Publication date
CN115942429A (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN106445664B (en) Application program management method and device
CN101128968B (en) Systems and methods for selectively controlling electrical outlets using power profiling
JP2008112267A (en) Method and system for life watching based on power consumption
US9078050B2 (en) Techniques for clock recovery in a mobile information collection network following a power outage
AU2014200456B2 (en) Wireless network communication nodes with opt out capability
CN104159281A (en) A method and a device for saving electricity of a mobile terminal
CN109974238A (en) Data processing method, equipment and the multi-online air-conditioning system of multi-online air-conditioning system
CN105611074B (en) A kind of method and system optimizing the pushed information time according to alarm time
CN115942429B (en) Method and device for controlling public household appliances, electronic equipment and storage medium
CN112150659A (en) Full-automatic attendance card punching method and system based on terminal positioning
CN108738076B (en) Method and device for load balancing execution threshold adjustment
CN111683401B (en) Method and device for adjusting paging cycle and terminal equipment
CN113589699A (en) Intelligent household scene control method and device
CN101656981B (en) Control method for cell measuring modulation and mobile terminal
JPH10304060A (en) Traffic measurement device and method therefor
CN110519781A (en) RRC time limit method of adjustment and device, mobile terminal and readable storage medium storing program for executing
KR20120066799A (en) Load control apparatus and method for advanced metering infrastructure network
CN115426212A (en) Intelligent device adaptability adjusting method based on sleep state and terminal device
CN110139294A (en) A kind of wake-up area determination method, the network equipment and user terminal
CN105608558A (en) Setting method and system for reminding time of alarm clocks in intelligent terminal
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN109764475B (en) Air treatment equipment, control method and device thereof, and computer readable storage medium
CN103782563A (en) Event-based keep alive times in communication networks
CN113315872B (en) Mobile terminal control method and device and mobile terminal
CN102333288B (en) Method for controlling application program running of terminal and terminal

Legal Events

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