<?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>Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80687/long-range-data-transfer-from-central-to-peripheral</link><description>Hi, 
 In my application i am trying out to transfer data in Long range BLE_GAP_PHY_CODED mode , i have set my peripheral has to advertise in PHY coded mode below is the advertising init function which changed to phy coded. i am using ble_app_blinky_c</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Nov 2021 09:02:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80687/long-range-data-transfer-from-central-to-peripheral" /><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/339358?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 09:02:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15313cae-87a3-4f80-a1e3-55f53997d590</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;That is great to hear. I will consider the case resolved then &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/339246?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 13:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82905b71-beb6-4bc6-91ef-d1c03ce4ebb8</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;hi ovrebekk,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Its working in LR mode data transfer .&lt;span&gt;NRF_SDH_BLE_GAP_EVENT_LENGTH increased the event lenght too , Its working now&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/336842?ContentTypeID=1</link><pubDate>Mon, 01 Nov 2021 11:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ccdee6f-5a33-497a-9180-3d30c329e11f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sowmiya&lt;/p&gt;
&lt;p&gt;Are you saying that almost exactly the same code (only changed to support coded phy) will allow you to send 247 bytes of data in 1M mode, but not in coded phy mode?&lt;/p&gt;
&lt;p&gt;Can you run the two examples with logging enabled to see if there are any warning or error messages printed that might indicate why the MTU size can not be increased?&lt;/p&gt;
&lt;p&gt;Could you try to capture a sniffer trace of the BLE communication when you connect the devices and try to send 247 bytes of data (using the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF Sniffer&lt;/a&gt; for instance)?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/336716?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 14:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d40a186-d363-4b87-b10a-16cfad1ba8a3</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;Hi ovrebekk ,&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/80687/long-range-data-transfer-from-central-to-peripheral/336633#336633"]Another reason to use the ble_app_uart example is that it handles the MTU exchange for you. The blinky example does not, since you don&amp;#39;t need extended MTU to send a single byte back and forth ;)[/quote]
&lt;p&gt;blinky i have changed the MTU to transfer 247 bytes data&amp;nbsp; and increased the MTU size you can see in LBS service in my demo example and the reason almost its all done In 1mpbs mode data transfer already in my project and now adding PHYcoded data transfer.&lt;/p&gt;
&lt;p&gt;i have tested with ble_app_uart_example and the same way i have tried out still its sending only 27 bytes in PHY coded .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/336633?ContentTypeID=1</link><pubDate>Fri, 29 Oct 2021 09:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3bd8e25-7468-49dc-abbc-ecf25669f16f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Sowmiya&lt;/p&gt;
&lt;p&gt;Another reason to use the ble_app_uart example is that it handles the MTU exchange for you. The blinky example does not, since you don&amp;#39;t need extended MTU to send a single byte back and forth ;)&lt;/p&gt;
&lt;p&gt;In order to see how this is done I would recommend simply having a look at the ble_app_uart and ble_app_uart_c example. In particular, take a look at the implementation of the &lt;em&gt;void gatt_init(void)&lt;/em&gt; function in main.c, which configures the GATT module that is responsible for handling the MTU exchange.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/336514?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 13:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c718ccbe-7052-4778-a864-4d5604d2f19c</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/NRF_5F00_15_5F00_2.rar"&gt;devzone.nordicsemi.com/.../NRF_5F00_15_5F00_2.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;yes , Lbs i have already changes done on service configurations. and For PHY coded increased the size of GAP_DATA_LENGTH but not able to transfer more then 27 bytes , i have attached&amp;nbsp; my demo file please advice what&amp;nbsp; i have missed here.&lt;/p&gt;
&lt;p&gt;#ifndef NRF_SDH_BLE_GAP_DATA_LENGTH&lt;br /&gt;#define NRF_SDH_BLE_GAP_DATA_LENGTH 251&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;#ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH&lt;br /&gt;#define NRF_SDH_BLE_GAP_EVENT_LENGTH 6&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;// &amp;lt;o&amp;gt; NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size. &lt;br /&gt;#ifndef NRF_SDH_BLE_GATT_MAX_MTU_SIZE&lt;br /&gt;#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247&lt;br /&gt;#endif&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;sowmiya&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/336453?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 11:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85581305-ed10-4105-b86a-38d0d7f75187</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good to hear you got it working &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;It should be possible to extend the length, yes, but you need to increase the&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH and&amp;nbsp;NRF_SDH_BLE_GATT_MAX_MTU_SIZE parameters in sdk_config.h in order to be able to support extended MTU. Once you do this you will also need to increase the amount of RAM assigned to the SoftDevice (as shown in &lt;a href="https://www.youtube.com/watch?v=o_H1USWAM18&amp;amp;t=111s&amp;amp;ab_channel=NordicSemiconductor"&gt;this&lt;/a&gt; Youtube video).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Finally, you would need to change the service configuration as well, since the LBS service only supports 1 byte data transfer, but possibly you already did this?&lt;br /&gt;This is another reason to use the NUS service instead, as it is set up to support longer packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/336280?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 15:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb1745f4-2e2e-4f18-b52a-ecf8f2c66846</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;hi ,&lt;/p&gt;
&lt;p&gt;its working in LBS service now !! and data transfer maximum length &lt;span&gt;27 bytes when using Coded PHY ?it possible to extend the length ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/335965?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 12:37:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db53f146-41d5-466f-b244-fc3ecf94c728</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to share your project with me?&amp;nbsp;&lt;br /&gt;If so, please just zip the project folder, with source and project files included.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If so I can try to run it here, and see if I can reproduce the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/335802?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 14:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98e7c2aa-1ed4-4283-b7af-eb2219c4266b</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;i have checked the demo code with&amp;nbsp;&lt;span&gt;&amp;nbsp;s140_nrf52_6.1.0_softdevice&amp;nbsp; its working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;same way checking on LBS service on central side&amp;nbsp;ble_lbs_led_status_send&amp;nbsp; is getting succes while connecting to send the message.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but on Periperal side connecting and disconnection happens.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;ret_code_t err_code;&lt;br /&gt; ble_advdata_t advdata;&lt;br /&gt; ble_advdata_t srdata;&lt;br /&gt; ble_advdata_manuf_data_t manuf_specific_data;&lt;/p&gt;
&lt;p&gt;manuf_specific_data.company_identifier = APP_COMPANY_IDENTIFIER;&lt;br /&gt; manuf_specific_data.data.p_data = (uint8_t *) NORMAL_BEACON;&lt;br /&gt; manuf_specific_data.data.size = APP_BEACON_INFO_LENGTH;&lt;/p&gt;
&lt;p&gt;// ble_uuid_t adv_uuids[] = {{LBS_UUID_SERVICE, m_lbs.uuid_type}};&lt;/p&gt;
&lt;p&gt;// Build and set advertising data.&lt;br /&gt; memset(&amp;amp;advdata, 0, sizeof(advdata));&lt;/p&gt;
&lt;p&gt;// advdata.name_type = BLE_ADVDATA_NO_NAME;&lt;br /&gt; advdata.include_appearance = false;&lt;br /&gt; advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;br /&gt; advdata.p_manuf_specific_data = &amp;amp;manuf_specific_data;&lt;br /&gt; memset(&amp;amp;srdata, 0, sizeof(srdata));&lt;br /&gt;// srdata.uuids_complete.uuid_cnt = sizeof(adv_uuids) / sizeof(adv_uuids[0]);&lt;br /&gt;// srdata.uuids_complete.p_uuids = adv_uuids;&lt;/p&gt;
&lt;p&gt;err_code = ble_advdata_encode(&amp;amp;advdata, m_adv_data.adv_data.p_data, &amp;amp;m_adv_data.adv_data.len);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;err_code = ble_advdata_encode(&amp;amp;srdata, m_adv_data.scan_rsp_data.p_data, &amp;amp;m_adv_data.scan_rsp_data.len);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;ble_gap_adv_params_t adv_params;&lt;/p&gt;
&lt;p&gt;// Set advertising parameters.&lt;br /&gt; memset(&amp;amp;adv_params, 0, sizeof(adv_params));&lt;/p&gt;
&lt;p&gt;printf(&amp;quot;phy coded startes------\n&amp;quot;);&lt;/p&gt;
&lt;p&gt;adv_params.primary_phy = BLE_GAP_PHY_CODED;&lt;br /&gt; adv_params.secondary_phy = BLE_GAP_PHY_CODED;&lt;br /&gt; adv_params.properties.type = BLE_GAP_ADV_TYPE_EXTENDED_CONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;br /&gt;// }&lt;br /&gt;// else{&lt;br /&gt;// adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED;&lt;br /&gt;// }&lt;br /&gt; adv_params.p_peer_addr = NULL;&lt;br /&gt; adv_params.filter_policy = BLE_GAP_ADV_FP_ANY;&lt;br /&gt; adv_params.scan_req_notification = 1;&lt;br /&gt; if(battery_level == 0 || battery_level &amp;gt;= BATTERY_VOLTAGE_MIN_FOR_DISPLAY){ &lt;br /&gt; adv_params.interval = ADV_INTERVAL; &lt;br /&gt; } &lt;br /&gt; else{&lt;br /&gt; adv_params.interval = LOW_LEVEL_BATTERY_INTERVAL; &lt;br /&gt; }&lt;br /&gt; adv_params.duration = adv_timeout; // Never time out.&lt;br /&gt; &lt;br /&gt; err_code = sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle, &amp;amp;m_adv_data, &amp;amp;adv_params);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; sd_ble_gap_adv_set_configure(&amp;amp;m_adv_handle,&amp;amp;m_adv_data,&amp;amp;adv_params);&lt;br /&gt; NRF_LOG_INFO(&amp;quot;m_adv_data.adv_data.p_data address %p&amp;quot;, m_adv_data.adv_data.p_data);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/335702?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 11:23:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c586076-d7e1-43ff-9a0c-16357fc6fd05</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;thanks for the reply , my application&amp;nbsp; already added with LBS services to scan Both 1Mpbs and PHY CODED beaccons and now trying the same in connected mode to transfer data in LONG RANGE AND 1mpbs here 1mpbs connected and data transfer working. so adding the same for PHY CODED. I am using the softdevice&amp;nbsp;s140_nrf52_6.1.0_softdevice in my application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i have debugged the demo long range code&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157300#157300"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157300#157300&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; here softdevice&amp;nbsp;s140_nrf52_6.1.1_softdevice.hex&amp;nbsp;&lt;/p&gt;
&lt;p&gt;is this supported only on 6.1.1 softdevice ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/335211?ContentTypeID=1</link><pubDate>Thu, 21 Oct 2021 07:56:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b5fac84-6415-449d-96ea-4cb614bb364d</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Any reason you can&amp;#39;t just use the UART example instead of blinky?&lt;/p&gt;
&lt;p&gt;The only difference between the UART service and the LED button service is that the UART services uses variable length characteristics (to send strings), while the LED button service uses 1 byte characteristics (to send the LED and button status).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for debugging the issue, have you tried to check the log output to see if there is anything there that could explain the issue?&lt;/p&gt;
&lt;p&gt;Are you sure that the code for sending data is actually run?&lt;/p&gt;
&lt;p&gt;Have you used the debugger to check whether or not the function for sending data runs, and if it returns any errors?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/335056?ContentTypeID=1</link><pubDate>Wed, 20 Oct 2021 11:00:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:145634e3-888c-4045-8241-9557db67f4f5</guid><dc:creator>sowmiya</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I have tried&amp;nbsp;&lt;span&gt;ble_app_uart and ble_app_uart_c examples in long range data gets transfer from central to peripheral . same way tried&amp;nbsp;ble_app_blinky and&amp;nbsp;ble_app_blinky_c&amp;nbsp; example with lbs services in long range gets succesfully connected but stil no data transfer happens.&lt;/span&gt;&lt;span&gt;in first query is my PHY_CODED chnages in ble_app_blinky example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would you please help provide more details as suggested.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long range data transfer from central to peripheral</title><link>https://devzone.nordicsemi.com/thread/334312?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 10:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47eca038-3cc4-4bc6-85a6-a4c972d4f618</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My colleague Vidar shared an example showing how to use the ble_app_uart and ble_app_uart_c examples in long range mode, and he shared the code in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/40476/unable-to-convert-to-long-range-after-looking-at-umpteen-examples--/157300#157300"&gt;this case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I would recommend you start by taking a look at his examples.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then if you&amp;#39;re still having issues I will do my best to help next week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>