nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

How to interface nrf52832 with RPI compute module 4 to send the data from nrf app to nrf52832 device and device to RPI

BLE Hello,

In my project i want to send the data from the nrf app to nrf52832 device and i don't know how to interface it with RPI compute module once the data received by nrf52832 i want to receive that data in RPI then i need to process in the RPI. off course you can ask me directly we can use the RPI BLE but i am not going to use the monitor, keyboard ..etc like headless RPI so once we connect the BLE and if we restart again we need to pair the device with RPI otherwise we can't communicate with the RPI this is the drawback i have faced and that's why i am thinking to use nrf  BLE so is it possible.?? if yes means please guide me to implement this.

thank you

Parents Reply Children
  • Hello,

    Thanks for the reply, actually i am planning to use nrf52840 only with raspberry pi and raspberry pi is a compute module 4 so in the custom board we don't have USB ports. i just want to send the data to nrf52 device over virtual UART like over BLE so once its received however its going to send that data to HW UART with app_uart_put() function right so can we connect those TX,RX pins to RPI TX,RX pins and we can read the data right.??

    So i have already done this and from nrf APP to device i can able to send the data and after this from nrf device to RPI i  am trying to push the data but its not received when i reset the nrf device data was received so what's happening i don't know please let me know what is the issue.

    thank you.

  • sagarnayakm said:
    i just want to send the data to nrf52 device over virtual UART like over BLE so once its received however its going to send that data to HW UART with app_uart_put() function right so can we connect those TX,RX pins to RPI TX,RX pins and we can read the data right.??

    Yes, that is what the ble_app_uart example does.https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_nus_eval.html

    sagarnayakm said:
    So i have already done this and from nrf APP to device i can able to send the data and after this from nrf device to RPI i  am trying to push the data but its not received when i reset the nrf device data was received so what's happening i don't know please let me know what is the issue.

    I'm not sure If I understand what you mean here, but If the nRF52 is reset, it will start advertising again, and the RPi need to connect to it again to send/receive data.

  • Hello,

    I'm not sure If I understand what you mean here, but If the nRF52 is reset, it will start advertising again, and the RPi need to connect to it again to send/receive data.

    Sorry i didn't get you the TX,RX pins of nrf device connected with RPI directly so i am not going to remove those things, i am just running the read program from the RPI and its just sending the data whatever at the TX pin of NRF device right.??

    then why its not receiving from the nrf device i have connected the FTDI FAT32 and tried to push the data from the nrf device to PC over FTDI and its working fine. even i have tried to push some dat from the RPI to nrf device its working fine, but from nrf device to RPI why its not happening .??

    Please let me know is there any mistake.

    thank you.

  • sagarnayakm said:
    but from nrf device to RPI why its not happening .??

    Do you get any errors?

  • Hello, Yes i got error like APP_UART_COMMUNICATION error but i just commented the error checking and now its working. i knew commenting error is not good  way troubleshoot the errors. error was ERROR_NO_MEMORY so i have tried to resolve this but i didn't success.

    and one more thing now the data is receiving at the raspberry side but as a character by character but i want to send the array of character like a string so when i am trying to send the string data its not receiving any data but  if i send character by character its working so what to do now.

    Please share your thoughts and let me know for any suggestions.

    thank you.

Related