CN113543097A - Multi-Bluetooth interaction method and system for Android system - Google Patents

Multi-Bluetooth interaction method and system for Android system Download PDF

Info

Publication number
CN113543097A
CN113543097A CN202110611495.1A CN202110611495A CN113543097A CN 113543097 A CN113543097 A CN 113543097A CN 202110611495 A CN202110611495 A CN 202110611495A CN 113543097 A CN113543097 A CN 113543097A
Authority
CN
China
Prior art keywords
bluetooth
android
service
interface
native
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.)
Granted
Application number
CN202110611495.1A
Other languages
Chinese (zh)
Other versions
CN113543097B (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.)
Huizhou Desay SV Intelligent Transport Technology Research Institute Co Ltd
Original Assignee
Huizhou Desay SV Intelligent Transport Technology Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou Desay SV Intelligent Transport Technology Research Institute Co Ltd filed Critical Huizhou Desay SV Intelligent Transport Technology Research Institute Co Ltd
Priority to CN202110611495.1A priority Critical patent/CN113543097B/en
Publication of CN113543097A publication Critical patent/CN113543097A/en
Application granted granted Critical
Publication of CN113543097B publication Critical patent/CN113543097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Abstract

The invention provides a multi-Bluetooth interaction method and system for an Android system, which are characterized in that an extended Bluetooth service Bluetooth Ext apk is added on the basis of an Android native Bluetooth apk; the method is characterized in that an expansion interface packet Bluetooth is added on the basis of an Android native FW interface Android, an AIDL service interface of Bluetooth communication is expanded into an Ext type interface file, a mode of expanding the service of Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext, and an expanded Bluetooth module is newly added on the basis of a native barrier module, so that the requirement of simultaneous interaction of multiple Bluetooth modules is met.

Description

Multi-Bluetooth interaction method and system for Android system
Technical Field
The invention relates to the technical field of wireless communication, in particular to a multi-Bluetooth interaction method and system for an Android system.
Background
In an automobile entertainment system, functions of a bluetooth telephone and a bluetooth headset are more and more paid attention and favored by people. However, in the Android system framework design and the protocol stack design, only one bluetooth module can be supported, and the scheme has the following defects: firstly, a plurality of bluetooth modules can not be supported to work simultaneously, for example, in a multi-screen entertainment system, a main driver needs to use a main bluetooth module to connect a mobile phone for performing phone function operation, and a copilot or a back-row passenger needs to use a second bluetooth module to connect an earphone to listen to the car machine audio for entertainment interaction. The existing design scheme of the Bluetooth frame of the Android system cannot meet the requirement. Secondly, the existing Bluetooth service framework and protocol stack framework of the Android are modified to support the vehicle-mounted multiple Bluetooth modules, so that the workload is very large and almost unacceptable, and the modification can cause incompatibility of Android versions.
Disclosure of Invention
Aiming at the problems, the invention provides a multi-Bluetooth interaction method and system for an Android system, an extended Bluetooth module is constructed by multiplexing the original frame, service codes and the like of Android in an extended mode, the requirement of simultaneous interaction of the multi-Bluetooth module can be met, a main driver can be connected with an earphone to use Bluetooth communication, and other passengers can use the earphone to perform audio and video entertainment operation. Whether the extended Bluetooth service needs to be started or not is configured in a configuration mode, and the method is compatible with the original design of Android, so that the development cost is saved.
Specifically, the multi-Bluetooth interaction method for the Android system comprises the following steps:
step 1: on the basis of the native Bluetooth apk of the Android, an extended Bluetooth service Bluetooth Ext apk is added;
step 2: on the basis of an Android native FW interface Android, an expansion interface packet bluetooth is added;
and step 3: an AIDL service interface of the Bluetooth communication is expanded into an Ext type interface file, and the service of expanding the Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext.
Wherein, the step 1 further comprises: copying Android native Bluetooth apk service codes; the service of the bluetooth ext is extended by extending the packet name.
Further, the step 2 further comprises: copying an Android native FW interface Android. Modify the package name of the interface file to android.
Further, the protocol stack dynamic library bluedroid stack runs in android.
Further, the protocol stack dynamic library bluedroid stack is respectively connected with Bt-Chip1 and Bt-Chip2 through UR interfaces.
Preferably, the present invention further provides a multi-bluetooth interactive system for an Android system, which specifically includes:
an Applications layer comprising at least one type of APP application;
a Framework layer comprising an API for supporting the operation of the APP application;
bluedroid layer: the Bluetooth system comprises an Android native Bluetooth apk, an added extended Bluetooth service Bluetooth Ext apk, an Android native FW interface Android which is used for communicating with a protocol stack dynamic library Bluetooth stack and an added extended interface packet Bluetooth.
Further, the system further comprises: an AIDL service interface of the Bluetooth communication is expanded into an Ext type interface file, and the service of expanding the Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext.
Further, the system is used in cooperation with a vehicle-mounted entertainment system; and starts or closes in response to the APP at the vehicle entertainment system side.
Wherein, the APP application program responding to the vehicle-mounted entertainment system end is started or closed, and the method further comprises the following steps:
s1, accessing native Bluetooth through an interface in the android packet preferentially;
s2: when native bluetooth is already engaged, extended bluetooth is accessed through an interface in the bluetooth packet.
Further, the native bluetooth or extended bluetooth supports at least audio playback.
In summary, the invention provides a multi-Bluetooth interaction method and system for an Android system, which is characterized in that an extended Bluetooth service Bluetooth ext apk is added on the basis of an Android native Bluetooth apk; the method is characterized in that an expansion interface packet Bluetooth is added on the basis of an Android native FW interface Android, an AIDL service interface of Bluetooth communication is expanded into an Ext type interface file, a mode of expanding the service of Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext, and an expanded Bluetooth module is newly added on the basis of a native barrier module, so that the requirement of simultaneous interaction of multiple Bluetooth modules is met.
Drawings
Fig. 1 is a schematic diagram of a multi-bluetooth interaction method for an Android system according to the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, the multi-bluetooth interaction method for the Android system provided by the invention can effectively solve the problem of using multiple bluetooth together, and by expanding the native bluetooth module and newly adding an expanded bluetooth service function, not only can the compatibility requirement of the Android version be met, but also the workload and the development cost of software development are reduced. The specific implementation process comprises the following steps:
step 1: on the basis of the native Bluetooth apk of the Android, an extended Bluetooth service Bluetooth Ext apk is added.
Android native Bluetooth apk service code is copied into one copy, and then the service of Bluetooth ext is extended by extending the packet name, for example, the packet name of com. By means of extending the packet name, one Bluetooth service can be extended to manage a second Bluetooth module without rewriting a protocol stack and an original Bluetooth service framework code.
Step 2: on the basis of an Android native FW interface Android, an expansion interface packet bluetooth is added;
copying an Android native FW interface Android. For example: the first bluetooth module has connected a telephone or music; in the case of a vehicle entertainment system connected to a headset, the second bluetooth module may be accessed through an interface in an extended android.
And step 3: an AIDL service interface of the Bluetooth communication is expanded into an Ext type interface file, and the service of expanding the Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext.
An AIDL service interface of the Bluetooth communication is expanded into an Ext type interface file, and the service of expanding the Bluetooth process bluetooth is started through the expanded Bluetooth manager service Ext.
Preferably, the present invention further provides a multi-bluetooth interactive system for an Android system, which specifically includes:
an Applications layer comprising at least one type of APP application;
a Framework layer comprising an API for supporting the operation of the APP application;
bluedroid layer: the Bluetooth system comprises an Android native Bluetooth apk, an added extended Bluetooth service Bluetooth Ext apk, an Android native FW interface Android which is used for communicating with a protocol stack dynamic library Bluetooth stack and an added extended interface packet Bluetooth.
Further, the system further comprises: an AIDL service interface of the Bluetooth communication is expanded into an Ext type interface file, and the service of expanding the Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext.
Further, the system is used in cooperation with a vehicle-mounted entertainment system; and starts or closes in response to the APP at the vehicle entertainment system side.
Wherein, the APP application program responding to the vehicle-mounted entertainment system end is started or closed, and the method further comprises the following steps:
s1, accessing native Bluetooth through an interface in the android packet preferentially;
s2: when native bluetooth is already engaged, extended bluetooth is accessed through an interface in the bluetooth packet.
Further, the native bluetooth or extended bluetooth supports at least audio playback.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A multi-Bluetooth interaction method for an Android system is characterized by comprising the following steps:
step 1: on the basis of the native Bluetooth apk of the Android, an extended Bluetooth service Bluetooth Ext apk is added;
step 2: on the basis of an Android native FW interface Android, an expansion interface packet bluetooth is added;
and step 3: an AIDL service interface of the Bluetooth communication is expanded into an Ext type interface file, and the service of expanding the Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext.
2. The multi-Bluetooth interaction method for the Android system of claim 1, wherein the step 1 further comprises: copying Android native Bluetooth apk service codes; the service of the bluetooth ext is extended by extending the packet name.
3. The multi-Bluetooth interaction method for the Android system of claim 1, wherein the step 2 further comprises: copying an Android native FW interface Android. Modify the package name of the interface file to android.
4. The multi-Bluetooth interaction method for the Android system of claim 3, further comprising: the protocol stack dynamic library, bluedroid stack, runs in android.
5. The multi-Bluetooth interaction method for the Android system of claim 4, further comprising: the protocol stack dynamic library bluedroid stack is respectively connected with Bt-Chip1 and Bt-Chip2 through UR interfaces.
6. A multi-Bluetooth interactive system for an Android system, comprising:
an Applications layer comprising at least one type of APP application;
a Framework layer comprising an API for supporting the operation of the APP application;
bluedroid layer: the Bluetooth system comprises an Android native Bluetooth apk, an added extended Bluetooth service Bluetooth Ext apk, an Android native FW interface Android which is used for communicating with a protocol stack dynamic library Bluetooth stack and an added extended interface packet Bluetooth.
7. The multi-Bluetooth interactive system for the Android system of claim 6, further comprising: an AIDL service interface of the Bluetooth communication is expanded into an Ext type interface file, and the service of expanding the Bluetooth process Bluetooth is started through the expanded Bluetooth Manager service Ext.
8. The multi-Bluetooth interactive system for the Android system of claim 6, wherein the system is used with a vehicle entertainment system; and starts or closes in response to the APP at the vehicle entertainment system side.
9. The multi-Bluetooth interactive system for the Android system as claimed in claim 8, wherein the starting or closing is performed in response to an APP application on a vehicle entertainment system side, further comprising the steps of:
s1, accessing native Bluetooth through an interface in the android packet preferentially;
s2: when native bluetooth is already engaged, extended bluetooth is accessed through an interface in the bluetooth packet.
10. The multi-bluetooth interactive system for Android system of claim 9, characterized in that native bluetooth or extended bluetooth supports at least audio playback.
CN202110611495.1A 2021-06-02 2021-06-02 Multi-Bluetooth interaction method and system for Android system Active CN113543097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110611495.1A CN113543097B (en) 2021-06-02 2021-06-02 Multi-Bluetooth interaction method and system for Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110611495.1A CN113543097B (en) 2021-06-02 2021-06-02 Multi-Bluetooth interaction method and system for Android system

Publications (2)

Publication Number Publication Date
CN113543097A true CN113543097A (en) 2021-10-22
CN113543097B CN113543097B (en) 2024-03-29

Family

ID=78094990

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110611495.1A Active CN113543097B (en) 2021-06-02 2021-06-02 Multi-Bluetooth interaction method and system for Android system

Country Status (1)

Country Link
CN (1) CN113543097B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030073142A (en) * 2002-03-08 2003-09-19 (주)클립컴 Voice-over Internet Protocol Apparatus with Extensible Bluetooth Interface
KR200403149Y1 (en) * 2005-09-06 2005-12-09 주식회사 소프텔레웨어 Bluetooth Access Point Apparatus Capable Of Bluetooth Module Connect And Disconnect
CN1741407A (en) * 2004-08-26 2006-03-01 华为技术有限公司 Method for expanding blue-tooth chip
KR100619092B1 (en) * 2005-09-02 2006-09-06 주식회사 이너스텍 Usb dongle having a bluetooth function with enlarged memory region
CN101420252A (en) * 2008-11-28 2009-04-29 中兴通讯股份有限公司 Wireless data card and Bluetooth expanding method thereof
CN101594172A (en) * 2008-05-27 2009-12-02 深圳蓝色飞舞科技有限公司 A kind of blue-tooth transmission method and blue tooth transmission system
US20100130130A1 (en) * 2008-11-21 2010-05-27 Xiao-Wen Liu Master-slave bluetooth mobile communication system and network domain login method
CN102325438A (en) * 2011-05-26 2012-01-18 南昌大学 A kind of electric automobile inter-vehicle information system
US20140119407A1 (en) * 2012-10-30 2014-05-01 Qualcomm Incorporated Apparatus and method for extending bluetooth device range
CN104731581A (en) * 2015-02-03 2015-06-24 惠州Tcl移动通信有限公司 Frame code modifying method and device based on Android system
CN104822127A (en) * 2015-03-09 2015-08-05 中国科学院信息工程研究所 Bluetooth device, data channel real-time management and control method and system thereof
US20150327001A1 (en) * 2014-05-09 2015-11-12 Apple Inc. Extended bluetooth communication modes
CN105631496A (en) * 2015-12-30 2016-06-01 深圳中科讯联科技有限公司 Remote card opening method and system and terminal equipment
CN205880745U (en) * 2016-05-27 2017-01-11 北京小鸟看看科技有限公司 Electronic device
CN107027092A (en) * 2016-01-30 2017-08-08 亚旭电脑股份有限公司 Bluetooth expansion system and Bluetooth expander
CN107613483A (en) * 2017-09-25 2018-01-19 福州汇思博信息技术有限公司 Method and smart machine based on virtual bluetooth equipment communication between process
CN110072220A (en) * 2019-03-27 2019-07-30 深圳前海达闼云端智能科技有限公司 Bluetooth expansion equipment, Bluetooth device and Bluetooth expansion system
CN110366039A (en) * 2019-07-12 2019-10-22 四川长虹电器股份有限公司 The compatibility method of different bluetooth mould groups under a kind of android system
CN110618876A (en) * 2019-03-21 2019-12-27 天津麒麟信息技术有限公司 Linux and Android coexistence and interaction method based on Feiteng platform and shared kernel
CN110933614A (en) * 2019-10-12 2020-03-27 阿里巴巴集团控股有限公司 Communication processing method and device and electronic equipment
CN111050306A (en) * 2018-10-15 2020-04-21 北京轩辕联科技有限公司 Extended connection method and extended connection system for Bluetooth device
CN112309154A (en) * 2020-09-28 2021-02-02 惠州市德赛西威智能交通技术研究院有限公司 Method, equipment and automobile for automatically parking and leaving garage through quick Ble starting

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030073142A (en) * 2002-03-08 2003-09-19 (주)클립컴 Voice-over Internet Protocol Apparatus with Extensible Bluetooth Interface
CN1741407A (en) * 2004-08-26 2006-03-01 华为技术有限公司 Method for expanding blue-tooth chip
KR100619092B1 (en) * 2005-09-02 2006-09-06 주식회사 이너스텍 Usb dongle having a bluetooth function with enlarged memory region
KR200403149Y1 (en) * 2005-09-06 2005-12-09 주식회사 소프텔레웨어 Bluetooth Access Point Apparatus Capable Of Bluetooth Module Connect And Disconnect
CN101594172A (en) * 2008-05-27 2009-12-02 深圳蓝色飞舞科技有限公司 A kind of blue-tooth transmission method and blue tooth transmission system
US20100130130A1 (en) * 2008-11-21 2010-05-27 Xiao-Wen Liu Master-slave bluetooth mobile communication system and network domain login method
CN101420252A (en) * 2008-11-28 2009-04-29 中兴通讯股份有限公司 Wireless data card and Bluetooth expanding method thereof
CN102325438A (en) * 2011-05-26 2012-01-18 南昌大学 A kind of electric automobile inter-vehicle information system
US20140119407A1 (en) * 2012-10-30 2014-05-01 Qualcomm Incorporated Apparatus and method for extending bluetooth device range
US20150327001A1 (en) * 2014-05-09 2015-11-12 Apple Inc. Extended bluetooth communication modes
CN104731581A (en) * 2015-02-03 2015-06-24 惠州Tcl移动通信有限公司 Frame code modifying method and device based on Android system
CN104822127A (en) * 2015-03-09 2015-08-05 中国科学院信息工程研究所 Bluetooth device, data channel real-time management and control method and system thereof
CN105631496A (en) * 2015-12-30 2016-06-01 深圳中科讯联科技有限公司 Remote card opening method and system and terminal equipment
CN107027092A (en) * 2016-01-30 2017-08-08 亚旭电脑股份有限公司 Bluetooth expansion system and Bluetooth expander
CN205880745U (en) * 2016-05-27 2017-01-11 北京小鸟看看科技有限公司 Electronic device
CN107613483A (en) * 2017-09-25 2018-01-19 福州汇思博信息技术有限公司 Method and smart machine based on virtual bluetooth equipment communication between process
CN111050306A (en) * 2018-10-15 2020-04-21 北京轩辕联科技有限公司 Extended connection method and extended connection system for Bluetooth device
CN110618876A (en) * 2019-03-21 2019-12-27 天津麒麟信息技术有限公司 Linux and Android coexistence and interaction method based on Feiteng platform and shared kernel
CN110072220A (en) * 2019-03-27 2019-07-30 深圳前海达闼云端智能科技有限公司 Bluetooth expansion equipment, Bluetooth device and Bluetooth expansion system
CN110366039A (en) * 2019-07-12 2019-10-22 四川长虹电器股份有限公司 The compatibility method of different bluetooth mould groups under a kind of android system
CN110933614A (en) * 2019-10-12 2020-03-27 阿里巴巴集团控股有限公司 Communication processing method and device and electronic equipment
CN112309154A (en) * 2020-09-28 2021-02-02 惠州市德赛西威智能交通技术研究院有限公司 Method, equipment and automobile for automatically parking and leaving garage through quick Ble starting

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
意法半导体: "Android原生系统力挺NFC加快蓝牙装置配对", 中国电子商情(基础电子), no. 11 *
方天恩;漆晶;马金辉;刘德庆;张朝阳;: "基于Android的智能蓝牙温度计的研究与设计", 电子技术应用, no. 03 *
许四毛 , 邓小鹏 , 路俊明: "基于DSP的Bluetooth嵌入式系统应用", 电子技术应用, no. 10 *
郑琛瑶;董真杰;: "基于Android和蓝牙通信的信号源控制系统设计", 舰船电子工程, no. 04 *
陈宇华;张涛;吴飞;: "蓝牙室内定位共室分系统的设计", 广东通信技术, no. 06 *
黄国兵;王凯;杜峰;任晓妮;: "使用手机APP实现FTU人机交互界面设计", 单片机与嵌入式系统应用, no. 11 *

Also Published As

Publication number Publication date
CN113543097B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN111338854B (en) Kubernetes cluster-based method and system for quickly recovering data
CA2538865C (en) Method and apparatus for provisioning a communications client on a host device
CN105242959B (en) Method and apparatus for controlling bluetooth load
CN104809006B (en) Software-implemented apparatus and method between a vehicle and a mobile device
CN111045714B (en) Firmware updating method and device, earphone and computer readable storage medium
CN104919833A (en) Efficient headunit communication integration
CA2564370A1 (en) Method and apparatus for enabling discovery and use of a service by a client device
WO2013127274A1 (en) Method for storing application data and terminal device
CN111414249B (en) Vehicle-mounted host system
CN112214186A (en) Information sharing method and vehicle-mounted terminal
CN103049287A (en) Mobile terminal and method for installing application programs of mobile terminal
CN102774321A (en) Vehicle-mounted system and sound control method thereof
CN103786655A (en) HUD (head-up display) device display method, device and system
KR20180024209A (en) Usb communication control method of usb accessory
CN111638894A (en) Software upgrading method and device and computer storage medium
CN112235404B (en) Method and equipment for silent upgrading of earphone and charging box
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN103546422A (en) Vehicular screen multiplexing system, application method thereof and multimedia interaction system
CN113543097B (en) Multi-Bluetooth interaction method and system for Android system
CN104991788A (en) Application operation method and system
CN111708648B (en) Method and system for designing vehicle-machine interconnection application framework
CN102004654A (en) Software installation method and device
CN110764844B (en) Multi-application window custom layout method on vehicle-mounted system
WO2012126214A1 (en) Mobile broadband device and use method thereof
CN102789795B (en) Method and system used for playing vehicle-mounted compact disc and based on Android operating system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant