CN103888173B - A kind of Bluetooth pairing methods and system easily directly perceived - Google Patents

A kind of Bluetooth pairing methods and system easily directly perceived Download PDF

Info

Publication number
CN103888173B
CN103888173B CN201410119523.8A CN201410119523A CN103888173B CN 103888173 B CN103888173 B CN 103888173B CN 201410119523 A CN201410119523 A CN 201410119523A CN 103888173 B CN103888173 B CN 103888173B
Authority
CN
China
Prior art keywords
bluetooth
display
pairing
display device
information
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.)
Active
Application number
CN201410119523.8A
Other languages
Chinese (zh)
Other versions
CN103888173A (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.)
Peking University
Original Assignee
Peking University
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 Peking University filed Critical Peking University
Priority to CN201410119523.8A priority Critical patent/CN103888173B/en
Publication of CN103888173A publication Critical patent/CN103888173A/en
Application granted granted Critical
Publication of CN103888173B publication Critical patent/CN103888173B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of Bluetooth pairing methods and system easily directly perceived.The step of the method comprises: 1) the bluetooth title of self, Bluetooth address are become bit stream information with the PIN code needed for pairing by code conversion by first device, it can be used as the effective information of Frame, and then forms Bluetooth pairing Frame; 2) first device represents the bit stream information of described Bluetooth pairing Frame by the different display modes of its display device, and the second device utilizes the display device of picture pick-up device to first device to record a video simultaneously, obtains the bright dark information of display device; 3) the display information of the second device to display device is decoded, and obtains the bluetooth title of first device, Bluetooth address and the PIN code needed for pairing, and then completes and be connected with the Bluetooth pairing of first device.Present invention eliminates the process of the search equipment of conventional Bluetooth, saved the time, improve convenience and the visuality of Bluetooth pairing processes.

Description

A kind of Bluetooth pairing methods and system easily directly perceived
Technical field
The present invention relates to a kind of Bluetooth pairing methods easily directly perceived, be specifically related to display lamp and the method for supporting to carry out between the mobile terminal such as the embedded device that bluetooth connects and smart mobile phone Bluetooth pairing, and adopt the system of the method.
Background technology
Along with the high speed development of technology of Internet of things, increasing embedded type sensor arises at the historic moment, and short-distance wireless communication is widely used on these embedded type sensors.Short-distance wireless communication means main at present have bluetooth, WIFI, ZIGBEE etc., due to present most mobile phone, notebook computer all supports Bluetooth communication, and increasing bluetooth peripheral hardware is universal simultaneously, makes Bluetooth communication in short-distance wireless communication, occupy very important status.
Along with popularizing of smart mobile phone, embedded type sensor and smart mobile phone pass through the interconnected more and more common of bluetooth.One of them important application is exactly: embedded type sensor by the information that collects by Bluetooth transmission to smart mobile phone, show the information collected at smart mobile phone end, then be transferred to background server by smart mobile phone, do corresponding data analysis.
Embedded device and smart mobile phone are set up bluetooth and are connected and need to experience search equipment and connect pairing process.Bluetooth host search refers to bluetooth that the bluetooth equipment search as main frame around can the be found process from machine, and this process can spend the regular hour.Generally speaking smart mobile phone can as bluetooth host, and embedded device can as bluetooth from machine.Bluetooth connects pairing and refers to bluetooth host and from machine, select from the bluetooth searched want to connect bluetooth equipment, input is with the measured pairing code (PIN code) of bluetooth equipment business that will match and mutually confirm from machine, completes the process that bluetooth connects after confirmation.Due to bluetooth host pairing process need select to match from machine, and input PIN code, increase the Operating Complexity of Bluetooth pairing processes.
At present, also have and communicated by NFC, after exchanging the information of Bluetooth pairing needs, directly using the method for Bluetooth pairing, but this needs system to increase the module supporting NFC communication.
Summary of the invention
For overcoming the problems referred to above, the present invention proposes a kind of method of carrying out Bluetooth pairing easily directly perceived, being applicable between the mobile terminal such as embedded device and smart mobile phone.
Principle of the present invention is, make to carry out in two devices of Bluetooth pairing, one of them device such as embedded device can demonstrate bluetooth title, Bluetooth address and the PIN code of oneself by specific mode, another device such as smart mobile phone is captured, this smart mobile phone there is corresponding software can extract these information simultaneously, certainly employ these information of input and complete Bluetooth pairing connection.
Specifically, the technical solution used in the present invention is as follows:
A kind of directly perceived Bluetooth pairing methods easily, is applicable to the first device that has display device and bluetooth equipment, and the second device that has picture pick-up device and a bluetooth equipment, and the step of the method comprises:
1) the bluetooth title of self, Bluetooth address are become bit stream information with the PIN code needed for pairing by code conversion by first device, it can be used as the effective information of Frame, and then form Bluetooth pairing Frame;
2) first device represents the bit stream information of described Bluetooth pairing Frame by the different display modes of its display device, and the second device utilizes the display device of picture pick-up device to first device to record a video simultaneously, obtains the display information of display device;
3) the display information of the second device to display device is decoded, and obtains the bluetooth title of first device, Bluetooth address and the PIN code needed for pairing, and then completes and be connected with the Bluetooth pairing of first device.
Further, described first device is embedded device, as various embedded type sensor; Described second device is mobile terminal, as smart mobile phone, panel computer etc.; Described display device is display lamp; Described picture pick-up device is camera.
Further, the different display modes of described display device can be the different exposure intensities (luminous intensity) of display device, the different colours etc. of display device display.Wherein exposure intensity can adopt bright dark mode, as bright expression 1, and dark expression 0 etc.; Can be divided into more multistage form, as the brightest expression 11, secondary bright expression 10, general bright expression 01, do not work (secretly) expression 00 etc. yet.
Further, step 1) increases data frame head and check information on the basis of the effective information of described Frame, to form described Bluetooth pairing Frame.Described data frame head comprise Frame homing sequence and with information bit quantity; Described check information is used for preventing transfer of data from makeing mistakes.
Further, unipolarity NRZ, unipolarity NRZ etc. is adopted to carry out Code And Decode.Concrete, FSK(frequency keying can be adopted), ASK(amplitude-shift keying), or baseband coding: RZ(NRZ), PPM(pulse position modulation), PWM(pulse-width modulation) etc.
Further, described first device is embedded type sensor, and described Bluetooth pairing Frame can be expanded according to actual needs, not only only represents Bluetooth information, can also add some other data messages.Such as, this embedded type sensor is one and gathers cardiac electrical equipment, then the heart rate collected can be added paired data frame, the second device adopts smart mobile phone, and cellphone subscriber directly can obtain the heart rate that electrocardiogram acquisition extracts accordingly.
Adopt a Bluetooth pairing system for said method, it comprises the first device that has display device and bluetooth equipment, and the second device that has picture pick-up device and a bluetooth equipment;
The bluetooth title of self, Bluetooth address are become bit stream information with the PIN code needed for pairing by code conversion by described first device, form complete Bluetooth pairing Frame, and represent the bit stream information of described Bluetooth pairing Frame by the different display modes of its display device; Described second device utilizes the display device of picture pick-up device to first device to record a video, PIN code needed for the bluetooth title obtaining first device by decoding to the display information of display device, Bluetooth address and pairing, and then complete and be connected with the Bluetooth pairing of first device.
Compared with prior art, the present invention has following advantage:
First, eliminate the process of the search equipment of conventional Bluetooth, save the time.
The second, eliminate bluetooth host and select pairing from the process of machine, improve the convenience of pairing process.
3rd, by the video recording of the mobile intelligent terminals such as smart mobile phone to embedded device display lamp, then complete Bluetooth pairing, connection procedure adds the visuality of pairing process one to one, makes pairing process more directly perceived.
Accompanying drawing explanation
Fig. 1 is embedded device and smart mobile phone schematic diagram.
Fig. 2 is Bluetooth pairing data frame structure schematic diagram.
Fig. 3 is the pairing process schematic side view of embedded device of the present invention and smart mobile phone.
Fig. 4 is smart mobile phone end display schematic diagram in pairing process of the present invention.
Embodiment
Content of the present invention is further described below by embodiment and accompanying drawing, but the protection range do not limited the present invention in any way.
Figure 1 shows that the equipment schematic diagram needing to carry out bluetooth connection, wherein (a), (b), (c) are respectively embedded device, the front of smart mobile phone, the back side of smart mobile phone.The inventive method is mainly applicable to carry out Bluetooth pairing between embedded device and intelligent mobile terminal.In the present embodiment, embedded device is with display lamp and support Bluetooth communication, and intelligent mobile terminal is smart mobile phone, supports Bluetooth communication with camera.The concrete steps of carrying out bluetooth connection are as follows:
1) embedded device generates Bluetooth pairing Frame.
Embedded device converts the PIN code needed for the bluetooth title of oneself, Bluetooth address and pairing to bit stream information by specific coded system, i.e. the effective information of Frame; And then add data frame head by before this data message, data frame head comprise Frame homing sequence and with information bit quantity; Finally add that check information prevents transfer of data from makeing mistakes at the end of information, a complete Bluetooth pairing Frame completes, as shown in Figure 2.
2) embedded device is showed Bluetooth pairing Frame by bright dark mode by the display lamp carried, and smart mobile phone end utilizes camera to record a video simultaneously, and extracts the bright dark information of display lamp.
Because Frame is bit stream information, as made the bright expression 1 of display lamp, display lamp secretly represents 0.Smart mobile phone end can design special software, and when smart mobile phone is wanted to match with embedded device, open this software, this software can be opened camera and record a video.Software has the picture of a window display current shooting of making a video recording and provides prompting, and grasp as display lamp is at large, camera distance is too far away.User can adjust camera angle and position accordingly, makes display lamp enter the shooting window of this software.Software, according to shooting information, extracts the secretly bright of display lamp, and is converted into bit stream information, carry out error detection and decoding to it, be finally converted to bluetooth title, Bluetooth address and the PIN code of embedded device.The present invention can adopt unipolarity NRZ, unipolarity NRZ etc. to carry out Code And Decode.Concrete, following method can be adopted to carry out Code And Decode: FSK(frequency keying), ASK(amplitude-shift keying), or baseband coding: RZ(NRZ), PPM(pulse position modulation), PWM(pulse-width modulation) etc.
3) smart mobile phone utilizes the bluetooth title of the embedded device obtained, and Bluetooth address and PIN code are set up Bluetooth pairing and be connected.
The bluetooth title of embedded device of software backstage in smart mobile phone by obtaining, Bluetooth address and these information of PIN code are matched with the embedded device of shooting automatically.Shooting window above have current Bluetooth unpaired message to point out, when smart mobile phone and embedded device complete Bluetooth pairing be connected time, it can provide prompting, and then software exits automatically.
Above-described embodiment adopts the bit stream information of the bright dark expression paired data frame of display lamp, in other embodiments, the present invention can also represent the bit stream information of paired data frame with the different colours of the display devices such as display lamp, as represented 1 by redness, and green expression 0 etc.In addition, can also represent the coded message of paired data frame by the different exposure intensities of the display devices such as display lamp, as the brightest expression 11, secondary bright expression 10, general bright expression 01, do not work (secretly) expression 00 etc.
In actual applications, paired data frame can be expanded according to actual needs, not only only represents the Bluetooth information of embedded device, can also add some other data messages.Such as, this embedded device is one and gathers cardiac electrical equipment, then the heart rate collected can be added paired data frame, smart phone user directly can obtain the heart rate that electrocardiogram acquisition extracts accordingly.
Above embodiment is only in order to illustrate technical scheme of the present invention but not to be limited; those of ordinary skill in the art can modify to technical scheme of the present invention or equivalent replacement; and not departing from the spirit and scope of the present invention, protection scope of the present invention should be as the criterion with described in claim.

Claims (10)

1. a Bluetooth pairing methods easily directly perceived, is applicable to the first device that has display device and bluetooth equipment, and the second device that has picture pick-up device and a bluetooth equipment, and described display device is display lamp; The step of the method comprises:
1) the bluetooth title of self, Bluetooth address are become bit stream information with the PIN code needed for pairing by code conversion by first device, it can be used as the effective information of Frame, and then form Bluetooth pairing Frame;
2) first device represents the bit stream information of described Bluetooth pairing Frame by the different display modes of its display device, and the second device utilizes the display device of picture pick-up device to first device to record a video simultaneously, obtains the bright dark information of display device;
3) the display information of the second device to display device is decoded, and obtains the bluetooth title of first device, Bluetooth address and the PIN code needed for pairing, and then completes and be connected with the Bluetooth pairing of first device.
2. the method for claim 1, is characterized in that, the different display modes of described display device be following in one: the different exposure intensities of display device, the different colours of display device display.
3. method as claimed in claim 2, it is characterized in that, the different exposure intensities of described display device are divided into two-stage: bright and dark; Or be divided into level Four: the brightest, secondary bright, generally bright and dark.
4. the method for claim 1, is characterized in that: described first device is embedded device; Described second device is intelligent mobile terminal; Described picture pick-up device is camera.
5. the method for claim 1, is characterized in that: step 1) on the basis of the effective information of described Frame, increase data frame head and check information, to form described Bluetooth pairing Frame; Described data frame head comprise Frame homing sequence and with information bit quantity, described check information is used for preventing transfer of data from makeing mistakes.
6. the method for claim 1, is characterized in that, adopts unipolarity NRZ or unipolarity NRZ to carry out Code And Decode.
7. the method for claim 1, it is characterized in that: described first device is embedded type sensor, step 1) described Bluetooth pairing Frame also comprise this embedded type sensor gather signal data, and through step 2) ~ 3) obtain this signal data at described second device.
8. adopt a Bluetooth pairing system for method described in claim 1, it is characterized in that, comprise the first device that has display device and bluetooth equipment, and the second device that has picture pick-up device and a bluetooth equipment, described display device is display lamp; The bluetooth title of self, Bluetooth address are become bit stream information with the PIN code needed for pairing by code conversion by described first device, form complete Bluetooth pairing Frame, and represent the bit stream information of described Bluetooth pairing Frame by the different display modes of its display device; Described second device utilizes the display device of picture pick-up device to first device to record a video, PIN code needed for the bluetooth title obtaining first device by decoding to the display information of display device, Bluetooth address and pairing, and then complete and be connected with the Bluetooth pairing of first device.
9. system as claimed in claim 8, is characterized in that: the different display modes of described display device be following in one: the different exposure intensities of display device, the different colours of display device display; The different exposure intensities of described display device are divided into two-stage: bright and dark; Or be divided into level Four: the brightest, secondary bright, generally bright and dark.
10. system as claimed in claim 8, is characterized in that: described first device is embedded device; Described second device is intelligent mobile terminal; Described picture pick-up device is camera.
CN201410119523.8A 2014-03-27 2014-03-27 A kind of Bluetooth pairing methods and system easily directly perceived Active CN103888173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410119523.8A CN103888173B (en) 2014-03-27 2014-03-27 A kind of Bluetooth pairing methods and system easily directly perceived

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410119523.8A CN103888173B (en) 2014-03-27 2014-03-27 A kind of Bluetooth pairing methods and system easily directly perceived

Publications (2)

Publication Number Publication Date
CN103888173A CN103888173A (en) 2014-06-25
CN103888173B true CN103888173B (en) 2015-12-09

Family

ID=50956911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410119523.8A Active CN103888173B (en) 2014-03-27 2014-03-27 A kind of Bluetooth pairing methods and system easily directly perceived

Country Status (1)

Country Link
CN (1) CN103888173B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703807B (en) * 2014-11-28 2019-02-12 华为技术有限公司 A kind of Bluetooth pairing methods, apparatus and system
CN104796807B (en) * 2015-02-13 2019-09-27 深圳市冠旭电子股份有限公司 A kind of bluetooth headset, bluetooth headset connection system and connection method
CN110687332A (en) * 2019-11-11 2020-01-14 浙江巨磁智能技术有限公司 Automatic pairing method for switch side active ammeter and circuit breaker

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100800733B1 (en) * 2006-02-08 2008-02-01 삼성전자주식회사 Bluetooth system and bluetooth bonding process method
US8432260B2 (en) * 2010-02-26 2013-04-30 GM Global Technology Operations LLC Simplified vehicle bluetooth pairing employing near field communication tags
CN202276388U (en) * 2010-08-13 2012-06-13 程静 Telephone integrating handset, fixed line telephone, and Internet phone
CN202837901U (en) * 2012-09-04 2013-03-27 葛璇 Wireless control and alarm system based on Bluetooth

Also Published As

Publication number Publication date
CN103888173A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN104869252A (en) Superspeed data transmission mobile terminal based on LiFi
EP3172849A1 (en) Derivation of an identifier encoded in a visible light communication signal
CN103338072B (en) Based on visible light communication and the radio switch-in method of android system
US9800996B2 (en) Machine to machine system, method and server using social network service
WO2018049799A1 (en) Wireless communication method, transmitting device and receiving device
CN103888173B (en) A kind of Bluetooth pairing methods and system easily directly perceived
WO2018036279A1 (en) Method for performing near-field communication using rgb ambient light sensor of mobile terminal
CN103036891A (en) Method and device based on wireless fidelity (Wi-Fi) for accessing to Internet of Things
CN102404321A (en) System and method for synchronizing multi-terminal information
CN105323004A (en) Method, device and system for realizing information transmission based on visible light
CN103888264A (en) Inter-mobile-phone data transferring method based on background data exchange, terminal and system
CN204909416U (en) Medical treatment detecting system based on internet of things
CN103327191B (en) Based on ZigBee-network coherent system and the mobile phone mobile monitor method of voice communication
CN103777565A (en) Intelligent remote switch implementation method based on GSM short message platform
CN104980457A (en) Intelligent electric meter system
CN204316498U (en) A kind of magnetic communication paired communication system based on mobile terminal
CN204925778U (en) Stage multimode cooperative control system
CN106912041A (en) Isolated network operation for public security provides the method and device of assistance information
CN203925486U (en) A kind of oil well condition data-signal transmitting device
CN106130630A (en) A kind of information transmission system
CN103297144A (en) Optical communication method based on USB and launching device
CN203775182U (en) RS232 and infrared communication interface switching circuit capable of automatically taking power
CN112260754A (en) Passive autonomous visible light communication reverse signal link and communication method thereof
CN104618653A (en) Novel Bluetooth self shooting control device
CN204479937U (en) A kind of multimachine wireless telecommunication system for Smart Home Near Field Communication

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant