<?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 a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83868/connect-a-laptop-with-windows-to-peripheral-uart-example</link><description>Sure, my question is very stupid, but after one day I found nothing to explain the principle of the situation, I decided to ask. 
 I have a laptop with built-in Bluetooth 5.2 and Windows 11. It runs a terminal testing program. 
 I have nRF5340 DK with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Feb 2022 07:50:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83868/connect-a-laptop-with-windows-to-peripheral-uart-example" /><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/353242?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 07:50:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ad14ef3-e80d-4117-99e2-b5605cbd7665</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Okay, thank you for clarifying. That is noted, and I have reported this to our documentation team.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/353069?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 11:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51cb91f1-12d1-4c56-a2ea-b76816b74cbf</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;So consistently:&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m not talking about USB at all, I&amp;#39;m not commenting on how the COM ports are presented and in what sequence, after passing through JLINK and being seen in Windows.&lt;/p&gt;
&lt;p&gt;2. An example would be for this: &lt;strong&gt;peripheral_uart&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;3. In &lt;strong&gt;main.c &lt;/strong&gt;-&amp;gt; &lt;strong&gt;uart_init()&lt;/strong&gt; , row 238, &lt;strong&gt;uart = device_get_binding(CONFIG_BT_NUS_UART_DEV);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;CONFIG_BT_NUS_UART_DEV = uart0&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;from &lt;strong&gt;Kconfig&lt;/strong&gt; -&amp;gt; row 30, config &lt;strong&gt;BT_NUS_UART_DEV default &amp;quot;UART_0&amp;quot;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;That is, we should use &lt;strong&gt;uart0 purely hardware&lt;/strong&gt; in the processor.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In this file &lt;strong&gt;PCA10095_Schematic_And_PCB.pdf&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;page 2, &lt;strong&gt;uart0&lt;/strong&gt; does not exist, the count starts from 1. We assume that we are looking for &lt;strong&gt;uart1&lt;/strong&gt; according to the scheme. This must be &lt;strong&gt;P1.00/P1.00&lt;/strong&gt; pins.&lt;/p&gt;
&lt;p&gt;In page 4, top left &lt;strong&gt;UART_1&lt;/strong&gt; and &lt;strong&gt;VCOM0&lt;/strong&gt; are connected to the same U25. This is the first port, according to the count, i.e. so far &lt;strong&gt;everything is fine&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;P1.00/P1.00&lt;/strong&gt; pins are on the &lt;strong&gt;P3&lt;/strong&gt; terminal.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf53%2Fstruct%2Fnrf5340.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf53%2Fstruct%2Fnrf5340.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;nRF5340 DK Hardware -&amp;gt; Virtual COM ports&lt;/p&gt;
&lt;p&gt;nRF5340 &lt;strong&gt;UART_1&lt;/strong&gt;&amp;nbsp; is the same &amp;nbsp;- &lt;strong&gt;P1.00/P1.00&lt;/strong&gt; pins. (uart0 missing) (&lt;strong&gt;OK&lt;/strong&gt;)&lt;/p&gt;
&lt;p&gt;****&lt;/p&gt;
&lt;p&gt;However, the data (from &lt;strong&gt;uart0 in software&lt;/strong&gt;) go to &lt;strong&gt;P24: P0.20 / 0.22 (uart2)&lt;/strong&gt;. There I connected my logic analyzer to see them. There is nothing on the other pins.&lt;/p&gt;
&lt;p&gt;It is this way because in (&lt;strong&gt;board folder files&lt;/strong&gt;) &lt;strong&gt;nrf5340_cpuapp_common.dts&lt;/strong&gt;, rows 142-149, pins are set to &lt;strong&gt;20/22&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is not clear where the other serial ports should go (must be set) if someone decides to use them. In any case, the signals through the board will pass through other chips, not as described in the wiring diagram.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/353056?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 10:28:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31179037-21d7-444f-94da-e6f90b76d96b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Just to make sure, you&amp;#39;re talking about USB connector J2 on the nRF5340 DK, correct? By default, the UART connections should go to the Interface MCU and then to the USB connector from P0.19-P0.22 for one UART,&amp;nbsp; and P0.10, P0.11, P1.00 and P1.01 for the other. Both of these should be routed to the interface MCU, but are also routed to pin headers that can be &amp;quot;activated&amp;quot; if required. See section 3.2 in the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF5340_DK_User_Guide_v2.0.0.pdf"&gt;nRF5340 DK user guide&lt;/a&gt; for details. If you disagree, can you describe what pins you mean they&amp;#39;re going to by default? If there are any mistakes here we of course want to correct it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352894?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 13:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7304e351-4521-48d2-9e2b-2636e472c72e</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;So much on this topic here. I accept that you have answered everything that interests me. Thank you for your cooperation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regarding the COM port of nRF5340DK. The description is wrong. It&amp;#39;s not about the USB port to the computer at all. I connected a logic analyzer to monitor the communication between two boards. Good thing it was the Altium project to find out where to connect my analyzer. Accordingly, the signal passes through other switches, etc. According to the wiring diagram and the declaration in the project, uart0 must be connected on other pins. That&amp;#39;s why I wrote that if someone makes a board to plug into the kit and expects the pin signals according to the wiring diagram in your documentation, he will be very badly surprised. Adjust it if you want.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So much here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352880?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 12:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d61d93f6-fe2a-4466-a395-258e0d2a7c19</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Below are my answers to what I picked up as questions from your latest reply. Let me know if I missed some, or if you have further questions. Please note that it&amp;#39;s easier to catch them all if you list your specific questions. Also, since this case has moved on from it&amp;#39;s initial topic, I would recommend that you create a new DevZone ticket if you have a new issue or require technical support on a different topic.&lt;/p&gt;
&lt;p&gt;nRF5340 DK COM ports: COM ports you&amp;#39;re seeing are UART0, UART1,&amp;nbsp;and you can choose from the device manager which ones you want to use in I.E. a terminal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;peripheral_uart sample: This sample data received on the RX pin of the UART0 peripheral to the BLE unit. By default, the UART 0 peripheral is gated through the interface MCU to connector J2. To make use of the USB peripheral instead I would suggest checking out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/bluetooth/hci_usb/README.html"&gt;HCI USB sample&lt;/a&gt;&amp;nbsp;in Zephyr instead, which is designed to make a USB Bluetooth Dongle from Zephyr.&lt;/p&gt;
&lt;p&gt;Your use case: I understand it as the &amp;quot;remotes&amp;quot; you mention will be nRF5340 devices, correct? And you want to transmit data from these devices over BLE to the computers, which will forward that data to a USB device, correct? Forgive me if I misunderstand anything. The transmission speed (throughput) you mention might be an issue, depending on how many bytes you plan on transmitting at a time. As explained in &lt;a href="https://www.novelbits.io/bluetooth-5-speed-maximum-throughput/"&gt;this blog post&lt;/a&gt;, the maximum throughput we&amp;#39;re able to achieve with BLE 5 will be ~&lt;strong&gt;1400.56 Kbits/s&lt;/strong&gt;, but that will also depend on the BLE module on the computer&amp;#39;s side. If that is sufficient in your case, I don&amp;#39;t see any issue this wouldn&amp;#39;t be possible. Will the device connected to the computer also be an nRF device? If so you can communicate directly with the nRF instead of having to go through the computer first.&lt;/p&gt;
&lt;p&gt;Encryption should not be an issue either. The nRF53 series use the&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/doc/ble_bond.html"&gt; Bluetooth LE bond module&lt;/a&gt; for managing BLE peers and bonds. The computer generally handles this by &amp;quot;choosing&amp;quot; pairing when you connect to a device I believe.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352778?ContentTypeID=1</link><pubDate>Sun, 13 Feb 2022 10:38:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb85d22a-0a9b-4e14-99c7-9ca65dd0ccf4</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;This idea with HID is good, but for some next stage eventually. It cannot be used at the moment.&lt;/p&gt;
&lt;p&gt;The Dongle idea also has bread in it, but I don&amp;#39;t understand something here. I will think about something on the topic in the future. From a consumer point of view, this will be a board with a Nordic chip that has a USB port that is connected to the USB port on the board. It doesn&amp;#39;t matter who the manufacturer is. And nRF52840 Dongle happens, or something like that (I don&amp;#39;t see the point in putting a powerful processor for a simple USB converter &amp;gt; Bluetooth / Virtual COM for Windows). Why the two examples are not compatible with it (central/peripheral uart). It is clear to me that there is no J-Link on the board, and the development environment (VSC/SEGGER) cannot recognize it (and here there is one but), but there is a nRF Programmer (he recognizes it). Yes, I know, bootloader 1, bootloader 2, etc. Even I did not understand what was happening. Why you can&amp;#39;t compile and program with it. I think this is the main application of this board, apart from the sniffer. Simply put on a computer / desktop for example / to provide LBE for tests and experiments with other LBE boards. If necessary, make two special examples of this type of board, which can be programmed only through the programmer.&lt;/p&gt;
&lt;p&gt;On nRF5340DK there is some confusion with com ports. It is not clear how they are counted, and from how much they start, from 0 or from 1. There is some other counting in the documentation. The software usually uses Uart0, which if the first of the possible and should be on P1.00 / 1.01. But in reality, the data that come out through the USB port(J-Link) appear on P0.20 / 0.22 (Uart2 from PCA10095_Schematic_And_PCB.pdf). If someone makes a board that plugs into the kit, will be quite unpleasantly surprised without checking all the signals where they are output.&lt;/p&gt;
&lt;p&gt;Out of pure curiosity, I decided to compile for the USB port, which is directly to the SOC. After 6 hours of fighting and experimenting with punctuation I gave up, there is some mistake somewhere. (\SDK\ncs\v1.8.0\nrf\samples\bluetooth\peripheral_uart)&lt;/p&gt;
&lt;p&gt;VSC:&lt;/p&gt;
&lt;p&gt;Configuration -&amp;gt; prj_cdc.conf&lt;/p&gt;
&lt;p&gt;Extra CMake arguments -&amp;gt; -DDTC_OVERLAY_FILE=&amp;quot;usb.overlay&amp;quot;&lt;/p&gt;
&lt;p&gt;The file is attached.&lt;/p&gt;
&lt;p&gt;I wondered what I would see on the computer after plugging in the cable.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Otherwise, at the moment the situation is as follows, I wrote it in my other topic. There is service software that connects through a serial port to our electronics. The software is very complex and large, probably generating 400-500 different commands through the serial port. It is installed on a laptop. We are currently working with USB&amp;gt; RS485 converter. My colleagues travel all over the country and work at different sites. He goes to the place, takes off the equipment, connects the USB cable to the machine and works. Usually 10-20 meters from the machine. This thing can happen several times a day. Currently, a 4-port hub is glued to each laptop. When one port breaks down mechanically, it goes to the other. So, after about 6 months, the hub changes because all its ports are broken (the cable itself is a separate thing).&lt;/p&gt;
&lt;p&gt;Everything is set up in real time, the setting is done while the machine is running, this is how our electronics are made. The commands are up to 40 bytes long (that&amp;#39;s the size of the buffers). Usually, one command is 2-3 ms long. After about 100-150 microseconds, the other board starts to respond. That is, this is the time between the last byte of the command and the first byte of the response. The interval between each two commands is 3 ms. Some commands have no response. &amp;nbsp;Over time, the information that is transmitted increases, and now the RS-485 is slow. I expected to speed up at least a little with Bluetooth. I saw that the minimum times for Bluetooth are 7.5 ms in one direction. And to remove the mechanical connection to the USB.&lt;/p&gt;
&lt;p&gt;This is about the connection between the laptop and the machine.&lt;/p&gt;
&lt;p&gt;It is now planned to offer wireless remote control to customers to control the machine. WIFI doesn&amp;#39;t work here because it consumes a lot of electricity. The connection must be encrypted, separately inside there is a second encryption in the packets themselves. The PIN code must be fixed and saved in advance, not visible anywhere (but programmed by my colleague on site at the client.). Separately, after an internal command check, the connection may be disconnected, if the device is not recognized.&lt;/p&gt;
&lt;p&gt;The commands run constantly, they are looped, the times inside the machine are the same.&lt;/p&gt;
&lt;p&gt;A second processor will receive all the internal data, extract the necessary data, and transmit it via Bluetooth to the remote control. About 1-1.5k bytes in the worst case, 5-10 times per second. This is necessary for everything to be smooth. For example, an operator to move the joystick and see the movements in the machine, at the same time there must be feedback/status with indications of what is happening, among other things.&lt;/p&gt;
&lt;p&gt;The colleague with the laptop must connect with the laptop, both to the machine and the remote and set them up in real time. At the moment, all this will work with the RS-485, but it is inconvenient to work. (without remote it works right now.)&lt;/p&gt;
&lt;p&gt;CANBUS is not used because it has many problems and is unusable in our case. But that&amp;#39;s another topic.&lt;/p&gt;
&lt;p&gt;And it is planned that everything will go to LAN in the machine. The connection to the laptop will be WIFI or Bluetooth, but the remote-machine remains on Bluetooth for sure. The remote may have an E-Ink display with a second processor.&lt;/p&gt;
&lt;p&gt;But this process is smooth, and we need to keep the maintenance of the old electronics and our customers.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In general, the task is interesting. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/err.txt"&gt;devzone.nordicsemi.com/.../err.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352679?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 14:47:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e9ab3c3-89d6-4114-944c-292123d24986</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It might be worth looking into the HID profile. It won&amp;#39;t give you a direct connection to a serial console, but you can connect directly to the computer and provide various services. For starters the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_hids_mouse/README.html"&gt;HIDS mouse&lt;/a&gt; or&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_hids_keyboard/README.html"&gt; HIDS keyboard sample projects &lt;/a&gt;might be worth looking at. Or do you specifically need the serial console?&lt;/p&gt;
&lt;p&gt;If you share some information on what the end goal of your application is, that might help us find out what service would be best to use to communicate with the computer as you wish.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352554?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 10:54:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:614a924e-e910-4ee5-bb98-62dddff0c8f4</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;Bad very bad. It was the idea of everything to connect the laptop to the device via Bluetooth. But I don&amp;#39;t know in what language software should be written to connect to the device that was added to Windows. This device is currently unusable in Windows. The most important thing was not to plug anything into the ports of the laptop, because in a few months they die purely mechanically from turning on and off USB devices. I need to seriously rethink the whole strategy.&lt;/p&gt;
&lt;p&gt;Thank you for your cooperation and time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352529?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 10:00:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da397ff9-ef18-4dac-bbe7-4ce57d278eac</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I see, that would be the&lt;a href="https://www.feasycom.com/blog-What-Are-SPP-and-GATT-Bluetooth-Profiles.html"&gt; Bluetooth Classic profile Serial Port Profile (SPP&lt;/a&gt;). This is not supported in BLE unfortunately, so this won&amp;#39;t be possible with nRF5x series devices, which only support BLE. You will need some sort of Dongle that is connected serially to the computer to get up a serial port on the PC.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352256?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 09:30:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:236b83fb-baae-41e7-aca1-9c316d2b1535</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;&lt;strong&gt;Are you expecting to see a serial port on the PC side when the device is connected over BLE.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Exactly!&lt;/p&gt;
&lt;p&gt;Until now, when I used Bluetooth modules, older versions, when I connect/add to them, a serial port appears in Windows. Once this device is added, Windows remembers it. From the software I use, just select opening port (COM XXX) and Windows connects to this device. It doesn&amp;#39;t matter for the software whether this port is Bluetooth, a physical port, or an adapter cable (USB to XX converter).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352212?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 07:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea5dc2da-b11e-4354-8998-113517f95381</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad to hear you&amp;#39;re able to connect now Stefan!&lt;/p&gt;
&lt;p&gt;Regarding the serial port. Are you expecting to see a serial port on the PC side when the device is connected over BLE, or is it also connected to the PC serially and you don&amp;#39;t see any logging?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/352010?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 10:30:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7c3294e-b2be-4daa-ad7f-538789159edb</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;Connects !, I tried several times, all successful. Only the &lt;strong&gt;CONFIG_BT_PHY_UPDATE=n&lt;/strong&gt; option is enough.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But there is no Serial Port anywhere. It does not appear anywhere when the device is added. I tried tot add, through advanced Bluetooth settings, there it does not appear as a device to which to add a serial port. I also tried through the properties of the device, services, there is an empty field.&lt;br /&gt;I have a feeling that because windows add it as &amp;quot;Category: Heart Rate Monitor&amp;quot;, that&amp;#39;s why he doesn&amp;#39;t want to add a serial port.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351969?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 08:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7732bbe5-4d3c-4085-b891-37797c2e8008</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Stefan&lt;/p&gt;
&lt;p&gt;From your latest log files there are two specific lines that stick out:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:01:15.743,469] &amp;lt;dbg&amp;gt; bt_hci_core.le_phy_update_complete: PHY updated: status: 0x00, tx: 2, rx: 2
...
[00:01:25.407,653] &amp;lt;dbg&amp;gt; bt_hci_core.hci_disconn_complete_prio: status 0x00 handle 15 reason 0x08&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Reason 0x08 is a connection timeout, so the connection seems to time out shortly after switching to the 2MBPS PHY. Maybe Windows 11 (or the laptop&amp;#39;s Bluetooth controller) doesn&amp;#39;t like the PHY changing during the pairing process. Please try disabling the PHY update by setting &lt;strong&gt;CONFIG_BT_PHY_UPDATE=n&lt;/strong&gt;. You can also try increasing the supervision by setting &lt;strong&gt;CONFIG_BT_PERIPHERAL_PREF_TIMEOUT&lt;/strong&gt; to a larger value.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351745?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 10:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0694d46-62bc-4955-b778-18b10589d459</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;Without changing the size of the buffer (CONFIG_LOG_BUFFER_SIZE), after starting the board, you can see what I sent the previous time. All these dropped packages. The laptop is not turned on at all and no connection attempts have been made. This is how the software works. The board stands and waits. I experimented with different values, no difference. From some value upwards it is the same. There are written explanations inside the file. Now I don&amp;#39;t see any dropped packages. CONFIG_LOG_MODE_IMMEDIATE or CONFIG_LOG_MODE_MINIMAL I haven&amp;#39;t used these, I wrote it down before you write these two.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Debug_5F00_Terminal.zip"&gt;devzone.nordicsemi.com/.../Debug_5F00_Terminal.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351685?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 07:43:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c69eb715-91b7-4d12-86ab-1b00a84db7c4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Try increasing the log buffer size by changing a Kconfig variable named CONFIG_LOG_BUFFER_SIZE, also try setting CONFIG_LOG_MODE_IMMEDIATE or CONFIG_LOG_MODE_MINIMAL, as this should fix the dropped log issues.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351562?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 14:00:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0f7d69e-e1ce-4305-85e2-72d5f546ff06</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;I&amp;#39;ve seen it, but I don&amp;#39;t know why. I didn&amp;#39;t write the software to know. The laptop and the board are on my desk, at a distance of about 70 cm. Here are two more files without the sniffer activated, so as not to affect anything. There is nothing working wirelessly on the table. except my mouse and keyboard, which are certainly not Bluetooth. I have been dealing with the boards for almost 6 months for sure, and in all other cases, when testing different examples, nothing prevents them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/laptopW11_5F00_03.zip"&gt;devzone.nordicsemi.com/.../laptopW11_5F00_03.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351534?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 12:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1465f503-1bce-4b2f-9fa2-cc3a9e245db0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There are a lot of dropped log messages here, making it very hard to get something useful from this log...&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351336?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 12:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd186504-01f3-425d-bc7b-71f0a5606da5</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;Everything I wrote on the topic is based on the standard example:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;/SDK/ncs/v1.8.0/nrf/samples/bluetooth/peripheral_uart&amp;nbsp; (/build_nrf5340dk_nrf5340_cpuapp).&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I only added, already 4, debug lines. I am attaching the file, they are finally written.&lt;/p&gt;
&lt;p&gt;In Windows I removed all Bluetooth devices, there is nothing.&lt;/p&gt;
&lt;p&gt;The kit was programmed before the tests with another example, i.e. there should be nothing left.&lt;/p&gt;
&lt;p&gt;( I am currently thinking about how to speed up the transmission speeds. How to declare and change: ATT_MTU size, PHY, LE Data Length, LE Connection interval. It was programmed with: Bluetooth: Throughput. After reading the whole forum and other information on the net, I came to the conclusion that it is not clear at all. The standard example (uart) works with intervals of about 100+ ms, 20-bytes packet, string format. I changed everything, now it works with binary transfer, interval about 40ms, 40-bytes packet. BUT that&amp;#39;s another question, so I&amp;#39;m not asking anything.&lt;/p&gt;
&lt;p&gt;I will post another question in the forum after clarifying some more things.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any movement in the debug window at the time of connection. I made three attempts.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/laptopW11_5F00_002.zip"&gt;devzone.nordicsemi.com/.../laptopW11_5F00_002.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351295?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 11:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9876beb2-de0f-4619-90de-6f5e05bd0074</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Stefan&lt;/p&gt;
&lt;p&gt;Multiple devs have reviewed your logs, and there are just a few reasons the error you&amp;#39;re seeing BT_SMP_ERR_UNSPECIFIED after a pairing request have been received should be trigged, so we&amp;#39;ve narrowed it down somewhat at least.&lt;/p&gt;
&lt;p&gt;Can you also add HCI logging so we can get a look there as well. The following configs in prj.conf should do it&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;strong&gt;CONFIG_BT_DEBUG_HCI_CORE=y&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;CONFIG_BT_DEBUG_HCI_DRIVER=y&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div&gt;Can you also confirm that the Windows 11 device has removed previous bonds before trying to bond to this device, and that the DK isn&amp;#39;t already paired. As we thought we were able to reproduce it for a moment here, but it was fixed by erasing previous bonding information on the two devices.&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&lt;/div&gt;
&lt;div&gt;Simon&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/351002?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 08:02:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddddab64-4a7a-4e2e-9303-3713a80cdcad</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.448,089] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: 2 Sectors of 4096 bytes&#x1B;[0m
[00:00:00.448,089] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, f70&#x1B;[0m
[00:00:00.448,089] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: data wra: 0, dc&#x1B;[0m
[00:00:00.469,238] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&#x1B;[0m
[00:00:00.469,238] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF53x (0x0003)&#x1B;[0m
[00:00:00.469,238] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 223.20160 Build 1719410646&#x1B;[0m
[00:00:00.470,153] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_init: LE SC enabled&#x1B;[0m
[00:00:00.470,489] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&#x1B;[0m
[00:00:00.470,489] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Bluetooth initialized&#x1B;[0m
[00:00:00.473,022] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: Identity: DF:1C:CC:6F:45:96 (random)&#x1B;[0m
[00:00:00.473,052] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.2 (0x0b) revision 0x22b0, manufacturer 0x0059&#x1B;[0m
[00:00:00.473,052] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.2 (0x0b) subver 0x22b0&#x1B;[0m
[00:00:00.718,994] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_pkey_ready: &#x1B;[0m
[00:00:44.320,068] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_accept: conn 0x20000a60 handle 15&#x1B;[0m
[00:00:44.320,098] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_connected: chan 0x20001010 cid 0x0006&#x1B;[0m
[00:00:44.320,220] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Connected 5C:FB:3A:53:9C:3A (public)&#x1B;[0m
[00:00:44.597,351] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x01 len 6&#x1B;[0m
[00:00:44.597,351] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_req: &#x1B;[0m
[00:00:44.598,876] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_init: prnd 92f9c4cda9547020542d544580fd9eae&#x1B;[0m
[00:00:44.719,696] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x0c len 64&#x1B;[0m
[00:00:44.719,696] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_public_key: &#x1B;[0m
[00:00:44.719,818] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: u f966c0cd4ab920a2644d57fac6f892acdd844bd7a9bd20758f62ab6cc463cb54&#x1B;[0m
[00:00:44.719,848] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: v 9ba09d2dce8da508ed1dec35545e25cdad6b9144b303a2b2b57e606e4685df93&#x1B;[0m
[00:00:44.719,879] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: x 92f9c4cda9547020542d544580fd9eae z 0x0&#x1B;[0m
[00:00:44.721,008] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: res c05fe9716a9ecd30ccee3eb0db664a61&#x1B;[0m
[00:00:44.898,468] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x04 len 16&#x1B;[0m
[00:00:44.898,468] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_random: &#x1B;[0m
[00:00:44.898,498] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: u 9ba09d2dce8da508ed1dec35545e25cdad6b9144b303a2b2b57e606e4685df93&#x1B;[0m
[00:00:44.898,529] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: v f966c0cd4ab920a2644d57fac6f892acdd844bd7a9bd20758f62ab6cc463cb54&#x1B;[0m
[00:00:44.898,559] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: x bbb90de01a71ce7fc6d360b880ea22ee&#x1B;[0m
[00:00:44.898,559] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: y 92f9c4cda9547020542d544580fd9eae&#x1B;[0m
[00:00:44.899,719] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: res 3e7647b4529c77b74a6971e267d877b9&#x1B;[0m
[00:00:44.899,749] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: passkey 239673&#x1B;[0m
[00:00:44.899,871] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Passkey for 5C:FB:3A:53:9C:3A (public): 239673&#x1B;[0m
[00:00:44.899,871] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Press Button 1 to confirm, Button 2 to reject.&#x1B;[0m
[00:00:44.969,177] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_dhkey_ready: 0x20006d7f&#x1B;[0m
[00:00:47.987,152] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Numeric Match, conn 0x20000a60&#x1B;[0m
[00:00:54.683,074] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_disconnected: chan 0x20001010 cid 0x0006&#x1B;[0m
[00:00:54.683,105] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_complete: status 0x8&#x1B;[0m
[00:00:54.683,105] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_encrypt_change: chan 0x20001010 conn 0x20000a60 handle 15 encrypt 0x00 hci status 0x1f&#x1B;[0m
[00:00:54.683,227] &#x1B;[1;33m&amp;lt;wrn&amp;gt; peripheral_uart: Security failed: 5C:FB:3A:53:9C:3A (public) level 1 err 9&#x1B;[0m
[00:00:54.683,349] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Pairing failed conn: 5C:FB:3A:53:9C:3A (public), reason 9&#x1B;[0m
[00:00:54.683,532] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Disconnected: 5C:FB:3A:53:9C:3A (public) (reason 8)&#x1B;[0m
[00:01:04.271,759] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_accept: conn 0x20000a60 handle 15&#x1B;[0m
[00:01:04.271,789] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_connected: chan 0x20001010 cid 0x0006&#x1B;[0m
[00:01:04.271,911] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Connected 5C:FB:3A:53:9C:3A (public)&#x1B;[0m
[00:01:04.543,762] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x01 len 6&#x1B;[0m
[00:01:04.543,762] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_req: &#x1B;[0m
[00:01:04.545,318] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_init: prnd e16181486351fbbb429949be5a679a84&#x1B;[0m
[00:01:04.666,076] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x0c len 64&#x1B;[0m
[00:01:04.666,076] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_public_key: &#x1B;[0m
[00:01:04.666,198] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: u f966c0cd4ab920a2644d57fac6f892acdd844bd7a9bd20758f62ab6cc463cb54&#x1B;[0m
[00:01:04.666,229] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: v 9e24905bf10a70a9a10ea523872d25ed65fa69a2e15e267b68fd9aa4ce785dbf&#x1B;[0m
[00:01:04.666,259] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: x e16181486351fbbb429949be5a679a84 z 0x0&#x1B;[0m
[00:01:04.667,419] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: res ebdd52513e772cea9cb31253b5030c88&#x1B;[0m
[00:01:04.844,909] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x04 len 16&#x1B;[0m
[00:01:04.844,940] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_random: &#x1B;[0m
[00:01:04.844,970] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: u 9e24905bf10a70a9a10ea523872d25ed65fa69a2e15e267b68fd9aa4ce785dbf&#x1B;[0m
[00:01:04.845,001] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: v f966c0cd4ab920a2644d57fac6f892acdd844bd7a9bd20758f62ab6cc463cb54&#x1B;[0m
[00:01:04.845,001] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: x fe2e72d3dc6e7968f8e6b538bda89b14&#x1B;[0m
[00:01:04.845,031] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: y e16181486351fbbb429949be5a679a84&#x1B;[0m
[00:01:04.846,221] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: res 159fb5e98b20313ecd4c29356eb350e9&#x1B;[0m
[00:01:04.846,252] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: passkey 245417&#x1B;[0m
[00:01:04.846,374] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Passkey for 5C:FB:3A:53:9C:3A (public): 245417&#x1B;[0m
[00:01:04.846,374] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Press Button 1 to confirm, Button 2 to reject.&#x1B;[0m
[00:01:04.915,740] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_dhkey_ready: 0x20006d7f&#x1B;[0m
[00:01:06.340,301] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Numeric Match, conn 0x20000a60&#x1B;[0m
[00:01:14.569,458] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_disconnected: chan 0x20001010 cid 0x0006&#x1B;[0m
[00:01:14.569,488] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_complete: status 0x8&#x1B;[0m
[00:01:14.569,519] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_encrypt_change: chan 0x20001010 conn 0x20000a60 handle 15 encrypt 0x00 hci status 0x1f&#x1B;[0m
[00:01:14.569,641] &#x1B;[1;33m&amp;lt;wrn&amp;gt; peripheral_uart: Security failed: 5C:FB:3A:53:9C:3A (public) level 1 err 9&#x1B;[0m
[00:01:14.569,732] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Pairing failed conn: 5C:FB:3A:53:9C:3A (public), reason 9&#x1B;[0m
[00:01:14.569,915] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Disconnected: 5C:FB:3A:53:9C:3A (public) (reason 8)&#x1B;[0m
[00:01:21.716,705] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_accept: conn 0x20000a60 handle 15&#x1B;[0m
[00:01:21.716,735] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_connected: chan 0x20001010 cid 0x0006&#x1B;[0m
[00:01:21.716,857] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Connected 5C:FB:3A:53:9C:3A (public)&#x1B;[0m
[00:01:21.992,614] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x01 len 6&#x1B;[0m
[00:01:21.992,645] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_req: &#x1B;[0m
[00:01:21.994,171] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_init: prnd f336db04b25935564e557ea799e4592a&#x1B;[0m
[00:01:22.114,959] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x0c len 64&#x1B;[0m
[00:01:22.114,959] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_public_key: &#x1B;[0m
[00:01:22.115,081] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: u f966c0cd4ab920a2644d57fac6f892acdd844bd7a9bd20758f62ab6cc463cb54&#x1B;[0m
[00:01:22.115,112] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: v 145991bbb068fcaa11495cb1a38f1460cbabf32f1ca76f13958389befa99d56f&#x1B;[0m
[00:01:22.115,142] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: x f336db04b25935564e557ea799e4592a z 0x0&#x1B;[0m
[00:01:22.116,302] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_f4: res a43326b1a05e7a2411d14de6c394224a&#x1B;[0m
[00:01:22.293,731] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_recv: Received SMP code 0x04 len 16&#x1B;[0m
[00:01:22.293,762] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_random: &#x1B;[0m
[00:01:22.293,792] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: u 145991bbb068fcaa11495cb1a38f1460cbabf32f1ca76f13958389befa99d56f&#x1B;[0m
[00:01:22.293,823] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: v f966c0cd4ab920a2644d57fac6f892acdd844bd7a9bd20758f62ab6cc463cb54&#x1B;[0m
[00:01:22.293,823] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: x 9c0a1983151bbb373f05d6fd0d18e14f&#x1B;[0m
[00:01:22.293,853] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: y f336db04b25935564e557ea799e4592a&#x1B;[0m
[00:01:22.295,013] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: res 29e16266206bca04111c8730fb3720d8&#x1B;[0m
[00:01:22.295,013] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_g2: passkey 694104&#x1B;[0m
[00:01:22.295,135] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Passkey for 5C:FB:3A:53:9C:3A (public): 694104&#x1B;[0m
[00:01:22.295,135] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Press Button 1 to confirm, Button 2 to reject.&#x1B;[0m
[00:01:22.364,501] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_dhkey_ready: 0x20006d7f&#x1B;[0m
[00:01:24.381,927] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Numeric Match, conn 0x20000a60&#x1B;[0m
[00:01:32.138,336] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_disconnected: chan 0x20001010 cid 0x0006&#x1B;[0m
[00:01:32.138,366] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.smp_pairing_complete: status 0x8&#x1B;[0m
[00:01:32.138,397] &#x1B;[0m&amp;lt;dbg&amp;gt; bt_smp.bt_smp_encrypt_change: chan 0x20001010 conn 0x20000a60 handle 15 encrypt 0x00 hci status 0x1f&#x1B;[0m
[00:01:32.138,519] &#x1B;[1;33m&amp;lt;wrn&amp;gt; peripheral_uart: Security failed: 5C:FB:3A:53:9C:3A (public) level 1 err 9&#x1B;[0m
[00:01:32.138,641] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Pairing failed conn: 5C:FB:3A:53:9C:3A (public), reason 9&#x1B;[0m
[00:01:32.138,793] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Disconnected: 5C:FB:3A:53:9C:3A (public) (reason 8)&#x1B;[0m
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried to press the button on the board first, then on the laptop, it doesn&amp;#39;t matter. Three attempts, in the first and third, first on the laptop, then on the board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/350994?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 06:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f861cc6-56ed-4e12-9873-3d3e17e86560</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Sorry, there might have been a misunderstanding here. I meant that you need to set both CONFIG_BT_DEBUG_LOG and CONFIG_BT_DEBUG_SMP to Y in your prj.conf&amp;nbsp; file to get more information in the log.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/350915?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 14:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cf76997-fd97-4408-8700-df96e07902c4</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;At least I don&amp;#39;t see any more information. I think there is a timeout that is running out.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.512,329] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: 2 Sectors of 4096 bytes&#x1B;[0m
[00:00:00.512,329] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: alloc wra: 0, f70&#x1B;[0m
[00:00:00.512,359] &#x1B;[0m&amp;lt;inf&amp;gt; fs_nvs: data wra: 0, dc&#x1B;[0m
[00:00:00.534,667] &#x1B;[0m&amp;lt;inf&amp;gt; bt_hci_core: No ID address. App must call settings_load()&#x1B;[0m
[00:00:00.534,698] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Bluetooth initialized&#x1B;[0m
[00:01:13.407,714] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Connected 5C:FB:3A:53:9C:3A (public)&#x1B;[0m
[00:01:14.162,231] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Passkey for 5C:FB:3A:53:9C:3A (public): 426108&#x1B;[0m
[00:01:14.162,231] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Press Button 1 to confirm, Button 2 to reject.&#x1B;[0m
[00:01:24.005,706] &#x1B;[1;33m&amp;lt;wrn&amp;gt; peripheral_uart: Security failed: 5C:FB:3A:53:9C:3A (public) level 1 err 9&#x1B;[0m
[00:01:24.005,828] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Pairing failed conn: 5C:FB:3A:53:9C:3A (public), reason 9&#x1B;[0m
[00:01:24.006,011] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Disconnected: 5C:FB:3A:53:9C:3A (public) (reason 8)&#x1B;[0m
[00:01:34.948,791] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Connected 5C:FB:3A:53:9C:3A (public)&#x1B;[0m
[00:01:35.463,623] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Passkey for 5C:FB:3A:53:9C:3A (public): 051090&#x1B;[0m
[00:01:35.463,623] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Press Button 1 to confirm, Button 2 to reject.&#x1B;[0m
[00:01:38.374,816] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Numeric Match, conn 0x20000a60&#x1B;[0m
[00:01:45.307,098] &#x1B;[1;33m&amp;lt;wrn&amp;gt; peripheral_uart: Security failed: 5C:FB:3A:53:9C:3A (public) level 1 err 9&#x1B;[0m
[00:01:45.307,220] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Pairing failed conn: 5C:FB:3A:53:9C:3A (public), reason 9&#x1B;[0m
[00:01:45.307,403] &#x1B;[0m&amp;lt;inf&amp;gt; peripheral_uart: Disconnected: 5C:FB:3A:53:9C:3A (public) (reason 8)&#x1B;[0m&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/350911?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 14:16:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d510c31a-03c7-4a34-801b-1c18c34d5a4d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It should be sufficient to set &lt;strong&gt;CONFIG_BT_DEBUG_LOG=y i&lt;/strong&gt;n the prj.conf file of your project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/350800?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 09:31:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d36b47cb-60d4-4f23-99e6-f3077190d2a3</guid><dc:creator>StefiNR</dc:creator><description>&lt;p&gt;How do I enable this option? (Do I need to reprogram and Net core?)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the example&lt;strong&gt; \SDK\ncs\v1.8.0\nrf\samples\bluetooth\peripheral_uart&lt;/strong&gt; , I put it in &lt;strong&gt;prj.conf&lt;/strong&gt;, last row CONFIG_BT_DEBUG_SMP=y.&lt;/p&gt;
&lt;p&gt;There is no effect in the SEGGER, no more rows appear at the time of connection.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This thing appears in the VSC and it is still useless.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Bluetooth Security Manager Protocol (SMP) debug&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Type: bool&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Value: n&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;This option enables debug support for the Bluetooth Security Manager Protocol (SMP). WARNING: This option prints out private security keys such as the Long Term Key. Use of this feature in production is strongly discouraged.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;This option enables debug support for the Bluetooth Security Manager Protocol (SMP). WARNING: This option prints out private security keys such as the Long Term Key. Use of this feature in production is strongly discouraged.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;Value has changed in the build&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;CONFIG_BT_DEBUG_SMP was assigned the value y, but got the value n. Missing dependencies:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(BT_HCI_HOST &amp;amp;&amp;amp; BT_SMP &amp;amp;&amp;amp; BT_DEBUG &amp;amp;&amp;amp; BT_RPC_STACK) || (BT_HCI_HOST &amp;amp;&amp;amp; BT_SMP &amp;amp;&amp;amp; BT_DEBUG &amp;amp;&amp;amp; BT_HCI &amp;amp;&amp;amp; BT)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;In the file smp.c, the word UNSPECIFIED occurs 81 times, how exactly will I find out what to do?&lt;/p&gt;
&lt;p&gt;--&lt;/p&gt;
&lt;p&gt;The sniffer is unusable for devices other than Nordic. In order to be able to trace the connection of two devices, I need to determine which device is the peripheral and broadcast. Unfortunately, in the field: Device(Wireshark), there are only addresses without names and I do not know what to connect to. I tried to search by ADDRESS, which is in the phone for Bluetooth, such does not exist. I tried all the addresses in sequence, nothing. I can upload a video of how the connection works, but nothing special. The PIN window appears, confirm it, and connect.&lt;/p&gt;
&lt;p&gt;At the beginning of the topic I wrote that I cannot scan the connection of two devices so I can look for differences.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connect a Laptop with Windows to Peripheral UART example</title><link>https://devzone.nordicsemi.com/thread/350773?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 06:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eec5ef3-4ccf-4cb8-bb20-8ce9f7a65fdc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Stefan&lt;/p&gt;
&lt;p&gt;Can you also add logging in SMP as well? You can do this by enabling BT_DEBUG_SMP, as this should give us more info on this &amp;quot;UNSPECIFIED&amp;quot; error code you&amp;#39;re seeing.&amp;nbsp;&lt;span style="font-family:inherit;"&gt;I would look in &lt;/span&gt;&lt;code&gt;zephyr/subsys/bluetooth/host/smp.c&lt;/code&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;for the &lt;/span&gt;&lt;code&gt;UNSPECIFIED&lt;/code&gt;&lt;span style="font-family:inherit;"&gt;&amp;nbsp;error and see in which cases the host might return that. You could also enable debugging for SMP (&lt;/span&gt;&lt;code&gt;CONFIG_BT_DEBUG_SMP).&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If possible, can we also get a sniffer log of a Bluetooth device that is able to connect to the laptop for comparison?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>