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-08-22 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-08-22 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Bluetooth\n\nAndroid provides a default Bluetooth stack that supports both Classic Bluetooth and Bluetooth\nLow Energy (BLE). Using Bluetooth, Android devices can create personal area networks to send\nand receive data with nearby Bluetooth devices.\n\n\nIn Android 4.3 and higher, the Android Bluetooth stack provides the ability to implement\nBLE. To fully use the BLE APIs, follow the\n[Android Bluetooth HCI Requirements](/docs/core/connect/bluetooth/hci_requirements). Android devices with a qualified chipset can implement either Classic Bluetooth or both\nClassic Bluetooth and BLE. BLE isn't backward compatible with older Bluetooth chipsets.\n\n\nIn Android 8.0, the Bluetooth stack is fully qualified for Bluetooth 5. To use\navailable Bluetooth 5 features, the device needs to have a Bluetooth 5 qualified chipset.\n\nAndroid architecture\n--------------------\n\n\nA Bluetooth app communicates with the Bluetooth process through Binder. The Bluetooth\nprocess uses Java Native Interface (JNI) to communicate with the Bluetooth stack and provides\ndevelopers with access to various Bluetooth profiles. This diagram shows the general\nstructure of the Bluetooth stack:\n\n**Figure 1.** Android Bluetooth architecture.\n\napp framework\n:\n At the app framework level is app code, which uses the\n [`android.bluetooth`](http://developer.android.com/reference/android/bluetooth/package-summary.html)\n APIs to interact with the Bluetooth hardware. Internally, this code calls the Bluetooth\n process through the Binder IPC mechanism.\n\nBluetooth app\n:\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 Android framework\n layer. This app calls into the Bluetooth stack through JNI.\n\nJNI\n:\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 devices are\n discovered.\n\nBluetooth stack\n:\n The default Bluetooth stack is provided in AOSP and is located in\n `packages/modules/Bluetooth/system`. The stack implements the generic Bluetooth\n HAL and customizes it with extensions and configuration changes.\n\nvendor implementation\n:\n Vendor devices interact with the Bluetooth stack using the HAL interface definition\n language (HIDL).\n\n### HIDL\n\n\n[HIDL](/docs/core/architecture/hidl) defines the interface between the\nBluetooth stack and the vendor implementation. To generate the Bluetooth HIDL files, pass the\nBluetooth interface files into the HIDL generation tool. The interface files are located in\n[`hardware/interfaces/bluetooth`](https://android.googlesource.com/platform/hardware/interfaces/+/android16-release/bluetooth/).\n\n### Bluetooth stack development\n\n\nThe Android Bluetooth stack is a fully qualified Bluetooth stack. The qualification listing is\non the Bluetooth SIG website (requires sign-in) under\n[QDID 169365](https://launchstudio.bluetooth.com/ListingDetails/130825).\n\n\nThe core Bluetooth stack resides in\n[packages/modules/Bluetooth](https://cs.android.com/android/platform/superproject/+/android-latest-release:packages/modules/Bluetooth/). Development happens in AOSP, and contributions are welcome."]]