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

Automatic detection of port on upload #15

Closed
pelikhan opened this issue Sep 27, 2014 · 18 comments
Closed

Automatic detection of port on upload #15

pelikhan opened this issue Sep 27, 2014 · 18 comments

Comments

@pelikhan
Copy link

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
Copy link
Member

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
Copy link
Author

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
Copy link
Author

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
Copy link
Member

@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
Copy link
Member

You can test it from the develop branch via:

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

@pelikhan
Copy link
Author

pelikhan commented Oct 6, 2014

Very nice.

@ivankravets ivankravets modified the milestone: 1.0.0 Feb 11, 2015
@DesktopMan
Copy link

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
Copy link
Member

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

@DesktopMan
Copy link

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
Copy link
Member

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
Copy link
Member

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

@DesktopMan
Copy link

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
Copy link
Member

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

@DesktopMan
Copy link

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
Copy link
Member

@mgawron86
Copy link

Hi. I ordered new arduino uno board and it seems that auto detection does not work for my board version. @ivankravets Could you update boards/uno.json ?
Terminal output:

/dev/ttyUSB1
------------
Hardware ID: USB VID:PID=1A86:7523 LOCATION=1-1.2
Description: USB2.0-Serial

Thank you in advance !

@ivankravets
Copy link
Member

@mgawron86
Copy link

@ivankravets Issue opened: platformio/platform-atmelavr#133
Thanks !

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

4 participants