<?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>scan and connect to retrieve data from  BLE devices using nrf52840 BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101506/scan-and-connect-to-retrieve-data-from-ble-devices-using-nrf52840-ble</link><description>Hello everyone, 
 i&amp;#39;m new to nrf52840 and i have a specific need which is the following: i want to use the dev kit nrf52840 to scan and connect to a target MAC address and retrieve the data from it and send it using NB-IOT. i saw that using AT commands</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jul 2023 09:15:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101506/scan-and-connect-to-retrieve-data-from-ble-devices-using-nrf52840-ble" /><item><title>RE: scan and connect to retrieve data from  BLE devices using nrf52840 BLE</title><link>https://devzone.nordicsemi.com/thread/435429?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2023 09:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c40c8a20-14ab-4047-b457-a0c13de6d60a</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Tom_kh"] is there a guide which could help me to configure my card as LTE Modem and let me send to a different server or web page in order to get inspired from ?[/quote]
&lt;p&gt;In general this is what almost every cellular sample I&amp;#39;ve mentioned does in some way or other. So once again I implore you to go through the academy courses I&amp;#39;ve linked and to tinker around with the samples.&lt;/p&gt;
&lt;p&gt;I would also recommend you to nail down some more specifics of actually what you want to do and how you want to do it and create a new ticket regarding the LTE specifics of your projects. Your project does is still lacking in definition and vague and general questions will unfortunately only result in vague and general answers.&lt;/p&gt;
&lt;p&gt;Consider the following Which MCU is in charge? Should the main application run on the 91 and HCI on the 52? Or is it the 52 that is in charge? In that case it SLM might be what is best to have to the 91. Which protocols will you be using? HTTPS, MQTT or other?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scan and connect to retrieve data from  BLE devices using nrf52840 BLE</title><link>https://devzone.nordicsemi.com/thread/435175?ContentTypeID=1</link><pubDate>Fri, 07 Jul 2023 09:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af43a81d-9e75-4584-9a00-0063abfb0a42</guid><dc:creator>Tom_kh</dc:creator><description>&lt;p&gt;I managed to retrieve the data i wanted by modifying the example of lte_ble_gateway, however i need to send the data to my own url web server and not to nrf cloud like the sample. is there a guide which could help me to configure my card as LTE Modem and let me send to a different server or web page in order to get inspired from ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scan and connect to retrieve data from  BLE devices using nrf52840 BLE</title><link>https://devzone.nordicsemi.com/thread/434987?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 12:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573f3b2b-cdfa-4cc8-b7a9-304ccb7274c1</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="Tom_kh"]yes, indeed i will use the two series like you said.[/quote]
&lt;p&gt;Good to hear!&lt;/p&gt;
[quote user="Tom_kh"]however the code is only dedicated to thingy devices and i want to modify it in order to get what i want.[/quote]
&lt;p&gt;From&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/cellular/lte_ble_gateway/README.html#requirements"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/cellular/lte_ble_gateway/README.html#requirements&lt;/a&gt;&amp;nbsp;you can see that the samples are not dedicated to the Thingy 91 prototyping platform. The supported build target for this is the nRF9160 Development Kit. However, the lte_ble_gateway sample does seem to be what you need as a foundation for your project.&lt;/p&gt;
&lt;p&gt;Once again, the reason for why I recommend you to go through the courses first is for you to get familiar with the SDK and samples. It is not ment as a solution. The learning procedure is steep in NCS and if you&amp;#39;re new to this, which you&amp;#39;ve explicetly stated, you will need to start at the basics to not get flustered over larger samples to dissect what you need.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scan and connect to retrieve data from  BLE devices using nrf52840 BLE</title><link>https://devzone.nordicsemi.com/thread/434764?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 15:09:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f9e7b33-1525-4884-80b0-f94914aa9e89</guid><dc:creator>Tom_kh</dc:creator><description>&lt;p&gt;yes, indeed i will use the two series like you said. and i already saw a little bit of the courses you suggested however i didn&amp;#39;t find what i need for my specific task i&amp;#39;m using to get inspired the sample of cellular/lte_ble_gateway and try to modify it in order to achieve the first part and at least send them to the nrf cloud account in the first place before trying to send it to my own server however the code is only dedicated to thingy devices and i want to modify it in order to get what i want.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: scan and connect to retrieve data from  BLE devices using nrf52840 BLE</title><link>https://devzone.nordicsemi.com/thread/434703?ContentTypeID=1</link><pubDate>Wed, 05 Jul 2023 12:44:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00d6ce62-60e8-4ea3-9c24-c1e03286260c</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Since you mention that you&amp;#39;re new to the nRF52840 I would recommend that you have a look at the courses at&amp;nbsp;&lt;a href="https://academy.nordicsemi.com/"&gt;https://academy.nordicsemi.com/ &lt;/a&gt;as a starter. Go through a) then b)
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/"&gt;https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals&lt;span style="text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/"&gt;https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;[quote user=""] NB-IOT. i saw that using AT commands i can setup my kit as a Modem NB-IOT whith %XSYSTEMMODE command which contains an argument that helps to configure it like i want[/quote]NB IOT and AT commands which you mention are features for cellular devices such as the nRF9160 and are not supported by the nRF52840. If you wish, you could go through the third topic at academy to learn more about Cellular IoT fundamentals and how to familiarize yourself with the nRF1960
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/"&gt;https://academy.nordicsemi.com/courses/cellular-iot-fundamentals/&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;[quote user=""] My goal is to connect to a specific MAC address and retrieve the data that the device share and then send it to a web url which is available online in order to publish what i retrieved from the device[/quote]
&lt;p&gt;Based on this statement it seems like you will need both a 52-series device and a 91-series device. I would recommend that you start out with the 52-series to only familiarize yourself with the short-range aspect of your application before you move over to a 9160&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;[quote user=""] Any help would be appreciated since that in order to do a simple task like this which i do it in less than 50 lines in python here i see that it needs at least 400 or 500 lines and you need to pay attention to what you modify in the samples provided by Nordic otherwise it won&amp;#39;t work. i&amp;#39;m little bit lost here so any help would be a great deal for me. Thanks.[/quote]
&lt;p&gt;I understand your concern, and I know it may seem that you need 500 lines to do what you want but in general but as not every sample are designed to be minimal and feature only a single thing they may seem overwhelming to dissect and take only what you need without being familiar with them.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Start with the courses I mention to familiarize yourself with NCS, BLE and Cellular IoT before attempting to merge&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create your own BLE application&lt;/li&gt;
&lt;li&gt;Add filtering support. This is shown how to do in the BLE fundamentals course&lt;/li&gt;
&lt;li&gt;Add filtering based on MAC address&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Create your own Cellular application that only sends data to the cloud, based on the fundamentals IoT course and/or any relevant &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/cellular.html"&gt;cellular sample&lt;/a&gt;/&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/asset_tracker_v2/README.html"&gt;application&lt;/a&gt;&amp;nbsp;(note that the asset tracker has a rather high complexity)&lt;/li&gt;
&lt;li&gt;Merge the two applications&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Kind regards;&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>