Skip to content

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

Merged
merged 1 commit into from
Jun 25, 2015

Conversation

Chris--A
Copy link
Contributor

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.

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.
@matthijskooijman
Copy link
Collaborator

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).

@Chris--A
Copy link
Contributor Author

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.

@matthijskooijman
Copy link
Collaborator

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.

@Testato
Copy link

Testato commented Jun 25, 2015

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.
NodeMCU board ver0.9 use the CHxxx series, NodeMCU board ver 1.0 usethe CPxxx series. But this is not important.
The 74880 baudrate is directly related to the quartz used on ESP8266, if you use a 40MHz clock the standard baud is 115200, but on all ESP8266 that we have on ebay and other manufacter is used a clock of 26MHz and automatically the baudrate become 74880
So i think it is good add it to SerialMonitor speed selection

@cmaglie
Copy link
Member

cmaglie commented Jun 25, 2015

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.

@cmaglie cmaglie merged commit db75e67 into arduino:master Jun 25, 2015
@cmaglie cmaglie added this to the Release 1.6.6 milestone Jun 25, 2015
@PaulStoffregen
Copy link
Contributor

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.

@cmaglie
Copy link
Member

cmaglie commented Jun 25, 2015

@PaulStoffregen
I've tried to set the 74880 back and forth, my ttyACM0 is not able to set it (it keep the previously set speed) but there are no other side effect, I can change the speed back to another value.

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.

cmaglie added a commit to cmaglie/Arduino that referenced this pull request Jun 25, 2015
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
@cmaglie
Copy link
Member

cmaglie commented Jun 25, 2015

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.

cmaglie added a commit that referenced this pull request Oct 29, 2015
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 #3389
See #3351
@per1234 per1234 added Component: IDE Serial monitor Tools > Serial Monitor feature request A request to make an enhancement (not a bug fix) labels Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE Serial monitor Tools > Serial Monitor feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants