<?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>Need a simple terminal program to communicate with BLE UART service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53649/need-a-simple-terminal-program-to-communicate-with-ble-uart-service</link><description>We need a simple program that can be used as a terminal program on Windows (with nRF52840 dongle attached) to a remote device running the BLE UART service. 
 Essentially, this would be the same as the android nRF UART 2.0 app , but runs on Windows. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Nov 2019 08:47:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53649/need-a-simple-terminal-program-to-communicate-with-ble-uart-service" /><item><title>RE: Need a simple terminal program to communicate with BLE UART service</title><link>https://devzone.nordicsemi.com/thread/217898?ContentTypeID=1</link><pubDate>Fri, 01 Nov 2019 08:47:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b894cc5-7b3d-433f-a06c-c8d5ab59f8c7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have included an example that I believe should provide a good starting point for what you need:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-8cf5e1581a8b43a7995349e15d2306ac/usbd_5F00_ble_5F00_uart_5F00_c_5F00_v3.zip"&gt;devzone.nordicsemi.com/.../usbd_5F00_ble_5F00_uart_5F00_c_5F00_v3.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It combines the CDC ACM example with the ble_app_uart_c example, and includes project files for both the nRF52840DK and the nRF52840 dongle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The function used to process incoming data from the CDC port is called&amp;nbsp;cdc_acm_user_ev_handler(..), on line 714 of main.c.&amp;nbsp;&lt;br /&gt;Inside this handler the&amp;nbsp;APP_USBD_CDC_ACM_USER_EVT_RX_DONE case will run when more data is received from the CDC port, and in here it should be possible to add some code to detect incoming commands and separate them from normal data.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need a simple terminal program to communicate with BLE UART service</title><link>https://devzone.nordicsemi.com/thread/217650?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 04:54:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9e70d19-f38c-4073-afb0-8ac0226db971</guid><dc:creator>t_prachar</dc:creator><description>&lt;p&gt;Hayes modem style is fine as that solved the problem well for common channel link control.&lt;/p&gt;
&lt;p&gt;We dozens of devices advertising in our vicinity, so we need some ability to select the device to connect to, and command the tear-down of the connection as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need a simple terminal program to communicate with BLE UART service</title><link>https://devzone.nordicsemi.com/thread/217458?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 08:47:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dc4276b-ba4c-4666-94c0-98d9c5a17d82</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Would it be acceptable to interleave the commands with the normal CDC data, using some kind of escape character (that would not occur during normal communication), or would you need a separate dedicated control channel?&lt;/p&gt;
&lt;p&gt;I should be able to provide an example showing how to combine the USB CDC and the ble_app_uart_c example, but the existing example simply tries to connect to anything advertising the UART service, it does not allow control over the comport.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Because of the modular structure of the USBD driver it is quite straight forward to add a second CDC comport, but some work would have to be done to set up a command interface and have the ble_app_uart_c controlled from the CDC interface.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need a simple terminal program to communicate with BLE UART service</title><link>https://devzone.nordicsemi.com/thread/217197?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 18:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768df176-b4eb-47bb-968f-453be7cf63f4</guid><dc:creator>t_prachar</dc:creator><description>&lt;p&gt;A simple terminal program would work fine if the dongle did BLE&amp;lt;--&amp;gt;USB-CDC, but there needs to be commands for controlling the BLE connections such as scanning for other devices, and selecting one to connect with.&amp;nbsp; Basically, the same thing a dial-up modem needs to do but BLE vs. POTS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need a simple terminal program to communicate with BLE UART service</title><link>https://devzone.nordicsemi.com/thread/217125?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2019 14:11:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3e0d315-3d6e-46e7-8c61-ce160652b1bd</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Would it be sufficient to set up the dongle as a BLE to&amp;nbsp;USB CDC bridge, and use a terminal program on Windows to connect to the dongle, or do you need to be able to build your own interface on top?&lt;/p&gt;
&lt;p&gt;If you need more functionality on top then pretty much all the Windows development environments supports connecting to serial port devices, assuming you set up this in the dongle.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>