nrf52832 UART data reception from another MCU and printing it over serial terminal

Hi, currently I am working with a TI mmWave radar which gives integer value as output. When I try to fetch this data via UART TX and RX pins, they are not received and printed properly. Instead, an unknown value is printed over serial terminal. Is there any way to overcome this? I have already tried receiving, storing and printing a character data with the board but it is not the same for integer. how to fix this?

Note:

Radar tx    -    nrf52832dk rx

Radar rx   -     nrf52832 dk tx

vcc      -     3.3v

gnd        -     gnd

  • Hello,

    Jayasurya K said:
    Thanks and sorry for the delayed reply.

    No worries at all, we'll continue this whenever you have the chance.

    Jayasurya K said:
    After few corrections, we were able to make radar module to give live values in form of characters.

    Does this means that you have changed the parsing to instead convert the received integers to chars, instead of the other way around? Could you elaborate on how you have done this, so that I may get a better understanding of how your system now functions?

    Jayasurya K said:
    we are able to receive each character, store and then print them. Now, the module sends live updated data "4, 0, 0, 0, 0" in character format. When we tried to receive this using the nRF52 with same code, it was not possible. What are we missing here? What should be done in order to receive the live data from radar module?

    This is likely because you have changed the output for the radar has changed. Please elaborate on what the sensor is actually outputting, and how you are processing this on the receiving nRF.
    Could you perhaps create a small diagram to illustrate your system as well?

    Best regards,
    Karl

  • Hi Karl,

    Let me explain you in a detailed way. So this IWRL6432 module gives values over RS232 each second which is updated by an internal radar operation(transmission and reception using antennas). Initially, these values were sent in binary format. I was able to read them using a serial terminal but not using nRF52. I did not even want to print the values as I thought there will be data loss as 2 UART are being used simultaneously. My aim was to receive the values, and if a value is received, an LED should be blinking. And in the radar part the parsing was not done by us. TI's internal team did it. THey said that the 4,1,1,1,1 values are sent in terms of ASCII characters. I am able to read hello world from the radar module but not the number values. I hope you have a clarity now. I am also attaching a simple illustration of what the issue is.

  • Hello,

    Thank you for the clarification, and for the diagram - this is very helpful for me to see.

    Jayasurya K said:
    My aim was to receive the values, and if a value is received, an LED should be blinking. And in the radar part the parsing was not done by us. TI's internal team did it. THey said that the 4,1,1,1,1 values are sent in terms of ASCII characters. I am able to read hello world from the radar module but not the number values. I hope you have a clarity now. I am also attaching a simple illustration of what the

    Does this mean that the 4,1,1,1,1 values are sent as the Oct 004 and 001, or does it mean that they are being sent as Oct 064 and 061?
    If the radar always outputs characters (like in the 'hello world' case), then there should be no issue seeing them on the UART, which is why I suspect that the readings might be sent as binary values instead of ASCII characters, leading to an incorrect parsing.

    Do you have access to a logic analyzer? This would let us see exactly what it is that is being sent between the devices, without any uncertainty.

    Best regards,
    Karl

Related