CN113709710B - Interface management method and device - Google Patents

Interface management method and device Download PDF

Info

Publication number
CN113709710B
CN113709710B CN202010436747.7A CN202010436747A CN113709710B CN 113709710 B CN113709710 B CN 113709710B CN 202010436747 A CN202010436747 A CN 202010436747A CN 113709710 B CN113709710 B CN 113709710B
Authority
CN
China
Prior art keywords
bluetooth
interface
external interfaces
operation request
terminal
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
CN202010436747.7A
Other languages
Chinese (zh)
Other versions
CN113709710A (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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN202010436747.7A priority Critical patent/CN113709710B/en
Publication of CN113709710A publication Critical patent/CN113709710A/en
Application granted granted Critical
Publication of CN113709710B publication Critical patent/CN113709710B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides an interface management method and device, the method is applied to a Bluetooth management class of a terminal, the Bluetooth management class is used for carrying out unified management on a plurality of Bluetooth external interfaces of the terminal, wherein the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories.

Description

Interface management method and device
Technical Field
The embodiment of the application relates to the technical field of Bluetooth, in particular to an interface management method and device.
Background
Bluetooth (Bluetooth) is used as a small-range wireless connection technology, can realize convenient, quick, flexible and safe data and voice communication with low cost and low power consumption among devices, and is one of the mainstream technologies for realizing wireless personal area networks at present.
Smartphones in the existing market all have bluetooth functions, and there are also many physical accessories that transmit through bluetooth, such as bluetooth headset. In the private network industry, many bluetooth accessories are derived, such as bluetooth handhelds, shoulder helds, bluetooth PTT key modules, etc.
In the related art, an existing operating system generally calls corresponding functions through an interface. Taking an Android system as an example, each manufacturer further customizes a mobile phone of the Android system, and after customization, if an App wants to interact with a bluetooth control, only an interface in an audio manager (Audiomanager) can be used, but the interface provides a single function and cannot meet the diversified operation requirements of bluetooth accessories.
Disclosure of Invention
The embodiment of the application provides an interface management method and device, which are used for solving the problem that the conventional Bluetooth interface is single in function and cannot meet the diversified operation requirements of Bluetooth accessories.
In a first aspect, an embodiment of the present application provides an interface management method, which is applied to a bluetooth management class of a terminal, where the bluetooth management class is configured to perform unified management on a plurality of bluetooth external interfaces of the terminal, where the plurality of bluetooth external interfaces include a hidden interface opened by the terminal, and the plurality of bluetooth external interfaces provide bluetooth connection, bluetooth disconnection, and a hardware access control function on a bluetooth accessory;
the method comprises the following steps:
receiving an operation request of the Bluetooth accessory, wherein the operation request comprises at least one of the Bluetooth connection, the Bluetooth disconnection and hardware access control on the Bluetooth accessory;
determining a target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request;
and sending the operation request to the target Bluetooth external interface to execute the operation request.
In one possible design, the method further comprises:
receiving a Bluetooth request of multiple services;
sorting the multiple services;
and executing the Bluetooth request through the plurality of Bluetooth external interfaces based on the sequencing result.
In one possible design, the sorting the multiple services includes:
acquiring the service grade of the multiple services;
and based on the service level, sequencing the multiple services according to the service level from high to low or from low to high.
In one possible design, the determining, according to the operation request, a target bluetooth external interface from the plurality of bluetooth external interfaces includes:
determining a function provided by each of the plurality of Bluetooth external interfaces;
and determining the target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request and the functions provided by each interface.
In one possible design, after the sending the operation request to the target bluetooth external interface, the method further includes:
receiving feedback information of the target Bluetooth external interface;
if the feedback information is successfully executed, displaying the feedback information on the terminal;
and if the feedback information is that the execution fails, re-executing the step of sending the operation request to the target Bluetooth external interface after a preset time interval.
In a second aspect, an embodiment of the present application provides an interface management device, which is applied to a bluetooth management class of a terminal, where the bluetooth management class is configured to perform unified management on a plurality of bluetooth external interfaces of the terminal, where the plurality of bluetooth external interfaces include a hidden interface that is opened by the terminal, and the plurality of bluetooth external interfaces provide bluetooth connection, bluetooth disconnection, and a hardware access control function on a bluetooth accessory;
the device comprises:
the first receiving module is used for receiving an operation request of the Bluetooth accessory, wherein the operation request comprises at least one of Bluetooth connection, bluetooth disconnection and hardware access control on the Bluetooth accessory;
the determining module is used for determining a target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request;
and the sending module is used for sending the operation request to the target Bluetooth external interface so as to execute the operation request.
In one possible design, the apparatus further comprises:
the second receiving module is used for receiving the Bluetooth request of the multiple services;
the ordering module is used for ordering the multiple services;
and the execution module is used for executing the Bluetooth request through the plurality of Bluetooth external interfaces based on the sequencing result.
In one possible design, the sorting module is specifically configured to:
acquiring the service grade of the multiple services;
and based on the service level, sequencing the multiple services according to the service level from high to low or from low to high.
In one possible design, the determining module is specifically configured to:
determining a function provided by each of the plurality of Bluetooth external interfaces;
and determining the target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request and the functions provided by each interface.
In a third aspect, an embodiment of the present application provides an interface management apparatus, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory, causing the at least one processor to perform the interface management method as described above in the first aspect and the various possible designs of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium, where computer executable instructions are stored, when executed by a processor, to implement the interface management method according to the first aspect and the various possible designs of the first aspect.
The method is applied to a Bluetooth management class of a terminal, the Bluetooth management class is used for carrying out unified management on a plurality of Bluetooth external interfaces of the terminal, the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories, after an operation request of the Bluetooth accessories is received, a target Bluetooth external interface is determined from the plurality of Bluetooth external interfaces according to the operation request, and then the operation request is sent to the target Bluetooth external interface to execute the operation request, so that support on different Bluetooth accessories is achieved through the plurality of Bluetooth external interfaces, the Bluetooth external interfaces are diverse in function, diversified operation requirements of the Bluetooth accessories are met, supporting capability of the terminal on Bluetooth hardware is enhanced, and the method is suitable for practical application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, it being obvious that the drawings in the following description are some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is a schematic diagram of an interface management system architecture according to an embodiment of the present application;
fig. 2 is a flow chart of an interface management method according to an embodiment of the present application;
fig. 3 is a flow chart of another interface management method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an interface management device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another interface management device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an interface management device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Smartphones in the existing market all have bluetooth functions, and there are also many physical accessories that transmit through bluetooth, such as bluetooth headset. In the private network industry, many bluetooth accessories are derived, such as bluetooth handhelds, shoulder helds, bluetooth PTT key modules, etc.
In the related art, an existing operating system generally calls corresponding functions through an interface. Taking an Android system as an example, each manufacturer further customizes a mobile phone of the Android system, and after customization, if an App wants to interact with a bluetooth control, only an interface in an Audiomanager can be used, but the interface provides a single function, so that the diversified operation requirements of bluetooth accessories cannot be met.
Therefore, in view of the above problems, the present application provides an interface management method, which realizes the support to different bluetooth accessories through a plurality of bluetooth external interfaces on a terminal, and the plurality of bluetooth external interfaces can provide functions such as bluetooth connection, bluetooth disconnection, hardware access control on the bluetooth accessories, and the like, thereby meeting diversified operation requirements of the bluetooth accessories and enhancing the support capability of the terminal to bluetooth hardware.
The interface management method provided by the application can be applied to an interface management system shown in fig. 1, and is applied to a bluetooth management class of a terminal, wherein the bluetooth management class is used for uniformly managing a plurality of bluetooth external interfaces of the terminal, the plurality of bluetooth external interfaces comprise hidden interfaces opened by the terminal, the plurality of bluetooth external interfaces provide bluetooth connection, bluetooth disconnection and hardware access control functions on a bluetooth accessory, and the system can comprise at least one of a receiving device 101, a processor 102 and a display device 103.
Here, after the hidden interface of the terminal is opened, the hidden interface can be packaged as a bluetooth external interface, and each bluetooth external interface is uniformly managed by the bluetooth management class and can be called by related applications externally. Various bluetooth external interfaces may provide various functions, such as bluetooth connection, bluetooth disconnection, and hardware access control functions on bluetooth accessories, which are not particularly limited in this embodiment of the present application.
In a specific implementation process, the receiving device 101 may be an input/output interface or a communication interface, and may be used to receive information such as an operation request of a bluetooth accessory.
The processor 102 may determine a target bluetooth external interface from the plurality of bluetooth external interfaces according to the operation request, and send the operation request to the target bluetooth external interface to execute the operation request.
The display device 103 may be used to display the above operation request, the target bluetooth external interface, and the like.
The display device may also be a touch display screen for receiving user instructions while displaying the above content to enable interaction with a user.
It should be understood that the above-described processor may be implemented by a processor that reads instructions in a memory and executes the instructions, or may be implemented by a chip circuit.
The above system is only one exemplary system, and may be set according to application requirements when implemented.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flow chart of an interface management method provided in the embodiment of the present application, where an execution body of the embodiment of the present application may be an interface management system in the embodiment of fig. 1, and is applied to a bluetooth management class of a terminal. The Bluetooth management type is used for uniformly managing a plurality of Bluetooth external interfaces of the terminal, wherein the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, and the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories.
As shown in fig. 2, the method may include:
s201: an operation request of the bluetooth accessory is received, the operation request including at least one of a bluetooth connection, a bluetooth disconnection, and a hardware access control on the bluetooth accessory.
Wherein, the bluetooth accessory can be any one or more bluetooth accessories.
Here, the bluetooth management class receives requests such as bluetooth connection, bluetooth disconnection, and hardware access control on the bluetooth accessory, so as to perform unified management on a plurality of bluetooth external interfaces of the terminal based on the requests.
Optionally, before the receiving the operation request of the bluetooth accessory, the method may further include:
judging whether the Bluetooth is in a normal state, if so, executing the step of receiving the operation request of the Bluetooth accessory, thereby ensuring that the subsequent processing is performed normally, otherwise, stopping the operation, and performing corresponding prompt, such as Bluetooth abnormality, so as to prompt related personnel to perform the processing.
S202: and determining a target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request.
Optionally, the determining, according to the operation request, the target bluetooth external interface from the plurality of bluetooth external interfaces may include:
determining the function provided by each of the plurality of Bluetooth external interfaces;
and determining a target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request and the functions provided by each interface.
Here, different bluetooth external interfaces may provide different functions, so that after receiving an operation request of the bluetooth accessory, the bluetooth management class determines a target bluetooth external interface from the plurality of bluetooth external interfaces according to the operation request and the function provided by each bluetooth external interface.
In this embodiment of the present application, if according to the above operation request and the function provided by each interface, the target bluetooth external interface cannot be determined from the above bluetooth external interfaces, that is, there is no target bluetooth external interface corresponding to the above operation request in the above bluetooth external interfaces, the above bluetooth management class may perform a corresponding prompt, for example, no corresponding bluetooth external interface, so that relevant personnel may acquire the prompt in time and perform a corresponding process.
Further, the hidden interface of the terminal can be packaged into a Bluetooth external interface according to the operation request of the Bluetooth accessory, so that the diversified operation requirements of the Bluetooth accessory are met.
S203: and sending the operation request to the target Bluetooth external interface to execute the operation request.
Here, the bluetooth management class notifies the target bluetooth external interface of the operation request, and the target bluetooth external interface executes the operation request, thereby implementing bluetooth connection, bluetooth disconnection, hardware access control on a bluetooth accessory, and the like.
Optionally, after the sending the operation request to the target bluetooth external interface, the method further includes:
receiving feedback information of an external interface of the target Bluetooth;
if the feedback information is successfully executed, displaying the feedback information on a terminal;
and if the feedback information is the execution failure, re-executing the step of sending the operation request to the target Bluetooth external interface after a preset time interval.
For example, after the bluetooth management class sends the operation request to the target bluetooth external interface, feedback information of the target bluetooth external interface may also be received, so that corresponding processing is performed according to the feedback information. For example, if the feedback information is successful, it is indicated that the target bluetooth successfully executes the operation request to the external interface, so as to implement bluetooth connection, bluetooth disconnection, hardware access control on the bluetooth accessory, and the like, and at this time, the bluetooth management class may display the feedback information on the terminal, so that relevant personnel can know bluetooth status information in time. If the feedback information is an execution failure, it indicates that the target bluetooth external interface does not successfully execute the operation request, and bluetooth connection, bluetooth disconnection, hardware access control on a bluetooth accessory, and the like are not achieved, and at this time, the bluetooth management class may execute the step of sending the operation request to the target bluetooth external interface again at a preset time interval, so that the target bluetooth external interface executes the operation request again, and the method is suitable for practical application. The preset time interval may be set according to actual situations.
As can be seen from the foregoing description, the bluetooth management class applied to a terminal in this embodiment of the present application is configured to perform unified management on a plurality of bluetooth external interfaces of the terminal, where the plurality of bluetooth external interfaces include a hidden interface that is open to the terminal, and the plurality of bluetooth external interfaces provide bluetooth connection, bluetooth disconnection, and a hardware access control function on a bluetooth accessory.
In addition, the embodiment of the application also provides another interface management method, which solves the problem of bluetooth request conflict of multiple services, for example, an Android terminal provides bluetooth support for a Phone App for making a call, a music playing and other related upper-layer apps capable of being connected with bluetooth playing audio, and conflicts exist between the functions and bluetooth controls using the interface. Fig. 3 is a flow chart of another interface management method provided in the embodiment of the present application, where the execution body of the embodiment of the present application may be the interface management system in the embodiment shown in fig. 1, and is applied to a bluetooth management class of a terminal. As shown in fig. 3, the method includes:
s301: a bluetooth request for multiple services is received.
S302: and sequencing the multiple services.
Here, taking the bluetooth request of the multiple service as a bluetooth request for connection of multiple voice services as an example, after the bluetooth management class receives the bluetooth request for connection of multiple voice services, the multiple voice services are ordered, so that the bluetooth request for connection of multiple voice services is processed subsequently based on the ordering result.
Optionally, the sorting the multiple services includes:
acquiring the service level of the multiple services;
and based on the service levels, sequencing the multiple services according to the service levels from high to low or from low to high.
The service level of the service may be set according to practical situations, for example, the level of the call service is higher than the level of the music playing service. Here, the service level may represent importance of a service, and importance of a call service is higher than that of a music playing service.
S303: and executing the Bluetooth request through the plurality of Bluetooth external interfaces based on the ordering result.
Specifically, the bluetooth management class may sequentially determine corresponding bluetooth external interfaces from a plurality of bluetooth external interfaces based on the sorting result, and send corresponding bluetooth requests to the determined bluetooth external interfaces, so as to execute the bluetooth requests.
Optionally, before the executing the bluetooth request through the plurality of bluetooth external interfaces based on the ordering result, the method further includes:
displaying the sorting result;
if a request for adjusting the sequencing result is received, the sequencing result is adjusted according to the request.
Here, after the bluetooth management class orders the multiple services, the bluetooth management class may further adjust the ordering result based on the received ordering result adjustment request, so as to further satisfy different application requirements of different application scenarios.
The embodiment of the application is applied to a Bluetooth management class of a terminal, and the Bluetooth management class is used for uniformly managing a plurality of Bluetooth external interfaces of the terminal, wherein the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and a hardware access control function on a Bluetooth accessory.
Corresponding to the interface management method of the above embodiment, fig. 4 is a schematic structural diagram of the interface management device provided in the embodiment of the present application. For convenience of explanation, only portions relevant to the embodiments of the present application are shown. Fig. 4 is a schematic structural diagram of an interface management device according to an embodiment of the present application. The interface management device is applied to a Bluetooth management class of a terminal, wherein the Bluetooth management class is used for uniformly managing a plurality of Bluetooth external interfaces of the terminal, the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, and the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories. As shown in fig. 4, the interface management apparatus 40 includes: a first receiving module 401, a determining module 402 and a transmitting module 403.
The first receiving module 401 is configured to receive an operation request of the bluetooth accessory, where the operation request includes at least one of the bluetooth connection, the bluetooth disconnection, and a hardware access control on the bluetooth accessory.
And the determining module 402 is configured to determine a target bluetooth external interface from the plurality of bluetooth external interfaces according to the operation request.
And the sending module 403 is configured to send the operation request to the target bluetooth external interface, so as to execute the operation request.
In one possible design, the determining module 402 is specifically configured to:
determining a function provided by each of the plurality of Bluetooth external interfaces;
and determining the target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request and the functions provided by each interface.
In one possible design, the sending module 403 is further configured to, after the sending the operation request to the target bluetooth external interface:
receiving feedback information of the target Bluetooth external interface;
if the feedback information is successfully executed, displaying the feedback information on the terminal;
and if the feedback information is that the execution fails, re-executing the step of sending the operation request to the target Bluetooth external interface after a preset time interval.
The device provided in the embodiment of the present application may be used to implement the technical solution of the embodiment of the method described in fig. 2, and its implementation principle and technical effects are similar, and the embodiment of the present application will not be described here again.
Fig. 5 is a schematic structural diagram of another interface management device according to an embodiment of the present application. The interface management device is applied to a Bluetooth management class of a terminal, wherein the Bluetooth management class is used for uniformly managing a plurality of Bluetooth external interfaces of the terminal, the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, and the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories. As shown in fig. 5, the interface management apparatus 50 includes: a second receiving module 501, a sorting module 502 and an executing module 503.
The second receiving module 501 is configured to receive a bluetooth request of multiple services.
And the ordering module 502 is configured to order the multiple services.
And the executing module 503 is configured to execute the bluetooth request through the plurality of bluetooth external interfaces based on the ordering result.
In one possible design, the sorting module 502 is specifically configured to:
acquiring the service grade of the multiple services;
and based on the service level, sequencing the multiple services according to the service level from high to low or from low to high.
The device provided in the embodiment of the present application may be used to implement the technical solution of the embodiment of the method described in fig. 3, and its implementation principle and technical effects are similar, and the embodiment of the present application will not be described here again.
Fig. 6 is a schematic hardware structure of an interface management device according to an embodiment of the present invention. As shown in fig. 6, the interface management device 60 of the present embodiment is applied to a bluetooth management class of a terminal, where the bluetooth management class is used for uniformly managing a plurality of bluetooth external interfaces of the terminal, where the plurality of bluetooth external interfaces include a hidden interface opened by the terminal, and the plurality of bluetooth external interfaces provide bluetooth connection, bluetooth disconnection, and a hardware access control function on a bluetooth accessory, and the device 60 includes: a processor 601 and a memory 602; wherein the method comprises the steps of
A memory 602 for storing computer-executable instructions;
a processor 601 for executing computer-executable instructions stored in a memory to perform the steps of:
receiving an operation request of the Bluetooth accessory, wherein the operation request comprises at least one of the Bluetooth connection, the Bluetooth disconnection and hardware access control on the Bluetooth accessory;
determining a target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request;
and sending the operation request to the target Bluetooth external interface to execute the operation request.
In one possible design, the method further comprises:
receiving a Bluetooth request of multiple services;
sorting the multiple services;
and executing the Bluetooth request through the plurality of Bluetooth external interfaces based on the sequencing result.
In one possible design, the sorting the multiple services includes:
acquiring the service grade of the multiple services;
and based on the service level, sequencing the multiple services according to the service level from high to low or from low to high.
In one possible design, the determining, according to the operation request, a target bluetooth external interface from the plurality of bluetooth external interfaces includes:
determining a function provided by each of the plurality of Bluetooth external interfaces;
and determining the target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request and the functions provided by each interface.
In one possible design, after the sending the operation request to the target bluetooth external interface, the method further includes:
receiving feedback information of the target Bluetooth external interface;
if the feedback information is successfully executed, displaying the feedback information on the terminal;
and if the feedback information is that the execution fails, re-executing the step of sending the operation request to the target Bluetooth external interface after a preset time interval.
Alternatively, the memory 602 may be separate or integrated with the processor 601.
When the memory 602 is provided separately, the interface management device further comprises a bus 603 for connecting said memory 602 and the processor 601.
Embodiments of the present invention provide a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the interface management method as described above.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit. The units formed by the modules can be realized in a form of hardware or a form of hardware and software functional units.
The integrated modules, which are implemented in the form of software functional modules, may be stored in a computer readable storage medium. The software functional module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform some of the steps of the methods described in the embodiments of the present application.
It should be understood that the above processor may be a central processing unit (Central Processing Unit, abbreviated as CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, abbreviated as DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile memory NVM, such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk or optical disk, etc.
The bus may be an industry standard architecture (Industry Standard Architecture, ISA) bus, an external device interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
The storage medium may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). It is also possible that the processor and the storage medium reside as discrete components in an electronic device or a master device.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (9)

1. The interface management method is characterized by being applied to a Bluetooth management class of a terminal, wherein the Bluetooth management class is used for uniformly managing a plurality of Bluetooth external interfaces of the terminal, the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories, and different Bluetooth external interfaces provide different functions;
the method comprises the following steps:
receiving an operation request of the Bluetooth accessory, wherein the operation request comprises at least one of the Bluetooth connection, the Bluetooth disconnection and hardware access control on the Bluetooth accessory;
determining a target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request and the function provided by each interface in the plurality of Bluetooth external interfaces;
the operation request is sent to the target Bluetooth external interface so as to execute the operation request;
receiving a Bluetooth request of multiple services;
based on the service levels of the multiple services, sequencing the multiple services according to the service levels from high to low or from low to high;
and executing the Bluetooth request through the plurality of Bluetooth external interfaces based on the sequencing result.
2. The method of claim 1, wherein prior to said ordering said multiple services, further comprising:
and acquiring the service grade of the multiple services.
3. The method of claim 1, wherein prior to determining the target bluetooth external interface from the plurality of bluetooth external interfaces, further comprising:
and determining the function provided by each of the plurality of Bluetooth external interfaces.
4. A method according to any one of claims 1 to 3, further comprising, after said sending said operation request to said target bluetooth external interface:
receiving feedback information of the target Bluetooth external interface;
if the feedback information is successfully executed, displaying the feedback information on the terminal;
and if the feedback information is that the execution fails, re-executing the step of sending the operation request to the target Bluetooth external interface after a preset time interval.
5. The interface management device is characterized by being applied to a Bluetooth management class of a terminal, wherein the Bluetooth management class is used for uniformly managing a plurality of Bluetooth external interfaces of the terminal, the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories, and different Bluetooth external interfaces provide different functions;
the device comprises:
the first receiving module is used for receiving an operation request of the Bluetooth accessory, wherein the operation request comprises at least one of Bluetooth connection, bluetooth disconnection and hardware access control on the Bluetooth accessory;
the determining module is used for determining a target Bluetooth external interface from the plurality of Bluetooth external interfaces according to the operation request and the function provided by each interface in the plurality of Bluetooth external interfaces;
the sending module is used for sending the operation request to the target Bluetooth external interface so as to execute the operation request;
the apparatus further comprises:
the second receiving module is used for receiving the Bluetooth request of the multiple services;
the sequencing module is used for sequencing the multiple services according to the service level from high to low or from low to high based on the service level of the multiple services;
and the execution module is used for executing the Bluetooth request through the plurality of Bluetooth external interfaces based on the sequencing result.
6. The apparatus of claim 5, wherein the ranking module is further specifically configured to:
and acquiring the service grade of the multiple services.
7. The apparatus of claim 5, wherein the determining module is further specifically configured to:
and determining the function provided by each of the plurality of Bluetooth external interfaces.
8. The interface management device is characterized by being applied to a Bluetooth management class of a terminal, wherein the Bluetooth management class is used for uniformly managing a plurality of Bluetooth external interfaces of the terminal, the plurality of Bluetooth external interfaces comprise hidden interfaces opened by the terminal, and the plurality of Bluetooth external interfaces provide Bluetooth connection, bluetooth disconnection and hardware access control functions on Bluetooth accessories;
the apparatus comprises: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the interface management method of any one of claims 1 to 4.
9. A computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, implement the interface management method of any one of claims 1 to 4.
CN202010436747.7A 2020-05-21 2020-05-21 Interface management method and device Active CN113709710B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010436747.7A CN113709710B (en) 2020-05-21 2020-05-21 Interface management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010436747.7A CN113709710B (en) 2020-05-21 2020-05-21 Interface management method and device

Publications (2)

Publication Number Publication Date
CN113709710A CN113709710A (en) 2021-11-26
CN113709710B true CN113709710B (en) 2023-08-08

Family

ID=78646106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010436747.7A Active CN113709710B (en) 2020-05-21 2020-05-21 Interface management method and device

Country Status (1)

Country Link
CN (1) CN113709710B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002091768A1 (en) * 2001-05-08 2002-11-14 Telefonaktiebolaget L M Ericsson (Publ) Apparatus for integrating mobile telephones as terminals of a private communication system
CN101484884A (en) * 2006-07-05 2009-07-15 艾格瑞系统有限公司 Systems and methods for multiport communication distribution
CN101663828A (en) * 2007-03-23 2010-03-03 矽玛特公司 Wireless phone and wireless head-band receiver with wireless transceiver
CN103856374A (en) * 2012-11-28 2014-06-11 联想(北京)有限公司 Data transmission method, terminal and home interconnected system
CN107911871A (en) * 2017-12-12 2018-04-13 腾讯科技(深圳)有限公司 Control method, device and control device, the storage medium of bluetooth connection
EP3468068A1 (en) * 2016-06-27 2019-04-10 Huawei Technologies Co., Ltd. Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN209562799U (en) * 2019-04-25 2019-10-29 深圳市美格信测控技术有限公司 Pot machine audio test system of bluetooth playback equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9641239B2 (en) * 2012-06-22 2017-05-02 Fitbit, Inc. Adaptive data transfer using bluetooth

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002091768A1 (en) * 2001-05-08 2002-11-14 Telefonaktiebolaget L M Ericsson (Publ) Apparatus for integrating mobile telephones as terminals of a private communication system
CN101484884A (en) * 2006-07-05 2009-07-15 艾格瑞系统有限公司 Systems and methods for multiport communication distribution
CN101663828A (en) * 2007-03-23 2010-03-03 矽玛特公司 Wireless phone and wireless head-band receiver with wireless transceiver
CN103856374A (en) * 2012-11-28 2014-06-11 联想(北京)有限公司 Data transmission method, terminal and home interconnected system
EP3468068A1 (en) * 2016-06-27 2019-04-10 Huawei Technologies Co., Ltd. Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN107911871A (en) * 2017-12-12 2018-04-13 腾讯科技(深圳)有限公司 Control method, device and control device, the storage medium of bluetooth connection
CN209562799U (en) * 2019-04-25 2019-10-29 深圳市美格信测控技术有限公司 Pot machine audio test system of bluetooth playback equipment

Also Published As

Publication number Publication date
CN113709710A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US11036373B1 (en) Mobile device transparent screen overlay
CN106293507B (en) Electronic device with external memory and method of operating the same
US10911565B2 (en) Method, device and system for associating a service account
US20220214932A1 (en) Methods, devices and computer storage media for inter-mini program platform communication
CN110673964A (en) Audio playing control method and device of vehicle-mounted system
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
US20220245005A1 (en) Methods, devices and computer storage media for inter-mini program platform discovery
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
US10789957B1 (en) Home assistant wireless communication service subscriber self-service
CN110007936B (en) Data processing method and device
US20170163787A1 (en) Method and electronic device for upgrading or downgrading system
CN114257551A (en) Distributed current limiting method and system and storage medium
CN111679790A (en) Remote software development storage space distribution method and device
CN111371695A (en) Service current limiting method and device
CN111445331A (en) Transaction matching method and device
WO2023168913A1 (en) Method and apparatus for compatibility of sdk with access application, device and medium
CN111049883B (en) Data reading method, device and system of distributed table system
CN113709710B (en) Interface management method and device
JP2021010164A (en) Method and apparatus for processing notification using notification preset
CN115080068A (en) Resource file transmission method, device, equipment and storage medium
CN110058866B (en) Cluster component installation method and device
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN109982136B (en) Volume adjusting method and device
CN110765426A (en) Equipment permission setting method, device, equipment and computer storage medium
US10491551B2 (en) Terminal device, method and recording medium containing program for message processing

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