<?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>Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76872/cannot-send-string-data-over-ble-to-ios-nordic-connect-app-from-board</link><description>Hi everyone, so I have been trying to enable the nRF52840 to send notifications to the Nordic Connect app via a custom characteristic. The app can detect the custom service when it&amp;#39;s being advertised and it connects successfully, but even after I enable</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Jun 2021 13:51:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76872/cannot-send-string-data-over-ble-to-ios-nordic-connect-app-from-board" /><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/318010?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 13:51:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed5b3eb6-17ec-4961-94f8-e4ca17e0e8d6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Ok, but you are not using the main.c file I sent. You should replace NRF_ERROR_BUSY with NRF_ERROR_RESOURCES like I did.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/318008?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 13:47:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14704189-21e5-4f65-a7af-abcb14cdf192</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;Hi, I did try with the project you sent, and it gives a more descriptive error message:&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 19 [NRF_ERROR_RESOURCES] at ble_app_uart\main.c:1045&lt;br /&gt;PC at: 0x00030B2F&lt;br /&gt;&amp;lt;error&amp;gt; app: End of error report&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317906?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 09:05:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0251dd8-4d6e-4d11-b811-c9d9947cd042</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please try with the project I sent if you haven&amp;#39;t done it already. I made some changes to the logger initialization, so you should see the debug log messages in the Segger debug terminal when you debug the application. The info variable does not tell us where the error occured.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317793?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 18:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb4700c4-cac8-4a7a-b6f3-d82091f4aa5a</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;Thanks. The project does run now, but as soon as I toggle notifications on, I get a fatal error with the local variable info = 0x2b185.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317788?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 18:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a092a0-2600-4732-808d-aea20cac50e9</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, make sure the &amp;#39;TIMER1_ENABLED&amp;#39; setting is enabled in the sdk_config file. You can also build the project I sent you if you move it to &amp;lt;your sdk folder&amp;gt;\examples\ble_peripheral\ first&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317780?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 16:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f7ef079-424d-4822-93fb-91c73a36b386</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;Thanks for the code. I see that one of your changes was selecting another timer instance since Timer0 is reserved for the SoftDevice. When I run your code with the new timer instance, I get an error: `NRFX_TIMER1_INST_IDX undefined`.&lt;/p&gt;
&lt;p&gt;Where should I define this? In the sdk_config file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317778?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 15:58:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7d548d8-2519-40fe-a6e3-432e1ad1ce81</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks. So I managed to make it work here. The main problem was that the input argument for your BLE callback had the input arguments reversed. I think it will make sense once you see the change I made.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Modified code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF5_5F00_SDK16.0.0_5F00_ble_5F00_app_5F00_uart_5F00_custom.zip"&gt;devzone.nordicsemi.com/.../nRF5_5F00_SDK16.0.0_5F00_ble_5F00_app_5F00_uart_5F00_custom.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317749?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 13:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b877106a-03db-4343-9843-e2b8280620f4</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;Okay,&amp;nbsp;&lt;a title="here's the GitHub repo" href="https://github.com/rezKamal/seggerProject"&gt;here&amp;#39;s the GitHub repo&lt;/a&gt;. I included the project itself as well as the H and C files for the custom service, which should be included in components/ble_services/ble_bio. I&amp;#39;m not really sure if this will do or if I need to upload the whole SDK, though. Let me know if I do, and thanks so much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317740?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 13:37:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa8385d5-7471-45b1-b8a7-dde5e6723b66</guid><dc:creator>Vidar Berg</dc:creator><description>[quote userid="105305" url="~/f/nordic-q-a/76872/cannot-send-string-data-over-ble-to-ios-nordic-connect-app-from-board/317739#317739"] Insert --&amp;gt; Image/Video/File --&amp;gt; Upload[/quote]
&lt;p&gt;This should work. It could be a temporary issue with the site. Maybe try another browser. A github link will also work.&lt;/p&gt;
[quote userid="105305" url="~/f/nordic-q-a/76872/cannot-send-string-data-over-ble-to-ios-nordic-connect-app-from-board/317739#317739"]custom service is older,[/quote]
&lt;p&gt;Do you know what SDK version it was taken from? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317739?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 13:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0361a6fb-f50e-413a-a9e3-2dcbeb0a7479</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;I am running SDK version 16.0.0, but the custom service is older, and its library contained that string_send file. But sure, I can upload the project.&lt;/p&gt;
&lt;p&gt;Just one thing, how do I do that? When I try to Insert --&amp;gt; Image/Video/File --&amp;gt; Upload, it doesn&amp;#39;t do it. Should I just upload to GitHub instead and link it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317722?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 12:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d899a3c-b6e2-47d2-a2af-8afe239262d3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, the function was re-named to&amp;nbsp;&lt;span&gt;&lt;a title="ble_nus_data_send" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__ble__nus.html?cp=8_1_6_3_24_11#ga4189d97e88b018e48847c3ea26c4b05d"&gt;ble_nus_data_send&lt;/a&gt;&lt;/span&gt;()&amp;nbsp; in SDK version 15.0.0, so I guess you must be using SDK 14.x.x or earlier. Please note that this and earlier versions only had experimental support for the 52840 chip, and shall not be used to develop FW for production. That said, the problem seems to be that the on_connect() function isn&amp;#39;t being invoked on the BLE connection event for some reason. &lt;/p&gt;
&lt;p&gt;Could you maybe upload the full project here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317711?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 12:32:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56403af1-1bd8-4ba7-9356-6ff88bb2b8fd</guid><dc:creator>rezKamal</dc:creator><description>&lt;p&gt;I am actually using ble_nus_string_send instead of ble_nus_data_send.&lt;/p&gt;
&lt;p&gt;I did check the breakpoint though, and it seems that the line of code you highlighted does not get executed, so the conn_handle is never set. How could I fix this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot send string data over BLE to iOS Nordic Connect app from board.</title><link>https://devzone.nordicsemi.com/thread/317679?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 11:18:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb74de44-2e68-44ff-ba83-4c0a45deb5f5</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Assume you&amp;#39;re using an older SDK version as your &lt;span&gt;&lt;a title="ble_nus_data_send" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__ble__nus.html?cp=8_1_6_3_24_11#ga4189d97e88b018e48847c3ea26c4b05d"&gt;ble_nus_data_send&lt;/a&gt;&lt;/span&gt;() function is not taking the connection handle as an input argument like we do in our more recent SDKs. Please place a breakpoint on the following line in your nus service implementation and see if the connection handle gets assigned on the connection event or not.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624965535937v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>