CN110267334A - Control method, control device, readable storage medium storing program for executing and wireless beacon device - Google Patents
Control method, control device, readable storage medium storing program for executing and wireless beacon device Download PDFInfo
- Publication number
- CN110267334A CN110267334A CN201910533159.2A CN201910533159A CN110267334A CN 110267334 A CN110267334 A CN 110267334A CN 201910533159 A CN201910533159 A CN 201910533159A CN 110267334 A CN110267334 A CN 110267334A
- Authority
- CN
- China
- Prior art keywords
- light intensity
- ambient light
- section
- beacon device
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0225—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
- H04W52/0248—Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The embodiment of the invention discloses a kind of control method, control device, readable storage medium storing program for executing and wireless beacon devices.The business hours section and non operation time section in shop are obtained by detecting the variation of ambient light intensity, and then the control wireless beacon device is in first mode in business hours section, and the wireless beacon device is controlled in non operation time section and is in second mode.Thus, it is possible to reduce waste of energy caused by wireless beacon device works for a long time, electric energy can be saved, increases the service life of battery.
Description
Technical field
The present invention relates to automatic control technology fields, and in particular to a kind of control method, control device, readable storage medium storing program for executing
And wireless beacon device.
Background technique
Wireless beacon device be widely used at present to shop check card, location assistance positioning etc..For example, by wireless
Beacon device broadcasts have the signal of its identity, and terminal device is reported after receiving signal to server, server
The function of checking card to the user of terminal device to shop is realized according to the report information of terminal device.Meanwhile server by pair
Terminal device receives signal to the signal strength of one or more wireless beacon devices with more accurate carry out indoor positioning.
Wireless beacon device is powered usually using battery, if work meeting is so that energy consumption is larger for a long time, reduction battery
Service life.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of control method, control device, readable storage medium storing program for executing and wireless
Beacon apparatus can save electric energy, increase the service life of battery.
In a first aspect, the embodiment of the invention provides a kind of control method, for controlling wireless beacon device, the method
Include:
In at least one unit period, ambient light intensity is persistently obtained;
Determine the time series of the ambient light intensity;
At least one business hours is determined in a unit period according to the time series of the ambient light intensity
Section and non operation time section;And
The control wireless beacon device is in first mode in the business hours section, in the non operation time section
The interior control wireless beacon device is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
Preferably, the wireless beacon device is Bluetooth beacon device.
Preferably, one unit period is 24 hours.
Preferably, at least one battalion is determined in a unit period according to the time series of the ambient light intensity
Industry period and non operation time section include:
The inflection point of the ambient light intensity is obtained according to the time series of the ambient light intensity, the inflection point is the ring
Corresponding time point when the variation of border luminous intensity is more than predetermined threshold;And
It is determined at least in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
One business hours section and non operation time section.
Preferably, true in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
Fixed at least one business hours section and non operation time section include:
One unit period is divided into multiple time intervals according to the inflection point, the time interval is every phase
Corresponding time zone between adjacent two inflection points;
The intensity value of the ambient light intensity in the multiple time interval is obtained respectively;
The time interval that the intensity value of the ambient light intensity is higher than predetermined strength value is determined as business hours section;And
Time interval by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non operation time section.
Preferably, before the intensity value for obtaining the ambient light intensity in the multiple time interval respectively, according to adjacent two
The intensity value of ambient light intensity between a inflection point in a unit period determine at least one business hours section and it is non-
Business hours section further include:
It is lower than predetermined amount of time in response to the time interval corresponding period, when by the time interval with upper one
Between section or next time interval merge.
Second aspect, the embodiment of the invention provides a kind of control devices, for controlling wireless beacon device, the control
Device includes:
Luminous intensity acquiring unit, for persistently obtaining ambient light intensity at least one unit period;
Retrieval unit, for determining the time series of the ambient light intensity;
Period division unit, it is true in a unit period for the time series according to the ambient light intensity
Fixed at least one business hours section and non operation time section;And
Beacon control unit is in first mode for controlling the wireless beacon device in the business hours section,
The wireless beacon device is controlled in the non operation time section is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
Preferably, the wireless beacon device is Bluetooth beacon device.
Preferably, one unit period is 24 hours.
Preferably, the period division unit includes:
Inflection point obtains subelement, for obtaining turning for the ambient light intensity according to the time series of the ambient light intensity
Point, the inflection point are corresponding time point when changing more than predetermined threshold of the ambient light intensity;And
Period determines subelement, for the intensity value according to the ambient light intensity between two neighboring inflection point in a list
At least one business hours section and non operation time section are determined in the time cycle of position.
Preferably, the period determines that subelement includes:
Interval division module, for one unit period to be divided into multiple time intervals according to the inflection point,
The time interval corresponding time zone between each adjacent two inflection point;
Luminous intensity determining module, for obtaining the intensity value of the ambient light intensity in the multiple time interval respectively;
Business hours section determining module, for the intensity value of the ambient light intensity to be higher than to the time zone of predetermined strength value
Between be determined as the business hours section;And
Non operation time section determining module, for the intensity value of the ambient light intensity to be lower than to the time of predetermined strength value
Section is determined as non operation time section.
Preferably, the period determines subelement further include:
Section processing module will be described for being lower than predetermined amount of time in response to the time interval corresponding period
Time interval merges with a upper time interval or next time interval.
The third aspect, the embodiment of the invention provides a kind of computer readable storage mediums, store computer program thereon
Instruction, the computer program instructions realize method as described in relation to the first aspect when being executed by processor.
Fourth aspect, it is described to deposit the embodiment of the invention provides a kind of wireless beacon device, including memory and processor
Reservoir is for storing one or more computer program instructions, wherein one or more computer program instructions are described
Processor is executed to realize following steps:
In at least one unit period, ambient light intensity is persistently obtained;
Determine the time series of the ambient light intensity;
At least one business hours is determined in a unit period according to the time series of the ambient light intensity
Section and non operation time section;And
The control wireless beacon device is in first mode in the business hours section, in the non operation time section
The interior control wireless beacon device is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
Preferably, the wireless beacon device is Bluetooth beacon device.
Preferably, one unit period is 24 hours.
Preferably, at least one battalion is determined in a unit period according to the time series of the ambient light intensity
Industry period and non operation time section include:
The inflection point of the ambient light intensity is obtained according to the time series of the ambient light intensity, the inflection point is the ring
Corresponding time point when the variation of border luminous intensity is more than predetermined threshold;And
It is determined at least in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
One business hours section and non operation time section.
Preferably, true in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
Fixed at least one business hours section and non operation time section include:
One unit period is divided into multiple time intervals according to the inflection point, the time interval is every phase
Corresponding time zone between adjacent two inflection points;
The intensity value of the ambient light intensity in the multiple time interval is obtained respectively;
The time interval that the intensity value of the ambient light intensity is higher than predetermined strength value is determined as business hours section;And
Time interval by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non operation time section.
Preferably, before the intensity value for obtaining the ambient light intensity in the multiple time interval respectively, according to adjacent two
The intensity value of ambient light intensity between a inflection point in a unit period determine at least one business hours section and it is non-
Business hours section further include:
It is lower than predetermined amount of time in response to the time interval corresponding period, when by the time interval with upper one
Between section or next time interval merge.
The technical solution of the embodiment of the present invention obtains the business hours section in shop by the variation of detection ambient light intensity
With non operation time section, and then the control wireless beacon device is in first mode in business hours section, in non-business
Between in section the control wireless beacon device be in second mode.It works for a long time thus, it is possible to reduce wireless beacon device
Caused by waste of energy, electric energy can be saved, increase the service life of battery.
Detailed description of the invention
By referring to the drawings to the description of the embodiment of the present invention, the above and other purposes of the present invention, feature and
Advantage will be apparent from, in the accompanying drawings:
Fig. 1 is the flow chart of the control method of the embodiment of the present invention;
Fig. 2 is one exemplary schematic diagram of time series of the ambient light intensity of the embodiment of the present invention;
Fig. 3 is the flow chart of at least one business hours of the determination of embodiment of the present invention section and non operation time section;
Fig. 4 is another exemplary schematic diagram of the time series of the ambient light intensity of the embodiment of the present invention;
Fig. 5 is the flow chart of at least one business hours of the determination of embodiment of the present invention section and non operation time section;
Fig. 6 is another exemplary schematic diagram of the time series of the ambient light intensity of the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the control device of the embodiment of the present invention;
Fig. 8 is the structural schematic diagram of the wireless beacon device of the embodiment of the present invention.
Specific embodiment
The present invention is disclosed below based on embodiment and is described, but the present invention discloses and is not restricted to these implementations
Example.It is detailed to describe some specific detail sections below in datail description disclosed by the invention.To those skilled in the art
Of the invention disclose can also be understood completely in the description of part without these details for member.It is disclosed by the invention in order to avoid obscuring
Essence, there is no narrations in detail for well known method, process, process, element and circuit.
In addition, it should be understood by one skilled in the art that provided herein attached drawing be provided to explanation purpose, and
What attached drawing was not necessarily drawn to scale.
Unless the context clearly requires otherwise, "include", "comprise" otherwise throughout the specification and claims etc. are similar
Word should be construed as the meaning for including rather than exclusive or exhaustive meaning;That is, be " including but not limited to " contains
Justice.
In description disclosed by the invention, it is to be understood that term " first ", " second " etc. are used for description purposes only,
It is not understood to indicate or imply relative importance.In addition, in description disclosed by the invention, it is unless otherwise indicated, " more
It is a " it is meant that two or more.
In the present embodiment, wireless beacon device is the external device of terminal device, can be with broadcast wireless signal, with terminal
Equipment is communicated.Further, wireless beacon device includes power supply, wireless communication unit.
In the present embodiment, power supply is used to power for wireless communication unit and optical sensor.Preferably, the power supply is electricity
Pond, such as dry cell or battery etc..It should be understood that power supply is also possible to the friendship of 220V or 380V in some special occasions
Flow alternating current.
In the present embodiment, wireless communication unit is used for broadcast wireless signal.It should be understood that the wireless communication unit can also
For receiving wireless signal.Specifically, the wireless communication unit can be NB-IoT (narrowband Internet of Things, Narrow Band
Internet of Things) module, LoRa module, ZigBee module or bluetooth module etc..Further, NB-IoT has wide
The features such as covering, low-power consumption and lower module cost.LoRa is LPWAN (low-power consumption wide area network, Low Power Wide Area
Network one kind) is that a kind of overlength distance based on spread spectrum that Semtech company, the U.S. uses and promotes wirelessly passes
Transmission scheme has the characteristics that remote, low-power consumption, multinode and low cost.ZigBee technology is a kind of short distance, low complexity
Degree, low-power consumption, low rate and low cost bidirectional wireless communication technology.
In the present embodiment, it is illustrated so that wireless communication unit is bluetooth module as an example, correspondingly, terminal device can be with
It is mobile phone, tablet computer or laptop etc..Specifically, the working principle of Bluetooth beacon device is with bluetooth approach to surrounding
Bluetooth signal is sent, the Bluetooth signal has the identity of the Bluetooth beacon device, and the identity is commonly used in
Identify address.After terminal device receives signal by included bluetooth module, it can scan and parse by application software
The identity of signal, finally sends information to server.Server can determine terminal device according to the information received
Position, can be checked card as a result, based on the realization of Bluetooth beacon device to shop, the functions such as auxiliary positioning, automatic push.Meanwhile bluetooth
Beacon apparatus itself does not have the function of collecting data, will not steal the identity information of terminal user, peace with higher
Quan Xing.Bluetooth beacon device is widely used as a result, greatly facilitates people's production and life.
Currently, usually Bluetooth signal is sent by using bluetooth technology with low power consumption, to reduce the power consumption of Bluetooth beacon device.
But the power consumption of Bluetooth beacon device how is further decreased, promote battery life for the application of Bluetooth beacon device and is ground
Studying carefully has important role.
Fig. 1 is the flow chart of the control method of the embodiment of the present invention.As shown in Figure 1, wireless beacon of the embodiment of the present invention fills
The control method set includes the following steps:
Step S100, at least one unit period, ambient light intensity is persistently obtained.
In the present embodiment, wireless beacon device persistently obtains ambient light intensity by optical sensor.Optical sensor refers to energy
Sensitive detects by the light energy of ultraviolet light to infrared light, and light energy is converted into the device of electric signal, mainly by photosensitive
Element composition.
In an optional implementation, the optical sensor is the included light of the bluetooth module in wireless beacon device
Sensor.The cost of design and the volume of relevant hardware devices can be reduced as a result,.
In another optional implementation, the optical sensor is additional optical sensor, and hardware design can be improved
Flexibility in the process facilitates debugging.
In the present embodiment, one unit period is 24 hours.
Further, wireless beacon device persistently detects ambient light intensity in multiple unit periods, more to obtain
The variation of the ambient light intensity of a unit period obtains every according to the variation of the ambient light intensity of multiple unit periods
Business hours section and non operation time section in a unit period.For example, being obtained with (continuous 7 days) one week for learning cycle
The variation of continuous 7 days ambient light intensities is taken, the business hours section and non operation time section of every day in continuous 7 days of study.
Thus, it is possible to accurately obtain the variation of the ambient light intensity of working day and nonworkdays within one week.It should be understood that can also
To obtain the ambient light intensity in more weeks, and then obtain the environmental light intensity of ambient light intensity synchronization in continuous 7 days in more weeks
The average value of degree, finally according to average value learn every day in continuous 7 days business hours section and non operation time section, with into
One step improves the accuracy of judgement.
In the present embodiment, persistently obtaining ambient light intensity is control optical sensor with a lesser detection time period
Periodically detection ambient light intensity.Preferably, the detection time period is 15 minutes.If the detection time period is too small,
It will increase calculation amount, if the detection time period is excessive, will increase error, reduce the reliability of result.
The present embodiment at least one unit period by persistently detecting ambient light intensity, and available at least one
The variation of ambient light intensity in a unit period.
Step S200, the time series of the ambient light intensity is determined.
In the present embodiment, wireless beacon device determines the time sequence of ambient light intensity according to the ambient light intensity of acquisition
Column.
Further, wireless beacon device is as unit of the detection time period, when obtaining at least one described unit
Between ambient light intensity in the period time series.
Further, wireless beacon device persistently detects ambient light intensity at least one unit period, near
Ambient light intensity in a few unit period is most divided by force eight luminous intensities of E1-E8 etc. to luminous intensity by luminous intensity is most weak
Grade.Meanwhile detection cycle T0 is set, i.e., a luminous intensity, further, the detection time period are detected every period T0
It is 15 minutes.
Fig. 2 is one exemplary schematic diagram of time series of the ambient light intensity of the embodiment of the present invention.Fig. 2 shows one
The variation of luminous intensity in unit period.Wherein, abscissa t indicates that the time, (t1-t12 indicates the, and extremely one morning at 6 points
6 points of the next morning), each chronomere is two hours.Ordinate E indicates that (E1-E8 indicates eight luminous intensities etc. to luminous intensity
Grade).
As shown in Fig. 2, light intensity level is E6 within the t1-t8 period, light intensity level is within the t8-t12 period
E3。
Optical power values can be obtained the time series of the ambient light intensity as a result, further to be divided
Analysis.
Step S300, at least one is determined in a unit period according to the time series of the ambient light intensity
Business hours section and non operation time section.
In the present embodiment, wireless beacon device is according to the time series of the ambient light intensity week unit time
At least one business hours section and non operation time section are determined in phase.
Fig. 3 is the flow chart of at least one business hours of the determination of embodiment of the present invention section and non operation time section.Such as Fig. 3
It is shown, specifically comprise the following steps:
Step S310, the inflection point of the ambient light intensity is obtained according to the time series of the ambient light intensity, it is described to turn
Point is corresponding time point when changing more than predetermined threshold of the ambient light intensity.
In the present embodiment, wireless beacon device obtains the environmental light intensity according to the time series of the ambient light intensity
The inflection point of degree, specific as shown in Fig. 2, in time t8, ambient light intensity drops to E3 by E6, therefore the ambient light intensity
Inflection point is t8.
Further, it may result in ambient light intensity due to barrier blocks or other and small change occur,
It may make in a unit period that there are many inflection points.The embodiment of the present invention passes through setting predetermined threshold as a result, so that
Corresponding time point when the variation of ambient light intensity is lower than predetermined threshold is not recorded as inflection point, and the variation of ambient light intensity is surpassed
Corresponding time point when predetermined threshold is recorded as inflection point out.
Preferably, the predetermined threshold is a light intensity level.
Fig. 4 is another exemplary schematic diagram of the time series of the ambient light intensity of the embodiment of the present invention.As shown in figure 4,
Light intensity level is E6 within the t1-t3 period, and light intensity level is between E5-E6 within the t3-t4 period, in t8-t12
Light intensity level is E3 in period.That is, luminous intensity is changed at t3, t4 and t8 time point.In t3, t4 time
At point, the variation of ambient light intensity is lower than predetermined threshold, therefore is not recorded as inflection point.At t8 time point, ambient light intensity
Variation exceeds predetermined threshold, and time point t8 is recorded as inflection point.
Thus, it is possible to reduce barrier block or other reasons caused by ambient light intensity occur small change when to most
The influence of termination fruit.
Step S320, according to the intensity value of the ambient light intensity between two neighboring inflection point in a unit period
Determine at least one business hours section and non operation time section.
In the present embodiment, wireless beacon device is according to the intensity value of the ambient light intensity between two neighboring inflection point one
At least one business hours section and non operation time section are determined in a unit period.
Fig. 5 is the flow chart of at least one business hours of the determination of embodiment of the present invention section and non operation time section.Specifically
Include the following steps:
Step S321, one unit period is divided by multiple time intervals, the time according to the inflection point
Section corresponding time zone between each adjacent two inflection point.
In the present embodiment, a unit period is divided into multiple time intervals according to inflection point by wireless beacon device.
As shown in figures 2 or 4, a unit period can be divided into two time intervals, time zone t1-t8 and time zone
t8-t12。
Step S322, the intensity value of the ambient light intensity in the multiple time interval is obtained respectively.
In the present embodiment, wireless beacon device obtains the intensity of the ambient light intensity in the multiple time interval respectively
Value, in time zone t1-t8, the intensity value of ambient light intensity is E6.In time zone t8-t12, the intensity value of ambient light intensity
For E3.
Step S323, when the time interval that the intensity value of the ambient light intensity is higher than predetermined strength value being determined as business
Between section.
In the present embodiment, the intensity value of the ambient light intensity is higher than the time of predetermined strength value by wireless beacon device
Section is determined as business hours section.Specifically, setting predetermined strength value is E4.In time zone t1-t8, ambient light intensity it is strong
Angle value is higher than E4, that is, the t1-t8 period is business hours section.
Step S324, the time interval by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non-business
Period.
In the present embodiment, the intensity value of the ambient light intensity is lower than the time of predetermined strength value by wireless beacon device
Section is determined as non operation time section, that is, is lower than E4 in the intensity value of time zone t8-t12, ambient light intensity, that is, t8-t12
Period is non operation time section.
Wireless beacon device can obtain the business hours section and non-business in shop according to the variation of ambient light intensity as a result,
Period.
It should be understood that step S323 and step S324 may be performed simultaneously, can also successively it execute, it is not necessary to it is suitable to distinguish execution
Sequence.
Preferably, wireless beacon device is before executing step S322, according to the environmental light intensity between two neighboring inflection point
The intensity value of degree determines at least one business hours section in a unit period and non operation time section further includes as follows
Step:
Step S322 ', it is lower than predetermined amount of time in response to the time interval corresponding period, by the time interval
Merge with a upper time interval or next time interval.
In the present embodiment, it is lower than predetermined amount of time, wireless beacon dress in response to the time interval corresponding period
It sets and merges the time interval with a upper time interval or next time interval.Preferably, the predetermined amount of time is two
Hour.
Further, described merge into will be less than the corresponding light intensity value of time interval of predetermined amount of time and be changed to thereon one
The corresponding light intensity value of a time interval, alternatively, the time interval that next time interval will be less than predetermined amount of time is corresponding
Light intensity value is changed to the corresponding light intensity value of its next time interval.
Fig. 6 is another exemplary schematic diagram of the time series of the ambient light intensity of the embodiment of the present invention.As shown in fig. 6,
Light intensity level is E6 within the t1-t3 period, and light intensity level is between E3 within the t3-t3 ' period, in t3 '-t8
Between in section light intensity level be E6, light intensity level is E3 within the t8-t12 period.That is, in t1-t3 period and t3 '-
T8 period ambient light intensity is higher than predetermined strength value E4, is lower than in t3-t3 ' period and t8-t12 period ambient light intensity
Predetermined strength value E4.But since the t3-t3 ' period is lower than predetermined amount of time two hours, by the t3-t3 ' period pair
The light intensity value E3 answered is changed to the corresponding light intensity value E8 of a time interval (t1-t3), alternatively, by the t3-t3 ' period
Corresponding light intensity value E3 is changed to the corresponding light intensity value E8 of next time interval (t3 '-t8).That is, after treatment,
T1-t8 period corresponding environmental light intensity angle value is E8.
It is sent out in a relatively short period of time thus, it is possible to reduce ambient light intensity caused by due to barrier blocks or other
To the influence of final result when changing.
Step S400, the control wireless beacon device work in the business hours section, in the non operation time
The control wireless beacon device is closed in section.
In the present embodiment, work is in first mode in the business hours section for wireless beacon device, in the non-battalion
Work is in second mode in the industry period.Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
Further, the first mode is the mode that wireless beacon device is in higher power dissipation.For example, wireless beacon fills
It sets in normal operating conditions, with the broadcast wireless signal of the cycle of very little.
Further, the second mode is the mode that wireless beacon device is in lower power consumption.For example, wireless beacon fills
It sets and is in close state, alternatively, being in the broadcast singal of a biggish cycle in the period of non-broadcast singal
Suspend mode or closed state, to reduce the power consumption of wireless beacon device.
When can determine business hours and the non-business in a unit period according to above-mentioned steps S100-S300
Between, the control wireless beacon device is in first mode in the business hours section, in the non operation time section internal control
It makes the wireless beacon device and is in second mode.
Thus, it is possible to learn business hours in shop and non-by the intensity variation at least one unit period
Business hours, and then automatically switch wireless beacon device operating mode.
When the embodiment of the present invention obtains the business hours section and non-business in shop by the variation of detection ambient light intensity
Between section, and then the control wireless beacon device is in first mode in business hours section, controls in non operation time section
The wireless beacon device is in second mode.Thus, it is possible to reduce electric energy caused by wireless beacon device works for a long time
Waste, can save electric energy, increase the service life of battery.
Fig. 7 is the structural schematic diagram of the control device of the embodiment of the present invention.As shown in fig. 7, the control of the embodiment of the present invention
Device includes luminous intensity acquiring unit 71, retrieval unit 72, period division unit 73 and beacon control unit 74.Its
In, luminous intensity acquiring unit 71 is used at least one unit period, persistently obtains ambient light intensity.Retrieval list
Member 72 is for determining the time series of the ambient light intensity.Period division unit 73 is used for according to the ambient light intensity
Time series determines at least one business hours section and non operation time section in a unit period.Beacon control unit
74 are in first mode for controlling the wireless beacon device in the business hours section, in the non operation time section
It controls the wireless beacon device and is in second mode, wherein the power consumption of the second mode is lower than the function of the first mode
Consumption.Thus, it is possible to automatically switch the operating mode of wireless beacon device.
Further, the wireless beacon device is Bluetooth beacon device.
Further, one unit period is 24 hours.
Further, the period division unit 73 includes inflection point acquisition subelement 731 and period determining subelement
732。
Wherein, the inflection point obtains subelement 731 and is used to obtain the ring according to the time series of the ambient light intensity
The inflection point of border luminous intensity, the inflection point are corresponding time point when changing more than predetermined threshold of the ambient light intensity.When
Between section determine subelement 732 for according to the intensity value of the ambient light intensity between two neighboring inflection point week unit time
At least one business hours section and non operation time section are determined in phase.
Further, the period determines that subelement 732 includes interval division module 732a, luminous intensity determining module
732c, business hours section determining module 732d and non operation time section determining module 732e.
Wherein, interval division module 732a is for when being divided into multiple for one unit period according to the inflection point
Between section, the time interval corresponding time zone between each adjacent two inflection point.Luminous intensity determining module 732c is used for
The intensity value of the ambient light intensity in the multiple time interval is obtained respectively.Business hours, section determining module 732d was used for institute
The intensity value for stating ambient light intensity is determined as business hours section higher than the time interval of predetermined strength value.Non operation time section determines
The time interval that module 732e is used for by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non operation time
Section.
Further, the period determines that subelement 732 further includes section processing module 732b.
Wherein, the section processing module 732b is used in response to the time interval corresponding period lower than pre- timing
Between section, the time interval is merged with a upper time interval or next time interval.
The present embodiment obtains the business hours section and non operation time section in shop by the variation of detection ambient light intensity,
And then the control wireless beacon device is in first mode in business hours section, and the nothing is controlled in non operation time section
Line beacon apparatus is in second mode.Thus, it is possible to reduce waste of energy caused by wireless beacon device works for a long time, energy
Electric energy is enough saved, the service life of battery is increased.
Fig. 8 is the structural schematic diagram of the wireless beacon device of the embodiment of the present invention.In the present embodiment, wireless beacon device
Including the necessary component of wireless communication module etc..As shown in figure 8, the wireless beacon device: including at least a processor 81;With
And the memory 82 with the communication connection of at least one processor 81;And the communication component 83 with scanning means communication connection,
Communication component 83 sends and receivees data under the control of processor 81;And the light sensing being connect with the communication component 83
Device 84 is controlled by the processor 82 and detects ambient light intensity;And the wireless communication unit being connect with the communication component 83
85, it is controlled by 82 broadcast wireless signal of processor.Wherein, memory 82, which is stored with, to be executed by least one processor 81
Instruction, instruction by least one processor 81 execute to realize:
In at least one unit period, ambient light intensity is persistently obtained;
Determine the time series of the ambient light intensity;
At least one business hours is determined in a unit period according to the time series of the ambient light intensity
Section and non operation time section;And
The control wireless beacon device is in first mode in the business hours section, in the non operation time section
The interior control wireless beacon device is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
Further, the wireless beacon device is Bluetooth beacon device.
Further, one unit period is 24 hours.
Further, at least one is determined in a unit period according to the time series of the ambient light intensity
Business hours section and non operation time section include:
The inflection point of the ambient light intensity is obtained according to the time series of the ambient light intensity, the inflection point is the ring
Corresponding time point when the variation of border luminous intensity is more than predetermined threshold;And
It is determined at least in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
One business hours section and non operation time section.
Further, according to the intensity value of the ambient light intensity between two neighboring inflection point in a unit period
It determines at least one business hours section and non operation time section includes:
One unit period is divided into multiple time intervals according to the inflection point, the time interval is every phase
Corresponding time zone between adjacent two inflection points;
The intensity value of the ambient light intensity in the multiple time interval is obtained respectively;
The time interval that the intensity value of the ambient light intensity is higher than predetermined strength value is determined as business hours section;And
Time interval by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non operation time section.
Further, before the intensity value for obtaining the ambient light intensity in the multiple time interval respectively, according to adjacent
The intensity value of ambient light intensity between two inflection points in a unit period determine at least one business hours section and
Non operation time section further include:
It is lower than predetermined amount of time in response to the time interval corresponding period, when by the time interval with upper one
Between section or next time interval merge.
Specifically, which includes: one or more processors 81 and memory 82, with one in Fig. 8
For processor 81.Processor 81, memory 82 can be connected by bus or other modes, to be connected by bus in Fig. 8
It is connected in example.Memory 82 be used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software program,
Non-volatile computer executable program and module.Processor 81 is stored in non-volatile soft in memory 82 by operation
Part program, instruction and module realize above-mentioned controlling party thereby executing the various function application and data processing of equipment
Method.
Memory 82 may include storing program area and storage data area, wherein storing program area can storage program area,
Application program required at least one function;It storage data area can the Save option list etc..In addition, memory 82 may include
High-speed random access memory can also include nonvolatile memory, for example, at least disk memory, a flash memories
Part or other non-volatile solid state memory parts.In some embodiments, it includes remote relative to processor 81 that memory 82 is optional
The memory of journey setting, these remote memories can pass through network connection to external equipment.The example of above-mentioned network include but
It is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module is stored in memory 82, when being executed by one or more processor 81, is executed
Control method in above-mentioned any means embodiment.
Method provided by the embodiment of the present application can be performed in the said goods, has the corresponding functional module of execution method and has
Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present application.
The present embodiment obtains the business hours section and non operation time section in shop by the variation of detection ambient light intensity,
And then the control wireless beacon device is in first mode in business hours section, and the nothing is controlled in non operation time section
Line beacon apparatus is in second mode.Thus, it is possible to reduce waste of energy caused by wireless beacon device works for a long time, energy
Electric energy is enough saved, the service life of battery is increased.
Another embodiment of the invention is related to a kind of non-volatile memory medium, for storing computer-readable program,
The computer-readable program is used to execute above-mentioned all or part of embodiment of the method for computer.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make
It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes each embodiment the method for the application
All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The present embodiment obtains the business hours section and non operation time section in shop by the variation of detection ambient light intensity,
And then the control wireless beacon device is in first mode in business hours section, and the nothing is controlled in non operation time section
Line beacon apparatus is in second mode.Thus, it is possible to reduce waste of energy caused by wireless beacon device works for a long time, energy
Electric energy is enough saved, the service life of battery is increased.
The embodiment of the invention discloses A1, a kind of control method, for controlling wireless beacon device, which comprises
In at least one unit period, ambient light intensity is persistently obtained;
Determine the time series of the ambient light intensity;
At least one business hours is determined in a unit period according to the time series of the ambient light intensity
Section and non operation time section;And
The control wireless beacon device is in first mode in the business hours section, in the non operation time section
The interior control wireless beacon device is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
In A2, method as described in a1, the wireless beacon device is Bluetooth beacon device.
In A3, method as described in a1, one unit period is 24 hours.
In A4, method as described in a1, according to the time series of the ambient light intensity in a unit period
It determines at least one business hours section and non operation time section includes:
The inflection point of the ambient light intensity is obtained according to the time series of the ambient light intensity, the inflection point is the ring
Corresponding time point when the variation of border luminous intensity is more than predetermined threshold;And
It is determined at least in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
One business hours section and non operation time section.
In A5, the method as described in A4, according to the intensity value of the ambient light intensity between two neighboring inflection point in a list
At least one business hours section is determined in the time cycle of position and non operation time section includes:
One unit period is divided into multiple time intervals according to the inflection point, the time interval is every phase
Corresponding time zone between adjacent two inflection points;
The intensity value of the ambient light intensity in the multiple time interval is obtained respectively;
The time interval that the intensity value of the ambient light intensity is higher than predetermined strength value is determined as business hours section;And
Time interval by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non operation time section.
In A6, method as described in a5, obtain respectively the ambient light intensity in the multiple time interval intensity value it
Before, at least one battalion is determined in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
Industry period and non operation time section further include:
It is lower than predetermined amount of time in response to the time interval corresponding period, when by the time interval with upper one
Between section or next time interval merge.
The embodiment of the invention also discloses B1, a kind of control device, for controlling wireless beacon device, the control device
Include:
Luminous intensity acquiring unit, for persistently obtaining ambient light intensity at least one unit period;
Retrieval unit, for determining the time series of the ambient light intensity;
Period division unit, it is true in a unit period for the time series according to the ambient light intensity
Fixed at least one business hours section and non operation time section;And
Beacon control unit is in first mode for controlling the wireless beacon device in the business hours section,
The wireless beacon device is controlled in the non operation time section is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
In B2, the control device as described in B1, the wireless beacon device is Bluetooth beacon device.
In B3, the control device as described in B1, one unit period is 24 hours.
In B4, the control device as described in B1, the period division unit includes:
Inflection point obtains subelement, for obtaining turning for the ambient light intensity according to the time series of the ambient light intensity
Point, the inflection point are corresponding time point when changing more than predetermined threshold of the ambient light intensity;And
Period determines subelement, for the intensity value according to the ambient light intensity between two neighboring inflection point in a list
At least one business hours section and non operation time section are determined in the time cycle of position.
In B5, the control device as described in B4, the period determines that subelement includes:
Interval division module, for one unit period to be divided into multiple time intervals according to the inflection point,
The time interval corresponding time zone between each adjacent two inflection point;
Luminous intensity determining module, for obtaining the intensity value of the ambient light intensity in the multiple time interval respectively;
Business hours section determining module, for the intensity value of the ambient light intensity to be higher than to the time zone of predetermined strength value
Between be determined as the business hours section;And
Non operation time section determining module, for the intensity value of the ambient light intensity to be lower than to the time of predetermined strength value
Section is determined as non operation time section.
In B6, the control device as described in B5, the period determines subelement further include:
Section processing module will be described for being lower than predetermined amount of time in response to the time interval corresponding period
Time interval merges with a upper time interval or next time interval.
The embodiment of the invention also discloses C1, a kind of computer readable storage medium, store computer program instructions thereon,
The computer program instructions realize the method as described in any one of A1-A6 when being executed by processor.
The embodiment of the invention also discloses D1, a kind of wireless beacon device, including memory and processor, the memories
For storing one or more computer program instructions, wherein one or more computer program instructions are by the processing
Device is executed to realize following steps:
In at least one unit period, ambient light intensity is persistently obtained;
Determine the time series of the ambient light intensity;
At least one business hours is determined in a unit period according to the time series of the ambient light intensity
Section and non operation time section;And
The control wireless beacon device is in first mode in the business hours section, in the non operation time section
The interior control wireless beacon device is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
In D2, the wireless beacon device as described in D1, the wireless beacon device is Bluetooth beacon device.
In D3, the wireless beacon device as described in D1, one unit period is 24 hours.
In D4, the wireless beacon device as described in D1, according to the time series of the ambient light intensity in a unit
Between at least one business hours section is determined in the period and non operation time section includes:
The inflection point of the ambient light intensity is obtained according to the time series of the ambient light intensity, the inflection point is the ring
Corresponding time point when the variation of border luminous intensity is more than predetermined threshold;And
It is determined at least in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
One business hours section and non operation time section.
In D5, the wireless beacon device as described in D4, according to the intensity value of the ambient light intensity between two neighboring inflection point
At least one business hours section is determined in a unit period and non operation time section includes:
One unit period is divided into multiple time intervals according to the inflection point, the time interval is every phase
Corresponding time zone between adjacent two inflection points;
The intensity value of the ambient light intensity in the multiple time interval is obtained respectively;
The time interval that the intensity value of the ambient light intensity is higher than predetermined strength value is determined as business hours section;And
Time interval by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non operation time section.
In D6, the wireless beacon device as described in D5, the ambient light intensity in the multiple time interval is obtained respectively
Before intensity value, determined extremely in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
Few business hours section and non operation time section further include:
It is lower than predetermined amount of time in response to the time interval corresponding period, when by the time interval with upper one
Between section or next time interval merge.
The above description is only a preferred embodiment of the present invention, is not intended to restrict the invention, for those skilled in the art
For, the invention can have various changes and changes.All any modifications made within the spirit and principles of the present invention are equal
Replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (9)
1. a kind of control method, for controlling wireless beacon device, which is characterized in that the described method includes:
In at least one unit period, ambient light intensity is persistently obtained;
Determine the time series of the ambient light intensity;
According to the time series of the ambient light intensity in a unit period determine at least one business hours section and
Non operation time section;And
The control wireless beacon device is in first mode in the business hours section, in the non operation time section internal control
It makes the wireless beacon device and is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
2. the method according to claim 1, wherein the wireless beacon device is Bluetooth beacon device.
3. the method according to claim 1, wherein one unit period is 24 hours.
4. the method according to claim 1, wherein according to the time series of the ambient light intensity in a list
At least one business hours section is determined in the time cycle of position and non operation time section includes:
The inflection point of the ambient light intensity is obtained according to the time series of the ambient light intensity, the inflection point is the environment light
Corresponding time point when the variation of intensity is more than predetermined threshold;And
At least one is determined in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point
Business hours section and non operation time section.
5. according to the method described in claim 4, it is characterized in that, according to the strong of the ambient light intensity between two neighboring inflection point
Angle value determines at least one business hours section in a unit period and non operation time section includes:
One unit period is divided into multiple time intervals according to the inflection point, the time interval is per adjacent two
Corresponding time zone between a inflection point;
The intensity value of the ambient light intensity in the multiple time interval is obtained respectively;
The time interval that the intensity value of the ambient light intensity is higher than predetermined strength value is determined as business hours section;And
Time interval by the intensity value of the ambient light intensity lower than predetermined strength value is determined as non operation time section.
6. according to the method described in claim 5, it is characterized in that, obtaining the environmental light intensity in the multiple time interval respectively
It is true in a unit period according to the intensity value of the ambient light intensity between two neighboring inflection point before the intensity value of degree
Fixed at least one business hours section and non operation time section further include:
It is lower than predetermined amount of time in response to the time interval corresponding period, by the time interval and a upper time zone
Between or next time interval merge.
7. a kind of control device, for controlling wireless beacon device, which is characterized in that the control device includes:
Luminous intensity acquiring unit, for persistently obtaining ambient light intensity at least one unit period;
Retrieval unit, for determining the time series of the ambient light intensity;
Period division unit determines extremely in a unit period for the time series according to the ambient light intensity
Few business hours section and non operation time section;And
Beacon control unit is in first mode for controlling the wireless beacon device in the business hours section, in institute
It states the control wireless beacon device in non operation time section and is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
8. a kind of computer readable storage medium, stores computer program instructions thereon, which is characterized in that the computer program
Such as method of any of claims 1-6 is realized in instruction when being executed by processor.
9. a kind of wireless beacon device, including memory and processor, which is characterized in that the memory for store one or
A plurality of computer program instructions, wherein one or more computer program instructions are executed by the processor to realize such as
Lower step:
In at least one unit period, ambient light intensity is persistently obtained;
Determine the time series of the ambient light intensity;
According to the time series of the ambient light intensity in a unit period determine at least one business hours section and
Non operation time section;And
The control wireless beacon device is in first mode in the business hours section, in the non operation time section internal control
It makes the wireless beacon device and is in second mode;
Wherein, the power consumption of the second mode is lower than the power consumption of the first mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910533159.2A CN110267334A (en) | 2019-06-19 | 2019-06-19 | Control method, control device, readable storage medium storing program for executing and wireless beacon device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910533159.2A CN110267334A (en) | 2019-06-19 | 2019-06-19 | Control method, control device, readable storage medium storing program for executing and wireless beacon device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110267334A true CN110267334A (en) | 2019-09-20 |
Family
ID=67919481
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910533159.2A Pending CN110267334A (en) | 2019-06-19 | 2019-06-19 | Control method, control device, readable storage medium storing program for executing and wireless beacon device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110267334A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110784831A (en) * | 2019-10-30 | 2020-02-11 | 拉扎斯网络科技(上海)有限公司 | Control method, control device, electronic apparatus, and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105180370A (en) * | 2015-09-30 | 2015-12-23 | 青岛海尔智能家电科技有限公司 | Intelligent control method and device for air conditioner and air conditioner |
CN105682053A (en) * | 2016-03-02 | 2016-06-15 | 北京小米移动软件有限公司 | Method and apparatus for controlling broadcast frequency, bluetooth device, and terminal |
CN107548141A (en) * | 2017-07-11 | 2018-01-05 | 新华三技术有限公司 | The switching method and AP of a kind of mode of operation |
CN107911544A (en) * | 2017-11-13 | 2018-04-13 | 广东欧珀移动通信有限公司 | The method for controlling volume and device of a kind of mobile terminal |
US20180270752A1 (en) * | 2016-05-24 | 2018-09-20 | Huawei Technologies Co., Ltd. | Terminal Management Method and Apparatus |
-
2019
- 2019-06-19 CN CN201910533159.2A patent/CN110267334A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105180370A (en) * | 2015-09-30 | 2015-12-23 | 青岛海尔智能家电科技有限公司 | Intelligent control method and device for air conditioner and air conditioner |
CN105682053A (en) * | 2016-03-02 | 2016-06-15 | 北京小米移动软件有限公司 | Method and apparatus for controlling broadcast frequency, bluetooth device, and terminal |
US20180270752A1 (en) * | 2016-05-24 | 2018-09-20 | Huawei Technologies Co., Ltd. | Terminal Management Method and Apparatus |
CN107548141A (en) * | 2017-07-11 | 2018-01-05 | 新华三技术有限公司 | The switching method and AP of a kind of mode of operation |
CN107911544A (en) * | 2017-11-13 | 2018-04-13 | 广东欧珀移动通信有限公司 | The method for controlling volume and device of a kind of mobile terminal |
Non-Patent Citations (1)
Title |
---|
张浩达主编: "《数字科普之路》", 31 January 2016 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110784831A (en) * | 2019-10-30 | 2020-02-11 | 拉扎斯网络科技(上海)有限公司 | Control method, control device, electronic apparatus, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109690900B (en) | Charging method and terminal | |
CN107085380B (en) | Intelligent household system user position judgment method and electronic equipment | |
US20030034900A1 (en) | System and method for wireless automatic meter reading | |
CN107315468B (en) | Electricity based reminding method, device, storage medium and terminal | |
CN104914977A (en) | Information processing device, semiconductor chip and information processing method | |
CN206574235U (en) | A kind of start-up circuit and body state detection means | |
CN109579709A (en) | A kind of Immovable Cultural Relics Crack Monitoring device and method | |
CN105045386A (en) | Sleeping state monitoring method, sleeping state monitoring terminal and air conditioner system | |
CN205280712U (en) | Intelligence water quality monitoring system | |
CN110022529B (en) | Method and device for counting number of people in target area based on two sensing modes | |
CN102902954A (en) | Pedestrian detection system and method based on internet-of-things intelligent household security gateway | |
CN102736013B (en) | A kind of idle condition method of testing of SoC chip, system and proving installation | |
CN110267334A (en) | Control method, control device, readable storage medium storing program for executing and wireless beacon device | |
CN104770347A (en) | Portable and intelligent insect condition prediction system | |
KR102489072B1 (en) | Electronic device for measuring illuminance and operating method thereof | |
CN204440573U (en) | A kind of intelligent management system for library based on RFID technique | |
CN106443130B (en) | A kind of voltage monitoring system | |
CN104833954A (en) | Mine personnel security positioning system | |
CN107397529B (en) | Physical sign data detection method, apparatus, server and storage medium | |
CN107390503B (en) | Method and device for controlling alarm clock signal | |
CN205694932U (en) | Intelligent pet protection device | |
CN109885065B (en) | Intelligent following system and operation method | |
CN112526494A (en) | Method and device for acquiring ranging data, storage medium and electronic device | |
US20170328766A1 (en) | Methods and devices for ambient light acquisition and analysis | |
CN110225468A (en) | Control method, control device, readable storage medium storing program for executing and wireless beacon device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190920 |