CN108521647A - A kind of matching method and bluetooth master of bluetooth SIM card - Google Patents

A kind of matching method and bluetooth master of bluetooth SIM card Download PDF

Info

Publication number
CN108521647A
CN108521647A CN201810362141.6A CN201810362141A CN108521647A CN 108521647 A CN108521647 A CN 108521647A CN 201810362141 A CN201810362141 A CN 201810362141A CN 108521647 A CN108521647 A CN 108521647A
Authority
CN
China
Prior art keywords
bluetooth
wireless signal
master
bluetooth master
sim card
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810362141.6A
Other languages
Chinese (zh)
Other versions
CN108521647B (en
Inventor
周飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huada Zhibao Electronic System Co Ltd
Original Assignee
Beijing Huada Zhibao Electronic System 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 Beijing Huada Zhibao Electronic System Co Ltd filed Critical Beijing Huada Zhibao Electronic System Co Ltd
Priority to CN201810362141.6A priority Critical patent/CN108521647B/en
Publication of CN108521647A publication Critical patent/CN108521647A/en
Application granted granted Critical
Publication of CN108521647B publication Critical patent/CN108521647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

This application discloses a kind of matching methods and bluetooth master of bluetooth SIM card to improve the usage experience of user for allowing user quickly to establish the pairing of bluetooth master and bluetooth SIM card.The embodiment of the present application method includes:Bluetooth master reads the wireless signal threshold value R of itself, and opens Bluetooth function;Later, bluetooth master obtains the broadcast data packet that Bluetooth slave devices are externally sent, and the wireless signal numerical value Rx of Bluetooth slave devices is further calculated from the broadcast data packet;When wireless signal numerical value Rx meets preset condition, then bluetooth master determines that Bluetooth slave devices are the bluetooth SIM card being installed in bluetooth master;Finally, bluetooth master carries out Bluetooth pairing with the bluetooth SIM card.

Description

A kind of matching method and bluetooth master of bluetooth SIM card
Technical field
This application involves mobile communication field more particularly to a kind of matching methods and bluetooth master of bluetooth SIM card.
Background technology
Client identification module (Subscriber Identity Module, SIM) card be also referred to as subscriber identification card or Smart card is widely used at present in mobile communications network special-purpose terminal, and bluetooth SIM card then has bluetooth communication capability SIM card belongs to one kind of bluetooth equipment.
The matching method of two bluetooth equipments is in the prior art:First bluetooth master (such as:Intelligent terminal, Such as mobile phone, tablet) need with target Bluetooth to be paired from equipment (such as:Intelligent wearable device, such as bluetooth headset, indigo plant Tooth bracelet etc.) be scanned, select and match equivalent process, bluetooth master and target Bluetooth after equipment successful connection It can normal use.However since there may be multiple indigo plants except target Bluetooth in addition to equipment in the environment residing for bluetooth master Tooth is from equipment, and multiple Bluetooth slave devices title is generally also all product identification, especially when target Bluetooth from equipment and is somebody's turn to do When multiple Bluetooth slave devices are similar products (such as same producer manufacture equipment), then often number it is also much like, it is general General family is difficult that the user is selected to need the target Bluetooth connected from equipment from the Bluetooth slave devices list to be paired scanned. In order to solve quick and precisely marriage problem of the target Bluetooth from equipment, there are also settling modes at present, such as by scanning target The Quick Response Code of Bluetooth slave devices obtains unpaired message of the target Bluetooth from equipment, then determines target according to the unpaired message Bluetooth slave devices are simultaneously completed to match and be connected.
If moreover, target Bluetooth from equipment be bluetooth SIM card, then be directed to this special product form of bluetooth SIM card, Due to bluetooth SIM card be usually all inserted into bluetooth master (such as:Mobile phone) sim card slot in, do not have the item of two-dimensional code display Part, user is also inconvenient to take out the SIM card before needing to carry out bluetooth connection from card slot every time, therefore, how to allow user fast The pairing for establishing mobile phone and bluetooth SIM card of speed, is a urgent problem to be solved.
Invention content
The embodiment of the present application provides a kind of matching method of bluetooth SIM card, for allowing user quickly to establish bluetooth master Pairing between equipment and bluetooth SIM card.
Specific technical solution includes:
The embodiment of the present application first aspect provides a kind of matching method of bluetooth SIM card, and this method includes:
Bluetooth master reads the wireless signal threshold value R on the bluetooth master;
The bluetooth master opens Bluetooth function;
The bluetooth master obtains the broadcast data packet that Bluetooth slave devices are externally sent;
The wireless signal numerical value Rx of the Bluetooth slave devices is calculated in institute's bluetooth master from the broadcast data packet;
When the wireless signal numerical value Rx meets preset condition, then the bluetooth master determines the Bluetooth slave devices To be installed on the bluetooth SIM card in the bluetooth master;
The bluetooth master carries out Bluetooth pairing with the bluetooth SIM card.
Preferably, after the broadcast data packet that the bluetooth master obtains that the Bluetooth slave devices are externally sent, institute The method of stating further includes:
The bluetooth master carries out characteristic value filtering to the broadcast data packet, so that all Bluetooth slave devices are symbol The same type of bluetooth equipment of conjunction condition;
The bluetooth master obtains the MAC value of the Bluetooth slave devices from the filtered broadcast data packet.
Preferably, when the wireless signal numerical value Rx meets preset condition, then the bluetooth master determines the indigo plant Tooth is that the bluetooth SIM card being installed in the bluetooth master includes from equipment:
When the wireless signal threshold value R is zero and the wireless signal numerical value Rx is the bluetooth master in preset time When maximum value in all wireless signal numerical value set inside got, then the bluetooth master determines the Bluetooth slave devices To be installed on the bluetooth SIM card in the bluetooth master.
Preferably, when the wireless signal numerical value Rx meets preset condition, then the bluetooth master determines the indigo plant Tooth is that the bluetooth SIM card being installed in the bluetooth master includes from equipment:
When the wireless signal threshold value R be not zero and the wireless signal numerical value Rx be not less than the wireless signal threshold value R When, then the bluetooth master determines that institute's Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
Preferably, when the wireless signal numerical value Rx meets preset condition, then the bluetooth master determines the indigo plant Tooth is that the bluetooth SIM card being installed in the bluetooth master includes from equipment:
When the wireless signal threshold value R is not zero, the wireless signal numerical value Rx be the bluetooth master when default In maximum value in all wireless signal numerical value set for getting and when the Rx < R, then the bluetooth master determines The Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
Preferably, when the bluetooth master determines that the Bluetooth slave devices are the indigo plant being installed in the bluetooth master After tooth SIM card, the method further includes:
The bluetooth master updates the wireless signal threshold value R;
The bluetooth master preserves the MAC value of the bluetooth SIM card.
Preferably, the bluetooth master update wireless signal threshold value R includes:
The bluetooth master preserves the wireless signal numerical value Rx with after the bluetooth SIM card successful matching;
The bluetooth master stores the Rx as updated wireless signal threshold value.
The embodiment of the present application second aspect provides a kind of bluetooth master, including:
Reading unit, for reading the wireless signal threshold value R on the bluetooth master;
Opening unit, for opening Bluetooth function;
First acquisition unit, the broadcast data packet externally sent for obtaining Bluetooth slave devices;
Computing unit, the wireless signal numerical value for the Bluetooth slave devices to be calculated from the broadcast data packet Rx;
Determination unit, for when the wireless signal numerical value Rx meets preset condition, determining that the Bluetooth slave devices are The bluetooth SIM card being installed in the bluetooth master;
Pairing unit, for carrying out Bluetooth pairing with the bluetooth SIM card.
Preferably, the bluetooth master further includes:
Filter element, for carrying out characteristic value filtering to the broadcast data packet, so that all Bluetooth slave devices are symbol The same type of bluetooth equipment of conjunction condition;
Second acquisition unit, the MAC value for obtaining the Bluetooth slave devices from the filtered broadcast data packet.
Preferably, the determination unit is particularly used in:
When the wireless signal threshold value R is zero and the wireless signal numerical value Rx is the bluetooth master in preset time When maximum value in all wireless signal numerical value set inside got, then the bluetooth master determines the Bluetooth slave devices To be installed on the bluetooth SIM card in the bluetooth master;
Or,
When the wireless signal threshold value R be not zero and the wireless signal numerical value Rx be not less than the wireless signal threshold value R When, then the bluetooth master determines that institute's Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master;
Or,
When the wireless signal threshold value R is not zero, the wireless signal numerical value Rx be the bluetooth master when default In maximum value in all wireless signal numerical value set for getting and when the Rx < R, then the bluetooth master determines The Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
Preferably, the bluetooth master further includes:
Updating unit, for updating the wireless signal threshold value R;
Storage unit, the MAC value for preserving the bluetooth SIM card.
Preferably, the updating unit is specifically used for:
The bluetooth master preserves the wireless signal numerical value Rx with after the bluetooth SIM card successful matching;
The Rx is stored as updated wireless signal threshold value.
The embodiment of the present application third aspect also provides a kind of bluetooth master, including:
Processor, memory, bus and input/output interface, the processor, memory and input/output interface pass through this Bus connects;Have program stored therein code in the memory, and the program code is for storing operational order;The processor is for calling Bluetooth master in the matching method of any one of the embodiment of the present application bluetooth SIM card is executed when program code in the memory to set Standby the step of needing to execute.
The embodiment of the present application fourth aspect provides a kind of computer program product including instruction, when it is transported on computers When row so that the computer executes the step in the matching method of any one of the embodiment of the present application bluetooth SIM card.
The embodiment of the present application also provides a kind of computer readable storage medium, it should be noted that the technical side of the application Substantially all or part of the part that contributes to existing technology or the technical solution can be produced case with software in other words The form of product embodies, which is stored in a storage medium, for being stored as above-mentioned relevant device Computer software instructions used, when the instruction is run on computers so that computer, which executes in the embodiment of the present application, appoints Step in the matching method of one bluetooth SIM card.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), deposit at random The various media that can store program code such as access to memory (Random Access Memory, RAM), magnetic disc or CD, tool Body does not limit herein.
As can be seen from the above technical solutions, the embodiment of the present application has the following advantages:
Bluetooth master reads the wireless signal threshold value R on bluetooth master, and opens Bluetooth function;Later, bluetooth master Equipment obtains the broadcast data packet that externally sends of Bluetooth slave devices, and be further calculated from the broadcast data packet bluetooth from The wireless signal numerical value Rx of equipment;When wireless signal numerical value Rx meets preset condition, then bluetooth master determines bluetooth from setting Standby is the bluetooth SIM card being installed in bluetooth master;Bluetooth master carries out Bluetooth pairing with bluetooth SIM card.In the application In embodiment, bluetooth master is by being arranged wireless signal threshold value R, obtaining wireless signal numerical value Rx and determining wireless signal threshold Magnitude relationship between value R and wireless signal numerical value Rx so that quickly determination is installed in the bluetooth master bluetooth master Bluetooth SIM card so that user can quickly establish the pairing between bluetooth master and bluetooth SIM card, improve user's Usage experience.
Description of the drawings
Fig. 1 is matching method one embodiment schematic diagram of the embodiment of the present application bluetooth SIM card;
Fig. 2 is one embodiment schematic diagram of the embodiment of the present application bluetooth master;
Fig. 3 is another embodiment schematic diagram of the embodiment of the present application bluetooth master.
Specific implementation mode
The embodiment of the present application provides a kind of matching method and bluetooth master of bluetooth SIM card, for making user fast The pairing for establishing bluetooth master and bluetooth SIM card of speed, improves the usage experience of user.
For ease of understanding, the detailed process in the embodiment of the present application is described below, referring specifically to Fig. 1:
101, bluetooth master reads wireless signal threshold value R;
Bluetooth master reads the wireless signal threshold value R stored in the bluetooth master and opens Bluetooth function, this is wireless Signal refers to received signal intensity instruction (Received Signal Strength Indication, RSSI), can be blue Tooth main equipment is read from the non-volatile memory modules of the bluetooth master, which may include:Only Read memory (ROM), electrically erasable programmable read-only memory (EEPROM), fast flash memory bank or other memory techniques etc..It is blue Tooth main equipment is opened Bluetooth function and is scanned to the Bluetooth slave devices of surrounding, if other existing bluetooths around bluetooth master Bluetooth function is also opened from equipment, i.e., externally carries out broadcast data packet, other are blue then bluetooth equipment can scan this Tooth can also get the broadcast data packet that around Bluetooth slave devices are externally sent from equipment.
It should be noted that in some embodiments of the application, when bluetooth master opens Bluetooth function, can touch Timer on hair bluetooth master starts timing, and when timing reaches preset duration T, which can close bluetooth work( Can, stop the scanning to Bluetooth slave devices.
It should also be noted that, the bluetooth master is the Bluetooth terminal equipment that can install bluetooth SIM card, can be hand The intelligent mobile terminals such as machine, tablet computer, PC, POS machine, which can also be smartwatch, phone wrist-watch etc., can intelligently wear Equipment is worn, as long as the equipment that can be installed bluetooth SIM card, and have Bluetooth function belongs to bluetooth master described herein The range of definition of equipment, does not limit specifically herein.
It should also be noted that, the wireless signal threshold value R that bluetooth master is read on bluetooth master can be in bluetooth Before main equipment opens Bluetooth function, it can also be after bluetooth master opens Bluetooth function, can also be in bluetooth master Equipment opens Bluetooth function while reading the wireless signal threshold value R on bluetooth master, does not limit herein specifically.
102, the wireless signal numerical value Rx of Bluetooth slave devices is calculated in bluetooth master from broadcast data packet;
After bluetooth master opens Bluetooth function and gets the broadcast data packet that Bluetooth slave devices are externally sent, it will The wireless signal numerical value Rx of Bluetooth slave devices is calculated from obtained broadcast data packet.
It should be noted that in some embodiments of the application, it is external that bluetooth master gets Bluetooth slave devices After the broadcast data packet of transmission, the wireless communication number in addition to Bluetooth slave devices can be calculated from obtained broadcast data packet Value Rx can also carry out characteristic value filtering to broadcast data packet, so that bluetooth master all is opened according to characteristic value from neighbouring It has opened and has filtered out qualified same type of Bluetooth slave devices in the bluetooth equipment of Bluetooth function.Such as:Bluetooth master It is worth characterized by PID (i.e. the ID of supplier) and VID (i.e. product ID), to all broadcast data packets for getting with this After two characteristic values are filtered, then bluetooth master is last only to retain the identical indigo plants of PID and VID in broadcast data packet The information of tooth equipment, and other information is all filtered out.Other information, which is then considered, not to be target producer or is not same type The bluetooth equipment of type, this is because the same type of bluetooth equipment PID and VID of same producer is identical, only bluetooth is set Standby MAC value is different.After carrying out characteristic value filtering to broadcast data packet, following bluetooth master will be from filtered broadcast The MAC value of Bluetooth slave devices is got in data packet and is saved.
103, when wireless signal numerical value Rx meets preset condition, bluetooth master determines that Bluetooth slave devices are to be installed on indigo plant Bluetooth SIM card in tooth main equipment;
When the wireless signal numerical value Rx for the Bluetooth slave devices that bluetooth master is got meets preset condition, then bluetooth Main equipment is assured that the bluetooth SIM card that the Bluetooth slave devices are mounted in the bluetooth master.
It should be noted that in the embodiment of the present application, wireless signal numerical value Rx whether meet preset condition can have it is more Kind discriminant approach, specifically can be as follows:
Mode 1:Wireless signal threshold value R=0, and Rx is in all wireless signal numerical value set that bluetooth master is got Maximum value.
When wireless signal threshold value R is zero and wireless signal numerical value Rx is institute that bluetooth master is got in preset time When having the maximum value in wireless signal numerical value set, then bluetooth master determines that the Bluetooth slave devices are to be installed on bluetooth master In bluetooth SIM card.
The case where this never established bluetooth connection before being the bluetooth master with other Bluetooth slave devices, at this time wirelessly The initial value of signal threshold value R could be provided as 0dbm, initial as wireless signal threshold value R this is because RSSI value is negative value When value is set as 0dbm, the initial value of wireless signal threshold value R is more than any RSSI value.
When Rx is the largest in the set of the wireless signal numerical value for all Bluetooth slave devices that bluetooth master is got, then Bluetooth master determines that the corresponding Bluetooth slave devices of the maximum wireless signal numerical value Rx are the indigo plant being installed in bluetooth master Tooth SIM card.For example, when bluetooth master is scanned to 4 Bluetooth slave devices, it is respectively:Mobile phone, tablet, Baffle Box of Bluetooth, installation The bluetooth SIM card for powering on and being initialized in bluetooth master.So it is corresponding wireless will also to obtain mobile phone for bluetooth master The corresponding wireless signal numerical value (being denoted as R3) of signal numerical value (being denoted as R4), tablet, the corresponding wireless signal numerical value of Baffle Box of Bluetooth (note For R2), the corresponding wireless signal numerical value (being denoted as R1) of bluetooth SIM card, bluetooth master can by R1, R2, R3 for scanning and R4 is arranged according to size order, it is assumed that R1 > R2 > R3 > R4, then will therefrom to choose maximum value R1 true for bluetooth master It is set to Rx, and is construed as the Bluetooth slave devices being connect with the mobile phone, that is, is installed in the bluetooth master and powers on simultaneously The bluetooth SIM card being initialized.
It should be noted that in some embodiments of the application, bluetooth master, which obtains Bluetooth slave devices, to be It is obtained in preset duration T, is more than preset duration T, bluetooth master will not continue to obtain wireless signal numerical value.
In some embodiments of the application, it is determined that the Bluetooth slave devices are the indigo plant being installed in the bluetooth master After tooth SIM card, wireless signal threshold value R will be also updated, that is, it is newest threshold value to preserve above-mentioned wireless signal numerical value Rx, and is remembered The MAC value of above-mentioned bluetooth SIM under record.It should be noted that bluetooth master updates the wireless signal threshold value R and preserves the indigo plant There is no point of sequencing between the MAC value of tooth SIM card, can first update wireless signal threshold value R to preserve bluetooth SIM again The MAC value of card can also be first to preserve the MAC value of the bluetooth SIM card to update wireless signal threshold value R again, not do herein specifically It limits.
Mode 2:Wireless signal threshold value R ≠ 0, and Rx >=R.
When the wireless signal threshold value R be not zero and the wireless signal numerical value Rx be not less than the wireless signal threshold value R When, then the bluetooth master determines that institute's Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
The case where this established bluetooth connection before being the bluetooth master with bluetooth SIM card.Work as bluetooth master After closing Bluetooth function, if being again turned on Bluetooth function, also need to re-establish the connection with bluetooth SIM card.Due to Wireless signal threshold value R ≠ 0 when having had updated wireless signal threshold value R when primary foundation connection, therefore being again coupled to.At this point, blue Tooth main equipment is compared once the wireless signal numerical value for getting Bluetooth slave devices with the wireless signal threshold value R to prestore, such as Wireless signal numerical value Rx >=R that fruit gets, so that it may further to compare the corresponding MAC values of Rx MAC value corresponding with R.If The MAC value of the two is consistent, then it is assumed that the corresponding Bluetooth slave devices of the Rx were established with bluetooth master before being and connect Bluetooth SIM card, then bluetooth master can be directly attached with it.Threshold value R can also be further updated, that is, is preserved It is newest threshold value to state wireless signal numerical value Rx, and update mode is similar with mode 1, and details are not described herein again;If the MAC value of the two It is inconsistent, then it is assumed that the corresponding Bluetooth slave devices of the Rx established the bluetooth SIM card connecting with bluetooth master before not being, i.e., Bluetooth master has replaced the bluetooth SIM card being fitted into, then bluetooth master is just carried out with the bluetooth SIM card of the replacement Connection.Similarly, bluetooth master still can further update threshold value R and MAC value, that is, preserve above-mentioned wireless signal numerical value Rx is newest threshold value and preserves the new corresponding MAC value of bluetooth SIM card, and update mode is similar with mode 1, no longer superfluous herein It states.
It should be noted that in some embodiments of the application, bluetooth master, which obtains Bluetooth slave devices, to be It is obtained in preset duration T, is more than preset duration T, bluetooth master will not continue to obtain wireless signal numerical value.
Mode 3:Wireless signal threshold value R ≠ 0, Rx are in all wireless signal numerical value set that bluetooth master is got Maximum value and Rx < R.
When the wireless signal threshold value R is not zero, the wireless signal numerical value Rx be the bluetooth master when default In maximum value in all wireless signal numerical value set for getting and when the Rx < R, then the bluetooth master determines The Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
The case where this established bluetooth connection before being still the bluetooth master with bluetooth SIM card.Unlike, If the wireless signal numerical value for all Bluetooth slave devices that the bluetooth master obtains is all than the wireless signal threshold value R to prestore before It is small, then the wireless signal numerical value that these get can be put into list by the bluetooth master, then compare these wireless communications The size of number value, and the maximum Rx of wireless signal numerical value is therefrom found, Bluetooth slave devices corresponding with the Rx are determined as pacifying Loaded on the bluetooth SIM card in the bluetooth master.
It should be noted that in some embodiments of the application, bluetooth master, which obtains Bluetooth slave devices, to be It is obtained in preset duration T, is more than preset duration T, bluetooth master will not continue to obtain wireless signal numerical value.
In some embodiments of the application, it is determined that the Bluetooth slave devices are the indigo plant being installed in the bluetooth master After tooth SIM card, the wireless signal threshold value will be also updated, that is, it is newest threshold value to preserve above-mentioned wireless signal numerical value Rx, and is remembered The MAC value of above-mentioned bluetooth SIM under record.It should be noted that bluetooth master updates the wireless signal threshold value and preserves the indigo plant There is no point of sequencing between the MAC value of tooth SIM card, can first update the wireless signal threshold value to preserve bluetooth SIM again The MAC value of card can also be first to preserve the MAC value of the bluetooth SIM card to update the wireless signal threshold value again, not limit herein specifically It is fixed.
104, bluetooth master and bluetooth SIM card carry out Bluetooth pairing.
After bluetooth master determines the bluetooth SIM card being installed in the bluetooth master, it will with bluetooth SIM Card carries out Bluetooth pairing.
In the embodiment of the present application, bluetooth master reads the wireless signal threshold value R on bluetooth master, and opens bluetooth Function;Later, bluetooth master obtains the broadcast data packet that Bluetooth slave devices are externally sent, and further from the broadcast data packet In the wireless signal numerical value Rx of Bluetooth slave devices is calculated;When wireless signal numerical value Rx meets preset condition, then bluetooth master Equipment determines that Bluetooth slave devices are the bluetooth SIM card being installed in bluetooth master;Bluetooth master carries out blue with bluetooth SIM card Tooth matches.In the embodiment of the present application, bluetooth master by be arranged wireless signal threshold value R, obtain wireless signal numerical value Rx with And the magnitude relationship between wireless signal threshold value R and wireless signal numerical value Rx is determined to make bluetooth master quickly determine installation Bluetooth SIM card in the bluetooth master so that user can quickly establish matching between bluetooth master and bluetooth SIM card It is right, improve the usage experience of user.
The matching method of bluetooth SIM card is illustrated in the corresponding embodiments of Fig. 1, below in the embodiment of the present application Bluetooth master illustrates, and referring specifically to Fig. 2, one embodiment of the embodiment of the present application bluetooth master includes:
Reading unit 201, for reading the wireless signal threshold value R on the bluetooth master;
Opening unit 202, for opening Bluetooth function;
First acquisition unit 203, the broadcast data packet externally sent for obtaining Bluetooth slave devices;
Computing unit 204, the wireless communication number for the Bluetooth slave devices to be calculated from the broadcast data packet Value Rx;
Determination unit 205, for when the wireless signal numerical value Rx meets preset condition, determining the Bluetooth slave devices To be installed on the bluetooth SIM card in the bluetooth master;
Pairing unit 206, for carrying out Bluetooth pairing with the bluetooth SIM card.
It should be noted that in some embodiments of the application, reading unit 201 can opening unit 202 it Before, it can not also specifically be limited herein after opening unit 202.
In some embodiments of the application, which can also include:
Filter element 207, for carrying out characteristic value filtering to the broadcast data packet, so that all Bluetooth slave devices are Qualified same type of bluetooth equipment;
Second acquisition unit 208, the MAC for obtaining the Bluetooth slave devices from the filtered broadcast data packet Value.
It should be noted that filter element 207 and second acquisition unit 208 can be first acquisition unit 203 it Afterwards, can also be not limited herein specifically after computing unit 204.
It should be noted that in some embodiments of the application, the determination unit 205 is particularly used in:
When the wireless signal threshold value R is zero and the wireless signal numerical value Rx is the bluetooth master in preset time When maximum value in all wireless signal numerical value set inside got, then the bluetooth master determines the Bluetooth slave devices To be installed on the bluetooth SIM card in the bluetooth master;
Or,
When the wireless signal threshold value R be not zero and the wireless signal numerical value Rx be not less than the wireless signal threshold value R When, then the bluetooth master determines that institute's Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master;
Or,
When the wireless signal threshold value R is not zero, the wireless signal numerical value Rx be the bluetooth master when default In maximum value in all wireless signal numerical value set for getting and when the Rx < R, then the bluetooth master determines The Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
In some embodiments of the application, bluetooth master can also include:
Updating unit 209, for updating the wireless signal threshold value R;
Storage unit 210, the MAC value for preserving the bluetooth SIM card.
It should be noted that in some embodiments of the application, updating unit 209 can storage unit 210 it Before, it can not also specifically be limited herein after storage unit 210.
It should also be noted that, in some embodiments of the application, the updating unit 209 specifically can be used for:
The bluetooth master preserves the wireless signal numerical value Rx with after the bluetooth SIM card successful matching;
The Rx is stored as updated wireless signal threshold value.
Above figure 2 respectively retouches the bluetooth master in the embodiment of the present invention from the angle of modular functionality entity It states, the bluetooth master in the embodiment of the present invention is described in detail from the angle of hardware handles below, referring to Fig. 3, this 300 one embodiment of inventive embodiments bluetooth master includes:
(the wherein quantity of processor 303 can be with for input unit 301, output device 302, processor 303 and memory 304 One or more, in Fig. 3 by taking a processor 303 as an example).In some embodiments of the invention, input unit 301, output Device 302, processor 303 and memory 304 can be connected by bus or other means, wherein to be connected by bus in Fig. 3 For.
It can include kernel in processor 303, be gone in memory 304 to transfer corresponding program unit by kernel.Kernel can One or more is arranged, user data is updated by adjusting kernel parameter.
Memory 304 may include the volatile memory in computer-readable medium, random access memory (RAM) And/or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one Storage chip.
Wherein, pass through the operational order for calling memory 304 to store, processor 303, for executing the corresponding implementations of Fig. 1 The step of needing bluetooth master to execute in example.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be the indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the whole of the application Fig. 1 embodiment the methods Or part steps.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (english abbreviation:ROM, English are complete Claim:Read-Only Memory), random access memory (english abbreviation:RAM, full name in English:Random Access Memory), the various media that can store program code such as magnetic disc or CD.
The above, above example are only to illustrate the technical solution of the application, rather than its limitations;Although with reference to before Embodiment is stated the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to preceding The technical solution recorded in each embodiment is stated to modify or equivalent replacement of some of the technical features;And these Modification or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (12)

1. a kind of matching method of bluetooth SIM card, which is characterized in that including:
Bluetooth master reads the wireless signal threshold value R on the bluetooth master;
The bluetooth master opens Bluetooth function;
The bluetooth master obtains the broadcast data packet that Bluetooth slave devices are externally sent;
The wireless signal numerical value Rx of the Bluetooth slave devices is calculated in institute's bluetooth master from the broadcast data packet;
When the wireless signal numerical value Rx meets preset condition, then the bluetooth master determines that the Bluetooth slave devices are peace Loaded on the bluetooth SIM card in the bluetooth master;
The bluetooth master carries out Bluetooth pairing with the bluetooth SIM card.
2. according to the method described in claim 1, it is characterized in that, obtaining the Bluetooth slave devices pair in the bluetooth master After the broadcast data packet of outer transmission, the method further includes:
The bluetooth master carries out characteristic value filtering to the broadcast data packet, so that all Bluetooth slave devices are to meet item The same type of bluetooth equipment of part;
The bluetooth master obtains the MAC value of the Bluetooth slave devices from the filtered broadcast data packet.
3. according to the method described in claim 2, it is characterized in that, when the wireless signal numerical value Rx meets preset condition, Then the bluetooth master determines that the Bluetooth slave devices are that the bluetooth SIM card being installed in the bluetooth master includes:
When the wireless signal threshold value R is zero and the wireless signal numerical value Rx is that the bluetooth master obtains in preset duration When maximum value in all wireless signal numerical value set got, then the bluetooth master determines that the Bluetooth slave devices are peace Loaded on the bluetooth SIM card in the bluetooth master.
4. according to the method described in claim 2, it is characterized in that, when the wireless signal numerical value Rx meets preset condition, Then the bluetooth master determines that the Bluetooth slave devices are that the bluetooth SIM card being installed in the bluetooth master includes:
When the wireless signal threshold value R is not zero and the wireless signal numerical value Rx is not less than the wireless signal threshold value R, then The bluetooth master determines that institute's Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
5. according to the method described in claim 2, it is characterized in that, when the wireless signal numerical value Rx meets preset condition, Then the bluetooth master determines that the Bluetooth slave devices are that the bluetooth SIM card being installed in the bluetooth master includes:
When the wireless signal threshold value R is not zero, the wireless signal numerical value Rx be the bluetooth master in preset time Maximum value in all wireless signal numerical value set got and when the Rx < R, then described in the bluetooth master determines Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
6. according to the method described in any one of claim 2-5, which is characterized in that when the bluetooth master determines the indigo plant After equipment is the bluetooth SIM card being installed in the bluetooth master, the method further includes tooth:
The bluetooth master updates the wireless signal threshold value R;
The bluetooth master preserves the MAC value of the bluetooth SIM card.
7. according to the method described in any one of claim 2-5, which is characterized in that the bluetooth master update is described wireless Signal threshold value R includes:
The bluetooth master preserves the wireless signal numerical value Rx with after the bluetooth SIM card successful matching;
The bluetooth master stores the Rx as updated wireless signal threshold value.
8. a kind of bluetooth master, which is characterized in that including:
Reading unit, for reading the wireless signal threshold value R on the bluetooth master;
Opening unit, for opening Bluetooth function;
First acquisition unit, the broadcast data packet externally sent for obtaining Bluetooth slave devices;
Computing unit, the wireless signal numerical value Rx for the Bluetooth slave devices to be calculated from the broadcast data packet;
Determination unit, for when the wireless signal numerical value Rx meets preset condition, determining that the Bluetooth slave devices are installation Bluetooth SIM card in the bluetooth master;
Pairing unit, for carrying out Bluetooth pairing with the bluetooth SIM card.
9. bluetooth master according to claim 8, which is characterized in that the bluetooth master further includes:
Filter element, for carrying out characteristic value filtering to the broadcast data packet, so that all Bluetooth slave devices are to meet item The same type of bluetooth equipment of part;
Second acquisition unit, the MAC value for obtaining the Bluetooth slave devices from the filtered broadcast data packet.
10. bluetooth master according to claim 9, which is characterized in that the determination unit is particularly used in:
When the wireless signal threshold value R is zero and the wireless signal numerical value Rx is that the bluetooth master obtains in preset time When maximum value in all wireless signal numerical value set got, then the bluetooth master determines that the Bluetooth slave devices are peace Loaded on the bluetooth SIM card in the bluetooth master;
Or,
When the wireless signal threshold value R is not zero and the wireless signal numerical value Rx is not less than the wireless signal threshold value R, then The bluetooth master determines that institute's Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master;
Or,
When the wireless signal threshold value R is not zero, the wireless signal numerical value Rx be the bluetooth master in preset time Maximum value in all wireless signal numerical value set got and when the Rx < R, then described in the bluetooth master determines Bluetooth slave devices are the bluetooth SIM card being installed in the bluetooth master.
11. according to the bluetooth master described in any one of claim 9-10, which is characterized in that the bluetooth master also wraps It includes:
Updating unit, for updating the wireless signal threshold value R;
Storage unit, the MAC value for preserving the bluetooth SIM card.
12. according to the bluetooth master described in any one of claim 9-10, which is characterized in that the updating unit is specifically used In:
The bluetooth master preserves the wireless signal numerical value Rx with after the bluetooth SIM card successful matching;
The Rx is stored as updated wireless signal threshold value.
CN201810362141.6A 2018-04-20 2018-04-20 Bluetooth SIM card pairing method and Bluetooth master device Active CN108521647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810362141.6A CN108521647B (en) 2018-04-20 2018-04-20 Bluetooth SIM card pairing method and Bluetooth master device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810362141.6A CN108521647B (en) 2018-04-20 2018-04-20 Bluetooth SIM card pairing method and Bluetooth master device

Publications (2)

Publication Number Publication Date
CN108521647A true CN108521647A (en) 2018-09-11
CN108521647B CN108521647B (en) 2021-06-25

Family

ID=63428927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810362141.6A Active CN108521647B (en) 2018-04-20 2018-04-20 Bluetooth SIM card pairing method and Bluetooth master device

Country Status (1)

Country Link
CN (1) CN108521647B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495983A (en) * 2018-12-27 2019-03-19 上海乐今通信技术有限公司 A method of it is communicated for multiple equipment of the same race with host computer
CN110958594A (en) * 2019-12-18 2020-04-03 深圳市芯中芯科技有限公司 Effectiveness filtering method for searching Bluetooth BLE equipment
CN112788579A (en) * 2020-12-31 2021-05-11 厦门亿联网络技术股份有限公司 Method and device for quickly pairing dual-mode Bluetooth equipment
CN115474164A (en) * 2022-08-17 2022-12-13 上海磐启微电子有限公司 Bluetooth broadcast filtering method and system
WO2024046481A1 (en) * 2022-09-02 2024-03-07 深圳迈瑞生物医疗电子股份有限公司 Mobile monitoring device and wireless pairing method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348524A (en) * 2013-07-26 2015-02-11 施耐德电气(澳大利亚)有限公司 Binding method, center equipment and peripheral equipment
US20160073218A1 (en) * 2014-09-04 2016-03-10 Quanta Computer Inc. Method and system for establishing a bluetooth connection
CN105516902A (en) * 2015-12-22 2016-04-20 惠州Tcl移动通信有限公司 Method and system for Bluetooth connection and Bluetooth device
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN107249170A (en) * 2017-06-13 2017-10-13 天地融科技股份有限公司 A kind of method and system of bluetooth equipment secure communication
CN107257516A (en) * 2017-07-17 2017-10-17 湖南海翼电子商务股份有限公司 Wireless headset and its matching method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348524A (en) * 2013-07-26 2015-02-11 施耐德电气(澳大利亚)有限公司 Binding method, center equipment and peripheral equipment
US20160073218A1 (en) * 2014-09-04 2016-03-10 Quanta Computer Inc. Method and system for establishing a bluetooth connection
CN105516896A (en) * 2015-12-02 2016-04-20 惠州Tcl移动通信有限公司 Bluetooth interconnection method and system for wearable device and mobile terminal
CN105516902A (en) * 2015-12-22 2016-04-20 惠州Tcl移动通信有限公司 Method and system for Bluetooth connection and Bluetooth device
CN107249170A (en) * 2017-06-13 2017-10-13 天地融科技股份有限公司 A kind of method and system of bluetooth equipment secure communication
CN107257516A (en) * 2017-07-17 2017-10-17 湖南海翼电子商务股份有限公司 Wireless headset and its matching method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109495983A (en) * 2018-12-27 2019-03-19 上海乐今通信技术有限公司 A method of it is communicated for multiple equipment of the same race with host computer
CN110958594A (en) * 2019-12-18 2020-04-03 深圳市芯中芯科技有限公司 Effectiveness filtering method for searching Bluetooth BLE equipment
CN110958594B (en) * 2019-12-18 2023-05-12 深圳市芯中芯科技有限公司 Effectiveness filtering method for searching Bluetooth BLE equipment
CN112788579A (en) * 2020-12-31 2021-05-11 厦门亿联网络技术股份有限公司 Method and device for quickly pairing dual-mode Bluetooth equipment
CN115474164A (en) * 2022-08-17 2022-12-13 上海磐启微电子有限公司 Bluetooth broadcast filtering method and system
WO2024046481A1 (en) * 2022-09-02 2024-03-07 深圳迈瑞生物医疗电子股份有限公司 Mobile monitoring device and wireless pairing method thereof

Also Published As

Publication number Publication date
CN108521647B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN108521647A (en) A kind of matching method and bluetooth master of bluetooth SIM card
CN104700268B (en) A kind of method of mobile payment and mobile device
EP3021452A1 (en) Electronic device and battery charge/discharge control method thereof
EP3754858B1 (en) Electronic device for selecting antenna to support designated radio communication among plurality of antennas
EP3371851B1 (en) Antenna structure and electronic device including the same
CN107526609A (en) Electronic equipment including EUICC and the method for operating the electronic equipment
CN107367327A (en) Calibration method, device, mobile terminal and the readable storage medium storing program for executing of optical sensor
CN111416412B (en) Charging control method and device and terminal equipment
CN108650692B (en) Network system switching method and device and intelligent wearable device
CN107171412A (en) Method, device, mobile terminal and the storage medium of dynamic adjustment charging current
CN105940614B (en) Device and method for providing communication
CN104375748A (en) Rapid terminal application program attribute setting method and corresponding terminal
CN107979515A (en) A kind of control method of intelligent appliance, terminal device and storage medium
CN107153576A (en) The distribution method and terminal device of a kind of memory source
CN106462187A (en) Detachable electronic device
CN106412033A (en) Data migration method and terminal
CN107135037A (en) Radio frequency interference processing method, device, computer-readable recording medium and terminal
CN107425568A (en) Prevent battery from crossing the method, apparatus put, mobile terminal and storage medium
CN106254791A (en) The startup method of photographic head and mobile terminal
CN107480998A (en) Information processing method and related product
CN106339617A (en) Unlocking method and unlocking device of terminal equipment
CN107979863A (en) A kind of WiFi automatic connection methods, system and terminal device
CN108255461A (en) A kind of control method of mobile terminal, mobile terminal and storage medium
CN104978027A (en) Information processing method and wearable electronic device
CN105517125B (en) Frequency range processing method, device and communication terminal in a kind of communication terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant