<?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>PC SW connection to device throw BLE USB dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59816/pc-sw-connection-to-device-throw-ble-usb-dongle</link><description>Hi, 
 
 I am developing a PC SW that connects to nRF52840 device throw a BLE USB dongle(another nRF52840) 
 How I can tell from PC that a device is connected\disconnected to the dongle ? 
 Lets say in connection I can let the device send to PC a connection</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Apr 2020 11:29:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59816/pc-sw-connection-to-device-throw-ble-usb-dongle" /><item><title>RE: PC SW connection to device throw BLE USB dongle</title><link>https://devzone.nordicsemi.com/thread/245505?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 11:29:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9102fc11-c50a-4ca6-a2ca-e2b45cf0f790</guid><dc:creator>jawadk</dc:creator><description>&lt;p&gt;Thank you Simon,&lt;/p&gt;
&lt;p&gt;I also think that the dongle have to the central device.&lt;/p&gt;
&lt;p&gt;you were so helpful with your replies.&lt;/p&gt;
&lt;p&gt;Thanks again.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;JK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC SW connection to device throw BLE USB dongle</title><link>https://devzone.nordicsemi.com/thread/245498?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 11:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23e82be4-51a6-4cc6-b7dd-bde16df86fc9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;That depends on what the two devices it is supposed to connect to are. Both should indeed work, so you should make your decision on what tasks you want the Dongle to do, as well as the connected devices. Based on the information you have already provided I&amp;#39;d suggest looking at using the Dongle as a central.&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: PC SW connection to device throw BLE USB dongle</title><link>https://devzone.nordicsemi.com/thread/245449?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 08:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25c6dac9-28c1-465b-9b7e-724d4e96f2f5</guid><dc:creator>jawadk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for you reply.&lt;/p&gt;
&lt;p&gt;another question under the same subject please:&lt;/p&gt;
&lt;p&gt;my project shall allow two devices to connect to one dongle.&lt;/p&gt;
&lt;p&gt;what is more recommended ? the dongle should be as a central or as a peripheral ?&lt;/p&gt;
&lt;p&gt;I believe that there is&amp;nbsp; advantages and disadvantages&amp;nbsp;to both cases.&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;JK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC SW connection to device throw BLE USB dongle</title><link>https://devzone.nordicsemi.com/thread/243573?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 09:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fa26ca3-9aa7-465c-aa61-747c500abbd1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/59000/serial-port-communication-between-nrf52840-dongle-and-raspberry-pi-4-using-ble/239625#239625"&gt;this thread&lt;/a&gt;, which explains the usbd_ble_uart application a bit better. Our SDK doesn&amp;#39;t support HCI, which is what most BLE Dongles use to communicate with computers, which is likely why you&amp;#39;re having trouble communicating with your PC.&lt;/p&gt;
&lt;p&gt;As for choosing what device you want to communicate with, I suggest you differentiate them by either UUID or device name and send commands to just one device name that way. So you will have to input what device you want to send a command to when executing the said command.&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: PC SW connection to device throw BLE USB dongle</title><link>https://devzone.nordicsemi.com/thread/243509?ContentTypeID=1</link><pubDate>Sun, 05 Apr 2020 13:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eeea06b4-3a90-4fa9-aa5d-879a4331225b</guid><dc:creator>jawadk</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for you reply.&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;I tried the usbd_ble_uart woth a pc serial port app on PC ( windows 10) and it didn&amp;#39;t work.&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;first the PC recognize the device as serial device, and after I installed the usb driver it recognize it as&amp;nbsp; nRF52 USB CDC BLE Demo(COM4), then I tried with Hercules and it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;Please help me with this, this USB issue thing wasn&amp;#39;t expected !!&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/59816/pc-sw-connection-to-device-throw-ble-usb-dongle/243307"][/quote]
&lt;blockquote class="quote"&gt;
&lt;div class="quote-content"&gt;what is the more accepted way to let the user chose from PC to what device to send the command to, sins more than one device connected to the dongle, what is the protocol !?&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div class="quote-footer"&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure what you mean by this question, can you please clarify?&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;My PC app shall send\receive command\reply from two devices that connected throw BLE to the BLE USB dongle that connected to the PC throw USB.&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;I want to let the user choose to what device from the two to send the command. the two devices is the same, they are not different, but every device work in a different room.&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;How can I let the dongle send the command only to the required device and not to both !?&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;BR&lt;/p&gt;
&lt;p style="direction:ltr;"&gt;JK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PC SW connection to device throw BLE USB dongle</title><link>https://devzone.nordicsemi.com/thread/243307?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 06:59:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41a0f61a-2ba5-4d9c-b31f-1190297b0ad5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I assume you need to make a user interface of some kind that gets data via the USB on your Dongle. Maybe modifying the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/usbd_ble_uart_example.html"&gt;usbd_ble_uart&lt;/a&gt; example to send data to your computer whenever it connects to/disconnects from a device. As you want multiple devices to be recognized I suggest you include the device name or UUID of the connected device in the data sent to the PC, so you are able to tell the various devices apart from one another.&lt;/p&gt;
[quote user=""]what is the more accepted way to let the user chose from PC to what device to send the command to, sins more than one device connected to the dongle, what is the protocol !?[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure what you mean by this question, can you please clarify?&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>