<?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>Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39288/connection-between-nrf52840-dongle-and-matlab</link><description>Hi everyone, I am newcommer in here. I just buy one nRF52840 Dongle. I want to connect it with nRF52832 DK with ble_app_uart implemented; and open a COM port in MATLAB to receive data and send commands from MATLAB to the DK. I have read about pc-ble-driver</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Oct 2018 11:17:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39288/connection-between-nrf52840-dongle-and-matlab" /><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152341?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 11:17:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93e593c6-ee71-427e-b56d-ea0b53d585c1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;They are fundamental Bluetooth concepts (not specific to Nordic) - so certainly worth getting them nailed before proceeding!&lt;/p&gt;
&lt;p&gt;Similar to the concepts of USB Host &amp;amp; Device ...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any BLE tutorial should cover it; eg,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt#connected-network-topology-3-2"&gt;https://learn.adafruit.com/introduction-to-bluetooth-low-energy/gatt#connected-network-topology-3-2&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152336?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 10:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9e45291-6cbd-4717-938b-46e01338fb63</guid><dc:creator>Milo311</dc:creator><description>&lt;p&gt;Thanks for your reply. I just feel confused about central and peripheral part programming. I will figure it by myself first and return if I have another problems.&lt;/p&gt;
&lt;p&gt;Milo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152330?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 10:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e4983f-e06d-4a1b-9895-87498b98324d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;[quote userid="74435" url="~/f/nordic-q-a/39288/connection-between-nrf52840-dongle-and-matlab/152326"]&amp;nbsp;Is it possible to do that? if yes can you please give me some hints?[/quote]&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt; just told you that it &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt;&lt;/em&gt; possible - and gave you links to the project documentation, and the location of the example in the SDK.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note the advice to &lt;strong&gt;do it on&amp;nbsp;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;an nRF52840DK &lt;em&gt;first&lt;/em&gt;&lt;/strong&gt; - as development &amp;amp; debugging will be much easier than on a dongle!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152326?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 09:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8dc2314-512c-4396-ac30-e3ebe6b03c3c</guid><dc:creator>Milo311</dc:creator><description>&lt;p&gt;Thanks for your reply. I think I will try to use this example in order to re-program the ble_uart_c for the dongle because I want the dongle to communicate with my custom board with NUS. Is it possible to do that? if yes can you please give me some hints?&lt;/p&gt;
&lt;p&gt;Milo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152324?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 09:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a80d9b7-972b-4708-8098-570c844d71e5</guid><dc:creator>Milo311</dc:creator><description>&lt;p&gt;Thanks for your reply. I will take a look on this site.&lt;/p&gt;
&lt;p&gt;Milo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152198?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 11:34:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01ad8969-3d25-4d41-a0e9-8280ab85e432</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;In fact, I just tested the example on the dongle, and it works. You should just be aware that the LEDs are on different pins on the Dongle and the DK, so it will not show the correct LED states, unless you change the preprocessor define BOARD_PCA10056 to BOARD_PCA10059.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152195?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 11:25:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:266051d7-e6ce-4d04-a2fd-075d596e4e0f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I agree with &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;to get the nRF52840 dongle to communicate with Matlab, you must find out what API Matlab uses.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can check out the example usbd_ble_uart, which is located in:&lt;/p&gt;
&lt;p&gt;SDK15.2.0\examples\peripheral\usbd_ble_uart. It doesn&amp;#39;t have a project file for the dongle yet, but you can test it with an nRF52840DK if you have one. The reason it is hard to test on the dongle is because it doesn&amp;#39;t have a programming chip, like the DK, so it is not possible to debug on the dongle.&lt;/p&gt;
&lt;p&gt;Here is the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fusbd_ble_uart_example.html"&gt;documentation on how to test the usbd_ble_uart example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection between nRF52840 Dongle and MATLAB</title><link>https://devzone.nordicsemi.com/thread/152184?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 10:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1529cfcf-7a72-4858-b9f8-ba4d98fdc7df</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Getting the dongle to appear as a COM port is a Windows thing - it has nothing to do with Matlab.&lt;/p&gt;
&lt;p&gt;You would have to write a Windows driver which presents the connection as a COM port ...&lt;/p&gt;
&lt;p&gt;Windows 10 has APIs for accessing BLE:&amp;nbsp;&lt;a href="https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/gatt-client"&gt;https://docs.microsoft.com/en-us/windows/uwp/devices-sensors/gatt-client&lt;/a&gt;&amp;nbsp;- presumably Matlab has means for accessing Windows APIs ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>