I wonder if it would be easier to use SDR on one sensor unit and USB for
the other so that way you know which you're getting. I am not familiar with
weewx-multi, so maybe I'm talking crap.



On Wed, Feb 21, 2024 at 12:02 PM matthew wall <[email protected]> wrote:

> hi patrick,
>
> unfortunately, every acurite station looks the same - there is no unique
> identifier that lets you distinguish one station from another via the USB
> interface.
>
> if chaney instruments had done it right, they would have burned a serial
> number into each device, not just idProduct and idVendor.
>
> in lieu of an identifier for each device, another approach is to
> distinguish devices based on their locations in the usb tree.  if you could
> do that, then you could conceivably plug them into a usb hub that has ports
> whose addresses are repeatable across reboots (that might even apply to the
> usb 'hub' built in to the computer).
>
> i am not sure whether this is possible, but it would be a fun little
> project to determine the feasibility.  and it is probably easier now that
> libusb is not as volatile as it was 10 years ago.
>
> when you initiate communication with a HID (which is how the acurite and
> other usb-based stations present themselves), you specify idProduct and
> idVendor, then take the first one that shows up.  if a device has a unique
> identifier, you can match on that too (the ws28xx transceviers are an
> example of this.  some, but not all, USB-to-serial converters are too, but
> they are not HID).  it *might* be possible to use the usb tree information
> to distinguish devices.  or maybe the HID interface lets you enumerate them
> - not sure whether the libusb and pyusb layers even let you determine
> whether there are multiple devices that match.
>
> m
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/1ef9de61-4b62-4818-8dd1-eec25bade230n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/1ef9de61-4b62-4818-8dd1-eec25bade230n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAA1SM21%3DsTXnOE6o%3DXibdHTareiGFzOxt5%2B224RDwgCz9fuhOA%40mail.gmail.com.

Reply via email to