CN104836598B - Method for processing business, apparatus and system based on near-field communication - Google Patents

Method for processing business, apparatus and system based on near-field communication Download PDF

Info

Publication number
CN104836598B
CN104836598B CN201410046969.2A CN201410046969A CN104836598B CN 104836598 B CN104836598 B CN 104836598B CN 201410046969 A CN201410046969 A CN 201410046969A CN 104836598 B CN104836598 B CN 104836598B
Authority
CN
China
Prior art keywords
service data
offline
type
terminal
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410046969.2A
Other languages
Chinese (zh)
Other versions
CN104836598A (en
Inventor
段乾
杨志鹏
冯国军
吴天衣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE ICT Technologies Co Ltd
Original Assignee
ZTE ICT Technologies Co Ltd
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 ZTE ICT Technologies Co Ltd filed Critical ZTE ICT Technologies Co Ltd
Priority to CN201410046969.2A priority Critical patent/CN104836598B/en
Publication of CN104836598A publication Critical patent/CN104836598A/en
Application granted granted Critical
Publication of CN104836598B publication Critical patent/CN104836598B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses one kind to be based on near-field communication(NFC)Method for processing business, first terminal records information caused by operation and the operation of the user to MSN, offline business data are generated according to information caused by the operation of record and the operation, and NFC communication channel is established, the offline business data are sent by the NFC communication channel;Second terminal receives offline business data by NFC communication channel, obtain the type of service of the offline business data, the offline business data are classified according to the type of service, and according to the offline business data after the type of service treatment classification.

Description

Service processing method, device and system based on near field communication
Technical Field
The present invention relates to the field of wireless Communication service processing technologies, and in particular, to a service processing method, device, and system based on Near Field Communication (NFC).
Background
Instant Messaging (IM) software has been developed for decades and has been transformed from the initial small amount of information transmission to the large data transmission, multi-function composite communication software, and the services and corresponding functions included therein are increasing, such as checking in at a certain place, taking pictures and issuing to group owners, and so on. With the continuous innovation of the service function, more and more information is generated, which results in the need of sending and receiving a large amount of data, thereby causing the communication cost required by the instant messaging software to be multiplied.
With the continuous development of communication technology and the popularization of intelligent terminal equipment, more and more people use instant messaging software through tablet computers and smart phones, the bandwidth limitation of traffic used by the intelligent terminal equipment is more strict than that of the intelligent terminal equipment using a PC (personal computer), the use of more and more data traffic becomes a problem which generally troubles users to use intelligent terminals, and meanwhile, when the users do not have the network access right due to the fact that no traffic exists at present, the users cannot perform any operation on the instant messaging software, so that inconvenience is brought to the use of the users.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method, an apparatus, and a system for processing a service based on NFC, which can implement processing of an instant messaging service under the condition of no traffic usage.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the invention provides a method for processing services based on NFC, which comprises the following steps: the method comprises the steps that a first terminal records the operation of a user on instant messaging software and information generated by the operation; generating offline service data according to the recorded operation and the information generated by the operation, and establishing an NFC communication channel; and sending the offline service data through the NFC communication channel.
In the above solution, before recording the operation of the instant messaging software by the user and the information generated by the operation, the method further includes: and when the first terminal is determined to support the NFC communication function, triggering a prompt for recording the operation and information generated by the operation.
In the above solution, the generating offline service data according to the recorded operation and the information generated by the operation includes: summarizing the operation and the information generated by the operation; and packaging, and/or converting the format and/or encrypting the summarized operation and the information generated by the operation to obtain the offline service data.
The invention provides a method for processing services based on NFC, which comprises the following steps: the second terminal receives the off-line service data through the NFC communication channel, obtains the service type of the off-line service data, classifies the off-line service data according to the service type, and processes the classified off-line service data according to the service type.
In the foregoing solution, when the second terminal is a system device with an NFC function, the processing the classified offline service data according to the service type includes: analyzing the operation type of the off-line service data; generating the service logic of the off-line service data according to the operation type; and sending the off-line service data to a corresponding user through the Internet or a corresponding server according to the service logic.
In the foregoing solution, when the second terminal is an NFC terminal installed with instant messaging software corresponding to the service type, the processing the classified offline service data according to the service type includes: analyzing the operation type of the off-line service data; generating a service logic of the off-line service data according to the operation type and the service type; and executing the business logic.
In the above scheme, when the second terminal is an NFC terminal that is not installed with the instant messaging software corresponding to the service type, the processing and classifying the offline service data according to the service type includes: and directly sending the offline service data to a server corresponding to the service type.
In the foregoing solution, after classifying the offline service data according to the service type, the method further includes: and acquiring sensitive information of the offline service data, and synchronizing instant messaging software corresponding to the service type according to the sensitive information.
The invention provides a method for processing services based on NFC, which comprises the following steps: the method comprises the steps that a first terminal records the operation of a user on instant messaging software and information generated by the operation, generates offline service data according to the recorded operation and the information generated by the operation, establishes an NFC communication channel and transmits the offline service data through the NFC communication channel; and the second terminal receives the offline service data through the NFC communication channel, acquires the service type of the offline service data, classifies the offline service data according to the service type, and processes the classified offline service data according to the service type.
The invention provides a device for processing services based on NFC, which comprises: the device comprises a recording module, a communication module and an interface module; the recording module is used for recording the operation of the user on the instant messaging software and the information generated by the operation; the communication module is used for generating offline service data according to the recorded operation and the information generated by the operation and establishing an NFC communication channel; the interface module is configured to send the offline service data through the NFC communication channel.
In the foregoing solution, the recording module is further configured to: and when the terminal where the device is positioned is determined to support the NFC communication function, triggering a prompt for recording the operation and the information generated by the operation.
In the above scheme, the communication module is specifically configured to: summarizing the operation and the information generated by the operation; and packaging, and/or converting the format and/or encrypting the summarized operation and the information generated by the operation to obtain the offline service data, and establishing an NFC communication channel.
The invention provides a device for processing services based on NFC, which comprises: the device comprises a receiving module, a classification module and a processing module; the receiving module is used for receiving offline service data through an NFC communication channel; the classification module is used for acquiring the service type of the off-line service data and classifying the off-line service data according to the service type; and the processing module is used for processing the classified off-line service data according to the service type.
In the foregoing solution, when the apparatus is located in a system device with an NFC function, the processing module includes: the system comprises an analysis submodule, a generation submodule and a first sending submodule; the analysis submodule is used for analyzing the operation type of the off-line service data; the generating submodule is used for generating the service logic of the off-line service data according to the operation type; and the first sending submodule is used for sending the offline service data to a corresponding user through the Internet or a corresponding server according to the service logic.
In the foregoing solution, when the apparatus is located at an NFC terminal installed with instant messaging software corresponding to the service type, the processing module includes: the processing module comprises: the analysis submodule, the generation submodule and the second sending submodule; the analysis submodule is used for analyzing the operation type of the off-line service data; the generating submodule is used for generating the service logic of the off-line service data according to the operation type; the second sending submodule is used for executing the service logic.
In the foregoing solution, when the apparatus is located in an NFC terminal that is not installed with instant messaging software corresponding to the service type, the processing module includes: a third sending submodule; and the third sending submodule is used for directly sending the offline service data to the server corresponding to the service type.
In the foregoing solution, the processing module further includes: and the synchronization submodule is used for acquiring the sensitive information of the off-line service data and synchronizing the instant messaging software corresponding to the service type according to the sensitive information.
The invention provides a system for processing a service based on NFC, which comprises a first terminal and a second terminal; the first terminal is used for recording the operation of a user on the instant messaging software and information generated by the operation, generating offline service data according to the recorded operation and the data generated by the operation, establishing an NFC communication channel, and transmitting the offline service data to the second terminal through the NFC communication channel; the second terminal is used for receiving the offline service data, acquiring the service type of the offline service data, classifying the offline service data according to the service type, and processing the classified offline service data according to the service type.
Therefore, according to the method, the device and the system for processing the service based on the NFC, provided by the embodiment of the present invention, the first terminal records the operation of the user on the instant messaging software and the information generated by the operation, generates the offline service data according to the recorded operation and the information generated by the operation, establishes the NFC communication channel, and transmits the offline service data through the NFC communication channel; the second terminal receives the offline service data through an NFC communication channel, acquires the service type of the offline service data, classifies the offline service data according to the service type, and processes the classified offline service data according to the service type; therefore, the operation of the instant messaging software can be completed only through related actions such as NFC induction, transmission, positioning and the like, the processing of the instant messaging software service by a user under the condition of no flow use is realized, the service requirement of high-capacity data is met, and the communication cost is saved.
Drawings
Fig. 1 is a schematic flowchart of a service processing method based on NFC according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a service processing method based on NFC according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a service processing method based on NFC according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an NFC-based service processing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an NFC-based service processing apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a system device with an NFC function according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an NFC terminal installed with instant messaging software according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an NFC terminal not installed with instant messaging software according to a fifth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a component of an NFC-based service processing system according to a sixth embodiment of the present invention;
fig. 10 is a flowchart of a specific implementation of an NFC-based service processing system according to a seventh embodiment of the present invention.
Detailed Description
In the embodiment of the invention, a first terminal records the operation of a user on instant messaging software and information generated by the operation, generates offline service data according to the recorded operation and the information generated by the operation, establishes an NFC communication channel and transmits the offline service data through the NFC communication channel; and the second terminal receives the offline service data through an NFC communication channel, acquires the service type of the offline service data, classifies the offline service data according to the service type, and processes the classified offline service data according to the service type.
The first terminal collects the operation and the information generated by the operation, and packages, converts the format and/or encrypts the collected operation and the information generated by the operation to obtain the off-line service data.
The second terminal can be a system device with an NFC function or an NFC terminal with an Internet access function; the NFC terminal can be provided with or not provided with instant messaging software corresponding to the service type.
The technical solution of the present invention is further described in detail with reference to the accompanying drawings and specific embodiments.
Example one
Fig. 1 is a schematic flowchart of a service processing method based on NFC according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101, a first terminal records the operation of a user on instant messaging software and information generated by the operation;
specifically, the first terminal records the operation of the user on the instant messaging software and the information generated by the operation under the condition that the network connection is not performed, and the recorded operation may include: the operation types of signing in, uploading pictures, updating signatures and the like, and the information generated by the operation can comprise: the service type, the user account, the account password, the operation content and other operation generated related information.
Here, before recording the operation of the user on the instant messaging software and information generated by the operation, the first terminal may determine whether the first terminal has an NFC communication function; if the first terminal does not support the NFC communication function, triggering a prompt of user operation failure; and if the first terminal supports the NFC communication function, triggering a prompt for recording user operation and information generated by the operation.
When the first terminal does not have the network connection function, the first terminal can remind a user that the current network is not connected before judging whether the first terminal has the NFC communication function; the first terminal may not have the right of internet access, and the first terminal may not perform normal or fast service data interaction with the internet due to a weak network signal.
In practical applications, the first terminal may be a terminal with an NFC function or a terminal with an NFC chip, and when the first terminal is installed with the instant messaging software, a user may perform various types of operations through the instant messaging software, for example, operations of checking in at a certain location, and/or uploading a picture, and/or updating a signature and other related functions.
102, the first terminal generates offline service data according to the recorded operation and information generated by the operation, and establishes an NFC communication channel;
specifically, the first terminal collects information generated by various operations and operations recorded in step 101, and processes the collected information generated by the operations and operations to generate offline service data; the processing of the information generated by the various operations and operations after the aggregation may include: packaging, format conversion, encryption and other processing, wherein the packaging comprises compressing the aggregated operation and information generated by the operation and adding a field representing the service type; the offline service data generated through processing carries the data length of the offline service data.
The method comprises the steps that a first terminal establishes an NFC communication channel according to an NFC standard while generating offline service data, wherein the NFC communication channel is an NFC data stream channel; offline traffic data may flow from the first terminal to the second terminal over the established NFC communication channel; the second terminal is a system device with an NFC function at a certain location or an NFC terminal with an Internet access function.
In practical application, the recorded user operation and information generated by the user operation may include some sensitive information related to the personal privacy or the use security of the user, and therefore, the recorded operation and information generated by the operation need to be encrypted to ensure the security of sensitive information such as a user account number, an account number password and the like in the transmission process; the purpose of processing the encrypted operation and the information generated by the operation, such as packaging, format conversion and the like, is to enable the offline service data generated by the instant messaging software to be quickly transmitted in the NFC communication channel and enable the transmitted offline service data to meet the communication requirements of the NFC communication channel.
103, the first terminal sends the offline service data through the NFC communication channel;
specifically, the first terminal transmits the offline service data generated in step 102 to an NFC communication channel by an addressing method of NFC, so as to implement transmission of the offline service data between the first terminal and another terminal; here, the NFC communication channel is the NFC communication channel established in step 102.
Example two
Fig. 2 is a schematic flowchart of a service processing method based on NFC according to a second embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step 201, the second terminal receives offline service data through an NFC communication channel;
specifically, the second terminal receives the offline service data sent by the first terminal through an NFC communication channel with the first terminal.
In view of security in the process of transmitting the offline service data, the received offline service data may be encrypted data, and therefore, before the service type of the offline service data is obtained, the encrypted offline service data needs to be decrypted; and the decryption algorithm adopted by decryption is a decryption algorithm corresponding to the agreed encryption algorithm.
In practical application, when the offline service data is decrypted, the offline service data needs to be unpacked, and format conversion is performed on the offline service data according to a format supported by the second terminal and a transmission format of the offline service data, so that the method is suitable for instant messaging software operation among multiple terminals.
Step 202, the second terminal obtains the service type of the off-line service data, and classifies the off-line service data according to the service type;
specifically, the received offline service data is preliminarily analyzed, and the service type of the offline service data is obtained; classifying the offline service data according to the acquired service types so as to process the offline service data through different ports; the second terminal is system equipment with an NFC function, or an NFC terminal provided with instant messaging software corresponding to the service type, or an NFC terminal not provided with instant messaging software corresponding to the service type; after the classification is completed, step 203 is performed.
When the second terminal is an NFC terminal having a function of accessing the internet, the NFC terminal may be installed with or without the instant messaging software corresponding to the acquired service type, that is, when the second terminal is an NFC terminal, the installed instant messaging software may or may not be consistent with the first terminal operated by the user.
Here, the service type is a type of instant messaging software corresponding to the offline service data, the service type is represented by a corresponding field, and when the second terminal receives the offline service data, the corresponding service type of the received offline service data is determined according to the field; when the second terminal receives the offline service data of different service types, the offline service data can be processed through different ports.
Step 203, the second terminal processes the classified off-line service data according to the service type;
specifically, the second terminal processes the classified offline service data according to the service type obtained in step 202; wherein, the second terminal is different, and the specific processing method is different.
When the second terminal is a system device with an NFC function, the second terminal analyzes the operation type of the offline service data, generates a service logic of the offline service data according to the operation type, and sends the offline service data to a corresponding user through the Internet or a corresponding server according to the generated service logic; the corresponding user is a receiver of the instant messaging message, and the receiver can be one or more users; when the recipient is a plurality of users, the recipient may include all users of the group to which the instant messaging message is sent.
When the second terminal is an NFC terminal equipped with the instant messaging software corresponding to the service type obtained in step 202, the second terminal analyzes the operation type of the offline service data, generates a service logic of the offline service data according to the operation type, and executes the service logic; the executing service logic specifically includes: calling a function module corresponding to the service logic to process the off-line service data and finish the operation of the off-line service data; here, it is prior art to complete the operation corresponding to the offline service data through the function module corresponding to the service logic, and detailed description is omitted here.
And when the second terminal is an NFC terminal which is not provided with instant messaging software corresponding to the service type, the second terminal directly sends the offline service data to a server corresponding to the service type.
Here, when the second terminal is a system device having an NFC function or an NFC terminal installed with instant messaging software corresponding to the service type acquired in step 202, the service logic is generated from the service type and the operation type.
Before the operation type of the off-line service data is analyzed, the second terminal needs to acquire sensitive information of the off-line service data, and the synchronization of the second terminal and the first terminal to the instant messaging software is realized according to the acquired sensitive information, wherein the synchronization of the instant messaging software is that the second terminal enters the instant messaging software corresponding to the service type or the service module corresponding to the service type through the acquired sensitive information.
The data length of the off-line service data can be analyzed while the operation type of the off-line service data is analyzed; the received off-line service data can be verified whether to be correct or not by comparing the obtained data length with the data length information carried by the off-line service data; and when the two are consistent, the received offline service data is confirmed to be correct, otherwise, the received offline service data is wrong, and the offline service data is not processed.
Here, the service type may be service types such as Tencent QQ, Sino microblog, and the operation type may include: signing, uploading pictures, updating signatures and the like. Through the service logic generated by the service type and the operation type, the specific user operation of the offline service data can be known, such as: the signature is changed in the update QQ, and the picture is uploaded in the Xinfeng microblog, and the service type, the operation type and the service logic are further used for explaining the relationship among the three, and are not used for limiting the service type, the operation type and the service logic in the invention.
In practical application, when the second terminal is a system device with an NFC function, the second terminal processes and forwards the received offline service data through the internet or a corresponding server to complete the operation of the first terminal user on the first terminal; the system equipment with the NFC function does not have the function of installing instant messaging software and has a function module for processing the instant messaging software; here, the system device with NFC function is a system device with NFC function in a certain location, and the system device is fixed in position and cannot be moved freely.
In practical application, when the second terminal is an NFC terminal with an internet access function, the processing can be performed according to whether the terminal is equipped with instant messaging software corresponding to offline service data; if the instant communication software corresponding to the offline service data is installed, the related operation of the offline service data sent by the first terminal is completed through the instant communication software of the second terminal; and if the instant messaging software corresponding to the offline service data is not installed, the received offline service data is sent to the corresponding server, and the server completes the corresponding user operation.
EXAMPLE III
Fig. 3 is a schematic flowchart of a service processing method based on NFC according to a third embodiment of the present invention, and as shown in fig. 3, the method includes the following steps:
step 301, a first terminal records an operation of a user on instant messaging software and information generated by the operation, generates offline service data according to the recorded operation and the information generated by the operation, establishes an NFC communication channel, and transmits the offline service data through the NFC communication channel;
specifically, the first terminal is a terminal which does not have the function of accessing the internet and has the NFC function, and such a terminal can record the operation performed by the user on the instant messaging software and information generated by the operation without network connection, summarize the recorded operation and the information generated by the operation, generate offline service data through processing such as packaging, format conversion, encryption and the like, and send the generated offline service data to the second terminal through an NFC communication channel established by the first terminal.
Step 302, the second terminal receives the offline service data through the NFC communication channel, acquires a service type of the offline service data, classifies the offline service data according to the service type, and processes the classified offline service data according to the service type;
specifically, the second terminal receives the offline service data sent by the first terminal through the NFC communication channel, performs preliminary analysis on the received offline service data, obtains the service type of the received offline service data, classifies the offline service data according to different service types, and performs corresponding processing on the classified offline service data according to the service type; here, the second terminal may process the offline service data of a plurality of service types simultaneously.
When the second terminal is a system device with an NFC function, the second terminal sends offline service data to a corresponding user through the Internet or a corresponding server according to the service type; when the second terminal is an NFC terminal provided with instant messaging software corresponding to the service type, offline service data are sent to instant messaging software corresponding to the service type according to the service type, and operation corresponding to the offline service data is completed; and when the second terminal is an NFC terminal which is not provided with instant messaging software corresponding to the service type, the offline service data is directly sent to a server corresponding to the service type.
Here, the NFC communication channel established by the first terminal is an NFC data stream channel; through the NFC data flow channel, the first terminal and the second terminal realize the transmission of offline service data in an NFC communication mode, and further, the second terminal can replace the first terminal to finish the operation of a user on the instant messaging software on the first terminal through related actions such as NFC induction, transmission, positioning and the like.
In practical application, a user can transmit offline service data of a terminal with an NFC function to a corresponding server through NFC system equipment in a certain location or an NFC terminal with an internet access function, and the corresponding server performs corresponding processing on an operation of the user, or the NFC terminal with the internet access function performs corresponding processing on the operation of the user.
Example four
To implement the foregoing method, a fourth embodiment of the present invention provides an apparatus for NFC-based service processing, where the apparatus is located in a first terminal 40, and as shown in fig. 4, the apparatus includes: a recording module 41, a communication module 42, and an interface module 43; wherein,
the recording module 41 is located in the first terminal 40 and is used for recording the operation of the user on the instant messaging software and information generated by the operation;
specifically, the recording module 41 is configured to record, when the user operates the instant messaging software, an operation of the user and information generated by the operation; the recording operation may include: the operation types of signing in, uploading pictures, updating signatures and the like, and the information generated by the operation can comprise: the service type, the user account, the account password, the operation content and other operation generated related information; when the first terminal 40 does not perform NFC communication, the recording module 41 may record all operations of the instant messaging software and information generated by the operations by the user; when the first terminal 40 performs NFC communication, the recording module 41 may transmit the recorded operation and information generated by the operation to the communication module 42.
The recording module 41 can be implemented by a Central Processing Unit (CPU) and a memory of the first terminal 40, and before recording information generated by operation and operation of the instant messaging software by the user, can also be used to determine whether the first terminal 40 supports the NFC communication function; when the first terminal 40 where the device of the fourth embodiment of the present invention is located does not support the NFC communication function, a prompt for user operation failure is triggered; when the first terminal 40 where the apparatus according to the fourth embodiment of the present invention is located supports the NFC communication function, a prompt for recording user operations and information generated by the operations is triggered.
The communication module 42 may be implemented by a signal processing chip of the first terminal 40, and is configured to generate offline service data according to the recorded operation and information generated by the operation, and establish an NFC communication channel;
specifically, the communication module 42 is configured to collect information generated by various operations and operations sent by the recording module 41, and process the collected information generated by the operations and operations to generate offline service data; processing the information generated by various aggregated operations and operations, wherein the processing can comprise packaging, format conversion, encryption and the like, so that the generated offline service data can be safely and reliably transmitted in a network; the communication module 42 is further configured to establish an NFC communication channel, perform offline service data docking between the communication module 42 and the interface module 43, and send the offline service data to the interface module 43; wherein the NFC communication channel may be an NFC data stream channel established according to an NFC standard.
The interface module 43 may be implemented by an interface chip of the first terminal 40, and is configured to send the offline service data through the NFC communication channel;
specifically, the interface module 43 is configured to transmit the offline service data received from the communication module 42 to an NFC communication channel through an NFC addressing method, so as to implement transmission of the offline service data between the first terminal 40 and another terminal.
The first terminal 40 may be a terminal with an NFC function or an NFC chip, and the terminal may record the operation performed by the user on the instant messaging software and information generated by the operation without performing network connection.
EXAMPLE five
An embodiment of the present invention further provides an apparatus for processing a service based on NFC, where the apparatus is located in a second terminal 50, as shown in fig. 5, the apparatus includes: a receiving module 51, a classifying module 52 and a processing module 53;
the receiving module 51 may be implemented by an interface chip of the second terminal 50, and is configured to receive the offline service data through an NFC communication channel;
specifically, the receiving module 51 is configured to receive the encrypted offline service data through the NFC communication channel, and decrypt the encrypted offline service data.
The classifying module 52 may be implemented by the CPU of the second terminal 50, and is configured to obtain a service type of the offline service data, and classify the offline service data according to the service type;
specifically, the classifying module 52 is configured to perform preliminary analysis on the offline service data decrypted by the receiving module 51, obtain a service type of the offline service data, classify the offline service data according to the obtained service type, and after the classification is completed, send the service type and the classified offline service data to the processing module 53.
The processing module 53 may be implemented by the CPU of the second terminal 50 and a signal processing chip, and is configured to process the classified offline service data according to the service type;
specifically, the classified offline service data is processed according to the service type obtained by the classification module 52; wherein, the second terminal 50 is different, and the specific structure of the processing module 53 is different;
when the second terminal 50 is a system device with NFC function, that is, when the apparatus is located in the system device with NFC function, as shown in fig. 6, the processing module 53 includes: an analysis submodule 531, a generation submodule 532, and a first sending submodule 533; the parsing submodule 531 is configured to parse an operation type of the offline service data, and send the parsed operation type to the generating submodule 532; a generating submodule 532, configured to generate a service logic of the offline service data according to the operation type analyzed by the analyzing submodule 531; the first sending submodule 533 is configured to send offline service data to a corresponding user through the internet or a corresponding server according to the service logic generated by the generating submodule 532; the business logic is generated by the business type and the operation type.
When the second terminal 50 is an NFC terminal installed with instant messaging software corresponding to a service type, that is, the apparatus is located in an NFC terminal installed with instant messaging software corresponding to a service type, as shown in fig. 7, the processing module 53 includes: an analysis submodule 531, a generation submodule 532, and a second sending submodule 534; the parsing submodule 531 is configured to parse an operation type of the offline service data, and send the parsed operation type to the generating submodule 532; a generating submodule 532, configured to generate a service logic of the offline service data according to the operation type analyzed by the analyzing submodule 531; a second sending submodule 534 for executing the business logic; the business logic is generated by the business type and the operation type.
When the second terminal 50 is an NFC terminal not installed with the instant messaging software corresponding to the service type, that is, the apparatus is located in an NFC terminal not installed with the instant messaging software corresponding to the service type, as shown in fig. 8, the processing module 53 includes: a third send submodule 535; the third sending submodule 535 is configured to directly send the offline service data to the server corresponding to the service type.
When the second terminal 50 is a system device with an NFC function or an NFC terminal installed with instant messaging software corresponding to a service type, as shown in fig. 6 and 7, the processing module 53 further includes a synchronization sub-module 536, configured to acquire sensitive information of offline service data and synchronize the instant messaging software corresponding to the service type according to the sensitive information; here, sensitive information includes, but is not limited to: a user account and an account password.
The parsing submodule 531 is further configured to parse the data length of the offline service data, and verify the correctness of the offline service data according to the parsed data length.
In practical applications, the processing module 53 may include the parsing submodule 531, the generating submodule 532, the first sending submodule 533, the second sending submodule 534, the third sending submodule 535, and the synchronizing submodule 536 at the same time, so that the apparatus provided in the fifth embodiment can perform corresponding processing on different types of second terminals 50.
In practical applications, according to the fifth embodiment of the present invention, the second terminal 50 can indirectly complete the operation of the instant messaging software in the first terminal 40 by the user.
EXAMPLE six
An embodiment of the present invention further provides a system for service processing based on NFC, and as shown in fig. 9, the system includes: a first terminal 40, a second terminal 50; the first terminal 40 is configured to record an operation of a user on the instant messaging software and information generated by the operation, generate offline service data according to the recorded operation and the information generated by the operation, establish an NFC communication channel, and send the offline service data to the second terminal 50 through the NFC communication channel;
the first terminal 40 comprises a recording module 41, a communication module 42 and an interface module 43; the recording module 41 is configured to record, when it is determined that the first terminal 40 supports the NFC function, an operation of the user on the instant messaging software and information generated by the operation; the communication module 42 is configured to generate offline service data according to the recorded operation and information generated by the operation, and establish an NFC communication channel; the interface module 43 is configured to send the offline service data through the NFC communication channel.
And the second terminal 50 is configured to receive the offline service data through an NFC communication channel, acquire a service type of the offline service data, classify the offline service data according to the service type, and process the classified offline service data according to the service type.
The second terminal 50 includes: a receiving module 51 and a classifying module 52; a processing module 53; the receiving module 51 is configured to receive offline service data through an NFC communication channel; a classification module 52, configured to obtain a service type of the offline service data, and classify the offline service data according to the service type; and the processing module 53 is configured to process the classified offline service data according to the service type.
The system may further comprise: the server 60 is configured to, when receiving the offline service data sent by the second terminal 50, process the offline service data sent by the second terminal 50, and complete an operation of the instant messaging software of the first terminal 40 by the user.
In the system according to the sixth embodiment of the present invention, the first terminal 40 serves as a provider of offline service data, and the second terminal 50 serves as a receiver and a processor of offline service data. For the first terminal 40, the second terminal 50 is first selected to process the offline service data, and when the second terminal 50 cannot complete the operation of the user, the second terminal 50 serves as a transfer station of the offline service data, and sends the offline service data to the corresponding server 60, and the server 60 processes the offline service data.
EXAMPLE seven
Fig. 10 is a schematic flowchart of a specific implementation process of an NFC-based service processing system according to a seventh embodiment of the present invention, as shown in fig. 10, including the following steps:
step 701, the recording module 41 records the operation and the information generated by the operation;
specifically, when the user operates the instant messaging software of the first terminal 40, the recording module 41 of the first terminal 40 determines whether the current terminal supports the NFC communication function, and if not, triggers a user operation failure prompt, and if so, triggers a prompt for recording the user operation and information generated by the operation, records the operation performed by the user on the instant messaging software, records the information generated by the operation, and sends the recorded operation and operation generation information to the communication module 42.
Step 702, the communication module 42 generates offline service data and establishes an NFC communication channel;
specifically, the communication module 42 summarizes the operation and information generated by the operation recorded by the recording module 41, packages, converts the format, encrypts and the like the summarized operation and information generated by the operation to generate offline service data, and establishes an NFC communication channel; when the off-line service data is generated and the NFC communication channel is established, the off-line service data is sent to the interface module 43.
Step 703, the interface module 43 sends the offline service data;
specifically, the interface module 43 transmits the offline service data generated by the communication module 42 through the established NFC communication channel, and sends the offline service data to the second terminal 50.
Step 704, the receiving module 51 receives the offline service data;
when the second terminal 50 receives the offline service data, the receiving module 51 receives the sent offline service data through the NFC communication channel, decrypts the received offline service data, and sends the offline service data to the classifying module 52 after the decryption is completed.
Step 705, the classification module 52 classifies the offline service data;
specifically, the classifying module 52 obtains the service type of the decrypted offline service data, and classifies the received offline service data according to the obtained service type. After the classification is completed, the service type and the offline service data are sent to the processing module 53.
Step 706, the processing module 53 processes the offline service data;
when the second terminal is a 50 system device with an NFC function, the processing module 53 sends the classified offline service data to a corresponding user through the internet or a corresponding server according to the service type;
when the second terminal 50 is an NFC terminal having an internet access function and installed with instant messaging software corresponding to a service type, the processing module 53 sends offline service data to instant messaging software corresponding to the service type according to the service type, and completes an operation corresponding to the offline service data;
when the second terminal 50 is an NFC terminal having an internet access function and not installed with instant messaging software corresponding to a service type, the processing module 53 directly sends offline service data to a server corresponding to the service type.
The service processing method according to any one of the first embodiment, the second embodiment, and the third embodiment of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software function module and sold or used as an independent product. Based on such an understanding, it will be apparent to one skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therewith, including but not limited to, a U disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk storage device, a CD-ROM, an optical storage device, and the like.
The present invention is described in terms of flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to any one of embodiments one through seven of the present invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Correspondingly, any of the first, second, and third embodiments of the present invention further provides a computer storage medium, where a computer program is stored, where the computer program is used to execute the NFC-based service processing method according to any of the first, second, and third embodiments of the present invention.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements, etc. that are within the spirit and principle of the present invention should be included in the present invention.

Claims (18)

1. A method for Near Field Communication (NFC) -based traffic handling, the method comprising:
the method comprises the steps that a first terminal records the operation of a user on instant messaging software and information generated by the operation; generating offline service data according to the recorded operation and the information generated by the operation, and establishing an NFC communication channel; sending the offline service data through the NFC communication channel; wherein,
the generating of the offline service data according to the recorded operation and the information generated by the operation comprises: compressing and adding a field representing a service type according to the recorded operation and the information generated by the operation, wherein the service type is the type of instant messaging software corresponding to the offline service data; the offline service data carries the data length of the offline service data.
2. The method of claim 1, wherein prior to recording user actions on the instant messaging software and information resulting from the actions, the method further comprises:
and when the first terminal is determined to support the NFC communication function, triggering a prompt for recording the operation and information generated by the operation.
3. The method of claim 1, wherein generating offline service data according to the recorded operations and information generated by the operations comprises:
summarizing the operation and the information generated by the operation;
and packaging, and/or converting the format and/or encrypting the summarized operation and the information generated by the operation to obtain the offline service data.
4. A method for NFC-based traffic processing, the method comprising:
the second terminal receives offline service data through an NFC communication channel, acquires the service type of the offline service data, classifies the offline service data according to the service type, and processes the classified offline service data according to the service type; wherein,
the service type is the type of instant messaging software corresponding to the offline service data, and when the offline service data is received by the second terminal, the corresponding service type of the received offline service data is determined according to the field representing the service type; determining the service type of the off-line service data, and analyzing the data length of the off-line service data; and verifying whether the received offline service data is correct or not by comparing the obtained data length with the data length information carried by the offline service data.
5. The method according to claim 4, wherein when the second terminal is a system device with an NFC function, the processing the classified offline service data according to the service type includes:
analyzing the operation type of the off-line service data; generating the service logic of the off-line service data according to the operation type; and sending the off-line service data to a corresponding user through the Internet or a corresponding server according to the service logic.
6. The method according to claim 4, wherein when the second terminal is an NFC terminal installed with instant messaging software corresponding to the service type, the processing the classified offline service data according to the service type includes:
analyzing the operation type of the off-line service data; generating a service logic of the off-line service data according to the operation type and the service type; and executing the business logic.
7. The method according to claim 4, wherein when the second terminal is an NFC terminal that is not equipped with instant messaging software corresponding to the service type, the processing the classified offline service data according to the service type includes:
and directly sending the offline service data to a server corresponding to the service type.
8. The method according to claim 5 or 6, wherein after classifying the offline traffic data according to the traffic type, the method further comprises: and acquiring sensitive information of the offline service data, and synchronizing instant messaging software corresponding to the service type according to the sensitive information.
9. A method for NFC-based traffic processing, the method comprising:
the method comprises the steps that a first terminal records the operation of a user on instant messaging software and information generated by the operation, generates offline service data according to the recorded operation and the information generated by the operation, establishes an NFC communication channel and transmits the offline service data through the NFC communication channel; wherein,
the generating of the offline service data according to the recorded operation and the information generated by the operation comprises: compressing and adding a field representing a service type according to the recorded operation and the information generated by the operation, wherein the service type is the type of instant messaging software corresponding to the offline service data; the offline service data carries the data length of the offline service data;
the second terminal receives the offline service data through the NFC communication channel, acquires the service type of the offline service data, classifies the offline service data according to the service type, and processes the classified offline service data according to the service type; wherein,
the service type is the type of instant messaging software corresponding to the offline service data, the service type is represented by a corresponding field, and when the offline service data is received by the second terminal, the corresponding service type of the received offline service data is determined according to the field; determining the service type of the off-line service data, and analyzing the data length of the off-line service data; and verifying whether the received offline service data is correct or not by comparing the obtained data length with the data length information carried by the offline service data.
10. An apparatus for NFC-based traffic processing, the apparatus comprising: the device comprises a recording module, a communication module and an interface module; wherein,
the recording module is used for recording the operation of the user on the instant messaging software and the information generated by the operation;
the communication module is used for generating offline service data according to the recorded operation and the information generated by the operation and establishing an NFC communication channel; wherein,
the generating of the offline service data according to the recorded operation and the information generated by the operation comprises: compressing and adding a field representing a service type according to the recorded operation and the information generated by the operation, wherein the service type is the type of instant messaging software corresponding to the offline service data; the offline service data carries the data length of the offline service data;
the interface module is configured to send the offline service data through the NFC communication channel.
11. The apparatus of claim 10, wherein the recording module is further configured to: and when the terminal where the device is positioned is determined to support the NFC communication function, triggering a prompt for recording the operation and the information generated by the operation.
12. The apparatus of claim 10, wherein the communication module is specifically configured to:
summarizing the operation and the information generated by the operation;
and packaging, and/or converting the format and/or encrypting the summarized operation and the information generated by the operation to obtain the offline service data, and establishing an NFC communication channel.
13. An apparatus for NFC-based traffic processing, the apparatus comprising: the device comprises a receiving module, a classification module and a processing module; wherein,
the receiving module is used for receiving the offline service data through an NFC communication channel;
the classification module is used for acquiring the service type of the off-line service data and classifying the off-line service data according to the service type; wherein,
the service type is the type of instant messaging software corresponding to the offline service data, the service type is represented by a corresponding field, and when the offline service data is received by the second terminal, the corresponding service type of the received offline service data is determined according to the field; determining the service type of the off-line service data, and analyzing the data length of the off-line service data; comparing the obtained data length with data length information carried by the offline service data to verify whether the received offline service data is correct or not;
and the processing module is used for processing the classified off-line service data according to the service type.
14. The apparatus of claim 13, wherein the processing module comprises, when the apparatus is located in an NFC-enabled system device: the system comprises an analysis submodule, a generation submodule and a first sending submodule; wherein,
the analysis submodule is used for analyzing the operation type of the off-line service data;
the generating submodule is used for generating the service logic of the off-line service data according to the operation type;
and the first sending submodule is used for sending the offline service data to a corresponding user through the Internet or a corresponding server according to the service logic.
15. The apparatus according to claim 13, wherein when the apparatus is located in an NFC terminal installed with instant messaging software corresponding to the service type, the processing module includes: the processing module comprises: the analysis submodule, the generation submodule and the second sending submodule; wherein,
the analysis submodule is used for analyzing the operation type of the off-line service data;
the generating submodule is used for generating the service logic of the off-line service data according to the operation type;
the second sending submodule is used for executing the service logic.
16. The apparatus of claim 13, wherein when the apparatus is located in an NFC terminal that does not have instant messaging software corresponding to the service type, the processing module comprises: a third sending submodule; wherein,
and the third sending submodule is used for directly sending the offline service data to the server corresponding to the service type.
17. The apparatus of claim 14 or 15, wherein the processing module further comprises: and the synchronization submodule is used for acquiring the sensitive information of the off-line service data and synchronizing the instant messaging software corresponding to the service type according to the sensitive information.
18. A system for NFC-based service processing is characterized in that the system comprises a first terminal and a second terminal; wherein,
the first terminal is used for recording the operation of a user on the instant messaging software and information generated by the operation, generating offline service data according to the recorded operation and the data generated by the operation, establishing an NFC communication channel, and transmitting the offline service data to the second terminal through the NFC communication channel; wherein,
the generating of the offline service data according to the recorded operation and the information generated by the operation comprises: compressing and adding a field representing a service type according to the recorded operation and the information generated by the operation, wherein the service type is the type of instant messaging software corresponding to the offline service data; the offline service data carries the data length of the offline service data;
the second terminal is used for receiving the offline service data, acquiring the service type of the offline service data, classifying the offline service data according to the service type, and processing the classified offline service data according to the service type; wherein,
the service type is the type of instant messaging software corresponding to the offline service data, the service type is represented by a corresponding field, and when the offline service data is received by the second terminal, the corresponding service type of the received offline service data is determined according to the field; determining the service type of the off-line service data, and analyzing the data length of the off-line service data; and verifying whether the received offline service data is correct or not by comparing the obtained data length with the data length information carried by the offline service data.
CN201410046969.2A 2014-02-10 2014-02-10 Method for processing business, apparatus and system based on near-field communication Expired - Fee Related CN104836598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410046969.2A CN104836598B (en) 2014-02-10 2014-02-10 Method for processing business, apparatus and system based on near-field communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410046969.2A CN104836598B (en) 2014-02-10 2014-02-10 Method for processing business, apparatus and system based on near-field communication

Publications (2)

Publication Number Publication Date
CN104836598A CN104836598A (en) 2015-08-12
CN104836598B true CN104836598B (en) 2017-11-28

Family

ID=53814264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410046969.2A Expired - Fee Related CN104836598B (en) 2014-02-10 2014-02-10 Method for processing business, apparatus and system based on near-field communication

Country Status (1)

Country Link
CN (1) CN104836598B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792113B (en) * 2016-05-12 2019-08-16 中国联合网络通信集团有限公司 NFC method, intelligent information terminal, intelligent terminal and NFC communication system
CN110875857B (en) * 2018-08-31 2023-03-07 中兴通讯股份有限公司 Method, device and system for reporting disconnected network state

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170745B (en) * 2007-11-22 2010-04-07 腾讯科技(深圳)有限公司 Bluetooth-based instant communication method, server, system and terminal
US8307410B2 (en) * 2008-08-12 2012-11-06 Mastercard International Incorporated Systems, methods, and computer readable media for providing for secure offline data transfer between wireless smart devices
CN102025655A (en) * 2010-12-08 2011-04-20 百度在线网络技术(北京)有限公司 Method and device for realizing instant messaging between mobile devices based on short distance communication

Also Published As

Publication number Publication date
CN104836598A (en) 2015-08-12

Similar Documents

Publication Publication Date Title
CN108901056B (en) Method and device for information interaction
US8447969B2 (en) Transfer device for sensitive material such as a cryptographic key
EP3942832B1 (en) Network based media processing security
CN104270516B (en) Decryption method and mobile terminal
US8463239B1 (en) Secure reconfiguration of wireless communication devices
CN109450777B (en) Session information extraction method, device, equipment and medium
CN104602238A (en) Wireless network connecting method, device and system
CN105376059B (en) The method and system of application signature is carried out based on electron key
EP3084668A1 (en) Technologies for supporting multiple digital rights management protocols on a client device
WO2016145981A1 (en) Data transmission system and method
WO2015117351A1 (en) Wifi connection method, device and system, and computer storage medium
CN105848145A (en) WIFI intelligent configuration method and device
US9332405B2 (en) Short message backup method, mobile terminal, and server
CN105763325A (en) Encryption authentication method and device
CN104836598B (en) Method for processing business, apparatus and system based on near-field communication
WO2015027931A1 (en) Method and system for realizing cross-domain remote command
CN112511892B (en) Screen sharing method, device, server and storage medium
WO2020044088A1 (en) File transfer method and apparatus thereof, and device/terminal/server
WO2014089968A1 (en) Virtual machine system data encryption method and device
CN103997730A (en) Method for decrypting, copying and pasting encrypted data
CN202918498U (en) SIM card adapter, mobile terminal and digital signature authentication system
CN106685931B (en) Smart card application management method and system, terminal and smart card
CN104980266A (en) Data communication method and system
CN107592294A (en) Data reporting method and device
WO2014173215A1 (en) Conversion device and display system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171128

CF01 Termination of patent right due to non-payment of annual fee