This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UART Serial Communication Problem



Hi Dear TI Community,

I have a project which will burn my brain as soon. There is a traffic radar which sends 32 bytes statistic information message continuously.

I read data from UART A and send statistic message from UART B.

It is not necessary to read always so I disable UART3 Interrupt RX and RT for 90 second and enable it for 30 second. Totally 120 second is one period.

Problem is;

I always get logical lane statistic message for first lane but other lanes always comes same. I got same message 2 days ago, yesterday and today. 

I did not assign values other lanes but always comes same.

When I send message one by one like radar, my code gets each message correctly but when I drain real time continuously data problem appeard.

What may causes this situtation. 

Thanks in advance

  • Hello Tiva_Tick53

    tiva_Tick53 said:
    logical lane statistic message

    tiva_Tick53 said:
    assign values other lanes

    I hope you understand that we are not aware of what it means. Also the data flow is not clear in your post.

  • Hi Amit,

    Thanks for quick reply.. 

    Logical lane statistic message means each 120 second period I read for example 10 trucks, 35 car, 2 motorbike.. this makes sense

    assign values other lanes means ;

    for example.

    first period messages are:

    lane 1: car 123 truck 5

    lane 2: car 5 truck 5

    lane 3: car 3 truck 0

    second period messages are:

    lane 1: car 50 truck 3 (values changed)

    lane 2: car 5 truck 5 (values not changes but in real world traffic flows)

    lane 3: car 3 truck 0 (values not changes but in real world traffic flows)

    for each period always lane 2 and lane 3 returns same values lane 1 is not same

    I think I have reading problem but I give importance to your experience

    Best Regards

  • Hello Tiva_Tick53

    Now that is clear. Did you check the message on the UART bus by attaching a scope probe/LA to the UART RX to see what is the message being sent from the radar to the TM4C device,
  • Yes Amit,
    I direct radar message to my pc and sniff my pc's port. Radar messages come true. Also I design led when I read message true my led toggles.

    I did not use scope than

  • Hello Tiva_Tick53

    So first course of action is to check the messages going to the TM4C device. If they are in line with what is expected then you would need to post the code where the messages are received and printed.