CN109429200B - Data communication method and device and mobile equipment - Google Patents
Data communication method and device and mobile equipment Download PDFInfo
- Publication number
- CN109429200B CN109429200B CN201710524119.2A CN201710524119A CN109429200B CN 109429200 B CN109429200 B CN 109429200B CN 201710524119 A CN201710524119 A CN 201710524119A CN 109429200 B CN109429200 B CN 109429200B
- Authority
- CN
- China
- Prior art keywords
- mobile device
- mobile
- pairing
- received
- successful
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 93
- 238000004891 communication Methods 0.000 title claims abstract description 76
- 238000013475 authorization Methods 0.000 claims abstract description 26
- 230000006870 function Effects 0.000 claims abstract description 24
- 230000004044 response Effects 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 13
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K7/00—Methods or arrangements for sensing record carriers, e.g. for reading patterns
- G06K7/10—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
- G06K7/14—Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
- G06K7/1404—Methods for optical code recognition
- G06K7/1408—Methods for optical code recognition the method being specifically adapted for the type of code
- G06K7/1417—2D bar codes
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Toxicology (AREA)
- Artificial Intelligence (AREA)
- Computer Vision & Pattern Recognition (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a data communication method, a data communication device and mobile equipment. Wherein the method comprises the following steps: the method comprises the steps that a second mobile device which communicates with a first mobile device integrated with various card functions through an application program logs in the application program according to account information input by a user; scanning a two-dimensional code for identifying the first mobile device and pairing with the first mobile device; and in the case that the pairing with the first mobile equipment is successful but the authorization instruction input by the user is not received within the specified time, the first mobile equipment is unbound. Thereby, ease of use and security of the first mobile device may be improved.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for data communication, and a mobile device.
Background
In recent years, with the increasing frequency of people's business activities and consumption behaviors, the number of various cards carried by people when going out is also increasing. These cards may be, for example, bank cards, merchant issued membership cards, shopping cards, business cards, access cards, and the like.
In order to conveniently carry and manage the cards, the information of the cards can be input into the mobile equipment in advance to form the electronic card. In this way, a user can only carry the mobile device integrated with multiple card functions when going out (for convenience of description, the mobile device integrated with multiple card functions is simply referred to as a first mobile device), and does not need to carry multiple physical cards with him.
It should be noted that the above background description is only for the sake of clarity and complete description of the technical solutions of the present invention and for the understanding of those skilled in the art. Such solutions are not considered to be known to the person skilled in the art merely because they have been set forth in the background section of the invention.
Disclosure of Invention
The inventors have found that security requirements for such mobile devices are very high, since the card information stored in the first mobile device relates to the personal privacy of the user. However, in the current technical solution, the functions of the electronic card are often directly integrated into mobile devices such as smart phones, and the requirement of security cannot be met.
In addition, a first mobile device specially used for card management appears at present, and a mobile device such as a smart phone and the like can establish data connection with the first mobile device through short-distance wireless communication technologies such as bluetooth, wifi (wireless fidelity) and the like, and manage the first mobile device.
However, in the prior art, the process of establishing the data connection through the short-distance wireless communication technology such as bluetooth and WIFI is too complicated for the user to operate, and the requirement on security is low, so that the method is not suitable for the first mobile device with high security and confidentiality requirements. For example, in the prior art, a user is required to perform a series of operations during bluetooth pairing, which reduces the usability of the device; and under the condition that the Bluetooth pairing is successful, the mobile phone and the first mobile equipment complete the connection, and the security and confidentiality are low.
Embodiments of the present invention provide a method, an apparatus, and a mobile device for data communication, in which a two-dimensional code is used for pairing and a timing determination condition is set in a process of establishing a data connection between a first mobile device and a second mobile device, and in a case that the determination condition is not satisfied, even if the two-dimensional code is successfully paired, the first mobile device and the second mobile device need to be unbound, so that the usability of the device can be improved and the security in the process of establishing the data connection between the first mobile device and the second mobile device can be improved.
According to an aspect of the embodiments of the present invention, there is provided a data communication method applied to a second mobile device which communicates with a first mobile device integrating a plurality of card functions through an application program, wherein the method includes:
logging in the application program according to account information input by a user;
scanning a two-dimensional code for identifying the first mobile device and pairing with the first mobile device;
and in the case that the pairing with the first mobile equipment is successful but the authorization instruction input by the user is not received within the specified time, the first mobile equipment is unbound.
According to a second aspect of embodiments of the present invention, there is provided a method as described in the first aspect, the method further comprising:
and if the pairing with the first mobile device is successful and the authorization instruction is received within a specified time, sending the account information input by a user to the first mobile device.
According to a third aspect of embodiments of the present invention, there is provided a method as described in the second aspect, the method further comprising:
and when the message which is sent by the first mobile equipment and successfully logs in the network server is not received within the specified time, the first mobile equipment and the first mobile equipment are unbound.
According to a fourth aspect of embodiments of the present invention, there is provided a method as described in the second aspect, the method further comprising:
and under the condition that a message of successful login of the network server, which is sent by the first mobile equipment, is received within a specified time, a response message is sent to the first mobile equipment.
According to a fifth aspect of the embodiments of the present invention, there is provided an apparatus for data communication, the apparatus being configured to a second mobile device that communicates with a first mobile device integrated with a plurality of card functions through an application, wherein the apparatus includes:
an application program control unit that registers the application program based on account information input by a user;
a pairing establishing unit that scans a two-dimensional code for identifying the first mobile device and pairs the two-dimensional code with the first mobile device;
an information receiving unit that receives an authorization instruction input by a user;
and a binding release unit configured to release the binding with the first mobile device when the pairing with the first mobile device is successful but the authorization instruction is not received within a predetermined time.
According to a sixth aspect of embodiments of the present invention, there is provided a mobile device comprising the apparatus for data communication according to the fifth aspect.
According to a seventh aspect of the embodiments of the present invention, there is provided a data communication method applied to a first mobile device integrating a plurality of card functions, wherein the method includes:
pairing with a second mobile device using a two-dimensional code identifying the first mobile device;
and when the pairing with the second mobile equipment is successful but the account information sent by the second mobile equipment is not received within a specified time, the second mobile equipment is unbound.
According to an eighth aspect of embodiments of the present invention, there is provided a method as described in the seventh aspect, the method further comprising:
and logging in a network server according to the account information under the condition that the pairing with the second mobile equipment is successful and the account information sent by the second mobile equipment is received within a specified time.
According to a ninth aspect of embodiments of the present invention, there is provided the method as defined in the eighth aspect, further comprising:
and when the login of the network server fails, the network server is repeatedly logged in for a specified number of times, and when the login result is still failed, the second mobile device is unbound.
According to a tenth aspect of embodiments of the present invention, there is provided a method as described in the eighth aspect, the method further comprising:
under the condition that the login result is successful, sending a message of successful login to the second mobile equipment;
and when the receipt message sent by the second mobile equipment is not received within the specified time, the second mobile equipment is unbound.
According to an eleventh aspect of embodiments of the present invention, there is provided the method according to the seventh or tenth aspect, further comprising:
and displaying a two-dimensional code for identifying the first mobile device under the condition of unbinding with the second mobile device.
According to a twelfth aspect of the embodiments of the present invention, there is provided an apparatus for data communication, the apparatus being configured to a first mobile device integrated with a plurality of card functions, wherein the apparatus includes:
a pairing section that pairs with a second mobile device using a two-dimensional code for identifying the first mobile device;
and a unbinding unit configured to unbind the second mobile device when pairing with the second mobile device is successful and the second mobile device transmission account information is not received within a predetermined time.
According to a thirteenth aspect of embodiments of the present invention, there is provided a mobile device comprising the apparatus for data communication according to the twelfth aspect.
According to a fourteenth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of data communication as set forth in any one of the first to fourth aspects, the seventh to eleventh aspects.
The invention has the beneficial effects that: by pairing the first mobile device with the second mobile device by using the two-dimensional code and setting a timing judgment condition in the process of establishing data connection between the first mobile device and the second mobile device, even if the two-dimensional code is successfully paired, the first mobile device and the second mobile device need to be unbound under the condition that the judgment condition is not met, so that the usability of the device can be improved, and meanwhile, the safety in the process of establishing data connection between the first mobile device and the second mobile device can be improved.
Specific embodiments of the present invention are disclosed in detail with reference to the following description and drawings, indicating the manner in which the principles of the invention may be employed. It should be understood that the embodiments of the invention are not so limited in scope. The embodiments of the invention include many variations, modifications and equivalents within the spirit and scope of the appended claims.
Features that are described and/or illustrated with respect to one embodiment may be used in the same way or in a similar way in one or more other embodiments, in combination with or instead of the features of the other embodiments.
It should be emphasized that the term "comprises/comprising" when used herein, is taken to specify the presence of stated features, integers, steps or components but does not preclude the presence or addition of one or more other features, integers, steps or components.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a flowchart of a data communication method according to embodiment 1 of the present invention;
fig. 2 is another flow chart illustrating a method of data communication according to embodiment 1 of the present invention;
fig. 3 is another flow chart illustrating a method of data communication according to embodiment 1 of the present invention;
fig. 4 is another flow chart illustrating a method of data communication according to embodiment 1 of the present invention;
fig. 5 is a schematic diagram of a data communication apparatus according to embodiment 2 of the present invention;
fig. 6 is a schematic diagram of a mobile device for data communication according to embodiment 3 of the present invention;
fig. 7 is a flowchart of a data communication method according to embodiment 4 of the present invention;
fig. 8 is another flow chart of the method of data communication according to embodiment 4 of the present invention;
fig. 9 is a schematic diagram of a data communication apparatus according to embodiment 5 of the present invention.
Detailed Description
The foregoing and other features of the invention will become apparent from the following description taken in conjunction with the accompanying drawings. In the description and drawings, particular embodiments of the invention have been disclosed in detail as being indicative of some of the embodiments in which the principles of the invention may be employed, it being understood that the invention is not limited to the embodiments described, but, on the contrary, is intended to cover all modifications, variations, and equivalents falling within the scope of the appended claims.
In the embodiments of the present invention, the terms "first", "second", and the like are used for distinguishing different elements by name, but do not denote a spatial arrangement, a temporal order, or the like of the elements, and the elements should not be limited by the terms. The term "and/or" includes any and all combinations of one or more of the associated listed terms. The terms "comprising," "including," "having," and the like, refer to the presence of stated features, elements, components, and do not preclude the presence or addition of one or more other features, elements, components, and elements.
In embodiments of the invention, the singular forms "a", "an", and the like include the plural forms and are to be construed broadly as "a" or "an" and not limited to the meaning of "a" or "an"; furthermore, the term "comprising" should be understood to include both the singular and the plural, unless the context clearly dictates otherwise. Further, the term "according to" should be understood as "at least partially according to … …," and the term "based on" should be understood as "based at least partially on … …," unless the context clearly dictates otherwise.
In the embodiment of the present invention, the Term "communication network" or "wireless communication network" may refer to a network conforming to any communication standard, such as Long Term Evolution (LTE), enhanced Long Term Evolution (LTE-a), Wideband Code Division Multiple Access (WCDMA), High-Speed Packet Access (HSPA), and the like.
Moreover, the communication between the devices in the communication system may be performed according to any phase of communication protocol, which may include, but is not limited to, the following communication protocols: 1G (generation), 2G, 2.5G, 2.75G, 3G, 4G, 4.5G, and future 5G, New Radio (NR), etc., and/or other communication protocols now known or to be developed in the future.
In the embodiments of the present invention, the term "mobile device" or "terminal device" refers to, for example, a device that accesses a communication network through a network device and receives a network service. And may also be referred to as a Mobile Station (MS), a Terminal, a Subscriber Station (SS), an Access Terminal (AT), a Station, etc.
Example 1
Embodiment 1 of the present invention provides a data communication method, which is applied to a second mobile device that communicates with a first mobile device integrated with multiple card functions through an application program.
Fig. 1 is a flow chart of the data communication method according to the embodiment, and is illustrated from the perspective of a second mobile device. As shown in fig. 1, the method includes:
step 101: logging in the application program according to account information input by a user;
step 102: scanning a two-dimensional code for identifying the first mobile device and pairing with the first mobile device;
step 103: and in the case that the pairing with the first mobile equipment is successful but the authorization instruction input by the user is not received within the specified time, the first mobile equipment is unbound.
According to the embodiment, the two-dimension code is used for pairing in the process of establishing the data connection between the first mobile device and the second mobile device, and the timing judgment condition is set, so that the first mobile device and the second mobile device need to be unbound even if the two-dimension code is successfully paired when the judgment condition is not met, the usability of the device can be improved, and meanwhile, the safety in the process of establishing the data connection between the first mobile device and the second mobile device can be improved.
In one embodiment, the first mobile device may integrate a variety of card functions, such as a bank card, a merchant issued membership card, a shopping card, a business card, an access card, an identity card, and the like. The first mobile device may be a mobile terminal dedicated to the integrated card function, which may be named orange, for example, but the present invention is not limited thereto.
In one embodiment, the second mobile device may include, but is not limited to, the following devices: smart phones, Cellular phones, Personal Digital Assistants (PDAs), wireless modems, wireless communication devices, handheld devices, machine type communication devices, laptop computers, cordless phones, smart watches, Digital cameras, and the like. The second mobile device may run a mobile operating system, such as the Android (Android) system or the IOS system, but the invention is not limited thereto.
The second mobile device may be connected to the first mobile device through an application program (APP for short) to manage the first mobile device. For example, an APP may be installed on the first mobile device, and the APP and the second mobile device may perform data communication through a mobile communication technology such as bluetooth, but the embodiment is not limited thereto, and may also be another type of mobile communication technology.
In one embodiment, the second mobile device may be paired with the first mobile device by scanning the two-dimensional code displayed by the first mobile device, thereby improving convenience in establishing pairing operation. However, the present embodiment is not limited to this, and pairing may be performed in another manner.
In one embodiment, after scanning the two-dimensional code displayed by the first mobile device, the second mobile device starts to time, and if an authorization instruction input by a user is not received within a specified time, the second mobile device is unbound with the first mobile device. For example, after a user scans a two-dimensional code displayed by an orange for pairing by using a smart phone, and then processes other transactions without inputting an authorization instruction through the smart phone within a specified time, the smart phone and the orange are unbound, so that the usability is improved and the safety is improved.
Fig. 2 is another schematic flow chart of the data communication method of the present embodiment, which is illustrated from the perspective of the second mobile device. Steps 201, 202, 205 in fig. 2 are the same as steps 101, 102, 103 in fig. 1. As shown in fig. 2, in this embodiment, the method may further include:
According to the present embodiment, when an authorization instruction input by a user is received within a predetermined time, account information input by the user is transmitted to the first mobile device, and thereby the second mobile device is caused to log in the network server based on the account information. In addition, the first mobile device can further improve the security of the first mobile device by allowing the user to confirm the account information again before transmitting the account information to the second mobile device.
In one embodiment, the second mobile device may communicate with the network server through WIFI, but the invention is not limited thereto and other types of communication may be used.
In one embodiment, the network server may store user data related to the account information in accordance with the account information, and in the event that the first mobile device successfully logs into the network server, the first mobile device may receive user data corresponding to the login account from the network server.
In this embodiment, as shown in fig. 2, the method may further include:
According to the embodiment, when the message that the login of the network server is successful is not received within the specified time, the second mobile device and the first mobile device are unbound, so that when the communication between the first mobile device and the network server is failed, or the account information is in a problem, and the like, the pairing relationship between the first mobile device and the second mobile device can be timely released, and the security in the process of establishing the data connection between the first mobile device and the second mobile device is improved.
In this embodiment, as shown in fig. 2, the method may further include:
if the message sent by the first mobile device that the login to the network server was successful is received within the specified time ("yes" in step 206), a response piece message is sent to the first mobile device (step 207).
According to the embodiment, under the condition that the message which is sent by the first mobile equipment and successfully logs in the network server is received within the specified time, the second mobile equipment immediately sends the receipt message to the first mobile equipment, so that the first mobile equipment further confirms that the first mobile equipment and the second mobile equipment and the network server establish communication connection simultaneously, and the safety of the first mobile equipment is improved.
Fig. 3 is another schematic flow chart of the data communication method of the present embodiment, which is illustrated from the perspective of the second mobile device and the network server.
In this embodiment, as shown in fig. 3, the second mobile device (e.g., a smartphone) may also log in to the network server according to account information (e.g., a user name and a password) input by the user, and establish a communication connection with the network server. And the network server returns the login result to the second mobile equipment. In case of login failure, the user may be directly prompted for the reason of the connection failure, e.g., account information mismatch, network connection failure, etc. The second mobile device can execute corresponding processing according to the result returned by the network server. After the second mobile device establishes a communication connection with the network server, the second mobile device may send, to the network server, auxiliary information for the first mobile device to establish the communication connection with the network server, for example, serial number information of the first mobile device, information that pairing between the first mobile device and the second mobile device is successfully established, and the like.
A specific example of the above-described method for data communication will be described below with reference to fig. 4, which is exemplarily illustrated from the perspective of a first mobile device (referred to as orange in the figure) and a second mobile device (referred to as a mobile phone in the figure). As shown in fig. 4:
logging in a mobile phone APP at a mobile phone end according to a user name and a password input by a user, and storing the user name and the password input by the user after successful logging in; displaying an orange management page; after a user clicks a scanning button in an orange management page, the mobile phone executes a scanning function and scans a two-dimensional code displayed by the orange, so that the mobile phone and the orange are subjected to Bluetooth pairing; the mobile phone displays a page of 'please confirm authorization', and starts to time the Timer 2; if the user does not click the 'authorization' button displayed on the mobile phone within the specified time, the mobile phone and the orange are subjected to Bluetooth unbinding, and an orange management page is returned; if the user clicks an authorization button displayed on the mobile phone within the specified time, the mobile phone cancels the Timer2 for timing, and sends a user name and a password to the orange through Bluetooth, so that the orange logs in the server according to the user name and the password; in the process of logging in the server by the orange, the mobile phone displays a waiting page, starts to perform Loading Timer timing, and simultaneously detects whether the Bluetooth receives information of successful login sent by the orange; if the message of 'login success' sent by the orange is not received within the specified time, performing Bluetooth unbinding with the orange and returning to the orange management page; or, within a specified time, the orange does not successfully log in the server, for example, the orange is disconnected from the server in a WIFI manner, or the orange still fails to log in after retrying three times after failing to log in for the first time, the mobile phone receives a bluetooth unbinding instruction initiated by the orange, performs bluetooth unbinding, and returns to the orange management page; if the message of 'successful login' sent by the orange is received within the specified time, the Loading Timer is cancelled, and the receipt message is sent to the orange immediately through the Bluetooth; sending a message that the mobile phone and the orange are successfully bound to the server; begin bluetooth data synchronization with the orange.
At the orange end, after the orange is started, displaying a two-dimensional code for identifying the orange; after the mobile phone scans the two-dimensional code displayed by the orange, the orange and the mobile phone are subjected to Bluetooth pairing; the orange displays a page of 'please confirm authorization at the mobile phone end', and simultaneously performs Timer1 timing, and detects whether a user name and a password sent by the mobile phone are received; if the user name and the password sent by the mobile phone are not received within the specified time, the orange and the mobile phone are unbound by Bluetooth, and a two-dimensional code display page is returned; if the user name and the password sent by the mobile phone are received within the specified time, the orange cancels the Timer1 to time, logs in the server by using the received user name and the password, and simultaneously displays a page during logging in; under the condition that the orange logs in the server in a failure mode, for example, the orange can retry for three times, if the retry for three times fails, the orange and the mobile phone are unbound by the Bluetooth, and a two-dimensional code display page is returned, wherein under the condition that the orange logs in the server in a failure mode, the orange can display possible reasons of login failure, or the orange can also receive the reasons of login failure diagnosed by the network server and prompt the reasons to a user so as to provide the user with reference in the process of retrying the login; under the condition that the orange successfully logs in the server, a message that the mobile phone successfully logs in is notified through Bluetooth; the orange detects whether a receipt message sent by the mobile phone is received and performs receipt Timer timing; if the receipt message is not received within the specified time, the orange and the mobile phone are unbound by the Bluetooth, and a two-dimensional code display page is returned; if the receipt message is received within the specified time, the orange cancels the receipt Timer and performs Bluetooth data synchronization with the mobile phone.
It should be noted that fig. 1-4 above only illustrate the data communication method of the embodiment of the present invention, but the present invention is not limited thereto. For example, the execution sequence of the steps may be adjusted as appropriate, and other steps may be added or some of the steps may be reduced. Those skilled in the art can make appropriate modifications in light of the above disclosure, and are not limited to the description of FIGS. 1-4 above.
As can be seen from the above embodiments, when the two-dimensional code is used for pairing and the timing determination condition is set during the process of establishing a data connection between the first mobile device and the second mobile device, and the determination condition is not satisfied, even if the two-dimensional code is successfully paired, the first mobile device and the second mobile device need to be unbound, so that the usability of the device can be improved and the security during the process of establishing a data connection between the first mobile device and the second mobile device can be improved.
Example 2
Embodiment 2 of the present invention provides an apparatus 500 for data communication, which is configured in a second mobile device that communicates with a first mobile device integrated with multiple card functions through an application program. The same contents of embodiment 2 as embodiment 1 will not be described again.
Fig. 5 is a schematic diagram of a data communication apparatus 500 according to the present embodiment, and as shown in fig. 5, the apparatus includes:
an application control unit 501 for registering the application based on account information input by a user;
a pairing establishing unit 502 that scans a two-dimensional code for identifying the first mobile device and pairs the first mobile device;
an information receiving unit 503 that receives an authorization instruction input by a user;
and a binding release unit 504 configured to release the binding with the first mobile device when the pairing with the first mobile device is successful and the authorization instruction is not received within a predetermined time.
In this embodiment, the apparatus 500 for data communication may further include an information transmitting unit 505 configured to transmit the account information input by the user to the first mobile device when the pairing with the first mobile device is successful and the authorization instruction is received within a predetermined time.
In this embodiment, the unbinding unit 504 is further configured to unbind the first mobile device if the message that the login to the network server was successful, which is sent by the first mobile device, is not received within a predetermined time.
In this embodiment, the information transmitter 505 is further configured to transmit a response message to the first mobile device when receiving a message that the login to the network server was successful, which is transmitted by the first mobile device, within a predetermined time.
For a detailed description of each unit in the above apparatus, reference may be made to the description of each step in the data communication method in embodiment 1, and details are not repeated here.
As can be seen from the above embodiments, when the two-dimensional code is used for pairing and the timing determination condition is set during the process of establishing a data connection between the first mobile device and the second mobile device, and the determination condition is not satisfied, even if the two-dimensional code is successfully paired, the first mobile device and the second mobile device need to be unbound, so that the usability of the device can be improved and the security during the process of establishing a data connection between the first mobile device and the second mobile device can be improved.
Example 3
Embodiment 3 of the present invention provides a mobile device, which may be, for example, the second mobile device in embodiments 1 to 2, and details of the same content in this embodiment 3 as in embodiments 1 and 2 are not repeated.
Fig. 6 is a schematic diagram of a configuration of an electronic device according to embodiment 3 of the present invention. As shown in fig. 6, the second mobile device 600 may include: a processor 601 and a memory 602; a memory 602 is coupled to the processor 601. Wherein the memory 602 can store various data; a program 6021 for data communication is also stored, and the program 6021 is executed under the control of the processor 601.
In one embodiment, the functions in the apparatus 500 for data communication described in example 2 may be integrated into the processor 601.
For example, the processor 601 may be configured to control as follows: logging in the application program according to account information input by a user; scanning a two-dimensional code for identifying the first mobile device and pairing with the first mobile device; and in the case that the pairing with the first mobile equipment is successful but the authorization instruction input by the user is not received within the specified time, the first mobile equipment is unbound.
For example, the processor 601 may also be configured to control as follows: and if the pairing with the first mobile device is successful and the authorization instruction is received within a specified time, sending the account information input by a user to the first mobile device.
For example, the processor 601 may also be configured to control as follows: and when the message which is sent by the first mobile equipment and successfully logs in the network server is not received within the specified time, the first mobile equipment and the first mobile equipment are unbound.
For example, the processor 601 may also be configured to control as follows: and under the condition that a message of successful login of the network server, which is sent by the first mobile equipment, is received within a specified time, a response message is sent to the first mobile equipment.
Further, as shown in fig. 6, the second mobile device 600 may further include: an input/output unit 603 and a display unit 604; the functions of the above components are similar to those of the prior art, and are not described in detail here. It is noted that the second mobile device 600 does not necessarily have to include all of the components shown in fig. 6; the second mobile device 600 may also comprise components not shown in fig. 6, reference being made to the prior art.
Embodiments of the present invention also provide a computer-readable program, where when the program is executed in a second mobile device (for example, a smart phone), the program causes a computer to execute the method for data communication in embodiment 1 in the second mobile device.
The embodiment of the present invention further provides a storage medium storing a computer-readable program, where the computer-readable program enables a computer to execute the method for data communication in the second mobile device according to embodiment 1.
Example 4
Embodiment 4 of the present invention provides a data communication method, which is applied to a first mobile device integrated with multiple card functions; the same contents as those of embodiments 1 to 3 will not be described again.
Fig. 7 is a schematic diagram of the data communication method of the embodiment, and is explained from the perspective of the first mobile device. As shown in fig. 7, the method includes:
step 701: pairing with a second mobile device using a two-dimensional code identifying the first mobile device;
step 702: and when the pairing with the second mobile equipment is successful but the account information sent by the second mobile equipment is not received within a specified time, the second mobile equipment is unbound.
According to the embodiment, the two-dimension code is used for pairing in the process of establishing the data connection between the first mobile device and the second mobile device, and the timing judgment condition is set, so that the first mobile device and the second mobile device need to be unbound even if the two-dimension code is successfully paired when the judgment condition is not met, the usability of the device can be improved, and meanwhile, the safety in the process of establishing the data connection between the first mobile device and the second mobile device can be improved.
Fig. 8 is another flowchart of the data communication method according to the embodiment, which is illustrated from the perspective of the first mobile device. Steps 801 and 804 in fig. 8 are the same as steps 701 and 702 in fig. 7. As shown in fig. 8, in this embodiment, the method may further include:
if the pairing with the second mobile device is successful and the account information transmitted by the second mobile device is received within a predetermined time (yes in step 802), a network server is logged in according to the account information (step 803).
In this embodiment, as shown in fig. 8, the method may further include:
if the login to the web server fails (no in step 805), the login to the web server is repeated a predetermined number of times (step 807), and if the login result is still failed (no in step 808), the second mobile device is unbound (step 804).
In this embodiment, as shown in fig. 8, the method may further include:
if the login result is successful (yes in step 805, or yes in step 808), sending a login success message to the second mobile device (step 806);
if the response receipt message transmitted from the second mobile device is not received within the predetermined time ("no" in step 809), the mobile device is unbound (step 804).
In this embodiment, the method may further include:
and when receiving the response receipt message sent by the second mobile equipment within the specified time (step 809, yes), performing data transmission with the second mobile equipment (step 810).
In this embodiment, the method may further include:
and displaying a two-dimensional code for identifying the first mobile device under the condition of unbinding with the second mobile device.
In an implementation, the second mobile device may be the second mobile device 600 described in embodiment 3, and the first mobile device and the network server may be the first mobile device and the network server according to embodiment 1.
It should be noted that fig. 7 and 8 are only schematic illustrations of embodiments of the present invention, but the present invention is not limited thereto. For example, the execution sequence of the steps may be adjusted as appropriate, and other steps may be added or some of the steps may be reduced. Those skilled in the art can make appropriate modifications in light of the above description, and are not limited to the description of fig. 7 and 8.
As can be seen from the above embodiments, when the two-dimensional code is used for pairing and the timing determination condition is set during the process of establishing a data connection between the first mobile device and the second mobile device, and the determination condition is not satisfied, even if the two-dimensional code is successfully paired, the first mobile device and the second mobile device need to be unbound, so that the usability of the device can be improved and the security during the process of establishing a data connection between the first mobile device and the second mobile device can be improved.
Example 5
Embodiment 5 of the present invention provides a data communication apparatus 900 configured in a first mobile device integrated with a plurality of card functions; the same contents as those of embodiments 1 to 4 will not be described again.
Fig. 9 is a schematic diagram of an apparatus 900 for data communication according to the present embodiment, and as shown in fig. 9, the apparatus 900 includes:
a pairing section 901 that pairs with a second mobile device using a two-dimensional code for identifying the first mobile device;
and a unbinding unit 902 configured to unbind the second mobile device when the pairing with the second mobile device is successful and the transmission of the account information by the second mobile device is not received within a predetermined time.
According to the embodiment, the two-dimension code is used for pairing in the process of establishing the data connection between the first mobile device and the second mobile device, and the timing judgment condition is set, so that the first mobile device and the second mobile device need to be unbound even if the two-dimension code is successfully paired when the judgment condition is not met, the usability of the device can be improved, and meanwhile, the safety in the process of establishing the data connection between the first mobile device and the second mobile device can be improved.
In this embodiment, the apparatus may further include:
and a registration unit 903, wherein the registration unit 903 registers the network server according to the account information when the pairing with the second mobile device is successful and the account information transmitted by the second mobile device is received within a predetermined time.
In this embodiment, the unbinding portion 902 is also used to:
when the login unit 903 fails to log in the web server, the login unit is configured to repeatedly log in the web server a predetermined number of times, and when the login result still fails, the unbinding unit 902 is configured to unbind the second mobile device.
In this embodiment, the apparatus may further include:
a transmitting unit 904, configured to transmit a message that the login is successful to the second mobile device, if the login result of the login unit 903 is successful;
the unbinding unit 902 unbinds the second mobile device when the response receipt message transmitted from the second mobile device is not received within a predetermined time.
In this embodiment, the apparatus may further include:
and a display unit 905 that displays a two-dimensional code identifying the first mobile device when the second mobile device is unbound.
For a detailed description of each unit in the above apparatus, reference may be made to the description of each step in the data communication method in embodiment 4, and details are not repeated here.
As can be seen from the above embodiments, when the two-dimensional code is used for pairing and the timing determination condition is set during the process of establishing a data connection between the first mobile device and the second mobile device, and the determination condition is not satisfied, even if the two-dimensional code is successfully paired, the first mobile device and the second mobile device need to be unbound, so that the usability of the device can be improved and the security during the process of establishing a data connection between the first mobile device and the second mobile device can be improved.
Example 6
Embodiment 6 of the present invention provides a mobile device. The mobile device may be, for example, the first mobile device in embodiment 5, and the same contents as those in embodiments 1 to 5 in this embodiment 6 are not described again.
In this embodiment, the first mobile device may refer to fig. 6, and as shown in fig. 6, the first mobile device may include: a processor 601 and a memory 602; a memory 602 is coupled to the processor 601. Wherein the memory 602 can store various data; a program 6021 for data communication is also stored, and the program 6021 is executed under the control of the processor 601.
In one embodiment, the functions in the apparatus 900 for data communication described in example 5 may be integrated into the processor 601.
For example, the processor 601 may also be configured to control as follows: pairing with a second mobile device using a two-dimensional code identifying the first mobile device; and when the pairing with the second mobile equipment is successful but the account information sent by the second mobile equipment is not received within a specified time, the second mobile equipment is unbound.
For example, the processor 601 may also be configured to control as follows: and logging in a network server according to the account information under the condition that the pairing with the second mobile equipment is successful and the account information sent by the second mobile equipment is received within a specified time.
For example, the processor 601 may also be configured to control as follows: and when the login of the network server fails, the network server is repeatedly logged in for a specified number of times, and when the login result is still failed, the second mobile device is unbound.
For example, the processor 601 may also be configured to control as follows: under the condition that the login result is successful, sending a message of successful login to the second mobile equipment; and when the receipt message sent by the second mobile equipment is not received within the specified time, the second mobile equipment is unbound.
For example, the processor 601 may also be configured to control as follows: and displaying a two-dimensional code for identifying the first mobile device under the condition of unbinding with the second mobile device.
Further, as shown in fig. 6, the first mobile device may further include: an input/output unit 603 and a display unit 604; the functions of the above components are similar to those of the prior art, and are not described in detail here. It is noted that the first mobile device does not necessarily have to include all of the components shown in fig. 6; furthermore, the first mobile device may also comprise components not shown in fig. 6, reference may be made to the prior art.
An embodiment of the present invention further provides a computer-readable program, where when the program is executed in the first device, the program causes a computer to execute the method for data communication in the second mobile device according to embodiment 4.
The embodiment of the present invention further provides a storage medium storing a computer-readable program, where the computer-readable program enables a computer to execute the method for data communication described in embodiment 4 in a first mobile device.
The means for data communication described in connection with the embodiments of the invention may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams illustrated in fig. 5 and 9 may correspond to respective software modules of a computer program flow or may correspond to respective hardware modules. These software modules may correspond to the respective steps shown in embodiments 1 and 4, respectively. These hardware modules may be implemented, for example, by solidifying these software modules using a Field Programmable Gate Array (FPGA).
A software module may reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. A storage medium may be coupled to the processor such that the processor can read information from, and write information to, the storage medium; or the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The software module may be stored in the memory of the mobile device or in a memory card that is insertable into the mobile device. For example, if the electronic device employs a MEGA-SIM card with a larger capacity or a flash memory device with a larger capacity, the software module may be stored in the MEGA-SIM card or the flash memory device with a larger capacity.
One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams depicted in the figures may be implemented as a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any suitable combination thereof designed to perform the functions described herein. One or more of the functional block diagrams and/or one or more combinations of the functional block diagrams described with respect to the figures may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP communication, or any other such configuration.
While the invention has been described with reference to specific embodiments, it will be apparent to those skilled in the art that these descriptions are illustrative and not intended to limit the scope of the invention. Various modifications and adaptations of the present invention may occur to those skilled in the art, based on the principles of the present invention, and such modifications and adaptations are within the scope of the present invention.
Claims (13)
1. A method for data communication, the method being applied to a second mobile device which communicates with a first mobile device integrating a plurality of card functions through an application program, the method comprising:
logging in the application program according to account information input by a user;
scanning a two-dimensional code for identifying the first mobile device and pairing with the first mobile device;
in the case that the pairing with the first mobile equipment is successful but an authorization instruction input by a user is not received within a specified time, unbinding the first mobile equipment;
and if the pairing with the first mobile device is successful and the authorization instruction is received within a specified time, sending the account information input by a user to the first mobile device.
2. The method of claim 1, further comprising:
and when the message which is sent by the first mobile equipment and successfully logs in the network server is not received within the specified time, the first mobile equipment and the first mobile equipment are unbound.
3. The method of claim 1, further comprising:
and under the condition that a message of successful login of the network server, which is sent by the first mobile equipment, is received within a specified time, a response message is sent to the first mobile equipment.
4. An apparatus for data communication, the apparatus being configured to communicate with a first mobile device, in which a plurality of card functions are integrated, through an application program, the apparatus comprising:
an application program control unit that registers the application program based on account information input by a user;
a pairing establishing unit that scans a two-dimensional code for identifying the first mobile device and pairs the two-dimensional code with the first mobile device;
an information receiving unit that receives an authorization instruction input by a user;
a binding release unit configured to release binding with the first mobile device when pairing with the first mobile device is successful but the authorization instruction is not received within a predetermined time;
and an information transmitting unit that transmits the account information input by the user to the first mobile device when the pairing with the first mobile device is successful and the authorization instruction is received within a predetermined time.
5. A mobile device comprising the apparatus for data communication of claim 4.
6. A method of data communication, the method being applied to a first mobile device integrating a plurality of card functions, the method comprising:
pairing with a second mobile device using a two-dimensional code identifying the first mobile device;
and when the pairing with the second mobile equipment is successful but the account information sent by the second mobile equipment is not received within a specified time, the second mobile equipment is unbound.
7. The method of claim 6, further comprising:
and logging in a network server according to the account information under the condition that the pairing with the second mobile equipment is successful and the account information sent by the second mobile equipment is received within a specified time.
8. The method of claim 7, further comprising:
and when the login of the network server fails, the network server is repeatedly logged in for a specified number of times, and when the login result is still failed, the second mobile device is unbound.
9. The method of claim 7, further comprising:
under the condition that the login result is successful, sending a message of successful login to the second mobile equipment;
and when the receipt message sent by the second mobile equipment is not received within the specified time, the second mobile equipment is unbound.
10. The method according to claim 6 or 9, characterized in that the method further comprises:
and displaying a two-dimensional code for identifying the first mobile device under the condition of unbinding with the second mobile device.
11. An apparatus for data communication, the apparatus being configured for a first mobile device that integrates a plurality of card functions, the apparatus comprising:
a pairing section that pairs with a second mobile device using a two-dimensional code for identifying the first mobile device;
and a unbinding unit configured to unbind the second mobile device when pairing with the second mobile device is successful and the second mobile device transmission account information is not received within a predetermined time.
12. A mobile device comprising the means for data communication of claim 11.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of data communication according to any one of claims 1-3, 6-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710524119.2A CN109429200B (en) | 2017-06-30 | 2017-06-30 | Data communication method and device and mobile equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710524119.2A CN109429200B (en) | 2017-06-30 | 2017-06-30 | Data communication method and device and mobile equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109429200A CN109429200A (en) | 2019-03-05 |
CN109429200B true CN109429200B (en) | 2021-09-24 |
Family
ID=65497782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710524119.2A Expired - Fee Related CN109429200B (en) | 2017-06-30 | 2017-06-30 | Data communication method and device and mobile equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109429200B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114640977A (en) * | 2020-12-16 | 2022-06-17 | 博泰车联网科技(上海)股份有限公司 | Vehicle-mounted login method, system, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890794A (en) * | 2011-07-21 | 2013-01-23 | 梁露露 | Method and system for realizing integration of multiple cards for mobile terminal |
CN103905606A (en) * | 2012-12-24 | 2014-07-02 | 联想(北京)有限公司 | Information processing method, information processing device and information processing system |
CN104378145A (en) * | 2014-11-27 | 2015-02-25 | 北京深思数盾科技有限公司 | Pairing method and system of Bluetooth device |
CN204347911U (en) * | 2014-12-30 | 2015-05-20 | 拉卡拉支付有限公司 | A kind of information interactive device |
CN106384183A (en) * | 2016-05-03 | 2017-02-08 | 深圳市微付充科技有限公司 | ID card management system |
CN106714080A (en) * | 2016-11-11 | 2017-05-24 | 深圳市万通顺达科技股份有限公司 | Method for reporting loss of Bluetooth transportation card |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104038615A (en) * | 2014-05-14 | 2014-09-10 | 京东方科技集团股份有限公司 | Authentication method and authentication device of communication device |
-
2017
- 2017-06-30 CN CN201710524119.2A patent/CN109429200B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890794A (en) * | 2011-07-21 | 2013-01-23 | 梁露露 | Method and system for realizing integration of multiple cards for mobile terminal |
CN103905606A (en) * | 2012-12-24 | 2014-07-02 | 联想(北京)有限公司 | Information processing method, information processing device and information processing system |
CN104378145A (en) * | 2014-11-27 | 2015-02-25 | 北京深思数盾科技有限公司 | Pairing method and system of Bluetooth device |
CN204347911U (en) * | 2014-12-30 | 2015-05-20 | 拉卡拉支付有限公司 | A kind of information interactive device |
CN106384183A (en) * | 2016-05-03 | 2017-02-08 | 深圳市微付充科技有限公司 | ID card management system |
CN106714080A (en) * | 2016-11-11 | 2017-05-24 | 深圳市万通顺达科技股份有限公司 | Method for reporting loss of Bluetooth transportation card |
Also Published As
Publication number | Publication date |
---|---|
CN109429200A (en) | 2019-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103795571B (en) | Binding method and device between equipment | |
US9277391B2 (en) | Pairing method between bluetooth devices and bluetooth system using the same | |
US20100211685A1 (en) | Pairing exchange | |
CN105933888B (en) | A kind of eSIM card method for burn-recording and device based on NFC | |
EP3565369A1 (en) | Esim card activation method, wireless router and user terminal | |
EP4148615A1 (en) | Near field communication (nfc) method and apparatus, and electronic device | |
CN102802156B (en) | A kind of method for authenticating and relevant device | |
CN101842775A (en) | Method of authentication for a wireless enabled memory card | |
US20170154327A1 (en) | Mobile Payment Method and Apparatus and Near Field Communication Device | |
CN103067478A (en) | Method, device and system for transmitting contact person information | |
CN102402744A (en) | Data processing method and system for mobile equipment and mobile equipment | |
US11356852B2 (en) | Backup cellular connectivity for essential services | |
CN102833074A (en) | Authentication method and related equipment | |
CN107318174A (en) | A kind of communication means, device and terminal | |
EP2770768A2 (en) | Method and system for replacing an se key of a mobile terminal | |
CN104349452A (en) | Method and system for positioning mobile phone | |
EP3090376B1 (en) | Method for accessing a service and a corresponding server | |
CN102594893A (en) | Remote compelled method and system for mobile terminal equipment and computer | |
CN102083058A (en) | Smart card, card writing system and method and self-help account opening server | |
CN105072082A (en) | Method and device for transmitting verification code | |
CN109429200B (en) | Data communication method and device and mobile equipment | |
CN112001720B (en) | mPOS machine and data processing method thereof | |
US20140038548A1 (en) | Information processing apparatus and information processing method | |
CN109428965B (en) | Method for data communication, related device and system and storage medium | |
CN109428850B (en) | Data communication method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210924 |