CN113329348A - Low-power-consumption Bluetooth accessory communication method, system, device and medium - Google Patents

Low-power-consumption Bluetooth accessory communication method, system, device and medium Download PDF

Info

Publication number
CN113329348A
CN113329348A CN202110673107.2A CN202110673107A CN113329348A CN 113329348 A CN113329348 A CN 113329348A CN 202110673107 A CN202110673107 A CN 202110673107A CN 113329348 A CN113329348 A CN 113329348A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth device
broadcast
communication method
white list
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
CN202110673107.2A
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.)
Chengdu Fit Future Technology Co Ltd
Original Assignee
Chengdu Fit Future 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 Chengdu Fit Future Technology Co Ltd filed Critical Chengdu Fit Future Technology Co Ltd
Priority to CN202110673107.2A priority Critical patent/CN113329348A/en
Publication of CN113329348A publication Critical patent/CN113329348A/en
Pending legal-status Critical Current

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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • 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
    • 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/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release

Abstract

The invention discloses a low-power-consumption Bluetooth accessory communication method, a system, a device and a medium, which relate to the field of communication.A second Bluetooth device sends a first Bluetooth broadcast signal through a broadcast device, the first Bluetooth device scans information through a scanning device, and the first Bluetooth device acquires the second Bluetooth device according to the first Bluetooth broadcast signal, is connected with the second Bluetooth device and establishes master-slave negotiation; after the master-slave negotiation is finished, the first Bluetooth device and the second Bluetooth device are disconnected, and the second Bluetooth device is added successfully; the second Bluetooth equipment sends Bluetooth broadcast through the broadcasting equipment, and the first Bluetooth equipment verifies the Bluetooth broadcast; the first bluetooth device receives the authenticated bluetooth broadcast. The invention can save the connection stage with higher time and power consumption cost consumption.

Description

Low-power-consumption Bluetooth accessory communication method, system, device and medium
Technical Field
The invention relates to the field of data transmission, in particular to a low-power-consumption Bluetooth accessory communication method, a system, a device and a medium.
Background
In the intelligent fitness equipment, the pull-out position of the pull rope is fixed by using the two support arms, so that a user can pull out the pull rope from different positions, and therefore strength training with different actions is performed. When adjusting the support arm position, thereby need press the button on the support arm, connect the electro-magnet through the bluetooth, thereby make the electro-magnet open safe removal support arm, installed the IMU sensor in the support arm, can acquire the support arm position to transmit for the host computer through the bluetooth. In addition, other accessories needing Bluetooth connection, such as a handle connected with a pull rope or a barbell bar connected with the pull rope, can realize the functions of switching the pull force and the like when a handle button is pressed through Bluetooth and machine communication.
Therefore, many accessories need to be connected with a host through Bluetooth to realize certain functions, and the accessories need to be powered by a battery, so that the Bluetooth accessories have to meet the requirements of multiple slaves and low power consumption.
Disclosure of Invention
The invention aims to reduce the power consumption of a second Bluetooth device and a first Bluetooth device, and provides a low-power-consumption Bluetooth accessory communication method, a system, a device and a medium.
To achieve the above object, the present invention provides a bluetooth accessory communication method with low power consumption,
the first Bluetooth device scans the first Bluetooth broadcast signal according to the first trigger signal and then establishes connection with a second Bluetooth device which sends the first Bluetooth broadcast signal;
after the first Bluetooth device and the second Bluetooth device carry out master-slave negotiation, the second Bluetooth device is added into a white list;
and the first Bluetooth device and the second Bluetooth device are disconnected after the master-slave negotiation is carried out on the first Bluetooth device and the second Bluetooth device.
The first bluetooth device scans based on the white list and/or receives an external bluetooth broadcast.
The method for adding the second Bluetooth device into the white list after the first Bluetooth device and the second Bluetooth device perform master-slave negotiation comprises the following steps:
the first Bluetooth device and the second Bluetooth device negotiate together to generate a group of character strings, and the character strings are added into a white list.
The character string includes a feature code of the first bluetooth device and a feature code of the second bluetooth device.
The method for the first Bluetooth device to scan based on the white list and/or receive the external Bluetooth broadcast comprises the following steps:
the first bluetooth device scans for, and/or receives, a bluetooth broadcast whose broadcast name includes the string.
And the second Bluetooth equipment sends the Bluetooth broadcast with the broadcast name including the character string according to a second trigger signal.
And the second Bluetooth equipment sends the first Bluetooth broadcast signal according to the third trigger signal.
First bluetooth broadcast signal bluetooth broadcast
Furthermore, after the first bluetooth device and the second bluetooth device are matched through master-slave negotiation, the first bluetooth device and the second bluetooth device are disconnected, the second bluetooth device enters a sleep mode, and the first bluetooth device and the second bluetooth device are successfully matched. In the use stage, when the second Bluetooth device is required to send information, the second Bluetooth device sends Bluetooth broadcast, and the first Bluetooth device receives the Bluetooth broadcast passing the verification. Meanwhile, the method uses broadcasting instead of connection, and can add a plurality of accessories without limitation.
First Bluetooth broadcast signal second Bluetooth broadcast signal Bluetooth broadcast second Bluetooth broadcast signal Bluetooth broadcast
Furthermore, first bluetooth equipment sets up in the organism of fitness equipment, and a plurality of second bluetooth equipment set up respectively in a plurality of accessories, and the accessory includes support arm, handle, barbell, stopper. The accessory is provided with a control button, and the control button is used for controlling the broadcasting equipment of the second Bluetooth equipment to send information. The control button is used for controlling the broadcast equipment of the second bluetooth equipment to send information, and specifically comprises:
when the control button is triggered, the second Bluetooth equipment sends information;
within a preset time t after the control button is stopped being triggered, the second Bluetooth device broadcasts and sends information; and after the preset time t for triggering the control button is stopped, the second Bluetooth equipment stops sending information. Wherein the preset time t is 0.5-1 s.
Corresponding to the method of the invention, the invention also provides a low-power consumption Bluetooth accessory communication system,
a first Bluetooth device configured to establish a connection with a second Bluetooth device that transmits a first Bluetooth broadcast signal after scanning the first Bluetooth broadcast signal according to a first trigger signal, and
adding the second Bluetooth device to the white list after performing a master-slave negotiation with the second Bluetooth device, an
Scanning based on a white list and/or receiving external Bluetooth broadcast;
and at least one second bluetooth device configured to transmit the first bluetooth broadcast signal, and/or transmit a bluetooth broadcast based on a white list. First Bluetooth broadcast signal Bluetooth broadcast first Bluetooth broadcast signal second Bluetooth broadcast signal Bluetooth broadcast
Corresponding to the method in the invention, the invention also provides an electronic device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize the steps of the low-power-consumption Bluetooth accessory communication method.
Corresponding to the method in the invention, the invention also provides a storage medium, and the computer readable storage medium stores a computer program, and the computer program realizes the steps of the low-power-consumption Bluetooth accessory communication method when being executed by a processor.
One or more technical schemes provided by the invention at least have the following technical effects or advantages:
in the invention, one first Bluetooth device corresponds to a plurality of second Bluetooth devices, when the second Bluetooth devices and the first Bluetooth devices are initially paired, the second Bluetooth devices and the first Bluetooth devices are connected and added through master-slave negotiation, after the addition is successful, the second Bluetooth devices enter a sleep mode, and in a use stage, the second Bluetooth devices transmit information in a low-power-consumption broadcasting mode, so that a connection stage with higher time and power consumption cost consumption can be saved.
In addition, in the using stage of the invention, the second Bluetooth device and the first Bluetooth device use a broadcasting mode to transmit information instead of a connection mode, and based on the information, the first Bluetooth device can add the second Bluetooth device without limit, namely, the number of accessories corresponding to the second Bluetooth device can be added without limit, thereby being more convenient to use and effectively saving power consumption.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a flow diagram of a method of low power Bluetooth accessory communication;
FIG. 2 is a schematic diagram of a low power Bluetooth accessory communication system;
FIG. 3 is a schematic view of a handle bar configuration;
FIG. 4 is a schematic view of the body structure
Fig. 5 is a schematic view of a partial structure in a track.
Reference numbers and corresponding part names in the drawings:
1-handle bar, 2-key, 3-connecting band, 4-machine body, 5-track, 6-adjusting seat, 7-end and 8-supporting arm.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflicting with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced in other ways than those specifically described and thus the scope of the present invention is not limited by the specific embodiments disclosed below.
It will be understood by those skilled in the art that in the present disclosure, the terms "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in an orientation or positional relationship indicated in the drawings for ease of description and simplicity of description, and do not indicate or imply that the referenced devices or components must be constructed and operated in a particular orientation and thus are not to be considered limiting.
It is understood that the terms "a" and "an" should be interpreted as meaning that a number of one element or element is one in one embodiment, while a number of other elements is one in another embodiment, and the terms "a" and "an" should not be interpreted as limiting the number.
Referring to fig. 1, fig. 1 is a flow chart illustrating a bluetooth accessory communication method with low power consumption, the present invention provides a bluetooth accessory communication method with low power consumption, the method includes:
comprising an addition step and a use step, wherein:
the adding step comprises the following steps:
first Bluetooth broadcast signals are preset in the first Bluetooth equipment and the plurality of second Bluetooth equipment; the first Bluetooth broadcast signal is a first trigger signal of the first Bluetooth device;
the second Bluetooth equipment sends a first Bluetooth broadcast signal through the broadcasting equipment, the first Bluetooth equipment scans information through the scanning equipment, and the first Bluetooth equipment acquires the second Bluetooth equipment according to the first Bluetooth broadcast signal, is connected with the second Bluetooth equipment and establishes master-slave negotiation;
after the master-slave negotiation is finished, the first Bluetooth device and the second Bluetooth device are disconnected, and the second Bluetooth device is added successfully;
the using steps comprise:
the second Bluetooth equipment sends Bluetooth broadcast through the broadcasting equipment, and the first Bluetooth equipment verifies the Bluetooth broadcast;
the first bluetooth device receives the authenticated bluetooth broadcast.
The master-slave negotiation specifically includes:
the first Bluetooth device is preset with a plurality of character strings, and the character strings correspond to the second Bluetooth devices one by one;
the first Bluetooth device acquires a second Bluetooth device according to the first Bluetooth broadcast signal;
the first Bluetooth device sends the MAC address of the first Bluetooth device and the character string corresponding to the second Bluetooth device;
the second Bluetooth device acquires a second Bluetooth broadcast signal of the second Bluetooth device according to the MAC address of the first Bluetooth device and the character string corresponding to the second Bluetooth device;
the first Bluetooth device acquires the MAC address of the second Bluetooth device and a second Bluetooth broadcast signal, and adds the MAC address of the second Bluetooth device and the second Bluetooth broadcast signal to a white list;
and the first Bluetooth device is disconnected with the second Bluetooth device, the second Bluetooth device is successfully added, and the second Bluetooth device enters a sleep mode.
Wherein, first bluetooth equipment verifies the bluetooth broadcast, specifically includes:
the second Bluetooth equipment sends Bluetooth broadcast, wherein the Bluetooth broadcast comprises a second Bluetooth broadcast signal, the MAC address of the second Bluetooth equipment and broadcast data information;
the first Bluetooth device verifies Bluetooth broadcast according to the MAC address of the second Bluetooth device added in the white list and the second Bluetooth broadcast signal;
if the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device added in the white list are the same as the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device in the Bluetooth broadcast, the first Bluetooth device receives the Bluetooth broadcast through verification;
and if the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device added in the white list are different from the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device in the Bluetooth broadcast, the first Bluetooth device does not receive the Bluetooth broadcast without passing the verification.
Furthermore, first bluetooth equipment sets up in the organism of fitness equipment, and a plurality of second bluetooth equipment set up respectively in a plurality of accessories, and the accessory includes support arm, handle, barbell, stopper. The accessory is provided with a control button, and the control button is used for controlling the broadcasting equipment of the second Bluetooth equipment to send information.
Wherein, the control button is used for controlling the broadcast equipment of second bluetooth equipment to send information, specifically includes:
when the control button is triggered, the second Bluetooth equipment sends information;
within a preset time t after the control button is stopped being triggered, the second Bluetooth device sends information; and after the preset time t for triggering the control button is stopped, the second Bluetooth equipment stops sending information. Wherein the preset time t is 0.5-1 s.
The following describes a low-power bluetooth accessory communication method according to the present invention with reference to specific examples:
the method comprises the following steps: adding step
1.1, a plurality of second Bluetooth devices are respectively arranged in a plurality of accessories, a first Bluetooth device is arranged in a body of the body-building device, and an operation interface is arranged on the body; before being added to the first bluetooth device, the second bluetooth device uses a preset first bluetooth broadcast signal, and in this embodiment, "fiturepawre" is used as the first bluetooth broadcast signal;
1.2, controlling a first Bluetooth device to enter a matching state in an operation interface, wherein the upper computer sends a command to the first Bluetooth device, and the first Bluetooth device scans the broadcast with a specific broadcast name according to a preset first Bluetooth broadcast signal;
1.3 long-term pressing the control button of the accessory, making the second bluetooth equipment of the accessory send the first bluetooth broadcast signal, after the first bluetooth equipment scans the broadcast, establishing connection with the second bluetooth equipment, and starting master-slave negotiation;
1.4 the first Bluetooth device sends the MAC address of the first Bluetooth device and the character string corresponding to the second Bluetooth device, wherein the character string corresponding to the second Bluetooth device is an index allocated by the first Bluetooth device to the second Bluetooth device, and the index comprises unused characters allocated by the host;
1.5 the second Bluetooth device takes the MAC address of the first Bluetooth device and the character string corresponding to the second Bluetooth device as a second Bluetooth broadcast signal of the second Bluetooth device;
1.6 the first Bluetooth device acquires the MAC address of the second Bluetooth device and the second Bluetooth broadcast signal, and adds the MAC address of the second Bluetooth device and the second Bluetooth broadcast signal into a white list; meanwhile, the first Bluetooth device records the type of the second Bluetooth device, and then analyzes the broadcast data of the slave according to the type;
1.61 when the first Bluetooth device acquires the MAC address of the second Bluetooth device and the second Bluetooth broadcast signal, scanning is carried out, when the first Bluetooth device does not scan, whether the scanning time is overtime is judged firstly, if the scanning time is not overtime, the scanning is continued, if the scanning time is overtime, the first Bluetooth device sends scanning information to a controller, the controller sends the information to an upper computer, and the upper computer controls a UI to display the information;
1.7 the first Bluetooth device is disconnected with the second Bluetooth device, the second Bluetooth device is added successfully, and the second Bluetooth device enters a sleep mode;
1.8 when the first Bluetooth equipment deletes the second Bluetooth equipment, directly deleting the corresponding information added into the white list;
step two: procedure of use
2.1 pressing a control button on an accessory of a second Bluetooth device, the second Bluetooth device starting to continuously send Bluetooth broadcast, wherein the Bluetooth broadcast comprises a second Bluetooth broadcast signal, an MAC address of the second Bluetooth device and broadcast data information;
2.2 the first Bluetooth device compares the second Bluetooth broadcast signal in the Bluetooth broadcast and the MAC address of the second Bluetooth device according to the second Bluetooth broadcast signal in the white list and the MAC address of the second Bluetooth device, and if the second Bluetooth broadcast signal in the Bluetooth broadcast and the MAC address of the second Bluetooth device are consistent with each other, the first Bluetooth device receives broadcast data information in the Bluetooth broadcast; the broadcast data information comprises case status, accessory status data and the like;
2.3 the first Bluetooth device compares the second Bluetooth broadcast signal in the Bluetooth broadcast and the MAC address of the second Bluetooth device according to the second Bluetooth broadcast signal in the white list and the MAC address of the second Bluetooth device, if the second Bluetooth broadcast signal in the Bluetooth broadcast and the MAC address of the second Bluetooth device are not consistent with each other, the first Bluetooth device does not receive the broadcast data information in the Bluetooth broadcast;
2.4 stop pressing the control button on the accessory of the second bluetooth device within 0.7s, the second bluetooth device will still continuously send the bluetooth broadcast, prevent the first bluetooth device from not receiving the broadcast data message.
Example two
On the basis of embodiment 1, the fitness equipment body on the first bluetooth equipment of this embodiment is intelligent fitness equipment, through the electric current of control motor, realizes the tensile training apparatus of control motor. When constant current is input to the motor, the motor can output constant torque, and constant tension can be generated on the tension rope, which is equivalent to an equal tension mode in strength training. The upper computer is positioned in the intelligent fitness equipment;
as shown in fig. 3, the handle bar 1 is connected with a connecting band 3, and the connecting band 3 is used for connecting with a pulling force output end of the body-building apparatus. Handle pole 1 is inside to be provided with second bluetooth equipment and inductive switch, still is provided with button 2 on the handle pole 1, button 2 can act on inductive switch and make the pulling force output of fitness equipment stop the output pulling force through second bluetooth equipment. Specifically, a battery is arranged in the handle rod 1 and used for providing power for the second Bluetooth device and the inductive switch.
When the exercise machine is used, firstly, the key 2 is pressed down to enable the second Bluetooth device to be connected with the first Bluetooth device of the exercise machine, after connection is established, the exercise handle is normally used, namely, the connecting belt is connected with the tension output end of the exercise machine, the tension rope is connected onto the motor of the exercise machine, the exercise machine controls the current of the motor, the tension training machine for controlling the tension of the motor is realized, when constant current is input into the motor, the motor outputs constant torque, constant tension is generated on the tension rope, in the embodiment, the tension rope on the exercise machine is the tension output end of the exercise machine, the tension rope is connected with the connecting belt on the handle bar, after connection, a user holds the body of the handle bar, and tension training is performed under the action of the tension rope.
The pulling force when the pulling force rope is great, the user can not bear or the body strength does not have enough to stop the pulling force output of pulling force rope, the user can directly press the button on the handle bar, the button is pressed the back, be used in on the inductive switch, inductive switch received signal back, send the signal for first bluetooth equipment through second bluetooth equipment, first bluetooth equipment gives the host computer with signal transmission, host computer control motor stops to output invariable moment, and then stop the output pulling force on the control pulling force rope, the pulling force output end of fitness equipment stops the output pulling force promptly.
EXAMPLE III
On the basis of embodiment 1, an intelligent fitness device, as shown in fig. 4-5, comprises a body 4, a left arm and a right arm which are rotatably connected to the body 4 on the body 4, wherein the left arm and the right arm have the same structure, and comprise a rail 5, an adjusting seat 6 which is slidably matched in the rail 5, a tip 7 rotatably connected to the adjusting seat 6, and a support arm 8 fixedly connected with the tip 7; the machine body 4 further comprises a first adjusting component for adjusting the rotation angle of the track 5 on the machine body 4 around the axis of the track; a second adjustment assembly for adjusting the axial position of the adjustment seat 6 within the track 5 (i.e. the position of the arm in translation along the track); and a third adjusting component for adjusting the rotation angle of the end head 7 on the adjusting seat 6 (namely the rotation angle of the support arm around the intersection point of the support arm and the track).
When the robot is used, the button is pressed down at first to control the second Bluetooth device to be connected with the first Bluetooth device on the machine body 4, and after the connection is established, the first detection unit is used for detecting the rotation angle of the track around the axis of the first detection unit; the second detection unit is used for detecting the translation position of the support arm along the track; the third detection unit is used for detecting the rotation angle of the support arm around the intersection point of the support arm and the track; the first detection unit is located below the track, and reads the rotation angle of the track in real time and sends the rotation angle to the upper computer. A plurality of slots are axially arranged on the rail 5, and a sensing device is arranged in each slot. When one end of the support arm connected with the track is inserted into a corresponding slot in the track through the bolt, the bolt is detected by the second detection unit positioned in the slot, and a detection signal is sent to the upper computer, and the upper computer judges the position of the support arm translating along the track through the signal source position.
The first detection unit, the second detection unit, the third detection unit and the upper computer on the machine body 4 are connected through Bluetooth, signals detected by the first detection unit, the second detection unit and the third detection unit are sent to the first Bluetooth device on the machine body 4 through the second Bluetooth device, and the first Bluetooth device sends information to the upper machine body.
Example four
A left support arm and a right support arm are respectively arranged at two sides of the body-building device, tension ropes are arranged inside the left support arm and the right support arm, one end of each tension rope is connected with a motor inside the body-building device, the other end of each tension rope is arranged outside the body-building device, and accessories such as a handle, a barbell, a brake and the like can be connected according to requirements,
left side support arm and right support arm can be used to adjust the position and the angle of pulling force rope output to the more convenient use of training person all is provided with second bluetooth equipment on accessories such as left side support arm, right support arm, handle, barbell, stopper, and first bluetooth equipment in the fitness equipment organism can be connected with a plurality of second bluetooth equipment simultaneously.
In this embodiment, accessories such as handle, barbell, stopper can be connected on the pulling force rope, and when the training person carried out strength training, the pulling force rope continued output pulling force, because everyone's motion limit diverse, consequently when the training person reached motion limit or had emergency, can not be fast timely stop training machinery.
In this embodiment, the MAC address of the first bluetooth device is: 001;
the accessory comprises a left support arm, a right support arm, a handle 1, a handle 2, a barbell 1 and a barbell 2, and second Bluetooth equipment information of the accessory is as follows;
MAC address Broadcast name Broadcasting data information
Left support arm 01 001LA Key state, arm angle
Right support arm 02 001RA Key state, arm angle
Handle 1 03 001H1 Key state
Handle
2 04 001H2 Key state
Barbell 1 05 001B1 Key state
Barbell
2 06 001B2 Key state
TABLE 1
After the first Bluetooth device adds the accessory to a white list, the white list is shown as the following table;
TABLE 2
Figure BDA0003119560400000081
The first bluetooth device compares the second bluetooth broadcast signal in the white list and the MAC address of the second bluetooth device with the second bluetooth broadcast signal in the bluetooth broadcast and the MAC address of the second bluetooth device, i.e. comparing with table 1 and table 2, when the second bluetooth device of the accessory of the handle 1 needs to be deleted from the first bluetooth device, it is sufficient to directly delete {001H1, 03} of the handle 1 in the white list.
EXAMPLE five
A first Bluetooth device configured to establish a connection with a second Bluetooth device that transmits a first Bluetooth broadcast signal after scanning the first Bluetooth broadcast signal according to a first trigger signal, and
adding the second Bluetooth device to the white list after performing a master-slave negotiation with the second Bluetooth device, an
Scanning based on a white list and/or receiving external Bluetooth broadcast;
and at least one second bluetooth device configured to transmit the first bluetooth broadcast signal, and/or transmit a bluetooth broadcast based on a white list.
Referring to fig. 2, fig. 2 is a schematic diagram of a bluetooth accessory communication system with low power consumption, an embodiment of the present invention provides a bluetooth accessory communication system with low power consumption, where the system includes a first bluetooth device and a plurality of second bluetooth devices, the first bluetooth device includes a scanning module and a master-slave negotiation module, and the second bluetooth device includes a broadcasting module;
the broadcast module is used for sending a first Bluetooth broadcast signal and a Bluetooth broadcast;
the scanning module is used for scanning the first Bluetooth broadcast signal, acquiring a second Bluetooth module according to the first Bluetooth broadcast signal, connecting the first Bluetooth module and the second Bluetooth module, and triggering the master-slave negotiation module;
the master-slave negotiation module is used for sending the MAC address of the first Bluetooth module and the character string corresponding to the connected second Bluetooth module to the second Bluetooth module, and the second Bluetooth module acquires a second Bluetooth broadcast signal according to the MAC address of the first Bluetooth module and the character string corresponding to the connected second Bluetooth module; the first Bluetooth module acquires the MAC address of the second Bluetooth module and a second Bluetooth broadcast signal, and adds a white list; the first Bluetooth module and the second Bluetooth module are disconnected, the second Bluetooth module is added successfully, and the second Bluetooth module enters a sleep mode;
the scanning module is also used for scanning the Bluetooth broadcast according to a white list in the master-slave negotiation and verifying whether the second Bluetooth module is successfully added, and if the second Bluetooth module is successfully added, the first Bluetooth module receives the Bluetooth broadcast; and if the Bluetooth broadcast is unsuccessful, the first Bluetooth module does not receive the Bluetooth broadcast.
Wherein, the broadcast module specifically includes: the second Bluetooth module is preset with a first Bluetooth broadcast signal, and when the second Bluetooth module is triggered for the first time, the broadcast module sends the first Bluetooth broadcast signal, so that the first Bluetooth module and the second Bluetooth module are matched with each other, and a master-slave negotiation module is triggered; when the second bluetooth module is triggered again, the broadcast module transmits a bluetooth broadcast including a second bluetooth broadcast signal, the MAC address of the second bluetooth device, and broadcast data information.
Wherein, the scanning module specifically includes: when the second Bluetooth module is triggered for the first time, the broadcast module sends a first Bluetooth broadcast signal, and the scanning module acquires the second Bluetooth module according to the first Bluetooth broadcast signal and triggers the master-slave negotiation module;
when the second Bluetooth module is triggered again, the scanning module verifies Bluetooth broadcast according to the MAC address of the second Bluetooth device added in the white list and the second Bluetooth broadcast signal; if the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device added in the white list are the same as the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device in the Bluetooth broadcast, the first Bluetooth device receives the Bluetooth broadcast through verification; and if the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device added in the white list are different from the MAC address and the second Bluetooth broadcast signal of the second Bluetooth device in the Bluetooth broadcast, the first Bluetooth device does not receive the Bluetooth broadcast without passing the verification.
EXAMPLE six
The third embodiment of the invention provides an electronic device, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the steps of the low-power-consumption Bluetooth accessory communication method when executing the computer program.
The processor may be a central processing unit, or may be other general-purpose processor, a digital signal processor, an application specific integrated circuit, an off-the-shelf programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory can be used for storing the computer program and/or the module, and the processor can realize various functions of the low-power-consumption Bluetooth accessory communication device by operating or executing data stored in the memory. The memory may mainly 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 (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card, a secure digital card, a flash memory card, at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
EXAMPLE seven
A fourth embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the bluetooth accessory communication method with low power consumption are implemented.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A Bluetooth communication method with low power consumption is characterized in that,
the first Bluetooth device scans the first Bluetooth broadcast signal according to the first trigger signal and then establishes connection with a second Bluetooth device which sends the first Bluetooth broadcast signal;
after the first Bluetooth device and the second Bluetooth device carry out master-slave negotiation, the second Bluetooth device is added into a white list;
the first bluetooth device scans based on the white list and/or receives an external bluetooth broadcast.
2. The bluetooth communication method according to claim 1, wherein the first bluetooth device is disconnected from the second bluetooth device after performing a master-slave negotiation with the second bluetooth device.
3. The bluetooth communication method with low power consumption of claim 1, wherein the method for adding the second bluetooth device into the white list after the first bluetooth device and the second bluetooth device perform master-slave negotiation comprises:
the first Bluetooth device and the second Bluetooth device negotiate together to generate a group of character strings, and the character strings are added into a white list.
4. The bluetooth low energy communication method according to claim 3, wherein the character string comprises a feature code of the first bluetooth device and a feature code of the second bluetooth device.
5. The bluetooth communication method with low power consumption according to claim 3, wherein the first bluetooth device scans based on white list and/or receives external bluetooth broadcast by:
the first bluetooth device scans for, and/or receives, a bluetooth broadcast whose broadcast name includes the string.
6. The bluetooth communication method with low power consumption of claim 3, wherein the second bluetooth device sends the bluetooth broadcast with the broadcast name including the character string according to the second trigger signal.
7. The bluetooth low energy communication method according to claim 1, wherein the second bluetooth device transmits the first bluetooth broadcast signal according to the third trigger signal.
8. A bluetooth low energy communication system, comprising:
a first Bluetooth device configured to establish a connection with a second Bluetooth device that transmits a first Bluetooth broadcast signal after scanning the first Bluetooth broadcast signal according to a first trigger signal, and
adding the second Bluetooth device to the white list after performing a master-slave negotiation with the second Bluetooth device, an
Scanning based on a white list and/or receiving external Bluetooth broadcast;
and at least one second bluetooth device configured to transmit the first bluetooth broadcast signal, and/or transmit a bluetooth broadcast based on a white list.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of a low power bluetooth accessory communication method as claimed in any one of claims 1 to 7.
10. A storage medium, which stores a computer program, wherein the computer program, when executed by a processor, performs the steps of a low power bluetooth accessory communication method as claimed in any one of claims 1 to 7.
CN202110673107.2A 2021-06-17 2021-06-17 Low-power-consumption Bluetooth accessory communication method, system, device and medium Pending CN113329348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110673107.2A CN113329348A (en) 2021-06-17 2021-06-17 Low-power-consumption Bluetooth accessory communication method, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110673107.2A CN113329348A (en) 2021-06-17 2021-06-17 Low-power-consumption Bluetooth accessory communication method, system, device and medium

Publications (1)

Publication Number Publication Date
CN113329348A true CN113329348A (en) 2021-08-31

Family

ID=77423818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110673107.2A Pending CN113329348A (en) 2021-06-17 2021-06-17 Low-power-consumption Bluetooth accessory communication method, system, device and medium

Country Status (1)

Country Link
CN (1) CN113329348A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116321163A (en) * 2023-05-17 2023-06-23 深圳开鸿数字产业发展有限公司 Control method of Bluetooth communication system, bluetooth device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594987A (en) * 2012-02-09 2012-07-18 深圳市中兴移动通信有限公司 Method for realizing safe and quick Bluetooth pairing connection
CN105338402A (en) * 2015-11-04 2016-02-17 北京数码视讯科技股份有限公司 Bluetooth connection method and apparatus
CN110213758A (en) * 2019-06-13 2019-09-06 桃芯科技(苏州)有限公司 Data communications method, storage medium and electronic equipment based on bluetooth
CN111083646A (en) * 2019-11-29 2020-04-28 北京众行智能科技有限公司 Method and system for transmitting physical sign data with low power consumption

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102594987A (en) * 2012-02-09 2012-07-18 深圳市中兴移动通信有限公司 Method for realizing safe and quick Bluetooth pairing connection
CN105338402A (en) * 2015-11-04 2016-02-17 北京数码视讯科技股份有限公司 Bluetooth connection method and apparatus
CN110213758A (en) * 2019-06-13 2019-09-06 桃芯科技(苏州)有限公司 Data communications method, storage medium and electronic equipment based on bluetooth
CN111083646A (en) * 2019-11-29 2020-04-28 北京众行智能科技有限公司 Method and system for transmitting physical sign data with low power consumption

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116321163A (en) * 2023-05-17 2023-06-23 深圳开鸿数字产业发展有限公司 Control method of Bluetooth communication system, bluetooth device and readable storage medium
CN116321163B (en) * 2023-05-17 2023-08-15 深圳开鸿数字产业发展有限公司 Control method of Bluetooth communication system, bluetooth device and readable storage medium

Similar Documents

Publication Publication Date Title
CN104360736B (en) terminal control method and system based on gesture
KR102041984B1 (en) Mobile apparatus having function of face recognition with additional component
JP5420261B2 (en) Remote operation device, operation target device, control method for remote operation device, control method for operation target device, and remote operation system
CN106163882B (en) For motor vehicle portable terminal operating system
WO2009119168A1 (en) Remote operation device, device to be operated, control method for remote operation device, control method for device to be operated, and remote operation system
CN104766456A (en) Intelligent interactive system with portable intelligent device as control center
CN205297053U (en) Can long -rangely send intelligence lock of interim password
CN104966086B (en) Live body discrimination method and device
CN113329348A (en) Low-power-consumption Bluetooth accessory communication method, system, device and medium
CN106663127A (en) An interaction method and system for virtual robots and a robot
CN109613836A (en) Beddo method of toch control, device, equipment and storage medium
US20200202702A1 (en) Infrared remote controller based on voice control and control system for electrical apparatus
CN112545373A (en) Control method of sweeping robot, sweeping robot and medium
CN210667240U (en) Multifunctional teaching robot
CN111580406A (en) Intelligent home control system based on Internet of things
CN208766774U (en) Mobile power source leased machine
CN102156858A (en) Living body fingerprint identification device combining camera and fingerprint identifier
CN108037829B (en) Multi-mode interaction method and system based on holographic equipment
CN209543440U (en) A kind of integrated form door control terminal
CN100385471C (en) Studying remote control method and device for household electrical appliances
CN105339946A (en) Apparatus and method for providing security environment
US11325027B1 (en) Game controller
CN107480087B (en) Electronic equipment and control method
CN109688393A (en) A kind of throwing screen control method and the first electronic equipment
CN210119813U (en) Finger vein lock

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210831