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.

AWR1642: Starting up the device without sending config from the visualizer

Part Number: AWR1642
Other Parts Discussed in Thread: IWR1443

Hello,

I am working with the AWR1642, I want to write and read the data through/from the UART port.

How can I send the config file through command line by using c program? 

Can I get required steps to be followed?

Any application program  for same in C?

And other thing, I am reading data through UART port with C code, I am seeing some data loss.

Can you please also give exact steps to be followed during the data read operation to implement it with c code.

Thanks,

KN

 

  • Hello Kishor,
    We don't have any C code reference to read/write data over UART from mmw demo.
    But you can use TeraTerm tool to send these CLI commands, and further use TTL script in terateram itself to automate sending these CLI commands.

    In your current C-code you might need to check baud rate while read/write the data.
    Visualizer follows these steps to send/receive UART data which may help you wrt C implementation
    1. waits for 'mmwDemo:> ' prompt
    2. sends version CLI command to device to get its version to identify SDK & Silicon version.
    3. Sends CLI command and till it gets 'DONE' string blocks next CLI command.
    4. On data COM port receives data at 921600 baud rate and process & plot TLV data. (for TLV data format- search in the same forum).


    Further, if you are looking to skip sending this CLI command and embed all these configurations inside the application then please refer TI-Rex OOB-CAN application (cli.c)
    dev.ti.com/.../


    Regards,
    Jitendra
  • Hi Kishor,

    The following thread provides sample code and instructions to hard-code the sensor configuration in the IWR1443 OOB demo using SDK 1.2.

    e2e.ti.com/.../2616079

    Regards
    -Nitin
  • Hello Jitendra and Nitin,
    Thanks,
    I am trying to send the data through UART, is there any specific data format or packet format for CLI commands?
    As per e2e.ti.com/.../625663 I am trying to implement same python script in C will it work?

    Thanks,
    KN
  • CLI command format should be same as given in *.cfg files in SDK demo directory.
    It should work if command is given in ASCII and terminated with '\n'.


    BR,
    Jitendra
  • Thanks Jitendra!
    Now I am able to configure EVM, without Demo Visualizer.