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

[FR] Independent baudrate setting for secondary serials #16255

Closed
karabas2011 opened this issue Dec 19, 2019 · 8 comments
Closed

[FR] Independent baudrate setting for secondary serials #16255

karabas2011 opened this issue Dec 19, 2019 · 8 comments
Labels
C: Serial Comms T: Feature Request Features requested by users.

Comments

@karabas2011
Copy link

I want to connect different serial devices to my boards
some of them are 9600, some 115200.
For Pronterface-USB connection I use 250000
But marlin 2.0 does not allow to set separated baudrates for secondary serial.
Any hack?

@ellensp
Copy link
Contributor

ellensp commented Dec 19, 2019

You can just edit Marlin/src/Marlin.cpp find MYSERIAL1.begin(BAUDRATE); and change BAUDRATE to be a number.. (Some ofther board have it set elsewhere eg Marlin/src/HAL/HAL_LPC1768/main.cpp

@ellensp
Copy link
Contributor

ellensp commented Dec 19, 2019

Or add the line #define BAUDRATE1 9600 to your configuration.h and change MYSERIAL1.begin(BAUDRATE); to MYSERIAL1.begin(BAUDRATE1);

@karabas2011
Copy link
Author

Big thanx! Last question
I use ESP wifi on secondary port and want to connect third device on 9600 on spare pins.
Is it possible? ( I need only TX pin no RX from device)

@ellensp
Copy link
Contributor

ellensp commented Dec 19, 2019

Sure it can be done... but not without coding... The firmware would need to know what is on the serial port in order to talk to it. Also if its a 8 bit controller, it pays to use real hardware serial ports.

@boelle boelle added the T: Feature Request Features requested by users. label Dec 19, 2019
@karabas2011
Copy link
Author

karabas2011 commented Dec 23, 2019

Sure it can be done... but not without coding... The firmware would need to know what is on the serial port in order to talk to it. Also if its a 8 bit controller, it pays to use real hardware serial ports.

For low baudrate devices I used software serial lib ( for arduino) a couple years ago. It worked on any spare pins. Now for Marlin 2.0 I did not try this lib.

@sjasonsmith
Copy link
Contributor

sjasonsmith commented Sep 11, 2020

I think this is closely related to #17599. The more ports available, the more important this becomes.

@slowbro
Copy link
Member

slowbro commented Jul 3, 2021

#21949 was merged, this can be closed.

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: Serial Comms T: Feature Request Features requested by users.
Projects
None yet
Development

No branches or pull requests

7 participants