CN109194420A - A method of different Bluetooth devices are connected based on signal strength - Google Patents
A method of different Bluetooth devices are connected based on signal strength Download PDFInfo
- Publication number
- CN109194420A CN109194420A CN201811124966.0A CN201811124966A CN109194420A CN 109194420 A CN109194420 A CN 109194420A CN 201811124966 A CN201811124966 A CN 201811124966A CN 109194420 A CN109194420 A CN 109194420A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- bluetooth equipment
- equipment
- transmitting terminal
- device name
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of methods based on signal strength connection different Bluetooth devices, comprising the following steps: transmitting terminal bluetooth equipment calls bluetooth standard API to be scanned receiving end bluetooth equipment, obtains the device name list of receiving end bluetooth equipment;The distance between the bluetooth equipment of transmitting terminal and the different Bluetooth devices of receiving end d are calculated according to the RSSI value between transmitting terminal bluetooth equipment and receiving end bluetooth equipment;The d addition of the distance between the bluetooth equipment of the transmitting terminal that step 2 is obtained and the different Bluetooth devices of receiving end is listed after bluetooth device name, and in bluetooth device name list.Distance can be calculated indirectly by the intensity of bluetooth receiving end and transmitting terminal wireless signal by this method user, and be shown in the page of pairing, to distinguish the identical different Bluetooth devices of receiving device title.
Description
Technical field
The present invention relates to be wirelessly connected technical field, especially a kind of side based on signal strength connection different Bluetooth devices
Method.
Background technique
As current bluetooth equipment is more and more abundant, the range that bluetooth uses is more and more wider, and terminal user is to bluetooth correlation
Equipment usage frequency is also higher and higher.As bluetooth equipment more and more incorporates public life, bluetooth connection it is quick, steady
Fixed, convenient to be liked deeply by user, same some problems also quickly expose, for example are easy to make people mixed with more equipment of name
Confuse, allows user that can not select rapidly oneself to want the equipment of pairing when Bluetooth pairing connection.
It is shown in the bluetooth equipment list of these products in general consumer electronics product currently on the market
The only title of bluetooth equipment, if display schematic diagram has multiple phases as shown in Figure 1, in the space environment where equipment
The equipment of the same type identical equipment of device name in other words, will show in the bluetooth equipment list of equipment identical in this way
Device name, in this way, user just can not intuitively know from bluetooth equipment list which option it is corresponding be to want to match
Pair bluetooth equipment.Equipment only there are two when can also try several times more, when equipment extra three or more, even by
The method of the trials such as connection disconnection is still very difficult to be connected in the equipment for thinking connection.This is also current consumer electronics product
In the problem of all existing, (such as sales field etc.) is more universal especially under the scene that electronic product is relatively concentrated.
It is directed to this application scenarios at present, is distinguished usually using Bluetooth MAC address, user by modification device name.
General user may be it should be understood that MAC Address or the user of bluetooth can have it should be understood that how to modify device name
The different equipment of the differentiation of effect.
Summary of the invention
To solve problems of the prior art, it is different based on signal strength connection that the object of the present invention is to provide one kind
The method of bluetooth equipment can be counted indirectly by this method user by the intensity of bluetooth receiving end and transmitting terminal wireless signal
Distance is calculated, and is shown in the page of pairing, to distinguish the identical different Bluetooth devices of receiving device title.
To achieve the above object, the technical solution adopted by the present invention is that: one kind connecting different bluetooths based on signal strength and sets
Standby method, comprising the following steps:
Step 1: transmitting terminal bluetooth equipment calls bluetooth standard API to be scanned receiving end bluetooth equipment, received
Hold the device name list of bluetooth equipment;
Step 2: according to the RSSI value between transmitting terminal bluetooth equipment and the identical bluetooth equipment of receiving device title come
Calculate the distance between the bluetooth equipment bluetooth equipment identical with receiving device title of transmitting terminal d;Calculation formula is as follows:Wherein, RSSI is signal strength, and signal strength when A is transmitting terminal and receiving end is separated by 1 meter, n declines for environment
Subtracting coefficient;
Step 3: the bluetooth equipment for the transmitting terminal that step 2 is obtained bluetooth equipment identical with receiving device title it
Between distance d addition listed after bluetooth device name, and in bluetooth device name list.
As a preferred embodiment, RSSI value in the step 2 is smoothed treated data.
It is further comprising the steps of as another preferred embodiment:
Bluetooth device name list is updated according to the dynamic change of RSSI value.
As another preferred embodiment, the bluetooth equipment of transmitting terminal bluetooth identical with receiving device title is set
When distance shows close between standby, the bluetooth equipment of mobile transmitting terminal is identical to receiving end device name by the variation of distance
Bluetooth equipment confirmed.
As another preferred embodiment, in the step 3 by distance d addition after bluetooth device name,
Display format in the bluetooth device name list distance between bluetooth device name _ bluetooth equipment.
The beneficial effects of the present invention are: connection method proposed by the present invention is based on bluetooth device name and Bluetooth signal transmission
Intensity solves in the same environment, and the bluetooth equipment of multiple same titles can not carry out effective and quick connection, is suitable for very
More occasions, as in product development process, in plant produced, in the environment of sales field and have purchased in the subscriber household of multiple equipment,
User can easily and intuitively find the bluetooth equipment for oneself thinking connection, and cost is relatively low for this method, reduces user's
Interaction cost, greatly convenient for users to use and experience sense.
Detailed description of the invention
Fig. 1 is the device name list display schematic diagram of existing bluetooth equipment;
Fig. 2 is the flow diagram of the embodiment of the present invention;
Fig. 3 is the device name list display schematic diagram of bluetooth equipment of the embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
The present embodiment is implemented in the Android platform scheme based on full will R16 chip, hardware configuration 512MB
Memory, 4GB eMMC, CPU are four core Cortex-A7, as shown in Fig. 2, Fig. 2 is the flow diagram of the embodiment of the present invention, Yi Zhongji
In the method for signal strength connection different Bluetooth devices, comprising the following steps:
Step 1: transmitting terminal bluetooth equipment calls bluetooth standard API to be scanned receiving end bluetooth equipment, received
Hold the device name list of bluetooth equipment;
Step 2: according to the RSSI value between transmitting terminal bluetooth equipment and the identical bluetooth equipment of receiving device title come
Calculate the distance between the bluetooth equipment bluetooth equipment identical with receiving device title of transmitting terminal d;Calculation formula is as follows:Wherein, RSSI (Received Signal Strength Indication) is signal strength, and A is transmitting terminal
Signal strength when being separated by 1 meter with receiving end, n are the environmental attenuation factor;
Step 3: the bluetooth equipment for the transmitting terminal that step 2 is obtained bluetooth equipment identical with receiving device title it
Between distance d addition listed after bluetooth device name, and in bluetooth device name list, the device name of bluetooth equipment
List display schematic diagram is as shown in Figure 3.
In the present embodiment, RSSI value in the step 2 is smoothed treated data.
The present embodiment is further comprising the steps of:
Bluetooth device name list is updated according to the dynamic change of RSSI value.
In the present embodiment, distance is shown between the bluetooth equipment and the identical bluetooth equipment of receiving device title of transmitting terminal
When close, the bluetooth equipment of mobile transmitting terminal, by the variation of the distance bluetooth equipment identical to receiving end device name into
Row confirmation.
In the present embodiment, in the step 3 by distance d addition after bluetooth device name, arranged in bluetooth device name
Display format in the table distance between bluetooth device name _ bluetooth equipment.
It is described further below to originally implementing:
The present embodiment proposes a kind of intensity based on bluetooth receiving end and transmitting terminal wireless signal to calculate distance indirectly,
And shown in the page of pairing, so that the device_name of same bluetooth equipment is distinguished, display schematic diagram such as Fig. 3 institute
Show, can clearly see from Fig. 3, on the basis of scanning the device_name taken by bluetooth, for same
Device_name increases a suffix, and this suffix is dynamic change, in the case where distance shows similar situation, may be used also
Further confirmed with moving mobile phone or the distance of equipment of transmitting terminal.
The present embodiment has the characteristic of bluetooth signal intensity, and this signal strength based on bluetooth as wireless signal transmission
The variation of regularity will be presented with shelter, distance etc., i.e., shelter is more, distance is remoter, then RSSI value is lower.Work as environment
In have multiple same titles bluetooth equipment cannot be distinguished when, can based on this realize distinguish.RSSI value is considered simultaneously
In the actual environment unstable increases smoothing computation processing, the jump of data is avoided, in distanceCalculating
In formula, since locating environment is different, every bluetooth equipment of transmitting terminal corresponds to parameter value all may be different.In formula
Each parameter is obtained by doing experiment.When not knowing bluetooth equipment accurate location around, empirical value can only be assigned to A and n.
By above formula, the distance between available bluetooth equipment.After obtaining this distance value, this value
Addition is listed after bluetooth device name, and in bluetooth device name list.Also, by being supervised to bluetooth equipment dynamic
It surveys, carrys out the distance between real-time detection bluetooth equipment and realize to show bluetooth device name with bluetooth list dynamic refresh,
Here preliminary definition bluetooth device name form are as follows: distance between bluetooth device name _ bluetooth equipment.
A specific embodiment of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.
Claims (5)
1. a kind of method based on signal strength connection different Bluetooth devices, which comprises the following steps:
Step 1: transmitting terminal bluetooth equipment calls bluetooth standard API to be scanned receiving end bluetooth equipment, receiving end indigo plant is obtained
The device name list of tooth equipment;
Step 2: being calculated according to the RSSI value between transmitting terminal bluetooth equipment and the identical bluetooth equipment of receiving device title
The distance between the bluetooth equipment of transmitting terminal bluetooth equipment identical with receiving device title d;Calculation formula is as follows:Wherein, RSSI is signal strength, and signal strength when A is transmitting terminal and receiving end is separated by 1 meter, n declines for environment
Subtracting coefficient;
Step 3: between the bluetooth equipment and the identical bluetooth equipment of receiving device title of the transmitting terminal that step 2 is obtained
Distance d addition is listed after bluetooth device name, and in bluetooth device name list.
2. the method according to claim 1 based on signal strength connection different Bluetooth devices, which is characterized in that the step
RSSI value in rapid two is smoothed treated data.
3. the method according to claim 1 based on signal strength connection different Bluetooth devices, which is characterized in that further include
Following steps:
Bluetooth device name list is updated according to the dynamic change of RSSI value.
4. the method according to claim 3 based on signal strength connection different Bluetooth devices, which is characterized in that transmitting terminal
Bluetooth equipment and the identical bluetooth equipment of receiving device title between distance when showing close, the bluetooth of mobile transmitting terminal is set
It is standby, confirmed by the variation of the distance bluetooth equipment identical to receiving end device name.
5. the method according to claim 1 based on signal strength connection different Bluetooth devices, which is characterized in that the step
In rapid three by distance d addition after bluetooth device name, the display format in bluetooth device name list is bluetooth equipment
Distance between title _ bluetooth equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811124966.0A CN109194420A (en) | 2018-09-26 | 2018-09-26 | A method of different Bluetooth devices are connected based on signal strength |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811124966.0A CN109194420A (en) | 2018-09-26 | 2018-09-26 | A method of different Bluetooth devices are connected based on signal strength |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109194420A true CN109194420A (en) | 2019-01-11 |
Family
ID=64906441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811124966.0A Pending CN109194420A (en) | 2018-09-26 | 2018-09-26 | A method of different Bluetooth devices are connected based on signal strength |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194420A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262367A (en) * | 2019-08-05 | 2019-09-20 | 刘盛荣 | Intelligent home equipment control method and device |
CN114024580A (en) * | 2021-10-28 | 2022-02-08 | 青岛通产智能科技股份有限公司 | Wireless transceiving method capable of automatically connecting based on one-to-many application scene |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927654A (en) * | 2014-04-17 | 2014-07-16 | 福建联迪商用设备有限公司 | Mobile terminal and POS machine contact communication method and device and payment method |
CN105376708A (en) * | 2015-10-09 | 2016-03-02 | 广东欧珀移动通信有限公司 | A connecting method and system allowing a Bluetooth apparatus to select a target apparatus |
CN105450268A (en) * | 2015-12-02 | 2016-03-30 | 惠州Tcl移动通信有限公司 | Bluetooth-based method and system for automatically connecting wearable device with mobile terminal |
JP2016052040A (en) * | 2014-09-01 | 2016-04-11 | キヤノン株式会社 | Terminal information acquisition system, device, and method, and image formation device |
-
2018
- 2018-09-26 CN CN201811124966.0A patent/CN109194420A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103927654A (en) * | 2014-04-17 | 2014-07-16 | 福建联迪商用设备有限公司 | Mobile terminal and POS machine contact communication method and device and payment method |
JP2016052040A (en) * | 2014-09-01 | 2016-04-11 | キヤノン株式会社 | Terminal information acquisition system, device, and method, and image formation device |
CN105376708A (en) * | 2015-10-09 | 2016-03-02 | 广东欧珀移动通信有限公司 | A connecting method and system allowing a Bluetooth apparatus to select a target apparatus |
CN105450268A (en) * | 2015-12-02 | 2016-03-30 | 惠州Tcl移动通信有限公司 | Bluetooth-based method and system for automatically connecting wearable device with mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110262367A (en) * | 2019-08-05 | 2019-09-20 | 刘盛荣 | Intelligent home equipment control method and device |
CN114024580A (en) * | 2021-10-28 | 2022-02-08 | 青岛通产智能科技股份有限公司 | Wireless transceiving method capable of automatically connecting based on one-to-many application scene |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104469707B (en) | A kind of mobile terminal and integrate the means of communication and the device of social account | |
CN104202729B (en) | The adding method of a kind of contact person, Apparatus and system | |
CN108513347B (en) | Data transmission method and electronic equipment | |
CN104053215A (en) | Method and device for selecting optimum position of access point | |
CN114666829A (en) | Method, device, equipment and medium for wireless sensing measurement among multiple equipment | |
WO2015024391A1 (en) | Method and device for conducting wireless control on network television terminal | |
JP2017504845A (en) | Communication event notification method, apparatus and system | |
CN102710549B (en) | To be established a communications link the method for relation, terminal and system by shooting | |
CN105071552B (en) | Wireless charging method, system, device, energy emitting device and receiving device | |
EP2745493A1 (en) | Methods and apparatus for launching an application identified by a sensor | |
CN104243709A (en) | Information processing method and electronic device | |
CN105745906B (en) | Message processing method, system and related equipment | |
WO2020147645A1 (en) | Link aggregation realization method and related product | |
CN109194420A (en) | A method of different Bluetooth devices are connected based on signal strength | |
CN105940614A (en) | Apparatus and method for providing communication | |
JP2017532840A (en) | Wireless transceivers managed based on neighborhood | |
CN108877733B (en) | Color temperature adjusting method and related device | |
CN110190871A (en) | A kind of method, electronic device and storage medium controlling inter-antenna interference | |
CN105528242B (en) | The method and electronic equipment of switch mode | |
KR102262869B1 (en) | Electronic device and method for controlling information exchange in electronic device | |
CN112867171B (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN104469656A (en) | Data transmission method and system based on NFC | |
CN205622636U (en) | Frequency spectrum perceptual arrangement | |
CN108964839A (en) | transmission rate adjusting method, device and electronic device | |
CN103581237B (en) | A kind of method realizing ParlayX and ParlayREST distance notice |
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: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |