<?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>Advertising BLE FOTA service and custom service with Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75423/advertising-ble-fota-service-and-custom-service-with-zephyr</link><description>I am having problems advertising both FOTA and a custom service. I started with the peripheral sample (zephyr\samples\bluetooth\peripheral) and the smp_svr sample (\zephyr\samples\subsys\mgmt\mcumgr\smp_svr) 
 
 In the peripheral sample, the advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 May 2021 08:16:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75423/advertising-ble-fota-service-and-custom-service-with-zephyr" /><item><title>RE: Advertising BLE FOTA service and custom service with Zephyr</title><link>https://devzone.nordicsemi.com/thread/311346?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 08:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba63ad2-ce80-4396-a3a7-a707505b4dd6</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Based on what you write this seems to be an issue on the Android side, so you should&amp;nbsp;look more into that. You should always be able to discover all services when doing service discovery.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising BLE FOTA service and custom service with Zephyr</title><link>https://devzone.nordicsemi.com/thread/311138?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 17:51:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2896f98e-4337-4a56-bacc-43d578c92c0f</guid><dc:creator>yayembedded</dc:creator><description>&lt;p&gt;Hello Einar,&lt;/p&gt;
&lt;p&gt;Yes, exactly, the response was -EINVAL when putting both 128 bit UUIDs in the advertising array.&amp;nbsp; If you say there is no need to advertise all UUIDs then maybe I am looking at the wrong place for a solution.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;(Edited) This&amp;nbsp;is my actual problem after some digging:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When I run my&amp;nbsp;Android test app (which uses the Nordic BLE SDK),&amp;nbsp;on my Android 9 device there is no issue, but on my Android 7 device,&amp;nbsp;the app fails to retrieve the custom service that is not advertised.&amp;nbsp; It seems that the service discovery is not working&lt;/p&gt;
&lt;p&gt;I ran nrfConnect on the Android 7 device and I noticed it also had issues with not being able to discover services on my devices.&lt;/p&gt;
&lt;p&gt;Same APK, different result.&amp;nbsp;These devices are commercial OEM tablets.&amp;nbsp; Perhaps there is something wrong with the Android implementation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising BLE FOTA service and custom service with Zephyr</title><link>https://devzone.nordicsemi.com/thread/311044?ContentTypeID=1</link><pubDate>Fri, 21 May 2021 12:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7917c46a-ba61-4f66-a38b-382cf9ba3a7e</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you check the return value from&amp;nbsp;&lt;code&gt;bt_le_adv_start()&lt;/code&gt;? I would expect it was &lt;code&gt;-EINVAL&lt;/code&gt;, as the advertising packet will be too big in this case. So you either need to put e.g. the 128 bit UUID in the scan response packet instead, or decide not to advertise all the UUIDs (there is typically no need to advertise all service UUIDs).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>