<?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>Ble automation on linux</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64806/ble-automation-on-linux</link><description>Hi, 
 I have a ble device that uses nRF52 chip. I would like to know if it is possible to do ble automation on that device. 
 
 Here is my setup: 
 OS: Ubuntu 20.04 LTS 
 Bluetooth receiver: R unning this on DELL XPS-13-9370 laptop which has a wifi chip</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Aug 2020 08:44:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64806/ble-automation-on-linux" /><item><title>RE: Ble automation on linux</title><link>https://devzone.nordicsemi.com/thread/266652?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 08:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24df1638-2410-4a01-9b3a-d5eaf35ea0dd</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="abunai"]Sorry, I just noticed your response. I guess I didn&amp;#39;t turn on reply notification.[/quote]
&lt;p&gt;No problem at all.&lt;/p&gt;
[quote user="abunai"]Anyways, it is a custom module. I am attaching a log that I got from nrfConnect for Desktop which I used nRF52840 USB Dongle to scan my BLE device. I got basically the same result[/quote]
&lt;p&gt;Thank you for including the log.&lt;br /&gt;It seems indeed that your remote device terminates the connection.&lt;br /&gt;Furthermore, it seems in your log that you are attempting to read some characteristics with different handles, and you keep requesting handle 15, but there does not exist any such characteristic.&lt;br /&gt;The log message associated with this is : &amp;quot;Cannot handle HVX event. No characteristic value with handle 15 found.&amp;quot;&lt;br /&gt;And this happens repeatedly before the remote user disconnects.&lt;br /&gt;&lt;br /&gt;Could you check what your program is attempting and failing to read here? And, what your custom module is programmed to do when receiving repeated invalid requests?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble automation on linux</title><link>https://devzone.nordicsemi.com/thread/266591?ContentTypeID=1</link><pubDate>Wed, 26 Aug 2020 21:14:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e3f2703-2fef-4c61-b307-fbe71b54a1ad</guid><dc:creator>abunai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry, I just noticed your response. I guess I didn&amp;#39;t turn on reply notification.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyways, it is a custom module. I am attaching a log that I got from nrfConnect for Desktop which I used nRF52840 USB Dongle to scan my BLE device. I got basically the same result&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2020-08-26T19:53:09.879Z DEBUG GAP_EVT_DISCONNECTED time:2020-08-26T19:53:09.877Z connHandle:0 reason:19 reasonName:remoteUserTerminatedConnection&lt;br /&gt;2020-08-26T19:53:09.881Z INFO Disconnected from device XX:XX:XX:XX:XX:XX, reason: BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Anh&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/2020_2D00_08_2D00_26T18_5F00_34_5F00_35.615Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../2020_2D00_08_2D00_26T18_5F00_34_5F00_35.615Z_2D00_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble automation on linux</title><link>https://devzone.nordicsemi.com/thread/264568?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 08:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4b13fbf-5f16-4f1f-86ba-f76a3279436c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am not familiar with the Bluez stack, but from your btmon HCI event it seems that the connection is terminated by the remote user, i.e your nRF52 device. What program is your nRF52 device running? Could it be that it terminates the connection because of a non-compatible connection configuration with the central device?&lt;br /&gt;What kind of device is the nRF52 device, are you working with a nRF52 development kit or a custom module?&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>