This guide explains how to quickly change the PULSE serial interface baudrate using the sbgInsRestApi.

Before we start

The PULSE implements the sbgInsRestApi protocol over a serial interface. All available configurations and commands are detailed in the Digital interfaces page. All the examples use the sbgEComApi command line tool.

In this guide, we consider a PULSE connected to a Windows computer on the serial COM12 and using the default 921600 bps baud rate.

Read Current Baudrate

You can query the current baudrate configuration on the main and only PULSE serial interface by using the following command:

sbgEComApi.exe -s COM12 -r 921600 /api/v1/settings/ports/comA/baudrate -g

The device should answer:

921600

You can also query the whole device configuration using the path /api/v1/settings

Changing the baudrate

The following command changes the baudrate. Initially configured to 921600bps, it is now set to 1MBps:

sbgEComApi.exe -s COM12 -r 921600 /api/v1/settings/ports/comA/baudrate -p -b 1000000

The device should return the following answer using the previous baudrate (ie 921600bps in our example):

{"title":"request successful","needReboot":false}

You don't have to reboot the device for the new baudrate to be effective. As soon as the response is sent, using the previous device baudrate, the new baudrate is set.

Tx Saturation

It is user's responsibility to check the coherence between the baud rate and the data output frequency to avoid serial interface saturation.

Evaluation Board Limitations

The PULSE-40 evaluation board only supports baudrate up to 3 Mbit/s. For higher baudrates, you have to use specific hardware able to support these high speed signals.

Save New Settings

Don't forget to save your new settings if you would like to keep them for the next power cycle. Simply send the command below:

sbgEComApi.exe -s COM12 -r 1000000 /api/v1/settings/save -p

The device answer should be:

{"title":"request successful","needReboot":false}