CN101621314B - Bluetooth mobile phone and pairing and binding method thereof - Google Patents
Bluetooth mobile phone and pairing and binding method thereof Download PDFInfo
- Publication number
- CN101621314B CN101621314B CN2009101623704A CN200910162370A CN101621314B CN 101621314 B CN101621314 B CN 101621314B CN 2009101623704 A CN2009101623704 A CN 2009101623704A CN 200910162370 A CN200910162370 A CN 200910162370A CN 101621314 B CN101621314 B CN 101621314B
- Authority
- CN
- China
- Prior art keywords
- user
- binding
- main equipment
- slave unit
- module
- 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
Links
Images
Classifications
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种蓝牙手机及蓝牙手机配对绑定的方法,涉及蓝牙通信技术领域。作为主设备的蓝牙手机搜索有效区域内可见的作为从设备的蓝牙手机获取从设备的基本信息;从设备向主设备发起请求,获取主设备的用户信息;主设备向从设备发送配对绑定的请求,从设备的用户根据主设备的用户信息判断是否进行配对绑定,由从设备将判断结果反馈给主设备;从设备同意进行配对绑定后,主设备和从设备进行绑定操作。本发明可使广大手机蓝牙的陌生用户之间建立通信,提高了蓝牙手机的趣味性、用户体验水平、以及蓝牙通信的利用率;由于无需硬件改动,在不增加手机成本的基础上,为用户提供了一种新的建立信任通信的方式。
The invention discloses a bluetooth mobile phone and a method for pairing and binding the bluetooth mobile phone, and relates to the technical field of bluetooth communication. The Bluetooth mobile phone as the master device searches for the Bluetooth mobile phone as the slave device visible in the effective area to obtain the basic information of the slave device; the slave device initiates a request to the master device to obtain the user information of the master device; the master device sends a pairing and binding message to the slave device Request, the user of the slave device judges whether to perform pairing and binding according to the user information of the master device, and the slave device feeds back the judgment result to the master device; after the slave device agrees to pair and bind, the master device and the slave device perform the binding operation. The present invention can establish communication among unfamiliar users of bluetooth mobile phones, which improves the fun of bluetooth mobile phones, the level of user experience, and the utilization rate of bluetooth communication. Provides a new way to establish trusted communication.
Description
技术领域 technical field
本发明涉及蓝牙通信技术领域,尤其涉及一种蓝牙手机及蓝牙手机配对绑定的方法。The invention relates to the technical field of bluetooth communication, in particular to a bluetooth mobile phone and a method for pairing and binding the bluetooth mobile phone.
背景技术 Background technique
蓝牙通信技术是一种无线网络技术,最初是由计算机制造商和其它制造商提出,蓝牙无线通信替代了电缆,在计算机、PDA(个人数字助理,PersonalDigital Assistant)、电话和外设之间实现了无线连接。例如,蓝牙设备现在可以用来连接移动电话和免提耳机。自蓝牙技术出现以来,它就给我们设立了更高的目标,使我们可以创建“个人网络(Personal AreaNetworks,PAN)”或“piconets”。Bluetooth communication technology is a wireless network technology originally proposed by computer manufacturers and other manufacturers. Bluetooth wireless communication replaces cables and realizes communication between computers, PDAs (Personal Digital Assistants, Personal Digital Assistants), phones and peripherals. Wireless connections. For example, Bluetooth devices can now be used to connect mobile phones and hands-free headsets. Since its inception, Bluetooth technology has given us a higher purpose, allowing us to create "Personal Area Networks (PAN)" or "piconets".
蓝牙规范包括核心协议(Core)与应用框架(Profiles)两个文件。协议规范部分定义了蓝牙的各层通信协议,应用框架指出了如何采用这些协议实现具体的应用产品。蓝牙协议规范遵循开放系统互连参考模型(Open SystemInterconnection/Referenced Model,OSI/RM),从低到高地定义了蓝牙协议堆栈的各个层次。The Bluetooth specification includes two files, the core protocol (Core) and the application framework (Profiles). The protocol specification part defines the various layers of Bluetooth communication protocols, and the application framework points out how to use these protocols to realize specific application products. The Bluetooth protocol specification follows the Open System Interconnection/Referenced Model (OSI/RM), which defines each level of the Bluetooth protocol stack from low to high.
蓝牙互联需要绑定认证,这就使得互相通讯的用户局限在相互认识的朋友之间,而陌生人之间的相互绑定因不信任和未知绑定密码等原因往往被拒绝。这就使得手机中蓝牙功能的使用局限在相识用户范围内,使得蓝牙的使用价值被大大削弱,更广阔范围内的新功能应用被忽略。Bluetooth interconnection requires binding authentication, which limits the users who communicate with each other to friends who know each other, and the mutual binding between strangers is often rejected due to reasons such as distrust and unknown binding passwords. This makes the use of the Bluetooth function in the mobile phone limited to the range of acquainted users, greatly weakens the use value of Bluetooth, and ignores the application of new functions in a wider range.
目前有些方法用来解决这个问题,例如通过增加射频配对模块进行配对通信;或者通过引出接触点,通过接触快速互传信息进行绑定等。这些方法各有优缺点,但最直接的缺点是增加了硬件成本,增加了软件实现的难度。At present, some methods are used to solve this problem, such as pairing communication by adding a radio frequency pairing module; or binding by leading out contact points and quickly transmitting information through contacts. These methods have their own advantages and disadvantages, but the most direct disadvantage is the increase of hardware cost and the difficulty of software implementation.
假如在公车、地铁等相对固定的区域内的陌生人之间,如果有一种方法可以使得在陌生人之间建立蓝牙绑定时,带有主动发送方的信息(个人资料、目的、共享资源、绑定密码等),且该信息可以由发送方用户编辑生成,那么陌生人之间建立蓝牙通信的可能性大大增加,方便用户之间交友、资源共享等,从而提高手机蓝牙的利用率,提高用户体验效果,在不提高生成成本的前提下,将为用户提供一种崭新的通信方式。If there is a method between strangers in relatively fixed areas such as buses and subways, if there is a way to establish Bluetooth binding between strangers, with the information of the active sender (personal data, purpose, shared resources, Binding password, etc.), and this information can be edited and generated by the sender user, then the possibility of establishing Bluetooth communication between strangers is greatly increased, which is convenient for users to make friends, share resources, etc., thereby improving the utilization rate of mobile phone Bluetooth and improving The user experience effect will provide users with a brand-new communication method without increasing the cost of generation.
发明内容 Contents of the invention
本发明所要解决的技术问题在于,提供一种蓝牙手机及蓝牙手机配对绑定的方法,用于便利实现蓝牙手机之间的绑定操作。The technical problem to be solved by the present invention is to provide a Bluetooth mobile phone and a Bluetooth mobile phone pairing and binding method, which is used to facilitate the realization of the binding operation between the Bluetooth mobile phones.
为了解决上述问题,本发明提出了一种蓝牙手机配对绑定的方法,包括如下步骤:In order to solve the above problems, the present invention proposes a method for pairing and binding a Bluetooth mobile phone, comprising the following steps:
S1、作为主设备的蓝牙手机搜索有效区域内可见的作为从设备的蓝牙手机,主设备向从设备发送通用请求接入码GIAC请求,从设备响应该请求并反馈从设备的基本信息;S1. The Bluetooth mobile phone as the master device searches for the Bluetooth mobile phone as the slave device visible in the effective area, the master device sends a general request access code GIAC request to the slave device, and the slave device responds to the request and feeds back the basic information of the slave device;
S2、所述从设备向主设备发起一个用于获取主设备用户信息的请求,主设备应答并将自己的用户信息反馈给从设备;S2. The slave device initiates a request to the master device for obtaining user information of the master device, and the master device responds and feeds back its own user information to the slave device;
S3、主设备向从设备发送配对绑定的请求,从设备的用户根据主设备的用户信息判断是否进行配对绑定,由从设备将判断结果反馈给主设备;S3. The master device sends a request for pairing and binding to the slave device, and the user of the slave device judges whether to perform pairing and binding according to the user information of the master device, and the slave device feeds back the judgment result to the master device;
S4、从设备同意进行配对绑定后,主设备和从设备进行绑定操作。S4. After the slave device agrees to perform pairing and binding, the master device and the slave device perform a binding operation.
进一步地,步骤S1中,从设备向主设备响应并反馈的从设备的基本信息,包括:蓝牙地址、蓝牙时钟、扫描方式、扩展请求响应EIR。Further, in step S1, the basic information of the slave device that the slave device responds to and feeds back to the master device includes: Bluetooth address, Bluetooth clock, scanning mode, and extended request response EIR.
进一步地,步骤S2中,所述从设备向主设备发起一个用于获取主设备用户信息的请求是链路管理协议名称请求LMP_name_req消息,所述主设备向从设备应答的是链路管理协议名称响应LMP_name_res消息,所述主设备用户的用户信息携带在所述LMP_name_res响应消息中。Further, in step S2, the slave device initiates a request to the master device for obtaining user information of the master device, which is a link management protocol name request LMP_name_req message, and the master device responds to the slave device with a link management protocol name In response to the LMP_name_res message, the user information of the master user is carried in the LMP_name_res response message.
进一步地,所述主设备用户的用户消息是用户即时编辑的用户信息,或者是用户预先设置的用户信息,或者是基于用户预先设置的用户信息进行编辑所得用户信息。Further, the user information of the master device user is user information edited by the user immediately, or user information preset by the user, or user information edited based on the user information preset by the user.
进一步地,所述用户信息包括:个人资料、目的、绑定密码、共享资源,其中,所述个人资料包括姓名、性别、年龄、爱好。Further, the user information includes: personal data, purpose, binding password, and shared resources, wherein the personal data includes name, gender, age, and hobbies.
进一步地,所述步骤S3中,从设备的用户根据主设备的用户信息判断是否进行配对绑定时,是先通过界面将主设备用户的用户信息展示在从设备的屏幕,并提示从设备的用户选择是否建立绑定。Further, in the step S3, when the user of the slave device judges whether to perform pairing and binding according to the user information of the master device, the user information of the user of the master device is first displayed on the screen of the slave device through the interface, and the user information of the slave device is prompted. The user chooses whether to establish a binding.
本发明还提供一种蓝牙手机,用于作为实现配对绑定的主设备,包括:搜索模块、编辑模块、配对模块、绑定模块,其中:The present invention also provides a bluetooth mobile phone, which is used as a master device for realizing pairing and binding, including: a search module, an editing module, a pairing module, and a binding module, wherein:
搜索模块,用于搜索从设备,获取有效区域内所有可见的从设备的蓝牙手机的基本信息;The search module is used to search for slave devices and obtain the basic information of all bluetooth mobile phones of slave devices visible in the effective area;
编辑模块,用于供用户编辑主设备用户的用户信息,所述用户信息包括个人资料、目的、共享资源、绑定密码;The editing module is used for the user to edit the user information of the main device user, and the user information includes personal data, purpose, shared resources, and binding password;
配对模块,用于将主设备用户编辑的用户信息编入应答从设备的用户信息请求响应消息的应答包,发送给从设备,向从设备发送用于配对绑定的请求消息,等待从设备是否进行配对的反馈;The pairing module is used to compile the user information edited by the user of the master device into the response packet in response to the user information request response message of the slave device, send it to the slave device, send a request message for pairing and binding to the slave device, and wait for whether the slave device paired feedback;
绑定模块,用于根据配对模块所接收到的从设备的反馈信息进行处理,如果从设备同意进行绑定,则与从设备进行蓝牙配对绑定操作,完成绑定。The binding module is configured to process according to the feedback information received by the pairing module from the slave device, and if the slave device agrees to bind, perform a Bluetooth pairing and binding operation with the slave device to complete the binding.
所述搜索模块获取的基本信息,包括:蓝牙地址、蓝牙时钟、扫描方式、扩展请求响应EIR。The basic information acquired by the search module includes: Bluetooth address, Bluetooth clock, scanning mode, extended request response EIR.
所述配对模块向从设备所发送的主设备用户的用户信息,是用户预先设置的用户信息,或者是用户通过编辑模块即时编辑的用户信息,或者是用户基于用户预先设置的用户信息通过编辑模块进行编辑所得用户信息。The user information of the master device user sent by the pairing module to the slave device is the user information preset by the user, or the user information edited by the user through the editing module in real time, or the user information based on the preset user information set by the user through the editing module Edit the user information.
本发明还提供另一种蓝牙手机,用于作为实现配对绑定的从设备,包括:配对模块、判断模块、绑定模块,其中:The present invention also provides another bluetooth mobile phone, which is used as a slave device for pairing and binding, including: a pairing module, a judging module, and a binding module, wherein:
配对模块,用于向主设备的配对模块发起一次用于请求主设备用户信息的请求,并接收主设备的配对模块响应的用户信息响应消息,从中获得主设备的用户信息;The pairing module is configured to initiate a request to the pairing module of the master device for requesting user information of the master device, and receive a user information response message responded by the pairing module of the master device, thereby obtaining user information of the master device;
判断模块,用于从配对模块获得主设备的用户信息,以友好的界面展示在从设备的屏幕上,并提示用户进行选择决定是否建立配对绑定,并通过配对模块将选择结果向主设备进行相应的反馈,其中,所述用户信息包括个人资料、目的、共享资源、绑定密码;The judging module is used to obtain the user information of the master device from the pairing module, display it on the screen of the slave device with a friendly interface, and prompt the user to make a choice to decide whether to establish a pairing binding, and pass the selection result to the master device through the pairing module Corresponding feedback, wherein the user information includes personal data, purpose, shared resources, and binding password;
绑定模块,用于在从设备用户同意进行绑定后,与主设备的绑定模块进行交互操作,实现主设备与从设备的配对绑定。The binding module is used to interact with the binding module of the master device after the user of the slave device agrees to bind, so as to realize the pairing and binding between the master device and the slave device.
本发明蓝牙手机配对绑定方法及相应的蓝牙手机,可以使得广大手机蓝牙的陌生用户之间建立通信。既可以增加蓝牙手机使用的趣味性,也可以提高用户体验水平,还可以提高手机蓝牙的利用率。由于无需硬件改动,相当于在不增加手机生成成本的基础上,为用户提供了一种新的建立信任通信的方式。The bluetooth mobile phone pairing and binding method and the corresponding bluetooth mobile phones of the present invention can enable communication to be established between a large number of unfamiliar mobile phone bluetooth users. It can not only increase the fun of using the Bluetooth mobile phone, but also improve the user experience level, and can also improve the utilization rate of the Bluetooth of the mobile phone. Since there is no need for hardware modification, it is equivalent to providing users with a new way of establishing trustful communication without increasing the cost of mobile phone generation.
附图说明 Description of drawings
图1是本发明的蓝牙手机配对绑定方法的流程图;Fig. 1 is the flow chart of bluetooth mobile phone pairing binding method of the present invention;
图2是本发明中主设备在有效区域内搜索从设备的信令示意图;Fig. 2 is a schematic diagram of signaling of a master device searching for a slave device in an effective area in the present invention;
图3是本发明的配对绑定方法实施时主设备与从设备信令交互示意图;3 is a schematic diagram of signaling interaction between the master device and the slave device when the pairing and binding method of the present invention is implemented;
图4是本发明的蓝牙手机的结构示意图。Fig. 4 is a schematic structural diagram of the Bluetooth mobile phone of the present invention.
具体实施方式 Detailed ways
为使本发明的目的、技术方案和优点更加清楚,以下结合附图对本发明作进一步地详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.
本发明的蓝牙手机配对绑定的方法以及用于实现该方法的蓝牙手机,其在蓝牙绑定时,可以由作为主设备的蓝牙手机发送方的用户编辑或设置主设备用户信息,可设置或编辑的用户信息包括个人资料、目的、共享资源、绑定密码等,并将主设备用户信息发送给作为从设备的蓝牙手机用户,从设备用户可以根据主设备的用户信息来决定是否进行绑定,在从设备决定绑定后,主设备和从设备即可进行绑定操作,建立蓝牙通信联系,从而实现在相对固定区域内陌生用户之间根据用户信息进行相互交友、资源共享等应用。The bluetooth mobile phone pairing binding method of the present invention and the bluetooth mobile phone used to realize the method, when bluetooth binding, can be edited or set the main equipment user information by the user of the bluetooth mobile phone sender as the main equipment, can set or The edited user information includes personal data, purpose, shared resources, binding password, etc., and the master device user information is sent to the Bluetooth mobile phone user as the slave device. The slave device user can decide whether to bind according to the user information of the master device , after the slave device decides to bind, the master device and the slave device can carry out the binding operation and establish a Bluetooth communication link, so as to realize mutual friendship and resource sharing among unfamiliar users in a relatively fixed area according to user information.
如图1所示,显示了本发明的蓝牙手机间进行配对绑定的方法流程图,该方法包括如下步骤:As shown in Figure 1, the flow chart of the method for pairing and binding between bluetooth mobile phones of the present invention is shown, and the method includes the following steps:
S1、作为主设备的蓝牙手机搜索有效区域内可见的作为从设备的蓝牙手机,主设备向从设备发送通用请求接入码GIAC请求,从设备响应该请求并反馈从设备的基本信息;S1. The Bluetooth mobile phone as the master device searches for the Bluetooth mobile phone as the slave device visible in the effective area, the master device sends a general request access code GIAC request to the slave device, and the slave device responds to the request and feeds back the basic information of the slave device;
S2、所述从设备向主设备发起一个用于获取主设备用户信息的请求,主设备应答并将自己的用户信息反馈给从设备;S2. The slave device initiates a request to the master device for obtaining user information of the master device, and the master device responds and feeds back its own user information to the slave device;
S3、主设备向从设备发送配对绑定的请求,从设备的用户根据主设备的用户信息判断是否进行配对绑定,由从设备将判断结果反馈给主设备;S3. The master device sends a request for pairing and binding to the slave device, and the user of the slave device judges whether to perform pairing and binding according to the user information of the master device, and the slave device feeds back the judgment result to the master device;
S4、从设备同意进行配对绑定后,主设备和从设备进行绑定操作。S4. After the slave device agrees to perform pairing and binding, the master device and the slave device perform a binding operation.
在步骤S1中,作为发起方的主设备(蓝牙手机),首先向有效区域内所有可见的作为从设备的蓝牙手机发送通用请求接入码GIAC请求(GeneralInquiry Access Code,通用请求接入码),可见的从设备将响应该请求,并向主设备反馈从设备的基本信息,所述基本信息包括:蓝牙地址、蓝牙时钟、扫描方式、EIR(扩展请求响应,Extended Inquiry Response)等信息。作为主设备的蓝牙手机在收到所述从设备的基本信息后,将显示所有可见的蓝牙从设备的设备名。如图2所示,显示了一个主设备发送GIAC请求后,在有效区域内的若干从设备,响应该请求的交互示意图。主设备向从设备发送GIAC(General Inquiry Access Code)请求,从设备向主设备发送InquireResponse(请求响应)消息,在反馈的响应消息中携带有所述从设备的基本信息。In step S1, the master device (bluetooth mobile phone) as the initiator first sends a general request access code GIAC request (General Inquiry Access Code, general request access code) to all visible bluetooth mobile phones as slave devices in the effective area, The visible slave device will respond to the request and feed back the basic information of the slave device to the master device. The basic information includes: Bluetooth address, Bluetooth clock, scanning mode, EIR (Extended Inquiry Response) and other information. After receiving the basic information of the slave device, the bluetooth mobile phone as the master device will display the device names of all visible bluetooth slave devices. As shown in FIG. 2 , after a master device sends a GIAC request, several slave devices in the effective area respond to the interaction schematic diagram of the request. The master device sends a GIAC (General Inquiry Access Code) request to the slave device, and the slave device sends an InquireResponse (request response) message to the master device, and the basic information of the slave device is carried in the feedback response message.
根据现有蓝牙协议,在步骤S1之后,主设备可以通过向从设备发送链路管理协议名称请求LMP_name_req(Link Manager Protocol,链路管理协议)消息,来获取从设备的用户信息,从设备收到LMP_name_req请求后,会发送链路管理协议名称响应LMP_name_res消息进行响应,将从设备的用户信息反馈给主设备。在步骤S2中,则优选的,可以不进行该过程。当然也可以执行该过程,而使主设备用户获取更多从设备信息,供主设备用户参考。According to the existing Bluetooth protocol, after step S1, the master device can obtain the user information of the slave device by sending the link management protocol name request LMP_name_req (Link Manager Protocol, link management protocol) message to the slave device, and the slave device receives After the LMP_name_req request, it will send the link management protocol name response LMP_name_res message to respond, and feed back the user information of the slave device to the master device. In step S2, preferably, this process may not be performed. Of course, this process can also be executed, so that the user of the master device can obtain more information of the slave device for reference by the user of the master device.
因而,在本发明的图1所示的步骤S2中,可由从设备向主设备发送LMP_name_req请求,请求获得主设备的用户信息,主设备接到LMP_name_req请求后,进行LMP_name_res响应,将主设备的用户信息反馈给从设备。在LMP_name_res响应消息中,将该响应消息的全部数据空间用来存放用户自己的用户信息,该用户信息,可以是预先设置的用户信息,也可以是用户即时编辑的信息,所述用户信息包括个人资料(姓名、性别、年龄、爱好等)、目的、绑定密码、共享资源等。通过该步骤S2,从设备可以获得主设备的名称及主设备的用户信息。蓝牙协议规定设备名最大占用248bytes。主设备可以根据蓝牙协议,将主设备用户信息编入自定义的LMP_name_res PDU(协议数据单元,Protocol Data Unit)包中,通过LMP_name_res响应发送给从设备。Thereby, in step S2 shown in Fig. 1 of the present invention, can send LMP_name_req request to main equipment by slave equipment, request the user information of main equipment, after main equipment receives LMP_name_req request, carry out LMP_name_res response, the user of main equipment The information is fed back to the slave device. In the LMP_name_res response message, the entire data space of the response message is used to store the user's own user information. The user information can be preset user information or information edited by the user immediately. The user information includes personal Information (name, gender, age, hobbies, etc.), purpose, binding password, shared resources, etc. Through this step S2, the slave device can obtain the name of the master device and the user information of the master device. The Bluetooth protocol stipulates that the device name occupies a maximum of 248 bytes. According to the Bluetooth protocol, the master device can compile the user information of the master device into a custom LMP_name_res PDU (Protocol Data Unit, Protocol Data Unit) package, and send it to the slave device through the LMP_name_res response.
在步骤S3中,主设备向从设备发送配对绑定的请求,从设备的用户根据主设备的用户信息判断是否进行配对绑定,由从设备将判断结果反馈给主设备。从设备在收到步骤S2中主设备发送的主设备用户信息后,将该以友好的界面展示在从设备蓝牙手机的屏幕上,并提示用户进行选择决定是否建立连接,并根据选择结果给主设备进行相应的反馈。从设备向从设备用户所展示的内容包括:主设备用户的个人资料(姓名、性别、年龄、本机号、爱好等)、目的、绑定密码、共享资源等,展示后询问从设备用户是否进行绑定。In step S3, the master device sends a request for pairing and binding to the slave device, and the user of the slave device judges whether to perform pairing and binding according to the user information of the master device, and the slave device feeds back the judgment result to the master device. After the slave device receives the master device user information sent by the master device in step S2, it will be displayed on the screen of the slave device bluetooth mobile phone with a friendly interface, and the user will be prompted to make a selection to decide whether to establish a connection, and according to the selection result to the master The device responds accordingly. The content displayed by the slave device to the slave device user includes: the master device user's personal information (name, gender, age, local number, hobbies, etc.), purpose, binding password, shared resources, etc. After the display, the slave device user is asked whether to bind.
在步骤S4中,如果从设备用户同意进行绑定,那么主设备接收到的从设备的反馈信息,主设备和从设备交互进行绑定操作即可,如果从设备用户拒绝进行绑定,则结束。In step S4, if the slave device user agrees to bind, then the master device receives the feedback information from the slave device, the master device and the slave device interact to perform the binding operation, if the slave device user refuses to bind, then end .
如图3所示,显示了所述蓝牙手机配对绑定的方法具体执行时的信令交互图,图中仅以一个主设备与一个从设备之间的交互为例,主设备与各个从设备之间的交互流程与此一致。该方法包括如下步骤:As shown in Figure 3, it shows the signaling interaction diagram when the method of pairing and binding of the Bluetooth mobile phone is specifically executed. In the figure, only the interaction between a master device and a slave device is taken as an example, and the master device and each slave device The interaction process between is consistent with this. The method comprises the steps of:
步骤301:主设备A向有效区域内的所有从设备发送通用请求接入码GIAC请求(General Inquiry Access Code);Step 301: master device A sends a general inquiry access code GIAC request (General Inquiry Access Code) to all slave devices in the effective area;
步骤302:可见的从设备B响应该GIAC请求,并向主设备A发送InquireResponse消息,在反馈的响应消息中携带有所述从设备的基本信息,所述基本信息包括:蓝牙地址、蓝牙时钟、扫描方式、EIR(扩展请求响应,ExtendedInquiry Response)等信息。Step 302: The visible slave device B responds to the GIAC request, and sends an InquireResponse message to the master device A, and the feedback response message carries the basic information of the slave device, and the basic information includes: Bluetooth address, Bluetooth clock, Scanning method, EIR (Extended Inquiry Response, Extended Inquiry Response) and other information.
步骤303:从设备B向主设备A发送LMP_name_req请求,请求获得主设备的用户信息;Step 303: The slave device B sends a LMP_name_req request to the master device A, requesting to obtain the user information of the master device;
步骤304:主设备A接到LMP_name_req请求后,向从设备B发送LMP_name_res响应,将主设备的用户信息反馈给从设备。在LMP_name_res响应中,主设备A将该响应消息的全部数据空间用来存放用户自己的用户信息,该用户信息,可以是预先设置的用户信息,也可以是用户即时编辑的信息,所述用户信息包括个人资料(姓名、性别、年龄、爱好等)、目的、绑定密码、共享资源等。Step 304: After receiving the LMP_name_req request, the master device A sends an LMP_name_res response to the slave device B, and feeds back the user information of the master device to the slave device. In the LMP_name_res response, the main device A uses the entire data space of the response message to store the user's own user information. The user information can be preset user information or information edited by the user immediately. The user information Including personal information (name, gender, age, hobbies, etc.), purpose, binding password, shared resources, etc.
步骤305:主设备A向从设备B发送链路管理协议主连接请求LMP_host_connection_req消息,请求与从设备B进行配对绑定;Step 305: The master device A sends a link management protocol master connection request LMP_host_connection_req message to the slave device B, requesting to perform pairing and binding with the slave device B;
步骤306:从设备B的用户根据主设备A的用户信息判断是否进行配对绑定,由从设备将判断结果反馈给主设备。在从设备B的用户同意进行配对绑定时,向主设备A发送链路管理协议接受LMP_accepted消息,以便通知主设备A进行绑定操作;Step 306: The user of the slave device B judges whether to perform pairing and binding according to the user information of the master device A, and the slave device feeds back the judgment result to the master device. When the user of the slave device B agrees to perform pairing and binding, send a link management protocol acceptance LMP_accepted message to the master device A, so as to notify the master device A to perform the binding operation;
步骤307:主设备A在收到从设备B同意进行配对绑定的消息后,与从设备B交互进行配对绑定(Pairing)操作,完成绑定。Step 307: After receiving the message that the slave device B agrees to perform pairing and binding, the master device A interacts with the slave device B to perform a pairing and binding (Pairing) operation to complete the binding.
基于上述的蓝牙手机配对绑定的方法,本发明还提供一种实现配对绑定的蓝牙手机。如图4所示,显示了两个带有蓝牙硬件模块的蓝牙手机,分别作为主设备A和从设备B通过交互来完成配对绑定。本发明无需改动手机中的蓝牙硬件电路,其配对绑定功能主要通过软件模块来实现。Based on the above-mentioned method for pairing and binding of a Bluetooth mobile phone, the present invention also provides a Bluetooth mobile phone for realizing pairing and binding. As shown in FIG. 4 , two Bluetooth mobile phones with Bluetooth hardware modules are shown, as master device A and slave device B respectively to complete pairing and binding through interaction. The invention does not need to change the bluetooth hardware circuit in the mobile phone, and its pairing and binding function is mainly realized through software modules.
在图4中,显示了本发明的蓝牙手机中新增的搜索模块、编辑模块、配对模块、判断模块、绑定模块。上述模块执行本发明的蓝牙手机配对绑定方法的流程为,主设备的搜索模块启动,搜索所有可见蓝牙设备,并获得所有可见设备名,这些可见蓝牙设备作为从设备。主设备的编辑模块启动,发起方用户编辑用户信息。从设备的配对模块启动,从设备发起LMP_name_req请求,主设备的配对模块进行应答,主设备的配对模块请求进行配对,等待从设备配对模块响应。从设备的判断模块启动,从设备用户根据配对模块收到的主设备用户信息,对是否配对绑定进行判断选择,并将结果反馈给主设备。获得从设备的判断模块的进行绑定的响应后,主设备的绑定模块启动,与从设备的绑定模块进行绑定操作,完成绑定。In Fig. 4, the newly added search module, edit module, pairing module, judgment module and binding module in the Bluetooth mobile phone of the present invention are shown. The process of the above-mentioned module executing the Bluetooth mobile phone pairing and binding method of the present invention is that the search module of the master device starts, searches for all visible Bluetooth devices, and obtains the names of all visible devices, and these visible Bluetooth devices are used as slave devices. The editing module of the main device starts, and the initiator user edits the user information. The pairing module of the slave device starts, the slave device initiates a LMP_name_req request, the pairing module of the master device responds, the pairing module of the master device requests pairing, and waits for the response from the pairing module of the slave device. The judgment module of the slave device starts, and the user of the slave device judges whether to pair and bind according to the user information of the master device received by the pairing module, and feeds back the result to the master device. After obtaining a binding response from the judging module of the slave device, the binding module of the master device starts, and performs a binding operation with the binding module of the slave device to complete the binding.
由于主设备是一个相对概念,一个手机在发起绑定时是主设备,而在被呼叫绑定时,则是一个从设备,故两者的模块结构相同,一个手机根据不同情况可以选择作为主设备或从设备。Since the master device is a relative concept, a mobile phone is the master device when it initiates the binding, and it is a slave device when it is called and bound. Therefore, the module structure of the two is the same, and a mobile phone can be selected as the master device according to different situations. device or slave device.
下面分别从主设备和从设备的角度来描述各个模块之功能及如何实现配对绑定的过程。The following describes the functions of each module and how to realize the process of pairing and binding from the perspective of the master device and the slave device.
本发明的一种蓝牙手机,作为配对绑定过程中的主设备A,该蓝牙手机包括:搜索模块A1、编辑模块A2、配对模块A3、判断模块A4、绑定模块A5,参见图4,其中:A bluetooth mobile phone of the present invention, as the main device A in the pairing and binding process, the bluetooth mobile phone includes: search module A1, editing module A2, pairing module A3, judging module A4, binding module A5, see Figure 4, wherein :
搜索模块A1,用于搜索从设备,获取有效区域内所有可见的从设备的蓝牙设备信息,即基本信息,包括:蓝牙地址、蓝牙时钟、扫描方式和EIR(Extended Inquiry Response)等。搜索模块向有效区域内所有可见从设备发送GIAC(General Inquiry Access Code)请求,并接收可见的从设备反馈的响应消息,从响应消息中获取从设备的蓝牙地址、蓝牙时钟、扫描方式、EIR等信息。The search module A1 is used to search for slave devices and obtain the Bluetooth device information of all visible slave devices in the effective area, that is, basic information, including: Bluetooth address, Bluetooth clock, scanning mode and EIR (Extended Inquiry Response), etc. The search module sends a GIAC (General Inquiry Access Code) request to all visible slave devices in the effective area, and receives the response message fed back by the visible slave device, and obtains the Bluetooth address, Bluetooth clock, scanning mode, EIR, etc. of the slave device from the response message information.
编辑模块A2,用于供用户编辑用户信息,包括个人资料(姓名、性别、年龄、爱好等)、目的、共享资源、绑定密码等,并搜集主设备用户同意共享的资源文件的名称,自动导入编辑模块。所述用户信息也可以是用户预先设置的,或者可以根据预先设置的信息基础之上进行编辑。The editing module A2 is used for users to edit user information, including personal data (name, gender, age, hobbies, etc.), purpose, shared resources, binding password, etc., and collect the names of resource files that the main device user agrees to share, and automatically Import the edit module. The user information may also be preset by the user, or may be edited based on the preset information.
配对模块A3,用于将主设备用户编辑的用户信息编入LMP_name_res的应答包,并进行相应处理保证用户编辑的信息能够全部正确发送,信息发送后等待从设备是否进行配对的反馈;The pairing module A3 is used to compile the user information edited by the master device user into the response packet of LMP_name_res, and perform corresponding processing to ensure that all the information edited by the user can be sent correctly, and wait for the feedback of whether the slave device performs pairing after the information is sent;
绑定模块A5,用于根据配对模块A3所接收到的从设备判断模块提供的反馈信息进行处理,如果从设备同意进行绑定,那么蓝牙绑定成功,否则结束。The binding module A5 is used to process according to the feedback information received by the pairing module A3 and provided by the slave device judging module. If the slave device agrees to bind, then the Bluetooth binding is successful, otherwise it ends.
本发明的另一种蓝牙手机,作为配对绑定过程中的从设备B,该蓝牙手机包括:搜索模块B1、编辑模块B2、配对模块B3、判断模块B4、绑定模块B5,参见图4,其中:Another bluetooth mobile phone of the present invention, as the slave device B in the pairing and binding process, the bluetooth mobile phone includes: search module B1, editing module B2, pairing module B3, judging module B4, binding module B5, see Figure 4, in:
配对模块B3,用于向主设备的配对模块A3发起一次LMP_name_req请求,并接收主设备的配对模块A3响应的LMP_name_res消息,从中获得主设备的用户信息;The pairing module B3 is used to initiate an LMP_name_req request to the pairing module A3 of the master device, and receive the LMP_name_res message responded by the pairing module A3 of the master device, thereby obtaining the user information of the master device;
判断模块B4,从配对模块获得主设备的用户信息,以友好的界面展示在手机屏幕上,并提示用户进行选择决定是否建立连接,并给主设备进行相应的反馈。展示内容即为:主设备的个人资料(姓名、性别、年龄、本机号、爱好等)、目的、绑定密码等,最后询问从设备用户是否进行绑定。Judgment module B4 obtains the user information of the main device from the pairing module, displays it on the screen of the mobile phone with a friendly interface, prompts the user to make a choice to decide whether to establish a connection, and gives corresponding feedback to the main device. The display content is: the personal information of the master device (name, gender, age, local number, hobbies, etc.), purpose, binding password, etc., and finally ask the slave device user whether to bind.
绑定模块B5,用于在从设备用户同意进行绑定后,与主设备的绑定模块A5进行交互操作,实现主设备与从设备的配对绑定。The binding module B5 is used to interact with the binding module A5 of the master device after the user of the slave device agrees to bind, so as to realize the pairing and binding of the master device and the slave device.
本发明的蓝牙手机配对绑定方法及相应的蓝牙手机,可以使得广大手机蓝牙的陌生用户之间建立通信。既可以增加蓝牙手机使用的趣味性,也可以提高用户体验水平,还可以提高手机蓝牙的利用率。由于无需硬件改动,相当于在不增加手机生成成本的基础上,为用户提供了一种新的建立信任通信的方式。The bluetooth mobile phone pairing and binding method and the corresponding bluetooth mobile phone of the present invention can enable communication between a large number of unfamiliar mobile phone bluetooth users. It can not only increase the fun of using the Bluetooth mobile phone, but also improve the user experience level, and can also improve the utilization rate of the Bluetooth of the mobile phone. Since there is no need for hardware modification, it is equivalent to providing users with a new way of establishing trustful communication without increasing the cost of mobile phone generation.
以上所述仅为本发明的实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的权利要求范围之内。The above description is only an embodiment of the present invention, and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of the claims of the present invention.
Claims (8)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2009101623704A CN101621314B (en) | 2009-08-11 | 2009-08-11 | Bluetooth mobile phone and pairing and binding method thereof |
| PCT/CN2010/071888 WO2011017931A1 (en) | 2009-08-11 | 2010-04-19 | Bluetooth mobile terminal and pairing and bonding method thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2009101623704A CN101621314B (en) | 2009-08-11 | 2009-08-11 | Bluetooth mobile phone and pairing and binding method thereof |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101621314A CN101621314A (en) | 2010-01-06 |
| CN101621314B true CN101621314B (en) | 2012-11-28 |
Family
ID=41514395
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2009101623704A Active CN101621314B (en) | 2009-08-11 | 2009-08-11 | Bluetooth mobile phone and pairing and binding method thereof |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101621314B (en) |
| WO (1) | WO2011017931A1 (en) |
Families Citing this family (22)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101621314B (en) * | 2009-08-11 | 2012-11-28 | 中兴通讯股份有限公司 | Bluetooth mobile phone and pairing and binding method thereof |
| CN102082589B (en) * | 2010-12-21 | 2014-12-10 | 中兴通讯股份有限公司 | Method, device and system for storing contact information |
| TWI575979B (en) * | 2011-07-05 | 2017-03-21 | 宏達國際電子股份有限公司 | Wireless service providing method |
| KR20130012467A (en) * | 2011-07-25 | 2013-02-04 | 주식회사 이랜텍 | Method for pairing between mobile communication terminal and mobile communication terminal |
| EP2739055A4 (en) * | 2011-07-29 | 2015-09-09 | Samsung Electronics Co Ltd | METHOD FOR SYNCHRONIZING DISPLAY DEVICE, METHOD FOR SYNCHRONIZING GLASSES, AND METHOD FOR SYNCHRONIZING DISPLAY DEVICE WITH GLASSES |
| CN102299729B (en) * | 2011-08-19 | 2016-06-15 | 中兴通讯股份有限公司 | A kind of information transferring method and device |
| CN103200527B (en) * | 2013-02-27 | 2015-09-16 | 中兴通讯股份有限公司 | The means of communication of a kind of voice and/or video and device |
| CN103228060B (en) * | 2013-04-02 | 2016-12-28 | 深圳市文鼎创数据科技有限公司 | The processing method and processing device of Bluetooth pairing information |
| CN103561479B (en) * | 2013-10-17 | 2017-03-08 | 东软熙康健康科技有限公司 | A kind of bluetooth devices method and apparatus |
| CN104283962B (en) * | 2014-10-21 | 2017-12-05 | 中国联合网络通信集团有限公司 | mobile terminal data sharing method and device |
| CN104780429B (en) * | 2015-01-06 | 2018-06-26 | 康佳集团股份有限公司 | Drain the Bluetooth pairing methods disturbed, main equipment, system and its matching method |
| HK1218219A2 (en) * | 2016-07-08 | 2017-02-03 | 志和投资国际有限公司 | Anti-lost method for umbrella and an umbrella |
| KR102499378B1 (en) * | 2016-08-30 | 2023-02-13 | 삼성전자주식회사 | Communication device and communication method |
| CN107302742B (en) * | 2017-05-15 | 2020-06-19 | 深圳市江波龙电子股份有限公司 | A method for establishing a social relationship and a Bluetooth device |
| TR201722020A2 (en) * | 2017-12-26 | 2019-07-22 | Eczacibasi Yapi Gerecleri Sanayi Ve Ticaret Anonim Sirketi | A Matching Method |
| CN108338418A (en) * | 2018-01-17 | 2018-07-31 | 深圳阿凡达智控有限公司 | Management method, device and the electronic equipment of electronic cigarette |
| CN114365468B (en) * | 2019-11-21 | 2024-06-04 | 深圳市欢太科技有限公司 | Information transfer method, device, electronic equipment and storage medium |
| CN113973397B (en) * | 2020-07-10 | 2023-09-08 | 北京凌宇智控科技有限公司 | Equipment pairing method, pairing equipment and equipment pairing system |
| CN112188460B (en) * | 2020-09-30 | 2024-02-27 | 中国银行股份有限公司 | Contact information recording method and device |
| CN114630303B (en) * | 2020-12-14 | 2025-08-05 | 深圳Tcl新技术有限公司 | A Bluetooth connection method, system, intelligent terminal and computer storage medium |
| CN115050209A (en) * | 2022-05-26 | 2022-09-13 | 中国地质大学(武汉) | Underground parking lot management method based on Bluetooth positioning |
| CN115720333A (en) * | 2022-11-07 | 2023-02-28 | 四川巧夺天工信息安全智能设备有限公司 | A method for device binding and authority transfer based on two-dimensional code |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101095318A (en) * | 2004-05-10 | 2007-12-26 | 索尼爱立信移动通讯股份有限公司 | Method and device for bluetooth pairing |
| KR100827813B1 (en) * | 2006-10-31 | 2008-05-07 | 에스케이 텔레콤주식회사 | How to Pair Between Bluetooth Devices Using Tag and Bluetooth Devices for the Same |
| CN101212240A (en) * | 2006-12-25 | 2008-07-02 | 北京三星通信技术研究有限公司 | Method for automatically binding contacts of bluetooth devices |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101621314B (en) * | 2009-08-11 | 2012-11-28 | 中兴通讯股份有限公司 | Bluetooth mobile phone and pairing and binding method thereof |
-
2009
- 2009-08-11 CN CN2009101623704A patent/CN101621314B/en active Active
-
2010
- 2010-04-19 WO PCT/CN2010/071888 patent/WO2011017931A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101095318A (en) * | 2004-05-10 | 2007-12-26 | 索尼爱立信移动通讯股份有限公司 | Method and device for bluetooth pairing |
| KR100827813B1 (en) * | 2006-10-31 | 2008-05-07 | 에스케이 텔레콤주식회사 | How to Pair Between Bluetooth Devices Using Tag and Bluetooth Devices for the Same |
| CN101212240A (en) * | 2006-12-25 | 2008-07-02 | 北京三星通信技术研究有限公司 | Method for automatically binding contacts of bluetooth devices |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101621314A (en) | 2010-01-06 |
| WO2011017931A1 (en) | 2011-02-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101621314B (en) | Bluetooth mobile phone and pairing and binding method thereof | |
| CN103369707B (en) | Wireless network establishment of connection method and terminal unit | |
| CN102100111B (en) | Method and apparatus for providing temporal information | |
| CN102801800B (en) | Method and system for performing resource sharing processing among plurality of wireless terminals | |
| CN102948120B (en) | Apparatus and method for configuring personal network using personal network routing table | |
| CN105516960B (en) | Perceptual authentication method system, management method and system based on the method system | |
| CN103068066A (en) | Intelligent mobile communication terminal and wireless network access method and system thereof | |
| KR20080085144A (en) | Method and computer readable medium for accessing a service provided by a first device provided by a second device in the vicinity of the first device | |
| CN103069743B (en) | For registering the apparatus and method of personal network | |
| WO2013033999A1 (en) | Method and apparatus for mobile device point-to-point data transmission | |
| CN103298147B (en) | Realize the methods, devices and systems at computing equipment side radio management mobile terminal | |
| WO2014161266A1 (en) | Method, terminal and system for transmitting application software | |
| CN109995701A (en) | A kind of method, terminal and the server of equipment guidance | |
| CN1728638A (en) | Cordless communication network, wireless terminal, access server and method thereof | |
| CN102983942A (en) | Data transmission method and equipment | |
| CN103118337B (en) | For the information processing method of bluetooth equipment, device and bluetooth equipment thereof | |
| CN103957593A (en) | Wireless network accessing method, device and system | |
| TW201215060A (en) | Mobile communication device, mobile network sharing method and electronic device | |
| CN106105158B (en) | Method and system for establishing a connection between a seeker device and a target device | |
| EP3292457A1 (en) | Wireless control of devices | |
| CN101204112A (en) | System, terminal, network entity, method and computer program for system selection in a multi-mode communication system | |
| CN103716865B (en) | Commubnication appratus | |
| CN106576238A (en) | Method and apparatus for establishing private communication between devices | |
| CN102843308A (en) | Instant messaging method and system based on mobile terminal local address book | |
| CN105376138B (en) | Method for adding contacts, method for data transmission, and user equipment |
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 |