Skip to content

Serial port improvements request.:connect to serial monitor based on port and baud rate of currently selected project(s) #325

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

Closed
ghost opened this issue Nov 7, 2015 · 8 comments

Comments

@ghost
Copy link

ghost commented Nov 7, 2015

The Eclipse Arduino IDE remembers well on one side the last active project at restart/relaunch, but the last attached com port in the serial monitor seems not to be saved and one has to re-attach it at every launch of the IDE. Would be nice to have the last setting restored here, too.

@jantje jantje changed the title Still a little "convenience" thing Serial port improvements request. Nov 7, 2015
@jantje
Copy link
Member

jantje commented Nov 7, 2015

do you mean saving the last opened serial port name or restoring the serial connection that were open when eclipse closed?
Thinking about this. Clicking the serial port icon may also open the serial monitor connection (if I store/request the last used baud rate per project)

@ghost
Copy link
Author

ghost commented Nov 7, 2015

Let me describe my actual workflow to see better what I mean:
I have got an idea on how to improve my code. Thus I launch the Eclipse Arduino IDE which takes much time and makes the fans of my MacBook turn high during the C/C++ indexing (...swear words...), I attach the Teensy, I do some code changes and I click the upload icon. Then I click on the serial icon, eager to see the result. But there is nothing, (...more swear words...) the COM port settings are empty and I have to re-attach the COM port with the (+) icon. Press the upload icon again, get the "no project selected" error since the serial monitor has still the focus (...still more swear words...), close it, the error console opens but I don't care, I click into the code window, click the upload icon again, click on the serial tab again, and Ill finally see the result... :-)

@jantje
Copy link
Member

jantje commented Nov 7, 2015

It is unclear to me why you have to do the following step "Press the upload icon again, get the "no project selected" error"

Next to that:
If issue #324 is fixed and if The project configuration knows the baud rate(this issue) and you close the error window(I do as it annoys me to much popping up due to other plugins) the workflow would be like this:
I have got an idea on how to improve my code. Thus I launch the Eclipse Arduino IDE which takes much time and makes the fans of my MacBook turn high during the C/C++ indexing (...swear words...), I attach the Teensy, I do some code changes and I click the upload icon. Then I click on the serial icon in the toolbar, the serial monitor connects with the teensy based on the com port and baud rate specified in the currently selected project properties :-)

@ghost
Copy link
Author

ghost commented Nov 7, 2015

Ok, the "upload again" is not forcibly needed, I took the habit to do so to make sure that I didn't miss anything. But you are right, that step is most times obsolete.

Out of that, the workflow you describe seems very sexy if it can be realized :-)

@jantje
Copy link
Member

jantje commented Nov 7, 2015

I plan to do some major changes after the next release. I would not see why these two issues could not be part of it.

@ghost
Copy link
Author

ghost commented Nov 7, 2015

Great, thank you! Looking forward to it. 👍

@jantje jantje self-assigned this Dec 17, 2015
@jantje jantje changed the title Serial port improvements request. Serial port improvements request.:connect to serial monitor based on port and baud rate of currently selected project(s) Dec 30, 2015
@jantje
Copy link
Member

jantje commented Dec 30, 2015

I think about adding a baud rate to the arduino configuration.
When the serial monitor icon is clicked: for all selected projects where the baud rate is present and no serial connection is already in the monitor a serial connection is tried to be made with the baud rate.

What do you think?

jantje pushed a commit that referenced this issue Jan 20, 2016
Also some preparational actions are done for #325 which involved moving
files around to externalize the add and remove serial port methods
jantje pushed a commit that referenced this issue Jan 20, 2016
When you select a project (or more) and click on open serial port button
on the toolbar (or in the arduino menu)The plugin will open serial
connections for all selected projects based on the com port provided in
the project properties and the baud rate in the Serial.begin in the
arduino code
@jantje
Copy link
Member

jantje commented Jan 20, 2016

I didn't add the baud rate to the properties. I read it from the arduino code :-)
cool isn't it?

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

No branches or pull requests

1 participant