WO2013023529A1 - Method for processing contact information of mobile terminal and mobile terminal - Google Patents

Method for processing contact information of mobile terminal and mobile terminal Download PDF

Info

Publication number
WO2013023529A1
WO2013023529A1 PCT/CN2012/079564 CN2012079564W WO2013023529A1 WO 2013023529 A1 WO2013023529 A1 WO 2013023529A1 CN 2012079564 W CN2012079564 W CN 2012079564W WO 2013023529 A1 WO2013023529 A1 WO 2013023529A1
Authority
WO
WIPO (PCT)
Prior art keywords
contact information
file
mobile terminal
phone book
vcard
Prior art date
Application number
PCT/CN2012/079564
Other languages
French (fr)
Chinese (zh)
Inventor
杨志兵
Original Assignee
惠州Tcl移动通信有限公司
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 惠州Tcl移动通信有限公司 filed Critical 惠州Tcl移动通信有限公司
Publication of WO2013023529A1 publication Critical patent/WO2013023529A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for processing contact information of a mobile terminal and a mobile terminal.
  • the general exchange methods include the way of wireless connection and the way of wireless communication services.
  • the wireless connection method is to send the contact information to the other party by means of Bluetooth or infrared; the wireless communication service mode is sent to the other party by means of, for example, a short message, a multimedia message or an email.
  • Electronic business cards have electronic business card file format standards, generally with .vcf as the file suffix name, which can be transmitted between various systems or applications, such as transmission over the Internet and wireless networks.
  • the general electronic business card mainly contains the user's contact information, including: name, number, address, mailbox and other information.
  • the standard stipulates that the electronic business card starts with "BEGIN: VCARD and version number (VERSION:)", ends with "END: VCARD", and the middle is a data format line containing various information (format is: type [; parameter]: value).
  • the technical problem to be solved by the present invention is to provide a method for processing contact information of a mobile terminal and a mobile terminal, which can quickly exchange contact information between mobile terminals, automatically store the contact information into the phone book, and clearly in the phone book. Identify new contact information.
  • the present invention provides a method for a mobile terminal to process contact information, including:
  • the contact information file extracted and processed by the sender mobile terminal from its file system or client identification module is acquired, and the processing includes The contact information is converted according to the electronic business card format standard;
  • the contact information file is a file with a .vcf suffix, and if so, inferring the VCARD file as an electronic business card format, determining whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file. If yes, it is considered that the content is met, the content in the contact information file is read, and the content is parsed and processed;
  • the contact information already stored in the phone book is added with a flag, and the value of the flag indicates that the new addition or the original is indicated.
  • the reading the content in the contact information file and parsing the content includes:
  • Reading the content in the contact information file converting each type and value in the string of the VCARD file into one item in the contact information structure;
  • the value of the identifier bit indicates that an icon is displayed in the contact list when the user newly adds, and the icon disappears after the user reads the contact information.
  • the present invention provides another method for a mobile terminal to process contact information, including:
  • the stored contact information is identified in the phone book as being different from the original contact information in the phone book.
  • the acquiring the contact information file received by the near field communication method is specifically:
  • the contact information file extracted and processed by the sender mobile terminal from its file system or client identification module is obtained.
  • the processing includes converting the contact information according to the electronic business card format standard.
  • the determining, according to the electronic business card format standard, that the contact information file meets the requirements includes:
  • Reading the content in the contact information file converting each type and value in the string of the VCARD file into one item in the contact information structure;
  • the identifying the stored contact information in the phone book as different from the original contact information in the phone book includes:
  • the list member structure is added with an identifier bit, and the value of the identifier bit indicates the newly added or original.
  • the value of the identifier bit indicates that an icon is displayed in the contact list when the user newly adds, and the icon disappears after the user reads the contact information.
  • the present invention provides a mobile terminal, including:
  • a near field communication module configured to acquire a contact information file received by the near field communication method, and determine that the contact information file meets the suffix requirement according to the electronic business card format standard, and then transmit the information to the parsing module;
  • a phone book module configured to store the contact information parsed by the parsing module into a phone book of the mobile terminal
  • the prompting module is configured to identify the stored contact information in the phone book as being different from the original contact information in the phone book.
  • the near field communication module specifically determines whether the contact information file is a file with a suffix of .vcf, and if so, infers a VCARD file as an electronic business card format;
  • the parsing module determines whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file, and if so, it is considered to meet the requirement.
  • the prompting module adds a flag to the list member structure in the contact list of the phone book, and indicates the newly added or original value by using the value of the identifier bit;
  • the value of the identifier bit indicates that when newly added, the prompting module displays an icon in the contact list, and the icon disappears after the user reads the contact information.
  • the mobile terminal further includes a conversion module, configured to identify from the own file system or the client after establishing the data connection of the near field communication by using the call between the mobile terminal and the receiving mobile terminal.
  • the contact information is extracted and processed in the module, and the processing includes converting the contact information according to the electronic business card format standard.
  • the near field communication method is used to speed up the exchange of electronic business cards between users; on the other hand, the contact information can be automatically saved into the phone book without the user's manual saving, thereby improving the user experience and further
  • the invention can clearly indicate the newly added contacts in the phone book, which is convenient for the user to view and operate.
  • FIG. 1 is a schematic structural diagram of a function module in a mobile terminal according to the present invention.
  • FIG. 2 is a schematic diagram of hardware connection of the present invention
  • FIG. 3 is a flow chart of the processing method of the present invention.
  • FIG. 5 is a flow chart showing the processing of the receiver in the present invention.
  • Figure 6 is a flow diagram of the present invention for processing contact information in a phone book.
  • the present invention provides a method for a mobile terminal to process contact information, which can quickly exchange contact information between mobile terminals, automatically store contact information into a phone book, and clearly identify new contact information in the phone book.
  • the invention mainly uses near field communication NFC (Near Field) Communication technology realizes the sending and receiving of electronic business cards between mobile terminals, and can automatically exist the phone book after receiving, and clearly prompts the user to newly added contacts in the phone book, which is convenient for user identification.
  • NFC Near Field Communication
  • near field communication has been applied to mobile communication devices. It has the advantage of fast and convenient information exchange. It can be placed close to the distance between two devices (generally less than 10cm). Establish a connection (generally less than 1s) and complete the transfer of data.
  • Electronic business cards currently have a uniform format standard, and different devices can encode and decode them according to the standard.
  • the present invention utilizes these features to complete the transmission and reception of electronic business cards. Specifically, when two users want to exchange contact information, they only need to close each other's mobile terminals, and can obtain the electronic business card of the other party through NFC, and simultaneously convert the electronic business card into contact information, and automatically save to the phone book. in.
  • FIG. 1 is a schematic structural diagram of a function module in a mobile terminal of the present invention.
  • the mobile terminal as a sender includes a near field communication (NFC) module, a phone book module, and a conversion module.
  • the mobile terminal as the receiver includes a near field communication (NFC) module, a phone book module, a parsing module, and a prompt module.
  • NFC near field communication
  • Phone book module mainly used for management of contact information.
  • the phone book module obtains the contact information of the sender, and sends the contact information of the sender to the conversion module. After receiving the electronic business card of the other party, the receiver resolves the electronic card into contact information through the parsing module. After that, it is automatically saved to the phone book.
  • Near field communication module mainly used for exchange of electronic business cards between different mobile terminals.
  • the sender encodes and converts the electronic business card of the sender and sends it to the other party through the near field communication module.
  • the receiver receives the electronic business card information through the near field communication module, decodes it, and sends it to the analysis module.
  • Conversion module mainly used to convert contact information into standard VCARD format.
  • VCARD is a standard for electronic business card format. Therefore, before sending contact information, you need to convert the contact information into VCARD format. After the sender's phone book module obtains the contact information, it sends it to the conversion module, and the conversion module converts the contact information into the VCARD format according to the standard.
  • Parsing module mainly used to convert the VCARD format into contact information for storage in the phone book. Therefore, after receiving the VCARD file, the file is parsed into contact information, so that it can be saved, edited, and the like. After receiving the contact information and parsing the VCARD file, the near field communication module sends the file to the parsing module, and the parsing module parses the VCARD file into contact information, and sends the parsed contact information to the phone book module.
  • Prompt module mainly used to prompt the user for newly added contacts. After the new contact is added, in order to let the user intuitively know that a contact belongs to the new addition, the module can prompt the user by: in the phone book contact list, the newly added contact is identified by a specific icon, when the user After viewing the contact's details, the icon can be automatically eliminated. It should be noted that the icon identification is only an example, and may be other methods such as high brightness display.
  • FIG. 2 is a schematic diagram of hardware connections of the present invention.
  • both the sender and the receiver are the NFC chip and the antenna ANT mainly including the baseband chip BB, the baseband chip.
  • the NFC chip is connected to the baseband chip through the I2C interface, and the baseband chip communicates with the NFC chip through the I2C interface, including acquiring data on the NFC chip and initializing data on the NFC chip; meanwhile, the baseband chip has a pin (INT) and NFC.
  • the chip is connected, and the pin interrupts the detection pin, mainly when the NFC chip needs to interact with the baseband chip, and the baseband chip is notified through the interruption; the power management module PMU in the baseband chip is responsible for supplying power to the NFC chip; the NFC chip is connected to the antenna ANT, Receive and transmit data through the antenna.
  • the NFC communication mode mainly includes an active mode and a passive mode.
  • the active mode is mainly used, that is, the sender and the receiver respectively transmit a frequency field to activate communication, and the sender transmits data to the receiver at a selected transmission rate, and receives the data. The party responds at the same rate.
  • an NFC call can be initiated by either party, and the way to initiate is through the UI (User Interface, user interface) specific "exchange contact option", or by triggering a specific button, that is, after the user triggers the exchange contact process, the NFC chip is notified to initialize.
  • the receiver device is placed within a distance close to the sender, and the sender and the receiver start to establish communication: that is, when the distance between the two mobile terminals with NFC is less than a certain value (generally less than 10 cm)
  • the sender transmits the frequency field and transmits the data to the receiver according to the selected transmission speed (such as 424 kbps).
  • the receiver also transmits the frequency field and responds at the same transmission rate to establish a peer-to-peer point-to-point data connection. In this way, the exchange of contact information between mobile terminals can be realized.
  • the invention requires the electronic business card to be sent between the two mobile terminals, that is, the mobile terminal of the first user sends the VCARD file information to the mobile terminal of the second user through the NFC, and the mobile terminal of the second user parses the mobile terminal after receiving the Information, and convert the parsed VCARD file into contact information and save it to the phone book. Then, the mobile terminal of the second user sends the VCARD file information to the mobile terminal of the first user by using the NFC. After receiving, the mobile terminal of the first user parses the information and converts the parsed VCARD file into contact information. Save to the phone book.
  • VCARD can be transmitted by NFC as an electronic business card file standard.
  • the VCARD file is sent. The method is as follows: the sender sends in the standard VCARD format, with the .vcf suffix, and sends the standard file to the receiver through NFC.
  • the receiver When receiving the file, the receiver first determines the type of the received file, that is, whether the suffix name of the file is .vcf, and if so, the received file is a VCARD file.
  • FIG. 3 is a flow chart of the processing method of the present invention.
  • Step 31 Acquire a contact information file received by the near field communication method
  • the step is specifically: after the data connection between the receiver mobile terminal and the sender mobile terminal establishes near field communication by using a call, the contact information file extracted and processed by the sender mobile terminal from its file system or the client identification module is obtained.
  • the processing includes converting the contact information according to the electronic business card format standard.
  • Step 32 After determining that the contact information file meets the requirements according to the electronic business card format standard, reading the content in the contact information file, and parsing the content;
  • the contact information file is a file with a .vcf suffix, and if so, the VCARD file is inferred to be an electronic business card format;
  • VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file, and if so, it is considered to meet the requirement.
  • Step 33 Store the contact information after the parsing process to a phone book of the mobile terminal
  • the content in the contact information file is read, and each type and value in the string of the VCARD file is converted into an item in the contact information structure;
  • Step 34 Identify the stored contact information in the phone book as being different from the original contact information in the phone book.
  • the list member structure is added with an identifier bit, and the value of the identifier bit indicates that the new addition or the original is used; the value of the identifier bit indicates that when newly added, An icon is displayed in the contact list that disappears after the user reads the contact information.
  • Figure 4 is a flow chart showing the processing of the sender in the present invention.
  • Step 401 The phone book module reads the current contact information into the file system or the SIM card;
  • the sender When the sender is in standby, it can initiate the process of sending.
  • the method can be initiated by using a specific “exchange contact option” in the UI, or by triggering a VCARD exchange by pressing a specific button, that is, the user triggers the exchange.
  • the phone book module After the VCARD process, the phone book module is notified to read the sender's contact information.
  • the contact information of the local user is generally stored in the file system of the mobile terminal or SIM (Subscriber Identity) Module, customer identification module) in a specific location in the card.
  • SIM Subscriber Identity
  • the present invention preferably uses the "home number" in the SIM card as the storage location of the contact information.
  • the SIM card there is a "local number", which is mainly used to store the contact information of the current user, and the user stores his contact information in the item.
  • the contact information is read into the file system or SIM card of the mobile terminal, and the contact information is saved into a structure.
  • the phone book module sends the contact structure to the conversion module.
  • the phone book module reads the contact information of the sender user from the file system or the SIM card, and saves it to a structure, for example, the phone book module obtains the user contact information, and then saves The structure of the information is sent to the conversion module.
  • Step 402 The conversion module converts the contact information into a VCARD file.
  • the conversion module converts each piece of information in the contact information structure into a VCARD format, and finally adds the standard head and tail identifiers of the VCARD, thereby obtaining a string in the standard VCARD format.
  • the sender's contact information is converted to a VCARD file.
  • the conversion module converts the structure of the contact information into a string of the VCARD format as follows:
  • VCARD data headers such as: BEGIN: VCARD, and generate version number, such as: VERSION: 2.1;
  • the company information item in the structure is converted into the corresponding string in the VCARD: ORG: TCL communication Technology Holdings Ltd.
  • the corresponding value in the VCARD string is blanked.
  • Step 403 notifying the near field communication module to send the file, and transmitting the file path information to the near field communication module;
  • the conversion module notifies the near field communication module to start the sending process of the file, and transmits the path information of the VCARD file to the near field communication module.
  • Step 404 The near field communication module initializes the NFC chip, initiates a call, and establishes a data connection.
  • the near field communication module After receiving the VCARD file path, the near field communication module performs NFC initialization, that is, initializes the NFC chip, transmits the frequency field, and establishes a data link with the receiver.
  • Step 405 Encode VCARD data into an NFC transmission data format.
  • the near field communication module After completing the establishment of the data link, the near field communication module encodes the VCARD file and encodes it into the data format of the NFC transmission.
  • Step 406 Send the data to the receiver by using the NFC method.
  • This step sends the data to the receiver via NFC.
  • the sender stops the data transmission and waits for the receiver to initiate the NFC data transmission.
  • Figure 5 is a flow chart showing the processing of the receiver in the present invention.
  • Step 501 The near field communication module establishes an NFC data connection.
  • the NFC call of the sender is received, and the frequency field is also transmitted, and the data is transmitted at the same transmission rate to establish a data link.
  • Step 502 Receive data through a wireless link, and decode the data.
  • Step 503 Obtain a VCARD file whose .vcf is a suffix name, and save the file to the file system.
  • the near field communication module obtains the VCARD file with the .vcf suffix name sent by the other party through decoding, and saves the file to the file system of the mobile terminal.
  • Step 504 Determine whether the suffix name is a VCARD file of .vcf, and if yes, proceed to step 505, and if not, end;
  • the near field communication module determines the type of the file, that is, whether the suffix name of the file is .vcf: specifically, by reading the file name of the file, determining whether the last four strings of the name string are .vcf: if not, ending; if Yes, the description is a VCARD file, and the process proceeds to step 505.
  • Step 505 The parsing module parses the VCARD file.
  • the parsing module opens the file and reads the contents of the file to parse the VCARD file.
  • Step 506 determining whether it is a valid VCARD file, and if yes, proceeding to step 507, and if not, ending;
  • the parsing module reads the content in the VCARD file and saves the content to a string; first determines whether the content is a valid VCARD format, that is, whether the beginning and the end of the string are first conformed to the VCARD specification (because the VCARD content Start with BEGIN:VCARD, end with END:VCARD, and VERSION: after BEGIN:VCARD.
  • Step 507 Read the content in the VCARD file, and extract and process each item of the contact information according to the VCARD standard;
  • the VCARD is valid, and the parsing module converts each type and value in the VCARD file into one of the contact information structures.
  • Remove the beginning and end identifiers obtain the data format lines (ie: type and value); read each type, assign the value after the type to the corresponding item in the contact structure according to the correspondence, such as After reading the type: EMAIL, the value after EMAIL is assigned to the mail item in the contact information structure. All types and values in the VCARD file are parsed in turn, and their values are assigned to individual items in the contact structure.
  • Step 508 The parsing module saves the obtained contact information to a structure, and sends the structure to the phone book module.
  • the parsing module saves the obtained contact information to a structure, and the VCARD file is converted into a contact information structure, and the contact information structure is transmitted to the phone book module.
  • Step 509 The phone book module saves the contact information to the phone book.
  • the phone book module initiates a contact save process and saves the contact information to the phone book.
  • the process of sending the user's VCARD is started. That is, when the receiving is completed, the receiving party stops the NFC receiving work and enters the contact information sending process; likewise, the sender stops the NFC sending work after completing the contact information transmission, and enters the state of waiting for receiving. That is, the sender and the receiver exchange roles, and the process of sending and receiving the electronic business card is performed according to the process described above, and will not be described here.
  • the contact information of the other party is saved in the phone book of the sender and the receiver.
  • Figure 6 is a flow diagram of the present invention for processing contact information in a phone book.
  • the solution of the present invention further includes processing the contact information, and the process is also an important part of the present invention, and specifically includes the steps:
  • Step 601 The phone book module stores the parsed contact information in the phone book
  • Step 602 The prompting module identifies the newly added contact information in the phone book to prompt the user.
  • the party further adds a new contact prompt after receiving the contact information.
  • the prompting module of the present invention identifies the column of the newly added contact with a special icon in the phone book contact list, indicating that the contact is newly added. of.
  • the phone book contact list generally lists all the contacts in the phone book by user name, and the user can browse, search, and view the contact information through the list. After the icon is identified, when the user enters the column of the contact and the contact information is viewed, the icon disappears, indicating that the user has viewed the contact information, and is not the newly added contact.
  • the icon here can be any icon that can represent the newly added, such as a five-pointed star, a cloud icon, etc., of course, it can also be represented by an icon, for example, the contact column can be highlighted, using a color identifier, plus The background is distinguished.
  • the icon disappears only for the contact that the user viewed, and the icons of other newly added contacts will not disappear. Therefore, assuming that 4 contacts are added at the same time, the 4 contact columns all have a newly added icon, and the user views one of the contacts, and the contact icon disappears, but other contact icons that are not viewed continue to remain.
  • the contacts added at the same time can also be used to indicate the order of addition. For example, using the icon containing the serial number, the time for adding the contact is recorded, and according to the time of adding the contact, the first added contact uses the one containing 1 The icon, the second uses an icon containing 2, followed by an example, so that the user can clearly know the order in which the contacts are added. After viewing one of the contacts, the icon will automatically re-update the order according to the added time. For example, after viewing the third added contact, after viewing, the third contact icon disappears, and the fourth added contact icon is updated. For the third, and so on.
  • Each member of the queue stores a contact information, including a name, a number, and a corresponding storage location.
  • a contact information including a name, a number, and a corresponding storage location.
  • the present invention adds a flag bit in the list member structure by the prompting module (boolean). Be_new_contact_and_unread), this flag identifies if the contact is new and unread.
  • the prompting module sets the value of the flag bit to TURE, and enters the contact detailed information interface from the phone book (ie, the user selects to enter the phone book list).
  • the prompting module sets the value of the flag bit to FALSE.
  • the prompting module checks the flag of each member in the message queue (boolean) Be_new_contact_and_unread), if the value of the flag is TRUE, indicating that the contact is newly added and unread, when the contact column is displayed, a specific position (such as the head or the tail of the list) is displayed in the column. Icon; if the value of the flag is FALSE, indicating that the contact is not newly joined and unread, the icon is not displayed when the contact is displayed.
  • the value of the flag bit here is exemplified by TRUE and FALSE, but is not limited thereto, and may be represented by 1, 0, and the order of representation is not limited.
  • the new contact prompting method used in the present invention is applicable not only to the present invention through NFC exchange contact information, but also to other newly added contacts, such as receiving contact information through SMS, MMS, etc., or through Bluetooth, infrared. Wait for receiving contact information, etc.
  • the solution provided by the invention uses the NFC technology to realize the fast transmission and exchange of the contact information, on the one hand, the speed of the exchange of information between the users is accelerated; on the other hand, the user is not required.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

Disclosed are a method for processing contact information of a mobile terminal and a mobile terminal. The method comprises: acquiring a contact information file received in a near-field communication manner; based on a Vcard format standard, determining that the contact information file satisfies a requirement, reading contents in the contact information file, and performing parsing processing on the contents; storing contact information after the parsing processing to a phonebook of the mobile terminal; identifying the contact information stored in the phonebook to have a different manner from an original contact manner of the phonebook. The present invention correspondingly provides a mobile terminal. By means of the technical solutions provided in the present invention, contact information may be rapidly exchanged between mobile terminals, contact information is automatically saved to the phonebook, and newly added contact information is clearly identified in the phonebook.

Description

一种移动终端处理联系信息的方法及移动终端  Method for processing contact information of mobile terminal and mobile terminal
【技术领域】[Technical Field]
本发明涉及通信技术领域,特别是涉及一种移动终端处理联系信息的方法及移动终端。 The present invention relates to the field of communications technologies, and in particular, to a method for processing contact information of a mobile terminal and a mobile terminal.
【背景技术】 【Background technique】
当今社交活动中,人们经常会交换联系信息。一般的交换方式包括无线连接的方式和无线通信业务的方式。无线连接的方式是通过蓝牙或红外等方式将联系信息发送给对方;无线通信业务方式是通过例如短信、彩信或者邮件的方式发送给对方。In today's social activities, people often exchange contact information. The general exchange methods include the way of wireless connection and the way of wireless communication services. The wireless connection method is to send the contact information to the other party by means of Bluetooth or infrared; the wireless communication service mode is sent to the other party by means of, for example, a short message, a multimedia message or an email.
随着信息时代的到来,目前电子名片(VCARD)已经作为一种新的联系信息交换格式被逐渐应用。电子名片具有电子名片文件格式标准,一般是以.vcf作为文件的后缀名,可以在各种系统或应用间进行传输,例如在互联网internet以及无线网络上进行传输。一般电子名片中主要包含用户的联系信息,包括:姓名、号码、地址、邮箱等信息。标准规定电子名片以“BEGIN:VCARD以及版本号(VERSION:)”开头,以“END:VCARD”结尾,中间是包含各项信息的数据格式行(格式是:类型 [;参数]:值)。With the advent of the information age, the current electronic business card (VCARD) has been gradually applied as a new contact information exchange format. Electronic business cards have electronic business card file format standards, generally with .vcf as the file suffix name, which can be transmitted between various systems or applications, such as transmission over the Internet and wireless networks. The general electronic business card mainly contains the user's contact information, including: name, number, address, mailbox and other information. The standard stipulates that the electronic business card starts with "BEGIN: VCARD and version number (VERSION:)", ends with "END: VCARD", and the middle is a data format line containing various information (format is: type [; parameter]: value).
随着电子名片的出现,用户希望在移动终端之间也能进行电子名片的快速方便交换,将联系人信息自动存入电话本,并在电话本中能识别新增加的联系人信息。With the advent of electronic business cards, users hope to exchange electronic business cards quickly and easily between mobile terminals, automatically store contact information into the phone book, and identify newly added contact information in the phone book.
【发明内容】 [Summary of the Invention]
本发明主要解决的技术问题是提供一种移动终端处理联系信息的方法及移动终端,可以实现在移动终端之间快速交换联系信息,将联系信息自动存入电话本,并在电话本中清楚地识别新增联系人信息。The technical problem to be solved by the present invention is to provide a method for processing contact information of a mobile terminal and a mobile terminal, which can quickly exchange contact information between mobile terminals, automatically store the contact information into the phone book, and clearly in the phone book. Identify new contact information.
本发明提供一种移动终端处理联系信息的方法,包括:The present invention provides a method for a mobile terminal to process contact information, including:
接收方移动终端与发送方移动终端之间通过呼叫建立近场通信的数据连接后,获取所述发送方移动终端从其文件系统或客户识别模块提取并处理的联系信息文件,所述处理包括将联系信息按照所述电子名片格式标准进行转化处理;After the data connection between the receiver mobile terminal and the sender mobile terminal establishes near field communication by calling, the contact information file extracted and processed by the sender mobile terminal from its file system or client identification module is acquired, and the processing includes The contact information is converted according to the electronic business card format standard;
判断所述联系信息文件是否是后缀名为.vcf的文件,若是,则推断出为电子名片格式VCARD文件,通过判读VCARD文件的字符串中的开头与结尾,判断所述VCARD文件是否为有效格式,若是,则认为符合要求,读取所述联系信息文件中的内容,将所述内容进行解析处理;Determining whether the contact information file is a file with a .vcf suffix, and if so, inferring the VCARD file as an electronic business card format, determining whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file. If yes, it is considered that the content is met, the content in the contact information file is read, and the content is parsed and processed;
将所述解析处理后的联系信息存储到移动终端的电话本;And storing the parsed processed contact information to a phone book of the mobile terminal;
将已存储在电话本中的联系信息添加标识位,通过所述标识位的取值表明新添加或原有。The contact information already stored in the phone book is added with a flag, and the value of the flag indicates that the new addition or the original is indicated.
优选的,所述读取所述联系信息文件中的内容,将所述内容进行解析处理包括:Preferably, the reading the content in the contact information file and parsing the content includes:
读取所述联系信息文件中的内容,将VCARD文件的字符串中每一类型及值转化为联系信息结构体中的一项;Reading the content in the contact information file, converting each type and value in the string of the VCARD file into one item in the contact information structure;
在所有项的类型与值都转化完成后,保存到一结构体,得到联系信息结构体。After all the types and values of the items have been converted, save them to a structure to get the contact information structure.
优选的,所述标识位的取值表明新添加时,在联系人列表中显示图标,所述图标在用户阅读联系信息后消失。Preferably, the value of the identifier bit indicates that an icon is displayed in the contact list when the user newly adds, and the icon disappears after the user reads the contact information.
本发明提供另一种移动终端处理联系信息的方法,包括:The present invention provides another method for a mobile terminal to process contact information, including:
获取通过近场通信方式接收的联系信息文件;Obtaining a contact information file received by near field communication;
按照电子名片格式标准判断出所述联系信息文件符合要求后,读取所述联系信息文件中的内容,将所述内容进行解析处理;After determining that the contact information file meets the requirements according to the electronic business card format standard, reading the content in the contact information file, and parsing the content;
将所述解析处理后的联系信息存储到移动终端的电话本;And storing the parsed processed contact information to a phone book of the mobile terminal;
在所述电话本中将所述存储的联系信息标识为与电话本中原有的联系方式不同。The stored contact information is identified in the phone book as being different from the original contact information in the phone book.
优选的,所述获取通过近场通信方式接收的联系信息文件具体为:Preferably, the acquiring the contact information file received by the near field communication method is specifically:
接收方移动终端与发送方移动终端之间通过呼叫建立近场通信的数据连接后,获取所述发送方移动终端从其文件系统或客户识别模块提取并处理的联系信息文件。After the data connection between the receiver mobile terminal and the sender mobile terminal establishes near field communication by calling, the contact information file extracted and processed by the sender mobile terminal from its file system or client identification module is obtained.
所述处理包括将联系信息按照所述电子名片格式标准进行转化处理。The processing includes converting the contact information according to the electronic business card format standard.
优选的,所述按照电子名片格式标准判断出所述联系信息文件符合要求包括:Preferably, the determining, according to the electronic business card format standard, that the contact information file meets the requirements includes:
判断所述联系信息文件是否是后缀名为.vcf的文件,若是,则推断出为电子名片格式VCARD文件;Determining whether the contact information file is a file with a .vcf suffix, and if so, inferring the VCARD file as an electronic business card format;
通过判读VCARD文件的字符串中的开头与结尾,判断所述VCARD文件是否为有效格式,若是,则认为符合要求。It is determined whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file, and if so, it is considered to meet the requirement.
优选的,所述读取所述联系信息文件中的内容,将所述内容进行解析处理包括:Preferably, the reading the content in the contact information file and parsing the content includes:
读取所述联系信息文件中的内容,将VCARD文件的字符串中每一类型及值转化为联系信息结构体中的一项;Reading the content in the contact information file, converting each type and value in the string of the VCARD file into one item in the contact information structure;
在所有项的类型与值都转化完成后,保存到一结构体,得到联系信息结构体。After all the types and values of the items have been converted, save them to a structure to get the contact information structure.
优选的,所述在所述电话本中将所述存储的联系信息标识为与电话本中原有的联系方式不同包括:Preferably, the identifying the stored contact information in the phone book as different from the original contact information in the phone book includes:
在电话本的联系人列表中,将列表成员结构体添加标识位,通过所述标识位的取值表明新添加或原有。In the contact list of the phone book, the list member structure is added with an identifier bit, and the value of the identifier bit indicates the newly added or original.
优选的,所述标识位的取值表明新添加时,在联系人列表中显示图标,所述图标在用户阅读联系信息后消失。Preferably, the value of the identifier bit indicates that an icon is displayed in the contact list when the user newly adds, and the icon disappears after the user reads the contact information.
本发明提供一种移动终端,包括:The present invention provides a mobile terminal, including:
近场通信模块,用于获取通过近场通信方式接收的联系信息文件,按照电子名片格式标准判断出所述联系信息文件符合后缀要求后,传输给解析模块;a near field communication module, configured to acquire a contact information file received by the near field communication method, and determine that the contact information file meets the suffix requirement according to the electronic business card format standard, and then transmit the information to the parsing module;
解析模块,用于按照电子名片格式标准判断出所述近场通信模块传输的联系信息文件符合格式要求后,读取联系信息文件中的内容,将所述内容进行解析处理;The parsing module is configured to: after determining that the contact information file transmitted by the near field communication module meets the format requirement according to the electronic business card format standard, read the content in the contact information file, and parse the content;
电话本模块,用于将所述解析模块解析处理后的联系信息存储到移动终端的电话本;a phone book module, configured to store the contact information parsed by the parsing module into a phone book of the mobile terminal;
提示模块,用于在所述电话本中将所述存储的联系信息标识为与电话本中原有的联系方式不同。The prompting module is configured to identify the stored contact information in the phone book as being different from the original contact information in the phone book.
优选的,所述近场通信模块具体判断所述联系信息文件是否是后缀名为.vcf的文件,若是,则推断出为电子名片格式VCARD文件;Preferably, the near field communication module specifically determines whether the contact information file is a file with a suffix of .vcf, and if so, infers a VCARD file as an electronic business card format;
所述解析模块具体通过判读VCARD文件的字符串中的开头与结尾,判断所述VCARD文件是否为有效格式,若是,则认为符合要求。The parsing module determines whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file, and if so, it is considered to meet the requirement.
优选的,所述提示模块具体在电话本的联系人列表中,将列表成员结构体添加标识位,通过所述标识位的取值表明新添加或原有;Preferably, the prompting module adds a flag to the list member structure in the contact list of the phone book, and indicates the newly added or original value by using the value of the identifier bit;
所述标识位的取值表明新添加时,所述提示模块在联系人列表中显示图标,所述图标在用户阅读联系信息后消失。The value of the identifier bit indicates that when newly added, the prompting module displays an icon in the contact list, and the icon disappears after the user reads the contact information.
优选的,所述移动终端还包括转化模块,用于在所述移动终端作为发送方时,在与接收方移动终端之间通过呼叫建立近场通信的数据连接后,从自身文件系统或客户识别模块中提取并处理联系信息,所述处理包括将联系信息按照所述电子名片格式标准进行转化处理。Preferably, the mobile terminal further includes a conversion module, configured to identify from the own file system or the client after establishing the data connection of the near field communication by using the call between the mobile terminal and the receiving mobile terminal. The contact information is extracted and processed in the module, and the processing includes converting the contact information according to the electronic business card format standard.
上述技术方案可以看出,本发明具有以下有益效果:The above technical solution can be seen that the present invention has the following beneficial effects:
通过本发明方案,一方面利用近场通信方式加快了用户之间电子名片交换的速度;另一方面,无需用户手动保存,就能自动将联系信息保存到电话本中,提高了用户体验,进一步的,本发明在电话本中能够清晰标注出新添加的联系人,方便用户的查看与操作。Through the solution of the invention, on the one hand, the near field communication method is used to speed up the exchange of electronic business cards between users; on the other hand, the contact information can be automatically saved into the phone book without the user's manual saving, thereby improving the user experience and further The invention can clearly indicate the newly added contacts in the phone book, which is convenient for the user to view and operate.
【附图说明】 [Description of the Drawings]
图1是本发明移动终端中的功能模块结构示意图;1 is a schematic structural diagram of a function module in a mobile terminal according to the present invention;
图2是本发明的硬件连接示意图;2 is a schematic diagram of hardware connection of the present invention;
图3是本发明的处理方法流程图;Figure 3 is a flow chart of the processing method of the present invention;
图4是本发明中发送方的处理流程图;4 is a flowchart of processing of a sender in the present invention;
图5是本发明中接收方的处理流程图;Figure 5 is a flow chart showing the processing of the receiver in the present invention;
图6是本发明在电话本处理联系信息的流程图。Figure 6 is a flow diagram of the present invention for processing contact information in a phone book.
【具体实施方式】 【detailed description】
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明提供一种移动终端处理联系信息的方法,可以实现在移动终端之间快速交换联系方式,将联系人信息自动存入电话本,并在电话本中清楚地识别新增联系人信息,The present invention provides a method for a mobile terminal to process contact information, which can quickly exchange contact information between mobile terminals, automatically store contact information into a phone book, and clearly identify new contact information in the phone book.
本发明主要是通过近场通信NFC(Near Field Communication)技术,实现移动终端之间的电子名片的发送与接收,并且接收后能自动存在电话本,并在电话本中清楚向用户提示新添加的联系人,方便用户识别。The invention mainly uses near field communication NFC (Near Field) Communication technology realizes the sending and receiving of electronic business cards between mobile terminals, and can automatically exist the phone book after receiving, and clearly prompts the user to newly added contacts in the phone book, which is convenient for user identification.
近场通信作为一种快速方便的数据交换方式,已经运用于移动通讯设备上,具有快速方便地进行信息交换的优势,能够在两个设备之间置于近距离时(一般小于10cm),快速建立连接(一般小于1s),并完成数据的传递。而电子名片,目前是具有统一的格式标准,不同设备都可以依照该标准对其进行编码与解码。本发明利用这些特点,完成电子名片的发送与接收。具体的,当两个用户希望进行联系信息交换时,只需要将彼此的移动终端靠近一下,就能够通过NFC方式获得对方的电子名片,同时将电子名片转化为联系人信息,自动保存到电话本中。As a fast and convenient way to exchange data, near field communication has been applied to mobile communication devices. It has the advantage of fast and convenient information exchange. It can be placed close to the distance between two devices (generally less than 10cm). Establish a connection (generally less than 1s) and complete the transfer of data. Electronic business cards currently have a uniform format standard, and different devices can encode and decode them according to the standard. The present invention utilizes these features to complete the transmission and reception of electronic business cards. Specifically, when two users want to exchange contact information, they only need to close each other's mobile terminals, and can obtain the electronic business card of the other party through NFC, and simultaneously convert the electronic business card into contact information, and automatically save to the phone book. in.
以下开始介绍本发明技术方案。The technical solution of the present invention will be described below.
图1是本发明移动终端中的功能模块结构示意图。1 is a schematic structural diagram of a function module in a mobile terminal of the present invention.
如图1所示,作为发送方的移动终端中包括:近场通信(NFC)模块、电话本模块、转化模块。作为接收方的移动终端中包括:近场通信(NFC)模块、电话本模块、解析模块、提示模块。As shown in FIG. 1, the mobile terminal as a sender includes a near field communication (NFC) module, a phone book module, and a conversion module. The mobile terminal as the receiver includes a near field communication (NFC) module, a phone book module, a parsing module, and a prompt module.
电话本模块:主要用于进行联系人信息的管理。在发送方,电话本模块获取发送方的联系信息,将发送方的联系信息发送给转化模块;在接收方,接收方接收到对方电子名片后,通过解析模块将该电子名片解析为联系人信息后,自动保存到电话本中。Phone book module: mainly used for management of contact information. On the sender side, the phone book module obtains the contact information of the sender, and sends the contact information of the sender to the conversion module. After receiving the electronic business card of the other party, the receiver resolves the electronic card into contact information through the parsing module. After that, it is automatically saved to the phone book.
近场通信模块:主要用于进行不同移动终端间电子名片的交换。发送方将发送方的电子名片进行编码转化,通过近场通信模块发送给对方;接收方,通过近场通信模块接收到电子名片信息,并解码后发送给解析模块。Near field communication module: mainly used for exchange of electronic business cards between different mobile terminals. The sender encodes and converts the electronic business card of the sender and sends it to the other party through the near field communication module. The receiver receives the electronic business card information through the near field communication module, decodes it, and sends it to the analysis module.
转化模块:主要用于将联系人信息转化为标准的VCARD格式。VCARD是电子名片格式标准,因此,当进行联系人信息发送前,需要将联系人信息转化为VCARD格式。发送方的电话本模块获取联系人的信息后,发送给转化模块,转化模块根据标准将联系人信息转化为VCARD格式。Conversion module: mainly used to convert contact information into standard VCARD format. VCARD is a standard for electronic business card format. Therefore, before sending contact information, you need to convert the contact information into VCARD format. After the sender's phone book module obtains the contact information, it sends it to the conversion module, and the conversion module converts the contact information into the VCARD format according to the standard.
解析模块:主要用于将VCARD格式转化为联系人信息,以便存储到电话本当中。因此,当接收到VCARD文件后,将该文件解析为联系人信息,从而可以对其进行保存、编辑等操作。近场通信模块接收到联系人信息,并解析获得VCARD文件后,将给文件发送给解析模块,解析模块将VCARD文件解析为联系人信息,并将解析后的联系人信息发送给电话本模块。Parsing module: mainly used to convert the VCARD format into contact information for storage in the phone book. Therefore, after receiving the VCARD file, the file is parsed into contact information, so that it can be saved, edited, and the like. After receiving the contact information and parsing the VCARD file, the near field communication module sends the file to the parsing module, and the parsing module parses the VCARD file into contact information, and sends the parsed contact information to the phone book module.
提示模块:主要用于向用户提示新添加的联系人。当新添加联系人后,为了让用户直观的获知某个联系人属于新添加,该模块可以通过以下方式提示用户:在电话本联系人列表中,以特定图标标识新添加的联系人,当用户查看该联系人的详细信息后,该图标可以自动消除。需要说明的是,图标标识只是举例说明,也可以是其他方式例如高亮度显示等。Prompt module: mainly used to prompt the user for newly added contacts. After the new contact is added, in order to let the user intuitively know that a contact belongs to the new addition, the module can prompt the user by: in the phone book contact list, the newly added contact is identified by a specific icon, when the user After viewing the contact's details, the icon can be automatically eliminated. It should be noted that the icon identification is only an example, and may be other methods such as high brightness display.
图2是本发明的硬件连接示意图。2 is a schematic diagram of hardware connections of the present invention.
从硬件电子元件角度来看,本发明方案中,发送方与接收方都是主要含有基带芯片BB,与基带芯片相连的NFC芯片以及天线ANT。From the perspective of hardware and electronic components, in the solution of the present invention, both the sender and the receiver are the NFC chip and the antenna ANT mainly including the baseband chip BB, the baseband chip.
NFC芯片通过I2C接口与基带芯片连接,基带芯片通过I2C接口与NFC芯片进行通讯,包含获取NFC芯片上的数据,以及对NFC芯片进行数据初始化等;同时,基带芯片有一管脚(INT)与NFC芯片相连,该管脚中断检测管脚,主要是当NFC芯片需要与基带芯片进行交互,通过中断通知基带芯片;基带芯片中的电源管理模块PMU负责给NFC芯片供电;NFC芯片与天线ANT连接,通过天线接收与发送数据。The NFC chip is connected to the baseband chip through the I2C interface, and the baseband chip communicates with the NFC chip through the I2C interface, including acquiring data on the NFC chip and initializing data on the NFC chip; meanwhile, the baseband chip has a pin (INT) and NFC. The chip is connected, and the pin interrupts the detection pin, mainly when the NFC chip needs to interact with the baseband chip, and the baseband chip is notified through the interruption; the power management module PMU in the baseband chip is responsible for supplying power to the NFC chip; the NFC chip is connected to the antenna ANT, Receive and transmit data through the antenna.
以下对本发明方案中,发送方和接收方互相交换联系信息的过程进行介绍:In the following scheme, the process in which the sender and the receiver exchange contact information with each other is introduced:
NFC的通讯模式主要包含主动模式与被动模式,本发明中主要运用了主动模式,即发送方与接收方各自发射频场来激活通讯,发送方以选定的传输速率向接收方发送数据,接收方以同样的速率进行应答。The NFC communication mode mainly includes an active mode and a passive mode. In the present invention, the active mode is mainly used, that is, the sender and the receiver respectively transmit a frequency field to activate communication, and the sender transmits data to the receiver at a selected transmission rate, and receives the data. The party responds at the same rate.
当用户希望交换联系信息时,可以由任何一方发起NFC呼叫,发起的方式可以是通过UI(User Interface,用户界面)中特定的“交换联系方式选项”,或者是通过按特定的按键的方式来触发,即用户触发交换联系方式流程后,通知NFC芯片初始化。此时,将接收方设备置于与发送方相近的距离内,发送方与接收方两者间开始建立通信:即当两部具有NFC的移动终端所放置的距离小于一定值(一般为小于10cm),发送方发射频场,并按照选定的传送速度(如424kbps)将数据发送给接收方,接收方同样发射频场,以同样的传输速率进行应答,从而建立对等的点对点数据连接。这样,便可实现移动终端间联系信息的交换。When a user wants to exchange contact information, an NFC call can be initiated by either party, and the way to initiate is through the UI (User Interface, user interface) specific "exchange contact option", or by triggering a specific button, that is, after the user triggers the exchange contact process, the NFC chip is notified to initialize. At this time, the receiver device is placed within a distance close to the sender, and the sender and the receiver start to establish communication: that is, when the distance between the two mobile terminals with NFC is less than a certain value (generally less than 10 cm) The sender transmits the frequency field and transmits the data to the receiver according to the selected transmission speed (such as 424 kbps). The receiver also transmits the frequency field and responds at the same transmission rate to establish a peer-to-peer point-to-point data connection. In this way, the exchange of contact information between mobile terminals can be realized.
本发明需要在两部移动终端之间进行电子名片发送,即第一用户的移动终端将其VCARD文件信息通过NFC发送给第二用户的移动终端,第二用户的移动终端在接收后,解析该信息,并将解析后的VCARD文件转化为联系人信息保存到电话本中。接着,第二用户的移动终端将其VCARD文件信息通过NFC发送给第一用户的移动终端,第一用户的移动终端在接收后,解析该信息,并将解析后的VCARD文件转化为联系人信息保存到电话本中。The invention requires the electronic business card to be sent between the two mobile terminals, that is, the mobile terminal of the first user sends the VCARD file information to the mobile terminal of the second user through the NFC, and the mobile terminal of the second user parses the mobile terminal after receiving the Information, and convert the parsed VCARD file into contact information and save it to the phone book. Then, the mobile terminal of the second user sends the VCARD file information to the mobile terminal of the first user by using the NFC. After receiving, the mobile terminal of the first user parses the information and converts the parsed VCARD file into contact information. Save to the phone book.
需要说明的是,由于NFC可以传送任何类型的数据文件,VCARD作为一种电子名片文件标准,可以利用NFC进行传输,为了能够使得接收方能够知道当前接收到的是VCARD文件,因此,发送VCARD文件的方式如下:发送方以标准VCARD格式进行发送,以.vcf为后缀,将该标准文件通过NFC发送给接收方。接收方在接收到文件时,首先,判断接收到的文件类型,即判断文件的后缀名是否是.vcf,如果是,则说明接收到的文件是VCARD文件。It should be noted that since NFC can transmit any type of data file, VCARD can be transmitted by NFC as an electronic business card file standard. In order to enable the receiver to know that the VCARD file is currently received, the VCARD file is sent. The method is as follows: the sender sends in the standard VCARD format, with the .vcf suffix, and sends the standard file to the receiver through NFC. When receiving the file, the receiver first determines the type of the received file, that is, whether the suffix name of the file is .vcf, and if so, the received file is a VCARD file.
图3是本发明的处理方法流程图。Figure 3 is a flow chart of the processing method of the present invention.
如图所示,包括步骤:As shown, the steps are as follows:
步骤31、获取通过近场通信方式接收的联系信息文件;Step 31: Acquire a contact information file received by the near field communication method;
该步骤具体为:接收方移动终端与发送方移动终端之间通过呼叫建立近场通信的数据连接后,获取所述发送方移动终端从其文件系统或客户识别模块提取并处理的联系信息文件,The step is specifically: after the data connection between the receiver mobile terminal and the sender mobile terminal establishes near field communication by using a call, the contact information file extracted and processed by the sender mobile terminal from its file system or the client identification module is obtained.
所述处理包括将联系信息按照所述电子名片格式标准进行转化处理。The processing includes converting the contact information according to the electronic business card format standard.
步骤32、按照电子名片格式标准判断出所述联系信息文件符合要求后,读取所述联系信息文件中的内容,将所述内容进行解析处理;Step 32: After determining that the contact information file meets the requirements according to the electronic business card format standard, reading the content in the contact information file, and parsing the content;
该步骤中,判断所述联系信息文件是否是后缀名为.vcf的文件,若是,则推断出为电子名片格式VCARD文件;In this step, it is determined whether the contact information file is a file with a .vcf suffix, and if so, the VCARD file is inferred to be an electronic business card format;
通过判读VCARD文件的字符串中的开头与结尾,判断所述VCARD文件是否为有效格式,若是,则认为符合要求。It is determined whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file, and if so, it is considered to meet the requirement.
步骤33、将所述解析处理后的联系信息存储到移动终端的电话本;Step 33: Store the contact information after the parsing process to a phone book of the mobile terminal;
该步骤中,读取所述联系信息文件中的内容,将VCARD文件的字符串中每一类型及值转化为联系信息结构体中的一项;In this step, the content in the contact information file is read, and each type and value in the string of the VCARD file is converted into an item in the contact information structure;
在所有项的类型与值都转化完成后,保存到一结构体,得到联系信息结构体。After all the types and values of the items have been converted, save them to a structure to get the contact information structure.
步骤34、在所述电话本中将所述存储的联系信息标识为与电话本中原有的联系方式不同。Step 34: Identify the stored contact information in the phone book as being different from the original contact information in the phone book.
该步骤中,在电话本的联系人列表中,将列表成员结构体添加标识位,通过所述标识位的取值表明新添加或原有;所述标识位的取值表明新添加时,在联系人列表中显示图标,所述图标在用户阅读联系信息后消失。In this step, in the contact list of the phone book, the list member structure is added with an identifier bit, and the value of the identifier bit indicates that the new addition or the original is used; the value of the identifier bit indicates that when newly added, An icon is displayed in the contact list that disappears after the user reads the contact information.
结合上述介绍的内容,以下分别对不同的处理过程进行介绍。In combination with the above-mentioned contents, the following describes different processing procedures.
图4是本发明中发送方的处理流程图。Figure 4 is a flow chart showing the processing of the sender in the present invention.
如图所示,包括步骤:As shown, the steps are as follows:
步骤401、电话本模块到文件系统或者SIM卡中读取当前联系人信息;Step 401: The phone book module reads the current contact information into the file system or the SIM card;
发送方在待机时,可以主动发起发送的过程,发起的方式可以是通过UI中特定的“交换联系方式选项”,或者是通过按特定的按键的方式来触发VCARD交换的过程,即用户触发交换VCARD流程后,通知电话本模块读取本发送方联系信息。When the sender is in standby, it can initiate the process of sending. The method can be initiated by using a specific “exchange contact option” in the UI, or by triggering a VCARD exchange by pressing a specific button, that is, the user triggers the exchange. After the VCARD process, the phone book module is notified to read the sender's contact information.
本机用户的联系信息一般保存于移动终端的文件系统或者SIM(Subscriber Identity Module,客户识别模块)卡中的特定位置中。本发明优选地使用SIM卡中“本机号码”作为联系信息的存储位置。在SIM卡中,有一项“本机号码”,该项主要是用来存储当前用户的联系信息,用户将自己的联系信息存储在该项中。当然,也可以将本机用户的联系信息存储到移动终端的文件系统中的特定位置。The contact information of the local user is generally stored in the file system of the mobile terminal or SIM (Subscriber Identity) Module, customer identification module) in a specific location in the card. The present invention preferably uses the "home number" in the SIM card as the storage location of the contact information. In the SIM card, there is a "local number", which is mainly used to store the contact information of the current user, and the user stores his contact information in the item. Of course, it is also possible to store the contact information of the local user to a specific location in the file system of the mobile terminal.
电话本模块接收到发送的通知后,到移动终端的文件系统或者SIM卡中读取联系人信息,并将联系人信息保存到一个结构体中。接着,电话本模块将该联系人结构体发送给转化模块。After receiving the notification sent by the phone book module, the contact information is read into the file system or SIM card of the mobile terminal, and the contact information is saved into a structure. Next, the phone book module sends the contact structure to the conversion module.
当要进行联系信息交换时,电话本模块从文件系统中或SIM卡中读取出发送方用户的联系信息,并保存到一个结构体中,如:电话本模块获取用户联系信息后,将保存该信息的结构体发送给转化模块。When the contact information exchange is to be performed, the phone book module reads the contact information of the sender user from the file system or the SIM card, and saves it to a structure, for example, the phone book module obtains the user contact information, and then saves The structure of the information is sent to the conversion module.
步骤402、转化模块将该联系人信息转化为VCARD文件;Step 402: The conversion module converts the contact information into a VCARD file.
转化模块将联系人信息结构体中每项信息转化为VCARD格式,最后加上VCARD的标准的头与尾的标识,从而得到了标准VCARD格式的字符串。接着,新建一个以.vcf为后缀名的文件,将VCARD格式的字符串内容保存到该文件中。至此,发送方联系人的信息被转化为VCARD文件。The conversion module converts each piece of information in the contact information structure into a VCARD format, and finally adds the standard head and tail identifiers of the VCARD, thereby obtaining a string in the standard VCARD format. Next, create a new file with the .vcf extension and save the string contents of the VCARD format to the file. At this point, the sender's contact information is converted to a VCARD file.
具体的,转化模块按照如下方式将联系人信息的结构体转化为VCARD格式的字符串:Specifically, the conversion module converts the structure of the contact information into a string of the VCARD format as follows:
11)自动生成VCARD数据头如:BEGIN:VCARD,以及生成版本号,如:VERSION:2.1;11) Automatically generate VCARD data headers such as: BEGIN: VCARD, and generate version number, such as: VERSION: 2.1;
12)按照VCARD标准的格式,依照VCARD中各项类型,依次读取联系人信息结构体中的对应的项,并将每项信息转化为VCARD中数据格式行的字符串(类型标识:值)。12) According to the VCARD standard format, according to the types in the VCARD, read the corresponding items in the contact information structure in turn, and convert each information into a string of the data format line in the VCARD (type identifier: value) .
如:将结构体中的公司信息项转化为VCARD中对应的字符串:ORG:TCL communication Technology Holdings Ltd。For example, the company information item in the structure is converted into the corresponding string in the VCARD: ORG: TCL communication Technology Holdings Ltd.
如果VCARD标准中有一些项在联系人结构体中未含有,那么将VCARD字符串中对应的值置空。If there are some items in the VCARD standard that are not included in the contact structure, the corresponding value in the VCARD string is blanked.
13)当按照VCARD标准中的所有类型项都转化完成后,以END:VCARD结尾。13) When all types of items in the VCARD standard have been converted, they end with END:VCARD.
至此,VCARD格式的字符串内容转化完成。接着,在移动终端的文件系统中新建一个以.vcf为后缀的文件,并将转化得到的VCARD字符串的内容保存到该文件中。这样,联系人信息就转化为标准的VCARD文件。At this point, the conversion of the string content in the VCARD format is completed. Then, a file with a .vcf suffix is created in the file system of the mobile terminal, and the content of the converted VCARD string is saved in the file. In this way, the contact information is converted into a standard VCARD file.
步骤403、通知近场通信模块发送文件 ,并将文件路径信息传递给近场通信模块;Step 403, notifying the near field communication module to send the file, and transmitting the file path information to the near field communication module;
转化模块通知近场通信模块启动文件的发送过程,并将VCARD文件的路径信息传递给近场通信模块。The conversion module notifies the near field communication module to start the sending process of the file, and transmits the path information of the VCARD file to the near field communication module.
步骤404、近场通信模块初始化NFC芯片,发起呼叫并建立数据连接;Step 404: The near field communication module initializes the NFC chip, initiates a call, and establishes a data connection.
近场通信模块收到VCARD文件路径后,进行NFC初始化,即初始化NFC芯片,发射频场,与接收方建立数据链路。After receiving the VCARD file path, the near field communication module performs NFC initialization, that is, initializes the NFC chip, transmits the frequency field, and establishes a data link with the receiver.
步骤405、将VCARD数据编码为NFC传输数据格式;Step 405: Encode VCARD data into an NFC transmission data format.
完成数据链路的建立后,近场通信模块将VCARD文件进行编码,将其编码为NFC传输的数据格式。After completing the establishment of the data link, the near field communication module encodes the VCARD file and encodes it into the data format of the NFC transmission.
步骤406、将数据通过NFC方式发送给接收方。Step 406: Send the data to the receiver by using the NFC method.
该步骤通过NFC方式将该数据发送到接收方。This step sends the data to the receiver via NFC.
当发送结束后,发送方停止数据发送,并等待接收方发起NFC数据传输。When the transmission ends, the sender stops the data transmission and waits for the receiver to initiate the NFC data transmission.
图5是本发明中接收方的处理流程图。Figure 5 is a flow chart showing the processing of the receiver in the present invention.
如图所示,包括步骤:As shown, the steps are as follows:
步骤501、近场通信模块建立NFC数据连接;Step 501: The near field communication module establishes an NFC data connection.
接收方与发送方小于一定距离后,接收到发送方的NFC呼叫,也发射频场,以同样的传送速率进行应答,从而建立数据链路。After the receiver and the sender are less than a certain distance, the NFC call of the sender is received, and the frequency field is also transmitted, and the data is transmitted at the same transmission rate to establish a data link.
步骤502、通过无线链路接收数据,并对数据进行解码;Step 502: Receive data through a wireless link, and decode the data.
建立数据链路后,开始数据的接收,近场通信模块接收到数据后,对该数据进行解码。After the data link is established, data reception is started, and the near field communication module decodes the data after receiving the data.
步骤503、获得.vcf为后缀名的VCARD文件,并将该文件保存到文件系统中;Step 503: Obtain a VCARD file whose .vcf is a suffix name, and save the file to the file system.
近场通信模块通过解码获得对方所发送的.vcf为后缀名的VCARD文件,将该文件保存到移动终端的文件系统中。The near field communication module obtains the VCARD file with the .vcf suffix name sent by the other party through decoding, and saves the file to the file system of the mobile terminal.
步骤504、判断后缀名是否为.vcf的VCARD文件,若是,进入步骤505,若否,结束;Step 504: Determine whether the suffix name is a VCARD file of .vcf, and if yes, proceed to step 505, and if not, end;
近场通信模块判断文件的类型,即判断文件的后缀名是否是.vcf:具体通过读取文件的文件名称,判断名称字符串的最后四个字符串是否是.vcf:如果不是,结束;如果是,说明是VCARD文件,进入步骤505。The near field communication module determines the type of the file, that is, whether the suffix name of the file is .vcf: specifically, by reading the file name of the file, determining whether the last four strings of the name string are .vcf: if not, ending; if Yes, the description is a VCARD file, and the process proceeds to step 505.
步骤505、解析模块对该VCARD文件进行解析;Step 505: The parsing module parses the VCARD file.
解析模块打开文件并将文件中的内容读取出来,对该VCARD文件进行解析。The parsing module opens the file and reads the contents of the file to parse the VCARD file.
步骤506、判断是否是有效的VCARD文件,若是,进入步骤507,若否,结束; Step 506, determining whether it is a valid VCARD file, and if yes, proceeding to step 507, and if not, ending;
解析模块读取VCARD文件中的内容,并将该内容保存到一个字符串中;先判断该内容是否是有效的VCARD格式,即先判读字符串中的开头与结尾是否符合VCARD规范(因为VCARD内容是以BEGIN:VCARD开头,以END:VCARD结尾,在BEGIN:VCARD后是VERSION:)。The parsing module reads the content in the VCARD file and saves the content to a string; first determines whether the content is a valid VCARD format, that is, whether the beginning and the end of the string are first conformed to the VCARD specification (because the VCARD content Start with BEGIN:VCARD, end with END:VCARD, and VERSION: after BEGIN:VCARD.
步骤507、读取VCARD文件中内容,按照VCARD标准将其中的联系人每项信息提取处理;Step 507: Read the content in the VCARD file, and extract and process each item of the contact information according to the VCARD standard;
VCARD是有效的,解析模块将VCARD文件中每一类型与值转化为联系人信息结构体中一项。The VCARD is valid, and the parsing module converts each type and value in the VCARD file into one of the contact information structures.
将开头与结尾标识去除,获得其中的数据格式行(即:类型与值);读取每一个类型,根据对应关系将该类型后面的值赋值给联系人结构体中的对应项中,如当读到类型为:EMAIL,则将EMAIL后面的值赋值给联系人信息结构体中邮件项。依次解析VCARD文件中所有的类型与值,并将其值赋值给联系人结构体中的各个项中。Remove the beginning and end identifiers, obtain the data format lines (ie: type and value); read each type, assign the value after the type to the corresponding item in the contact structure according to the correspondence, such as After reading the type: EMAIL, the value after EMAIL is assigned to the mail item in the contact information structure. All types and values in the VCARD file are parsed in turn, and their values are assigned to individual items in the contact structure.
步骤508、解析模块将获得的联系人信息保存到一结构体,将该结构体发送给电话本模块;Step 508: The parsing module saves the obtained contact information to a structure, and sends the structure to the phone book module.
当VCARD中所有的类型与值都转化完成后,解析模块将获得的联系人信息保存到一结构体,VCARD文件便转化为联系人信息结构体,将联系人信息结构体传递给电话本模块。After all the types and values in the VCARD are converted, the parsing module saves the obtained contact information to a structure, and the VCARD file is converted into a contact information structure, and the contact information structure is transmitted to the phone book module.
步骤509、电话本模块将该联系人信息保存到电话本中。Step 509: The phone book module saves the contact information to the phone book.
电话本模块启动联系人保存流程,将该联系人信息保存到电话本中。The phone book module initiates a contact save process and saves the contact information to the phone book.
当停止NFC数据的接收后,开始进入发送本方用户VCARD的流程。即:当接收完成后,接收方停止NFC接收工作,进入联系人信息发送过程;同样,发送方,完成联系人信息发送后,停止NFC发送工作,进入等待接收的状态。即发送方与接收方交换角色,按照以上所描述的流程进行电子名片的发送与接收过程,在此不再描述。After stopping the reception of the NFC data, the process of sending the user's VCARD is started. That is, when the receiving is completed, the receiving party stops the NFC receiving work and enters the contact information sending process; likewise, the sender stops the NFC sending work after completing the contact information transmission, and enters the state of waiting for receiving. That is, the sender and the receiver exchange roles, and the process of sending and receiving the electronic business card is performed according to the process described above, and will not be described here.
当再次完成VCARD的发送与接收后,发送方和接收方的电话本中就保存了对方的联系信息。When the transmission and reception of the VCARD are completed again, the contact information of the other party is saved in the phone book of the sender and the receiver.
图6是本发明在电话本处理联系信息的流程图。Figure 6 is a flow diagram of the present invention for processing contact information in a phone book.
本发明方案在接收方接收到电子名片后,还包括对联系信息进行处理,该过程也是本发明的重要部分,具体包括步骤:After receiving the electronic business card by the receiving party, the solution of the present invention further includes processing the contact information, and the process is also an important part of the present invention, and specifically includes the steps:
步骤601、电话本模块将解析后的联系信息存入电话本;Step 601: The phone book module stores the parsed contact information in the phone book;
步骤602、提示模块在电话本中标识新增的联系信息,提示用户。Step 602: The prompting module identifies the newly added contact information in the phone book to prompt the user.
传统的方式在电话本新添加联系人后,用户没有办法知道具体添加了哪一个联系人信息,为克服该问题,本方明中进一步在接收联系信息后,增加了新添加联系人提示。In the traditional way, after the contact is newly added in the phone book, the user has no way to know which contact information is specifically added. To overcome the problem, the party further adds a new contact prompt after receiving the contact information.
当电话本中有新的联系人信息被加入后,本发明的提示模块,在电话本联系人列表中,将新添加的联系人的那一列以特殊的图标标识,表示该联系人是新添加的。电话本联系人列表一般以用户姓名将电话本中所有联系人一一列出,用户可以通过该列表上下浏览、搜索、查看联系人信息。通过图标标识后,当用户进入该联系人的这一列即查看过该联系人信息后,该图标消失,表示用户已经查看过该联系人信息,已经不是最新添加的联系人。After the new contact information is added in the phone book, the prompting module of the present invention identifies the column of the newly added contact with a special icon in the phone book contact list, indicating that the contact is newly added. of. The phone book contact list generally lists all the contacts in the phone book by user name, and the user can browse, search, and view the contact information through the list. After the icon is identified, when the user enters the column of the contact and the contact information is viewed, the icon disappears, indicating that the user has viewed the contact information, and is not the newly added contact.
需要说明的是,这里的图标可以是任何可以表示新添加的图标,如五角星、云朵图标等,当然也可以不用图标来表示,如可以将该联系人列高亮显示,使用颜色标识、加背景等进行区分。It should be noted that the icon here can be any icon that can represent the newly added, such as a five-pointed star, a cloud icon, etc., of course, it can also be represented by an icon, for example, the contact column can be highlighted, using a color identifier, plus The background is distinguished.
如果添加多个联系人信息时,看过联系人信息后,图标消失的只是用户所查看的这一个联系人,其他新添加联系人的图标不会消失。因此,假设同时添加了4个联系人,那么这4个联系人列都具有新添加图标,用户查看其中一个联系人,该联系人图标消失,但是,其他没有查看的联系图标还继续保持。If you add multiple contact information, after seeing the contact information, the icon disappears only for the contact that the user viewed, and the icons of other newly added contacts will not disappear. Therefore, assuming that 4 contacts are added at the same time, the 4 contact columns all have a newly added icon, and the user views one of the contacts, and the contact icon disappears, but other contact icons that are not viewed continue to remain.
至于对同时添加的联系人,也可以使用不同的标识表示添加顺序,如使用包含序号的图标,记录添加联系人的时间,依据添加联系人的时间,第一个添加的联系人使用包含1的图标,第二个使用包含2的图标,依次例推,这样用户可以很明确知道联系人的添加顺序。查看其中的一个联系人后,图标自动根据添加时间重新更新顺序,如查看了其中的第3个添加的联系人,查看后,第3个联系人图标消失,第4个添加的联系人图标更新为第3,依次类推。As for the contacts added at the same time, different identifiers can also be used to indicate the order of addition. For example, using the icon containing the serial number, the time for adding the contact is recorded, and according to the time of adding the contact, the first added contact uses the one containing 1 The icon, the second uses an icon containing 2, followed by an example, so that the user can clearly know the order in which the contacts are added. After viewing one of the contacts, the icon will automatically re-update the order according to the added time. For example, after viewing the third added contact, after viewing, the third contact icon disappears, and the fourth added contact icon is updated. For the third, and so on.
该步骤具体的处理过程如下:The specific processing of this step is as follows:
电话本模块的软件中有一个队列保存电话本中所有的联系人信息,该队列中每个成员保存一个联系人信息,包括姓名、号码以及所对应的存储位置等,当电话本列表显示时,按照该队列中联系人信息进行显示。There is a queue in the software of the phone book module to store all the contact information in the phone book. Each member of the queue stores a contact information, including a name, a number, and a corresponding storage location. When the phone book list is displayed, Display according to the contact information in the queue.
本发明为了能够区分所添加的联系人是否是新加入且未读的,通过提示模块在列表成员结构体中添加一项标志位(boolean be_new_contact_and_unread),该项标志位标识该联系人是否是新加且未读的。In order to be able to distinguish whether the added contact is newly added and unread, the present invention adds a flag bit in the list member structure by the prompting module (boolean). Be_new_contact_and_unread), this flag identifies if the contact is new and unread.
当电话本模块中调用新加入联系人接口完成联系人的加入后,提示模块将标志位的值置为TURE,当从电话本中进入联系人详细信息界面(即用户通过电话本列表选择进入该联系人详细信息界面,查看该联系人信息)时,提示模块将该标志位的值置为FALSE。After the new contact interface is called in the phone book module to complete the contact joining, the prompting module sets the value of the flag bit to TURE, and enters the contact detailed information interface from the phone book (ie, the user selects to enter the phone book list). When the contact details interface is viewed, the prompting module sets the value of the flag bit to FALSE.
在显示电话本列表时,提示模块检查信息队列中每个成员的标志位(boolean be_new_contact_and_unread),如果该标志位的值为TRUE,说明该联系人是新加入且未读的,则在显示该联系人列时,在该列的特定位置(例如列表头部或尾部等)显示一个图标;如果该标志的值是FALSE,说明该联系人不是新加入且未读的,则在显示该联系人该列时,不显示图标。When displaying the phonebook list, the prompting module checks the flag of each member in the message queue (boolean) Be_new_contact_and_unread), if the value of the flag is TRUE, indicating that the contact is newly added and unread, when the contact column is displayed, a specific position (such as the head or the tail of the list) is displayed in the column. Icon; if the value of the flag is FALSE, indicating that the contact is not newly joined and unread, the icon is not displayed when the contact is displayed.
需要说明的是,这里标志位的值是用TRUE、FALSE举例说明但不局限于此,也可以用1、0表示,并且不限定表示顺序。It should be noted that the value of the flag bit here is exemplified by TRUE and FALSE, but is not limited thereto, and may be represented by 1, 0, and the order of representation is not limited.
这样,所有的电话列表中当新加入且未被用户查看的联系人所在的列,是有特殊新加入的图标。通过这种方式,可以让用户更清楚地知道所新加联系人的信息,起到了很好的提示作用,方便用户查看新联系人信息。In this way, the columns of all the phone lists that are newly added and not viewed by the user are specially added icons. In this way, the user can be more clearly aware of the information of the newly added contact, which plays a good role in prompting the user to view the new contact information.
本发明中所使用的新加联系人提示方式,不仅对本发明通过NFC交换联系信息适用,也适用于其他新加联系人的情况,如通过短信、彩信等接收联系人信息,或者通过蓝牙、红外等接收联系人信息等。The new contact prompting method used in the present invention is applicable not only to the present invention through NFC exchange contact information, but also to other newly added contacts, such as receiving contact information through SMS, MMS, etc., or through Bluetooth, infrared. Wait for receiving contact information, etc.
从上述技术方案可以看出:It can be seen from the above technical solutions:
传统方式进行联系信息交换时,操作麻烦、效率不高;本发明提供的方案,利用NFC技术实现联系信息快速传输交换,一方面加快了用户之间联系信息交换的速度;另一方面,无需用户手动保存,就能自动将联系信息保存到电话本中,提高了用户体验,进一步的,还能在电话本中提供新加入联系信息的提示,并通过图标直观地向用户展现新加入的联系信息,方便用户在接收到对方联系信息后,清晰地知道电话本中具体哪一项是新加入的,从而识别更方便,用户体验更好。In the traditional way, when the contact information is exchanged, the operation is troublesome and the efficiency is not high; the solution provided by the invention uses the NFC technology to realize the fast transmission and exchange of the contact information, on the one hand, the speed of the exchange of information between the users is accelerated; on the other hand, the user is not required. By manually saving, you can automatically save the contact information to the phone book, which improves the user experience. Further, you can also provide new contact information in the phone book, and intuitively display the newly added contact information to the user through the icon. After the user receives the contact information of the other party, it is easy to know which one of the phone book is newly added, so that the identification is more convenient and the user experience is better.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformation of the present invention and the contents of the drawings may be directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (13)

  1. 一种移动终端处理联系信息的方法,其特征在于,包括:A method for processing contact information by a mobile terminal, comprising:
    接收方移动终端与发送方移动终端之间通过呼叫建立近场通信的数据连接后,获取所述发送方移动终端从其文件系统或客户识别模块提取并处理的联系信息文件,所述处理包括将联系信息按照所述电子名片格式标准进行转化处理;After the data connection between the receiver mobile terminal and the sender mobile terminal establishes near field communication by calling, the contact information file extracted and processed by the sender mobile terminal from its file system or client identification module is acquired, and the processing includes The contact information is converted according to the electronic business card format standard;
    判断所述联系信息文件是否是后缀名为.vcf的文件,若是,则推断出为电子名片格式VCARD文件,通过判读VCARD文件的字符串中的开头与结尾,判断所述VCARD文件是否为有效格式,若是,则认为符合要求,读取所述联系信息文件中的内容,将所述内容进行解析处理;Determining whether the contact information file is a file with a .vcf suffix, and if so, inferring the VCARD file as an electronic business card format, determining whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file. If yes, it is considered that the content is met, the content in the contact information file is read, and the content is parsed and processed;
    将所述解析处理后的联系信息存储到移动终端的电话本;And storing the parsed processed contact information to a phone book of the mobile terminal;
    将已存储在电话本中的联系信息添加标识位,通过所述标识位的取值表明新添加或原有。 The contact information already stored in the phone book is added with a flag, and the value of the flag indicates that the new addition or the original is indicated.
  2. 根据权利要求1所述的方法,其特征在于:The method of claim 1 wherein:
    所述读取所述联系信息文件中的内容,将所述内容进行解析处理包括:The reading the content in the contact information file and parsing the content includes:
    读取所述联系信息文件中的内容,将VCARD文件的字符串中每一类型及值转化为联系信息结构体中的一项;Reading the content in the contact information file, converting each type and value in the string of the VCARD file into one item in the contact information structure;
    在所有项的类型与值都转化完成后,保存到一结构体,得到联系信息结构体。After all the types and values of the items have been converted, save them to a structure to get the contact information structure.
  3. 根据权利要求1所述的方法,其特征在于:The method of claim 1 wherein:
    所述标识位的取值表明新添加时,在联系人列表中显示图标,所述图标在用户阅读联系信息后消失。 The value of the identifier bit indicates that an icon is displayed in the contact list when the user newly adds, and the icon disappears after the user reads the contact information.
  4. 一种移动终端处理联系信息的方法,其特征在于,包括:A method for processing contact information by a mobile terminal, comprising:
    获取通过近场通信方式接收的联系信息文件;Obtaining a contact information file received by near field communication;
    按照电子名片格式标准判断出所述联系信息文件符合要求后,读取所述联系信息文件中的内容,将所述内容进行解析处理;After determining that the contact information file meets the requirements according to the electronic business card format standard, reading the content in the contact information file, and parsing the content;
    将所述解析处理后的联系信息存储到移动终端的电话本;And storing the parsed processed contact information to a phone book of the mobile terminal;
    在所述电话本中将所述存储的联系信息标识为与电话本中原有的联系方式不同。The stored contact information is identified in the phone book as being different from the original contact information in the phone book.
  5. 根据权利要求4所述的方法,其特征在于:The method of claim 4 wherein:
    所述获取通过近场通信方式接收的联系信息文件具体为:The obtaining the contact information file received by the near field communication method is specifically:
    接收方移动终端与发送方移动终端之间通过呼叫建立近场通信的数据连接后,获取所述发送方移动终端从其文件系统或客户识别模块提取并处理的联系信息文件,After the data connection between the receiver mobile terminal and the sender mobile terminal establishes near field communication by using the call, the contact information file extracted and processed by the sender mobile terminal from its file system or the client identification module is obtained.
    所述处理包括将联系信息按照所述电子名片格式标准进行转化处理。The processing includes converting the contact information according to the electronic business card format standard.
  6. 根据权利要求4所述的方法,其特征在于: The method of claim 4 wherein:
    所述按照电子名片格式标准判断出所述联系信息文件符合要求包括:Determining, according to the electronic business card format standard, that the contact information file meets the requirements includes:
    判断所述联系信息文件是否是后缀名为.vcf的文件,若是,则推断出为电子名片格式VCARD文件;Determining whether the contact information file is a file with a .vcf suffix, and if so, inferring the VCARD file as an electronic business card format;
    通过判读VCARD文件的字符串中的开头与结尾,判断所述VCARD文件是否为有效格式,若是,则认为符合要求。It is determined whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file, and if so, it is considered to meet the requirement.
  7. 根据权利要求6所述的方法,其特征在于:The method of claim 6 wherein:
    所述读取所述联系信息文件中的内容,将所述内容进行解析处理包括:The reading the content in the contact information file and parsing the content includes:
    读取所述联系信息文件中的内容,将VCARD文件的字符串中每一类型及值转化为联系信息结构体中的一项;Reading the content in the contact information file, converting each type and value in the string of the VCARD file into one item in the contact information structure;
    在所有项的类型与值都转化完成后,保存到一结构体,得到联系信息结构体。After all the types and values of the items have been converted, save them to a structure to get the contact information structure.
  8. 根据权利要求4所述的方法,其特征在于:The method of claim 4 wherein:
    所述在所述电话本中将所述存储的联系信息标识为与电话本中原有的联系方式不同包括:The identifying, in the phone book, the stored contact information as different from the original contact information in the phone book includes:
    在电话本的联系人列表中,将列表成员结构体添加标识位,通过所述标识位的取值表明新添加或原有。In the contact list of the phone book, the list member structure is added with an identifier bit, and the value of the identifier bit indicates the newly added or original.
  9. 根据权利要求8所述的方法,其特征在于:The method of claim 8 wherein:
    所述标识位的取值表明新添加时,在联系人列表中显示图标,所述图标在用户阅读联系信息后消失。The value of the identifier bit indicates that an icon is displayed in the contact list when the user newly adds, and the icon disappears after the user reads the contact information.
  10. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    近场通信模块,用于获取通过近场通信方式接收的联系信息文件,按照电子名片格式标准判断出所述联系信息文件符合后缀要求后,传输给解析模块;a near field communication module, configured to acquire a contact information file received by the near field communication method, and determine that the contact information file meets the suffix requirement according to the electronic business card format standard, and then transmit the information to the parsing module;
    解析模块,用于按照电子名片格式标准判断出所述近场通信模块传输的联系信息文件符合格式要求后,读取联系信息文件中的内容,将所述内容进行解析处理;The parsing module is configured to: after determining that the contact information file transmitted by the near field communication module meets the format requirement according to the electronic business card format standard, read the content in the contact information file, and parse the content;
    电话本模块,用于将所述解析模块解析处理后的联系信息存储到移动终端的电话本;a phone book module, configured to store the contact information parsed by the parsing module into a phone book of the mobile terminal;
    提示模块,用于在所述电话本中将所述存储的联系信息标识为与电话本中原有的联系方式不同。The prompting module is configured to identify the stored contact information in the phone book as being different from the original contact information in the phone book.
  11. 根据权利要求10所述的移动终端,其特征在于:The mobile terminal of claim 10, wherein:
    所述近场通信模块具体判断所述联系信息文件是否是后缀名为.vcf的文件,若是,则推断出为电子名片格式VCARD文件;The near field communication module specifically determines whether the contact information file is a file with a suffix of .vcf, and if so, infers the VCARD file as an electronic business card format;
    所述解析模块具体通过判读VCARD文件的字符串中的开头与结尾,判断所述VCARD文件是否为有效格式,若是,则认为符合要求。The parsing module determines whether the VCARD file is a valid format by interpreting the beginning and the end of the string of the VCARD file, and if so, it is considered to meet the requirement.
  12. 根据权利要求10所述的移动终端,其特征在于:The mobile terminal of claim 10, wherein:
    所述提示模块具体在电话本的联系人列表中,将列表成员结构体添加标识位,通过所述标识位的取值表明新添加或原有;The prompting module specifically adds a flag to the list member structure in the contact list of the phone book, and indicates the newly added or original value by using the value of the identifier bit;
    所述标识位的取值表明新添加时,所述提示模块在联系人列表中显示图标,所述图标在用户阅读联系信息后消失。The value of the identifier bit indicates that when newly added, the prompting module displays an icon in the contact list, and the icon disappears after the user reads the contact information.
  13. 根据权利要求10所述的移动终端,其特征在于:The mobile terminal of claim 10, wherein:
    所述移动终端还包括转化模块,用于在所述移动终端作为发送方时,在与接收方移动终端之间通过呼叫建立近场通信的数据连接后,从自身文件系统或客户识别模块中提取并处理联系信息,所述处理包括将联系信息按照所述电子名片格式标准进行转化处理。The mobile terminal further includes a conversion module, configured to: when the mobile terminal acts as a sender, after establishing a data connection of the near field communication by using a call with the mobile terminal of the receiver, extracting from the file system or the client identification module And processing the contact information, the processing comprising converting the contact information according to the electronic business card format standard.
PCT/CN2012/079564 2011-08-18 2012-08-02 Method for processing contact information of mobile terminal and mobile terminal WO2013023529A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110238008.8 2011-08-18
CN201110238008.8A CN102307056B (en) 2011-08-18 2011-08-18 Method for processing mobile terminal contact information and mobile terminal

Publications (1)

Publication Number Publication Date
WO2013023529A1 true WO2013023529A1 (en) 2013-02-21

Family

ID=45380876

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/079564 WO2013023529A1 (en) 2011-08-18 2012-08-02 Method for processing contact information of mobile terminal and mobile terminal

Country Status (2)

Country Link
CN (1) CN102307056B (en)
WO (1) WO2013023529A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184798A (en) * 2014-07-29 2014-12-03 捷开通讯科技(上海)有限公司 Wearable electronic equipment based electronic business card managing system and exchanging method

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307056B (en) * 2011-08-18 2015-04-22 惠州Tcl移动通信有限公司 Method for processing mobile terminal contact information and mobile terminal
CN103457643A (en) * 2012-05-29 2013-12-18 宏碁股份有限公司 System and method for sharing files of near-field communication devices
CN102868799A (en) * 2012-08-22 2013-01-09 东莞宇龙通信科技有限公司 Contact person addition method and mobile terminal
CN103067054B (en) * 2012-12-20 2015-09-02 广东欧珀移动通信有限公司 Associated person information Batch sending and method of reseptance, device and mobile terminal
CN104219756A (en) * 2013-06-04 2014-12-17 中兴通讯股份有限公司 Method and device for synchronizing business card holders in real time
CN104333643B (en) * 2013-07-22 2016-07-06 腾讯科技(深圳)有限公司 Add the method for contact person, system and terminal
CN103543909A (en) * 2013-10-15 2014-01-29 广东欧珀移动通信有限公司 NFC-based automatic user information filling method and device
CN103795445B (en) * 2014-01-20 2017-02-08 惠州Tcl移动通信有限公司 Method and system for transferring address book information based on blue tooth
CN105376138B (en) 2014-08-28 2019-11-19 腾讯科技(深圳)有限公司 Method, the method and user equipment of data transmission of a kind of contact person addition
CN104302013A (en) * 2014-09-05 2015-01-21 北京奇虎科技有限公司 Data acquisition method, device and system
CN109120783A (en) * 2018-08-10 2019-01-01 深圳市小满科技有限公司 Information acquisition method and device, mobile terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798047A (en) * 2004-12-29 2006-07-05 华为技术有限公司 Method for exchanging address books between video and audio terminals
CN101140517A (en) * 2007-10-23 2008-03-12 中兴通讯股份有限公司 Method and device for realizing business card holder Vcard format in PC software
WO2010023298A2 (en) * 2008-08-28 2010-03-04 Sas Taztag Secure methods of transmitting and receiving data between terminals comprising means of near-field communication, and corresponding terminals
CN102307056A (en) * 2011-08-18 2012-01-04 惠州Tcl移动通信有限公司 Method for processing mobile terminal contact information and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2906952B1 (en) * 2006-10-05 2009-02-27 Inside Contactless Sa METHOD FOR MUTUAL AUTHENTICATION BETWEEN A COMMUNICATION INTERFACE AND A HOST PROCESSOR OF AN NFC CHIPSET

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798047A (en) * 2004-12-29 2006-07-05 华为技术有限公司 Method for exchanging address books between video and audio terminals
CN101140517A (en) * 2007-10-23 2008-03-12 中兴通讯股份有限公司 Method and device for realizing business card holder Vcard format in PC software
WO2010023298A2 (en) * 2008-08-28 2010-03-04 Sas Taztag Secure methods of transmitting and receiving data between terminals comprising means of near-field communication, and corresponding terminals
CN102307056A (en) * 2011-08-18 2012-01-04 惠州Tcl移动通信有限公司 Method for processing mobile terminal contact information and mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184798A (en) * 2014-07-29 2014-12-03 捷开通讯科技(上海)有限公司 Wearable electronic equipment based electronic business card managing system and exchanging method

Also Published As

Publication number Publication date
CN102307056A (en) 2012-01-04
CN102307056B (en) 2015-04-22

Similar Documents

Publication Publication Date Title
WO2013023529A1 (en) Method for processing contact information of mobile terminal and mobile terminal
JP3350656B2 (en) URL notification device for mobile phones
WO2017140127A1 (en) Method and apparatus for processing network connection, and terminal
WO2011129551A2 (en) Device capable of notifying operation state change thereof through network and communication method of the device
US20060161632A1 (en) System and method for voice over internet protocol communication using an instant messenger
WO2020080776A1 (en) Electronic device supporting link sharing and method therefor
WO2018072567A1 (en) Emergency call-for-help method and system based on fingerprint identification for mobile terminal, and mobile terminal
WO2016039576A2 (en) Device and method for accessing multiple networks in wireless communication system
WO2019156506A1 (en) System and method for providing conversational contents
WO2013154406A1 (en) Method and system for establishing wireless local area network link between portable terminals
WO2016076472A1 (en) Call control method and system
WO2016018128A1 (en) Method of displaying contents upon call request, and electronic device providing same
WO2012099402A2 (en) Method and apparatus for phone communication using home network
EP3409073A1 (en) Method and electronic device for providing tethering service
WO2017185647A1 (en) Softsim-based imsi number management and calling methods, server and network side device
WO2013094987A1 (en) Wireless terminal, and information-processing method for the wireless terminal
JP2001268241A (en) Wireless mobile terminal communication system
WO2022197023A1 (en) Service providing system, and terminal and processing method of service providing system
CN111182598A (en) Call switching method and device, storage medium and mobile terminal
WO2015199487A1 (en) Method and electronic device for operating communication service
CN115665713A (en) Multi-device communication method, device, equipment and storage medium
WO2013122423A1 (en) System and method of transmitting data by using widget window
WO2018161574A1 (en) Startup broadcast sending method and device, storage medium, and terminal
JP5391982B2 (en) Terminal device and power supply control method
KR20110127482A (en) Method for transmitting/receiving call intent and system for providing thereof

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: 12824134

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: 12824134

Country of ref document: EP

Kind code of ref document: A1