Troubleshooting & FAQs

⌘K
  1. Home
  2. Docs
  3. Private: Troubleshooting ...
  4. Command Line Interface (C...
  5. Can I use the CLI at a lower baud rate?

Can I use the CLI at a lower baud rate?

Yes. You can use lower baud rate, but you need to stick with this specific baud rate without power cycling, because the module will reinitialize itself to its initial baud rate which is 921600. You can change the baud rate using the command “set-baudrate”

>set-baudrate (P1…Px) buadrate

P1…Px is the number of the port you want to change its baud rate.

Baud rate parameter could be (115200,9600,57600…etc.)

After setting the new baud rate, you need to close and reopen the port after selecting the new value.

You can also update the default baud rate (921600) with the following methods:

  1. Connect P1 TXD and RXD together momentarily while power-cycling the module. This will set up all array ports to 115200. Once you connect to a CLI port, other messaging ports will restore their default baud rate. Note that the CLI will restore its default baud rate on the next power cycle.
  2. Change the value of BOS.clibaudrate parameter in the CLI using set command. This will save the baud rate value to the emulated EEPROM so that you can use the new baud rate each time. You need to reset the module to apply the new one. Note that, similar to method 1, the new baud rate will be applied to all ports until you connect to the CLI.
  3. Change the value of BOS.clibaudrate parameter in the code and call this API UpdateBaudrate(port, baudrate) to apply the new baud rate to a given port. You can also save it to emulated EEPROM using this code (It will be loaded automatically from EEPROM on each startup):
EE_WriteVariable(VirtAddVarTab[_EE_CLIBaud], (uint16_t)BOS.clibaudrate);
EE_WriteVariable(VirtAddVarTab[_EE_CLIBaud+1], (uint16_t)(BOS.clibaudrate>>16));

If you want to restore the default CLI baud rate, you can either:

  • Set BOS.clibaudrate to default value, either in CLI or in code as shown above.
  • Initiate a Factory Reset by connecting P1 TXD to programming port RXD or to last port RXD while power-cycling the module.
  • Set all parameters back to default using default params CLI command or using the following code:
memcpy(&BOS, &BOS_default, sizeof(BOS_default));
SaveEEparams();

How can we help?