Git Product home page Git Product logo

Comments (8)

andre-richter avatar andre-richter commented on April 28, 2024

Ah, I didn’t know macOS was more restrictive.
That’s a pity.

Does Miniterm start if you set it to 256000? (You wouldn’t see sane output though, because the Kerne binary is hardcoded to 576000.

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 28, 2024

I read up a bit on it. Seems macOS usually doesn’t allow more than 230400 when opening the device, but it seems there is a way to circumvent it using stty.

Can you do a test for me?

  1. change the baudrate in miniterm.rb back to 230400.
  2. Start the Miniterm.
  3. In a different console, execute stty -f /dev/USB_SERIAL_NAME 576000
  4. Only now power the RPi and check if you can see the console output.

For reference: https://stackoverflow.com/a/32083512

from rust-raspberrypi-os-tutorials.

sachaos avatar sachaos commented on April 28, 2024

@andre-richter

Does Miniterm start if you set it to 256000? (You wouldn’t see sane output though, because the Kerne binary is hardcoded to 576000.

Yes. It works fine when I revert ee52e8e288ef6f00416eed94921c2b0e1acfab73

❯ DEV_SERIAL=/dev/tty.usbserial-1420 make miniterm
Miniterm 1.0

[MT] ✅ Serial connected
[0] Booting on: Raspberry Pi 4
[1] Drivers loaded:
      1. BCM GPIO
      2. BCM PL011 UART
[2] Chars written: 93
[3] Echoing input now
kjkdsafdsa

[MT] Bye 👋

I'll try the test using stty.

from rust-raspberrypi-os-tutorials.

sachaos avatar sachaos commented on April 28, 2024

@andre-richter It seems 576000 is invalid value on macOS.

stty -f /dev/tty.usbserial-1420 576000
stty: tcsetattr: Invalid argument

The value 460800 which is mentioned in the stackoverflow was valid.

$ stty -f /dev/tty.usbserial-1420 460800

$ echo $?
0

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 28, 2024

Thanks!

Then I might need to make the whole tutorials use 460800 to solve this issue and adapt miniterm.rb to spawn the stty when on macOS.

from rust-raspberrypi-os-tutorials.

sachaos avatar sachaos commented on April 28, 2024

@andre-richter I've created PR to fix this problem.
I've checked it works on my macOS.

Please review & merge it If it looks good. #96

from rust-raspberrypi-os-tutorials.

andre-richter avatar andre-richter commented on April 28, 2024

Hi @sachaos,

could you please try out #97 on your Mac and tell me if it works?
I bumped to 921_600 baud + some more fixes.

I added you as co-author of this new PR to credit your findings.

from rust-raspberrypi-os-tutorials.

sachaos avatar sachaos commented on April 28, 2024

@andre-richter Thank you! I'll try the PR.

from rust-raspberrypi-os-tutorials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.