<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Bluetooth communication on Thingy91 (Peripheral mode)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90624/bluetooth-communication-on-thingy91-peripheral-mode</link><description>Hi. 
 I&amp;#39;m trying to add Bluetooth capability to the &amp;quot;Asset Tracker V2&amp;quot; project. I was able to do it on the nRF9160DK board. I could not find a working example to make the Bluetooth work on Thingy91! I&amp;#39;ve tried these links: 
 https://devzone.nordicsemi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Aug 2022 13:07:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90624/bluetooth-communication-on-thingy91-peripheral-mode" /><item><title>RE: Bluetooth communication on Thingy91 (Peripheral mode)</title><link>https://devzone.nordicsemi.com/thread/380136?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 13:07:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f804f8a-75b6-436c-b68b-4e717955b1dc</guid><dc:creator>m.saadat</dc:creator><description>&lt;p&gt;Great; Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth communication on Thingy91 (Peripheral mode)</title><link>https://devzone.nordicsemi.com/thread/380126?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 12:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:810842a2-b851-484b-aac0-a2dc5dcf1bd0</guid><dc:creator>Sigurd</dc:creator><description>[quote user="m.saadat"]Thanks for pointing me to the right direction. I copied these from lte_ble_gateway example to the asset_tracker_v2 conf file and now everything works fine:[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="m.saadat"]&lt;p&gt;CONFIG_AT_HOST_LIBRARY=n&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t I need this to be set to yes for my LTE AT commands?&lt;/p&gt;[/quote]
&lt;p&gt;If you don&amp;#39;t plan to send&amp;nbsp;AT commands over serial, then it&amp;#39;s not needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth communication on Thingy91 (Peripheral mode)</title><link>https://devzone.nordicsemi.com/thread/379967?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 15:03:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a75569f-3271-4419-8fc1-8217361ea436</guid><dc:creator>m.saadat</dc:creator><description>&lt;p&gt;Thanks for pointing me to the right direction. I copied these from lte_ble_gateway example to the asset_tracker_v2 conf file and now everything works fine:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_SW_LPUART=y
CONFIG_NRF_SW_LPUART_INT_DRIVEN=y

CONFIG_UART_1_ASYNC=y
CONFIG_UART_1_INTERRUPT_DRIVEN=n
CONFIG_UART_1_NRF_HW_ASYNC=y
CONFIG_UART_1_NRF_HW_ASYNC_TIMER=2

CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_BACKEND_RTT=y

CONFIG_AT_HOST_LIBRARY=n

CONFIG_BT=y
CONFIG_BT_H4=y
CONFIG_BT_WAIT_NOP=y
CONFIG_BT_CENTRAL=n
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_GATT_DM=y
CONFIG_BT_SCAN=n
CONFIG_BT_SCAN_FILTER_ENABLE=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The problem was that I did not added this line before:&lt;/p&gt;
&lt;p&gt;CONFIG_AT_HOST_LIBRARY=n&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t I need this to be set to yes for my LTE AT commands?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth communication on Thingy91 (Peripheral mode)</title><link>https://devzone.nordicsemi.com/thread/379955?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 14:01:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a691b3e2-b795-4a2b-979b-7cf450903927</guid><dc:creator>m.saadat</dc:creator><description>&lt;p&gt;I put this in conf file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NRF_MODEM_LIB_TRACE_ENABLED=n
CONFIG_UART_INTERRUPT_DRIVEN=y
CONFIG_ZERO_LATENCY_IRQS=n
CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_SMP=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DIS=y
CONFIG_BT_DIS_PNP=n
# CONFIG_BT_BAS=y
# CONFIG_BT_HRS=y
CONFIG_BT_DEVICE_NAME=&amp;quot;xxxxxxxxxxx&amp;quot;
CONFIG_BT_DEVICE_APPEARANCE=1152
CONFIG_BT_DIS_MANUF=&amp;quot;xxxxx&amp;quot;
CONFIG_BT_DIS_MODEL=&amp;quot;xxxxxx&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;added an advertising function in the ble_ready instead of scanning, and now I can see Thingy91 advertising.&lt;/p&gt;
&lt;p&gt;However, I copy the overlay content to my asset_tracker project and put the same initialization as described on the question; It hangs up and resets because of WDT. What else needs to be amended to add bluetooth to asset_tracker project? The asset_tracker uses a lot of sensors on Thingy91; Is there any hardware conflict that needs to be avoided?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth communication on Thingy91 (Peripheral mode)</title><link>https://devzone.nordicsemi.com/thread/379933?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 13:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f88f89a-e127-4493-bcd4-d2990dbe85ae</guid><dc:creator>m.saadat</dc:creator><description>&lt;p&gt;Hi Sigurd.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/90624/bluetooth-communication-on-thingy91-peripheral-mode/379888"]Did you build hci_lpuart for&amp;nbsp;thingy91_nrf52840 ?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/90624/bluetooth-communication-on-thingy91-peripheral-mode/379888"]What SDK version are you using ?[/quote]
&lt;p&gt;I&amp;#39;m using SDK V1.9.1.&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/90624/bluetooth-communication-on-thingy91-peripheral-mode/379888"]The sample&amp;nbsp;lte_ble_gateway shows you how do to this.&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/lte_ble_gateway"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/lte_ble_gateway&lt;/a&gt;[/quote]
&lt;p&gt;I tried with samples in SDK. I built the hci_lpuart without any change and flashed it on nRF52840. I built the lte_ble_gateway by choosing the &amp;quot;Nordic boards&amp;quot; instead of &amp;quot;Compatible boards&amp;quot; and selecting thingy91_nrf9160_ns. I flashed this on nRF9160.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thingy91 boots with blue led blinking. I see this in the terminal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.99-ncs1-1  ***
LTE Sensor Gateway sample started
Initializing Bluetooth..
Establishing LTE link (this may take some time) ...
Bluetooth ready
Scanning...
Received unknown event 2
Received unknown event 2
Received unknown event 2
Received unknown event 2
Received unknown event 2
Received unknown event 2
Received unknown event 2&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and then the blinking stops. I don&amp;#39;t have the Thingy52 to completely test what is mentioned in the link you sent. I&amp;#39;m assuming it&amp;#39;s in central mode. I don&amp;#39;t see it advertising. I&amp;#39;m not sure how I can make it advertise something to make sure it&amp;#39;s working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth communication on Thingy91 (Peripheral mode)</title><link>https://devzone.nordicsemi.com/thread/379888?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2022 11:21:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bfaa735-42ce-40b0-814b-53789cd6f4d1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]- Build the hci_lpuart project for the&amp;nbsp;Thingy91 board (selected the board from &amp;quot;Nordic boards&amp;quot;; it was not listed in Compatible boards).[/quote]
&lt;p&gt;Did you build hci_lpuart for&amp;nbsp;thingy91_nrf52840 ?&lt;br /&gt;What SDK version are you using ?&lt;/p&gt;
[quote user=""]I could not find a working example to make the Bluetooth work on Thingy91![/quote]
&lt;p&gt;The sample&amp;nbsp;lte_ble_gateway shows you how do to this.&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/lte_ble_gateway"&gt;https://github.com/nrfconnect/sdk-nrf/tree/main/samples/nrf9160/lte_ble_gateway&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>