( nRF52 + MODEM LTE + libUARTE ) the data in the RX buffer is incorrect ( Sniffer UART RX , TX ) : Ok , logic analyzer( Ok) !!!!

Hi devzone,

I've had UART communication problems between nRF52 and a BG96 modem for a long time.

today I added a pull down resistance on the rx of the nRF52 and it works well but when I visualize the RX buffer the data is incorrect,

not yet are Ok on the logic analyzer and Ok in the sniffer UART with serial emulator port "tera term".
could you help me please, I've been stuck on this project for a long time .

Thank you .

Lora
   
Parents
  • Hi,

    Can you try to copy the data to buffer_rx using memcpy, instead of the assign method you are using now? 

    Have you tried printing p_evt->data.rxtx.p_data directly, or checked if it contains the correct data using a debugger?

    Best regards,
    Jørgen

  • Lora said:
    but I don't know why, and what's the difference ?

    To me, it looks like you are only assigning the first byte/char of p_evt->data.rxtx.p_data to numbre_data_received index of buffer_rx, while the NRF_LIBUARTE_ASYNC_EVT_RX_DATA event can contain multiple bytes (up to your buffer size of 255), depending on the incoming data and timeout configs.

    Lora said:
    and another question please if i remove the pull down, nothing works on the RX so I don't know why

    Not sure why you would need a pulldown, I have not heard about this before. The UART lines should be high when idle, and this should be handled by the devices when they are connected. Are you using a DK, or a custom board? Is the BG95 mounted on the same board as the nRF52? You could try to increase the drive strength on the GPIOs used for UART, but this should normally not be necessary for such slow frequencies.

  • Thank You Jorgen ,

    it's clear for me .

    I use DK : nRF52840, which connects to a modem BG96 via the tx, rx, gnd lines. the BG96 modem is mounted on another board  STEVAL-STMODLTE  .

    Thank you .

    Best Regards, 

Reply Children
No Data