<?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>Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118122/connect-uart_peripheral-with-windows-11</link><description>Hello, 
 
 I&amp;#39;ve taken the peripheral_uart sample and ripped all of the uart stuff out so that it currently just connects and logs anything received to the console - the simplest example. I can connect with my phone (Android), no problem. However when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Apr 2025 16:52:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118122/connect-uart_peripheral-with-windows-11" /><item><title>RE: Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/thread/533059?ContentTypeID=1</link><pubDate>Fri, 25 Apr 2025 16:52:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a29d9307-cf48-4383-91f6-d834ece2d893</guid><dc:creator>Bernat</dc:creator><description>&lt;p&gt;Hi Neil!&lt;/p&gt;
&lt;p&gt;Could you found the root cause of the problem? I&amp;#39;m facing the same problem and it&amp;#39;s quite frustrating...&lt;/p&gt;
&lt;p&gt;I also use Bluetooth LE Explorer, but only to pair the BLE device to the Windows 11.&amp;nbsp;Once paired, I forget about this software and use C# with .NET 6 Core to communicate with the devices.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve developed several projects, involving heart rate monitors (like the Polar, or the Coospo optical one), or even using the ESP32 as a BLE module and implementing the services and characteristics by hand. They all pair and connect fine to my PC. So, for the first time ever, I&amp;#39;m having trouble with a module from EByte (E104-BT5005A) which uses a&amp;nbsp;&lt;span&gt;nRF52805. If I try enough times, I get the Bluetooth LE Explorer to connect 1 out of about 20 times, but I still could never paired to it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is it a problem from the nRF stack? It seems clear it&amp;#39;s not a problem from Bluetooth LE Explorer, since I could pair all kind of BLE devices UNTIL now...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/thread/519649?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 20:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fea51340-9c3a-4b84-a636-d0a8836ce021</guid><dc:creator>Neil Benn</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; This would make sense and/or the windows pairing process trying to use the system bluetooth was not complete- however I&amp;#39;ve done too much to determine which it is.&amp;nbsp; I&amp;#39;ll create the use cases to determine which it was and go from there as I&amp;#39;ll obviously not want this to happen in the field as I&amp;#39;m making a B2C product.&amp;nbsp; For now I&amp;#39;ll close this ticket and thanks very much for your help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/thread/519519?ContentTypeID=1</link><pubDate>Wed, 22 Jan 2025 11:56:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adaecbe8-ba33-4278-965e-325041c80364</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Neil,&lt;/p&gt;
&lt;p&gt;That seems to match the trace (though I don&amp;#39;t see the context of the packets), the nRF recjects encryption probably probalby as it does not have the bonding data, and for that reason, the central disconnecs. This is expected behaviour.&lt;/p&gt;
[quote user="Neil Benn"]Though I still need to understand what went wrong in the first place.[/quote]
&lt;p&gt;Do you mean why the PC has a bond and the nRF does not? A typical reason is that the nRF was re-programmed, and in the process, the flash was erased, including the bond(s). Could that be what happened?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/thread/519287?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 12:31:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7c6e06f-f1f0-4171-a3e2-222bcc564601</guid><dc:creator>Neil Benn</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; Thanks for your response, to note - I&amp;#39;m not using BLE Explorer; this was just one of the examples of test applications which cannot interact with the nrf52dk including the windows native system (just to pair and connect) and a couple of python-based applications.&amp;nbsp; I&amp;#39;m also not looking for native support in Windows but not sure how native support for a simple example like this would work anyways as it has no functionality but to receive a few bytes and dump them on the log.&amp;nbsp; However I do want to write a piece of code which can communicate to the uart_peripheral running on a nordic nrf52dk.&amp;nbsp; The eventual aim is to have a windows program that can communicate to the device embedded in a product based around the nordic system.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;nbsp; I just wanted to make the above clear as the BLE Explorer application is confusing matters, so moving on:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; I&amp;#39;ve use the BLE sniffer as in the instructions and the following packets are detected:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;1885	32.016	Intel_4c:5d:23	LE 1M	LE LL	34	151&amp;#181;s				0	CONNECT_IND
1886	32.032	Central_0x3316f157	LE 1M	LE LL	9	15343&amp;#181;s	0	0	False	0	Control Opcode: LL_FEATURE_REQ
1887	32.032	Peripheral_0x3316f157	LE 1M	LE LL	0	150&amp;#181;s	0	1	False	0	Empty PDU
1888	32.077	Central_0x3316f157	LE 1M	LE LL	0	44619&amp;#181;s	1	1	False	1	Empty PDU
1889	32.077	Peripheral_0x3316f157	LE 1M	LE LL	9	150&amp;#181;s	1	0	False	1	Control Opcode: LL_FEATURE_RSP
1890	32.122	Central_0x3316f157	LE 1M	LE LL	23	44619&amp;#181;s	0	0	False	2	Control Opcode: LL_ENC_REQ
1891	32.122	Peripheral_0x3316f157	LE 1M	LE LL	0	150&amp;#181;s	0	1	False	2	Empty PDU
1892	32.167	Central_0x3316f157	LE 1M	LE LL	0	44507&amp;#181;s	1	1	False	3	Empty PDU
1893	32.167	Peripheral_0x3316f157	LE 1M	LE LL	13	149&amp;#181;s	1	0	False	3	Control Opcode: LL_ENC_RSP
1894	32.212	Central_0x3316f157	LE 1M	LE LL	0	44588&amp;#181;s	0	0	False	4	Empty PDU
1895	32.212	Peripheral_0x3316f157	LE 1M	LE LL	0	149&amp;#181;s	0	1	False	4	Empty PDU
1896	32.257	Central_0x3316f157	LE 1M	LE LL	0	44691&amp;#181;s	1	1	False	5	Empty PDU
1897	32.257	Peripheral_0x3316f157	LE 1M	LE LL	3	150&amp;#181;s	1	0	False	5	Control Opcode: LL_REJECT_EXT_IND
1898	32.302	Central_0x3316f157	LE 1M	LE LL	9	44667&amp;#181;s	0	0	True	6	Control Opcode: LL_LENGTH_REQ
1899	32.302	Peripheral_0x3316f157	LE 1M	LE LL	0	150&amp;#181;s	0	1	False	6	Empty PDU
1900	32.302	Central_0x3316f157	LE 1M	LE LL	2	150&amp;#181;s	1	1	False	6	Control Opcode: LL_TERMINATE_IND
1901	32.347	Central_0x3316f157	LE 1M	LE LL	2	44373&amp;#181;s	1	1	False	7	Control Opcode: LL_TERMINATE_IND
1902	32.347	Peripheral_0x3316f157	LE 1M	LE LL	9	150&amp;#181;s	1	0	False	7	Control Opcode: LL_PERIPHERAL_FEATURE_REQ&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;The last communication is regarding encryption and the central sends to the peripheral LL_LENGTH_REQ which times out I thing; then the link is disconnected.&amp;nbsp; Can you please advise as to what the possible cause could be?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; UPDATE - I&amp;#39;ve run the same code from a linux box and the difference is that the encryption request opcode isn&amp;#39;t sent from the linux box; the length_req opcode is still ignored by the peripheral but then we launch straight into feature discovery.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UPDATE 2 - there was an old paring left over from the bluetooth system attempt to previously pair which the peripheral.&amp;nbsp; If this is removed the windows python code now works.&amp;nbsp; Though I still need to understand what went wrong in the first place.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Neil&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/thread/519245?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 10:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ea97324-4366-4e68-a06d-8a4b546fe08c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Neil,&lt;/p&gt;
[quote user="Neil Benn"]This seems like a fairly simple example and windows is quite common - are there any use cases where uart_peripheral connected to from windows is actually working?[/quote]
&lt;p&gt;There is no native support for the Nordic UART service (NUS) which is used in the peripheral_Uart sample on Windows, as this is a custom service designed by Nordic. So to use it with Windws you either need some form of test application (for which BLE explorer is a simple variant of) or write your own PC side application. From what I know the&amp;nbsp;BLE explorer application is not much used and we do not have much experience with it nor knowledge of its implemnetation or limitations.&lt;/p&gt;
[quote user="Neil Benn"]Is there any way we can determine what the nrf52dk is actually sending to the windows computer?[/quote]
&lt;p&gt;The normal way to invesitgate such things is with a BLE sniffer. Even if you don&amp;#39;t have a dedicated &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;BLE sniffer&lt;/a&gt;,&amp;nbsp; you can use the nRF Sniffer as long as you have an extra nRF52 series DK or dongle.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/thread/519107?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 14:23:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc737ecd-4c60-4a56-abb5-03cd1d8d8ab8</guid><dc:creator>Neil Benn</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Thanks for that - I&amp;#39;ve tested with multiple python packages and BLE explorer - they all do the same thing.&amp;nbsp; I have tried nrfConnect for Desktop with the nrf52840 Dongle and that does indeed connect to teh uaryt_peripheral running on the nrf52dk board.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;However; I need to write code to test the NRF52dk package and I can&amp;#39;t do that with nrf Connect for Desktop BLE - all I can do is send a few bytes back and forth.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; This seems like a fairly simple example and windows is quite common - are there any use cases where uart_peripheral connected to from windows is actually working?&amp;nbsp; Is there any way we can determine what the nrf52dk is actually sending to the windows computer?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Neil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect uart_peripheral with Windows 11</title><link>https://devzone.nordicsemi.com/thread/519097?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 14:09:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2724a9e4-3dc0-45f2-9d73-3b25ade003a6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Neil,&lt;/p&gt;
&lt;p&gt;The disconnect reason indicate that the peer (PC) disconnected for some reason, but does not tell us why. You will need to look more on the side that disconnected (PC) to understand more about that. I don&amp;#39;t know the details of how&amp;nbsp;Bluetooth LE Explorer work and why it would choose to disconnect in some cases. Is it possible to get more logging from it? Other than that, I suggest asking Microsoft support for details on Bluetooth LE Explorer as it is their product. As an alternative if you need a BLE tool for testing from a computer you could consider &lt;a href="https://docs.nordicsemi.com/bundle/nrf-connect-ble/page/index.html"&gt;nRF Connect for Desktop BLE&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>