How do you set the baud rate for the 40 pin expansion header?

Hi there,

I’m working on a project that is doing SPI communication over the 40 pin expansion header. We are writing a python program that we are converting from an arduino code. The arduino code has a step in the setup function to set the baud rate. Is there a default baud rate for the 40 pin expansion header, and is this something that we would change on the jetson side or just need to do in our python code?

Thanks in advance,
Scott

hello scott4snow,

there’s default baud-rate setting, which is 115200/8n1.
for example,
you may use the commands to set the bard rate to 115200 or other values, i.e. $ stty -F /dev/ttyTHS1 115200,
thanks