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.

  • Resolved

RTOS/TDA2P-ACD: Accepting Multiple Input Characters from User over UART Console

Genius 4035 points

Replies: 6

Views: 152

Part Number: TDA2P-ACD

Tool/software: TI-RTOS

Dear All,

I am working on TDA2Px-EVM with Processor SDK 03.05. I have a requirement wherein my application requires a 2-digit number as an input from user over UART console. I found API's "Chains_readChar()" & "uartRead()" in Vision SDK but these API's accept only a single character from UART console. Is there any other API available in Vision SDK that I can use for taking multiple characters as input from console (for example: '77' or '34'). If no, then how can these be achieved ? Do I need to create my own API for this ?

Please suggest.

Thanks,

Abhay

  • Hi Abhay,

    One way could be using ASCII characters. Will it work for you?

    Regards,
    Rishabh
  • In reply to Rishabh Garg:

    Hi Rishabh,

    How exactly do you mean ?

    Regards,
    Abhay
  • In reply to Abhay Sorte:

    Hi Abhay,

    For example ASCII value of "M" is 77.
    Please search internet for ASCII table.

    Regards,
    Rishabh
  • In reply to Rishabh Garg:

    Hi Abhay,

    You can also choose to write a wrapper API on top of API to receive two characters and use it.

    Regards,
    Rishabh
  • In reply to Rishabh Garg:

    May be you could implement a readstring API and convert into number, the way it is done in apps/src/rtos/radar/src/usecases/cascade_radar_object_detect/chains_cascadeRadarOd.c usecase.

    Rgds,
    Brijesh
  • In reply to Brijesh Jadav:

    Hi Brijesh,

    Thanks for the input. This helped.

    Regards,
    Abhay

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.