<?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>Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94392/custom-service-setup-in-central-in-nrf-connect-sdk</link><description>i am working with NRF52840 and i am using nRF Connect SDk. 
 can i get the help/documentation or guide to add the custom service. 
 can anyone compare and explain with nRF_SDK_17.0.2.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Dec 2022 14:05:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94392/custom-service-setup-in-central-in-nrf-connect-sdk" /><item><title>RE: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/399217?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 14:05:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2b53249-a0cd-42cf-aa7e-44fd022d37b0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This project doesn&amp;#39;t seem to have anything to do with Bluetooth LE and services, so I&amp;#39;m not sure I understand how this is related to your ticket, but we do have multiple USB sample projects available in the Zephyr branch &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/usb/usb.html"&gt;here&lt;/a&gt;. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/subsys/usb/audio/headphones_microphone/README.html"&gt;USB CDC ACM sample application&lt;/a&gt; is likely the easiest to get into.&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: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/399123?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2022 09:17:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be2d5fdc-31eb-46c1-9a0e-3beadd2d577b</guid><dc:creator>Dr. Jumba Jookiba</dc:creator><description>&lt;p&gt;&lt;a href="https://github.com/vincent290587/stravaV10/blob/develop/source/usb/usb_cdc.c"&gt;github.com/.../usb_cdc.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;i want to implement similar to this in nRF COnnect SDK, Do we have any similar example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/398927?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2022 09:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:105d0702-5f59-4c8c-8af4-15910bffd7ee</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I would recommend using logging to try and debug this to see where exactly it would fail. As I can&amp;#39;t think of what exactly the issue would be from these error messages. Are you able to see where the device fails exactly when this error occurs? Try setting CONFIG_LOG=y in your project config file, and add some printk() lines to make sure that steps are completed successfully. You can also use the Debug extension in VS Code, we have a &lt;a href="https://www.youtube.com/watch?v=MGsZJpdLtco"&gt;tutorial video available here&lt;/a&gt;.&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: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/398756?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 12:36:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2de77d73-351b-4478-9b6e-4ab0ad1a420e</guid><dc:creator>Dr. Jumba Jookiba</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&amp;nbsp;, i have completed that part but stuck after discovering the service.&lt;br /&gt;The discovery get completed and then while processing the following line&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;bt_gatt_dm_data_print(dm);

bt_nus_handles_assign(dm, nus);
bt_nus_subscribe_receive(nus);

bt_gatt_dm_data_release(dm);
k_sleep(K_SECONDS(10));
//bt_gatt_dm_continue(dm,context);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I get the following errors and then device reset,&lt;/p&gt;
&lt;p&gt;[00:00:31.800,567] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****&lt;br /&gt;[00:00:31.800,598] &amp;lt;err&amp;gt; os: Data Access Violation&lt;br /&gt;[00:00:31.800,598] &amp;lt;err&amp;gt; os: MMFAR Address: 0x4&lt;br /&gt;[00:00:31.800,628] &amp;lt;err&amp;gt; os: r0/a1: 0x0000001a r1/a2: 0x00000000 r2/a3: 0x0001537b&lt;br /&gt;[00:00:31.800,628] &amp;lt;err&amp;gt; os: r3/a4: 0x00015379 r12/ip: 0x000000d7 r14/lr: 0x00010d9b&lt;br /&gt;[00:00:31.800,659] &amp;lt;err&amp;gt; os: xpsr: 0x01000000&lt;br /&gt;[00:00:31.800,659] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00010da8&lt;br /&gt;[00:00:31.800,689] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0&lt;br /&gt;[00:00:31.800,720] &amp;lt;err&amp;gt; os: Current thread: 0x20001d98 (BT RX)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/398691?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 08:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a87b8783-e218-4d0f-98e3-1a5277b191a0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry, that wasn&amp;#39;t the best explanation. Since the nus_client.c file does not have a gatt_discover() function in the driver file you need to edit this in your main.c file instead to use the custom UUID. The central_uart samples main.c file has a gatt_discover() function that is looking for the NUS service specifically, so you need to either replace this with or add your custom service UUID here.&lt;/p&gt;
&lt;p&gt;Unfortunately we do not have a specific walkthrough for the central side, as it is conceptually similar to how it&amp;#39;s done on the peripheral side.&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: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/398468?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 09:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9042bec3-33c3-41b6-9ce6-7dfa78b6305d</guid><dc:creator>Dr. Jumba Jookiba</dc:creator><description>&lt;p&gt;Thank you&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&amp;nbsp;&lt;br /&gt;i have modified that file with my custom uuids.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think i am miising this part,Also, since NUS_CLIENT does not have the discovery added, you need to change the gatt_discover() function to use the custom UUID as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please point me to any example in which it is done.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would really like to see a walkthrough for the central side and if possible the combination of the central and peripheral for a device.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/398459?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2022 08:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1907f9d-a7ff-4459-a91f-1b1a4a143f6c</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;You need to modify this file to recognize your custom UUID, as the nus_client.c by default is only designed to work with the NUS base UUID. Also, since NUS_CLIENT does not have the discovery added, you need to change the gatt_discover() function to use the custom UUID as well.&lt;/p&gt;
&lt;p&gt;What exactly &amp;quot;isn&amp;#39;t working&amp;quot; in your case?&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: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/398325?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 12:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bd7e10f-42b2-42ec-88de-ea0081ea1a02</guid><dc:creator>Dr. Jumba Jookiba</dc:creator><description>&lt;p&gt;Thank you for quick response,&lt;br /&gt;have gone through this, this example represent peripheral side of creating custom service and all.&lt;/p&gt;
&lt;p&gt;i am working on central where i have to read the custom service after connecting to the peripheral, i have modified nus_client.c and header file to read my custom services.&lt;/p&gt;
&lt;p&gt;But that isn&amp;#39;t working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Service Setup in Central in nRF Connect SDK</title><link>https://devzone.nordicsemi.com/thread/398320?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 12:12:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cfd8750-bcf1-44f2-8726-9b7bbf82d410</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;One of my colleagues has made a &lt;a href="https://github.com/edvinand/custom_ncs_ble_service_sample"&gt;Custom BLE service sample project for the nRF Connect SDK here&lt;/a&gt; that is made for BLE courses.&amp;nbsp;&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>