<?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>Assistance Request: nRF52840 Data Transmission to Android App</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113931/assistance-request-nrf52840-data-transmission-to-android-app</link><description>Hello Nordic Forum, I am working on a project involving data transmission from an nRF52840 board to an Android application, and I would appreciate guidance and insights from the community. 
 Project Objective: I aim to modify an existing Java application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 17 Aug 2024 09:15:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113931/assistance-request-nrf52840-data-transmission-to-android-app" /><item><title>RE: Assistance Request: nRF52840 Data Transmission to Android App</title><link>https://devzone.nordicsemi.com/thread/498715?ContentTypeID=1</link><pubDate>Sat, 17 Aug 2024 09:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0f5891-e7a1-431b-b71c-780337510a2b</guid><dc:creator>edamchaaben</dc:creator><description>&lt;p&gt;Hello, thank you for your response. I would like to provide further clarification regarding the Android BLE application I am developing for the Nordic Semiconductor nRF52840 device. The&lt;span&gt;&amp;nbsp;potential modification in the NRF device is such as memory card when the code is executing there are data storage of the information collection; if the buffer of data when you flash the code is full or almost full, there will be recuperation of the data. Besides, if there aren&amp;#39;t any modification in the data storage (when I execute the code, there aren&amp;#39;t any information or data stored).&amp;nbsp;If changes are detected, the app should initiate a download of the newest data. A toast message should notify the user when a download is in progress or completed. Guidance on implementing this feature is much appreciated.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The potential modifications to the NRF device primarily involve the management of data storage, akin to the functionality of a memory card. During code execution, the nRF52840 collects sensor data and stores it in its internal memory. It is essential to ensure that when the data buffer is full or nearly full at the time of flashing the code, the data is accurately recuperated and processed to prevent any loss of information.&lt;/p&gt;
&lt;p&gt;Moreover, there may be scenarios where no modifications exist in the data storage. For instance, if I execute the code and discover that there is no information or data stored, the application should be capable of detecting this condition. In such cases, it should automatically initiate a download of the most recent data from the nRF52840 board.&lt;/p&gt;
&lt;p&gt;To enhance the user experience, I would like to implement a toast message that notifies users when a download is in progress or has been completed. This feedback is crucial for keeping users informed about the status of their data retrieval and ensuring a seamless interaction with the application.&lt;/p&gt;
&lt;p&gt;I would greatly appreciate any guidance on effectively implementing this feature, including best practices for checking data integrity, initiating downloads, and displaying toast messages within the Android application. Thank you for your assistance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Assistance Request: nRF52840 Data Transmission to Android App</title><link>https://devzone.nordicsemi.com/thread/498260?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 11:49:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2aba533-63a9-43ec-8906-39e5c7c17490</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For general Android development (including data storage and handling) I recommend looking for Android specific forums and communities.&lt;/p&gt;
&lt;p&gt;For the BLE related parts of your application, we do provide an &lt;a href="https://github.com/NordicSemiconductor/Android-BLE-Library"&gt;Android BLE library&lt;/a&gt; which solves a lot of what is required for implementing an Android BLE app.&lt;/p&gt;
[quote user=""]Additionally, I want to implement a feature where the app verifies if the sensor data on the nRF52840 board has been modified or is empty. If changes are detected, the app should initiate a download of the newest data. A toast message should notify the user when a download is in progress or completed. Guidance on implementing this feature is much appreciated. [/quote]
&lt;p&gt;Please describe a bit more what problem this feature is intended to solve. Where is the potential modification happening? What do you mean by empty data? What kind of changes in the data are we talking about? With the proposed protocols (BLE or USB) you will have error detection and resends already in place and automatically handled by the stacks, ensuring correct transmission of data from the device to the phone. On the application layer you can safely assume that any data received is the same data as what was sent from the other device.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>