This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Replacing Raspberry Pi with nRF52-DK in MQTT examples

I have successfully completed my bachelor thesis project on a simple wireless sensor network using 3 nRF52 nodes and RPi with using Mqtt and Ble-6LoWPAN example from SDK. However, now, I would like to replace RPi with nRF52. nRF52 will behave as BLE Central and 6LoWPAN router and an internet connection to nRF will be provided by ethernet. After the connection is established the IPv6 address of each node will be assigned. Thereafter, nodes will insert data to a remote SQL database via MQTT topic. I have been viewing the example IPSP Initiator mentioned in this link https://devzone.nordicsemi.com/f/nordic-q-a/29130/border-router-using-nrf52/115720#115720. However, I am a little bit confused about the rest of the process. Am I supposed to follow the way mentioned in the aforementioned link or which way should I follow? Is this idea feasible one or not? 

Best regards,

Halil

Parents
  • Hi Halil, 

    However, now, I would like to replace RPi with nRF52. nRF52 will behave as BLE Central and 6LoWPAN router and an internet connection to nRF will be provided by ethernet.

    So you have a Ethernet module or similar that you have interfaced with the nRF52 acting as a central?

    Best regards

    Bjørn

  • Hi Bjorn,

    Yes, This what I intend to do. However, whether there is IPv6 support of ethernet module is another question that makes me confused. Another solution I think is using Stm32f4 with ethernet provided and nRF52 will only deal with BLE connections and data between nRF and Stm32 will be transferred over UART. Actually, since I am not experienced, I can not estimate the results of my ideas. Sorry, if I ask dummy questions. Thank you for spending time for me.

    Best regards

    Halilb

  • HI Halilb, 

    I am afraid that we do not have much experience with interfacing ethernet modules with the nRF52840, but ifs a serial interface then it should be fairly straight forward. AS for IPv6 support, you'll a have to look at the individual specs of the different modules out there. 

    Yes, I guess using a STM32F407/417 should be possible. You would then have to identify where in the IPSP layer you can extract the IP packet and transmit it serially to the STM32F407/417.

  • Hi Björn,

    Thank you for the explanation. I will decide what to do. In my opinion serializing is much better. 

    Best

    Halil

Reply Children
No Data