
{"id":10182,"date":"2022-06-21T09:11:29","date_gmt":"2022-06-21T09:11:29","guid":{"rendered":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/"},"modified":"2024-12-04T14:10:50","modified_gmt":"2024-12-04T14:10:50","slug":"bluetooth_subsystem","status":"publish","type":"page","link":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/","title":{"rendered":"Bluetooth"},"content":{"rendered":"\n<h2 class=\"wp-block-heading wp-main-header\">Introduction<\/h2>\n\n\n<p>Bluetooth in RDK, provides short range wireless connectivity between RDK devices and consumer electronics devices.&nbsp;RDK Bluetooth architecture is designed to support any Bluetooth stack.<br \/>The Bluetooth stack currently supports common Bluetooth profile such as A2DP, AVRCP, and can be extended to various profiles such as HID, PAN, etc..&nbsp;Bluetooth may be enabled directly on capable RDK boxes or indirectly via USB-to-Bluetooth adaptor.<\/p>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">Features supported in RDK<\/h2>\n\n\n<div class=\"table-wrap\">\n\n\n<table class=\"relative-table wrapped confluenceTable\"><colgroup><col style=\"width: 24.3805%;\"><col style=\"width: 75.6195%;\"><\/colgroup><tbody><tr><th class=\"confluenceTh\">Bluetooth feature in RDK<\/th><th class=\"confluenceTh\">Feature Descriptions<\/th><\/tr><tr><td class=\"confluenceTd\">Audio Encoding<\/td><td class=\"confluenceTd\">Detail SBC (sub-band coding) and aptX encoding (Bluetooth chip, in software, or in SoC hardware).<\/td><\/tr><tr><td class=\"confluenceTd\">Audio Output Muting<\/td><td class=\"confluenceTd\">The Bluetooth audio output may be muted independently of other audio outputs (e.g. HDMI)<\/td><\/tr><tr><td class=\"confluenceTd\">Audio Input (Settop as AD2P SNK)<\/td><td class=\"confluenceTd\">Using RDK device speakers over bluetooth i.e transmitting audio input back to a speaker connected with RDK device.<\/td><\/tr><tr><td class=\"confluenceTd\">Audio Output Routing<\/td><td class=\"confluenceTd\">Detail PCM audio routing to Bluetooth A2DP SRC, It uses H\/W accelerations, S\/W processing, RMF involvement on streaming audio\/video contents.<\/td><\/tr><tr><td class=\"confluenceTd\">Audio Output Sources<\/td><td class=\"confluenceTd\">Bluetooth audio may be different than HDMI audio (e.g. secondary audio program, application sourced audio such as Pandora, voice navigation audio, etc).<\/td><\/tr><tr><td class=\"confluenceTd\">Dual Decode<\/td><td class=\"confluenceTd\">Supports ability to simultaneously output one audio stream to HDMI and a different audio stream to Bluetooth<\/td><\/tr><tr><td class=\"confluenceTd\">Power Control<\/td><td class=\"confluenceTd\">In future, the power state of each Bluetooth connected device and the Bluetooth subsystem can be controlled<\/td><\/tr><tr><td class=\"confluenceTd\">Audio\/Video Remote Control Profile (AVRCP)<\/td><td class=\"confluenceTd\">Controller (Remote Control) sends mute and volume commands to target. AV\/C commands are defined by the 1394 trade association<\/td><\/tr><\/tbody><\/table>\n\n\n<\/div>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">Bluetooth in RDK &#8211; Block Diagram<\/h2>\n\n\n<p>Bluetooth in RDK provides Interface API and implementation to abstract Bluetooth stack and it provides&nbsp;5 layers in the BTR (Bluetooth-RDK) stack.<\/p>\n<p>1.&nbsp;<strong>Bluetooth daemon (Bluez based)<\/strong>&nbsp;&#8211; Interacts with kernel layer bluetooth modules<br \/>2.&nbsp;<strong>Bt-Ifce<\/strong>&nbsp;(Abstracts Bluez versions and servers as a HAL for other Bluetooth stacks) &#8211; Interacts with Bluez over DBus<br \/>3. <strong>Bluetooth HAL (BTRCore)<\/strong>&nbsp;&#8211; Provide API to perform Bluetooth operations by abstracting and simplifying the complexities of&nbsp;<strong>Bt-Ifce (&amp; BLuez)<br \/><\/strong>4.&nbsp;<strong>BTRMgr<\/strong>&nbsp;&#8211;&nbsp; Utilize API&#8217;s exposed by&nbsp;<strong>BTRCore<\/strong>&nbsp;to perform high level Bluetooth ops like Scan, Pair, Connect and achieve usecases like AudioOut.&nbsp;<br \/>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exposes interfaces for external entities to perform BTRMgr related operation using IARM<br \/>5.&nbsp;<strong>ServiceManager [BluetoothService]<\/strong>&nbsp;&#8211; Interacts with BTRMgr based on Application requirements using IARM.&nbsp;Guide applications are interact with Service Manager.<\/p>\n<p>6. <strong>RDK Apps\/Diagnostics<\/strong> &#8211; HTML-5 based UI applications to make use of Bluetooth service using Service Manager APIs.<\/p>\n<p><\/p>\n<\/p>\n<div class=\"conf-macro output-block\" data-hasbody=\"false\" data-macro-name=\"drawio\">\n<div id=\"drawio-macro-content-163eec14-0c80-4da7-aed5-da641a1ee83c\"> <\/div>\n<\/p><\/div>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">Bluetooth Architecture<\/h2>\n\n\n<p>Bluetooth Manager and Bluetooth HAL [BTRCore] is that Bluetooth Manager implements the BT HAL [BTRCore] API.&nbsp; Then BT HAL [BTRCore] integrates and manages the BlueZ stack though the D-BUS interface.<\/p>\n<p><\/p>\n<\/p>\n<div class=\"conf-macro output-block\" data-hasbody=\"false\" data-macro-name=\"drawio\">\n<div id=\"drawio-macro-content-de20369b-03ca-4c91-b368-6868481f0bac\"> <\/div>\n<p>\t<script type=\"text\/javascript\">\/\/<![CDATA[\n\n\t(function()\n\t{\n\t  function startViewer()\n\t  {\n\t\t$ = AJS.$;\n\t\t\n\t\tvar graphContainer =  document.getElementById('drawio-macro-content-de20369b-03ca-4c91-b368-6868481f0bac');\n\t\tvar isBoardMacro = graphContainer.parentNode.getAttribute('data-macro-name') === 'drawio-sketch';\n\t\tvar serverConfig = {};\n\t\t\n\t\t\t\tserverConfig['emailpreview'] = '1'; <\/p>\n<p>\t\tDrawioProperties = { contextPath : AJS.contextPath(), buildNumber : 8703, serverConfig : serverConfig };<\/p>\n<p>\t\ttry<br \/>\n\t\t{<br \/>\n\t\t\tDrawioProperties.uiConfig = JSON.parse(mxUtils.decodeHtml('$uiConfig'));<br \/>\n\t\t}<br \/>\n\t\tcatch (e)<br \/>\n\t\t{<br \/>\n\t\t\tDrawioProperties.uiConfig = {};<br \/>\n\t\t}<\/p>\n<p>\t\tvar readerOpts = {};<br \/>\n\t\t\t\t\treaderOpts.loadUrl = '' + '\/rest\/drawio\/1.0\/diagram\/crud\/%42%6C%75%65%74%6F%6F%74%68%32%2E%64%72%61%77%69%6F\/211787706?revision=1';<br \/>\n\t\t\treaderOpts.imageUrl = '' + '\/download\/attachments\/211787706\/Bluetooth2.drawio.png' + '?version=1&api=v2';<br \/>\n\t\t\treaderOpts.editUrl = '' + '\/plugins\/drawio\/addDiagram.action?ceoId=211787706&owningPageId=211787706&diagramName=%42%6C%75%65%74%6F%6F%74%68%32%2E%64%72%61%77%69%6F&revision=1&diagramDisplayName=' + (isBoardMacro ? '&ui=sketch&saveAndExit=1&noSaveBtn=1' : '');<br \/>\n\t\t\t\treaderOpts.editable = true;<br \/>\n\t\treaderOpts.canComment = true;<br \/>\n\t\treaderOpts.stylePath = STYLE_PATH;<br \/>\n\t\treaderOpts.stencilPath = STENCIL_PATH;<br \/>\n\t\treaderOpts.imagePath = IMAGE_PATH + '\/reader';<br \/>\n\t\treaderOpts.border = true;<br \/>\n\t\treaderOpts.width = 'null';<br \/>\n\t\treaderOpts.simpleViewer = false;<br \/>\n\t\treaderOpts.tbstyle = 'top';<br \/>\n\t\treaderOpts.links = 'auto';<br \/>\n\t\treaderOpts.lightbox = true;<br \/>\n\t\treaderOpts.resourcePath = ATLAS_RESOURCE_BASE + '\/resources\/viewer';<br \/>\n\t\treaderOpts.disableButtons = false;<br \/>\n\t\treaderOpts.zoomToFit = true;<br \/>\n\t\treaderOpts.language = 'en';<br \/>\n\t\treaderOpts.licenseStatus = 'OK';<br \/>\n\t\treaderOpts.contextPath = AJS.contextPath();<br \/>\n\t\treaderOpts.diagramName = decodeURIComponent('%42%6C%75%65%74%6F%6F%74%68%32%2E%64%72%61%77%69%6F');<br \/>\n\t\treaderOpts.diagramDisplayName = '';<br \/>\n\t\treaderOpts.aspect = '';<br \/>\n\t\treaderOpts.ceoName = 'Bluetooth (BT)';<br \/>\n\t\treaderOpts.attVer = '1';\/\/TODO remove this as it's duplicated by the line below<br \/>\n\t\treaderOpts.revision = '1';<br \/>\n\t\treaderOpts.attId = '211787711';<br \/>\n\t\treaderOpts.lastModifierName = 'Ashraf Bhanu Kothapeta';<br \/>\n\t\treaderOpts.lastModified = '2022-06-21 09:10:25.0';<br \/>\n\t\treaderOpts.creatorName = 'Ashraf Bhanu Kothapeta';<br \/>\n\t\treaderOpts.maxScale = parseFloat('1');<\/p>\n<p>\t\t\/\/Embed macro specific info<br \/>\n\t\treaderOpts.extSrvIntegType = '';<br \/>\n\t\treaderOpts.gClientId = '';<br \/>\n\t\treaderOpts.oClientId = '';<br \/>\n\t\treaderOpts.service = '';<br \/>\n\t\treaderOpts.sFileId = '';<br \/>\n\t\treaderOpts.odriveId = '';<br \/>\n\t\treaderOpts.diagramUrl = '';<br \/>\n\t\treaderOpts.csvFileUrl = '';<br \/>\n\t\treaderOpts.pageId = '' || Confluence.getContentId();<br \/>\n\t\treaderOpts.aspectHash = '$aspectHash';<br \/>\n\t\treaderOpts.isTemplate = '' == 'true';<\/p>\n<p>\t\tif (readerOpts.width == '')<br \/>\n\t\t{<br \/>\n\t\t\treaderOpts.width = null;<br \/>\n\t\t}<\/p>\n<p>\t\t\t\t\t\/\/ LATER: Check if delayed loading of resources can be used for image placeholder mode<br \/>\n\t\t\tvar viewerPromise = createViewer(graphContainer, readerOpts);<\/p>\n<p>\t\t\tif(readerOpts.editable)<br \/>\n\t\t\t{<br \/>\n\t\t\t\t$(graphContainer).data('viewerConfig', readerOpts);<br \/>\n\t\t\t\t$(graphContainer).on('drawioViewerUpdate', updateDrawioViewer);<br \/>\n\t\t\t}<br \/>\n\t\t\t  };<\/p>\n<p>\t  mxscript(ATLAS_RESOURCE_BASE + '\/js\/atlas-viewer.min.js', function()<br \/>\n\t  {<br \/>\n\t\t  mxLoadScripts([ATLAS_RESOURCE_BASE + '\/js\/EmbedUtils.js',<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/mxViewer.js',<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/DrawioComments.js',<br \/>\n\/\/\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/stencils.min.js', \/\/ Removed to reduce page load time (indevidual stencils are loaded on demand)<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/shapes-14-6-5.min.js',<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/mxEditorEventListener.js'], startViewer);<br \/>\n\t  });<br \/>\n\t})();<\/p>\n<p>\/\/]]><br \/>\n<\/script><\/div>\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">BlueZ D-Bus Communication<\/h2>\n\n\n<p><\/p>\n<\/p>\n<div class=\"conf-macro output-block\" data-hasbody=\"false\" data-macro-name=\"drawio\">\n<div id=\"drawio-macro-content-cc9ecad3-84ea-4b51-a1d8-0441ad90b058\"> <\/div>\n<\/p><\/div>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">Bluetooth &#8211; Service Manager<\/h2>\n\n\n<p>Bluetooth Service Manager component in RDK exposes Java scripts APIs against each of the Core Bluetooth features supported in the current implementation\u00a0Javascript API&#8217;s have been exposed to invoke IARM communication in the context of a browser which have a Javascript engine when we have HTML\/HTML5\/Browser based applications.\u00a0Applications which don&#8217;t have a Java-script engine should also be able to invoke Service manager methods\/IARM methods to communicate with BTRMgr.<\/p>\n<p>Provides methods and events to support the following features,<\/p>\n<ul>\n<li>Device discovery<\/li>\n<li>Pairing with the remote device<\/li>\n<li>Connecting to the device after authentication.<\/li>\n<li>Choose Audio stream to be streamed to other bluetooth device.<\/li>\n<li>Provides method to select appropriate audio sink<\/li>\n<\/ul>\n<p>Contains Methods and Events to communicate with the Bluetooth manager<br \/>Service Manager will send event in case external Bluetooth adapter is inserted or removed, or it is requested for pairing.<\/p>\n<h3 class=\"wp-sub-header\">List of API &amp; Events<\/h3>\n<p>Refer to\u00a0<a href=\"https:\/\/wiki.rdkcentral.com\/display\/RDK\/Bluetooth+Service\" rel=\"nofollow\">Bluetooth APIs<\/a> for a complete list of Bluetooth APIs and events exposed by service manager. The given link is in wiki.rdkcentral.com and need rdk license credentials to access the same.<\/p>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">Bluetooth Manager (BTRMgr)<\/h2>\n\n\n<p>Bluetooth Manager (An RDK component) interfaces with BlueZ through the D-Bus API, so there is no direct linking of the BlueZ library with Bluetooth Manager.&nbsp;BTRCore uses Bt-Ifce (which serves as Bluetooth HAL) interfaces with BlueZ.<\/p>\n<p>BTRMgr Provides an interface to port any Bluetooth stack on RDK&nbsp;Provides an interface to port any Bluetooth application on RDK<\/p>\n<p>The bluetooth_mgr daemon manages Bluetooth services in RDK. It uses IARM Bus to facilitate communication between the application and Bluetooth driver through Bluetooth Manager component.&nbsp;<\/p>\n<p><strong>Bluetooth HAL Interface:<\/strong><\/p>\n<p>Bluetooth HAL interface Provides an software abstraction layer that interfaces with the actual Bluetooth implementation and\/or drivers.&nbsp;RDK Bluetooth HAL layer enables projects to pick whatever Bluetooth profiles as per their requirements.&nbsp;Bluetooth HAL uses BlueZ5.42 stack which is a quite popular Linux Bluetooth library.<\/p>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">BlueZ In RDK<\/h2>\n\n\n<ul>\n<li>BlueZ is a well known Open Source project used to support core Bluetooth layers and protocols on Linux systems.<\/li>\n<li>BlueZ is multi processing safe, supports multiple Bluetooth devices, and provides device and service level security.<\/li>\n<li>Supported Profiles: A2DP 1.3, AVRCP 1.5, DI 1.3, HDP 1.0, HID 1.0, PAN 1.0, SPP 1.1<\/li>\n<li>The interface layer is based off of DBUS, so there is no direct linking with the BlueZ daemon.<\/li>\n<li>Currently BlueZ5.42 stack is integrated with RDK &amp; it is managed by Bluetooth HAL component.<\/li>\n<\/ul>\n<p><strong>Some Bluetooth supported gstreamer plugins used by BlueZ 5:<\/strong><\/p>\n<p><\/p>\n<div class=\"table-wrap\">\n\n\n<table class=\"wrapped confluenceTable\"><colgroup><col><col><\/colgroup><tbody><tr><td class=\"highlight-grey confluenceTd\" data-highlight-colour=\"grey\"><p><strong>Gstreamer Elements<\/strong><\/p><\/td><td class=\"highlight-grey confluenceTd\" data-highlight-colour=\"grey\"><p><strong>Descriptions<\/strong><\/p><\/td><\/tr><tr><td class=\"confluenceTd\"><p>sbcenc<\/p><\/td><td class=\"confluenceTd\"><p>Bluetooth SBC (sub-band coding) encoder<\/p><\/td><\/tr><tr><td class=\"confluenceTd\"><p>sbcdec<\/p><\/td><td class=\"confluenceTd\"><p>Bluetooth SBC (sub-band coding) decoder<\/p><\/td><\/tr><tr><td class=\"confluenceTd\"><p>sbcparse<\/p><\/td><td class=\"confluenceTd\"><p>The sbcparse&nbsp;element&nbsp;will parse a Bluetooth SBC audio stream into frames and timestamp them properly<\/p><\/td><\/tr><tr><td class=\"confluenceTd\"><p>avdtpsink<\/p><\/td><td class=\"confluenceTd\"><p>Bluetooth AVDTP sink<\/p><\/td><\/tr><tr><td class=\"confluenceTd\"><p>a2dpsink<\/p><\/td><td class=\"confluenceTd\"><p>Bluetooth A2DP sink for streaming audio<\/p><\/td><\/tr><tr><td class=\"confluenceTd\"><p>rtpsbcpay<\/p><\/td><td class=\"confluenceTd\"><p>RTP packet payload maker<\/p><\/td><\/tr><\/tbody><\/table>\n\n\n<\/div>\n\n\n<h2 class=\"wp-block-heading wp-main-header\"><span>Use Case : Bluetooth Device Discovery<\/span><\/h2>\n\n\n<p><\/p>\n<\/p>\n<div class=\"conf-macro output-block\" data-hasbody=\"false\" data-macro-name=\"drawio\">\n<div id=\"drawio-macro-content-9cedf8e7-4c04-4e9d-ae3d-f7c51c61be2b\"> <\/div>\n<p>\t<script type=\"text\/javascript\">\/\/<![CDATA[\n\n\t(function()\n\t{\n\t  function startViewer()\n\t  {\n\t\t$ = AJS.$;\n\t\t\n\t\tvar graphContainer =  document.getElementById('drawio-macro-content-9cedf8e7-4c04-4e9d-ae3d-f7c51c61be2b');\n\t\tvar isBoardMacro = graphContainer.parentNode.getAttribute('data-macro-name') === 'drawio-sketch';\n\t\tvar serverConfig = {};\n\t\t\n\t\t\t\tserverConfig['emailpreview'] = '1'; <\/p>\n<p>\t\tDrawioProperties = { contextPath : AJS.contextPath(), buildNumber : 8703, serverConfig : serverConfig };<\/p>\n<p>\t\ttry<br \/>\n\t\t{<br \/>\n\t\t\tDrawioProperties.uiConfig = JSON.parse(mxUtils.decodeHtml('$uiConfig'));<br \/>\n\t\t}<br \/>\n\t\tcatch (e)<br \/>\n\t\t{<br \/>\n\t\t\tDrawioProperties.uiConfig = {};<br \/>\n\t\t}<\/p>\n<p>\t\tvar readerOpts = {};<br \/>\n\t\t\t\t\treaderOpts.loadUrl = '' + '\/rest\/drawio\/1.0\/diagram\/crud\/%42%6C%75%65%74%6F%6F%74%68%35%2E%64%72%61%77%69%6F\/211787706?revision=1';<br \/>\n\t\t\treaderOpts.imageUrl = '' + '\/download\/attachments\/211787706\/Bluetooth5.drawio.png' + '?version=1&api=v2';<br \/>\n\t\t\treaderOpts.editUrl = '' + '\/plugins\/drawio\/addDiagram.action?ceoId=211787706&owningPageId=211787706&diagramName=%42%6C%75%65%74%6F%6F%74%68%35%2E%64%72%61%77%69%6F&revision=1&diagramDisplayName=' + (isBoardMacro ? '&ui=sketch&saveAndExit=1&noSaveBtn=1' : '');<br \/>\n\t\t\t\treaderOpts.editable = true;<br \/>\n\t\treaderOpts.canComment = true;<br \/>\n\t\treaderOpts.stylePath = STYLE_PATH;<br \/>\n\t\treaderOpts.stencilPath = STENCIL_PATH;<br \/>\n\t\treaderOpts.imagePath = IMAGE_PATH + '\/reader';<br \/>\n\t\treaderOpts.border = true;<br \/>\n\t\treaderOpts.width = 'null';<br \/>\n\t\treaderOpts.simpleViewer = false;<br \/>\n\t\treaderOpts.tbstyle = 'top';<br \/>\n\t\treaderOpts.links = 'auto';<br \/>\n\t\treaderOpts.lightbox = true;<br \/>\n\t\treaderOpts.resourcePath = ATLAS_RESOURCE_BASE + '\/resources\/viewer';<br \/>\n\t\treaderOpts.disableButtons = false;<br \/>\n\t\treaderOpts.zoomToFit = true;<br \/>\n\t\treaderOpts.language = 'en';<br \/>\n\t\treaderOpts.licenseStatus = 'OK';<br \/>\n\t\treaderOpts.contextPath = AJS.contextPath();<br \/>\n\t\treaderOpts.diagramName = decodeURIComponent('%42%6C%75%65%74%6F%6F%74%68%35%2E%64%72%61%77%69%6F');<br \/>\n\t\treaderOpts.diagramDisplayName = '';<br \/>\n\t\treaderOpts.aspect = '';<br \/>\n\t\treaderOpts.ceoName = 'Bluetooth (BT)';<br \/>\n\t\treaderOpts.attVer = '1';\/\/TODO remove this as it's duplicated by the line below<br \/>\n\t\treaderOpts.revision = '1';<br \/>\n\t\treaderOpts.attId = '211787715';<br \/>\n\t\treaderOpts.lastModifierName = 'Ashraf Bhanu Kothapeta';<br \/>\n\t\treaderOpts.lastModified = '2022-06-21 09:10:25.0';<br \/>\n\t\treaderOpts.creatorName = 'Ashraf Bhanu Kothapeta';<br \/>\n\t\treaderOpts.maxScale = parseFloat('1');<\/p>\n<p>\t\t\/\/Embed macro specific info<br \/>\n\t\treaderOpts.extSrvIntegType = '';<br \/>\n\t\treaderOpts.gClientId = '';<br \/>\n\t\treaderOpts.oClientId = '';<br \/>\n\t\treaderOpts.service = '';<br \/>\n\t\treaderOpts.sFileId = '';<br \/>\n\t\treaderOpts.odriveId = '';<br \/>\n\t\treaderOpts.diagramUrl = '';<br \/>\n\t\treaderOpts.csvFileUrl = '';<br \/>\n\t\treaderOpts.pageId = '' || Confluence.getContentId();<br \/>\n\t\treaderOpts.aspectHash = '$aspectHash';<br \/>\n\t\treaderOpts.isTemplate = '' == 'true';<\/p>\n<p>\t\tif (readerOpts.width == '')<br \/>\n\t\t{<br \/>\n\t\t\treaderOpts.width = null;<br \/>\n\t\t}<\/p>\n<p>\t\t\t\t\t\/\/ LATER: Check if delayed loading of resources can be used for image placeholder mode<br \/>\n\t\t\tvar viewerPromise = createViewer(graphContainer, readerOpts);<\/p>\n<p>\t\t\tif(readerOpts.editable)<br \/>\n\t\t\t{<br \/>\n\t\t\t\t$(graphContainer).data('viewerConfig', readerOpts);<br \/>\n\t\t\t\t$(graphContainer).on('drawioViewerUpdate', updateDrawioViewer);<br \/>\n\t\t\t}<br \/>\n\t\t\t  };<\/p>\n<p>\t  mxscript(ATLAS_RESOURCE_BASE + '\/js\/atlas-viewer.min.js', function()<br \/>\n\t  {<br \/>\n\t\t  mxLoadScripts([ATLAS_RESOURCE_BASE + '\/js\/EmbedUtils.js',<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/mxViewer.js',<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/DrawioComments.js',<br \/>\n\/\/\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/stencils.min.js', \/\/ Removed to reduce page load time (indevidual stencils are loaded on demand)<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/shapes-14-6-5.min.js',<br \/>\n\t\t\t  ATLAS_RESOURCE_BASE + '\/js\/mxEditorEventListener.js'], startViewer);<br \/>\n\t  });<br \/>\n\t})();<\/p>\n<p>\/\/]]><br \/>\n<\/script><\/div>\n<p><\/p>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">RDK Bluetooth A2DP Use Case &#8211; Audio Streaming<\/h2>\n\n\n<ul>\n<li>Set-top enables Bluetooth audio output (A2DP SRC).<\/li>\n<li>Set-top uses Bluetooth periodic Inquiry procedure to discover A2DP SNK.<\/li>\n<li>If user enables Bluetooth audio output, set-top discovers A2DP SNK but set-top and application has not registered to take control of Bluetooth pairing then:<\/li>\n<li>set-top prompts user to select A2DP SNK device to pair and pairs upon user selection.<\/li>\n<li>Set-top encodes audio output to A2DP SNK according to A2DP SNK&#8217;s capabilities.<\/li>\n<li>Set-top streams primary audio to A2DP SNK.<\/li>\n<li>Set-top provides application layer control over Bluetooth enable\/disable state.<\/li>\n<li>Set-top notifies application via Bluetooth Service API when Bluetooth device is discovered.<\/li>\n<li>Set-top logs connect\/disconnect to\/from Bluetooth device (A2DP SNK)<\/li>\n<\/ul>\n\n\n<h2 class=\"wp-block-heading wp-main-header\">API Documentation<\/h2>\n\n\n<p>\u00a0To know more about SoC\/Application level APIs details use in RDK, refer the link\u00a0\u00a0<a href=\"https:\/\/wiki.rdkcentral.com\/doxygen\/rdkv-opensourced\/de\/db1\/group___b_l_u_e_t_o_o_t_h___c_o_r_e.html\" rel=\"nofollow\">BLUETOOTH API Documentation<\/a><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction Bluetooth in RDK, provides short range wireless connectivity between RDK devices and consumer electronics [&hellip;]<\/p>\n","protected":false},"author":28,"featured_media":0,"parent":10180,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-10182","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bluetooth - RDK Documentation Portal | Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bluetooth - RDK Documentation Portal | Documentation\" \/>\n<meta property=\"og:description\" content=\"Introduction Bluetooth in RDK, provides short range wireless connectivity between RDK devices and consumer electronics [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/\" \/>\n<meta property=\"og:site_name\" content=\"RDK Documentation Portal | Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-04T14:10:50+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/\",\"url\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/\",\"name\":\"Bluetooth - RDK Documentation Portal | Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/#website\"},\"datePublished\":\"2022-06-21T09:11:29+00:00\",\"dateModified\":\"2024-12-04T14:10:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Documentation\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"RDK Entertainment\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Sub-Systems\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/?page_id=10158\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Network\",\"item\":\"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/\"},{\"@type\":\"ListItem\",\"position\":6,\"name\":\"Bluetooth\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/developer.rdkcentral.com\/documentation\/#website\",\"url\":\"https:\/\/developer.rdkcentral.com\/documentation\/\",\"name\":\"RDK Documentation Portal | Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/developer.rdkcentral.com\/documentation\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bluetooth - RDK Documentation Portal | Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/","og_locale":"en_US","og_type":"article","og_title":"Bluetooth - RDK Documentation Portal | Documentation","og_description":"Introduction Bluetooth in RDK, provides short range wireless connectivity between RDK devices and consumer electronics [&hellip;]","og_url":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/","og_site_name":"RDK Documentation Portal | Documentation","article_modified_time":"2024-12-04T14:10:50+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/","url":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/","name":"Bluetooth - RDK Documentation Portal | Documentation","isPartOf":{"@id":"https:\/\/developer.rdkcentral.com\/documentation\/#website"},"datePublished":"2022-06-21T09:11:29+00:00","dateModified":"2024-12-04T14:10:50+00:00","breadcrumb":{"@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/bluetooth_subsystem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/developer.rdkcentral.com\/documentation\/"},{"@type":"ListItem","position":2,"name":"Documentation","item":"https:\/\/developer.rdkcentral.com\/documentation\/"},{"@type":"ListItem","position":3,"name":"RDK Entertainment","item":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/"},{"@type":"ListItem","position":4,"name":"Sub-Systems","item":"https:\/\/developer.rdkcentral.com\/documentation\/?page_id=10158"},{"@type":"ListItem","position":5,"name":"Network","item":"https:\/\/developer.rdkcentral.com\/documentation\/documentation\/rdk_video_documentation\/sub-systems\/network_subsystem\/"},{"@type":"ListItem","position":6,"name":"Bluetooth"}]},{"@type":"WebSite","@id":"https:\/\/developer.rdkcentral.com\/documentation\/#website","url":"https:\/\/developer.rdkcentral.com\/documentation\/","name":"RDK Documentation Portal | Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/developer.rdkcentral.com\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/comments?post=10182"}],"version-history":[{"count":4,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10182\/revisions"}],"predecessor-version":[{"id":11894,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10182\/revisions\/11894"}],"up":[{"embeddable":true,"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/pages\/10180"}],"wp:attachment":[{"href":"https:\/\/developer.rdkcentral.com\/documentation\/wp-json\/wp\/v2\/media?parent=10182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}