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

Arduino with no Serial Number Not Detected #42

Closed
lbussy opened this issue Oct 15, 2020 · 1 comment
Closed

Arduino with no Serial Number Not Detected #42

lbussy opened this issue Oct 15, 2020 · 1 comment
Labels
upstream Problem with someone else's code that we use wontfix This will not be worked on

Comments

@lbussy
Copy link
Member

lbussy commented Oct 15, 2020

When searching for Arduinos, the installation script searches for a serial number. Some devices apparently do not have a serial number. This example was detected on /dev/ttyUSB0 shared by a user:

  looking at parent device '/devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2.3':
    KERNELS=="1-1.2.3"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{rx_lanes}=="1"
    ATTRS{idVendor}=="1a86"
    ATTRS{urbnum}=="1661"
    ATTRS{version}==" 1.10"
    ATTRS{maxchild}=="0"
    ATTRS{busnum}=="1"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bMaxPower}=="98mA"
    ATTRS{quirks}=="0x0"
    ATTRS{removable}=="unknown"
    ATTRS{avoid_reset_quirk}=="0"
    ATTRS{devpath}=="1.2.3"
    ATTRS{devnum}=="6"
    ATTRS{bNumInterfaces}==" 1"
    ATTRS{bDeviceClass}=="ff"
    ATTRS{tx_lanes}=="1"
    ATTRS{speed}=="12"
    ATTRS{idProduct}=="7523"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bmAttributes}=="80"
    ATTRS{product}=="USB Serial"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{devspec}==" (null)"
    ATTRS{bMaxPacketSize0}=="8"
    ATTRS{authorized}=="1"
    ATTRS{bcdDevice}=="0264"
    ATTRS{ltm_capable}=="no"
    ATTRS{configuration}==""

An interesting aside: Fermentrack uses pyudev which might be a good way to go when I re-do this work.

@lbussy lbussy added bug Something isn't working upstream Problem with someone else's code that we use labels Oct 15, 2020
@lbussy lbussy added wontfix This will not be worked on and removed bug Something isn't working labels Apr 19, 2021
@lbussy lbussy pinned this issue Apr 19, 2021
@lbussy
Copy link
Member Author

lbussy commented Apr 19, 2021

Fermentrack uses the same logic. BrewPi will still find such an Arduino with port = auto, however, there's no way to deterministically assign such a device when in multi-chamber mode.

Because there's no way to identify such an Arduino, this is going in the "won't fix" column because there's simply no good way to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Problem with someone else's code that we use wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant