Deviot icon indicating copy to clipboard operation
Deviot copied to clipboard

osx serial ports do not show port id

Open tablatronix opened this issue 7 years ago • 15 comments

I cannot tell which device is which, I love seeing the names, but when there are dups, its a problem

screen shot 2018-03-08 at 10 10 22 pm

$ pio device list 
/dev/cu.Bluetooth-Incoming-Port
-------------------------------
Hardware ID: n/a
Description: n/a

/dev/cu.SPhone-WirelessiAPv2
----------------------------
Hardware ID: n/a
Description: n/a

/dev/cu.SLAB_USBtoUART
----------------------
Hardware ID: USB VID:PID=10C4:EA60 SER=0001 LOCATION=20-1.3.1
Description: CP2102 USB to UART Bridge Controller - CP2102 USB to UART Bridge Controller

/dev/cu.SLAB_USBtoUART24
------------------------
Hardware ID: USB VID:PID=10C4:EA60 SER=0001 LOCATION=20-1.3.3
Description: CP2102 USB to UART Bridge Controller - CP2102 USB to UART Bridge Controller

2 lines per port with both names would be nice

tablatronix avatar Mar 09 '18 04:03 tablatronix

I'll try to do this tomorrow I don't have a OSX or Linux machine to change this

gepd avatar Apr 01 '18 17:04 gepd

Let me know where to start. I need to learn python at some point

tablatronix avatar Apr 01 '18 17:04 tablatronix

It was easier than I thought, It should be resolved with https://github.com/gepd/Deviot/commit/3f92c9d0dc88d262f98027896bc4d07ed6730c5a, let me know if that is what you expect

gepd avatar Apr 02 '18 16:04 gepd

This seems to be a breaking change, tested on windows, it says select port over and over in a loop.

[ Deviot 2.3.0.dev1 ] Starting...
Select a Port From The List

tablatronix avatar Apr 05 '18 14:04 tablatronix

Fixed https://github.com/gepd/Deviot/commit/d400b88ed1263dc7d0f458c46af0d39d5a362064

gepd avatar Apr 05 '18 17:04 gepd

This seems to work and help, although its still a bit of a mystery lol Can probably close.

screen shot 2018-06-13 at 7 05 09 pm

tablatronix avatar Jun 14 '18 00:06 tablatronix

I see, I think it would be always confusing when you have multiples devices with the same spec.. A solution would be to add an alias, I could look for a kind of ID that will make possible to always assign an alias that can replace or be merged with the current name

gepd avatar Jun 18 '18 13:06 gepd

Yeah this is on my list to look into, I will look into having some kind of tty alias or have a naming convention, Not sure where OSX is getting the 15,16,17 suffixes but it must be caching them somewhere.

It is mostly an edge case.

tablatronix avatar Jun 18 '18 13:06 tablatronix

What about having an option that when it's active, it asks for an alias everytime you connect the device, I don't see other way to do it

gepd avatar Feb 18 '19 20:02 gepd

Seems tedious, plus osx changes these when moving ports.

How might that work? How about indicating the last used port, colored highlighted? Might help a little bit.

I have another issue where some usb shows 2 ports, ill check if its a pio issue or not

tablatronix avatar Feb 19 '19 00:02 tablatronix

Yes it may be tedious

Idicanting the last used port where?

gepd avatar Feb 19 '19 21:02 gepd

In the devices list, can it appear highlighted? Does it already show which one is active? I forget

tablatronix avatar Feb 20 '19 02:02 tablatronix

Oh now I understand, ST does not provide anyway to highlight it, but what I can do is to add a character at the beginning of the active ports.

* CP2102 USB to UART Bridge Controller...
CP2102 USB to UART Bridge Controller...
* CP2102 USB to UART Bridge Controller...

In the previous case the first one and the last one are active.

What do you think?

gepd avatar Feb 20 '19 18:02 gepd

yeah that might be cool, my main issue is that I have over 5 uarts, some are connected to test equipment like lab power supplies and multimeter, and some arduino etc, and of course they are all just slab_uart, or ftdi, etc, and it is hard to keep track of them lol

Even better would be remember the last device that was used and indicate it, even if inactive , probably requires saving stuff somewhere so might not be a good idea and prohibitive.

This might be a waste of time though, as its usefulness is still limited.

tablatronix avatar Feb 20 '19 18:02 tablatronix

To remember what was the last device used isn't a problem, but where should it be displayed?

And what about the cases when you have devices with the same name, until now I didn't find any unique parameter to identify each device

gepd avatar Feb 20 '19 19:02 gepd