Vscode-arduino: Set correct Baud Rate for the board

Created on 22 Aug 2017  路  4Comments  路  Source: microsoft/vscode-arduino

Reproduced in v0.24.

For quite some Arduino boards (incl. DevKit), to display serial monitor information correctly, you have to set the Baud Rate to 115200. By default, the extension is set to 9600, which is much rare cases. Suggest to set the default Baud Rate to 115200 to reduce an error prone step.

enhancement

Most helpful comment

It would be great to override the setting in public arduino.json instead of changing default value in JS source file. Mainly because builtin-in Arduino examples use another baud rate (9600) than VScode extension by default.

All 4 comments

increase the priority for this.

I am not so happy with this change.

By default, the extension is set to 9600, which is much rare cases.

@liydu based on what do you make this conclusion? Every Arduino developer I have seen uses 9600. The Arduino documentation uses that value as well.

Can I set the baud rate in my .vscode/arduino.json file? Every now and then it gets reset to 115200 which is slowly becoming very frustrating.

You can set the default baud rate in out/src/serialmonitor/serialMonitor.js. At the end there are some variables incluiding SerialMonitor.DEFAULT_BAUD_RATE.

The out folder is in the arduino extension folder.

It would be great to override the setting in public arduino.json instead of changing default value in JS source file. Mainly because builtin-in Arduino examples use another baud rate (9600) than VScode extension by default.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LYWalker picture LYWalker  路  3Comments

shizn picture shizn  路  4Comments

Hans007a picture Hans007a  路  4Comments

ghent360 picture ghent360  路  3Comments

kerrsmith picture kerrsmith  路  4Comments