CN108650664B - Bluetooth connection control method, terminal and Bluetooth SIM card - Google Patents

Bluetooth connection control method, terminal and Bluetooth SIM card Download PDF

Info

Publication number
CN108650664B
CN108650664B CN201810350449.9A CN201810350449A CN108650664B CN 108650664 B CN108650664 B CN 108650664B CN 201810350449 A CN201810350449 A CN 201810350449A CN 108650664 B CN108650664 B CN 108650664B
Authority
CN
China
Prior art keywords
bluetooth
terminal
sim card
target
notification information
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.)
Active
Application number
CN201810350449.9A
Other languages
Chinese (zh)
Other versions
CN108650664A (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.)
Beijing Huada Zhibao Electronic System Co Ltd
Original Assignee
Beijing Huada Zhibao Electronic System 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 Beijing Huada Zhibao Electronic System Co Ltd filed Critical Beijing Huada Zhibao Electronic System Co Ltd
Priority to CN201810350449.9A priority Critical patent/CN108650664B/en
Publication of CN108650664A publication Critical patent/CN108650664A/en
Application granted granted Critical
Publication of CN108650664B publication Critical patent/CN108650664B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The application discloses a Bluetooth connection control method, a terminal and a Bluetooth SIM card, which are used for establishing the Bluetooth connection between the terminal and the Bluetooth SIM card in time without increasing user operation, and the Bluetooth SIM card is not required to send a broadcast data packet all the time, so that resources are saved. The method in the embodiment of the application comprises the following steps: when the terminal executes target operation of a target application, the terminal generates a target Bluetooth connection request and sends the target Bluetooth connection request to the server, so that the server sends first notification information to the Bluetooth SIM card according to the target Bluetooth connection request, long connection is established between the Bluetooth SIM card and the terminal before, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal; and then, the terminal establishes Bluetooth connection with the Bluetooth SIM card.

Description

Bluetooth connection control method, terminal and Bluetooth SIM card
Technical Field
The present application relates to the field of communications technologies, and in particular, to a bluetooth connection control method, a terminal, and a bluetooth SIM card.
Background
When a user uses functions of a terminal (such as a mobile phone, a tablet, and the like), such as bluetooth, WIFI, and NFC, for example, file sharing is performed by using the NFC or WIFI function of the terminal, bluetooth voice call is performed by using the bluetooth function, and the like, a slave device in communication connection with the terminal starts a wireless communication module to start a service supported by the wireless communication module, so as to establish communication connection with the terminal. The slave device capable of establishing communication connection with the terminal can be various, such as intelligent terminal devices such as mobile phones and personal computers, and also intelligent wearable devices such as intelligent bracelets and intelligent watches. A Subscriber Identity Module (SIM) card with bluetooth communication capability also belongs to one of the slave devices, and may also be referred to as a bluetooth SIM card.
The Bluetooth SIM card is a slave device which has both ISO7816 and Bluetooth connection modes, the Bluetooth SIM card can establish long connection with a terminal through ISO7816 (the long connection is uninterrupted connection, generally contact connection), and a user can realize functions of conversation, information receiving, internet surfing and the like through the terminal in the long connection mode, but cannot realize interaction of other instructions between the terminal and the Bluetooth SIM card. If the transmission of some data between the terminal and the bluetooth SIM card needs to be realized, the bluetooth connection between the terminal and the bluetooth SIM card needs to be established.
However, before the terminal establishes the bluetooth connection with the bluetooth SIM card, the bluetooth SIM card will send the broadcast data packet to the outside until the bluetooth connection with the terminal is established, and this process needs to continuously consume power, which results in waste of resources.
Disclosure of Invention
The embodiment of the application provides a control method and a terminal of Bluetooth connection and a Bluetooth SIM card, which are used for establishing the Bluetooth connection between the terminal and the Bluetooth SIM card in time under the condition of not increasing user operation, and the Bluetooth SIM card is not required to send a broadcast data packet outwards all the time, so that resources are saved.
The specific technical scheme comprises the following steps:
a first aspect of an embodiment of the present application provides a method for controlling bluetooth connection, where the method includes:
when a terminal executes a target operation of a target application, the terminal generates a target Bluetooth connection request, wherein the target operation comprises data interaction with a Bluetooth SIM card;
the terminal sends the target Bluetooth connection request to a server so that the server sends first notification information to a Bluetooth SIM card according to the target Bluetooth connection request, wherein the Bluetooth SIM card is an SIM card for establishing long connection with the terminal, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal;
and the terminal establishes the Bluetooth connection with the Bluetooth SIM card.
Preferably, the terminal generating the target bluetooth connection request includes:
the terminal generates a Bluetooth connection request;
and the terminal encrypts the Bluetooth connection request by using a target public key to generate a target Bluetooth connection request, wherein the target public key is a public key corresponding to a target personal account, and the target personal account is a personal account corresponding to the target application.
Preferably, after the terminal establishes the bluetooth connection with the bluetooth SIM card, the method further includes:
when the terminal closes the target application, the terminal determines that the target operation is completed or the target operation performed by the terminal exceeds a preset time length, the terminal sends second notification information to the Bluetooth SIM card, wherein the second notification information is used for indicating the Bluetooth SIM card to disconnect the Bluetooth connection;
or the like, or, alternatively,
when the terminal closes the target application or the target operation of the terminal exceeds a preset time length, the Bluetooth SIM card automatically disconnects the Bluetooth connection;
or the like, or, alternatively,
and when the terminal closes the target application, the terminal determines that the target operation is completed or the target operation performed by the terminal exceeds a preset time length, the terminal sends third notification information to the Bluetooth SIM card through the server, wherein the third notification information is used for indicating the Bluetooth SIM card to disconnect the Bluetooth connection.
The second aspect of the embodiment of the present application further provides a method for controlling bluetooth connection, where the method includes:
the method comprises the steps that a Bluetooth SIM card acquires first notification information sent by a server, the first notification information is generated by the server according to a target Bluetooth connection request acquired from a terminal, the target Bluetooth connection request is generated when the terminal executes target operation of target application, the target operation comprises data interaction with the Bluetooth SIM card, the Bluetooth SIM card is an SIM card which establishes long connection with the terminal, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal;
and the Bluetooth SIM card establishes the Bluetooth connection with the terminal.
Preferably, before the bluetooth SIM card establishes the bluetooth connection with the terminal, the method further includes:
and if the target Bluetooth connection request is a Bluetooth connection request generated by encrypting the terminal by using a target public key, the Bluetooth SIM card decrypts the first notification information by using a private key stored in the Bluetooth SIM card.
Preferably, after the bluetooth SIM card establishes the bluetooth connection with the terminal, the method further includes:
the Bluetooth SIM card acquires second notification information sent by the terminal, or the Bluetooth SIM card acquires third notification information sent by the terminal through the server;
and the Bluetooth SIM card breaks the Bluetooth connection.
A third aspect of the embodiments of the present application provides a terminal, including:
the terminal comprises a generating unit, a receiving unit and a processing unit, wherein the generating unit is used for generating a target Bluetooth connection request when the terminal executes target operation of target application, and the target operation comprises data interaction with a Bluetooth SIM card;
a first sending unit, configured to send the target bluetooth connection request to a server, so that the server sends first notification information to a bluetooth SIM card according to the target bluetooth connection request, where the bluetooth SIM card is an SIM card that establishes a long connection with the terminal, and the first notification information is used to indicate the bluetooth SIM card to establish a bluetooth connection with the terminal;
and the establishing unit is used for establishing the Bluetooth connection with the Bluetooth SIM card.
Preferably, the generating unit is specifically configured to:
generating a Bluetooth connection request;
and encrypting the Bluetooth connection request by using a target public key to generate a target Bluetooth connection request, wherein the target public key is a public key corresponding to a target personal account, and the target personal account is a personal account corresponding to the target application.
Preferably, the terminal further includes:
a second sending unit, configured to send second notification information to the bluetooth SIM card when the terminal closes the target application, the terminal determines that the target operation is completed, or the terminal performs the target operation for more than a preset duration, where the second notification information is used to instruct the bluetooth SIM card to disconnect the bluetooth connection;
or the like, or, alternatively,
and the second sending unit is used for sending third notification information to the Bluetooth SIM card through the server when the terminal closes the target application, the terminal determines that the target operation is completed or the target operation performed by the terminal exceeds a preset time length, wherein the third notification information is used for indicating the Bluetooth SIM card to disconnect the Bluetooth connection.
A fourth aspect of the embodiments of the present application provides a bluetooth SIM card, including:
the terminal comprises a first acquisition unit, a first notification unit and a second acquisition unit, wherein the first notification information is generated by the server according to a target Bluetooth connection request acquired from a terminal, the target Bluetooth connection request is generated when the terminal executes target operation of a target application, the target operation comprises data interaction with a Bluetooth SIM card, the Bluetooth SIM card is an SIM card for establishing long connection with the terminal, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal;
and the establishing unit is used for establishing the Bluetooth connection with the terminal.
Preferably, the first obtaining unit is further configured to:
if the target bluetooth connection request is a bluetooth connection request generated by the terminal encrypting by using a target public key, the first obtaining unit decrypts the first notification information by using a private key stored in the bluetooth SIM card.
Preferably, the bluetooth SIM card further includes:
a second obtaining unit, configured to obtain second notification information sent by the terminal, or obtain third notification information sent by the terminal through the server;
and the disconnection unit is used for disconnecting the Bluetooth connection.
A fifth aspect of an embodiment of the present application further provides a terminal, where the terminal includes:
the system comprises a processor, a memory, a bus and an input/output interface, wherein the processor, the memory and the input/output interface are connected through the bus; the memory is stored with a program code, and the program code is used for storing an operation instruction; the processor is configured to execute steps that the terminal needs to execute in the bluetooth connection control method according to any one of the embodiments of the present application when calling the program code in the memory.
The sixth aspect of the embodiments of the present application further provides a bluetooth SIM card, including:
the microprocessor, the memory, the bus and the input and output interface are connected through the bus; the memory is stored with a program code, and the program code is used for storing an operation instruction; the microprocessor is configured to execute, when calling the program code in the memory, the steps that the bluetooth SIM card needs to execute in the bluetooth connection control method according to any one of the embodiments of the present application.
A seventh aspect of embodiments of the present application provides a computer program product comprising instructions that, when run on a computer, cause the computer to perform the steps of the method for controlling a bluetooth connection according to any of the embodiments of the present application.
An eighth aspect of the embodiments of the present application further provides a computer-readable storage medium, it should be noted that a part of the technical solutions of the present application, which substantially contributes to the prior art, or all or part of the technical solutions, may be embodied in the form of a software product, where the computer software product is stored in a storage medium, and is used for storing computer software instructions for the above-mentioned related devices, and when the instructions are run on a computer, the instructions cause the computer to execute the steps of the control method for bluetooth connection in any one of the embodiments of the present application.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and is not limited herein.
According to the technical scheme, the embodiment of the application has the following advantages:
when the terminal executes target operation of a target application, the terminal generates a target Bluetooth connection request and sends the target Bluetooth connection request to the server, so that the server sends first notification information to the Bluetooth SIM card according to the target Bluetooth connection request, long connection is established between the Bluetooth SIM card and the terminal before, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal; and then, the terminal establishes Bluetooth connection with the Bluetooth SIM card. Under the condition of not increasing user operation, the Bluetooth connection between the terminal and the Bluetooth SIM card can be established in time, and the Bluetooth SIM card is not required to send a broadcast data packet all the time, so that resources are saved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a bluetooth connection control method according to an embodiment of the present application;
fig. 2 is a schematic diagram of another embodiment of a bluetooth connection control method according to an embodiment of the present application;
FIG. 3 is a diagram of an embodiment of a terminal according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an embodiment of a Bluetooth SIM card according to the embodiment of the present application;
fig. 5 is a schematic diagram of another embodiment of a terminal according to an embodiment of the present application;
fig. 6 is a schematic diagram of another embodiment of the bluetooth SIM card according to the embodiment of the present application.
Detailed Description
The embodiment of the application provides a control method and a terminal of Bluetooth connection and a Bluetooth SIM card, which are used for establishing the Bluetooth connection between the terminal and the Bluetooth SIM card in time under the condition of not increasing user operation, and the Bluetooth SIM card is not required to send a broadcast data packet outwards all the time, so that resources are saved.
For understanding, the following describes a specific flow in the embodiment of the present application, with reference to fig. 1:
101. the terminal generates a target Bluetooth connection request;
when the terminal executes the target operation of the target application installed on the terminal, the terminal generates a target bluetooth connection request through the target application, and the target operation may include data transmission of data interaction with the bluetooth SIM card and other processes. For example, when an application of a chinese construction bank, such as "establish bank APP", is installed in the mobile phone, if the mobile phone needs to perform a signature operation on the transfer information during the transfer process with the establish bank APP, the mobile phone will generate a target bluetooth connection request through the establish bank APP at this time.
It should be noted that the terminal may be an intelligent terminal device such as a mobile phone, a personal computer, a tablet computer, or an intelligent wearable device such as an intelligent watch, an intelligent bracelet, and a telephone watch, and the terminal is not limited herein.
It should be further noted that, in some embodiments of the present application, the terminal generating the target bluetooth connection request through the target application may be that the terminal generates a general bluetooth connection request first, and then the terminal reuses a target personal account (for example, when the owner of the mobile phone installs the establishment APP, there is a personal account corresponding to the establishment APP, and it is assumed that the personal account is "key _ vin", that is, the target personal account) corresponding to the target application (for example, the terminal encrypts the bluetooth connection request that is initially generated, and the encrypted bluetooth connection request is referred to as the target bluetooth connection request in the present application.
102. The terminal sends a target Bluetooth connection request to a server;
after the terminal generates a target Bluetooth connection request through a target application, the target Bluetooth connection request is further sent to a server corresponding to the terminal through the target application, after the server acquires the target Bluetooth connection request, first notification information is generated according to the target Bluetooth request and sent to a Bluetooth SIM card establishing contact connection (generally long connection) with the terminal, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal.
It should be noted that the first notification message may be only a computer instruction in a specific format that can be recognized by the terminal, the server, and the bluetooth SIM card, and after the bluetooth SIM card obtains the computer instruction, it can know what operation needs to be performed. In addition, the first notification information may also be a short message, after acquiring the target bluetooth connection request sent by the terminal, the server organizes the target bluetooth connection request into a short message, and further sends the target bluetooth connection request to the bluetooth SIM card establishing contact connection with the terminal in a short message manner through a corresponding operator, and after acquiring the short message, the bluetooth SIM card may also know what operation needs to be executed. The first notification information is not limited in the present application.
When the terminal sends a target Bluetooth connection request to the server, the target Bluetooth connection request carries identification information of the Bluetooth SIM card, the identification information corresponds to the Bluetooth SIM card, and the server can identify the corresponding Bluetooth SIM card by acquiring the identification information. Or the target bluetooth connection request carries personal account information bound with the bluetooth SIM card, the personal account information corresponds to the bluetooth SIM card, and the server can find the bluetooth SIM card bound with the personal account information by acquiring the personal account information. In particular, there is no limitation on how the server identifies the corresponding bluetooth SIM card through the target bluetooth connection request.
It should be further noted that, in some embodiments of the present application, if the target bluetooth connection request is an encrypted bluetooth connection request, the bluetooth SIM card further needs to decrypt the first notification information by using a private key stored in the bluetooth SIM card, and after decryption, the bluetooth SIM card can know and execute a specific operation indicated by the first notification information. It should be noted that, if the first notification information is notified in a short message manner, the bluetooth SIM card further needs to analyze the short message into an instruction and then decrypt the instruction.
It should be further noted that, in some embodiments of the present application, for a terminal having a set-card channel (another long connection method except ISO 7816), a user may also directly send a target bluetooth connection request to a bluetooth SIM card by using the set-card channel instead of a short message.
103. And the terminal establishes Bluetooth connection with the Bluetooth SIM card.
And after the Bluetooth SIM card acquires the target Bluetooth connection request generated by the terminal and forwarded by the server, the terminal establishes Bluetooth connection with the Bluetooth SIM card.
It should be noted that, in some embodiments of the present application, after the terminal establishes the bluetooth connection with the bluetooth SIM card, if the terminal determines that the target operation is completed (for example, the owner of the mobile phone has executed the above-mentioned transfer information through the bluetooth SIM card to complete the signature operation), the terminal sends second notification information to the bluetooth SIM card, where the second notification information is used to instruct the bluetooth SIM card to disconnect the bluetooth connection. Or, when the terminal closes the running target application (for example, the owner of the mobile phone closes the above-mentioned establishment APP), the action of closing the target application by the terminal triggers the terminal to send the second notification information to the bluetooth SIM card, where the second notification information is used to instruct the bluetooth SIM card to disconnect the bluetooth connection. Or when the target operation performed by the terminal exceeds a preset time (for example, the owner of the mobile phone does not complete the signature operation within 5 minutes of the preset time due to answering a call), the terminal may be triggered to send second notification information to the bluetooth SIM card, where the second notification information is used to instruct the bluetooth SIM card to disconnect the bluetooth connection. The details are not limited herein.
It should be noted that the second notification information may be a computer instruction recognizable by both the terminal and the bluetooth SIM card, and the computer instruction is transmitted to the bluetooth SIM card through the established bluetooth connection between the terminal and the bluetooth SIM card, so as to instruct the bluetooth SIM card to disconnect the established bluetooth connection. It should be further noted that, in some embodiments of the present application, after the terminal establishes the bluetooth connection with the bluetooth SIM card, when the terminal closes the running target application (e.g., the mobile phone owner closes the above-mentioned establishment APP), the terminal determines that the target operation is completed (e.g., the mobile phone owner has executed the above-mentioned transfer information through the bluetooth SIM card to perform the signature operation), or the terminal performs the target operation for more than a preset time period (e.g., the above-mentioned mobile phone owner has not completed the signature operation within 5 minutes due to answering a call), the terminal will also be triggered to send third notification information to the server corresponding to the terminal, and then the server sends the third notification information to the bluetooth SIM card, where the third notification information is used to instruct the bluetooth SIM card to disconnect the bluetooth connection. It should be noted that the third notification message may be a short message, and therefore needs to be participated in by the server.
It should be further noted that, in some embodiments of the present application, for a case that the terminal closes an running target application (for example, the mobile phone owner closes the above-mentioned establishment APP), or the terminal performs a target operation for more than a preset time (for example, the above-mentioned mobile phone owner has not completed a signature operation within 5 minutes of the preset time due to answering a call), or the like, an overtime waiting time may also be set on the bluetooth SIM card, and once the overtime waiting time is exceeded, the bluetooth connection with the terminal may also be automatically disconnected by the bluetooth SIM card end.
In the embodiment of the application, when the terminal executes the target operation of the target application, the terminal generates a target Bluetooth connection request and sends the target Bluetooth connection request to the server, so that the server sends first notification information to the Bluetooth SIM card according to the target Bluetooth connection request, wherein the Bluetooth SIM card establishes long connection with the terminal before, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal; and then, the terminal establishes Bluetooth connection with the Bluetooth SIM card. In the embodiment of the application, only when the terminal needs to perform data interaction with the bluetooth SIM card, the terminal sends a target bluetooth connection request to inform the bluetooth SIM card to start bluetooth connection, and the bluetooth SIM card starts bluetooth to send a broadcast data packet externally. And when data interaction with the Bluetooth SIM card through a Bluetooth channel is not needed, the Bluetooth connection can be automatically disconnected, so that resources are saved, and potential safety hazards caused by the fact that the Bluetooth connection exists all the time after being established in the prior art are eliminated.
Fig. 1 is a diagram illustrating a method for controlling bluetooth connection from a terminal side, and referring to fig. 2, another embodiment of the method for controlling bluetooth connection according to the embodiment of the present application includes:
201. the Bluetooth SIM card acquires first notification information sent by a server;
the method includes the steps that a Bluetooth SIM card acquires first notification information sent by a server, the first notification information is generated by the server according to a target Bluetooth connection request acquired from a terminal, the target Bluetooth connection request is generated when the terminal executes target operation of target application, the target operation can include data transmission and other processes of data interaction with the Bluetooth SIM card, the Bluetooth SIM card is an SIM card which establishes long connection with the terminal, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal.
It should be noted that the long connection refers to an uninterrupted connection, and is generally a contact connection, for example, the long connection is established between the terminal and the bluetooth SIM card installed in the terminal in an ISO7816 manner. When the terminal sends a target Bluetooth connection request to the server, the target Bluetooth connection request carries identification information of the Bluetooth SIM card, the identification information corresponds to the Bluetooth SIM card, and the server can identify the corresponding Bluetooth SIM card by acquiring the identification information. Or the target Bluetooth connection request carries personal account information bound with the Bluetooth SIM card, the personal account information corresponds to the Bluetooth SIM card, and the server can find the Bluetooth SIM card bound with the personal account information by acquiring the personal account information. In particular, there is no limitation on how the server identifies the corresponding bluetooth SIM card through the target bluetooth connection request.
It should be further noted that, in some embodiments of the present application, if the target bluetooth connection request is a bluetooth connection request generated by the terminal encrypting with the target public key, the bluetooth SIM card further needs to decrypt the first notification information with the private key stored in the bluetooth SIM card, and after decryption, the bluetooth SIM card can acquire and execute the specific operation indicated by the first notification information. It should be noted that, if the first notification information is notified in a short message manner, the bluetooth SIM card further needs to analyze the short message into an instruction and then decrypt the instruction.
202. And the Bluetooth SIM card establishes Bluetooth connection with the terminal.
And after the Bluetooth SIM card acquires the target Bluetooth connection request generated by the terminal and forwarded by the server, the Bluetooth SIM card establishes Bluetooth connection with the terminal.
It should be noted that, in some embodiments of the present application, if the bluetooth SIM card acquires the second notification information sent by the terminal, or the bluetooth SIM card acquires the third notification information sent by the terminal through the server corresponding to the terminal, the bluetooth SIM card will disconnect the bluetooth connection established with the terminal.
In the embodiment of the application, only when the terminal needs to perform data interaction with the Bluetooth SIM card, the server can acquire a target Bluetooth connection request sent by the terminal, then the Bluetooth SIM card can acquire first notification information from the server, the Bluetooth SIM card acquires the first notification information through the established long connection, the Bluetooth SIM card is notified to start Bluetooth connection, the Bluetooth SIM card starts a Bluetooth to send a broadcast data packet outwards after the Bluetooth is started, and when the data interaction with the Bluetooth SIM card is not needed through a Bluetooth channel, the Bluetooth connection can be automatically disconnected, so that resources are saved, and potential safety hazards formed by the fact that the Bluetooth connection is always established in the prior art are eliminated.
Fig. 1 and fig. 2 illustrate the control method of bluetooth connection in a flowchart manner from a terminal side and a bluetooth SIM card side, respectively, and the following describes related devices in the embodiments of the present application, where the related devices include a terminal and a bluetooth SIM card, specifically referring to fig. 3, an embodiment of a terminal in the embodiments of the present application includes:
a generating unit 301, configured to, when a terminal executes a target operation of a target application, generate a target bluetooth connection request by the terminal, where the target operation includes data interaction with a bluetooth SIM card;
a first sending unit 302, configured to send the target bluetooth connection request to a server, so that the server sends first notification information to a bluetooth SIM card according to the target bluetooth connection request, where the bluetooth SIM card is an SIM card that establishes a long connection with the terminal, and the first notification information is used to indicate the bluetooth SIM card to establish a bluetooth connection with the terminal;
an establishing unit 303, configured to establish the bluetooth connection with the bluetooth SIM card.
It should be noted that, in some embodiments of the present application, the generating unit 301 may be further specifically configured to:
generating a Bluetooth connection request;
and encrypting the Bluetooth connection request by using a target public key to generate a target Bluetooth connection request, wherein the target public key is a public key corresponding to a target personal account, and the target personal account is a personal account corresponding to the target application.
In some embodiments of the present application, the terminal may further include a second sending unit 304:
a second sending unit 304, configured to send second notification information to the bluetooth SIM card when the terminal closes the target application, the terminal determines that the target operation is completed, or the terminal performs the target operation for more than a preset duration, where the second notification information is used to indicate the bluetooth SIM card to disconnect the bluetooth connection;
or the like, or, alternatively,
a second sending unit 304, configured to send, by the server, third notification information to the bluetooth SIM card when the terminal closes the target application, the terminal determines that the target operation is completed, or the terminal performs the target operation for more than a preset duration, where the third notification information is used to instruct the bluetooth SIM card to disconnect the bluetooth connection.
It should be noted that, in some embodiments of the present application, for other situations, such as when the terminal closes a running target application (e.g., the mobile phone owner closes the above-mentioned building APP), or when the terminal performs a target operation for more than a preset time (e.g., the above-mentioned mobile phone owner has not completed a signature operation within 5 minutes due to answering a call), the bluetooth SIM card end may also set an timeout waiting time, and once the timeout waiting time is exceeded, the bluetooth SIM card end may also automatically disconnect the bluetooth connection with the terminal.
In the embodiment of the present application, the related device includes, in addition to the terminal, a bluetooth SIM card that establishes a long connection with the terminal, and referring to fig. 4 specifically, an embodiment of the bluetooth SIM card in the embodiment of the present application includes:
a first obtaining unit 401, configured to obtain first notification information sent by a server, where the first notification information is generated by the server according to a target bluetooth connection request obtained from a terminal, the target bluetooth connection request is generated when the terminal executes a target operation of a target application, the target operation includes data interaction with a bluetooth SIM card, the bluetooth SIM card is an SIM card that establishes a long connection with the terminal, and the first notification information is used to instruct the bluetooth SIM card to establish a bluetooth connection with the terminal;
an establishing unit 402, configured to establish the bluetooth connection with the terminal.
It should be noted that, in some embodiments of the present application, the first obtaining unit 401 may specifically be further configured to:
if the target bluetooth connection request is a bluetooth connection request generated by the terminal encrypting with the target public key, the first obtaining unit 401 decrypts the first notification information with the private key stored in the bluetooth SIM card.
In some embodiments of the present application, the bluetooth SIM card may further include:
a second obtaining unit 403, configured to obtain second notification information sent by the terminal, or obtain third notification information sent by the terminal through the server;
a disconnecting unit 404, configured to disconnect the bluetooth connection.
Fig. 3 to fig. 4 respectively describe the terminal and the bluetooth SIM card in the embodiment of the present invention from the perspective of the modular functional entity, and the terminal in the embodiment of the present invention is described in detail from the perspective of hardware processing, referring to fig. 5, an embodiment of a terminal 500 in the embodiment of the present invention includes:
an input device 501, an output device 502, a processor 503 and a memory 504 (wherein the number of the processors 503 may be one or more, and one processor 503 is taken as an example in fig. 5). In some embodiments of the present invention, the input device 501, the output device 502, the processor 503 and the memory 504 may be connected by a bus or other means, wherein the connection by the bus is exemplified in fig. 5.
The processor 503 is configured to execute the steps that need to be executed by the terminal in the embodiment corresponding to fig. 1 to fig. 2 by calling the operation instruction stored in the memory 504.
Referring to fig. 6, an embodiment of the bluetooth SIM card according to the embodiment of the present invention includes:
an input device 601, an output device 602, a microprocessor 603 and a memory 604 (wherein the memory 604 may comprise a program memory ROM, a working memory RAM, a data memory EEPROM). In some embodiments of the present invention, the input device 601, the output device 602, the microprocessor 603 and the memory 604 may be connected by a bus or other means, wherein the bus connection is taken as an example in fig. 6.
The microprocessor 603 is configured to execute the steps that need to be executed by the bluetooth SIM card in the embodiment corresponding to fig. 1 to fig. 2 by calling the operation instruction stored in the memory 604.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of fig. 1 to 2 of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (12)

1. A method for controlling Bluetooth connection, comprising:
when a terminal executes a target operation of a target application installed on the terminal, the terminal generates a target Bluetooth connection request through the target application, wherein the target operation comprises data interaction with a Bluetooth SIM card;
the terminal sends the target Bluetooth connection request to a server so that the server sends first notification information to a Bluetooth SIM card according to the target Bluetooth connection request, wherein the Bluetooth SIM card is an SIM card which establishes long connection with the terminal, when the Bluetooth SIM card receives the first notification information through the established long connection, the Bluetooth SIM card starts Bluetooth and sends a broadcast packet outwards, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal;
and the terminal establishes the Bluetooth connection with the Bluetooth SIM card.
2. The method of claim 1, wherein the terminal generating a target bluetooth connection request via the target application comprises:
the terminal generates a Bluetooth connection request through the target application;
and the terminal encrypts the Bluetooth connection request by using a target public key to generate a target Bluetooth connection request, wherein the target public key is a public key corresponding to a target personal account, and the target personal account is a personal account corresponding to the target application.
3. The method according to any of claims 1-2, wherein after the terminal establishes the bluetooth connection with the bluetooth SIM card, the method further comprises:
when the terminal closes the target application, the terminal determines that the target operation is completed or the target operation performed by the terminal exceeds a preset time length, the terminal sends second notification information to the Bluetooth SIM card, wherein the second notification information is used for indicating the Bluetooth SIM card to disconnect the Bluetooth connection;
or the like, or, alternatively,
when the terminal closes the target application or the target operation of the terminal exceeds a preset time length, the Bluetooth SIM card automatically disconnects the Bluetooth connection;
or the like, or, alternatively,
and when the terminal closes the target application, the terminal determines that the target operation is completed or the target operation performed by the terminal exceeds a preset time length, the terminal sends third notification information to the Bluetooth SIM card through the server, wherein the third notification information is used for indicating the Bluetooth SIM card to disconnect the Bluetooth connection.
4. A method for controlling Bluetooth connection, comprising:
the method comprises the steps that a Bluetooth SIM card acquires first notification information sent by a server, the first notification information is generated by the server according to a target Bluetooth connection request acquired from a terminal, the target Bluetooth connection request is generated when the terminal executes target operation of a target application installed on the terminal, the target operation comprises data interaction with the Bluetooth SIM card, the Bluetooth SIM card is an SIM card establishing long connection with the terminal, when the Bluetooth SIM card receives the first notification information through the established long connection, the Bluetooth SIM card starts Bluetooth and sends a broadcast packet to the outside, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal;
and the Bluetooth SIM card establishes the Bluetooth connection with the terminal.
5. The method of claim 4, wherein before the Bluetooth SIM card establishes the Bluetooth connection with the terminal, the method further comprises:
and if the target Bluetooth connection request is a Bluetooth connection request generated by encrypting the terminal by using a target public key, the Bluetooth SIM card decrypts the first notification information by using a private key stored in the Bluetooth SIM card.
6. The method according to any of claims 4-5, wherein after the Bluetooth SIM card establishes the Bluetooth connection with the terminal, the method further comprises:
the Bluetooth SIM card acquires second notification information sent by the terminal, or the Bluetooth SIM card acquires third notification information sent by the terminal through the server;
and the Bluetooth SIM card breaks the Bluetooth connection.
7. A terminal, comprising:
the terminal comprises a generating unit, a receiving unit and a processing unit, wherein the generating unit is used for generating a target Bluetooth connection request through a target application when the terminal executes the target operation of the target application installed on the terminal, and the target operation comprises data interaction with a Bluetooth SIM card;
the first sending unit is used for sending the target Bluetooth connection request to a server so that the server sends first notification information to a Bluetooth SIM card according to the target Bluetooth connection request, the Bluetooth SIM card is an SIM card which establishes long connection with the terminal, when the Bluetooth SIM card receives the first notification information through the established long connection, the Bluetooth SIM card starts Bluetooth and sends a broadcast packet to the outside, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal;
and the establishing unit is used for establishing the Bluetooth connection with the Bluetooth SIM card.
8. The terminal according to claim 7, wherein the generating unit is specifically configured to:
generating a Bluetooth connection request by the target application;
and encrypting the Bluetooth connection request by using a target public key to generate a target Bluetooth connection request, wherein the target public key is a public key corresponding to a target personal account, and the target personal account is a personal account corresponding to the target application.
9. The terminal according to any of claims 7-8, characterized in that the terminal further comprises:
a second sending unit, configured to send second notification information to the bluetooth SIM card when the terminal closes the target application, the terminal determines that the target operation is completed, or the terminal performs the target operation for more than a preset duration, where the second notification information is used to instruct the bluetooth SIM card to disconnect the bluetooth connection;
or the like, or, alternatively,
and the second sending unit is used for sending third notification information to the Bluetooth SIM card through the server when the terminal closes the target application, the terminal determines that the target operation is completed or the target operation performed by the terminal exceeds a preset time length, wherein the third notification information is used for indicating the Bluetooth SIM card to disconnect the Bluetooth connection.
10. A bluetooth SIM card, comprising:
the terminal comprises a first acquisition unit, a first notification unit and a second acquisition unit, wherein the first notification information is generated by the server according to a target Bluetooth connection request acquired from a terminal, the target Bluetooth connection request is generated when the terminal executes target operation of a target application installed on the terminal, the target operation comprises data interaction with a Bluetooth SIM card, the Bluetooth SIM card is an SIM card establishing long connection with the terminal, when the Bluetooth SIM card receives the first notification information through the established long connection, the Bluetooth SIM card starts Bluetooth and sends a broadcast packet to the outside, and the first notification information is used for indicating the Bluetooth SIM card to establish Bluetooth connection with the terminal;
and the establishing unit is used for establishing the Bluetooth connection with the terminal.
11. The bluetooth SIM card according to claim 10, wherein the first obtaining unit is further configured to:
if the target bluetooth connection request is a bluetooth connection request generated by the terminal encrypting by using a target public key, the first obtaining unit decrypts the first notification information by using a private key stored in the bluetooth SIM card.
12. The bluetooth SIM card according to any one of claims 10-11, further comprising:
a second obtaining unit, configured to obtain second notification information sent by the terminal, or obtain third notification information sent by the terminal through the server;
and the disconnection unit is used for disconnecting the Bluetooth connection.
CN201810350449.9A 2018-04-18 2018-04-18 Bluetooth connection control method, terminal and Bluetooth SIM card Active CN108650664B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810350449.9A CN108650664B (en) 2018-04-18 2018-04-18 Bluetooth connection control method, terminal and Bluetooth SIM card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810350449.9A CN108650664B (en) 2018-04-18 2018-04-18 Bluetooth connection control method, terminal and Bluetooth SIM card

Publications (2)

Publication Number Publication Date
CN108650664A CN108650664A (en) 2018-10-12
CN108650664B true CN108650664B (en) 2022-02-01

Family

ID=63746827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810350449.9A Active CN108650664B (en) 2018-04-18 2018-04-18 Bluetooth connection control method, terminal and Bluetooth SIM card

Country Status (1)

Country Link
CN (1) CN108650664B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113286286B (en) * 2021-05-28 2023-08-29 深圳市科奈信科技有限公司 Bluetooth privacy connection method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663477A (en) * 2012-03-09 2012-09-12 武汉天喻信息产业股份有限公司 Bluetooth-technology-based radiofrequency SIM card and application system thereof
CN103152329A (en) * 2013-02-07 2013-06-12 中金金融认证中心有限公司 Method and system for identity authentication by Bluetooth
CN104732265A (en) * 2015-03-31 2015-06-24 苏州海博智能系统有限公司 Bluetooth intelligent card chip, Bluetooth intelligent card and Bluetooth connection activation method thereof
CN105188017A (en) * 2015-08-13 2015-12-23 苏州海博智能系统有限公司 Working method and system for activating Bluetooth of smart card
CN106993266A (en) * 2017-03-31 2017-07-28 东信和平科技股份有限公司 A kind of method of bluetooth SIM card pairing connection
CN107277935A (en) * 2016-04-07 2017-10-20 国民技术股份有限公司 Bluetooth communication method, device and its application system and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101718984A (en) * 2009-11-30 2010-06-02 中兴通讯股份有限公司 Remote controller, Bluetooth hands-free equipment and Bluetooth control system and method
US10225783B2 (en) * 2016-04-01 2019-03-05 Google Llc Method and apparatus for providing peer based network switching
CN106211032A (en) * 2016-06-28 2016-12-07 公安部第三研究所 The pairing of bluetooth SIM and the method for digital signature process is realized based on STK

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102663477A (en) * 2012-03-09 2012-09-12 武汉天喻信息产业股份有限公司 Bluetooth-technology-based radiofrequency SIM card and application system thereof
CN103152329A (en) * 2013-02-07 2013-06-12 中金金融认证中心有限公司 Method and system for identity authentication by Bluetooth
CN104732265A (en) * 2015-03-31 2015-06-24 苏州海博智能系统有限公司 Bluetooth intelligent card chip, Bluetooth intelligent card and Bluetooth connection activation method thereof
CN105188017A (en) * 2015-08-13 2015-12-23 苏州海博智能系统有限公司 Working method and system for activating Bluetooth of smart card
CN107277935A (en) * 2016-04-07 2017-10-20 国民技术股份有限公司 Bluetooth communication method, device and its application system and equipment
CN106993266A (en) * 2017-03-31 2017-07-28 东信和平科技股份有限公司 A kind of method of bluetooth SIM card pairing connection

Also Published As

Publication number Publication date
CN108650664A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
EP2568731A1 (en) System and method for receiving call in wireless terminal
EP3565369B1 (en) Esim card activation method, wireless router and computer storage medium
CN107006049A (en) A kind of smart machine and its set up the method for equipment room bluetooth connection, device
KR20110034167A (en) Apparatus and method for reducing power consumption in multi mode portable terminal
US9451067B2 (en) Portable terminal auxiliary device having satellite communication function
CN108282521B (en) BIP protocol data transmission method and device, computer equipment and storage medium
CN1989779A (en) Method and system for associating subscriber identity information
KR20100098797A (en) Apparatus and method for operating dual mode of portable terminal
CN110958308B (en) Method for network distribution, Internet of things equipment and access equipment
CN106465072B (en) Call forwarding method and terminal
US11968582B2 (en) Service handover method and apparatus
CN108650664B (en) Bluetooth connection control method, terminal and Bluetooth SIM card
KR102328431B1 (en) Method, device and storage medium for processing paging collision in dual sim card mobile phone
CN101572764B (en) Method and system for sending pictures between electronic picture frames and electronic picture frame
KR101416339B1 (en) Method and apparatus for providing service using user identification in portable communication system
KR20110045154A (en) Apparatus and method for connecting the access point in portable communication system
KR101284144B1 (en) method for communication service using Subscriber Identity Module and communication terminal and communication system thereof
CN107277935B (en) Bluetooth communication method, device and application system and equipment thereof
KR101528681B1 (en) Method for Providing Security Push Messaging
CN113543276A (en) Network access method, device, storage medium and electronic equipment
CN107548016B (en) Management method, device and system of Bluetooth connection resources
CN107548017B (en) Management method and device of Bluetooth connection resources
CN110890982A (en) Method for network distribution, access equipment and Internet of things equipment
CN112423051B (en) Shared screen switching method, device, terminal and storage medium
CN113938850A (en) Data service implementation method and device

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