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

Automatic detection of port on upload #15

Closed
pelikhan opened this Issue Sep 27, 2014 · 15 comments

Comments

Projects
None yet
3 participants
@pelikhan

pelikhan commented Sep 27, 2014

First, let's just say that this project is awesome. This is some awesome work.

One feature that I missed moving from ion was the automatic detection of upload port. It's a very nifty feature that makes things a tad simpler.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Sep 27, 2014

Thanks a lot for feedback!

  1. Can you give an example of automatic detection? Do you mean "glob" syntax in upload_port?
  2. What do you mean under "ion"?
@pelikhan

This comment has been minimized.

pelikhan commented Sep 29, 2014

In ino, one simply writes

ino upload -b uno

Then ino finds the upload port automatically.

-----Original Message-----
From: "Ivan Kravets" notifications@github.com
Sent: ‎9/‎27/‎2014 0:46
To: "ivankravets/platformio" platformio@noreply.github.com
Cc: "Peli de Halleux" jonathan.dehalleux@gmail.com
Subject: Re: [platformio] Automatic detection of port on upload (#15)

Thanks a lot for feedback!
Can you give an example of automatic detection? Do you mean "glob" syntax in upload_port?
What do you mean under "ion"?

Reply to this email directly or view it on GitHub.=

@pelikhan

This comment has been minimized.

pelikhan commented Sep 29, 2014

Sorry, ion = ino .

-----Original Message-----
From: "Ivan Kravets" notifications@github.com
Sent: ‎9/‎27/‎2014 0:46
To: "ivankravets/platformio" platformio@noreply.github.com
Cc: "Peli de Halleux" jonathan.dehalleux@gmail.com
Subject: Re: [platformio] Automatic detection of port on upload (#15)

Thanks a lot for feedback!
Can you give an example of automatic detection? Do you mean "glob" syntax in upload_port?
What do you mean under "ion"?

Reply to this email directly or view it on GitHub.=

@ivankravets

This comment has been minimized.

Member

ivankravets commented Sep 29, 2014

@pelikhan Please connect your Arduino UNO and give me a result of this command:

$ platformio serialports list

@ivankravets ivankravets added this to the 1.0.0 milestone Oct 2, 2014

@ivankravets

This comment has been minimized.

Member

ivankravets commented Oct 3, 2014

You can test it from the develop branch via:

$ pip uninstall platformio
$ pip install https://github.com/ivankravets/platformio/archive/develop.zip
@pelikhan

This comment has been minimized.

pelikhan commented Oct 6, 2014

Very nice.

@ivankravets ivankravets modified the milestone: 1.0.0 Feb 11, 2015

@DesktopMan

This comment has been minimized.

DesktopMan commented Jan 2, 2017

I realise this issue is old, but is this working correctly? What criteria does it use to find the correct upload port?

Looking for upload port...
Auto-detected: /dev/ttyACM0

ttyACM0 is not my device, the correct port is ttyACM3.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Jan 2, 2017

@DesktopMan could you provide an output of pio device list command?

@DesktopMan

This comment has been minimized.

DesktopMan commented Jan 3, 2017

Here's the device list:

/dev/ttyACM3
Hardware ID: USB VID:PID=2341:0243 SER=95432313438351608221 LOCATION=3-1.2.1
Description: Genuino Uno

/dev/ttyACM2
Hardware ID: USB VID:PID=03F0:3D1D SER=285E91F4229B54M0 LOCATION=1-1.5
Description: HP hs2350 HSPA+ MobileBroadband - HP hs2350 HSPA+ Mobile Broadband NMEA

/dev/ttyACM1
Hardware ID: USB VID:PID=03F0:3D1D SER=285E91F4229B54M0 LOCATION=1-1.5
Description: HP hs2350 HSPA+ MobileBroadband - HP hs2350 HSPA+ Mobile Broadband Data Modem

/dev/ttyACM0
Hardware ID: USB VID:PID=03F0:3D1D SER=285E91F4229B54M0 LOCATION=1-1.5
Description: HP hs2350 HSPA+ MobileBroadband - HP hs2350 HSPA+ Mobile Broadband Modem
@ivankravets

This comment has been minimized.

Member

ivankravets commented Jan 3, 2017

What criteria does it use to find the correct upload port?

See https://github.com/platformio/platformio-core/blob/develop/platformio/builder/tools/pioupload.py#L114

Here's the device list:

Thank you, I've just added Genuino Uno's PID/VID to board manifest. See

@ivankravets

This comment has been minimized.

Member

ivankravets commented Jan 3, 2017

Temporary solution is to manually specify upload_port in platformio.ini while new version of Atmel AVR development platform is not released.

@DesktopMan

This comment has been minimized.

DesktopMan commented Jan 5, 2017

Any idea how long it takes for these changes to show up in production? I'm getting 150 students next week and this would save me hours of support.

@ivankravets

This comment has been minimized.

Member

ivankravets commented Jan 5, 2017

@DesktopMan, done! Please run pio update and re-test. Thanks!

@DesktopMan

This comment has been minimized.

DesktopMan commented Jan 6, 2017

Thanks, working. This also seems to be the case for Genuino 101. (intel_arc32):

Hardware ID: USB VID:PID=8087:0AB6 SER=AE6771SQ55201EZ LOCATION=3-1.2.1
Description: GENUINO 101
@ivankravets

This comment has been minimized.

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