Skip to content
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

Raspberry Pi -> USB Serial -> D1 mini (ESP8266) setting baud rate to 74880 does not work. #561

Open
thorsten-l opened this issue May 19, 2024 · 0 comments

Comments

@thorsten-l
Copy link

thorsten-l commented May 19, 2024

Hi i have connected an D1 mini (ESP8266) to a Raspberry Pi 4 running the latest Raspberry Pi OS - 64bit, 12 (bookworm).
If i want to see the boot loader messages from the ESP8266 i have to use 74880 as baud rate.

Device:

crw-rw---- 1 root dialout 188, 0 19. Mai 11:11 /dev/ttyUSB0

My user is member of the dialout group.

lsusb:

Bus 001 Device 006: ID 1a86:7523 QinHeng Electronics CH340 serial converter

As general communication check i used picocom --imap lfcrlf -b 74880 /dev/ttyUSB0 and it works fine.

the java (jSerialComm,2.11.0) initialization code for the serial port:

    SerialPort serial = SerialPort.getCommPort("/dev/ttyUSB0");
    
    if (serial.openPort())
    {
      serial.setComPortTimeouts(SerialPort.TIMEOUT_READ_BLOCKING, 0, 0);
      serial.setFlowControl(SerialPort.FLOW_CONTROL_DISABLED);
      serial.setComPortParameters(
        74880, 8, SerialPort.ONE_STOP_BIT, SerialPort.NO_PARITY);

      OutputStream os = serial.getOutputStream();
      InputStream is = serial.getInputStream();
   ...

The communication between RPi and D1 works, but it is still 9600 baud. So i could not see the boot loader messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant