WO2015184754A1 - Mobile terminal and method for exchanging calling cards between mobile terminals - Google Patents

Mobile terminal and method for exchanging calling cards between mobile terminals Download PDF

Info

Publication number
WO2015184754A1
WO2015184754A1 PCT/CN2014/093053 CN2014093053W WO2015184754A1 WO 2015184754 A1 WO2015184754 A1 WO 2015184754A1 CN 2014093053 W CN2014093053 W CN 2014093053W WO 2015184754 A1 WO2015184754 A1 WO 2015184754A1
Authority
WO
WIPO (PCT)
Prior art keywords
target device
mobile terminal
business card
exchanging
bluetooth
Prior art date
Application number
PCT/CN2014/093053
Other languages
French (fr)
Chinese (zh)
Inventor
郑成忠
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015184754A1 publication Critical patent/WO2015184754A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/2753Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content
    • H04M1/2757Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips providing data content by data transmission, e.g. downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Definitions

  • the present invention relates to mobile communication technologies, and in particular, to a method for implementing business card exchange between a mobile terminal and a mobile terminal.
  • the technical problem to be solved by the embodiments of the present invention is to provide a method for implementing business card exchange between a mobile terminal and a mobile terminal, so as to solve the problem that the traditional paper business card cannot be automatically input into the mobile terminal after interaction.
  • an embodiment of the present invention discloses a method for implementing business card exchange between mobile terminals, including:
  • the mobile terminal When receiving the operation instruction for exchanging the business card, the mobile terminal performs a Bluetooth search. If the target device for exchanging the business card is searched, the mobile terminal establishes a connection with the target device, transmits the business card information of the target device to the target device, and receives the data sent by the target device.
  • the mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal.
  • the operating instruction that the mobile terminal receives the exchange of the business card includes:
  • the mobile terminal determines that the one-direction acceleration is decremented to 0 within the set time, it determines the operation of exchanging the business card.
  • the mobile terminal when the mobile terminal receives an operation instruction for exchanging a business card, performing a Bluetooth search, and if searching for a target device for exchanging a business card, establishing a connection with the target device, including:
  • the mobile terminal When receiving the operation instruction for exchanging the business card, the mobile terminal first generates the Bluetooth device name according to the preset manner, and then performs a Bluetooth search. If the device that searches for the Bluetooth device name according to the preset manner is searched, the device is determined to be the exchange. The target device of the business card and establishes a connection with the target device.
  • the generating, by the mobile terminal, the Bluetooth device name according to the preset manner includes:
  • the mobile terminal performs data encryption algorithm (DES) encryption on the current Bluetooth device name using the current date and time to generate a Bluetooth device name.
  • DES data encryption algorithm
  • the mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal, including:
  • the mobile terminal parses the data sent by the target device, determines whether the operation information of the target device that is parsed is an operation of exchanging business cards, and if so, adds the business card information in the data sent by the target device to the mobile terminal. In the contact list.
  • the determining, by the mobile terminal, whether the operation information of the target device that is parsed is an exchange business card includes:
  • the mobile terminal acquires direction sensor data of the target device from the data sent by the target device, and compares with the direction sensor data when the mobile terminal receives an operation instruction for exchanging the business card, if the target device and the mobile terminal have opposite acceleration directions And determining that the operation information of the target device is an operation of exchanging business cards.
  • the foregoing method further includes:
  • the mobile terminal When the mobile terminal transmits its own business card information to the target device, it also transmits to the target device direction sensor data when the mobile terminal receives an operation instruction for exchanging business cards.
  • the embodiment of the invention further discloses a mobile terminal, comprising:
  • a Bluetooth module configured to: perform a Bluetooth search when the mobile terminal receives an operation instruction for exchanging a business card, and if the target device for exchanging the business card is searched for, establish a connection with the target device, and transmit the business card information of the target device to the target device. Receiving data sent by the target device;
  • the contact module is configured to: parse the data sent by the target device, and add the parsed business card information of the target device to the contact list of the mobile terminal.
  • the operation instruction that the mobile terminal receives the exchange of a business card includes:
  • the mobile terminal determines that the one-direction acceleration is decremented to 0 within the set time, it determines the operation of exchanging the business card.
  • the Bluetooth module includes:
  • Modifying the name sub-module the setting is: when the mobile terminal receives the operation instruction for exchanging the business card, first generating the Bluetooth device name according to the preset manner;
  • the Bluetooth data transmission sub-module is configured to: perform a Bluetooth search, and if it searches for a device that generates a Bluetooth device name according to the preset manner, determine that the device is a target device for exchanging business cards, and establish a target device with the target device. connection.
  • the modified name submodule is configured to generate a Bluetooth device name in a preset manner in the following manner:
  • DES Data encryption algorithm
  • the adding a contact module includes:
  • a judging sub-module configured to: parse the data sent by the target device, and determine whether the operation information of the parsed target device is an operation of exchanging a business card;
  • the setting is: adding, when the first unit determines that the operation information of the target device obtained by the parsing is an operation of exchanging a business card, adding the business card information in the data sent by the target device to the contact list of the mobile terminal in.
  • the determining submodule is configured to determine whether the operation information of the parsed target device is an exchange card in the following manner:
  • the direction sensor data is compared. If the acceleration directions of the target device and the mobile terminal are opposite to each other, the operation information of the target device is determined to be an operation of exchanging the business card.
  • the Bluetooth module is further configured to: when transmitting the business card information of the mobile device to the target device, transmit the direction sensor data when the mobile terminal receives the operation instruction for exchanging the business card to the target device.
  • the embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the terminal, enabling the terminal to perform the method described above.
  • Embodiments of the present invention also provide a computer readable storage medium carrying the computer program.
  • the embodiment of the invention discloses a scheme for automatically exchanging business cards.
  • the search finds targets with common laws and realizes both sides.
  • the ability to automatically add contacts is very convenient, fast, and practical.
  • Figure 1 is a coordinate orientation diagram of a mobile phone acceleration sensor
  • 2 is a coordinate orientation diagram of a mobile phone direction sensor
  • FIG. 3 is a schematic diagram of a simulated business card exchange scenario in an embodiment of the present invention.
  • FIG. 4 is a flow chart of a method for implementing business card exchange between mobile terminals in the scenario shown in FIG. 3;
  • FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • the inventor of the present application finds that the contact on the business card can only be manually added to the mobile terminal after the exchange of the paper business card. Therefore, a scheme is proposed to simulate the exchange of the business card, that is, through the contact between the mobile terminals. The action is triggered to trigger the mobile terminal to automatically add a contact on the business card.
  • the embodiment provides a method for implementing business card exchange between mobile terminals, including the following operations:
  • the mobile terminal When receiving the operation instruction for exchanging the business card, the mobile terminal performs a Bluetooth search. If the target device for exchanging the business card is searched, the mobile terminal establishes a connection with the target device, transmits the business card information of the target device to the target device, and receives the data sent by the target device.
  • the mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal.
  • the mobile device When the mobile terminal receives the operation instruction for exchanging the business card, the mobile device first generates the Bluetooth device name according to the preset manner, and then performs a Bluetooth search. If the device that searches for the Bluetooth device name according to the preset manner is found, the device is determined. Establish a connection to the target device for the target device.
  • the specific implementation can be based on the entire action process, rather than based solely on the implementation of a certain state. If you just use the touch as a criterion for adding contacts, there will be some misunderstandings. For example, when two phones are accidentally placed and touched together, it may result in no business cards being exchanged. In the case of intent, the information was accidentally exchanged. Therefore, it cannot be judged by whether or not it is in a certain state, and it should be based on whether or not the parties have an intention to exchange actions. If both parties have an exchange intent, it is possible to automatically add a contact; if one party does not exchange an intent, it does not trigger the automatic addition of the contact.
  • This intention is an action process.
  • the most representative of this action process is that the acceleration of the two devices is decremented to 0 and the direction at the same time. Instead, data on the acceleration and direction sensors is required.
  • the mobile terminal When the mobile terminal collides, it can be considered as an operation of exchanging business cards, that is, an intention to exchange business cards. Specifically, for the mobile terminal itself, it is determined that the acceleration in a certain direction is rapidly decremented to 0 (ie, the acceleration is decremented to 0 in the set time). It should be noted that the set time is a short time, and the acceleration is reduced to 0 in a short time to be considered as a collision, that is, it is considered that an operation instruction for exchanging business cards is received.
  • the mobile terminal generates the device of the Bluetooth device name according to a preset manner.
  • the mobile terminal can perform DES encryption on the current Bluetooth device name and generate a Bluetooth device name by using the current date and time.
  • the main purpose of temporarily modifying the name of the Bluetooth device is to improve the security of the data transmitted by the device, that is, to identify only the specially named device that meets the requirements for the exchange of the business card, and then perform subsequent data transmission.
  • a specially named device in the vicinity refers to a device that generates a Bluetooth device name in the same preset manner as the mobile terminal.
  • the mobile terminal only needs to decrypt the device name of the surrounding device, and the device name that can perform the decryption operation is the target device, and then the data transmission can be performed.
  • the algorithm determines whether the other party has the same intent finger in the same time period, and the mobile terminal acquires the acceleration sensor data and the direction sensor data of the target device from the data sent by the target device, and according to the operation instruction of the mobile terminal when receiving the exchange business card
  • the acceleration sensor data and the direction sensor data are judged. If the target device and the acceleration sensor of the mobile terminal are decremented to 0 in the same time period in the same direction, and the directional acceleration of the target device and the mobile terminal is a collision relationship (ie, the target The device and the mobile terminal have opposite acceleration directions, and then the operation information of the target device is determined to be an operation of exchanging business cards, that is, the target device has the same intention as the mobile terminal, and the Exchange business cards.
  • Fig. 1 the coordinate diagram of the acceleration sensor of the mobile phone is described.
  • the values of (X Y Z) we obtain are the acceleration values (possibly negative values) in the three directions of X, Y, and Z, respectively.
  • the direction sensor is abbreviated as O-sensor, and returns the angle data of the three axes.
  • the unit of the direction data is the angle.
  • the orientation sensor provides three data, azimuth, pitch, and roll. among them,
  • Pitch the angle between the x-axis and the horizontal plane, ranging from -180° to 180°
  • the acceleration values of the two in the Y-axis direction may have a difference in magnitude, but will be rapidly decremented to zero. Since the acceleration values we obtained are all sampled according to a certain frequency, it is only necessary to use statistical knowledge to determine whether the two sets of data have a law of rapid decrement to zero in the same period. In addition, it is necessary to determine whether the two devices are close or far away based on the azimuth value of the directional acceleration. Therefore, it is necessary to determine whether or not to exchange business card information according to the acceleration law in the Y direction and the azimuth angle value of the direction sensor.
  • S12 each determines whether the acceleration in a certain direction is rapidly decremented to 0. If yes, it indicates that it has an intention to exchange business cards, and executes S20; if not, then jumps to S61;
  • S20 packaging the acceleration sensor data and the direction sensor data in the collision process together with the virtual business card data thereof, and subsequently as the data information transmitted to the target device;
  • the reason why the mobile terminal transmits the acceleration sensor data and the direction sensor data to the target device is to facilitate the target device to compare the acceleration sensor data and the direction sensor data with the acceleration sensor data and the direction sensor data of the target device according to the acceleration sensor data and the direction sensor data. Confirm whether the mobile terminal initiates the operation of exchanging business cards.
  • the principle of judging whether to initiate the exchange of business cards is the same as the operation of the S50.
  • S32 judging the neighboring Bluetooth devices that are searched, if it is found that the naming of a device can be decrypted by using the DES algorithm, then it is determined to be the target device, and the S40 is continuously executed. If the Bluetooth device encrypted by the DES algorithm is not found, the execution is performed. S61;
  • the above condition A represents that the data of the Y direction of the two sets of acceleration sensors is decremented to 0 in the same period of time, and the directional acceleration of the two is the relationship of the collision. Among them, the relationship of decreasing to 0 can be based on the statistically relevant mature algorithm, and the collision relationship of the direction acceleration is relatively simple.
  • the reason for the above condition A is to judge the target device by the condition A. The operation is not the operation of exchanging business cards. If the condition A is met, it can be judged that the operation of the target device is to exchange business cards, and directly enter S60 to add a contact action. If the condition A is not met, it can be judged that the operation of the target device is not to exchange business cards, and may be other operations or misoperations, etc., and the operation of S61 is performed.
  • S61 Turn off Bluetooth, use the DES algorithm to decrypt the name of the Bluetooth device, delete the temporary Sensor data and cache, restore all temporary modifications, and finish the completion.
  • the embodiment provides a mobile terminal, which can implement the operation of exchanging business cards in the foregoing Embodiment 1, and includes at least the following modules.
  • the Bluetooth module 50 performs a Bluetooth search when the mobile terminal receives an operation instruction for exchanging business cards, and if a target device for exchanging business cards is searched for, establishes a connection with the target device, transmits its own business card information to the target device, and receives the target. Data sent by the device;
  • the mobile terminal When the mobile terminal collides, it can be considered as an operation to exchange business cards.
  • the mobile terminal determines that the acceleration in a certain direction is decremented to 0 within the set time, it determines the operation of exchanging the business card.
  • the set time is a short time, and the acceleration is reduced to 0 in a short time to be considered as a collision, that is, it is considered that an operation instruction for exchanging business cards is received.
  • the Bluetooth module 50 transmits its own business card information to the target device
  • the direction sensor data when the mobile terminal receives the operation instruction for exchanging the business card may be transmitted to the target device, so that the target device determines the operation information of the mobile terminal.
  • the contact module 51 is configured to parse the data sent by the target device, and add the business card information in the data sent by the parsed target device to the contact list of the mobile terminal.
  • the Bluetooth module is divided into the following sub-modules.
  • the name sub-module 501 is modified to generate a Bluetooth device name according to a preset manner when the mobile terminal receives an operation instruction for exchanging a business card;
  • the above modified name submodule can use the current date and time for the current Bluetooth device name. Perform DES encryption to generate a Bluetooth device name.
  • the Bluetooth data transmission sub-module 502 performs a Bluetooth search. If a device that generates a Bluetooth device name according to a preset manner is searched for, the device is determined to be a target device, and a connection is established with the target device.
  • the above-mentioned adding contact module 51 can be divided into a determining sub-module 511 and an adding sub-module 512, and determining that the sub-module obtains the direction sensor data of the target device from the data sent by the target device, and according to the operation instruction of the mobile terminal when receiving the exchange of the business card.
  • the direction sensor data is compared. If the acceleration directions of the target device and the mobile terminal are opposite to each other, it is determined that the operation information of the target device is an operation of exchanging business cards.
  • the acceleration sensor of the target device and the mobile terminal are decremented to 0 in the same time period in the same direction, and the directional acceleration of the target device and the mobile terminal is a collision relationship, and the operation information of the target device is determined to be an operation of exchanging business cards. .
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the invention realizes the function of exchanging business cards between mobile terminals and automatically adding contacts, which is very convenient, fast and practical.

Abstract

A mobile terminal and a method for exchanging calling cards between mobile terminals. The method comprises: when a mobile terminal receives an operation instruction for exchanging calling cards, the mobile terminal performs a Bluetooth search, and if a target device with which the calling cards are exchanged is found, the mobile terminal establishes a connection with the target device, sends calling card information of the mobile terminal to the target device and receives data sent by the target device; and the mobile terminal parses the data sent by the target device, and adds the parsed calling card information of the target device to a contact list of the mobile terminal.

Description

一种移动终端及移动终端间实现名片交换的方法Method for realizing business card exchange between mobile terminal and mobile terminal 技术领域Technical field
本发明涉及移动通讯技术,特别涉及一种移动终端及移动终端间实现名片交换的方法。The present invention relates to mobile communication technologies, and in particular, to a method for implementing business card exchange between a mobile terminal and a mobile terminal.
背景技术Background technique
随着IT行业和软件技术的高速发展,手机行业也脱颖而出,近些年手机用户数飞速增长,尤其android手机更是普及甚广。然而再智能的手机,用户正常使用的时候都会遇到一个小烦恼,每当要新添加联系人好友的时候,都要进行手动输入号码和姓名等信息,而且也存在输入错误的可能,非常不方便。With the rapid development of the IT industry and software technology, the mobile phone industry has also stood out. In recent years, the number of mobile phone users has grown rapidly, especially the android mobile phone is widely used. However, when the smart phone is used, the user will encounter a small trouble when using it normally. Whenever you want to add a new contact friend, you must manually enter the number and name, etc., and there is a possibility of input error, very Convenience.
另外,在日常生活中,纸质名片也有被广泛使用,每当有需要的时候,都可以向新结识的朋友递上自己的名片。互换名片也是日常工作和生活中比较常见和普遍的一个环节,然而也确有其不便之处。In addition, in daily life, paper business cards are also widely used, and whenever necessary, you can hand in your business cards to new friends you meet. The exchange of business cards is also a common and common part of daily work and life, but it does have its inconvenience.
发明内容Summary of the invention
本发明实施例所要解决的技术问题是提供一种移动终端及移动终端间实现名片交换的方法,以解决传统纸质名片交互后无法自动输入移动终端的问题。The technical problem to be solved by the embodiments of the present invention is to provide a method for implementing business card exchange between a mobile terminal and a mobile terminal, so as to solve the problem that the traditional paper business card cannot be automatically input into the mobile terminal after interaction.
为了解决上述技术问题,本发明实施例公开了一种移动终端间实现名片交换的方法,包括:In order to solve the above technical problem, an embodiment of the present invention discloses a method for implementing business card exchange between mobile terminals, including:
移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,向该目标设备传输自身的名片信息以及接收该目标设备发送的数据;When receiving the operation instruction for exchanging the business card, the mobile terminal performs a Bluetooth search. If the target device for exchanging the business card is searched, the mobile terminal establishes a connection with the target device, transmits the business card information of the target device to the target device, and receives the data sent by the target device.
所述移动终端解析所述目标设备发送的数据,将解析得到的所述目标设备的名片信息添加到移动终端的联系人列表中。 The mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal.
可选地,上述方法中,所述移动终端接收交换名片的操作指令包括:Optionally, in the foregoing method, the operating instruction that the mobile terminal receives the exchange of the business card includes:
所述移动终端判断一方向加速度在设定时间内递减为0时,确定进行交换名片的操作。When the mobile terminal determines that the one-direction acceleration is decremented to 0 within the set time, it determines the operation of exchanging the business card.
可选地,上述方法中,所述移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,包括:Optionally, in the above method, when the mobile terminal receives an operation instruction for exchanging a business card, performing a Bluetooth search, and if searching for a target device for exchanging a business card, establishing a connection with the target device, including:
移动终端收到交换名片的操作指令时,先按照预设方式生成蓝牙设备名称,再进行蓝牙搜索,若搜索到周边有按照所述预设方式生成蓝牙设备名称的设备,则确定该设备为交换名片的目标设备,并与所述目标设备建立连接。When receiving the operation instruction for exchanging the business card, the mobile terminal first generates the Bluetooth device name according to the preset manner, and then performs a Bluetooth search. If the device that searches for the Bluetooth device name according to the preset manner is searched, the device is determined to be the exchange. The target device of the business card and establishes a connection with the target device.
可选地,上述方法中,所述移动终端按照预设方式生成蓝牙设备名称包括:Optionally, in the foregoing method, the generating, by the mobile terminal, the Bluetooth device name according to the preset manner includes:
所述移动终端使用当前的日期和时间,对当前的蓝牙设备名称执行数据加密算法(DES)加密,生成蓝牙设备名称。The mobile terminal performs data encryption algorithm (DES) encryption on the current Bluetooth device name using the current date and time to generate a Bluetooth device name.
可选地,上述方法中,所述移动终端解析所述目标设备发送的数据,将解析得到的所述目标设备的名片信息添加到移动终端的联系人列表中,包括:Optionally, in the above method, the mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal, including:
所述移动终端解析所述目标设备发送的数据,判断解析得到的目标设备的操作信息是否为交换名片的操作,如果是,才将所述目标设备发送的数据中的名片信息添加到移动终端的联系人列表中。The mobile terminal parses the data sent by the target device, determines whether the operation information of the target device that is parsed is an operation of exchanging business cards, and if so, adds the business card information in the data sent by the target device to the mobile terminal. In the contact list.
可选地,上述方法中,所述移动终端判断解析得到的目标设备的操作信息是否为交换名片的操作包括:Optionally, in the foregoing method, the determining, by the mobile terminal, whether the operation information of the target device that is parsed is an exchange business card includes:
所述移动终端从所述目标设备发送的数据中获取目标设备的方向传感器数据,与移动终端在接收交换名片的操作指令时的方向传感器数据进行比对,若目标设备与移动终端的加速度方向相反,则确定所述目标设备的操作信息为交换名片的操作。The mobile terminal acquires direction sensor data of the target device from the data sent by the target device, and compares with the direction sensor data when the mobile terminal receives an operation instruction for exchanging the business card, if the target device and the mobile terminal have opposite acceleration directions And determining that the operation information of the target device is an operation of exchanging business cards.
可选地,上述方法还包括:Optionally, the foregoing method further includes:
所述移动终端向所述目标设备传输自身的名片信息时,还向所述目标设备传输移动终端在接收交换名片的操作指令时的方向传感器数据。When the mobile terminal transmits its own business card information to the target device, it also transmits to the target device direction sensor data when the mobile terminal receives an operation instruction for exchanging business cards.
本发明实施例还公开了一种移动终端,包括: The embodiment of the invention further discloses a mobile terminal, comprising:
蓝牙模块,其设置为:在移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,向该目标设备传输自身的名片信息以及接收该目标设备发送的数据;a Bluetooth module, configured to: perform a Bluetooth search when the mobile terminal receives an operation instruction for exchanging a business card, and if the target device for exchanging the business card is searched for, establish a connection with the target device, and transmit the business card information of the target device to the target device. Receiving data sent by the target device;
添加联系人模块,其设置为:解析所述目标设备发送的数据,将解析得到的所述目标设备的名片信息添加到移动终端的联系人列表中。The contact module is configured to: parse the data sent by the target device, and add the parsed business card information of the target device to the contact list of the mobile terminal.
可选地,上述移动终端中,所述移动终端接收交换名片的操作指令包括:Optionally, in the foregoing mobile terminal, the operation instruction that the mobile terminal receives the exchange of a business card includes:
所述移动终端判断一方向加速度在设定时间内递减为0时,确定进行交换名片的操作。When the mobile terminal determines that the one-direction acceleration is decremented to 0 within the set time, it determines the operation of exchanging the business card.
可选地,上述移动终端中,所述蓝牙模块包括:Optionally, in the foregoing mobile terminal, the Bluetooth module includes:
修改名称子模块,其设置为:在移动终端收到交换名片的操作指令时,先按照预设方式生成蓝牙设备名称;Modifying the name sub-module, the setting is: when the mobile terminal receives the operation instruction for exchanging the business card, first generating the Bluetooth device name according to the preset manner;
蓝牙数据传输子模块,其设置为:进行蓝牙搜索,若搜索到周边有按照所述预设方式生成蓝牙设备名称的设备,则确定该设备为交换名片的目标设备,并与所述目标设备建立连接。The Bluetooth data transmission sub-module is configured to: perform a Bluetooth search, and if it searches for a device that generates a Bluetooth device name according to the preset manner, determine that the device is a target device for exchanging business cards, and establish a target device with the target device. connection.
可选地,上述移动终端中,所述修改名称子模块是设置为以如下方式按照预设方式生成蓝牙设备名称:Optionally, in the foregoing mobile terminal, the modified name submodule is configured to generate a Bluetooth device name in a preset manner in the following manner:
使用当前的日期和时间,对当前的蓝牙设备名称执行数据加密算法(DES)加密,生成蓝牙设备名称。Data encryption algorithm (DES) encryption is performed on the current Bluetooth device name using the current date and time to generate a Bluetooth device name.
可选地,上述移动终端中,所述添加联系人模块包括:Optionally, in the foregoing mobile terminal, the adding a contact module includes:
判断子模块,其设置为:解析所述目标设备发送的数据,并判断解析得到的目标设备的操作信息是否为交换名片的操作;a judging sub-module configured to: parse the data sent by the target device, and determine whether the operation information of the parsed target device is an operation of exchanging a business card;
添加子模块,其设置为:在所述第一单元判断解析得到的目标设备的操作信息为交换名片的操作时,将所述目标设备发送的数据中的名片信息添加到移动终端的联系人列表中。Adding a sub-module, the setting is: adding, when the first unit determines that the operation information of the target device obtained by the parsing is an operation of exchanging a business card, adding the business card information in the data sent by the target device to the contact list of the mobile terminal in.
可选地,上述移动终端中,所述判断子模块是设置为以如下方式判断解析得到的目标设备的操作信息是否为交换名片:Optionally, in the foregoing mobile terminal, the determining submodule is configured to determine whether the operation information of the parsed target device is an exchange card in the following manner:
从所述目标设备发送的数据中获取目标设备的方向传感器数据,并与移 动终端在接收交换名片的操作指令时的方向传感器数据进行比对,若目标设备与移动终端的加速度方向彼此相反,则确定所述目标设备的操作信息为交换名片的操作。Obtaining direction sensor data of the target device from the data sent by the target device, and moving When the mobile terminal receives the operation command for exchanging the business card, the direction sensor data is compared. If the acceleration directions of the target device and the mobile terminal are opposite to each other, the operation information of the target device is determined to be an operation of exchanging the business card.
可选地,上述移动终端中,所述蓝牙模块还设置为:向所述目标设备传输自身的名片信息时,向所述目标设备传输移动终端在接收交换名片的操作指令时的方向传感器数据。Optionally, in the foregoing mobile terminal, the Bluetooth module is further configured to: when transmitting the business card information of the mobile device to the target device, transmit the direction sensor data when the mobile terminal receives the operation instruction for exchanging the business card to the target device.
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行上面所述的方法。The embodiment of the invention further provides a computer program, comprising program instructions, when the program instruction is executed by the terminal, enabling the terminal to perform the method described above.
本发明实施例还提供一种载有所述计算机程序的计算机可读存储介质。Embodiments of the present invention also provide a computer readable storage medium carrying the computer program.
本发明实施例公开了一种自动交换名片的方案,当两个手机终端靠近碰在一起的时候,各自根据传感器数据所呈现出来的规律,再结合蓝牙,搜索找到有共同规律的目标,实现双方自动添加联系人的功效,非常方便、快捷、实用。The embodiment of the invention discloses a scheme for automatically exchanging business cards. When two mobile phone terminals are close to each other, according to the rules presented by the sensor data, combined with Bluetooth, the search finds targets with common laws and realizes both sides. The ability to automatically add contacts is very convenient, fast, and practical.
附图概述BRIEF abstract
图1为手机加速度传感器坐标方位图;Figure 1 is a coordinate orientation diagram of a mobile phone acceleration sensor;
图2为手机方向传感器坐标方位图;2 is a coordinate orientation diagram of a mobile phone direction sensor;
图3为本发明实施例中交换名片模拟场景示意图;3 is a schematic diagram of a simulated business card exchange scenario in an embodiment of the present invention;
图4为图3所示场景下移动终端间实现名片交换的方法流程图;4 is a flow chart of a method for implementing business card exchange between mobile terminals in the scenario shown in FIG. 3;
图5为本发明实施例中的移动终端的结构示意图。FIG. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
下文将结合附图对本发明实施例作详细说明。需要说明的是,在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments of the present application may be combined with each other arbitrarily.
实施例1 Example 1
本申请的发明人发现纸质名片交换后只能以手动方式将名片上的联系人添加到移动终端中,因此,提出一种方案,来模拟交换名片的场景,即通过移动终端间的接触对碰动作,触发移动终端自动添加名片上的联系人。The inventor of the present application finds that the contact on the business card can only be manually added to the mobile terminal after the exchange of the paper business card. Therefore, a scheme is proposed to simulate the exchange of the business card, that is, through the contact between the mobile terminals. The action is triggered to trigger the mobile terminal to automatically add a contact on the business card.
本实施例提供一种移动终端间实现名片交换的方法,包括如下操作:The embodiment provides a method for implementing business card exchange between mobile terminals, including the following operations:
移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,向该目标设备传输自身的名片信息以及接收该目标设备发送的数据;When receiving the operation instruction for exchanging the business card, the mobile terminal performs a Bluetooth search. If the target device for exchanging the business card is searched, the mobile terminal establishes a connection with the target device, transmits the business card information of the target device to the target device, and receives the data sent by the target device.
移动终端解析目标设备发送的数据,将解析得到的目标设备的名片信息添加到移动终端的联系人列表中。The mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal.
其中,移动终端收到交换名片的操作指令时,先按照预设方式生成蓝牙设备名称,再进行蓝牙搜索,若搜索到周边有按照所述预设方式生成蓝牙设备名称的设备,则确定该设备为目标设备,与该目标设备建立连接。When the mobile terminal receives the operation instruction for exchanging the business card, the mobile device first generates the Bluetooth device name according to the preset manner, and then performs a Bluetooth search. If the device that searches for the Bluetooth device name according to the preset manner is found, the device is determined. Establish a connection to the target device for the target device.
为了模拟实际交换纸质名片的场景,具体的实现就可以基于整个动作过程,而不是单单基于某个状态的实现。如果只是使用是否触碰在一起作为各自添加联系人的判断标准的话,就会有一些误会场景,比如,当两个手机意外放置并碰触在了一起的时候,就可能导致在没有互换名片意图的情况下,意外地互换了信息。所以,不能只是通过是否处于某种状态作为判断标准,应该是以双方是否有交换动作的意图作为标准。如果双方都有交换意图,才可能实现自动添加联系人;如果有一方没有交换意图,就不触发联系人的自动添加。In order to simulate the actual exchange of paper business cards, the specific implementation can be based on the entire action process, rather than based solely on the implementation of a certain state. If you just use the touch as a criterion for adding contacts, there will be some misunderstandings. For example, when two phones are accidentally placed and touched together, it may result in no business cards being exchanged. In the case of intent, the information was accidentally exchanged. Therefore, it cannot be judged by whether or not it is in a certain state, and it should be based on whether or not the parties have an intention to exchange actions. If both parties have an exchange intent, it is possible to automatically add a contact; if one party does not exchange an intent, it does not trigger the automatic addition of the contact.
而是否自动添加联系人的充分必要条件是双方是否都有交换意图,这个意图是一个动作过程,那么最能表示这个动作过程的是,两个设备的加速度在同一时间内快递递减为0并且方向相反,因此就需要使用到加速度传感器和方向传感器的数据。The necessary and sufficient condition for automatically adding contacts is whether both parties have exchange intentions. This intention is an action process. The most representative of this action process is that the acceleration of the two devices is decremented to 0 and the direction at the same time. Instead, data on the acceleration and direction sensors is required.
由于传感器的特殊性,在两个终端触碰的过程中,各自只能获取到自己的传感器数据,无法获取到对方的数据。因此触碰过程中,是无法知晓对方是否有交换意图的。因此,在判断出自身有交换意图后,借助蓝牙技术,首先将自己特殊标注一下,然后搜索有类似特殊标注的设备,然后建立传输通信,确认对方是否同时间断内也有交换意图,如果都有意图,最终实现联系 人的自动添加。Due to the particularity of the sensor, in the process of touching the two terminals, each of them can only obtain their own sensor data, and cannot obtain the data of the other party. Therefore, during the touch process, it is impossible to know whether the other party has an exchange intention. Therefore, after judging that there is an exchange intention, with Bluetooth technology, first specifically mark yourself, then search for devices with similar special annotations, and then establish a transmission communication to confirm whether the other party has an exchange intention at the same time, if there is intention , eventually achieving contact Automatic addition of people.
因此,增加了如下几方面的考虑:Therefore, the following considerations have been added:
1)各自判断自己是否有交换名片的意图;1) Each judges whether or not it has the intention to exchange business cards;
其中,移动终端发生碰撞时,可以认为是要进行交换名片的操作,即有交换名片的意图。具体地,对于移动终端自身而言,判断某一方向加速度快速递减为0(即加速度在设定时间内递减为0)即可。需要说明的是,设定时间是一个很短的时间,在很短的时间内加速度减为0才能认为是发生了碰撞,即认为是接收到了交换名片的操作指令。When the mobile terminal collides, it can be considered as an operation of exchanging business cards, that is, an intention to exchange business cards. Specifically, for the mobile terminal itself, it is determined that the acceleration in a certain direction is rapidly decremented to 0 (ie, the acceleration is decremented to 0 in the set time). It should be noted that the set time is a short time, and the acceleration is reduced to 0 in a short time to be considered as a collision, that is, it is considered that an operation instruction for exchanging business cards is received.
2)如果自己有意图,就临时修改自己的蓝牙设备名称为特殊命名;2) If you have an intention, temporarily modify your Bluetooth device name to a special name;
也就是说,移动终端按照预设方式生成蓝牙设备名称的设备。其中,移动终端可以使用当前的日期和时间,对当前的蓝牙设备名称执行DES加密,生成蓝牙设备名称。而对蓝牙设备名称进行临时修改的主要目的是,提高设备传输数据的安全性,即只识别出符合交换名片要求的特殊命名的设备,才进行后续的数据传输。That is to say, the mobile terminal generates the device of the Bluetooth device name according to a preset manner. The mobile terminal can perform DES encryption on the current Bluetooth device name and generate a Bluetooth device name by using the current date and time. The main purpose of temporarily modifying the name of the Bluetooth device is to improve the security of the data transmitted by the device, that is, to identify only the specially named device that meets the requirements for the exchange of the business card, and then perform subsequent data transmission.
3)然后开始蓝牙搜索,如果能搜到周边有特殊命名的设备,那么就建立自动对连接并相互传输自己的意图和名片信息等数据;3) Then start the Bluetooth search. If you can find a device with a special name around it, then create data that automatically connects and transmits your own intent and business card information.
周边有特殊命名的设备,即指与移动终端采用相同预设方式生成蓝牙设备名称的设备。其中,移动终端只要对其周边的设备名称进行DES解密,可以进行解密操作的设备名称就是目标设备,随后进行数据传输即可。A specially named device in the vicinity refers to a device that generates a Bluetooth device name in the same preset manner as the mobile terminal. The mobile terminal only needs to decrypt the device name of the surrounding device, and the device name that can perform the decryption operation is the target device, and then the data transmission can be performed.
4)各自拿到对方的数据后,通过算法判断出同一时间段内对方也有相同的意图,那么开始各自添加联系人。4) After each gets the data of the other party, it is judged by the algorithm that the other party has the same intention in the same time period, then start to add the contacts respectively.
通过算法判断出同一时间段内对方是否有相同的意图指,移动终端从目标设备发送的数据中获取目标设备的加速度传感器数据和方向传感器数据,并根据移动终端在接收交换名片的操作指令时的加速度传感器数据和方向传感器数据进行判断,若目标设备与移动终端的加速度传感器在同一方向上在同一时间段内均递减为0,并且目标设备与移动终端的方向加速度是对碰的关系(即目标设备与移动终端的加速度方向相反),则确定目标设备的操作信息为交换名片的操作,就是目标设备与移动终端有相同的意图,都要进行 交换名片。The algorithm determines whether the other party has the same intent finger in the same time period, and the mobile terminal acquires the acceleration sensor data and the direction sensor data of the target device from the data sent by the target device, and according to the operation instruction of the mobile terminal when receiving the exchange business card The acceleration sensor data and the direction sensor data are judged. If the target device and the acceleration sensor of the mobile terminal are decremented to 0 in the same time period in the same direction, and the directional acceleration of the target device and the mobile terminal is a collision relationship (ie, the target The device and the mobile terminal have opposite acceleration directions, and then the operation information of the target device is determined to be an operation of exchanging business cards, that is, the target device has the same intention as the mobile terminal, and the Exchange business cards.
5)最终恢复临时性修改,删除临时传感器数据等。5) Final restoration of temporary modifications, deletion of temporary sensor data, etc.
需要说明的是,上述5方面的考虑可以分别单独使用在某个方案中,也可以将上5方面的考虑进行任意的组合后使用在某些方案中。It should be noted that the above five aspects may be used separately in a certain scheme, or the above five aspects may be arbitrarily combined and used in some schemes.
下面结合附图对上述方法进行具体说明。The above method will be specifically described below with reference to the accompanying drawings.
如图1所示,描述了手机的加速度传感器的坐标图,我们获取到的(X Y Z)的值分别是在X、Y、Z这三个方向上的加速度值(可能是负值)。As shown in Fig. 1, the coordinate diagram of the acceleration sensor of the mobile phone is described. The values of (X Y Z) we obtain are the acceleration values (possibly negative values) in the three directions of X, Y, and Z, respectively.
方向传感器简称为O-sensor,返回三轴的角度数据,方向数据的单位是角度。方向传感器提供三个数据,分别为azimuth、pitch和roll。其中,The direction sensor is abbreviated as O-sensor, and returns the angle data of the three axes. The unit of the direction data is the angle. The orientation sensor provides three data, azimuth, pitch, and roll. among them,
azimuth:方位,返回水平时磁北极和Y轴的夹角,范围为0°至360°(如图2所示):0°=北,90°=东,180°=南,270°=西Azimuth: azimuth, the angle between the magnetic north pole and the y-axis when returning to horizontal, ranging from 0° to 360° (as shown in Figure 2): 0°=North, 90°=East, 180°=South, 270°=West
pitch:x轴和水平面的夹角,范围为-180°至180°Pitch: the angle between the x-axis and the horizontal plane, ranging from -180° to 180°
roll:y轴和水平面的夹角,范围为-90°至90°Roll: the angle between the y axis and the horizontal plane, ranging from -90° to 90°
为了便于演示两个手机对碰的过程,这里只是以一种碰撞场景为例展开分析,那就是两个手机在水平方向上,分别沿自己的Y轴正方向向对方靠近的场景,如图3所示,对于沿X、Z方向对碰的场景是一样的原理。In order to facilitate the demonstration of the collision process between two mobile phones, here is just an example of a collision scene, that is, two mobile phones in the horizontal direction, respectively, along the positive direction of their Y-axis, the scene close to each other, as shown in Figure 3. As shown, the same principle is applied to the scenes that are touched in the X and Z directions.
整个对碰的过程,可以容易的看到,在同样的一个短时间段内,两者在Y轴方向的加速度值可能有大小上的差异,但都会快速地递减为0。由于我们获取到的加速度值都是按照一定的频率采样上来的,所以只要利用统计学知识判断出两组数据是否在同时间段内具有快速递减为0的规律即可。另外,需要再根据方向加速度的azimuth值就可判断出两个设备是靠近还是远离。所以,需要根据Y方向的加速度规律和方向传感器的azimuth角度值,来决定是否要执行名片信息的交换。Throughout the collision process, it can be easily seen that in the same short period of time, the acceleration values of the two in the Y-axis direction may have a difference in magnitude, but will be rapidly decremented to zero. Since the acceleration values we obtained are all sampled according to a certain frequency, it is only necessary to use statistical knowledge to determine whether the two sets of data have a law of rapid decrement to zero in the same period. In addition, it is necessary to determine whether the two devices are close or far away based on the azimuth value of the directional acceleration. Therefore, it is necessary to determine whether or not to exchange business card information according to the acceleration law in the Y direction and the azimuth angle value of the direction sensor.
下面对上述对碰过程所引起的交换名片的过程进行详细说明,该过程如 图4所示,包括如下操作:The following describes the process of exchanging business cards caused by the above-mentioned collision process, and the process is as follows. As shown in Figure 4, the following operations are included:
S10:两个设备预先填充好自己的虚拟名片信息;S10: The two devices are pre-filled with their own virtual business card information;
S11:按照附图3的方式执行对碰动作;S11: performing a collision action according to the method of FIG. 3;
S12:各自判断某一方向加速度是否快速递减为0,如果是,则表示自己已经有交换名片的意图,执行S20,如果否,则跳转至S61;S12: each determines whether the acceleration in a certain direction is rapidly decremented to 0. If yes, it indicates that it has an intention to exchange business cards, and executes S20; if not, then jumps to S61;
S20:将对碰过程中的加速度传感器数据和方向传感器数据,连同自己的虚拟名片数据打包,后续作为传输给目标设备的数据信息;S20: packaging the acceleration sensor data and the direction sensor data in the collision process together with the virtual business card data thereof, and subsequently as the data information transmitted to the target device;
其中,移动终端之所以将加速度传感器数据和方向传感器数据传送给目标设备,是为了便于目标设备根据此加速度传感器数据和方向传感器数据与目标设备自身的加速度传感器数据和方向传感器数据进行比对,以确认移动终端是否发起了交换名片的操作。判断是否发起交换名片操作的原则与S50的操作相同。The reason why the mobile terminal transmits the acceleration sensor data and the direction sensor data to the target device is to facilitate the target device to compare the acceleration sensor data and the direction sensor data with the acceleration sensor data and the direction sensor data of the target device according to the acceleration sensor data and the direction sensor data. Confirm whether the mobile terminal initiates the operation of exchanging business cards. The principle of judging whether to initiate the exchange of business cards is the same as the operation of the S50.
S30:使用当前的日期和时间,对自己的蓝牙设备名称执行DES(Data Encryption Algorithm,数据加密算法)加密;S30: Perform DES (Data Encryption Algorithm) encryption on the name of the Bluetooth device by using the current date and time;
S31:打开蓝牙开始搜索,此时UI上给出请等待的提示类信息;S31: Open Bluetooth to start searching, and at this time, the prompt information of the waiting class is given on the UI;
S32:对搜到的周边蓝牙设备,依次判断,如果发现某设备的命名可以使用DES算法解密,那么确定其为目标设备,继续执行S40,如果搜不到使用DES算法加密过的蓝牙设备,执行S61;S32: judging the neighboring Bluetooth devices that are searched, if it is found that the naming of a device can be decrypted by using the DES algorithm, then it is determined to be the target device, and the S40 is continuously executed. If the Bluetooth device encrypted by the DES algorithm is not found, the execution is performed. S61;
S40:和目标设备建立自动配对连接,将S20步骤里的数据包发给目标设备;S40: Establish an automatic pairing connection with the target device, and send the data packet in the step S20 to the target device;
S41:查看是否有接收到目标设备的数据包,收到跳至S50,没有收到则执行S61;S41: Check whether there is a data packet received by the target device, and the process skips to S50, and if it is not received, executes S61;
S50:分析数据是否符合条件A,如果符合,执行S60,如果不符合,则执行S61;S50: analyzing whether the data meets the condition A, if yes, executing S60, if not, executing S61;
上述条件A代表:两组加速度传感器的Y方向的数据在同一个时间段内都递减为0,并且两者的方向加速度是对碰的关系。其中,递减至0的关系可以借助统计学的相关成熟算法,而方向加速度的对碰关系就较为简单了。要说明的是,之所以进行上述条件A的,是为了通过条件A来判断目标设备 的操作是不是交换名片的操作。若符合条件A,即可判断目标设备的操作就是交换名片,直接进入S60进行添加联系人的动作。若不符合条件A,即可判断目标设备的操作不是交换名片,可能是其他操作或误操作等,就进行S61的操作。The above condition A represents that the data of the Y direction of the two sets of acceleration sensors is decremented to 0 in the same period of time, and the directional acceleration of the two is the relationship of the collision. Among them, the relationship of decreasing to 0 can be based on the statistically relevant mature algorithm, and the collision relationship of the direction acceleration is relatively simple. It should be noted that the reason for the above condition A is to judge the target device by the condition A. The operation is not the operation of exchanging business cards. If the condition A is met, it can be judged that the operation of the target device is to exchange business cards, and directly enter S60 to add a contact action. If the condition A is not met, it can be judged that the operation of the target device is not to exchange business cards, and may be other operations or misoperations, etc., and the operation of S61 is performed.
S60:根据收到的对方名片信息,各自添加为联系人,并在UI上显示已成功添加某联系人的提示;S60: According to the received business card information of the other party, each is added as a contact, and a prompt for successfully adding a contact is displayed on the UI;
S61:关闭蓝牙,使用DES算法对自己的蓝牙设备名称解密,删除临时Sensor数据和缓存,恢复所有临时性修改,结束完成。S61: Turn off Bluetooth, use the DES algorithm to decrypt the name of the Bluetooth device, delete the temporary Sensor data and cache, restore all temporary modifications, and finish the completion.
实施例2Example 2
如图5所示,本实施例提供一种移动终端,可实现上述实施例1中交换名片的操作,其至少包括如下各模块。As shown in FIG. 5, the embodiment provides a mobile terminal, which can implement the operation of exchanging business cards in the foregoing Embodiment 1, and includes at least the following modules.
蓝牙模块50,在移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,向该目标设备传输自身的名片信息以及接收该目标设备发送的数据;The Bluetooth module 50 performs a Bluetooth search when the mobile terminal receives an operation instruction for exchanging business cards, and if a target device for exchanging business cards is searched for, establishes a connection with the target device, transmits its own business card information to the target device, and receives the target. Data sent by the device;
其中,移动终端发生碰撞时,可以认为是要进行交换名片的操作。移动终端判断某一方向加速度在设定时间内递减为0时,确定进行交换名片的操作。需要说明的是,设定时间是一个很短的时间,在很短的时间内加速度减为0才能认为是发生了碰撞,即认为是接收到了交换名片的操作指令。When the mobile terminal collides, it can be considered as an operation to exchange business cards. When the mobile terminal determines that the acceleration in a certain direction is decremented to 0 within the set time, it determines the operation of exchanging the business card. It should be noted that the set time is a short time, and the acceleration is reduced to 0 in a short time to be considered as a collision, that is, it is considered that an operation instruction for exchanging business cards is received.
另外,上述蓝牙模块50,向目标设备传输自身的名片信息时,还可以向目标设备传输移动终端在接收交换名片的操作指令时的方向传感器数据,以便目标设备判断移动终端的操作信息。In addition, when the Bluetooth module 50 transmits its own business card information to the target device, the direction sensor data when the mobile terminal receives the operation instruction for exchanging the business card may be transmitted to the target device, so that the target device determines the operation information of the mobile terminal.
添加联系人模块51,解析目标设备发送的数据,将解析得到的目标设备发送的数据中的名片信息添加到移动终端的联系人列表中。The contact module 51 is configured to parse the data sent by the target device, and add the business card information in the data sent by the parsed target device to the contact list of the mobile terminal.
可选地,蓝牙模块分为如下子模块。Optionally, the Bluetooth module is divided into the following sub-modules.
修改名称子模块501,在移动终端收到交换名片的操作指令时,先按照预设方式生成蓝牙设备名称;The name sub-module 501 is modified to generate a Bluetooth device name according to a preset manner when the mobile terminal receives an operation instruction for exchanging a business card;
上述修改名称子模块可使用当前的日期和时间,对当前的蓝牙设备名称 执行DES加密,生成蓝牙设备名称。The above modified name submodule can use the current date and time for the current Bluetooth device name. Perform DES encryption to generate a Bluetooth device name.
蓝牙数据传输子模块502,进行蓝牙搜索,若搜索到周边有按照预设方式生成蓝牙设备名称的设备,则确定该设备为目标设备,并与目标设备建立连接。The Bluetooth data transmission sub-module 502 performs a Bluetooth search. If a device that generates a Bluetooth device name according to a preset manner is searched for, the device is determined to be a target device, and a connection is established with the target device.
而上述添加联系人模块51可分为判断子模块511和添加子模块512,判断子模块从目标设备发送的数据中获取目标设备的方向传感器数据,并根据移动终端在接收交换名片的操作指令时的方向传感器数据进行比对,若目标设备与移动终端的加速度方向彼此相反,则确定目标设备的操作信息为交换名片的操作。即目标设备与移动终端的加速度传感器在同一方向上在同一时间段内均递减为0,并且目标设备与移动终端的方向加速度是对碰的关系,则确定目标设备的操作信息为交换名片的操作。The above-mentioned adding contact module 51 can be divided into a determining sub-module 511 and an adding sub-module 512, and determining that the sub-module obtains the direction sensor data of the target device from the data sent by the target device, and according to the operation instruction of the mobile terminal when receiving the exchange of the business card. The direction sensor data is compared. If the acceleration directions of the target device and the mobile terminal are opposite to each other, it is determined that the operation information of the target device is an operation of exchanging business cards. That is, the acceleration sensor of the target device and the mobile terminal are decremented to 0 in the same time period in the same direction, and the directional acceleration of the target device and the mobile terminal is a collision relationship, and the operation information of the target device is determined to be an operation of exchanging business cards. .
由于上述移动终端可实现上述实施例1的方法,因此各模块、子模块的具体操作可参见上述实施例1的相应内容,在此不再赘述。For the above-mentioned mobile terminal, the method of the foregoing embodiment 1 can be implemented. For the specific operation of each module and sub-module, refer to the corresponding content of the foregoing embodiment 1, and details are not described herein again.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。 When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例实现移动终端间交换名片,自动添加联系人的功效,非常方便、快捷、实用。 The embodiment of the invention realizes the function of exchanging business cards between mobile terminals and automatically adding contacts, which is very convenient, fast and practical.

Claims (16)

  1. 一种移动终端间实现名片交换的方法,该方法包括:A method for implementing business card exchange between mobile terminals, the method comprising:
    移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,向该目标设备传输自身的名片信息以及接收该目标设备发送的数据;When receiving the operation instruction for exchanging the business card, the mobile terminal performs a Bluetooth search. If the target device for exchanging the business card is searched, the mobile terminal establishes a connection with the target device, transmits the business card information of the target device to the target device, and receives the data sent by the target device.
    所述移动终端解析所述目标设备发送的数据,将解析得到的所述目标设备的名片信息添加到所述移动终端的联系人列表中。The mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal.
  2. 如权利要求1所述的方法,其中,所述移动终端接收交换名片的操作指令包括:The method of claim 1, wherein the operating instruction of the mobile terminal to exchange business cards comprises:
    所述移动终端判断一方向加速度在设定时间内递减为0时,确定进行交换名片的操作。When the mobile terminal determines that the one-direction acceleration is decremented to 0 within the set time, it determines the operation of exchanging the business card.
  3. 如权利要求1所述的方法,其中,所述移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,包括:The method of claim 1, wherein the mobile terminal performs a Bluetooth search when receiving an operation instruction for exchanging business cards, and if a target device for exchanging business cards is searched for, establishing a connection with the target device, including:
    移动终端收到交换名片的操作指令时,先按照预设方式生成蓝牙设备名称,再进行蓝牙搜索,若搜索到周边有按照所述预设方式生成蓝牙设备名称的设备,则确定该设备为交换名片的目标设备,并与所述目标设备建立连接。When receiving the operation instruction for exchanging the business card, the mobile terminal first generates the Bluetooth device name according to the preset manner, and then performs a Bluetooth search. If the device that searches for the Bluetooth device name according to the preset manner is searched, the device is determined to be the exchange. The target device of the business card and establishes a connection with the target device.
  4. 如权利要求3所述的方法,其中,所述移动终端按照预设方式生成蓝牙设备名称包括:The method of claim 3, wherein the generating, by the mobile terminal, the Bluetooth device name in a preset manner comprises:
    所述移动终端使用当前的日期和时间,对当前的蓝牙设备名称执行数据加密算法(DES)加密,生成蓝牙设备名称。The mobile terminal performs data encryption algorithm (DES) encryption on the current Bluetooth device name using the current date and time to generate a Bluetooth device name.
  5. 如权利要求2至4任一项所述的方法,其中,所述移动终端解析所述目标设备发送的数据,将解析得到的所述目标设备的名片信息添加到移动终端的联系人列表中,包括:The method of any one of claims 2 to 4, wherein the mobile terminal parses the data sent by the target device, and adds the parsed business card information of the target device to the contact list of the mobile terminal. include:
    所述移动终端解析所述目标设备发送的数据,判断解析得到的目标设备 的操作信息是否为交换名片的操作,如果是,才将所述目标设备发送的数据中的名片信息添加到移动终端的联系人列表中。The mobile terminal parses data sent by the target device, and determines the target device that is parsed Whether the operation information is an operation of exchanging business cards, and if so, adding the business card information in the data sent by the target device to the contact list of the mobile terminal.
  6. 如权利要求5所述的方法,其中,所述移动终端判断解析得到的目标设备的操作信息是否为交换名片的操作包括:The method of claim 5, wherein the determining, by the mobile terminal, whether the operation information of the parsed target device is an exchange of a business card comprises:
    所述移动终端从所述目标设备发送的数据中获取目标设备的方向传感器数据,与移动终端在接收交换名片的操作指令时的方向传感器数据进行比对,若目标设备与移动终端的加速度方向相反,则确定所述目标设备的操作信息为交换名片的操作。The mobile terminal acquires direction sensor data of the target device from the data sent by the target device, and compares with the direction sensor data when the mobile terminal receives an operation instruction for exchanging the business card, if the target device and the mobile terminal have opposite acceleration directions And determining that the operation information of the target device is an operation of exchanging business cards.
  7. 如权利要求6所述的方法,该方法还包括:The method of claim 6 further comprising:
    所述移动终端向所述目标设备传输自身的名片信息时,还向所述目标设备传输移动终端在接收交换名片的操作指令时的方向传感器数据。When the mobile terminal transmits its own business card information to the target device, it also transmits to the target device direction sensor data when the mobile terminal receives an operation instruction for exchanging business cards.
  8. 一种移动终端,包括:A mobile terminal includes:
    蓝牙模块,其设置为:在移动终端接收到交换名片的操作指令时,进行蓝牙搜索,若搜索到交换名片的目标设备,则与该目标设备建立连接,向该目标设备传输自身的名片信息以及接收该目标设备发送的数据;a Bluetooth module, configured to: perform a Bluetooth search when the mobile terminal receives an operation instruction for exchanging a business card, and if the target device for exchanging the business card is searched for, establish a connection with the target device, and transmit the business card information of the target device to the target device. Receiving data sent by the target device;
    添加联系人模块,其设置为:解析所述目标设备发送的数据,将解析得到的所述目标设备的名片信息添加到所述移动终端的联系人列表中。The contact module is configured to: parse the data sent by the target device, and add the parsed business card information of the target device to the contact list of the mobile terminal.
  9. 如权利要求8所述的移动终端,其中,所述移动终端接收交换名片的操作指令包括:The mobile terminal of claim 8, wherein the operating instruction of the mobile terminal to exchange the business card comprises:
    所述移动终端判断一方向加速度在设定时间内递减为0时,确定进行交换名片的操作。When the mobile terminal determines that the one-direction acceleration is decremented to 0 within the set time, it determines the operation of exchanging the business card.
  10. 如权利要求8所述的移动终端,其中,所述蓝牙模块包括:The mobile terminal of claim 8, wherein the Bluetooth module comprises:
    修改名称子模块,其设置为:在移动终端收到交换名片的操作指令时,按照预设方式生成蓝牙设备名称;Modifying the name sub-module, which is set to: when the mobile terminal receives the operation instruction for exchanging the business card, generate the Bluetooth device name according to a preset manner;
    蓝牙数据传输子模块,其设置为:进行蓝牙搜索,若搜索到周边有按照所述预设方式生成蓝牙设备名称的设备,则确定该设备为交换名片的目标设 备,并与所述目标设备建立连接。The Bluetooth data transmission sub-module is configured to: perform a Bluetooth search, and if it searches for a device that generates a Bluetooth device name according to the preset manner, determine that the device is a target for exchanging business cards. Prepare and establish a connection with the target device.
  11. 如权利要求10所述的移动终端,其中,所述修改名称子模块是设置为以如下方式按照预设方式生成蓝牙设备名称:The mobile terminal of claim 10, wherein the modified name sub-module is configured to generate a Bluetooth device name in a preset manner in the following manner:
    使用当前的日期和时间,对当前的蓝牙设备名称执行数据加密算法(DES)加密,生成蓝牙设备名称。Data encryption algorithm (DES) encryption is performed on the current Bluetooth device name using the current date and time to generate a Bluetooth device name.
  12. 如权利要求8至11任一项所述的移动终端,其中,所述添加联系人模块包括:The mobile terminal according to any one of claims 8 to 11, wherein the adding a contact module comprises:
    判断子模块,其设置为:解析所述目标设备发送的数据,并判断解析得到的目标设备的操作信息是否为交换名片的操作;a judging sub-module configured to: parse the data sent by the target device, and determine whether the operation information of the parsed target device is an operation of exchanging a business card;
    添加子模块,其设置为:在所述判断子模块解析得到的目标设备的操作信息为交换名片的操作时,将所述目标设备发送的数据中的名片信息添加到移动终端的联系人列表中。Adding a sub-module, which is set to: add the business card information in the data sent by the target device to the contact list of the mobile terminal when the operation information of the target device that is parsed by the determining sub-module is an operation of exchanging business cards .
  13. 如权利要求12所述的移动终端,其中,所述判断子模块是设置为以如下方式判断解析得到的目标设备的操作信息是否为交换名片:The mobile terminal of claim 12, wherein the determining sub-module is configured to determine whether the operation information of the parsed target device is an exchange business card in the following manner:
    从所述目标设备发送的数据中获取目标设备的方向传感器数据,并与移动终端在接收交换名片的操作指令时的方向传感器数据进行比对,若目标设备与移动终端的加速度方向彼此相反,则确定所述目标设备的操作信息为交换名片的操作。Obtaining direction sensor data of the target device from the data sent by the target device, and comparing the direction sensor data when the mobile terminal receives an operation instruction for exchanging the business card, if the acceleration directions of the target device and the mobile terminal are opposite to each other, Determining operation information of the target device is an operation of exchanging business cards.
  14. 如权利要求12所述的移动终端,其中,所述蓝牙模块还设置为:向所述目标设备传输自身的名片信息时,向所述目标设备传输移动终端在接收交换名片的操作指令时的方向传感器数据。The mobile terminal of claim 12, wherein the Bluetooth module is further configured to: when transmitting the business card information of the target device to the target device, transmit, to the target device, a direction in which the mobile terminal receives an operation instruction for exchanging the business card Sensor data.
  15. 一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行权利要求1-7任一项所述的方法。A computer program comprising program instructions that, when executed by a terminal, cause the terminal to perform the method of any of claims 1-7.
  16. 一种载有权利要求15所述计算机程序的计算机可读存储介质。 A computer readable storage medium carrying the computer program of claim 15.
PCT/CN2014/093053 2014-09-15 2014-12-04 Mobile terminal and method for exchanging calling cards between mobile terminals WO2015184754A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410468620.8 2014-09-15
CN201410468620.8A CN105491202B (en) 2014-09-15 2014-09-15 The method of business card exchange is realized between a kind of mobile terminal and mobile terminal

Publications (1)

Publication Number Publication Date
WO2015184754A1 true WO2015184754A1 (en) 2015-12-10

Family

ID=54766017

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/093053 WO2015184754A1 (en) 2014-09-15 2014-12-04 Mobile terminal and method for exchanging calling cards between mobile terminals

Country Status (2)

Country Link
CN (1) CN105491202B (en)
WO (1) WO2015184754A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800861B (en) * 2016-08-29 2023-09-22 深圳脸网科技有限公司 Social equipment, system and method for directly transmitting information
CN106658375A (en) * 2016-12-22 2017-05-10 捷开通讯(深圳)有限公司 Method for terminal interaction and mobile terminal
CN106686233B (en) * 2016-12-27 2020-11-10 安徽元晔光电有限责任公司 Mobile terminal control method and device
CN109922125A (en) * 2018-12-29 2019-06-21 平安科技(深圳)有限公司 A kind of business card sharing method, device and computer equipment
CN112738738B (en) * 2020-12-30 2022-05-31 南方科技大学 Friend adding method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255947A (en) * 2011-05-16 2011-11-23 深圳创维数字技术股份有限公司 STB (Set Top Box) and man-machine interaction method for STB
CN102571160A (en) * 2012-01-16 2012-07-11 华为终端有限公司 Bluetooth searching method and equipment
CN103095895A (en) * 2011-11-01 2013-05-08 中国电信股份有限公司 Method and client end for sending mobile phone electronic business cards
CN104022804A (en) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 Method and system for transmitting electronic business card, sending device and receiving device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255947A (en) * 2011-05-16 2011-11-23 深圳创维数字技术股份有限公司 STB (Set Top Box) and man-machine interaction method for STB
CN103095895A (en) * 2011-11-01 2013-05-08 中国电信股份有限公司 Method and client end for sending mobile phone electronic business cards
CN102571160A (en) * 2012-01-16 2012-07-11 华为终端有限公司 Bluetooth searching method and equipment
CN104022804A (en) * 2013-03-01 2014-09-03 腾讯科技(深圳)有限公司 Method and system for transmitting electronic business card, sending device and receiving device

Also Published As

Publication number Publication date
CN105491202A (en) 2016-04-13
CN105491202B (en) 2019-01-25

Similar Documents

Publication Publication Date Title
EP3596650B1 (en) Service data processing method and device, and service processing method and device
US11488234B2 (en) Method, apparatus, and system for processing order information
WO2018177124A1 (en) Service processing method and device, data sharing system and storage medium
US9351165B2 (en) Identity verifying method, account acquiring method, and mobile terminal
EP3276910B1 (en) Bluetooth-based identity recognition method and device
CN110032512B (en) Debugging method of small program, related equipment and terminal
KR20200003144A (en) Signature generation method, electronic device and storage medium
CN106062763B (en) Method and device for displaying application and picture and electronic equipment
WO2015101273A1 (en) Security verification method, and related device and system
US10762542B2 (en) Item transfer apparatus, system and method
WO2015184754A1 (en) Mobile terminal and method for exchanging calling cards between mobile terminals
US20120242459A1 (en) Interrogating an authentication device
CN103873692B (en) Method, device and system for resource sharing
US20190095887A1 (en) Resource transferring method and apparatus
WO2015131790A1 (en) Network connection method, application authentication server, terminal and router
US11017066B2 (en) Method for associating application program with biometric feature, apparatus, and mobile terminal
CN106375478B (en) A kind of synchronous method of mobile terminal data, apparatus and system
EP3206341B1 (en) Method, apparatus and device for displaying message
CN108920366A (en) One seed application adjustment method, apparatus and system
CN110417543A (en) A kind of data ciphering method, device and storage medium
CN104539571B (en) Information interacting method, identification authentication method, server and terminal
WO2015014310A1 (en) Method, apparatus, and server for displaying information
CN105681542A (en) Information processing method and system and terminal
US20140357185A1 (en) Method for information processing and electronic device
EP3429176A1 (en) Scenario-based sound effect control method and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14894000

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14894000

Country of ref document: EP

Kind code of ref document: A1