<?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>Which Central code can I use to exchange data considering the Peripheral code presented in the course?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112433/which-central-code-can-i-use-to-exchange-data-considering-the-peripheral-code-presented-in-the-course</link><description>Hello everyone, 
 I&amp;#39;m taking the &amp;quot;Bluetooth Low Energy Fundamentals&amp;quot; course For all the examples I followed in the training, from what I understood, we loaded the peripheral code on the nRF52840 board and needed the App on the cell phone to simulate the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2024 21:14:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112433/which-central-code-can-i-use-to-exchange-data-considering-the-peripheral-code-presented-in-the-course" /><item><title>RE: Which Central code can I use to exchange data considering the Peripheral code presented in the course?</title><link>https://devzone.nordicsemi.com/thread/491184?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 21:14:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5f324e8-9106-4f02-91ee-fb4d943cc30e</guid><dc:creator>Edvin</dc:creator><description>[quote user="Higo"]3) About Central.&lt;br /&gt;In other test, I got the Central and Peripheral generic codes and was able to flash them on different cards. I was able to scan on the Central side; and also do advertising on the Peripheral side; and connect both. Now I need to be able to transfer data between the two boards.[/quote]
&lt;p&gt;I am glad to hear. This is a quite versatile example, and it can easily be changed to suit your need.&lt;/p&gt;
[quote user="Higo"]In the exercise the &lt;span&gt;representation&lt;/span&gt; to button characteristic is &lt;br /&gt;0x00001523, 0x1212, 0xefde, 0x1523, 0x785feabcd123&lt;br /&gt;is &lt;span&gt;segmented&lt;/span&gt; in 5 parts, but in page Services and characteristics, is demonstrated the are 4 parts (Handle, Type(UUID), Permissions, Value). I&amp;#39;m confused.[/quote]
&lt;p&gt;I think you got it a bit mixed up. The 5 segments make up the entire UUID alltogether. The UUID is 128 bit, (so that is 4 bytes + 2 bytes + 2 bytes + 2 bytes + 6 bytes = 16 bytes = 128 bits)&lt;/p&gt;
&lt;p&gt;If you follow the tutorial strictly, it should be correct. Please let me know where (on what step) you are stuck if it doesn&amp;#39;t work.&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: Which Central code can I use to exchange data considering the Peripheral code presented in the course?</title><link>https://devzone.nordicsemi.com/thread/490969?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 00:06:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa4a618-d7d9-4062-bbd7-dc4fc14c98c6</guid><dc:creator>Higo</dc:creator><description>&lt;p&gt;Hello Edvin,&lt;/p&gt;
&lt;p&gt;1) About course, I&amp;#39;m happy that Nordic will continue creating the &lt;span&gt;trainings&lt;/span&gt;.&amp;nbsp;&lt;span&gt;I myself am excited to create content about implementation using Nordic boards.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;2) About the course in DevAcademy, I&amp;#39;m stuck in Exercise 4.1.&lt;br /&gt;I can copy the code and put in code prior, compile and flash, work well. But, same &lt;span&gt;studying&lt;/span&gt; the pages (GATT operations, Services and &lt;span&gt;characteristic&lt;/span&gt; and Attribute table) of the training, I still don&amp;#39;t understand how mount the bytes (&lt;span&gt;attributes&lt;/span&gt;) to create the service and &lt;span&gt;characteristic&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;In the exercise the &lt;span&gt;representation&lt;/span&gt; to button characteristic is &lt;br /&gt;0x00001523, 0x1212, 0xefde, 0x1523, 0x785feabcd123&lt;br /&gt;is &lt;span&gt;segmented&lt;/span&gt; in 5 parts, but in page Services and characteristics, is demonstrated the are 4 parts (Handle, Type(UUID), Permissions, Value). I&amp;#39;m confused.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking forward to getting to exercise 4.3, to check the Nordic UART Service (NUS)&lt;/p&gt;
&lt;p&gt;3) About Central.&lt;br /&gt;In other test, I got the Central and Peripheral generic codes and was able to flash them on different cards. I was able to scan on the Central side; and also do advertising on the Peripheral side; and connect both. Now I need to be able to transfer data between the two boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which Central code can I use to exchange data considering the Peripheral code presented in the course?</title><link>https://devzone.nordicsemi.com/thread/490961?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 22:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83a3a2f9-a59e-447f-8d58-03a9a8f0c555</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Thank you for the feedback. Yes, ideally we would cover everything in these courses, but they take time to make. But more will come, so feedback on topics are good.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Bluetooth course on DevAcademy basically builds up the peripheral_uart sample from scratch, but we did take parts of the peripheral_lbs sample in to demonstrate a few concepts at an earlier stage in the course. But if you complete the course, you should recognize quite a lot from the peripheral_uart sample in the end (at least the BLE part of the sample).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for the central, it should be possible to follow the code from the sample. Basically, the flow is to start scanning, search for the particular service (service discovery) and set up how the central will use that service.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you are stuck.&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: Which Central code can I use to exchange data considering the Peripheral code presented in the course?</title><link>https://devzone.nordicsemi.com/thread/490686?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 14:41:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f4d1fc0-8411-4e38-b538-c5bc84f91be6</guid><dc:creator>Higo</dc:creator><description>&lt;p&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Hello Edvin, &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Thank you for your support. &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I will focus my efforts on learning from these examples you mentioned. &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;I believe that a topic about Central implementation would help a lot, another interesting topic would be BLE Mesh implementation. &lt;/span&gt;&lt;/span&gt;&lt;span class="jCAhz JxVs2d ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Thanks&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Which Central code can I use to exchange data considering the Peripheral code presented in the course?</title><link>https://devzone.nordicsemi.com/thread/490661?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2024 13:19:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a119a148-b12f-4862-96fa-eb4f09dd2855</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So in that particular lesson we are using the LBS service (Led Button Service). We don&amp;#39;t have a central application for this particular service in NCS. We did have one in the nRF5 SDK (the old &amp;quot;legacy&amp;quot; SDK), but it may not be worth the trouble installing that and getting familiarized with it just to get a central sample for the LBS up and running (that is up to you).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to, it is possible to create this service, but we do not have any Devacademy courses showing how to set up central applications. At least not at this point in time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, there is nothing special about this service (LBS), apart that we have a separate mobile app that interacts with this particular service. If you want to set up a central-peripheral pair, I can recommend trying out the peripheral_uart and central_uart samples. They will connect to one another, and they will have a &amp;quot;tunnel&amp;quot;, using the &amp;quot;Nordic UART Service&amp;quot;. The way that works is that the peripheral has one Service with two Characteristics. One for sending and one for receiving. The peripheral uses the function bt_nus_send() to send an array of data, and the central uses&amp;nbsp;bt_nus_client_send() to send data the other way.&lt;/p&gt;
&lt;p&gt;Perhaps this is something that you can use?&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></channel></rss>