HK1208115B - Method of pairing mobile devices - Google Patents
Method of pairing mobile devices Download PDFInfo
- Publication number
- HK1208115B HK1208115B HK15108704.3A HK15108704A HK1208115B HK 1208115 B HK1208115 B HK 1208115B HK 15108704 A HK15108704 A HK 15108704A HK 1208115 B HK1208115 B HK 1208115B
- Authority
- HK
- Hong Kong
- Prior art keywords
- pairing
- mobile devices
- mobile
- orientation
- mobile device
- Prior art date
Links
Description
背景技术及技术领域Background technology and technical field
本发明涉及对移动设备进行配对的方法,特别并且并不排他地用于已配对的移动设备之间的数据传输。The present invention relates to a method for pairing mobile devices, and is particularly but not exclusively used for data transmission between paired mobile devices.
随着移动电话的普遍性和移动技术的优势,存在对移动电话交换信息的增加的需求。例如,两个移动电话可以经由蓝牙(BluetoothTM)连接交换数据,但普遍存在诸如“配对不成功”之类的配对问题。已经提出了更简单并且具有更高成功率的配对算法,但这样的配对算法可能是不准确的。With the ubiquity of mobile phones and the advancement of mobile technology, there is an increasing demand for mobile phones to exchange information. For example, two mobile phones can exchange data via a Bluetooth ™ connection, but pairing problems such as "pairing failure" are common. Simpler pairing algorithms with higher success rates have been proposed, but such pairing algorithms may be inaccurate.
本发明的一个目的在于提供一种克服了现有技术的缺陷和/或向公众提供有用选择中的至少之一的对移动设备进行配对的方法。It is an object of the present invention to provide a method of pairing mobile devices that overcomes at least one of the deficiencies of the prior art and/or provides the public with a useful choice.
发明内容Summary of the Invention
根据本发明的第一方面,提供了一种对移动设备进行配对以在已配对的移动设备之间传输数据的方法,所述方法包括:(i)利用配对条件验证配对参数来确定用于配对的移动设备,所述配对参数中的至少一个配对参数是从要被配对的移动设备接收的,所述配对是通过所述移动设备的摇动动作发起的,并且所述至少一个配对参数包括所述移动设备的各自的定向;以及(ii)如果满足了所述配对条件,则对所述移动设备进行配对。According to a first aspect of the present invention, there is provided a method for pairing mobile devices to transfer data between paired mobile devices, the method comprising: (i) verifying pairing parameters using pairing conditions to determine mobile devices for pairing, at least one of the pairing parameters being received from a mobile device to be paired, the pairing being initiated by a shaking motion of the mobile device, and the at least one pairing parameter including respective orientations of the mobile devices; and (ii) pairing the mobile devices if the pairing conditions are met.
词语“移动设备”被理解为表示移动或便携的任何设备,例如通常由用户带在身边的设备。移动设备的示例包括移动电话、平板、便携式个人计算机、PDA和其他电子设备。The term "mobile device" is understood to mean any device that is mobile or portable, such as a device that is typically carried by a user. Examples of mobile devices include mobile phones, tablets, portable personal computers, PDAs, and other electronic devices.
词语“配对”可以表示两个移动设备之间的配对或一个移动设备和其他多个移动设备之间的配对。The word "pairing" may refer to pairing between two mobile devices or pairing between a mobile device and other mobile devices.
所描述的实施例的优势在于通过利用所述移动设备的摇动方向,就实现了移动设备的更准确且更快速的配对。An advantage of the described embodiment is that by utilizing the shaking direction of the mobile device, more accurate and faster pairing of mobile devices is achieved.
可以由用于对所述移动设备进行配对的配对服务器来提供所述参数中的至少一个参数。所述方法还包括确定在所述验证步骤(i)中是否要使用移动电话的定向;以及如果使用的话,则验证所述移动设备的定向。At least one of the parameters may be provided by a pairing server for pairing the mobile device.The method further comprises determining whether an orientation of the mobile phone is to be used in the verifying step (i); and if so, verifying the orientation of the mobile device.
优选地,所述方法还包括连续记录所述移动设备的定向。这是有用的,这是因为在摇动动作期间移动电话的定向可能并不是对移动电话的定向的准确确定,并且因此连续记录所述移动设备的定向使得该方法在检测到摇动动作之前就能够确定在选择的时间的移动电话的定向。作为结果,该方法可以包括在发起摇动动作之前的预定时间获取所述移动设备的定向。所述预定的时间可以根据应用而变化,并且优选的时间是1秒。Preferably, the method further comprises continuously recording the orientation of the mobile device. This is useful because the orientation of the mobile phone during the shaking action may not be an accurate determination of the orientation of the mobile phone, and thus continuously recording the orientation of the mobile phone enables the method to determine the orientation of the mobile phone at a selected time before the shaking action is detected. As a result, the method may comprise acquiring the orientation of the mobile phone at a predetermined time before initiating the shaking action. The predetermined time may vary depending on the application, and a preferred time is 1 second.
验证配对参数可以包括反转所述移动设备之一的定向来获取经反转的定向,并且将所述经反转的定向与其他一个或多个移动设备的定向进行比较。所述方法还可以包括基于误差余量来得到所述经反转的定向的最大值和最小值,并且将所述最大值和最小值与所述一个或多个移动设备的定向进行比较。Verifying the pairing parameters may include reversing the orientation of one of the mobile devices to obtain a reversed orientation, and comparing the reversed orientation with the orientations of the other one or more mobile devices. The method may also include obtaining a maximum and a minimum value of the reversed orientation based on an error margin, and comparing the maximum and the minimum value with the orientations of the one or more mobile devices.
优选地,所述配对参数包括移动电话的地理位置和/或接收到配对的请求的配对发起时间。所述配对条件可以包括距离阈值,并且步骤(i)包括基于所述移动电话的地理位置确定两个移动电话之间的距离;以及将所述距离与所述距离阈值进行比较。所述配对条件可以包括时间阈值,并且步骤(i)包括确定所述两个移动电话的发起时间之差;以及将所述差与所述时间阈值进行比较。Preferably, the pairing parameters include the geographic location of the mobile phone and/or the time at which the pairing request was received. The pairing condition may include a distance threshold, and step (i) includes determining the distance between the two mobile phones based on the geographic location of the mobile phones; and comparing the distance with the distance threshold. The pairing condition may include a time threshold, and step (i) includes determining the difference between the initiation times of the two mobile phones; and comparing the difference with the time threshold.
优选地,步骤(ii)包括生成用于标识进行配对的所述移动设备的连接标识符;以及将所述连接标识符发送到两个移动设备;其中将所述连接标识符与要被传输的数据一起发送。Preferably, step (ii) comprises generating a connection identifier for identifying the mobile devices to be paired; and sending the connection identifier to the two mobile devices; wherein the connection identifier is sent together with the data to be transferred.
步骤(ii)中的配对可以包括对所述移动设备和另一移动设备进行配对,或者对所述移动设备和多个其他移动设备进行配对。The pairing in step (ii) may include pairing the mobile device with another mobile device, or pairing the mobile device with a plurality of other mobile devices.
根据本发明的第二方面,提供了一种对移动设备进行配对以在已配对的移动设备之间传输数据的装置,所述装置包括:控制器,用于利用配对条件验证配对参数来确定用于配对的移动设备,所述配对参数中的至少一个配对参数是从要被配对的移动设备接收的,所述配对是通过所述移动设备的摇动动作发起的,并且所述配对参数包括所述移动设备的各自的定向,其中所述控制器还被配置为基于已验证的配对参数对所述移动设备进行配对。According to a second aspect of the present invention, there is provided an apparatus for pairing mobile devices to transfer data between the paired mobile devices, the apparatus comprising: a controller for verifying pairing parameters using pairing conditions to determine a mobile device for pairing, at least one of the pairing parameters being received from a mobile device to be paired, the pairing being initiated by a shaking motion of the mobile device, and the pairing parameters including respective orientations of the mobile devices, wherein the controller is further configured to pair the mobile devices based on the verified pairing parameters.
根据本发明的第三方面,提供了一种对移动设备进行配对以在已配对的移动设备之间传输数据的方法,所述方法包括:(i)摇动移动设备以发起配对请求;(ii)响应于所述摇动,将至少一个配对参数发送到配对服务器以针对配对条件进行验证,所述至少一个配对参数包括所述移动设备的定向;(iii)从所述配对服务器接收连接标识符,所述连接标识符被用于所述数据传输中。According to a third aspect of the present invention, a method for pairing mobile devices to transfer data between paired mobile devices is provided, the method comprising: (i) shaking the mobile device to initiate a pairing request; (ii) in response to the shaking, sending at least one pairing parameter to a pairing server for verification against a pairing condition, the at least one pairing parameter including an orientation of the mobile device; and (iii) receiving a connection identifier from the pairing server, the connection identifier being used in the data transmission.
根据本发明的第四方面,提供了一种对移动设备进行配对以在已配对的移动设备之间传输数据的方法,所述方法包括:(i)摇动移动设备以发起配对请求;(ii)通过配对服务器利用配对条件来验证配对参数以确定用于配对的移动设备,所述配对参数中的至少一个配对参数是从要被配对的移动设备接收的,所述至少一个配对参数包括移动设备的各自的定向;(iii)如果满足所述配对条件,则生成用于标识进行配对的所述移动设备的连接标识符;以及(vii)将所述连接标识符发送到移动电话。According to a fourth aspect of the present invention, a method for pairing mobile devices to transfer data between paired mobile devices is provided, the method comprising: (i) shaking the mobile device to initiate a pairing request; (ii) verifying pairing parameters using pairing conditions by a pairing server to determine a mobile device for pairing, at least one of the pairing parameters being received from the mobile device to be paired, the at least one pairing parameter including respective orientations of the mobile devices; (iii) generating a connection identifier for identifying the mobile device for pairing if the pairing conditions are met; and (vii) sending the connection identifier to a mobile phone.
根据本发明的第五方面,提供了一种对通信设备进行配对以传输数据的方法,所述方法包括从第一通信设备接收第一配对请求,所述第一配对请求包括标识与用户相关联的数据传输的信息;生成用于标识所述数据传输的唯一代码;将所述唯一代码发送到所述第一通信设备;从第二通信设备接收配对验证请求;验证所述第二配对请求是否包括所述唯一代码;并且如果包括,则处理所述数据传输。According to a fifth aspect of the present invention, there is provided a method for pairing communication devices for data transmission, the method comprising receiving a first pairing request from a first communication device, the first pairing request including information identifying a data transmission associated with a user; generating a unique code for identifying the data transmission; sending the unique code to the first communication device; receiving a pairing verification request from a second communication device; verifying whether the second pairing request includes the unique code; and if so, processing the data transmission.
所述唯一代码可以被编码为QR代码的一部分。如果所述数据传输是支付交易,则所述第一通信设备关联于所述支付的接收方。所述第二通信设备关联于所述支付的支付方。The unique code may be encoded as part of a QR code. If the data transmission is a payment transaction, the first communication device is associated with a recipient of the payment. The second communication device is associated with a payer of the payment.
优选地,所述方法可以包括所述第二通信设备从所述QR代码提取所述唯一代码,其中所述配对验证请求包括所提取的唯一代码。Preferably, the method may include the second communication device extracting the unique code from the QR code, wherein the pairing verification request includes the extracted unique code.
应当理解的是,与一个方面相关的特征还可以应用于其他方面。It should be understood that features described in relation to one aspect may also be applicable to other aspects.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
现在将参照附图描述本发明的示例,其中:Examples of the present invention will now be described with reference to the accompanying drawings, in which:
图1是根据第一实施例的用于对两个移动电话进行配对的装置的示意图;FIG1 is a schematic diagram of an apparatus for pairing two mobile phones according to a first embodiment;
图2是图1的移动电话的配对电路的框图;FIG2 is a block diagram of a pairing circuit of the mobile phone of FIG1 ;
图3示出了图1中的两个移动电话和另外两个移动电话的摇动方向;FIG3 shows the shaking directions of the two mobile phones in FIG1 and two other mobile phones;
图4是定义通过图1的装置执行的配对算法的流程图;FIG4 is a flow chart defining a pairing algorithm performed by the apparatus of FIG1 ;
图5是根据第二实施例的用于配对两个通信设备的装置的示意图;以及FIG5 is a schematic diagram of an apparatus for pairing two communication devices according to a second embodiment; and
图6是定义通过图5的装置执行的配对算法的流程图。FIG. 6 is a flow chart defining a pairing algorithm performed by the apparatus of FIG. 5 .
具体实施方式DETAILED DESCRIPTION
图1是根据第一实施例的用于对两个移动电话进行配对的装置100的示意图。装置100包括期望将数据传输到第二移动设备104的第一移动设备102,并且第一移动设备102需要与第二移动设备104配对来实现数据传输。装置100还包括摇动服务器106、GPS卫星108、110和基站112、114。FIG1 is a schematic diagram of an apparatus 100 for pairing two mobile phones according to a first embodiment. Apparatus 100 includes a first mobile device 102 that desires to transmit data to a second mobile device 104, and first mobile device 102 needs to pair with second mobile device 104 to enable data transmission. Apparatus 100 also includes a shake server 106, GPS satellites 108 and 110, and base stations 112 and 114.
移动电话102、104均包括配对电路200,并且在图2中示出了配对电路的框图。配对电路200包括用于检测移动电话102、104的摇动移动或摇动动作的加速器202和用于检测移动电话的定向的数字罗盘204。配对电路200还包括用于经由基站112、114从各自的GPS卫星108、110接收GPS信号的辅助的全球定位系统(AGPS)API或模块206,用以确定移动电话102、104的地理位置。Each of the mobile phones 102, 104 includes a pairing circuit 200, and a block diagram of the pairing circuit is shown in FIG2. The pairing circuit 200 includes an accelerometer 202 for detecting a shaking movement or shaking motion of the mobile phones 102, 104 and a digital compass 204 for detecting the orientation of the mobile phones. The pairing circuit 200 also includes an Assisted Global Positioning System (AGPS) API or module 206 for receiving GPS signals from respective GPS satellites 108, 110 via base stations 112, 114 to determine the geographic location of the mobile phones 102, 104.
配对电路200包括处理器或控制器210,所述处理器或控制器210用于利用移动电话102、104的天线212与数字罗盘204、加速器202和GPS模块206进行通信并控制信息的传输和接收。应当理解的是,控制器210可以是与用于处理移动电话102、104的语音/数据的控制器相同的控制器。The pairing circuit 200 includes a processor or controller 210 for communicating with the digital compass 204, accelerometer 202, and GPS module 206 using an antenna 212 of the mobile phone 102, 104 and controlling the transmission and reception of information. It should be understood that the controller 210 may be the same controller used to handle voice/data for the mobile phone 102, 104.
移动电话102、104被布置为经由天线212和各自的基站112、114与摇动服务器106进行通信,并且还用于接收GPS信号。应当理解的是,移动电话和摇动服务器106之间的通信可以经由任何无线电信传输技术,例如Wi-Fi、互联网、2G、3G或4G电信标准。优选地,摇动服务器106驻留在互联网上,并且这样移动电话102、104被布置为使用这样的无线技术访问互联网,以及因此摇动服务器106包括用于与移动电话102、104进行通信(接收/发送)的互联网端口。The mobile phones 102, 104 are arranged to communicate with the shake server 106 via antennas 212 and respective base stations 112, 114, and are also arranged to receive GPS signals. It should be understood that communication between the mobile phones and the shake server 106 can be via any wireless telecommunication transmission technology, such as Wi-Fi, the Internet, 2G, 3G or 4G telecommunication standards. Preferably, the shake server 106 resides on the Internet, and the mobile phones 102, 104 are arranged to access the Internet using such wireless technology, and therefore the shake server 106 includes an Internet port for communicating (receiving/transmitting) with the mobile phones 102, 104.
图4示出了配对算法400。在步骤402处,为了发起两个移动电话102、104之间的配对,移动电话102、104的用户在他们各自的手中握持移动电话102、104,并且做出“握手”姿势。在图3中握手姿势被示出为箭头A和B。在移动设备102、104中通过各自的加速器202来检测握手动作A和B,并且这样就发起了两个移动电话102、104之间的配对。在步骤404处,移动电话102、104的控制器210接收各自的配对发起,并且控制器210接下来确定配对参数。FIG4 illustrates a pairing algorithm 400. At step 402, to initiate pairing between two mobile phones 102, 104, the users of mobile phones 102, 104 hold the mobile phones 102, 104 in their respective hands and perform a "handshake" gesture. The handshake gesture is shown as arrows A and B in FIG3 . The handshake gestures A and B are detected by the respective accelerometers 202 of the mobile devices 102, 104, thereby initiating pairing between the two mobile phones 102, 104. At step 404, the controllers 210 of the mobile phones 102, 104 receive the respective pairing initiations and subsequently determine the pairing parameters.
控制器210询问各自的数字罗盘204来获取各自的移动电话102、104的定向AA、BB作为第一配对参数。使用图3中的示例(其中如图所示北为“N”),第一移动设备102的定向AA是相对于北的向东偏100°。应当理解的是,在本实施例中,定向是电话的顶部所指向的方向。电话的顶部是听筒的位置,所述听筒与位于电话的底部的受话器相对。在第二移动电话104的情形中,在“握手姿势”期间的电话的定向是方向BB,其是向西偏278°。Controller 210 queries each digital compass 204 to obtain the orientations AA and BB of each mobile phone 102, 104 as a first pairing parameter. Using the example in FIG3 (where North is shown as "N"), the orientation AA of the first mobile device 102 is 100° east relative to North. It should be understood that in this embodiment, the orientation is the direction in which the top of the phone is pointing. The top of the phone is where the handset is located, which is opposite the receiver located at the bottom of the phone. In the case of the second mobile phone 104, the orientation of the phone during the "handshake gesture" is direction BB, which is 278° west.
已经发现,如果在握手姿势期间(即当移动电话102、104被摇动时)确定了移动电话102、104的定向,读取可能并不准确。因此,优选地,恰恰在握手姿势之前获取移动电话102、104的定向。为了如此实现,数字罗盘204持续检测各自的移动电话102、104的定向,并且更新各自的移动电话102、104中的存储器中的定向的值。It has been found that if the orientation of the mobile phones 102, 104 is determined during a handshake gesture (i.e., when the mobile phones 102, 104 are shaken), the reading may not be accurate. Therefore, it is preferred to obtain the orientation of the mobile phones 102, 104 just before the handshake gesture. To achieve this, the digital compass 204 continuously detects the orientation of the respective mobile phone 102, 104 and updates the value of the orientation in the memory of the respective mobile phone 102, 104.
因此,当移动电话102、104的控制器210接收各自的配对发起时(而不是在此时捕获移动电话102、104的定向),控制器210恰恰在握手发起之前(并且在此情形中,1秒之前)查询各自的移动电话102、104中的存储器。Thus, when the controllers 210 of the mobile phones 102, 104 receive the respective pairing initiation (instead of capturing the orientation of the mobile phones 102, 104 at this time), the controllers 210 query the memory in the respective mobile phones 102, 104 just before the handshake is initiated (and in this case, 1 second before).
出于本实施例中的目的,恰恰在握手发起之前的移动电话102、104的定向分别是偏东100°和偏西278°。在本实施例中,提供了20°的误差余量或容差,将在下文中对此进行阐述。应当理解的是,可以根据应用来修改或变更误差余量。For the purposes of this embodiment, the orientations of mobile phones 102, 104 immediately prior to initiation of a handshake are 100° east and 278° west, respectively. In this embodiment, a 20° margin of error or tolerance is provided, as will be explained below. It should be understood that the margin of error may be modified or varied depending on the application.
在步骤404处,控制器210还发起从AGPS模块206向控制器210下载各自的GPS信号。如应当理解的那样,由于使用了AGPS,因此APGS模块206经由各自的基站112、114从GPS卫星108、110获取GPS信号。这造成了更快地接收GPS信号。如果AGPS较弱或为了增强准确性,移动电话102、104可以使用Wi-Fi(如果可用)来确定它们的位置。At step 404, the controller 210 also initiates downloading of the respective GPS signals from the AGPS module 206 to the controller 210. As will be appreciated, due to the use of AGPS, the AGPS module 206 acquires GPS signals from the GPS satellites 108, 110 via the respective base stations 112, 114. This results in faster reception of GPS signals. If AGPS is weak or to enhance accuracy, the mobile phones 102, 104 can use Wi-Fi (if available) to determine their locations.
GPS信号使用纬度和经度坐标来标识移动电话102、104的地理位置,并且这些被用作第二配对参数。假定第一移动电话102的地理坐标是(x1,y1),并且第二移动电话104的地理坐标是(x2,y2),其中x1和x2分别是第一和第二移动电话102、104的纬度坐标,并且y1和y2分别是第一和第二移动电话102、104的经度坐标。The GPS signal uses latitude and longitude coordinates to identify the geographic location of the mobile phones 102, 104, and these are used as the second pairing parameters. Assume that the geographic coordinates of the first mobile phone 102 are ( x1 , y1 ) and the geographic coordinates of the second mobile phone 104 are ( x2 , y2 ), where x1 and x2 are the latitude coordinates of the first and second mobile phones 102, 104, respectively, and y1 and y2 are the longitude coordinates of the first and second mobile phones 102, 104, respectively.
移动电话102、104的控制器210接下来经由天线212将包括各自的配对参数(所述配对参数包括摇动方向)和地理位置的配对请求发送给摇动服务器106。The controllers 210 of the mobile phones 102 , 104 then send pairing requests including respective pairing parameters (including the shaking direction) and geographic location to the shaking server 106 via the antenna 212 .
在步骤405处,一旦接收到配对请求,在步骤405处摇动服务器106就将配对发起时间分配给每个配对请求,并且配对发起时间是第三配对参数。在此情形中,假定配对发起时间是针对第一移动电话102的t1和针对第二移动电话104的t2。At step 405, upon receiving the pairing request, the shake server 106 assigns a pairing initiation time to each pairing request, and the pairing initiation time is the third pairing parameter. In this case, it is assumed that the pairing initiation time is t1 for the first mobile phone 102 and t2 for the second mobile phone 104.
在步骤406和408处,摇动服务器106通过将配对参数与配对条件进行比较来验证配对参数。摇动服务器106检查两个移动电话102、104的地理位置(x1,y1)和(x2,y2)以确定它们是否在相同的位置内。在本实施例中,相同的位置被定义为在彼此300米的距离阈值内,并且因此距离阈值是配对条件之一。如果移动电话102、104并不在相同的位置处,配对算法400继续到步骤410来生成终结配对算法的配对出错消息。对于用户而言,为了重新发起配对,他们必须再次摇动移动设备102、104。At steps 406 and 408, the shaking server 106 verifies the pairing parameters by comparing them to the pairing conditions. The shaking server 106 checks the geographic locations ( x1 , y1 ) and ( x2 , y2 ) of the two mobile phones 102, 104 to determine if they are in the same location. In this embodiment, the same location is defined as being within a distance threshold of 300 meters from each other, and thus the distance threshold is one of the pairing conditions. If the mobile phones 102, 104 are not in the same location, the pairing algorithm 400 proceeds to step 410 to generate a pairing error message, terminating the pairing algorithm. For the user to re-initiate pairing, they must shake the mobile devices 102, 104 again.
如果摇动服务器106验证了两个移动电话102、104在相同的位置处(即在300米内),摇动服务器106验证配对发起时间t1、t2,其帮助确定移动电话102、104是否均确实是发起握手姿势的配对。在本实施例中,发起时间t1、t2之差值被使用,并且发起时间t1、t2之差值基于50秒的时间阈值,其是另一个配对条件。作为说明,如果差值小于50秒,则摇动服务器106将认为移动电话102、104期望被配对。另一方面,如果差值为50秒或更大,则在步骤408处显示出错消息。If the shake server 106 verifies that the two mobile phones 102, 104 are in the same location (i.e., within 300 meters), the shake server 106 verifies the pairing initiation times t1 , t2 , which help determine whether both mobile phones 102, 104 are indeed paired to initiate the handshake gesture. In this embodiment, the difference between the initiation times t1 , t2 is used, and the difference between the initiation times t1 , t2 is based on a time threshold of 50 seconds, which is another pairing condition. By way of illustration, if the difference is less than 50 seconds, the shake server 106 will assume that the mobile phones 102, 104 are intended to be paired. On the other hand, if the difference is 50 seconds or greater, an error message is displayed at step 408.
如果发起时间t1、t2之差值小于50秒,则摇动服务器106接下来将检查第一配对参数、即摇动方向是否将被使用。如果摇动服务器106并未从其他移动电话(除了第一和第二移动电话102、104之外)接收到配对请求,则摇动服务器106无需使用定向作为配对算法的一部分。If the difference between the initiation times t 1 and t 2 is less than 50 seconds, the shake server 106 will next check whether the first pairing parameter, i.e., the shake direction, is to be used. If the shake server 106 has not received a pairing request from any other mobile phone (besides the first and second mobile phones 102 and 104), the shake server 106 does not need to use the orientation as part of the pairing algorithm.
另一方面,如果摇动服务器106已经从两个移动电话102、104和其他的移动电话(例如,第三和第四移动电话116、118,参见图3)接收到配对请求并且这些移动电话102、104、116、118均满足上述的距离和时间阈值,摇动服务器106将使用定向来确定两个移动电话中的哪一个期望被配对。这是一个优势,因为鉴于这么多移动设备,这将增加配对成功率-而不是放弃配对,摇动服务器106能够使用定向来识别用于配对的移动设备的正确配对。On the other hand, if the shake server 106 has received pairing requests from two mobile phones 102, 104 and other mobile phones (e.g., third and fourth mobile phones 116, 118, see FIG3) and these mobile phones 102, 104, 116, 118 all meet the distance and time thresholds described above, the shake server 106 will use the orientation to determine which of the two mobile phones is desired to be paired. This is an advantage because it will increase the pairing success rate given so many mobile devices - rather than giving up on pairing, the shake server 106 can use the orientation to identify the correct pair of mobile devices for pairing.
采用第二移动电话的向西偏278°的定向BB和向东偏100°的定向AA,摇动服务器106处理这两个定向来确定两个移动设备102、104是否指向彼此。Using the second mobile phone's orientation BB of 278° west and orientation AA of 100° east, the shake server 106 processes the two orientations to determine whether the two mobile devices 102, 104 are pointing towards each other.
首先,摇动服务器106采用第一移动电话102的向东偏100°的定向并且反转该值以到达280°。接下来,摇动服务器106使用20°的误差余量以得到最小和最大定向值。最小定向值是280°-10°以给出270°,并且则最大定向值是280°+10°以给出290°。第二,摇动服务器106比较第二移动电话104的定向和最小及最大定向值。如果第二移动电话104的定向落入到最小和最大定向值内,则摇动服务器106将知晓两个移动电话102、104参与到相同的“握手”。First, the shake server 106 takes the first mobile phone 102's orientation of 100° east and reverses the value to arrive at 280°. Next, the shake server 106 uses a 20° margin of error to obtain minimum and maximum orientation values. The minimum orientation value is 280°-10° to give 270°, and the maximum orientation value is then 280°+10° to give 290°. Second, the shake server 106 compares the orientation of the second mobile phone 104 to the minimum and maximum orientation values. If the orientation of the second mobile phone 104 falls within the minimum and maximum orientation values, the shake server 106 will know that both mobile phones 102, 104 are participating in the same "handshake."
在本示例中,第二移动电话102、104的定向是向西偏278°,其落入了270°至290°的最小和最大定向值内。因此,此配对条件被满足,并且流程继续到步骤412。In this example, the orientation of the second mobile phone 102 , 104 is 278° west, which falls within the minimum and maximum orientation values of 270° to 290°. Therefore, this pairing condition is met, and the flow continues to step 412 .
一旦在摇动服务器106验证和识别出了两个配对移动电话102、104,在步骤412处摇动服务器106就为这对移动电话102、104生成连接标识符(ID),并且将所述连接ID发送到这对移动电话102、104。随着连接ID的发送,第一和第二移动电话之间的配对被视为成功,并且一旦接收到连接ID,第一和第二移动电话102、104就准备好传输或共享数据。Once the two paired mobile phones 102, 104 are verified and identified at the shake server 106, the shake server 106 generates a connection identifier (ID) for the pair of mobile phones 102, 104 at step 412 and sends the connection ID to the pair of mobile phones 102, 104. With the sending of the connection ID, the pairing between the first and second mobile phones is deemed successful, and once the connection ID is received, the first and second mobile phones 102, 104 are ready to transfer or share data.
在本实施例中,第一移动电话102期望将数据(其可以包括图像、联系方式、电子商务卡、文字标注、货币价值等)传输到第二移动电话102并且将数据与连接ID一起发送到摇动服务器106。一旦接收到数据和连接ID,摇动服务器106就将他们作为标签存储并且等待第二移动电话104与摇动服务器106建立数据传输连接(如果数据传输连接要被建立的话)。第二移动电话104周期性地检查摇动服务器106,并且当数据可用于被发送到第二移动电话104时,第二移动电话104与该摇动服务器106建立数据传输连接。In this embodiment, the first mobile phone 102 desires to transfer data (which may include images, contact information, e-commerce cards, text annotations, monetary values, etc.) to the second mobile phone 102 and sends the data along with a connection ID to the shake server 106. Upon receiving the data and connection ID, the shake server 106 stores them as tags and waits for the second mobile phone 104 to establish a data transfer connection with the shake server 106 (if a data transfer connection is to be established). The second mobile phone 104 periodically checks the shake server 106, and when data is available to be sent to the second mobile phone 104, the second mobile phone 104 establishes a data transfer connection with the shake server 106.
利用接收到的连接ID,第二移动电话104与摇动服务器106建立数据传输连接以基于连接ID从摇动服务器106接收数据。摇动服务器106基于连接ID获取标签,并且将包括数据的标签从第一移动电话102发送到第二移动电话104。Using the received connection ID, the second mobile phone 104 establishes a data transmission connection with the shaking server 106 to receive data from the shaking server 106 based on the connection ID. The shaking server 106 obtains a tag based on the connection ID and transmits the tag including the data from the first mobile phone 102 to the second mobile phone 104.
第二移动电话104接收所传输的数据来完成数据传输,并且摇动服务器关闭连接ID。The second mobile phone 104 receives the transmitted data to complete the data transmission and shakes the server to close the connection ID.
如可以理解的那样,两个移动设备102、104之间的数据传输使用摇动服务器106作为桥梁。利用配对算法400,增强了配对成功率。As can be appreciated, data transmission between the two mobile devices 102, 104 uses the shake server 106 as a bridge. Utilizing the pairing algorithm 400, the pairing success rate is enhanced.
应当理解的是,配对算法400可以被用于任何移动设备,而不仅仅是移动电话,并且还使用任何操作系统,例如苹果的IOSTM、AndriodTM、BlackberryTM OS、Windows MobileTM7/8、SymbianTM等。It should be understood that pairing algorithm 400 can be used with any mobile device, not just mobile phones, and using any operating system, such as Apple's IOS ™ , Android ™ , Blackberry ™ OS, Windows Mobile ™ 7/8, Symbian ™ , etc.
配对算法400还可以用于许多应用中,例如电子钱包(重新加载所存储的值、点数共享、支付)、移动广告、银行业务、售票(例如航线)等。这将增强移动应用提供和应用,并且更便捷快速地交换或传输数据或信息。The pairing algorithm 400 can also be used in many applications, such as electronic wallets (reloading stored value, point sharing, payment), mobile advertising, banking, ticketing (e.g., airlines), etc. This will enhance mobile application offerings and applications, and make the exchange or transmission of data or information more convenient and fast.
图5示出了根据第二实施例的用于配对第一和第二通信设备502、504的装置500,而图6是说明了由装置500执行的配对方法的概览的流程图。装置500包括移动电话502和可以作为在商店处的固定终端的电子终端504。移动电话502和电子终端504被配置为经由诸如在第一实施例中论述的电信协议之类的已知手段来与配对服务器506进行通信。由诸如银行、金融机构或其他组织之类的第三方来操作配对服务器506。FIG5 shows an apparatus 500 for pairing first and second communication devices 502 and 504 according to a second embodiment, and FIG6 is a flow chart illustrating an overview of a pairing method performed by apparatus 500. Apparatus 500 includes a mobile phone 502 and an electronic terminal 504, which may be a fixed terminal at a store. Mobile phone 502 and electronic terminal 504 are configured to communicate with a pairing server 506 via known means, such as the telecommunications protocols discussed in the first embodiment. Pairing server 506 is operated by a third party, such as a bank, financial institution, or other organization.
在此实施例中,在移动电话502的用户期望从与电子终端504相关联的商店购买商品时,执行配对来认证两个通信设备502、504。在步骤602处,店员向电子终端504键入交易信息(例如,商品的数量、商店标识等),并且向配对服务器506发起交易请求来请求唯一的交易标识符。In this embodiment, when a user of mobile phone 502 desires to purchase merchandise from a store associated with electronic terminal 504, pairing is performed to authenticate the two communication devices 502, 504. At step 602, the clerk enters transaction information (e.g., the quantity of merchandise, store identification, etc.) into electronic terminal 504 and initiates a transaction request to pairing server 506 to request a unique transaction identifier.
一旦接收到交易请求,在步骤604配对服务器506就生成唯一的交易标识符,并且在本实施例中,配对服务器506还对唯一的交易标识符和交易信息进行编码作为配对快速响应(Quick ResponseTM,QR)代码510。交易信息可以包括用于标识商店(或总体上而言的交易请求的请求方)的账户ID、交易的货币值(例如,商品的购买价格等)。配对服务器506接下来将配对QR代码510发送到商店的电子终端504。Upon receiving the transaction request, the pairing server 506 generates a unique transaction identifier at step 604. In this embodiment, the pairing server 506 also encodes the unique transaction identifier and transaction information as a pairing Quick Response ™ (QR) code 510. The transaction information may include an account ID identifying the store (or, more generally, the requester of the transaction request), the monetary value of the transaction (e.g., the purchase price of the item), etc. The pairing server 506 then transmits the pairing QR code 510 to the store's electronic terminal 504.
商店接下来在电子终端502上显示配对QR代码510,并且移动电话502的用户启动移动电话502中的应用。应用提示用户“登录”用户的详情,并且这些详情被发送到配对服务器506来进行验证以在其间建立活动会话(active session)。利用在移动电话502和配对服务器506之间建立的活动回话,用户通过扫描或拍摄配对QR代码510的照片来在步骤606处使用移动电话502以捕获配对QR代码510的图像。The store then displays the pairing QR code 510 on the electronic terminal 502, and the user of the mobile phone 502 launches the application on the mobile phone 502. The application prompts the user to "log in" with their details, which are then sent to the pairing server 506 for verification, establishing an active session between them. With the active session established between the mobile phone 502 and the pairing server 506, the user uses the mobile phone 502 to capture an image of the pairing QR code 510 at step 606 by scanning or taking a photo of the pairing QR code 510.
从所捕获的QR代码图像中,移动电话502在步骤608处提取唯一的交易标识符,并且显示相关信息以供用户进行验证。在本实施例中,所显示的相关信息包括商品价格、商品描述和商店名称等。接下来,用户被提示通过将个人标识代码(例如PIN)键入到移动设备502中来确认交易以确认交易,并且如果所显示的相关信息正确,则用户就这样做。在移动电话502中运行的应用接下来将PIN发送到配对服务器506以用于验证。配对服务器506(基于先前的登录详情)验证所接收到的PIN确实与用户相关联,并且如果PIN正确,则配对服务器506向移动电话502相应地发送信号。From the captured QR code image, mobile phone 502 extracts the unique transaction identifier at step 608 and displays relevant information for the user to verify. In this embodiment, the relevant information displayed includes the product price, product description, and store name, among others. Next, the user is prompted to confirm the transaction by entering a personal identification code (e.g., PIN) into mobile phone 502 to confirm the transaction, and if the displayed relevant information is correct, the user does so. The application running on mobile phone 502 then sends the PIN to pairing server 506 for verification. Pairing server 506 verifies (based on previous login details) that the received PIN is indeed associated with the user, and if the PIN is correct, pairing server 506 signals mobile phone 502 accordingly.
应当理解的是,取代PIN的是,用户的生物统计信息可以被(经由与移动电话502集成的生物统计设备或与移动电话502耦接的单独的生物统计设备)用于认证。It should be understood that instead of a PIN, the user's biometric information may be used for authentication (via a biometric device integrated with the mobile phone 502 or a separate biometric device coupled to the mobile phone 502).
接下来,移动电话502中的应用将唯一的交易标识符和相关信息(商品价格、商品描述等)作为配对验证请求的一部分发送到配对服务器506以用于验证。Next, the application in the mobile phone 502 sends the unique transaction identifier and related information (product price, product description, etc.) as part of the pairing verification request to the pairing server 506 for verification.
在步骤610处,配对服务器506验证所提取的唯一交易标识符的正确性,并且如果所提取的唯一交易标识符相同于由配对服务器506生成并转发到电子终端504的唯一交易标识符,则在步骤616处,验证被视为成功,并且移动电话502被视为与移动终端504已配对(并且反之亦然)。另一方面,如果标识符并不匹配,则在步骤614处,验证不成功,并且配对服务器506将出错消息返回到移动电话502和电子终端504。At step 610, the pairing server 506 verifies the correctness of the extracted unique transaction identifier, and if the extracted unique transaction identifier is identical to the unique transaction identifier generated by the pairing server 506 and forwarded to the electronic terminal 504, then at step 616, the verification is deemed successful and the mobile phone 502 is deemed paired with the mobile terminal 504 (and vice versa). On the other hand, if the identifiers do not match, then at step 614, the verification is unsuccessful and the pairing server 506 returns an error message to the mobile phone 502 and the electronic terminal 504.
当验证成功时,配对服务器506将通过例如批准交易来处理交易,从而可以(通过从用户的账户转账支付金额或相应地给用户开发票)向商店进行支付。状态消息将随后被发送给双方。处理交易还可以涉及配对服务器506重定向或发送交易详情给第三方以在批准交易前进行进一步的处理。If verification is successful, the matchmaking server 506 will process the transaction by, for example, approving it, allowing payment to be made to the merchant (by transferring the payment amount from the user's account or invoicing the user accordingly). A status message will then be sent to both parties. Processing the transaction may also involve the matchmaking server 506 redirecting or sending transaction details to a third party for further processing before approving the transaction.
取代在移动电话502和固定终端504之间的配对的是,配对可以是在移动电话502和诸如另一个移动电话508之类的另一个移动设备之间(参见图5)。此流程类似于图6中所示的流程,并且假定第一移动电话502的用户希望向第二移动电话508的用户进行支付,并且在这种情况下,第二移动电话508被视为接收方。在启动了移动电话502、508中的软件应用之后,作为接收方的第二移动电话508将请求发送到配对服务器506来请求唯一的交易标识符。配对服务器506生成唯一的交易标识符,将其嵌入到QR代码中,并且将该QR代码发送到第二移动电话508。Instead of pairing between mobile phone 502 and fixed terminal 504, pairing can be between mobile phone 502 and another mobile device, such as another mobile phone 508 (see FIG5 ). This process is similar to the process shown in FIG6 , and assumes that the user of first mobile phone 502 wishes to make a payment to the user of second mobile phone 508, in which case second mobile phone 508 is considered the recipient. After launching the software application on mobile phones 502 and 508, second mobile phone 508, as the recipient, sends a request to pairing server 506 for a unique transaction identifier. Pairing server 506 generates a unique transaction identifier, embeds it in a QR code, and sends the QR code to second mobile phone 508.
接下来,第一移动电话502的用户通过键入正确的安全PIN来键入额度来进行支付并认证支付。第一移动电话502的用户接下来使用移动电话的相机来扫描在第二移动电话508上显示的QR代码。第一移动电话502的软件应用从QR代码提取唯一的交易标识符,并且将它与支付额及用户(即支付方)的账号一起发送到配对服务器506。Next, the user of the first mobile phone 502 enters the amount to make the payment and authenticates the payment by entering the correct security PIN. The user of the first mobile phone 502 then uses the mobile phone's camera to scan the QR code displayed on the second mobile phone 508. The software application of the first mobile phone 502 extracts the unique transaction identifier from the QR code and sends it to the pairing server 506 along with the payment amount and the user's (i.e., the payer's) account number.
配对服务器506接下来通过将所接收到的唯一的交易标识符与由配对服务器506发送到第二移动电话508的交易标识符进行比较来验证所接收到的唯一的交易标识符。如果所接收到的唯一的交易标识符匹配先前的那个,则配对被视为成功,并且配对服务器506处理交易,并且在这种情况下,将货币从支付方(即移动电话502的用户)的账号转账到第二移动电话508的用户的账号。状态消息也被经由它们的移动电话502、508发送到用户中的每一个。The pairing server 506 next verifies the received unique transaction identifier by comparing it with the transaction identifier sent by the pairing server 506 to the second mobile phone 508. If the received unique transaction identifier matches the previous one, the pairing is deemed successful and the pairing server 506 processes the transaction and, in this case, transfers money from the account of the payee (i.e., the user of the mobile phone 502) to the account of the user of the second mobile phone 508. A status message is also sent to each of the users via their mobile phones 502, 508.
如果验证失败,则出错消息被发送给移动电话502、508。If the verification fails, an error message is sent to the mobile phone 502,508.
如能够理解的那样,使用唯一的交易标识符对移动电话502、508的配对(或在移动电话502和终端504之间的配对)帮助配对服务器506认证交易并且提供信息或数据的安全的交换。由于计划将资金转账给另一个用户的用户已经访问了由配对服务器生成并且发送给另一个用户的QR代码,这提供了两个通信设备(在两个移动电话502、508之间或在移动电话502和终端504之间)期望被配对的良好证据。As can be appreciated, pairing of mobile phones 502, 508 (or pairing between mobile phone 502 and terminal 504) using a unique transaction identifier helps pairing server 506 authenticate the transaction and provide a secure exchange of information or data. Since the user intending to transfer funds to another user has accessed the QR code generated by the pairing server and sent to the other user, this provides good evidence that the two communication devices (between the two mobile phones 502, 508 or between mobile phone 502 and terminal 504) are intended to be paired.
应当理解的是,第二实施例可以适用于各种应用,例如忠诚顾客计划。使用图5的示例,并且假定第一移动设备502的用户具有返点来向电子终端504的商店换取商品,用户请求并下载被嵌入有唯一的交易标识符的QR代码和与忠诚顾客奖励(例如一杯免费咖啡)相关的信息到第一移动电话502中。用户随后将移动电话502带到商店并且向可以是咖啡机的操作者的店员出示QR代码。店员随后调用电子终端504中的软件程序(如果软件程序尚未运行的话)来捕获QR代码的图像。同样,从被捕获的QR代码中提取唯一的交易代码,并且该代码被发送到配对服务器506以用于验证。如果唯一的交易代码的验证成功,这表示QR代码是真的,并且配对服务器506将向电子终端504发送确认消息。It should be understood that the second embodiment can be applied to various applications, such as loyalty programs. Using the example of FIG. 5 , and assuming that the user of first mobile device 502 has rebates to redeem for merchandise at a store on electronic terminal 504, the user requests and downloads a QR code embedded with a unique transaction identifier and information related to a loyalty reward (e.g., a free cup of coffee) to first mobile phone 502. The user then takes mobile phone 502 to the store and presents the QR code to a store clerk, who may be the operator of the coffee machine. The clerk then invokes a software program in electronic terminal 504 (if not already running) to capture an image of the QR code. Similarly, a unique transaction code is extracted from the captured QR code and sent to pairing server 506 for verification. If verification of the unique transaction code is successful, this indicates that the QR code is authentic, and pairing server 506 sends a confirmation message to electronic terminal 504.
随着配对成功,向店员确保了QR代码的真实性,并且店员可以根据忠诚顾客奖励的条件来向用户提供一杯免费咖啡(即交易)。With the pairing successful, the authenticity of the QR code is assured to the clerk, and the clerk can offer the user a free cup of coffee (ie, the transaction) in accordance with the terms of the loyalty reward.
所描述的实施例不应被解释为是限制性的。例如,取代移动电话的是,其他移动/通信设备(例如平板和PDA等)还可以使用所提出的用于传输数据的方法。而且,在第一实施例中,AGPS用于确定移动电话102、104的地理位置,但可以构想的是,移动电话可以与GPS卫星108、110直接通信来接收GPS信号(尽管这可能不是优选的)。还可以构想的是,可以根据其他方式(例如Wi-Fi定位系统)来确定移动电话102、104的位置。第一实施例使用从第一移动电话102和第二移动电话104传输数据作为示例,但应当理解的是,配对算法400还可以用于在两个移动电话102、104之间交换数据。此外,装置100可以根据摇动服务器106和其他组件的配置来使用配对算法400同时或顺序地配对设备。而且,取代在一个移动电话向另一个移动电话进行配对的是,配对算法可以用于将一个移动电话(或设备)配对到许多的移动电话(或设备)。对于第二实施例同样地,配对可以是在一个设备和多个设备之间。The described embodiments should not be construed as limiting. For example, instead of mobile phones, other mobile/communication devices (e.g., tablets and PDAs) can also utilize the proposed method for transmitting data. Furthermore, in the first embodiment, AGPS is used to determine the geographic location of mobile phones 102, 104, but it is contemplated that the mobile phones could communicate directly with GPS satellites 108, 110 to receive GPS signals (although this may not be preferred). It is also contemplated that the locations of mobile phones 102, 104 could be determined using other methods (e.g., Wi-Fi positioning systems). The first embodiment uses data transmission from a first mobile phone 102 and a second mobile phone 104 as an example, but it should be understood that pairing algorithm 400 can also be used to exchange data between two mobile phones 102, 104. Furthermore, apparatus 100 can utilize pairing algorithm 400 to pair devices simultaneously or sequentially, depending on the configuration of shake server 106 and other components. Furthermore, instead of pairing one mobile phone with another, the pairing algorithm can be used to pair one mobile phone (or device) with multiple mobile phones (or devices). Similarly, for the second embodiment, pairing can be between one device and multiple devices.
无需赘言,应当理解的是,第一实施例中的定向的误差余量、距离和时间阈值可以相应地变化。Needless to say, it should be understood that the error margin of orientation, distance, and time thresholds in the first embodiment may be varied accordingly.
而且,在第一实施例中,根据另两个配对参数(位置信息和配对初始时间)可以或可以不使用移动电话102、104的定向。然而,可以构想的是,可以缺省地使用移动电话102、104的定向来增强配对的准确性。Furthermore, in the first embodiment, the orientation of the mobile phones 102, 104 may or may not be used depending on the other two pairing parameters (location information and pairing initiation time). However, it is contemplated that the orientation of the mobile phones 102, 104 may be used by default to enhance pairing accuracy.
在第二实施例中,尽管使用PIN增加了另一层的安全性,但像上述解释所示那样输入PIN并不是必须的。可以使用其他编码技术(例如条码)来取代QR代码。尽管并非优选,但还可以与其他信息一起在空隙(clear)中发送唯一的交易标识符。In the second embodiment, although the use of a PIN adds another layer of security, it is not necessary to enter a PIN as explained above. Other encoding technologies (such as barcodes) can be used instead of QR codes. Although not preferred, a unique transaction identifier can also be sent in the clear along with other information.
已经充分地描述了本发明,对于本领域一般技术人员而言清楚的是,可以对本发明进行许多修改而不偏离如权利要求所述的范围。Having fully described the present invention, it will be apparent to those skilled in the art that many modifications can be made thereto without departing from the scope of the claims.
Claims (16)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/MY2012/000245 WO2014035231A1 (en) | 2012-08-29 | 2012-08-29 | Method of pairing mobile devices |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1208115A1 HK1208115A1 (en) | 2016-02-19 |
| HK1208115B true HK1208115B (en) | 2020-03-13 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6173460B2 (en) | How to pair a mobile device | |
| US11107072B2 (en) | Mobile phone ATM processing methods and systems | |
| EP3693911B1 (en) | Card linking method and terminal | |
| US10922674B2 (en) | Dongle device for automatic pairing of payment terminal to mobile computing device | |
| AU2013306668B2 (en) | Method and system for authenticating transaction request from device | |
| US20170032370A1 (en) | Electronic payment transactions using machine readable code without requiring online connection | |
| WO2015103971A1 (en) | Method and system for verifying transactions using a smart card | |
| CN111656380B (en) | Electronic device and method for supporting automatic Wi-Fi connection with enhanced security method when making e-wallet payments | |
| US20140129450A1 (en) | Secure payment method and system | |
| CN107025548A (en) | Transaction processing method, terminal and system | |
| WO2018234882A1 (en) | A system and method for conducting a transaction | |
| KR101627015B1 (en) | Apparatus for Joint Payment by Using Local Area Mobile Communication and Method thereof | |
| US20170202040A1 (en) | Dongle device for automatic pairing to a local device | |
| EP3627419B1 (en) | Secure transaction using a mobile device | |
| US20170161744A1 (en) | System and Method for Cash Withdrawal | |
| HK1208115B (en) | Method of pairing mobile devices | |
| WO2017213557A2 (en) | Means, method and system for carrying out transactions | |
| KR102163676B1 (en) | Method for Multi Authentication by using One Time Division Code |