CN110891298A - Bluetooth connection method, device, Bluetooth equipment and system - Google Patents

Bluetooth connection method, device, Bluetooth equipment and system Download PDF

Info

Publication number
CN110891298A
CN110891298A CN201911310285.8A CN201911310285A CN110891298A CN 110891298 A CN110891298 A CN 110891298A CN 201911310285 A CN201911310285 A CN 201911310285A CN 110891298 A CN110891298 A CN 110891298A
Authority
CN
China
Prior art keywords
address information
bluetooth
terminal
interval
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911310285.8A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou Tuobang Electric Technology Co Ltd
Huizhou Topband Electronic Technology Co Ltd
Original Assignee
Huizhou Tuobang Electric 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 Huizhou Tuobang Electric Technology Co Ltd filed Critical Huizhou Tuobang Electric Technology Co Ltd
Priority to CN201911310285.8A priority Critical patent/CN110891298A/en
Publication of CN110891298A publication Critical patent/CN110891298A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention is suitable for the technical field of Bluetooth communication, and provides a Bluetooth connection method, a device, Bluetooth equipment and a system, wherein the method comprises the following steps: broadcasting through a first preset broadcasting interval; receiving a scanning request sent by a terminal, wherein the scanning request carries terminal address information; judging whether the terminal address information is consistent with prestored address information; and if so, adjusting the first preset broadcast interval to be a second preset broadcast interval, and broadcasting, wherein the second preset broadcast interval is lower than the first preset broadcast interval. According to the method, the terminal address information is acquired when the scanning request of the terminal is received, and the broadcasting interval is reduced when the terminal address information is consistent with the prestored address information, so that the terminal can be connected with the Bluetooth quickly, and meanwhile, because the low-interval broadcasting is only continuous when connection is initiated, but not always in the low-interval broadcasting, the consideration between the Bluetooth power consumption and the convenience is realized.

Description

Bluetooth connection method, device, Bluetooth equipment and system
Technical Field
The invention belongs to the technical field of Bluetooth communication, and particularly relates to a Bluetooth connection method, a Bluetooth connection device, Bluetooth equipment and a Bluetooth connection system.
Background
Bluetooth communication is one of wireless communication technologies, and is applied to short-distance communication scenes. With the continuous maturity of bluetooth communication technology and the extremely high convenience of bluetooth communication technology, more and more electronic products popularize bluetooth communication technology, and bluetooth lock is one of them.
Wherein, bluetooth lock generally cooperates and removes end (like the cell-phone) and unblock, specifically is: when the bluetooth lock is connected through the bluetooth to the removal end, the bluetooth lock can be distinguished through with high in the clouds communication and whether the removal end is the user of authorizing, only authorizes the user and just can keep connecting and unblank, otherwise the bluetooth lock can break off and remove the bluetooth between the end and be connected, can not unblank.
However, because of a lot of brands and models of mobile terminals, the problem that some types of bluetooth cannot be connected for a long time is caused when the bluetooth is connected, and if the problem is improved by adopting a method of waking up the system by touching a key to rebroadcast like many existing bluetooth locks, the convenience of the bluetooth is lost; if this problem is ameliorated by reducing the broadcast interval, power consumption increases and battery life is severely impacted for a battery-powered bluetooth lock.
Disclosure of Invention
The embodiment of the invention provides a Bluetooth connection method, aiming at solving the technical problem that the Bluetooth power consumption and the convenience cannot be considered at the same time in the prior art.
The embodiment of the invention is realized in such a way that a Bluetooth connection method comprises the following steps:
broadcasting through a first preset broadcasting interval;
receiving a scanning request sent by a terminal, wherein the scanning request carries terminal address information;
judging whether the terminal address information is consistent with prestored address information;
and if so, adjusting the first preset broadcast interval to be a second preset broadcast interval, and broadcasting, wherein the second preset broadcast interval is lower than the first preset broadcast interval.
The embodiment of the invention also provides a Bluetooth connecting device, which comprises:
the broadcasting module is used for broadcasting through a first preset broadcasting interval;
the request receiving module is used for receiving a scanning request sent by a terminal, wherein the scanning request carries terminal address information;
the address judging module is used for judging whether the terminal address information is consistent with the prestored address information;
and the interval adjusting module is used for adjusting the first preset broadcast interval to a second preset broadcast interval and broadcasting when the terminal address information is judged to be consistent with the pre-stored address information, wherein the second preset broadcast interval is lower than the first preset broadcast interval.
The embodiment of the invention also provides a bluetooth device, which comprises a processor, a memory and a computer program which is stored on the memory and can be run on the processor, wherein when the processor runs the computer program, the bluetooth device executes the bluetooth connection method.
An embodiment of the present invention further provides a bluetooth connection system, where the system includes:
the above-mentioned bluetooth device;
a terminal having a requirement for establishing a bluetooth connection to the bluetooth device; and
and managing the Bluetooth equipment and the cloud server of the terminal.
The invention achieves the following beneficial effects: through obtaining terminal address information when receiving the scanning request of terminal, and when terminal address information is unanimous with the address information that prestores, reduce the broadcast interval, so that this terminal can link up the bluetooth fast, both can improve the problem that the bluetooth of part model is not last for a long time connection like this, and still guaranteed the convenience of bluetooth, simultaneously because the broadcast of low interval only lasts when initiating the connection, and not all be in the low-interval broadcast always, the low-power consumption of bluetooth has been guaranteed, thereby compromise between bluetooth consumption and the convenience has been realized.
Drawings
Fig. 1 is a block diagram of a bluetooth connection system in an embodiment of the present invention;
FIG. 2 is a flowchart of a Bluetooth connection method according to a first embodiment of the present invention;
FIG. 3 is a diagram illustrating a Bluetooth connection process;
FIG. 4 is an explanatory diagram of a scan request packet format;
FIG. 5 is a flowchart of a Bluetooth connection method according to a second embodiment of the present invention;
fig. 6 is a block diagram of a bluetooth connection apparatus according to a third embodiment of the present invention;
fig. 7 is a block diagram of a bluetooth device according to a fourth embodiment of the present invention;
fig. 8 is a block diagram of a bluetooth lock in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The existing Bluetooth locks with partial models can not be connected for a long time, and if the problem is improved by adopting a method of waking up a system by touching keys and then broadcasting like many existing Bluetooth locks, the convenience of the Bluetooth is lost; if such a problem is improved by reducing the broadcasting interval, power consumption may be increased. Therefore, an object of the present invention is to provide a bluetooth connection method, apparatus, bluetooth device and system, which achieve a compromise between bluetooth power consumption and convenience by obtaining terminal address information when a terminal scan request is received and reducing a broadcast interval when the terminal address information is consistent with pre-stored address information.
The following embodiments can be applied to the bluetooth connection system shown in fig. 1, where the system shown in fig. 1 includes a bluetooth device 10, a terminal 20 communicatively connected to the bluetooth device 10, and a cloud server 30 communicatively connected to the terminal 20, the bluetooth device 10 communicates with the terminal 20 by bluetooth, the bluetooth device 10 at least has a bluetooth module for sending and receiving bluetooth signals, the terminal 20 communicates with the cloud server 30 by mobile, the bluetooth device 10 can indirectly communicate with the cloud server 30 by using the terminal 20 as an intermediary, the cloud server 30 is used for managing the bluetooth device 10 and the terminal 20, for example, the cloud server 30 can be used for managing the device address, unlock password, authorized user information, etc. of the terminal, the terminal 20 can log into the cloud server 30 by APP, public number and/or applet to establish a communication connection with the cloud server 30, the terminal 20 may also manage the bluetooth device 10 through APP, public numbers and/or applets.
It should be noted that the configuration shown in fig. 1 is not intended to limit the bluetooth connection system, and in other embodiments, the bluetooth connection system may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components may be used.
Example one
Referring to fig. 2, a bluetooth connection method according to a first embodiment of the present invention is shown, which is applied to a bluetooth device, where the bluetooth device can be implemented by software and/or hardware, and the method includes specific steps S01-S04.
In step S01, broadcasting is performed through a first preset broadcasting interval.
It should be noted that bluetooth is a communication protocol based on data packets and having a master-slave architecture, and bluetooth generally sends a broadcast packet at a preset time interval so that peripheral devices can search for and connect to the bluetooth. The broadcast interval is the interval for transmitting the broadcast packet by the bluetooth, and the shorter the broadcast packet transmission interval time is, the more frequent the broadcast packet transmission is represented, and the lower the broadcast interval is.
Specifically, the first preset broadcast interval may be a maximum broadcast interval during which bluetooth is satisfied with operation, for example, bluetooth may transmit broadcast packets at an interval of 1 second, so that it may be ensured that bluetooth is in a low power consumption state during a time other than bluetooth broadcast. Taking the Nordic nRF52810 bluetooth chip as an example, if broadcast packets are sent at 1 second intervals, when the broadcast packet data is 3 bytes and the transmission power is 0dBm, the power consumption of the broadcast is only 15 uA.
Step S02, receiving a scanning request sent by the terminal, where the scanning request carries terminal address information.
It should be noted that, according to the bluetooth standard, in the bluetooth connection process, when the terminal monitors the "broadcast packet" of the bluetooth device, the terminal sends the "scan request packet", and after receiving the "scan request packet", the bluetooth device replies a "scan response packet", and the whole process is as shown in fig. 3. The scan request packet includes the address of the bluetooth device of the scanner, i.e., the terminal, as shown in fig. 4. Based on this, the terminal address information can be directly extracted from the scan request transmitted from the terminal.
And step S03, judging whether the terminal address information is consistent with the pre-stored address information.
When the terminal address information is judged to be consistent with the pre-stored address information, executing step S04; and when the terminal address information is judged to be inconsistent with the pre-stored address information, not acting and continuing to broadcast at a first preset broadcast interval.
Specifically, the pre-stored address information is address information recorded on the bluetooth device, and is generally terminal address information of an authorized user, and the pre-stored address information may be recorded in the bluetooth device in a manner that the authorized user registers by himself, or the bluetooth device may record the terminal address information by himself after the bluetooth device is successfully connected to the terminal for the first time, or the bluetooth device may authenticate the address information of the terminal through the cloud terminal after the bluetooth device is successfully connected to the terminal for the first time, and record the terminal address information by himself after the bluetooth device is successfully authenticated.
Step S04, adjusting the first preset broadcast interval to a second preset broadcast interval, and performing broadcasting, where the second preset broadcast interval is lower than the first preset broadcast interval.
It should be noted that, after the address matching is successful, the terminal currently sending the scanning request is characterized as an authorized user terminal, and in order to accelerate the subsequent bluetooth connection speed, the broadcast interval is reduced from the first preset broadcast interval to the second preset broadcast interval, so that the broadcast packet is sent more frequently. The second preset broadcast interval may be any interval value smaller than the first preset broadcast interval, for example, the second preset broadcast interval may be a broadcast interval obtained by multiplying the preset first broadcast interval by a preset ratio (e.g., 60%).
To sum up, the bluetooth connection method in this embodiment, through obtaining the terminal address information when receiving the scanning request of the terminal, and when the terminal address information is consistent with the address information that prestores, reduce the broadcast interval, so that the terminal can connect the bluetooth fast, both can improve the problem that the bluetooth of some models can not be connected for a long time like this, and still guaranteed the convenience of bluetooth, because the broadcast of low interval only lasts when initiating the connection, and not all be in the broadcast of low interval all the time, the low-power consumption of bluetooth has been guaranteed, thereby has realized giving consideration to between bluetooth power consumption and the convenience.
Example two
Referring to fig. 5, a bluetooth connection method according to a second embodiment of the present invention is shown, which is applied to a bluetooth device, where the bluetooth device can be implemented by software and/or hardware, and the method specifically includes steps S11 to S17.
In step S11, broadcasting is performed through a first preset broadcasting interval.
Step S12, receiving a scanning request sent by the terminal, where the scanning request carries terminal address information.
And step S13, judging whether the terminal address information is consistent with the pre-stored address information.
When the terminal address information is judged to be consistent with the pre-stored address information, executing step S14; and when the terminal address information is judged to be inconsistent with the pre-stored address information, not acting and continuing to broadcast at a first preset broadcast interval.
Step S14, adjusting the first preset broadcast interval to a second preset broadcast interval, and performing broadcasting, where the second preset broadcast interval is lower than the first preset broadcast interval.
And step S15, detecting whether the connection between the Bluetooth device and the terminal is successful within the preset time.
When it is detected that the bluetooth device and the terminal are not successfully connected within the preset time, step S16 is executed, and when it is detected that the bluetooth device and the terminal are successfully connected within the preset time, a preset action after the connection is successfully performed may be executed, for example, when the bluetooth device is a bluetooth lock, if the terminal is successfully connected with the bluetooth lock within the preset time, the bluetooth lock may execute an unlocking action.
Step S16, adjusting the second broadcast interval to the first preset broadcast interval, and performing broadcasting.
It should be noted that, when the bluetooth device and the terminal are not successfully connected within the preset time (e.g. 5s), in order to ensure low power consumption of the bluetooth, the broadcast interval of the bluetooth is reset to the first preset broadcast interval, so that the bluetooth operates in the low power consumption state.
In some optional embodiments of the present invention, when it is detected that the bluetooth device and the terminal are not successfully connected within the preset time, the following steps may be further performed:
and adjusting the second broadcast interval to a third preset broadcast interval, and broadcasting, wherein the third preset broadcast interval is lower than the second preset broadcast interval, namely when the connection is not successful after overtime, the broadcast interval is continuously reduced, so that the connection between the Bluetooth equipment and the terminal is successful as soon as possible. In specific implementation, the broadcast interval may be reduced according to a preset adjustment ratio, for example, when the connection is not successful for the first timeout, the broadcast interval is reduced by 5% and broadcasting is continued, and if the connection is not successful for the second timeout, the broadcast interval is reduced by 5% and broadcasting is continued until the adjustment times reach the set times or the broadcast interval reaches a preset minimum broadcast interval.
In summary, compared with the first embodiment, after the broadcast interval is decreased to the second broadcast interval, the present embodiment monitors whether the connection between the bluetooth device and the terminal is successful within the preset time, and if the connection is not successful, the broadcast interval is adjusted back to the first broadcast interval, so that the bluetooth is in the low power consumption state.
Further, the method may further include:
sending an authentication request to a cloud end, wherein the authentication request carries terminal address information;
when the authentication is successful, the terminal address information is stored;
and when the authentication fails, disconnecting the connection, adjusting the second broadcast interval to the first preset broadcast interval, and broadcasting.
Specifically, in implementation, after the bluetooth device is connected to the terminal, the bluetooth device sends an authentication request including terminal address information to the cloud, the cloud determines whether the terminal is an authorized user according to the terminal address information, if the terminal is determined as an authorized user, the authentication is successful, the bluetooth device stores the terminal address information by itself and keeps bluetooth connection, so that the bluetooth device can be successfully connected to the terminal subsequently, if the terminal is determined as an unauthorized user, the authentication is failed, the bluetooth device is disconnected, and the broadcast interval is adjusted back to the first broadcast interval, so that the bluetooth device is ensured to be in low power consumption.
Further, the pre-stored address information includes fixed address information and variable address information, and the method may further include:
when the terminal address information is inconsistent with the pre-stored address information, judging whether the storage amount of the pre-stored address information exceeds a preset amount;
and if so, replacing the terminal address information with the variable address information.
The terminal address information and the pre-stored address information can be judged whether to be consistent when the terminal address information is stored.
The fixed address information may be address information of a fixed user, for example, a terminal address of an administrator, the variable address information may be changeable address information, for example, a terminal address of a temporary user, when the storage amount of the address information of the bluetooth device is excessive, the variable address information may be replaced with the current terminal address information to store the current terminal address information, and the variable address information selected for replacement may be variable address information that is used less frequently or used earliest. In specific implementation, the address information recorded by the bluetooth device can be stored in the list, and the address information can be arranged according to the sequence of the use times from high to low or the use sequence, so that the speed of subsequently replacing the variable address information can be increased, and the response speed is increased.
EXAMPLE III
In another aspect, the present invention further provides a bluetooth connection apparatus, please refer to fig. 6, which shows a bluetooth connection apparatus according to a third embodiment of the present invention, and the bluetooth connection apparatus is applied in a bluetooth device, where the bluetooth device can be implemented by software and/or hardware, and the apparatus includes:
a broadcasting module 11, configured to broadcast through a first preset broadcasting interval;
a request receiving module 12, configured to receive a scanning request sent by a terminal, where the scanning request carries terminal address information;
an address judging module 13, configured to judge whether the terminal address information is consistent with pre-stored address information;
and an interval adjusting module 14, configured to adjust the first preset broadcast interval to a second preset broadcast interval when it is determined that the terminal address information is consistent with the pre-stored address information, and perform broadcasting, where the second preset broadcast interval is lower than the first preset broadcast interval. And in addition, when the terminal address information is judged to be inconsistent with the prestored address information, the terminal does not act and continues to broadcast at a first preset broadcast interval.
It should be noted that bluetooth is a communication protocol based on data packets and having a master-slave architecture, and bluetooth generally sends a broadcast packet at a preset time interval so that peripheral devices can search for and connect to the bluetooth. The broadcast interval is the interval for transmitting the broadcast packet by the bluetooth, and the shorter the broadcast packet transmission interval time is, the more frequent the broadcast packet transmission is represented, and the lower the broadcast interval is.
Specifically, the first preset broadcast interval may be a maximum broadcast interval during which bluetooth is satisfactory to operate, for example, bluetooth may send broadcast packets at intervals of 1 second, so that it may be ensured that bluetooth is in a low power consumption state in a time other than bluetooth broadcast, and taking a Nordic nRF52810 bluetooth chip as an example, if broadcast packets are sent at intervals of 1 second, when broadcast packet data is 3 bytes and transmission power is 0dBm, power consumption of broadcast is only 15 uA.
It should be noted that, according to the bluetooth standard, in the bluetooth connection process, when the terminal monitors the "broadcast packet" of the bluetooth device, the terminal sends the "scan request packet", and after receiving the "scan request packet", the bluetooth device replies a "scan response packet", and the whole process is as shown in fig. 3. The scan request packet includes the address of the bluetooth device of the scanner, i.e., the terminal, as shown in fig. 4. Based on this, the terminal address information can be directly extracted from the scan request transmitted from the terminal.
Specifically, the pre-stored address information is address information recorded on the bluetooth device, and is generally terminal address information of an authorized user, and the pre-stored address information may be recorded in the bluetooth device in a manner that the authorized user registers by himself, or the bluetooth device may record the terminal address information by himself after the bluetooth device is successfully connected to the terminal for the first time, or the bluetooth device may authenticate the address information of the terminal through the cloud terminal after the bluetooth device is successfully connected to the terminal for the first time, and record the terminal address information by himself after the bluetooth device is successfully authenticated.
It should be noted that, after the address matching is successful, the terminal currently sending the scanning request is characterized as an authorized user terminal, and in order to accelerate the subsequent bluetooth connection speed, the broadcast interval is reduced from the first preset broadcast interval to the second preset broadcast interval, so that the broadcast packet is sent more frequently. The second preset broadcast interval may be any interval value within the rated broadcast interval of bluetooth, which is smaller than the first preset broadcast interval, for example, the second preset broadcast interval may be the rated broadcast interval of bluetooth or a broadcast interval obtained by multiplying the rated broadcast interval by a preset ratio (e.g., 60%).
To sum up, bluetooth connecting device in the middle of this embodiment, through acquireing terminal address information when the scanning request of receiving the terminal, and when terminal address information is unanimous with the address information that prestores, reduce the broadcast interval, so that this terminal can link up the bluetooth fast, the problem that the bluetooth long-time connection of part model can not be gone up both so, and still guaranteed the convenience of bluetooth, simultaneously because the broadcast of low-interval only lasts when initiating the connection, and not all be in the low-interval broadcast always, bluetooth power consumption has been guaranteed, thereby compromise between bluetooth power consumption and the convenience has been realized.
Further, in some optional embodiments of the invention, the apparatus further comprises:
the first state detection module is used for detecting whether the connection between the Bluetooth device and the terminal is successful within preset time;
when detecting that the bluetooth device and the terminal are not successfully connected within the preset time, the interval adjusting module 14 adjusts the second broadcast interval to the first preset broadcast interval, and performs broadcasting.
Further, in some optional embodiments of the invention, the apparatus further comprises:
the authentication request module is used for sending an authentication request to the cloud, wherein the authentication request carries address information of the terminal equipment;
the address storage module is used for storing the address information of the terminal equipment after the authentication is successful;
when the authentication fails, the interval adjusting module 14 disconnects, adjusts the second broadcast interval to the first preset broadcast interval, and broadcasts the second broadcast interval.
Further, in some optional embodiments of the invention, the apparatus further comprises:
the second state detection module is used for detecting whether the connection between the Bluetooth device and the terminal is successful within the preset time;
when detecting that the bluetooth device and the terminal are not successfully connected within the preset time, the interval adjustment module 14 adjusts the second broadcast interval to a third preset broadcast interval, and broadcasts the third preset broadcast interval, where the third preset broadcast interval is lower than the second preset broadcast interval.
Further, in some optional embodiments of the present invention, the pre-stored address information includes fixed address information and variable address information, and the apparatus further includes:
the quantity judging module is used for judging whether the storage quantity of the pre-stored address information exceeds a preset quantity or not when the terminal address information is inconsistent with the pre-stored address information;
and the address replacement module is used for replacing the terminal address information and the variable address information when judging that the storage amount of the pre-stored address information exceeds the preset amount.
The functions or operation steps of the modules and units when executed are substantially the same as those of the method embodiments, and are not described herein again.
Example four
Referring to fig. 7, a bluetooth device according to a fourth embodiment of the present invention is provided, which includes a processor 10, a memory 20, and a computer program 30 stored in the memory and executable on the processor, and when the processor 10 executes the computer program 30, the bluetooth device executes the bluetooth connection method.
The bluetooth device may be an electronic device with bluetooth function, such as a bluetooth lock and a bluetooth sound box, and the processor 10 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is configured to run program codes stored in the memory 20 or process data.
The memory 20 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 20 may in some embodiments be an internal storage unit of the bluetooth device, for example a hard disk of the bluetooth device. The memory 20 may also be an external storage device of the bluetooth device in other embodiments, such as a plug-in hard disk provided on the bluetooth device, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), and the like. Further, the memory 20 may also include both an internal storage unit of the bluetooth device and an external storage device. The memory 20 may be used not only to store application software installed in the bluetooth device and various kinds of data, but also to temporarily store data that has been output or will be output.
Optionally, the bluetooth device may further include a user interface, a network interface, a communication bus, etc., the user interface may include a Display (Display), an input unit such as a remote controller, physical keys, etc., and the optional user interface may further include a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the bluetooth device and for displaying a visual user interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), typically used to establish a communication link between the bluetooth device and other electronic devices. The communication bus is used to enable connection communication between these components.
It should be noted that the configuration shown in fig. 7 does not constitute a limitation of the bluetooth device, and in other embodiments the bluetooth device may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components. For example, referring to fig. 8, when the bluetooth device is a bluetooth lock, the bluetooth device may further include a card reading circuit, a key, a power circuit, a fingerprint module, a bluetooth SoC, an NB-loT module, and other components.
To sum up, bluetooth equipment among this embodiment, through acquireing terminal address information when the scanning request of receiving the terminal, and when terminal address information is unanimous with the address information that prestores, reduce the broadcast interval, so that this terminal can link up the bluetooth fast, both can improve the problem that the bluetooth of part model is not last for a long time, and still guaranteed the convenience of bluetooth, simultaneously because the broadcast of low interval only lasts when initiating the connection, and not all be in the low interval broadcast always, the low-power consumption of bluetooth has been guaranteed, thereby the compromise between bluetooth consumption and the convenience has been realized.
The present embodiment also provides a storage medium on which is stored a computer program 30 for use in the above-described bluetooth device, which when executed by a processor implements the above-described bluetooth connection method.
The storage medium may be, but is not limited to, FLASH/ROM/RAM, a magnetic disk, an optical disk, etc.
An embodiment of the present invention further provides a bluetooth connection system, where the system includes:
the bluetooth device of any of the above embodiments;
a terminal having a requirement for establishing a bluetooth connection to the bluetooth device; and
and managing the Bluetooth equipment and the cloud server of the terminal.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A bluetooth connection method, characterized in that the method comprises the steps of:
broadcasting through a first preset broadcasting interval;
receiving a scanning request sent by a terminal, wherein the scanning request carries terminal address information;
judging whether the terminal address information is consistent with prestored address information;
and if so, adjusting the first preset broadcast interval to be a second preset broadcast interval, and broadcasting, wherein the second preset broadcast interval is lower than the first preset broadcast interval.
2. The bluetooth connection method of claim 1, wherein the method further comprises:
detecting whether the connection between the Bluetooth device and the terminal is successful within preset time;
if not, adjusting the second broadcast interval to the first preset broadcast interval, and broadcasting.
3. The bluetooth connection method of claim 1, wherein the method further comprises:
sending an authentication request to a cloud end, wherein the authentication request carries terminal address information;
when the authentication is successful, the terminal address information is stored;
and when the authentication fails, disconnecting the connection, adjusting the second broadcast interval to the first preset broadcast interval, and broadcasting.
4. The bluetooth connection method of claim 1, wherein the method further comprises:
detecting whether the connection between the Bluetooth device and the terminal is successful within preset time;
and if not, adjusting the second broadcast interval to a third preset broadcast interval, and broadcasting, wherein the third preset broadcast interval is lower than the second preset broadcast interval.
5. The bluetooth connection method of claim 1, wherein the pre-stored address information includes fixed address information and variable address information, the method further comprising:
when the terminal address information is inconsistent with the pre-stored address information, judging whether the storage amount of the pre-stored address information exceeds a preset amount;
and if so, replacing the terminal address information with the variable address information.
6. An apparatus for bluetooth connection, the apparatus comprising:
the broadcasting module is used for broadcasting through a first preset broadcasting interval;
the request receiving module is used for receiving a scanning request sent by a terminal, wherein the scanning request carries terminal address information;
the address judging module is used for judging whether the terminal address information is consistent with the prestored address information;
and the interval adjusting module is used for adjusting the first preset broadcast interval to a second preset broadcast interval and broadcasting when the terminal address information is judged to be consistent with the pre-stored address information, wherein the second preset broadcast interval is lower than the first preset broadcast interval.
7. A bluetooth device comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the bluetooth device executes the bluetooth connection method according to any one of claims 1 to 5 when the processor executes the computer program.
8. The bluetooth device of claim 7, wherein the bluetooth device is a bluetooth lock.
9. A storage medium, having stored thereon a computer program which, when executed by a processor, implements the bluetooth connection method of any one of claims 1 to 5.
10. A bluetooth connection system, characterized in that the system comprises:
the bluetooth device of any one of claims 7-8;
a terminal having a requirement for establishing a bluetooth connection to the bluetooth device; and
and managing the Bluetooth equipment and the cloud server of the terminal.
CN201911310285.8A 2019-12-18 2019-12-18 Bluetooth connection method, device, Bluetooth equipment and system Pending CN110891298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911310285.8A CN110891298A (en) 2019-12-18 2019-12-18 Bluetooth connection method, device, Bluetooth equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911310285.8A CN110891298A (en) 2019-12-18 2019-12-18 Bluetooth connection method, device, Bluetooth equipment and system

Publications (1)

Publication Number Publication Date
CN110891298A true CN110891298A (en) 2020-03-17

Family

ID=69752420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911310285.8A Pending CN110891298A (en) 2019-12-18 2019-12-18 Bluetooth connection method, device, Bluetooth equipment and system

Country Status (1)

Country Link
CN (1) CN110891298A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111818193A (en) * 2020-06-29 2020-10-23 上海橙群微电子有限公司 Asset management method and system, network device and readable storage medium
CN111935693A (en) * 2020-08-26 2020-11-13 支付宝(杭州)信息技术有限公司 Bluetooth device connection method and Bluetooth device
CN112233348A (en) * 2020-11-18 2021-01-15 盐城鸿石智能科技有限公司 Portable face-brushing payment equipment and use method thereof
WO2022042637A1 (en) * 2020-08-31 2022-03-03 华为技术有限公司 Bluetooth-based data transmission method and related apparatus
CN114363871A (en) * 2021-05-14 2022-04-15 华为技术有限公司 Wireless connection method and electronic equipment
CN115278551A (en) * 2022-06-14 2022-11-01 广东逸动科技有限公司 Control method, remote control terminal, intelligent terminal, communication system and storage medium
CN115499815A (en) * 2022-09-15 2022-12-20 中山亿联智能科技有限公司 Intelligent quick connection method of low-power-consumption Bluetooth equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809729A (en) * 2014-01-26 2014-05-21 上海佩奇网络科技有限公司 Electricity saving achieving method for wearable equipment
CN104378838A (en) * 2014-11-11 2015-02-25 广东欧珀移动通信有限公司 Method and device for building wireless connection
CN104812094A (en) * 2015-04-21 2015-07-29 广东欧珀移动通信有限公司 Method and apparatus for establishing connection between devices
CN106127892A (en) * 2016-06-17 2016-11-16 广东工业大学 A kind of Household gate control method based on Bluetooth communication
CN106131802A (en) * 2016-07-05 2016-11-16 北京小米移动软件有限公司 Data broadcasting method, data broadcaster and electronic equipment
CN107979838A (en) * 2017-11-27 2018-05-01 新华三技术有限公司 A kind of radio switch-in method, device, access point apparatus and storage medium
CN108601009A (en) * 2018-05-07 2018-09-28 北京百瑞互联技术有限公司 A kind of one-to-many, reducing power consumption, quick wireless device connection method and system
CN108769971A (en) * 2018-07-03 2018-11-06 森美嘉(深圳)医疗健康科技发展有限公司 A kind of bluetooth equipment control method and bluetooth equipment
CN109788461A (en) * 2017-11-15 2019-05-21 深圳市优必选科技有限公司 Bluetooth dual mode data communication means and device
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connecting method, device, readable storage medium storing program for executing and mobile device
US20190246257A1 (en) * 2018-02-08 2019-08-08 Canon Kabushiki Kaisha Communication terminal and method thereof
CN209471357U (en) * 2019-03-20 2019-10-08 惠州拓邦电气技术有限公司 A kind of electronic door control module for supporting wirelessly to debug and debugging system
CN110401913A (en) * 2019-07-18 2019-11-01 上海华虹集成电路有限责任公司 A kind of indoor orientation method based on low-power consumption bluetooth

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103809729A (en) * 2014-01-26 2014-05-21 上海佩奇网络科技有限公司 Electricity saving achieving method for wearable equipment
CN104378838A (en) * 2014-11-11 2015-02-25 广东欧珀移动通信有限公司 Method and device for building wireless connection
CN104812094A (en) * 2015-04-21 2015-07-29 广东欧珀移动通信有限公司 Method and apparatus for establishing connection between devices
CN106127892A (en) * 2016-06-17 2016-11-16 广东工业大学 A kind of Household gate control method based on Bluetooth communication
CN106131802A (en) * 2016-07-05 2016-11-16 北京小米移动软件有限公司 Data broadcasting method, data broadcaster and electronic equipment
CN109788461A (en) * 2017-11-15 2019-05-21 深圳市优必选科技有限公司 Bluetooth dual mode data communication means and device
CN107979838A (en) * 2017-11-27 2018-05-01 新华三技术有限公司 A kind of radio switch-in method, device, access point apparatus and storage medium
US20190246257A1 (en) * 2018-02-08 2019-08-08 Canon Kabushiki Kaisha Communication terminal and method thereof
CN108601009A (en) * 2018-05-07 2018-09-28 北京百瑞互联技术有限公司 A kind of one-to-many, reducing power consumption, quick wireless device connection method and system
CN108769971A (en) * 2018-07-03 2018-11-06 森美嘉(深圳)医疗健康科技发展有限公司 A kind of bluetooth equipment control method and bluetooth equipment
CN209471357U (en) * 2019-03-20 2019-10-08 惠州拓邦电气技术有限公司 A kind of electronic door control module for supporting wirelessly to debug and debugging system
CN109862549A (en) * 2019-03-28 2019-06-07 南昌黑鲨科技有限公司 Bluetooth connecting method, device, readable storage medium storing program for executing and mobile device
CN110401913A (en) * 2019-07-18 2019-11-01 上海华虹集成电路有限责任公司 A kind of indoor orientation method based on low-power consumption bluetooth

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111818193A (en) * 2020-06-29 2020-10-23 上海橙群微电子有限公司 Asset management method and system, network device and readable storage medium
CN111818193B (en) * 2020-06-29 2023-02-03 上海橙群微电子有限公司 Asset management method and system, network device and readable storage medium
CN111935693A (en) * 2020-08-26 2020-11-13 支付宝(杭州)信息技术有限公司 Bluetooth device connection method and Bluetooth device
CN111935693B (en) * 2020-08-26 2022-05-06 支付宝(杭州)信息技术有限公司 Bluetooth device connection method and Bluetooth device
WO2022042637A1 (en) * 2020-08-31 2022-03-03 华为技术有限公司 Bluetooth-based data transmission method and related apparatus
CN112233348A (en) * 2020-11-18 2021-01-15 盐城鸿石智能科技有限公司 Portable face-brushing payment equipment and use method thereof
CN114363871A (en) * 2021-05-14 2022-04-15 华为技术有限公司 Wireless connection method and electronic equipment
WO2022237493A1 (en) * 2021-05-14 2022-11-17 华为技术有限公司 Wireless connection method and electronic device
CN114363871B (en) * 2021-05-14 2023-03-03 华为技术有限公司 Wireless connection method and electronic equipment
CN115278551A (en) * 2022-06-14 2022-11-01 广东逸动科技有限公司 Control method, remote control terminal, intelligent terminal, communication system and storage medium
CN115278551B (en) * 2022-06-14 2023-10-13 广东逸动科技有限公司 Control method, remote control end, intelligent terminal, communication system and storage medium
CN115499815A (en) * 2022-09-15 2022-12-20 中山亿联智能科技有限公司 Intelligent quick connection method of low-power-consumption Bluetooth equipment

Similar Documents

Publication Publication Date Title
CN110891298A (en) Bluetooth connection method, device, Bluetooth equipment and system
CN105138254B (en) Electronic equipment close to unlock and lock operation
US11651094B2 (en) Communication control device, data security system, communication control method, and computer product
CN112242980B (en) Screen projection method and device
US8954593B2 (en) Method and device for implementing remote control of a terminal
CN106776124B (en) Data backup method and device
CN107154935B (en) Service request method and device
CN113066202A (en) Vehicle unlocking method and device
CN107423099B (en) Key code programming method, server, terminal, key code programming system and storage medium
CN106664652B (en) Method and terminal for awakening wireless fidelity network
EP2611226A1 (en) Processing method and system for over-the-air bootstrap
CN110167192B (en) Bluetooth connection management method and device, electronic equipment and non-transient storage medium
CN107396283A (en) A kind of router wireless connection authentication method and system
CN106487798B (en) Data synchronization method and device
US10764038B2 (en) Method and apparatus for generating terminal key
WO2022108698A1 (en) Recovery techniques for subscriber identification module detection error
CN103152724A (en) Method and system for locking SIM (subscriber identity module) card by utilizing hardware
CN111817878A (en) Networking method and device of intelligent equipment and cloud server
CN110944313A (en) Bluetooth connection method, device, storage medium and terminal
CN115544464A (en) Firmware burning method, device and system for micro-control chip and storage medium
CN114531741A (en) Method, device, equipment and storage medium for connecting external equipment and terminal
CN110166576B (en) Method and system for realizing message complementary pushing of cloud sound box
CN113923005A (en) Method and system for writing data
CN106909390B (en) NCSI setting method and device realized based on BMC
CN105490810B (en) Method, device and system for processing virtual resource data

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

Application publication date: 20200317

RJ01 Rejection of invention patent application after publication