<?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>nRF5340 development</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57741/nrf5340-development</link><description>I have just ordered several nRF5340-PDK dev boards which should arrive tomorrow. I&amp;#39;ve gone through the process of installing the nRF Connect SDK and other tools using the Getting Started Assistant. I&amp;#39;ve imported the peripheral_uart sample code from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Feb 2020 10:34:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57741/nrf5340-development" /><item><title>RE: nRF5340 development</title><link>https://devzone.nordicsemi.com/thread/234362?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2020 10:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f74815-9cff-4267-bc02-c453ef20cb4e</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hmm,&amp;nbsp;The central uart sample could serve as a template for the lbs central.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I believe the uart central filters advertisers based on the Nordic Uart Service UUID. You&amp;#39;ll have to change that to filter for the LBS Service UUID instead. You will also have to change how the application reacts to the Service Discovery data received as it will not contain the Nordic Uart Service and its Characteristics but the LBS instead.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m writing a tutorial that covers the creation of a custom Service as we speak, though I&amp;#39;ve only implemented the peripheral side and have just started on the central side myself.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For FreeRTOS support I&amp;#39;m guessing we&amp;#39;ll have to look for support for the nRF5340 in a future nRF5 SDK. I&amp;#39;ll ask around for what the plans are there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 development</title><link>https://devzone.nordicsemi.com/thread/234267?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 18:01:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10c281c6-8667-4eb0-a500-240b0bdbb058</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;Thanks for the quick response haakonsh!&lt;/p&gt;
&lt;p&gt;The link to scan.rst helped.&amp;nbsp; After looking through the examples more, I&amp;#39;m wondering if the peripheral_uart is the right starting point.&amp;nbsp; Looking at peripheral_lbs, this would get me the end functionality I need on one side&amp;nbsp; - sending a button state and receiving an LED control command.&amp;nbsp; I just need the matching central side to go with it, along with the ability to detect whether the device is connected as the central or the peripheral.&amp;nbsp; I&amp;#39;d like to run the same code on both dev boards and have them connect when a button on one of the boards is pressed - the button press would initiate scanning on that board.&amp;nbsp; How difficult would it be to implement the central side of the peripheral_lbs on the dev board?&lt;/p&gt;
&lt;p&gt;Any inputs on future support for FreeRTOS?&lt;/p&gt;
&lt;p&gt;Thanks...&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 development</title><link>https://devzone.nordicsemi.com/thread/234178?ContentTypeID=1</link><pubDate>Thu, 13 Feb 2020 12:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bd83dad-2fdc-4722-b1c6-ee237c379277</guid><dc:creator>haakonsh</dc:creator><description>[quote user=""]Should sample code from both of these directories work on the dev board?[/quote]
&lt;p&gt;&amp;nbsp;Yes.&lt;/p&gt;
[quote user=""]Can you give me some guidance on which sample code to start with?&amp;nbsp; Is it as simple as starting with the peripheral_uart example and adding a call to&amp;nbsp;bt_scan_start when the button is pushed?&amp;nbsp; Or is there more infrastructure to add to enable the central role?[/quote]
&lt;p&gt;&amp;nbsp;We&amp;#39;ve made a library/module called scan.c in NCS that we use to decode the advertising data that is returned in the scan callback. The uart and LBS Central samples use this library. I suggest you set the scan parameters with a call to&amp;nbsp;bt_scan_params_set prior to calling bt_scan_start.&lt;/p&gt;
[quote user=""]Is there documentation that describes the steps I need to go through to implement this functionality?[/quote]
&lt;p&gt;&amp;nbsp;Documentation:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/include/bluetooth/scan.rst"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/include/bluetooth/scan.rst&lt;/a&gt;&amp;nbsp;use the Central samples in NCS as a reference.&lt;/p&gt;
[quote user=""]Is there documentation that describes setting up the various BLE parameters (connection interval, advertising interval, etc), as well as other behaviors such as scan filters?[/quote]
&lt;p&gt;&amp;nbsp;Zephyr API docs for the GAP layer:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/reference/bluetooth/gap.html"&gt;https://docs.zephyrproject.org/latest/reference/bluetooth/gap.html&lt;/a&gt;. The GAP layer handles advertisements, scanning, and connection management.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Setting the scan filter and parsing scan data with just the Zephyr API is a bit difficult so I recommend to use our Scan library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>