CN110784831A - Control method, control device, electronic apparatus, and storage medium - Google Patents

Control method, control device, electronic apparatus, and storage medium Download PDF

Info

Publication number
CN110784831A
CN110784831A CN201911047789.5A CN201911047789A CN110784831A CN 110784831 A CN110784831 A CN 110784831A CN 201911047789 A CN201911047789 A CN 201911047789A CN 110784831 A CN110784831 A CN 110784831A
Authority
CN
China
Prior art keywords
wireless communication
time
time point
communication unit
synchronization
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.)
Granted
Application number
CN201911047789.5A
Other languages
Chinese (zh)
Other versions
CN110784831B (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.)
Rajax Network Technology Co Ltd
Original Assignee
Rajax Network 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 Rajax Network Technology Co Ltd filed Critical Rajax Network Technology Co Ltd
Priority to CN201911047789.5A priority Critical patent/CN110784831B/en
Publication of CN110784831A publication Critical patent/CN110784831A/en
Application granted granted Critical
Publication of CN110784831B publication Critical patent/CN110784831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Optical Communication System (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a control method, a control device, electronic equipment and a storage medium. The signal is transmitted at a predetermined time by controlling the light sensor to continuously detect the intensity of ambient light and determining a synchronization time point according to the intensity of ambient light to trigger the wireless communication device to perform time synchronization at the synchronization time point. Therefore, the wireless communication devices in the same scene can be well time-synchronized, signals can be sent at the specified time, the probability of channel collision of a communication system can be reduced, the channel utilization rate is improved, the power consumption is reduced, and the communication efficiency is improved.

Description

Control method, control device, electronic apparatus, and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a control method, a control apparatus, an electronic device, and a storage medium.
Background
When a plurality of wireless communication apparatuses performing communication on the same wireless channel communicate with each other, data collision is likely to occur. In the prior art, carrier sense is generally used, and a wireless communication device must sense a wireless channel before transmitting a signal, and can transmit the signal only when the wireless channel is confirmed to be idle. If an interference signal is detected in the wireless channel, it indicates that a collision occurs, and then the transmission of the signal is stopped, the backoff waiting time is calculated, and then the data is retransmitted using a Carrier sense multiple Access (CSMA/CP) method.
However, the prior art causes the wireless communication device to consume more power, the wireless channel utilization rate to be low, and the communication efficiency to be low when the network load is heavy.
Disclosure of Invention
In view of this, embodiments of the present invention provide a control method, a control apparatus, an electronic device, and a storage medium, which can reduce the probability of channel collision in a communication system, improve the channel utilization, reduce power consumption, and improve communication efficiency.
In a first aspect, an embodiment of the present invention provides a control method, where the method includes:
controlling the light sensor to continuously detect the intensity of the ambient light;
determining a synchronous time point according to the ambient light intensity;
triggering the wireless communication unit to carry out time synchronization at the synchronization time point; and
and controlling the wireless communication unit to communicate at a preset time.
Preferably, determining a synchronization time point according to the ambient light intensity comprises:
acquiring a light intensity threshold;
calculating and acquiring the variable quantity of the ambient light intensity according to the ambient light intensities of the current time point and the last time point; and
and determining the current time point corresponding to the time point when the variation of the ambient light intensity is higher than the light intensity threshold value as a synchronous time point.
Preferably, triggering the wireless communication unit to perform time synchronization at the synchronization time point is to calibrate the time of the wireless communication unit so that the time is synchronized.
Preferably, triggering the wireless communication unit to time synchronize at the synchronization time point to start re-clocking causes time synchronization.
Preferably, the wireless communication unit is a wireless broadcasting unit;
the control of the wireless communication unit to communicate at the preset time is to control the wireless communication unit to broadcast the wireless signals within a preset time period.
Preferably, the wireless broadcasting unit is a bluetooth module;
the control of the wireless communication unit to communicate at a preset time is to control the Bluetooth module to send a Bluetooth signal in a broadcast mode within a preset time period;
wherein the Bluetooth signal comprises an identity of the Bluetooth module.
Preferably, the bluetooth module is a bluetooth low energy module.
Preferably, the wireless communication unit is a wireless receiving unit;
the control of the wireless communication unit to communicate at the preset time is to control the wireless communication unit to receive the wireless signal within a preset time period.
Preferably, the wireless receiving unit is a bluetooth module;
the control of the wireless communication unit to communicate at the preset time is to control the Bluetooth module to receive Bluetooth signals in the preset time period.
Preferably, the bluetooth module is a bluetooth low energy module.
In a second aspect, an embodiment of the present invention provides a control apparatus, including:
the detection unit is used for controlling the light sensor to continuously detect the intensity of the ambient light;
the determining unit is used for determining a synchronous time point according to the ambient light intensity;
a synchronization unit for triggering the wireless communication unit to perform time synchronization at the synchronization time point; and
a communication control unit for controlling the wireless communication unit to perform communication at a predetermined time.
Preferably, the determination unit includes:
the light intensity threshold module is used for acquiring a light intensity threshold;
the variable quantity calculation module is used for calculating and acquiring the variable quantity of the ambient light intensity according to the ambient light intensities of the current time point and the last time point; and
and the time point determining module is used for determining the current time point corresponding to the time point when the variation of the ambient light intensity is higher than the light intensity threshold value as a synchronous time point.
Preferably, the synchronization unit is configured to calibrate the time of the wireless communication unit so that the time is synchronized.
Preferably, the synchronization unit is configured to start the re-timing such that the time is synchronized.
Preferably, the wireless communication unit is a wireless broadcasting unit;
the communication control unit is configured to control the wireless communication unit to broadcast the wireless signal for a preset time period.
Preferably, the wireless broadcasting unit is a bluetooth module;
the communication control unit is configured to control the bluetooth module to transmit a bluetooth signal in a broadcast manner for a predetermined period of time;
wherein the Bluetooth signal comprises an identity of the Bluetooth module.
Preferably, the bluetooth module is a bluetooth low energy module.
Preferably, the wireless communication unit is a wireless receiving unit;
the communication control unit is configured to control the wireless communication unit to receive a wireless signal within a preset time period.
Preferably, the wireless communication unit is a bluetooth module;
the communication control unit is configured to control the bluetooth module to receive a bluetooth signal within a predetermined period of time.
Preferably, the bluetooth module is a bluetooth low energy module.
In a third aspect, an embodiment of the present invention provides an electronic unit, including:
a light sensor;
a wireless communication unit; and
a controller; the controller comprises a memory and a processor, wherein the memory stores a computer program that is executed by the processor to implement the method according to the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium on which computer program instructions are stored, which when executed by a processor implement the method according to the first aspect.
The technical scheme of the embodiment of the invention continuously detects the ambient light intensity by controlling the optical sensor, determines the synchronous time point according to the ambient light intensity to trigger the wireless communication equipment to carry out time synchronization at the synchronous time point, and sends a signal at the preset time. Therefore, the wireless communication devices in the same scene can be well time-synchronized, signals can be sent at the specified time, the probability of channel collision of a communication system can be reduced, the channel utilization rate is improved, the power consumption is reduced, and the communication efficiency is improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a wireless communication system of an embodiment of the present invention;
FIG. 2 is a schematic view of an electronic device of an embodiment of the invention;
FIG. 3 is a flow chart of a control method of an embodiment of the present invention;
FIG. 4 is a flow chart of determining a synchronization time point according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating the variation of ambient light intensity according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a control device according to an embodiment of the present invention.
Detailed Description
The present disclosure is described below based on examples, but the present disclosure is not limited to only these examples. In the following detailed description of the present disclosure, certain specific details are set forth. It will be apparent to those skilled in the art that the present disclosure may be practiced without these specific details. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present disclosure.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout this specification, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present disclosure, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present disclosure, "a plurality" means two or more unless otherwise specified.
Fig. 1 is a schematic diagram of a wireless communication system of an embodiment of the present invention. As shown in fig. 1, the wireless communication system of the embodiment of the present invention includes a plurality of wireless communication apparatuses and a wireless channel 2. The present embodiment is described by taking four wireless communication apparatuses 1a to 1d as an example. The wireless communication device is used for wireless communication, and the wireless communication device can be a wireless signal receiving end or a wireless signal sending end. The wireless channel 2 is a path between a receiving end and a transmitting end of a wireless communication device in wireless communication, and for radio waves, transmitted from the transmitting end to the receiving end, there is no physical connection therebetween.
In the present embodiment, a plurality of identical wireless communication apparatuses in the same application scenario generally use the same wireless channel for communication, and thus data collision is likely to occur when communication is performed between the plurality of wireless communication apparatuses.
In one embodiment, the wireless communication device may be a bluetooth beacon apparatus, which is particularly applicable to store card punching, location-assisted positioning, and the like.
Specifically, each bluetooth beacon device has a unique identifier, and the bluetooth beacon device may transmit a bluetooth signal (data packet) in a broadcast manner, where the data packet includes the identifier of the bluetooth beacon device. When a terminal device (e.g., a mobile phone) performs a scanning operation, it receives a broadcasted data packet. When a broadcasted data packet is Received, the Bluetooth beacon device from which the data packet comes is determined according to the identity in the data packet, and the RSSI (Received Signal Strength Indication) value, so that the card punching or positioning to a store is realized through an application program or a server installed on the terminal equipment.
However, the coverage area of the bluetooth beacon device is limited, and if the area of the usage scene is too large, a plurality of bluetooth beacon devices are usually required to be arranged. Since a plurality of identical bluetooth beacon apparatuses generally communicate using the same channel, data collision is likely to occur when a plurality of bluetooth beacon apparatuses communicate with each other.
Therefore, the embodiment of the invention provides the electronic equipment to reduce the probability of channel collision of the communication system.
Specifically, fig. 2 is a schematic diagram of an electronic device of an embodiment of the present invention. As shown in fig. 2, the electronic device of the embodiment of the present invention is a wireless communication device, and includes a controller, a communication component 13, a light sensor 14, and a wireless communication unit 15. Wherein the controller comprises at least one processor 11 and a memory 12. The wireless communication unit 15 is performing wireless communication under the control of the processor 11. The communication assembly 13 is communicatively coupled to the scanning device and receives and transmits data under the control of the processor 11. The light sensor 14 is controlled by the processor 11 to detect the intensity of ambient light.
Specifically, the electronic device includes: one or more processors 11 and memory 12,
in fig. 2, one processor 11 is taken as an example. The processor 11 and the memory 12 may be connected by a bus or other means, and fig. 2 illustrates the connection by the bus as an example. Memory 12, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 11 executes various functional applications of the device and data processing, i.e., implements the control method of the embodiment of the present invention, by executing nonvolatile software programs, instructions, and modules stored in the memory 12.
The memory 12 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store a list of options, etc. Further, the memory 12 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 12 may optionally include memory located remotely from the processor 11, and these remote memories may be connected to external devices via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
One or more modules are stored in the memory 12 and, when executed by the one or more processors 11, perform the control method of an embodiment of the present invention.
The product can execute the method provided by the embodiment of the application, has corresponding functional modules and beneficial effects of the execution method, does not have detailed technical details in the embodiment, and can refer to the control method provided by the embodiment of the invention.
Fig. 3 is a flowchart of a control method of an embodiment of the present invention. As shown in fig. 3, the control method according to the embodiment of the present invention includes the following steps:
and S100, controlling the light sensor to continuously detect the intensity of the ambient light.
In the present embodiment, the processor 11 controls the light sensor 14 to continuously detect the ambient light intensity.
In this embodiment, the wireless communication device continuously acquires the ambient light intensity through the light sensor 14. The optical sensor is a device which can sensitively detect light energy from ultraviolet light to infrared light and convert the light energy into an electric signal, and mainly comprises a photosensitive element.
Alternatively, the continuous acquisition of the ambient light intensity is to control the light sensor 14 to periodically detect the ambient light intensity for a small detection time period.
And S200, determining a synchronous time point according to the ambient light intensity.
In this embodiment, the processor 11 determines the synchronization time point according to the ambient light intensity.
Specifically, fig. 4 is a flowchart of determining a synchronization time point according to an embodiment of the present invention. As shown in fig. 4, determining the synchronization time point according to the ambient light intensity includes the steps of:
step S210, a light intensity threshold is acquired.
In the present embodiment, the light intensity threshold is set according to the actual application scenario. For example, the light intensity threshold Eref may be set to any value within the interval (0, E2-E1) with the ambient light intensity when the lighting is not turned on in the scene as the first value E1 and the ambient light intensity after the lighting as the second value E2.
Further, due to other factors, it may happen that the ambient light intensity of only a part of the area within the scene changes slightly, and thus, the light intensity threshold of the embodiment of the present invention may not be set too small, and it may happen that the wireless communication device of only a part of the area performs time synchronization when the light intensity threshold is too small. Meanwhile, the light intensity threshold value may not be set too large, and if the light intensity threshold value is too large, it may happen that the variation of the light intensity threshold value in a partial area does not exceed the light intensity threshold value, resulting in time synchronization of only a part of wireless communication devices. Specifically, the change of the light intensity of the area where each wireless communication device is located during the turning on and turning off of the lamp in a scene can be counted, and the light intensity threshold value is set according to the counting result, so that each wireless communication device can perform time synchronization during the turning on and turning off of the lamp.
Step S220, calculating and obtaining the variation of the ambient light intensity according to the ambient light intensities at the current time point and the previous time point.
In the present embodiment, the ambient light intensity E at the current time point is acquired iAnd the intensity of the ambient light at the previous time pointDegree E i-1Calculating the ambient light intensity E iAnd E i-1The absolute value of the difference value Δ E is the variation of the ambient light intensity.
Step S230, determining a current time point corresponding to the time when the variation of the ambient light intensity is higher than the light intensity threshold as a synchronization time point.
In this embodiment, the variation of the ambient light intensity is compared with a light intensity threshold, and in response to the variation of the ambient light intensity being higher than the light intensity threshold, the corresponding current time point is determined as the synchronization time point.
Specifically, fig. 5 is a schematic diagram of the variation of the ambient light intensity according to the embodiment of the present invention. Fig. 5 shows the amount of change in the ambient light intensity over a period of time. Wherein the abscissa t represents time, and t1-t12 represent twelve time points. The ordinate Δ E represents the ambient light intensity and Eref represents the light intensity threshold.
In the present embodiment, the time difference between every two time points may be set according to the actual application scenario, for example, the time difference may be 1 second.
In the present embodiment, the light intensity threshold value Eref is set according to an actual application scenario.
As shown in fig. 5, the light intensity changes at time points t4, t7, and t 10. Here, at time points t4 and t7, the light intensity variation is large and exceeds the light intensity threshold Eref, so t4 and t7 are synchronous time points. At the time point t10, the light intensity variation amount is small and does not exceed the light intensity threshold Eref, and therefore, t10 is not the synchronization time point.
Thereby, the synchronization time point may be determined from a change in the ambient light intensity, for example from a switching behavior. Meanwhile, by setting the light intensity threshold, time synchronization is not performed under the condition that light changes weakly, and errors caused by other interference factors to the light are reduced.
And step S300, triggering the wireless communication unit to carry out time synchronization at the synchronization time point.
In an alternative implementation, triggering the wireless communication unit to perform time synchronization at the synchronization time point is to calibrate the time of the wireless communication unit so that the time is synchronized.
Specifically, the time of any one of the plurality of wireless communication apparatuses may be taken as a standard time, and the times of the other wireless communication apparatuses may be synchronized according to the standard time so that the times of the plurality of wireless communication apparatuses coincide.
In another alternative implementation, the wireless communication unit is triggered to perform time synchronization at the synchronization time point, the timing is cleared, and the re-timing is started so as to synchronize the time.
Because the light intensity in different areas at the same moment in the same scene is not very different often, the propagation speed of light is faster simultaneously, so that when the action of turning on or off the lamp is carried out, the light intensity in different areas jumps simultaneously, and then all wireless communication equipment is triggered to carry out time synchronization, and the time of a plurality of wireless communication equipment at the synchronous time point is consistent.
And step S400, controlling the wireless communication unit to communicate at a preset time.
In the present embodiment, after time synchronization of the wireless communication device, the wireless communication unit is controlled to perform communication at a predetermined time.
In one embodiment, the wireless communication unit may be a wireless broadcast unit, such as a bluetooth module in a bluetooth beacon device. After the plurality of Bluetooth beacon devices are time-synchronized by the method, each Bluetooth beacon device can be preset to send the Bluetooth beacon in the own time gap, so that the Bluetooth beacon devices are ensured not to generate channel conflict.
Further, the wireless broadcasting unit is a bluetooth module, and controls the bluetooth module to send a bluetooth signal in a broadcast manner within a predetermined time period, wherein the bluetooth signal includes an identification of the bluetooth module. Therefore, the terminal equipment determines which Bluetooth beacon device the data packet comes from according to the received broadcasted data packet, and the RSSI value, and further realizes the card punching or positioning to a store through an application program or a server installed on the terminal equipment.
Furthermore, the Bluetooth module is a low-power Bluetooth module, so that power consumption can be reduced, and cruising ability can be improved.
In another embodiment, the wireless communication unit may be a wireless receiving unit. When both the transceiver devices of the wireless communication system cannot synchronize with each other, the wireless receiving unit needs to keep the receiving power on all the time so as not to miss signals of the wireless transmitting device. After the plurality of Bluetooth beacon devices are time-synchronized by the method, the wireless transmitting unit and the corresponding wireless receiving unit can be set to communicate in the same time zone, and the wireless transmitting unit and the corresponding wireless receiving unit are controlled to be in a low power consumption mode or a closed state in other time periods, so that the power consumption of the wireless receiving unit can be reduced.
Further, the wireless receiving unit is a bluetooth module, and controls the bluetooth module to receive the bluetooth signal within a predetermined time period.
Further, the bluetooth module is a low power consumption bluetooth module, and thus, power consumption can be further reduced.
Further, the operating times of the plurality of wireless communication apparatuses in the same scene may be set in advance, for example, the operating time of the wireless communication apparatus 1a is set to (T1-T2), the operating time of the wireless communication apparatus 1b is set to (T2-T3), the operating time of the wireless communication apparatus 1c is set to (T3-T4), and the operating time of the wireless communication apparatus 1d is set to (T4-T5).
Therefore, the wireless communication devices in the same scene can be controlled to work in different time intervals so as to reduce channel collision.
The present embodiment continuously detects the intensity of the ambient light by controlling the light sensor, and determines the synchronization time point according to the intensity of the ambient light to trigger the wireless communication device to perform time synchronization at the synchronization time point, and transmits a signal at a predetermined time. Thus, a plurality of wireless communication apparatuses in the same scene can be synchronized in time well, and signals can be transmitted at a predetermined time, thereby reducing the occurrence of communication systems.
Fig. 6 is a schematic structural diagram of a control device according to an embodiment of the present invention. As shown in fig. 6, the control apparatus of the embodiment of the present invention includes a detection unit 61, a determination unit 62, a synchronization unit 63, and a communication unit 64. The detection unit 61 is configured to control the light sensor to continuously detect the intensity of the ambient light. The determination unit 62 is configured to determine a synchronization time point according to the ambient light intensity. The synchronization unit 63 is configured to trigger the wireless communication unit to perform time synchronization at the synchronization time point. The communication control unit 64 is configured to control the wireless communication unit to perform communication at a predetermined time.
Further, the determining unit includes:
the light intensity threshold module is used for acquiring a light intensity threshold;
the variable quantity calculation module is used for calculating and acquiring the variable quantity of the ambient light intensity according to the ambient light intensities of the current time point and the last time point; and
and the time point determining module is used for determining the current time point corresponding to the time point when the variation of the ambient light intensity is higher than the light intensity threshold value as a synchronous time point.
Further, the synchronization unit is configured to calibrate the time of the wireless communication unit so that the time is synchronized.
Further, the synchronization unit is configured to start a re-timing such that the times are synchronized.
Further, the wireless communication unit is a wireless broadcasting unit;
the communication control unit is configured to control the wireless communication unit to broadcast the wireless signal for a preset time period.
Further, the wireless broadcasting unit is a Bluetooth module;
the communication control unit is configured to control the bluetooth module to transmit a bluetooth signal in a broadcast manner for a predetermined period of time;
wherein the Bluetooth signal comprises an identity of the Bluetooth module.
Further, the bluetooth module is a low power consumption bluetooth module.
Further, the wireless communication unit is a wireless receiving unit;
the communication control unit is configured to control the wireless communication unit to receive a wireless signal within a preset time period.
Further, the wireless communication unit is a Bluetooth module;
the communication control unit is configured to control the bluetooth module to receive a bluetooth signal within a predetermined period of time.
Further, the bluetooth module is a low power consumption bluetooth module.
The present embodiment continuously detects the intensity of the ambient light by controlling the light sensor, and determines the synchronization time point according to the intensity of the ambient light to trigger the wireless communication unit to perform time synchronization at the synchronization time point, and transmits the signal at a predetermined time. Thus, a plurality of wireless communication apparatuses in the same scene can be synchronized in time well, and signals can be transmitted at a predetermined time, thereby reducing the occurrence of communication systems.
Another embodiment of the invention is directed to a non-transitory storage medium storing a computer-readable program for causing a computer to perform some or all of the above method embodiments.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiment of the invention discloses A1 and a control method, wherein the method comprises the following steps:
controlling the light sensor to continuously detect the intensity of the ambient light;
determining a synchronous time point according to the ambient light intensity;
triggering the wireless communication unit to carry out time synchronization at the synchronization time point; and
and controlling the wireless communication unit to communicate at a preset time.
A2, the method of a1, wherein the determining a synchronization time point according to the ambient light intensity comprises:
acquiring a light intensity threshold;
calculating and acquiring the variable quantity of the ambient light intensity according to the ambient light intensities of the current time point and the last time point; and
and determining the current time point corresponding to the time point when the variation of the ambient light intensity is higher than the light intensity threshold value as a synchronous time point.
A3, the method of A1, wherein triggering the wireless communication unit to time synchronize at the synchronization time point aligns the time of the wireless communication unit so that the time is synchronized.
A4, the method of A1, wherein triggering the wireless communication unit to time synchronize to start retiming at the synchronization time point synchronizes time.
A5, the method of A1, wherein the wireless communication unit is a wireless broadcast unit;
the control of the wireless communication unit to communicate at the preset time is to control the wireless communication unit to broadcast the wireless signals within a preset time period.
A6, the method of A5, wherein the wireless broadcasting unit is a Bluetooth module;
the control of the wireless communication unit to communicate at a preset time is to control the Bluetooth module to send a Bluetooth signal in a broadcast mode within a preset time period;
wherein the Bluetooth signal comprises an identity of the Bluetooth module.
A7, the method of A6, wherein the Bluetooth module is a Bluetooth Low energy module.
A8, the method of A1, the wireless communication unit being a wireless receiving unit;
the control of the wireless communication unit to communicate at the preset time is to control the wireless communication unit to receive the wireless signal within a preset time period.
A9, the method of A8, wherein the wireless receiving unit is a Bluetooth module;
the control of the wireless communication unit to communicate at the preset time is to control the Bluetooth module to receive Bluetooth signals in the preset time period.
A10, the method of A9, wherein the Bluetooth module is a Bluetooth Low energy module.
The embodiment of the invention also discloses B1 and a control device, wherein the control device comprises:
the detection unit is used for controlling the light sensor to continuously detect the intensity of the ambient light;
the determining unit is used for determining a synchronous time point according to the ambient light intensity;
a synchronization unit for triggering the wireless communication unit to perform time synchronization at the synchronization time point; and
a communication control unit for controlling the wireless communication unit to perform communication at a predetermined time.
B2, the control device according to B1, wherein the determination unit includes:
the light intensity threshold module is used for acquiring a light intensity threshold;
the variable quantity calculation module is used for calculating and acquiring the variable quantity of the ambient light intensity according to the ambient light intensities of the current time point and the last time point; and
and the time point determining module is used for determining the current time point corresponding to the time point when the variation of the ambient light intensity is higher than the light intensity threshold value as a synchronous time point.
B3, the control device as defined in B1, wherein the synchronization unit is configured to calibrate the time of the wireless communication unit so that the time is synchronized.
B4, the control device according to B1, wherein the synchronization unit is configured to start a re-timing so that the times are synchronized.
B5, the control device as defined in B1, wherein the wireless communication unit is a wireless broadcasting unit;
the communication control unit is configured to control the wireless communication unit to broadcast the wireless signal for a preset time period.
B6, the control device as defined in B5, wherein the wireless broadcasting unit is a bluetooth module;
the communication control unit is configured to control the bluetooth module to transmit a bluetooth signal in a broadcast manner for a predetermined period of time;
wherein the Bluetooth signal comprises an identity of the Bluetooth module.
B7, the control device according to B6, wherein the Bluetooth module is a Bluetooth Low energy module.
B8, the control device according to B1, wherein the wireless communication unit is a wireless receiving unit;
the communication control unit is configured to control the wireless communication unit to receive a wireless signal within a preset time period.
B9, the control device as defined in B8, wherein the wireless communication unit is a Bluetooth module;
the communication control unit is configured to control the bluetooth module to receive a bluetooth signal within a predetermined period of time.
B10, the control device according to B9, wherein the Bluetooth module is a Bluetooth Low energy module.
The embodiment of the invention also discloses C1 and electronic equipment, wherein the electronic equipment comprises:
a light sensor;
a wireless communication unit; and
a controller; the controller comprises a memory and a processor, wherein the memory stores a computer program that is executed by the processor to implement the method of any one of a1-a 10.
Embodiments of the invention also disclose D1, a computer readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method as described in any of a1-a 10.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A control method, characterized in that the method comprises:
controlling the light sensor to continuously detect the intensity of the ambient light;
determining a synchronous time point according to the ambient light intensity;
triggering the wireless communication unit to carry out time synchronization at the synchronization time point; and
and controlling the wireless communication unit to communicate at a preset time.
2. The method of claim 1, wherein determining a synchronization time point from the ambient light intensity comprises:
acquiring a light intensity threshold;
calculating and acquiring the variable quantity of the ambient light intensity according to the ambient light intensities of the current time point and the last time point; and
and determining the current time point corresponding to the time point when the variation of the ambient light intensity is higher than the light intensity threshold value as a synchronous time point.
3. The method of claim 1, wherein triggering the wireless communication unit to time synchronize at the synchronization time point is time-synchronizing by calibrating a time of the wireless communication unit.
4. The method of claim 1, wherein triggering the wireless communication unit to time synchronize at the synchronization time point synchronizes time for a start of a re-timing.
5. The method of claim 1, wherein the wireless communication unit is a wireless broadcast unit;
the control of the wireless communication unit to communicate at the preset time is to control the wireless communication unit to broadcast the wireless signals within a preset time period.
6. The method of claim 5, wherein the wireless broadcasting unit is a Bluetooth module;
the control of the wireless communication unit to communicate at a preset time is to control the Bluetooth module to send a Bluetooth signal in a broadcast mode within a preset time period;
wherein the Bluetooth signal comprises an identity of the Bluetooth module.
7. The method of claim 6, wherein the Bluetooth module is a Bluetooth Low energy module.
8. A control device, characterized in that the control device comprises:
the detection unit is used for controlling the light sensor to continuously detect the intensity of the ambient light;
the determining unit is used for determining a synchronous time point according to the ambient light intensity;
a synchronization unit for triggering the wireless communication unit to perform time synchronization at the synchronization time point; and
a communication control unit for controlling the wireless communication unit to perform communication at a predetermined time.
9. An electronic device, characterized in that the electronic device comprises:
a light sensor;
a wireless communication unit; and
a controller; the controller comprises a memory and a processor, wherein the memory stores a computer program that is executed by the processor to implement the method of any one of claims 1-7.
10. A computer-readable storage medium on which computer program instructions are stored, which, when executed by a processor, implement the method of any one of claims 1-7.
CN201911047789.5A 2019-10-30 2019-10-30 Control method, control device, electronic apparatus, and storage medium Active CN110784831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911047789.5A CN110784831B (en) 2019-10-30 2019-10-30 Control method, control device, electronic apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911047789.5A CN110784831B (en) 2019-10-30 2019-10-30 Control method, control device, electronic apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN110784831A true CN110784831A (en) 2020-02-11
CN110784831B CN110784831B (en) 2021-07-23

Family

ID=69387866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911047789.5A Active CN110784831B (en) 2019-10-30 2019-10-30 Control method, control device, electronic apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN110784831B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486719A (en) * 2014-11-26 2015-04-01 杭州优体科技有限公司 Bluetooth frequency division positioning device
CN104883723A (en) * 2015-05-07 2015-09-02 深圳洲斯移动物联网技术有限公司 Wireless communication system based on wireless sensors
US20180220384A1 (en) * 2017-01-31 2018-08-02 Dialog Semiconductor B.V. System and Method for Clock Synchonisation on a Wireless Network
CN109946686A (en) * 2017-12-21 2019-06-28 深圳Tcl新技术有限公司 A kind of indoor orientation method based on WIFI ranging, device and storage medium
CN110267334A (en) * 2019-06-19 2019-09-20 拉扎斯网络科技(上海)有限公司 Control method, control device, readable storage medium storing program for executing and wireless beacon device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486719A (en) * 2014-11-26 2015-04-01 杭州优体科技有限公司 Bluetooth frequency division positioning device
CN104883723A (en) * 2015-05-07 2015-09-02 深圳洲斯移动物联网技术有限公司 Wireless communication system based on wireless sensors
US20180220384A1 (en) * 2017-01-31 2018-08-02 Dialog Semiconductor B.V. System and Method for Clock Synchonisation on a Wireless Network
CN109946686A (en) * 2017-12-21 2019-06-28 深圳Tcl新技术有限公司 A kind of indoor orientation method based on WIFI ranging, device and storage medium
CN110267334A (en) * 2019-06-19 2019-09-20 拉扎斯网络科技(上海)有限公司 Control method, control device, readable storage medium storing program for executing and wireless beacon device

Also Published As

Publication number Publication date
CN110784831B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
KR101967169B1 (en) Synchronization method and apparatus in device to device network
US7573865B2 (en) Method of synchronizing a wireless device using an external clock
US9204465B2 (en) Wireless communication system and wireless communication device
US10812958B2 (en) Bluetooth low energy (BLE) device transmitting BLE advertising data, and method of transmitting BLE advertising data
CN108781430B (en) Paging method based on unlicensed spectrum and related equipment
US20230022791A1 (en) Detecting Device Interfering with Security Device
US20180110000A1 (en) Wake-up receiver scheduling
US9414343B2 (en) Method and apparatus for synchronization for device-to-device communication in unlicensed frequency bands
CN104718793A (en) Power preference indicator timer
EP3113374B1 (en) Reduction of the time to start up a second communication unit
US12004100B2 (en) Synchronization method and apparatus, network element, and computer storage medium
US11290971B2 (en) Signal detection method and apparatus, signal sending method and apparatus, remote user device, and storage medium
CN110784831B (en) Control method, control device, electronic apparatus, and storage medium
JP6137646B2 (en) Method and associated devices and systems for detecting uplink signals
US20120218938A1 (en) Wireless communication apparatus and method
EP1113586A2 (en) Path timing detection method in mobile communications system and base station
EP3312997B1 (en) Fire alarm and fire alarm system
EP2866461A2 (en) Signal collecting apparatus, periodic signal transmitting apparatus and signal collecting system
CN107750062B (en) Transmitting a synchronization frame transmission request signal
US10602450B2 (en) Wireless communication apparatus and wireless communication method
KR102252528B1 (en) Radio timing information retention technique and device for Fast resynchronization in TSCH environment
KR101208039B1 (en) Method for handling time duplication in Low Power Listening
US9276763B2 (en) Intermittently operable communication apparatus with different carrier sense levels switched between transmission and reception and method therefor
US20220417850A1 (en) Keeping a Time Reference
JP6396539B2 (en) Wireless communication system and method, and wireless communication apparatus

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