-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Added 74880 baud rate to the serial monitor. #3389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Now that the latest IDE incorporates a board/core manager, the ESP8266 community is now using this software. The baud rate of 74880 is important for debugging as it is what the bootloader uses.
That's not a standard baudrate, I think? What protocol does the FTDI chip use? CDC ACM like the Uno r3, or is there an FTDI chip on there? I ask because on Linux, non-standard baudrates are tricky (to the point of not working at all using CDC ACM, see https://github.com/arduino/Arduino/issues/3351#issuecomment-113873045https://github.com/arduino/Arduino/issues/3351#issuecomment-113873045). |
The board I use to communicate with the ESP8266 (ESP-12) is a basic FT232RL module. I'm guessing CDC however its whatever the windows built in driver uses. I'll have a look later on and see if I can find any information. However this baud rate is the default used on all ESP8266 chips. |
No, the FTDI modules use a different protocol than CDC devices. Both are supported on Windows and Linux, but the Linux FTDI driver supports the API that the IDE uses (through the JSSC library) to set custom baudrates. |
the ESP8266 is a chip with hardware serial at 3,3V level. It is a your choice which serial-usb device use on the project. |
Looks like this baud rate is really wanted. So I'm going to merge this even if this is going to work only with FTDI chip. |
This may have unintended consequences, especially on Linux. Long ago, the serial monitor had 14400 and 28800 in the baud rate menu. With /dev/ttyACM0, setting either of those caused a bug in the driver to lock up the device. Thereafter, the serial monitor couldn't properly open the port, which made it impossible to change to a working baud rate. Hopefully we won't see that on modern Linux and JSSC. I can tell you it was a big problem, years ago, with older kernels and RXTX. |
@PaulStoffregen BTW your comment makes me thing that we can actually get an error value from JSSC that tell us if the baudrate change has been successful or not. I'll check this out. |
This allows to detect for invalid baud rate settings in particular on Linux where the kernel do not allow non-standard baud rates on some devices. See arduino#3389 See arduino#3351
Here we go: #3420 It seems to be working, at least for me, when I try to set 74880 baud the error is printed on the console. It would be nice if someone can confirm that Linux+ESP (or any other FTDI based converted) instead works. |
Now that the latest IDE incorporates a board/core manager, the
ESP8266 community is now using this software. The baud rate of 74880
is important for debugging as it is what the bootloader uses.