CN107548017B - Management method and device of Bluetooth connection resources - Google Patents

Management method and device of Bluetooth connection resources Download PDF

Info

Publication number
CN107548017B
CN107548017B CN201610471852.8A CN201610471852A CN107548017B CN 107548017 B CN107548017 B CN 107548017B CN 201610471852 A CN201610471852 A CN 201610471852A CN 107548017 B CN107548017 B CN 107548017B
Authority
CN
China
Prior art keywords
bluetooth connection
connection resource
broadcast
occupied
resource
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
CN201610471852.8A
Other languages
Chinese (zh)
Other versions
CN107548017A (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.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
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 Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201610471852.8A priority Critical patent/CN107548017B/en
Publication of CN107548017A publication Critical patent/CN107548017A/en
Application granted granted Critical
Publication of CN107548017B publication Critical patent/CN107548017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a management method and a device of Bluetooth connection resources, wherein the method comprises the following steps: informing a user of the occupied condition of the Bluetooth connection resource when the system information transfer mechanism learns that the Bluetooth connection resource is occupied; and when determining that the Bluetooth connection resource is not occupied, initiating Bluetooth connection paging. And when the system information transfer mechanism learns that the Bluetooth connection resource is occupied, before informing the user of the occupied condition of the Bluetooth connection resource, the method also comprises the step of inquiring whether the Bluetooth connection resource corresponding to the Bluetooth connection is occupied or not through the system information transfer mechanism when the Bluetooth connection is initiated. The invention realizes the negotiation of the same Bluetooth connection resource among different applications by presetting a specific information type by utilizing a system information transfer mechanism; in particular, a certain degree of sharing of Bluetooth connection resources is realized.

Description

Management method and device of Bluetooth connection resources
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a method and an apparatus for managing bluetooth connection resources.
Background
The rapid growth of the internet and wireless communications has led to a rapid increase in the demand for various data and mobile services. As a global open wireless communication standard, bluetooth technology is used to connect various languages and data devices by wireless links, so that people can exchange and transmit languages and data in personal areas at any time and any place.
The application field of the current Bluetooth technology is more and more extensive, and the Bluetooth module is added in the peripheral equipment such as earphones, keyboards, printers and the like, so that the wireless performance can be realized, and the portability of the peripheral equipment is improved; the Bluetooth module is added into household appliances such as a television, an air conditioner, a sound system and the like, so that information transmission can be realized with intelligent control equipment such as a mobile phone, a tablet personal computer and the like, and a foundation is provided for intellectualization of the household appliances; wearable equipment of intelligence such as many intelligent bracelets, intelligent wrist-watch also select for use the bluetooth to connect as self and intelligent control terminal's communication channel. Bluetooth technology is favored, in addition to the high transmission rate of bluetooth connection, pairing and authentication are required to be performed when bluetooth connection is established between bluetooth devices, so that the security of bluetooth connection is relatively high.
The Bluetooth communication belongs to a one-to-one communication mode, two devices for establishing Bluetooth connection are divided into a master device and a slave device, if the master device needs to be connected with the slave device, parameters such as pairing passwords of the slave device need to be known, the slave device is paged through Bluetooth broadcasting, paging is received by the slave device, after the pairing parameters are verified, the paging of the master device is responded, and then the Bluetooth connection is established.
Many simple bluetooth peripherals, such as bluetooth headsets, default to slave mode at the factory, and the pairing password defaults to "0000" or "1111" to facilitate quick connection by the user. Obviously, there are many safety concerns with this approach. Therefore, more and more bluetooth devices, especially those with higher requirements for data security, will adopt a more secure device pairing strategy to establish bluetooth connection. For the convenience of users, manufacturers of bluetooth devices often integrate the pairing policy into an SDK (user development kit) of the device to provide the user, and the smart control device can complete connection establishment with the bluetooth device by calling a corresponding interface function in the SDK of the bluetooth device. Along with the popularization of the application of intelligent mobile terminals such as smart phones, a plurality of Bluetooth devices customize APP (application programs) aiming at the operating system of the terminal, the SDK of the APP integrated Bluetooth device is used for establishing Bluetooth connection between the terminal where the APP is located and the Bluetooth device by calling the corresponding interface function of the SDK of the Bluetooth device. Like this, the bluetooth pairs the parameter and can set for wantonly, and encapsulates in SDK or APP, and the terminal obtains the bluetooth through installation APP and pairs the parameter, can strengthen the security that the bluetooth pairs the parameter, improves the security that the bluetooth is connected.
Generally, a terminal is connected with bluetooth devices through bluetooth, an operating system of the terminal considers that the operating system is a bluetooth connection resource, one terminal can be connected with a plurality of bluetooth devices through bluetooth respectively, but only one bluetooth connection can be established between one terminal and a specific bluetooth device. While one bluetooth connection resource is typically allocated for exclusive use by the APP initiating the bluetooth connection, in most cases this may suffice. However, for a bluetooth device such as a bluetooth credit card, there may be a plurality of APPs (e.g., APPs of multiple banks) in a terminal that need to transmit data by using a bluetooth connection between the terminal and the bluetooth device (e.g., a bluetooth credit card), that is, a coordination mechanism for negotiating with each other to manage the same bluetooth connection resource needs to be established between the APPs, otherwise, the bluetooth device (e.g., a bluetooth credit card) can only be used by one APP (the bank APP that initiates the bluetooth connection first), and other APPs (other bank APPs) may have a problem that the bluetooth device (e.g., a bluetooth credit card) cannot be found.
Disclosure of Invention
The present invention is expected to provide a method and an apparatus for managing bluetooth connection resources, which enable APPs to negotiate with each other to manage the same bluetooth connection resource.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a management method of Bluetooth connection resources, which comprises the following steps:
informing a user of the occupied condition of the Bluetooth connection resource when the system information transfer mechanism learns that the Bluetooth connection resource is occupied;
and when determining that the Bluetooth connection resource is not occupied, initiating Bluetooth connection paging.
In the above scheme, the method further comprises:
when the system information transfer mechanism learns that the Bluetooth connection resource is occupied, before notifying a user of the occupied condition of the Bluetooth connection resource, the method further comprises the following steps: when a Bluetooth connection is initiated, firstly, whether a Bluetooth connection resource corresponding to the Bluetooth connection is occupied is inquired through a system information transmission mechanism. Inquiring whether the user selects to forcibly release the Bluetooth connection resource or not when the user is informed that the Bluetooth connection resource is occupied;
when receiving the input of the user selecting to forcibly release the Bluetooth connection resource, sending a Bluetooth connection resource release notification to the Bluetooth connection resource occupant through a system information transfer mechanism;
and when receiving the input that the user selects not to forcibly release the Bluetooth connection resource, stopping establishing the Bluetooth connection.
In the above scheme, the system information delivery mechanism is a broadcast mechanism of an android system;
the inquiring whether the bluetooth connection resource corresponding to the bluetooth connection is occupied through a system information transfer mechanism includes:
sending a first preset broadcast, wherein the first preset broadcast is a pre-registered unordered broadcast and is intended to enable a receiver to respond after judging whether the receiver occupies the Bluetooth connection resource;
the sending a Bluetooth connection resource release notification to the Bluetooth connection resource occupant through a system information transfer mechanism comprises:
and sending a second preset broadcast, wherein the second preset broadcast is a pre-registered unordered broadcast and is intended to disconnect the Bluetooth connection of a receiver and release the Bluetooth connection resource.
In the above scheme, the method further comprises:
after receiving the first preset broadcast, judging whether the Bluetooth connection resource is occupied by the Bluetooth connection resource or not;
and when the Bluetooth connection resource is occupied by the receiver, sending a third preset broadcast, wherein the third preset broadcast is a pre-registered unordered broadcast and is intended to inform the receiver of the occupied condition of the Bluetooth connection resource.
In the above scheme, the method further comprises:
and after the second preset broadcast is received, disconnecting the Bluetooth connection and releasing the Bluetooth connection resource.
In the above scheme, the broadcast names of the first preset broadcast, the second preset broadcast and the third preset broadcast include the feature information of the bluetooth connection.
In the above scheme, the first preset broadcast and the second preset broadcast carry sender information.
In the above scheme, the third preset broadcast carries the sender information, the receiver information and the occupation condition of the bluetooth connection resource.
The embodiment of the invention also provides a management device of the Bluetooth connection resource, which comprises: a notification module and a connection module; wherein,
the notification module is used for notifying a user of the occupied Bluetooth connection resource when the system information transfer mechanism learns that the Bluetooth connection resource is occupied;
and the connection module is used for initiating Bluetooth connection paging when the Bluetooth connection resource is determined not to be occupied.
In the above scheme, the apparatus further comprises:
the inquiry module is used for inquiring whether a Bluetooth connection resource corresponding to the Bluetooth connection is occupied or not through a system information transmission mechanism when the Bluetooth connection is initiated;
the release inquiry module is used for inquiring whether the user selects to release the Bluetooth connection resource forcibly when informing the user that the Bluetooth connection resource is occupied;
the release notification module is used for sending a Bluetooth connection resource release notification to the Bluetooth connection resource occupant through a system information transfer mechanism when receiving input of user selection for forcibly releasing the Bluetooth connection resources;
and the connection stopping module is used for stopping establishing the Bluetooth connection when receiving the input that the user selects not to forcibly release the Bluetooth connection resource.
The invention realizes the negotiation of the same Bluetooth connection resource among different applications by presetting a specific information type by utilizing a system information transfer mechanism; especially, by utilizing a broadcasting mechanism of an android system and presetting a specific type of broadcast, the APP can know the service condition of the target Bluetooth connection resource, and then negotiate to use the same Bluetooth connection resource, so that the Bluetooth connection resource can be shared to a certain extent.
Drawings
Fig. 1 is a schematic flow chart illustrating an implementation of a management method for bluetooth connection resources according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a management apparatus for bluetooth connection resources according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a bluetooth connection resource conflict in embodiment 1 of the present invention;
fig. 4-fig. 5 are schematic diagrams illustrating a process of negotiating bluetooth connection resources between two APPs in embodiment 1 of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments and technical solutions of the present invention, the technical solutions of the present invention will be described in more detail with reference to the accompanying drawings and embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without inventive step, are within the scope of the present invention.
In the embodiment of the present invention, an operating system of the intelligent terminal is an Android (Android) system, and for convenience of description, the following "system" refers to the Android system unless otherwise specified. Because the sandbox mechanism of system, unable direct exchange information between the APP in the system, first APP promptly can't direct access second APP's data, and first APP also can't direct push data give second APP simultaneously. However, there is a broadcast mechanism in the Android system. Specifically, Android broadcasting is divided into two aspects: the broadcast sender and the broadcast receiver, generally referred to as broadcastireiver, are broadcast receivers (broadcast receivers). The broadcast is used as a communication mode among Android components, and the available scenes are as follows:
1. message communication within the same component (between single or multiple threads) within the same APP;
2. message communication between different components within the same APP (single process);
3. the same APP has message communication between different components of multiple processes;
4. inter-component messaging between different APPs;
messaging between the Android system and the App under certain circumstances.
From the implementation principle, broadcasting in Android uses an observer mode, based on a publish/subscribe event model of messages. Therefore, from the implementation point of view, the broadcasting in the Android system decouples the sender and the receiver of the broadcasting to a great extent, so that the system can be conveniently integrated and is easier to expand. The specific implementation flow points are roughly summarized as follows:
1. the broadcastreever registers with the AMS (Activity Manager service) through a Binder mechanism;
2. a broadcast sender sends a broadcast to the AMS through a binder mechanism;
AMS searches for BroadcastReceiver meeting corresponding conditions (IntentFilter/Permission, etc.), and sends the broadcast to a message circular queue corresponding to the BroadcastReceiver (Activity in general);
4. the message loops back to the onReceive () method in BroadcastReceiver, taking this broadcast.
The specific implementation may be different for different broadcast types and different broadcastereiver registration modes. But the overall flow is roughly as above.
From this point of view, the broadcast sender and the broadcast receiver belong to both ends of the message publish and subscribe in the watcher mode, respectively, and the AMS belongs to the processing center in the middle. The broadcast sender and the broadcast receiver are executed asynchronously, the broadcast sent out does not care whether the receiver receives the broadcast or not, and does not determine when the receiver can receive the broadcast at all, the coupling mechanism is very loose, and the method is particularly suitable for the message communication requirement related to different processes.
With respect to the broadcast mechanism, often called sending and receiving "broadcast", apparently the broadcast is seen as an entity in the Android broadcast mechanism, and in fact this entity itself does not exist as a so-called "broadcast" object, but is represented as "Intent". The definition process of defining the broadcast is actually the definition process of the corresponding broadcast 'intention', and then the 'intention' is sent out by the broadcast sender. The onReceive () function will be called back upon receipt by the corresponding BroadcastReceiver.
The custom broadcast receiver needs to inherit the base broadcastreceivevre and implement an abstract method onReceive. The broadcast receiver automatically returns to the onReceive method after receiving the corresponding broadcast. Generally, according to actual service requirements, the onReceive () method involves interaction with other components, such as Notification transmission, service initiation, and the like.
Broadcastreever can be generally classified into two registration types: static registration and dynamic registration. Static registration refers to directly registering in an android manifest. And when dynamically registering, the < receiver/> component does not need to be registered in the android Manifest. Broadcastereiver may be dynamically registered in a program directly in code by calling the registereceiver function of Context.
In one embodiment of the invention, in order to allow the APPs to negotiate with each other for managing the same bluetooth connection resource, it is the broadcast mechanism of the system that is used for information exchange.
Fig. 1 is a schematic flow chart illustrating an implementation of a management method for bluetooth connection resources according to an embodiment of the present invention, as shown in fig. 1, the method includes:
step 101, when initiating a bluetooth connection, firstly inquiring whether a bluetooth connection resource corresponding to the bluetooth connection is occupied through a system information transfer mechanism;
specifically, since the system information delivery mechanism provided by the android system in this embodiment is a broadcast mechanism, in this embodiment, when initiating a bluetooth connection to a target bluetooth device, the APP1 queries whether another APP occupies a bluetooth connection resource corresponding to the bluetooth device by sending a specific broadcast pre-registered in the android system;
here, the specific broadcast is a first preset broadcast, which is a preregistered unordered broadcast, and is intended to enable the APP receiving the broadcast to determine whether to occupy the bluetooth connection resource, and if there is an APP, for example, APP2 occupies the target bluetooth connection resource, APP2 will also respond through a broadcast mechanism; specifically, the APP2 sends a third preset broadcast, where the third preset broadcast is a pre-registered out-of-order broadcast intended to notify a receiver that the bluetooth connection resource is occupied; further, the first preset broadcast carries information of a sender, namely APP1, including an ID and a name of APP 1; the third preset broadcast not only carries the information (ID and name) of the sender APP2, but also carries the information (ID and name) of the receiver APP1 and the situation that APP2 occupies the bluetooth connection resource.
102, when the system information transmission mechanism learns that the Bluetooth connection resource is occupied, informing a user of the occupied condition of the Bluetooth connection resource;
when the APP1 learns that the bluetooth connection resource is occupied through the system information delivery mechanism, that is, when the APP1 receives the third preset broadcast sent by the APP2, the APP1 notifies the user of the occupied situation of the bluetooth connection resource by analyzing the third preset broadcast, for example, popping up an information display bar to the user, and displaying that the APP2 is connected with the bluetooth device, if the user needs to continue to use the related service, the information such as the bluetooth connection of the APP2 needs to be disconnected first; at this time, the user can turn off the APP2 by himself, thereby manually releasing the bluetooth connection resource;
further, when notifying the user that the bluetooth connection resource is occupied, the APP1 may also ask the user whether to select to forcibly release the bluetooth connection resource; for example, a selection dialog box pops up to the user, and the user is allowed to select whether to disconnect the Bluetooth connection of the APP2 or not;
when the APP1 receives an input that a user selects to forcibly release the Bluetooth connection resource, the APP1 sends a Bluetooth connection resource release notification to the Bluetooth connection resource occupant through a system information transfer mechanism; specifically, the APP1 sends a second preset broadcast; the second preset broadcast is a pre-registered unordered broadcast and is intended to enable a receiver to disconnect the Bluetooth connection and release the Bluetooth connection resource; further, the second preset broadcast carries information of a sender, namely APP1, including an ID and a name of APP 1; after the APP2 receives the second preset broadcast, the APP2 disconnects the Bluetooth connection and releases the Bluetooth connection resource.
And when the APP1 receives the input that the user selects not to forcibly release the Bluetooth connection resource, the APP1 stops establishing the Bluetooth connection.
103, when determining that the Bluetooth connection resource is not occupied, initiating Bluetooth connection paging;
as can be seen from the above process, the bluetooth connection resource negotiated by APP1 and APP2 is for one target bluetooth device, and in different application scenarios, the identities of APP1 and APP2 may be interchanged completely, that is, APP1 preemptively occupies the target bluetooth connection resource, while APP2 is an application that later needs the target bluetooth connection resource. That is, the above scheme is not particularly directed to a certain type of APP, but is directed to a certain type of bluetooth device, and such bluetooth device needs to be used after different APPs establish bluetooth connection with it through the bluetooth module of the intelligent terminal. Therefore, in order to provide security and reliability of the bluetooth connection without causing device confusion, the first preset broadcast, the second preset broadcast, and the third preset broadcast are registered such that feature information of the target bluetooth device, i.e., feature information of the target bluetooth connection, is included in their broadcast names. Here, the feature information may be a manufacturer name, a device number, and the like of the bluetooth device. For example, the name of the first preset broadcast is: the feature information _ ASK, the name of the second preset broadcast is: the names of the feature information _ DISCONNECT and the third preset broadcast are: characteristic information _ ANSWER.
As a preferred embodiment, with reference to fig. 1, a method for managing bluetooth connection resources provided in an embodiment of the present invention may include the following steps:
when knowing that the Bluetooth connection resource is occupied through a system information transfer mechanism, informing a user: the bluetooth connection resource is occupied;
and if the Bluetooth connection resource is not occupied, initiating Bluetooth connection paging.
When the system information transfer mechanism learns that the Bluetooth connection resource is occupied, before notifying a user of the occupied condition of the Bluetooth connection resource, the method further comprises the following steps: when a Bluetooth connection is initiated, firstly, whether a Bluetooth connection resource corresponding to the Bluetooth connection is occupied is inquired through a system information transmission mechanism.
Fig. 2 is a schematic structural diagram of a management apparatus for bluetooth connection resources according to an embodiment of the present invention, and as shown in fig. 2, the management apparatus includes: a notification module 202 and a connection module 203; the notification module 202 is configured to notify a user that the bluetooth connection resource is occupied when the system information delivery mechanism learns that the bluetooth connection resource is occupied;
the connection module 203 is configured to initiate bluetooth connection paging when it is determined that the bluetooth connection resource is not occupied.
Wherein, still include: the inquiry module 201 is configured to, when initiating a bluetooth connection, first inquire whether a bluetooth connection resource corresponding to the bluetooth connection is occupied through a system information transfer mechanism.
Further, the management device further includes:
the release inquiry module is used for inquiring whether the user selects to release the Bluetooth connection resource forcibly when informing the user that the Bluetooth connection resource is occupied;
the release notification module is used for sending a Bluetooth connection resource release notification to the Bluetooth connection resource occupant through a system information transfer mechanism when receiving input of user selection for forcibly releasing the Bluetooth connection resources;
and the connection stopping module is used for stopping establishing the Bluetooth connection when receiving the input that the user selects not to forcibly release the Bluetooth connection resource.
In practical applications, each of the modules may be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), or a Field Programmable Gate Array (FPGA) located in an intelligent terminal.
The modules of the management apparatus for bluetooth connection resources of this embodiment correspondingly execute the steps described in the above embodiments of the management method for bluetooth connection resources, and therefore, the same advantageous effects are obtained. In addition, it should be understood that the above-described embodiment of the management apparatus is merely illustrative, and the described division of the modules is only one logical function division, and other division manners may be provided in actual implementation. In addition, the modules may be coupled or communicatively connected to each other through some interfaces, and may also be in an electrical or other form.
The functional modules may or may not be physical blocks as components of the management device, and may be located in one place or distributed on multiple network units, and may be implemented in the form of hardware or software functional blocks. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the invention.
The bluetooth device may be a bluetooth smart Card, where the smart Card may be a SIM (Subscriber Identity Module) Card or an SD (Secure Digital Memory Card) Card, and the portable device may be a smart band, a smart watch, or the like. The SIM card may be a standard SIM card, a USIM (Universal Subscriber Identity Module) card, a UIM (User Identity Module) card, a MicroSIM card, a NanoSIM card, and other communication cards with various shapes and sizes. The SD card may be a secure data card of various forms and sizes such as a standard SD card, a miniSD card, and the like.
Example 1
As shown in fig. 3, two applications APP1 and APP2 running on the same Android device both have a requirement of connecting the same peripheral device through Bluetooth Low Energy (BLE), but it is shown that BLE1 and BLE2 can only have one communication channel at the same time, and sharing of APP1 and APP2 cannot be achieved. The BLE channel is established by the operating system and is used by the APP2 that initiated the establishment, and there is no mechanism provided to assign this channel to another APP 1. Although there are technical means by which APP2 may provide handoff to APP 1.
As shown in fig. 4 to 5, communication of APP1 with APP2 is achieved by defining a broadcast of a specific name. For example: APP1 and APP2 both establish a Bluetooth connection with Bluetooth smart card A.
The specific implementation process is as follows:
(1) the APP1 is to establish a connection with the bluetooth smart card a, and at the beginning of this action, scans the surrounding bluetooth devices for parameter matching and simultaneously sends a broadcast with the name "×" CONNECT _ STATUS _ ASK "and carries the packet name of the APP 1.
PACKAGENAME _ ASK: package name of APP 1;
(2) at this time, if the APP2 receives the broadcast sent in the step (1), the state of the APP2 is judged, if the connection is not successful, no response is made, if the APP2 is connected to the bluetooth smart card a, the APP1 packet name carried in the broadcast in the step (1) is read, the broadcast with the name of "× _ CONNECT _ STATUS _ ANSWER" is sent, and four key value pair data are carried in the broadcast:
PACKAGENAME _ ASK: package name of APP 1;
PACKAGENAME _ ANSWER: package name of APP 2;
APPNAME: name of APP 2;
CONNECTION _ STATUS: the connected state of APP 2;
(3) the APP1 receives the broadcast with the name ". about _ CONNECT _ STATUS _ ANSWER", analyzes the packet name and name of the APP2, and judges whether the inquiry is initiated for the APP1 and the APP2 is in the connected state, and prompts the user operating the APP1 to select whether to send a message to disconnect the APP 2.
(4) If the user chooses not to disconnect, the APP1 stops connecting. In the case where the user chooses to DISCONNECT APP2, APP1 sends a broadcast with the name "x _ DISCONNECT _ CMD" and carries the packet name of APP 1:
PACKAGENAME _ ASK: package name of APP 1;
APPNAME _ ASK: package name of APP 1;
(5) the APP2 receives the broadcast with the name "× _ DISCONNECT _ CMD", parses the packet name and name of the operation initiator APP1, and DISCONNECTs from the bluetooth card. And prompts the user APP1 to execute the operation of disconnecting the APP2 from the Bluetooth card.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that the above-mentioned embodiments are only examples of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures or equivalent flow transformations made by using the contents of the specification and the drawings, such as the combination of technical features between the embodiments, or the direct or indirect application to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for managing Bluetooth connection resources among multiple APPs in the same terminal is characterized by comprising the following steps:
when a Bluetooth connection is initiated, inquiring whether a Bluetooth connection resource corresponding to the Bluetooth connection is occupied or not through a system information transfer mechanism;
informing a user of the occupied condition of the Bluetooth connection resource when the system information transfer mechanism learns that the Bluetooth connection resource is occupied;
inquiring whether the user selects to forcibly release the Bluetooth connection resource or not when the user is informed that the Bluetooth connection resource is occupied;
when receiving the input of the user selecting to forcibly release the Bluetooth connection resource, sending a Bluetooth connection resource release notification to an occupant of the Bluetooth connection resource through a system information transfer mechanism;
initiating Bluetooth connection paging when determining that the Bluetooth connection resources are not occupied;
the system information delivery mechanism is a broadcasting mechanism of an android system;
the inquiring whether the bluetooth connection resource corresponding to the bluetooth connection is occupied through a system information transfer mechanism includes:
sending a first preset broadcast, wherein the first preset broadcast is a pre-registered unordered broadcast and is intended to enable a receiver to respond after judging whether the receiver occupies the Bluetooth connection resource;
the sending a Bluetooth connection resource release notification to an occupant of the Bluetooth connection resource through a system information transfer mechanism comprises:
and sending a second preset broadcast, wherein the second preset broadcast is a pre-registered unordered broadcast and is intended to disconnect the Bluetooth connection of a receiver and release the Bluetooth connection resource.
2. The method of managing of claim 1, further comprising:
and when receiving the input that the user selects not to forcibly release the Bluetooth connection resource, stopping establishing the Bluetooth connection.
3. The method of managing according to claim 2, further comprising:
after receiving the first preset broadcast, judging whether the Bluetooth connection resource is occupied by the Bluetooth connection resource or not;
when the Bluetooth connection resource is occupied by the receiver, sending a third preset broadcast, wherein the third preset broadcast is a pre-registered unordered broadcast and is intended to inform the receiver of the occupied condition of the Bluetooth connection resource; and after the second preset broadcast is received, disconnecting the Bluetooth connection and releasing the Bluetooth connection resource.
4. The management method according to claim 3, wherein broadcast names of the first preset broadcast, the second preset broadcast and the third preset broadcast include feature information of the Bluetooth connection.
5. The management method according to claim 1, wherein the first predefined broadcast and the second predefined broadcast carry sender information.
6. The management method according to claim 3, wherein the third preset broadcast carries sender information, receiver information and Bluetooth connection resource occupation.
7. An apparatus for managing bluetooth connection resources, the apparatus comprising: a notification module and a connection module; wherein,
the inquiry module is used for inquiring whether a Bluetooth connection resource corresponding to the Bluetooth connection is occupied or not through a system information transmission mechanism when the Bluetooth connection is initiated;
the notification module is used for notifying a user of the occupied Bluetooth connection resource when the Bluetooth connection resource is known to be occupied through a system information transfer mechanism;
the release inquiry module is used for inquiring whether the user selects to release the Bluetooth connection resource forcibly when informing the user that the Bluetooth connection resource is occupied;
the release notification module is used for sending a Bluetooth connection resource release notification to the Bluetooth connection resource occupant through a system information transfer mechanism when receiving input of user selection for forcibly releasing the Bluetooth connection resources;
the connection module is used for initiating Bluetooth connection paging when the Bluetooth connection resource is determined not to be occupied;
the system information delivery mechanism is a broadcasting mechanism of an android system;
the inquiring whether the bluetooth connection resource corresponding to the bluetooth connection is occupied through a system information transfer mechanism includes:
sending a first preset broadcast, wherein the first preset broadcast is a pre-registered unordered broadcast and is intended to enable a receiver to respond after judging whether the receiver occupies the Bluetooth connection resource;
the sending a Bluetooth connection resource release notification to the Bluetooth connection resource occupant through a system information transfer mechanism comprises:
and sending a second preset broadcast, wherein the second preset broadcast is a pre-registered unordered broadcast and is intended to disconnect the Bluetooth connection of a receiver and release the Bluetooth connection resource.
8. The management apparatus according to claim 7, wherein the apparatus further comprises:
and the connection stopping module is used for stopping establishing the Bluetooth connection when receiving the input that the user selects not to forcibly release the Bluetooth connection resource.
CN201610471852.8A 2016-06-24 2016-06-24 Management method and device of Bluetooth connection resources Active CN107548017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610471852.8A CN107548017B (en) 2016-06-24 2016-06-24 Management method and device of Bluetooth connection resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610471852.8A CN107548017B (en) 2016-06-24 2016-06-24 Management method and device of Bluetooth connection resources

Publications (2)

Publication Number Publication Date
CN107548017A CN107548017A (en) 2018-01-05
CN107548017B true CN107548017B (en) 2021-03-05

Family

ID=60961041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610471852.8A Active CN107548017B (en) 2016-06-24 2016-06-24 Management method and device of Bluetooth connection resources

Country Status (1)

Country Link
CN (1) CN107548017B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529574A (en) * 2021-06-08 2022-12-27 佛山市顺德区美的电子科技有限公司 Bluetooth pairing processing method, electric equipment, terminal and server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252724A (en) * 2007-02-23 2008-08-27 三星电子株式会社 Wireless communication method for replacing wireless device to perform wireless communication after receiving confirmation from user and image device thereof
CN101453248A (en) * 2007-12-04 2009-06-10 艾威梯软件技术(北京)有限公司 Method and computer for supporting Bluetooth voice call
JP4794996B2 (en) * 2005-11-21 2011-10-19 富士通東芝モバイルコミュニケーションズ株式会社 Mobile station
CN103561479A (en) * 2013-10-17 2014-02-05 东软熙康健康科技有限公司 Bluetooth device communication method and device
CN103731562A (en) * 2014-01-21 2014-04-16 三星电子(中国)研发中心 Method and device for adaptively matching bluetooth device with smart devices
CN104811526A (en) * 2014-01-23 2015-07-29 佳也瑞吉科技(深圳)有限公司 Intelligent equipment management system for mobile phone and method for using system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4794996B2 (en) * 2005-11-21 2011-10-19 富士通東芝モバイルコミュニケーションズ株式会社 Mobile station
CN101252724A (en) * 2007-02-23 2008-08-27 三星电子株式会社 Wireless communication method for replacing wireless device to perform wireless communication after receiving confirmation from user and image device thereof
CN101453248A (en) * 2007-12-04 2009-06-10 艾威梯软件技术(北京)有限公司 Method and computer for supporting Bluetooth voice call
CN103561479A (en) * 2013-10-17 2014-02-05 东软熙康健康科技有限公司 Bluetooth device communication method and device
CN103731562A (en) * 2014-01-21 2014-04-16 三星电子(中国)研发中心 Method and device for adaptively matching bluetooth device with smart devices
CN104811526A (en) * 2014-01-23 2015-07-29 佳也瑞吉科技(深圳)有限公司 Intelligent equipment management system for mobile phone and method for using system

Also Published As

Publication number Publication date
CN107548017A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
EP3565369B1 (en) Esim card activation method, wireless router and computer storage medium
CN110214459A (en) The method and apparatus of business processing
CN108476399A (en) Method and apparatus for sending and receiving profile in a communications system
US11064343B2 (en) Management of subscriber profiles simultaneously active in an eUICC card using a plurality of separate links
CN101563943A (en) Method and apparatus for sharing cellular account subscription among multiple devices
US8831518B2 (en) Device and method for contactless short range communication
US20200389501A1 (en) Methods and user equipment for exchanging service capabilities
CN103326749B (en) A kind of control method of NFC radio frequency communication, Apparatus and system
US8954049B2 (en) Method of operating a module for wireless communication or the like wireless communication terminal, module for wireless communication and device of an integrated circuit card and a system of a communication equipment for operating the module
US10425812B2 (en) Method and apparatus for establishment of private communication between devices
CN114631339A (en) Method and apparatus for reinstalling SIM configuration file in wireless communication system
JP2023539038A (en) Method and apparatus for installing and managing multiple eSIM profiles
US20220312517A1 (en) D2d communication method, apparatus, and system
JP2018523358A (en) Method, apparatus, and system for adjusting data packet length in near field communication NFC
EP3782386B1 (en) Multi-virtual subscriber identity module communication terminal
CN107548017B (en) Management method and device of Bluetooth connection resources
KR101952793B1 (en) Improvements to Subscriber Identity Module (SIM) Access Profile (SAP)
CN102858028A (en) Method and terminal for releasing controlled party in multiparty call
CN104010353B (en) A kind of information processing method and electronic equipment
CN116489645B (en) Data transmission method and electronic equipment
CN107548016B (en) Management method, device and system of Bluetooth connection resources
CN116326195A (en) Method and apparatus for initializing between user equipment and universal integrated circuit card in wireless communication system
CN108650664B (en) Bluetooth connection control method, terminal and Bluetooth SIM card
KR20220025532A (en) Electronic device, and method for receiving sms message in electronic device supporting multiple sims
CN111836247A (en) Processing method and device for short-distance discovery service of terminal

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