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.

Compiler/IWR6843ISK-ODS: How to turn off command response while input config command?

Part Number: IWR6843ISK-ODS
Other Parts Discussed in Thread: MMWAVE-SDK

Tool/software: TI C/C++ Compiler

Hi Sirs,

  We would like to control radar silently. But it will show the characters when we input the configurations via User UART in the terminal. Are any ways to turn off command response?

mmwDemo:/>
mmwDemo:/>channelCfg 15 7 0
Done
mmwDemo:/>
mmwDemo:/>adcCfg 2 1
Done
mmwDemo:/>

Thanks.

C.W.

  • Hi C.W.

    Are you looking to disable the Done response after each command or looking to completely silent the terminal? To remove the "Done" response, you'll need to:

    1. Comment out the lines as shown in the following files namely cli.c and cli_mmwave.c. Complete path is shown in the editor snapshot below.
    2. Then re-compile the cli library and
    3. Finally, re-build the demo code to link the new cli lib.

    But if you want to completely silence the terminal, then you need to research the terminal software you're using (e.g. TeraTerm or Putty) to see if it allows silencing local echo of characters.

    Regards

    -Nitin

     

  • Hi Nitin,

    Thanks for your suggestion. Another question, how to ignore the CLI commands like red strings?

    mmwDemo:/>channelCfg 15 7 0

    mmwDemo:/>adcCfg 2 1

     

    Thanks.

    C.W.

  • Hi Nitin,

      Do you have any ideas?

    Thanks.

    C.W.

  • Hi C.W.

    You will need to disable the UART_ECHO_ON parameter in UART driver initialization options.

    1. UART driver parameters are initialized in mss_main.c using the UART_params_init function as shown below.

    2. This function initializes the uartParams structure using the default values provided in UART.c as shown:

    You can either change the default values structure and re-compile the UART driver library and then the demo to link the new UART lib. Alternatively, you can also create a local copy of this structure with the desired values in main.c and pass that directly to the UART_open function (thus removing the UART_params_init call).

    Regards

    -Nitin

  • Hi Nitin,

      Can you please help to share the way to rebuild CLI library?

    Thanks.

    C.W.

  • Please refer to the MMWAVE-SDK user guide in the Developing using SDK section. Basically you need to follow the below steps, but I would still suggest reading the SDK user guide to learn more details.

    1. Open a command prompt in C:\ti\mmwave_sdk_03_04_00_03\packages\scripts\windows and run setenv.bat

    2. Switch to the UART driver directory  C:\ti\mmwave_sdk_03_04_00_03\packages\ti\drivers\uart and call gmake clean followed by gmake all. Make sure this is done in the same command prompt session where setenv.bat is run.

    3. Follow step 2 for the CLI lib (or any component in SDK that you want to re-build).

    4. Finally, re-build the deme (either using makefile as above, or using the CCS project provided in Industrial Toolbox)

    Thanks

    -Nitin

  • Hi Nitin,

      No more questions. Thanks your support.

    Thanks.

    C.W.