27 মার্চ, 2025 থেকে, আমরা AOSP তৈরি করতে এবং অবদান রাখতে aosp-main
এর পরিবর্তে android-latest-release
ব্যবহার করার পরামর্শ দিচ্ছি। আরও তথ্যের জন্য, AOSP-তে পরিবর্তনগুলি দেখুন।
ব্লুটুথ
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।

অ্যান্ড্রয়েড একটি ডিফল্ট ব্লুটুথ স্ট্যাক প্রদান করে যা ক্লাসিক ব্লুটুথ এবং ব্লুটুথ লো এনার্জি (BLE) উভয়কেই সমর্থন করে। ব্লুটুথ ব্যবহার করে, অ্যান্ড্রয়েড ডিভাইসগুলি আশেপাশের ব্লুটুথ ডিভাইসগুলির সাথে ডেটা পাঠাতে এবং গ্রহণ করতে ব্যক্তিগত এলাকা নেটওয়ার্ক তৈরি করতে পারে।
অ্যান্ড্রয়েড 4.3 এবং উচ্চতর সংস্করণে, অ্যান্ড্রয়েড ব্লুটুথ স্ট্যাক BLE বাস্তবায়নের ক্ষমতা প্রদান করে। সম্পূর্ণরূপে BLE API ব্যবহার করতে, Android Bluetooth HCI প্রয়োজনীয়তাগুলি অনুসরণ করুন৷ একটি যোগ্যতাসম্পন্ন চিপসেট সহ Android ডিভাইসগুলি ক্লাসিক ব্লুটুথ বা ক্লাসিক ব্লুটুথ এবং BLE উভয়ই প্রয়োগ করতে পারে৷ BLE পুরানো ব্লুটুথ চিপসেটের সাথে পশ্চাদমুখী সামঞ্জস্যপূর্ণ নয়৷
অ্যান্ড্রয়েড 8.0-এ, ব্লুটুথ স্ট্যাকটি ব্লুটুথ 5-এর জন্য সম্পূর্ণরূপে যোগ্য৷ উপলব্ধ ব্লুটুথ 5 বৈশিষ্ট্যগুলি ব্যবহার করার জন্য, ডিভাইসটিতে একটি ব্লুটুথ 5 যোগ্য চিপসেট থাকতে হবে৷
অ্যান্ড্রয়েড আর্কিটেকচার
একটি ব্লুটুথ অ্যাপ বাইন্ডারের মাধ্যমে ব্লুটুথ প্রক্রিয়ার সাথে যোগাযোগ করে। ব্লুটুথ প্রক্রিয়াটি ব্লুটুথ স্ট্যাকের সাথে যোগাযোগের জন্য জাভা নেটিভ ইন্টারফেস (জেএনআই) ব্যবহার করে এবং বিকাশকারীদের বিভিন্ন ব্লুটুথ প্রোফাইলে অ্যাক্সেস প্রদান করে। এই চিত্রটি ব্লুটুথ স্ট্যাকের সাধারণ গঠন দেখায়:

চিত্র 1. অ্যান্ড্রয়েড ব্লুটুথ আর্কিটেকচার।
- অ্যাপ ফ্রেমওয়ার্ক
- অ্যাপ ফ্রেমওয়ার্ক লেভেলে অ্যাপ কোড, যা ব্লুটুথ হার্ডওয়্যারের সাথে ইন্টারঅ্যাক্ট করতে
android.bluetooth
API ব্যবহার করে। অভ্যন্তরীণভাবে, এই কোডটি বাইন্ডার আইপিসি মেকানিজমের মাধ্যমে ব্লুটুথ প্রক্রিয়াকে কল করে। - ব্লুটুথ অ্যাপ
-
packages/modules/Bluetooth/android/app
অবস্থিত ব্লুটুথ অ্যাপটি একটি অ্যান্ড্রয়েড অ্যাপ হিসেবে প্যাকেজ করা হয়েছে এবং অ্যান্ড্রয়েড ফ্রেমওয়ার্ক লেয়ারে ব্লুটুথ প্রোফাইল প্রয়োগ করে। এই অ্যাপটি JNI-এর মাধ্যমে ব্লুটুথ স্ট্যাকে কল করে। - জেএনআই
-
android.bluetooth
এর সাথে যুক্ত JNI কোডটি packages/modules/Bluetooth/android/app/jni
এ অবস্থিত। JNI কোড ব্লুটুথ স্ট্যাকের মধ্যে কল করে যখন কিছু ব্লুটুথ অপারেশন হয়, যেমন যখন ডিভাইসগুলি আবিষ্কৃত হয়। - ব্লুটুথ স্ট্যাক
- ডিফল্ট ব্লুটুথ স্ট্যাকটি AOSP-এ প্রদান করা হয় এবং
packages/modules/Bluetooth/system
অবস্থিত। স্ট্যাকটি জেনেরিক ব্লুটুথ HAL প্রয়োগ করে এবং এটিকে এক্সটেনশন এবং কনফিগারেশন পরিবর্তনের সাথে কাস্টমাইজ করে। - বিক্রেতা বাস্তবায়ন
- বিক্রেতা ডিভাইসগুলি HAL ইন্টারফেস সংজ্ঞা ভাষা (HIDL) ব্যবহার করে ব্লুটুথ স্ট্যাকের সাথে যোগাযোগ করে।
এইচআইডিএল
HIDL ব্লুটুথ স্ট্যাক এবং বিক্রেতা বাস্তবায়নের মধ্যে ইন্টারফেস সংজ্ঞায়িত করে। ব্লুটুথ HIDL ফাইলগুলি তৈরি করতে, HIDL জেনারেশন টুলে ব্লুটুথ ইন্টারফেস ফাইলগুলি পাস করুন৷ ইন্টারফেস ফাইলগুলি hardware/interfaces/bluetooth
এ অবস্থিত।
ব্লুটুথ স্ট্যাক ডেভেলপমেন্ট
অ্যান্ড্রয়েড ব্লুটুথ স্ট্যাক একটি সম্পূর্ণ যোগ্য ব্লুটুথ স্ট্যাক। QDID 169365- এর অধীনে ব্লুটুথ SIG ওয়েবসাইটে (সাইন-ইন প্রয়োজন) যোগ্যতার তালিকা রয়েছে।
মূল ব্লুটুথ স্ট্যাক packages/modules/Bluetooth
মধ্যে থাকে। AOSP-তে উন্নয়ন ঘটে এবং অবদানগুলিকে স্বাগত জানানো হয়।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-09-05 UTC-তে শেষবার আপডেট করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-09-05 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["Android provides a default Bluetooth stack that supports both Classic\nBluetooth and Bluetooth Low Energy (BLE). Using Bluetooth, Android devices\ncan create personal area networks to send and receive data with nearby\nBluetooth devices.\n\nIn Android 4.3 and higher, the Android Bluetooth stack provides the ability\nto implement BLE. To fully use the BLE APIs, follow the\n[Android Bluetooth HCI Requirements](/docs/core/connect/bluetooth/hci_requirements).\nAndroid devices with a qualified chipset can implement either Classic\nBluetooth or both Classic Bluetooth and BLE. BLE isn't backward compatible\nwith older Bluetooth chipsets.\n\nIn Android 8.0, the Bluetooth stack is fully qualified for Bluetooth 5. To\nuse available Bluetooth 5 features, the device needs to have a Bluetooth 5\nqualified chipset.\n\nAndroid architecture\n\nA Bluetooth app communicates with the Bluetooth process through Binder. The\nBluetooth process uses Java Native Interface (JNI) to communicate with the\nBluetooth stack and provides developers with access to various Bluetooth\nprofiles. This diagram shows the general structure of the Bluetooth stack:\n\n**Figure 1.** Android Bluetooth architecture.\n\napp framework\n: At the app framework level is app code, which uses the\n [`android.bluetooth`](http://developer.android.com/reference/android/bluetooth/package-summary)\n APIs to interact with the Bluetooth hardware. Internally, this code calls\n the Bluetooth process through the Binder IPC mechanism.\n\nBluetooth app\n: The Bluetooth app, located in `packages/modules/Bluetooth/android/app`,\n is packaged as an Android app and implements the Bluetooth profiles at the\n Android framework layer. This app calls into the Bluetooth stack through\n JNI.\n\nJNI\n: The JNI code associated with `android.bluetooth` is located in\n `packages/modules/Bluetooth/android/app/jni`. The JNI code calls into the\n Bluetooth stack when certain Bluetooth operations occur, such as when\n devices are discovered.\n\nBluetooth stack\n: The default Bluetooth stack is provided in AOSP and is located in\n `packages/modules/Bluetooth/system`. The stack implements the generic\n Bluetooth HAL and customizes it with extensions and configuration changes.\n\nvendor implementation\n: Vendor devices interact with the Bluetooth stack using the HAL interface\n definition language (HIDL).\n\nHIDL\n\n[HIDL](/docs/core/architecture/hidl) defines the interface between the\nBluetooth stack and the vendor implementation. To generate the Bluetooth\nHIDL files, pass the Bluetooth interface files into the HIDL generation\ntool. The interface files are located in\n[`hardware/interfaces/bluetooth`](https://android.googlesource.com/platform/hardware/interfaces/+/android16-release/bluetooth/).\n\nBluetooth stack development\n\nThe Android Bluetooth stack is a fully qualified Bluetooth stack. The\nqualification listing is on the Bluetooth SIG website (requires sign-in)\nunder [QDID 169365](https://launchstudio.bluetooth.com/ListingDetails/130825).\n\nThe core Bluetooth stack resides in\n[`packages/modules/Bluetooth`](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Bluetooth/).\nDevelopment happens in AOSP, and contributions are welcome."]]