-
Notifications
You must be signed in to change notification settings - Fork 448
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
Improve target monitor
and add target stty_params
.
#532
base: master
Are you sure you want to change the base?
Conversation
monitor
and add target stty_params
.monitor
and add target stty_params
.
Thanks for the PR. Unfortunately I didn't get to it on time and it has resulted in some merge conflicts. Can you please update your branch and fix the merge conflict? |
e3553be
to
9765e73
Compare
Rebased against master. |
i'm also not sure what advantage less has over screen? |
I totally agree. I have no problem to have |
Personally, as for setting |
In addition to |
Changing the default monitor program will also break it for existing users. So I think it would be better to leave the default monitor program. Also if someone wants to change they can easily override the variable. If you can remove the changes you made to set |
Pushed a revert for your request. |
What are your thoughts on the new |
Make it run a command according to arch wiki article on Arduino #stty. Make `monitor` target depend on `stty_params`.
Use `less` as the default `MONITOR_CMD`. Change comment explenation about `# Serial Monitor`.
Add support for tail as `MONITOR_CMD`.
3652a82
to
e76be67
Compare
Rebased again against master. @sudar and @sej7278, I don't know how it goes on your machines but I use Arch Linux and when I run |
the arch arduino package is all sorts of broken so that doesn't surprise me, i've never had a problem on debian/fedora/osx. what's in your ~/.screenrc? i don't like that stty_params is going to be called in all cases when running "make monitor" even for users without the problem, which could potentially introduce problems for them. it seems this is changing arduino-mk to work around some sort of archlinux bug. |
Thanks for your comment @sej7278, I might ask the Arch Linux community about the subject and inspect the way the arduino packages are built on other distributions. I must say though, that I hardly believe there is an automated process that an OS can be configured to set these parameters by default whenever a new Arduino device is connected (perhaps using Thinking about the frequency parameter, as a 1st idea, I was wondering, perhaps there is a default value being set by your OS's configuration that is identical to the one you are using in all of your Arduino projects? And that is why you never need to run any Please leave this PR open for a while, I'll be glad to update you when you or my self will learn something new.. |
i'd like to figure out what's going wrong with your setup so we'll keep the PR open to monitor (!) your updates. when you mention setting frequency for different devices, you can either set $MONITOR_BAUDRATE, or it'll read it from Serial.begin() or defaults to 9600 8 N 1 that's not the sort of thing set in udev, that's traditionally for setting permissions for usbasp's or stlink/maple devices (generally add yourself to the dialout group and you're good to go). |
I have made further tests and it seems the
I think making the target |
Use
less
as the defaultMONITOR_CMD
. Change comment explanation about# Serial Monitor
.Add
stty_params
target.Make
stty_params
run a command according to Arch Linux's WiKi article onArduino #stty. Make
monitor
target depend onstty_params
.