Im using weewx V5.02 and Im 
using https://github.com/weewx/weewx/wiki/weewx-multi to connect 2 vantage 
pro consoles.  All is working as expected.

However when I moved the raspberry pi and connected the power back on the 
/dev/ttyUSB 0 and 1 had switched over.

In the wiki I found a document on UDEV rules for USB ports and using

sudo udevadm info -a -n /dev/ttyUSB0

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device 
'/devices/platform/axi/1000120000.pcie/1f00200000.usb/xhci->
    KERNEL=="ttyUSB0"
    SUBSYSTEM=="tty"
    DRIVER==""
    ATTR{power/control}=="auto"
    ATTR{power/runtime_active_time}=="0"
    ATTR{power/runtime_status}=="unsupported"
    ATTR{power/runtime_suspended_time}=="0"

  looking at parent device 
'/devices/platform/axi/1000120000.pcie/1f00200000.us>
    KERNELS=="ttyUSB0"
    SUBSYSTEMS=="usb-serial"
    DRIVERS=="cp210x"

sudo udevadm info -a -n /dev/ttyUSB1

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

  looking at device 
'/devices/platform/axi/1000120000.pcie/1f00300000.usb/xhci->
    KERNEL=="ttyUSB1"
    SUBSYSTEM=="tty"
    DRIVER==""
    ATTR{power/control}=="auto"
    ATTR{power/runtime_active_time}=="0"
    ATTR{power/runtime_status}=="unsupported"
    ATTR{power/runtime_suspended_time}=="0"

  looking at parent device 
'/devices/platform/axi/1000120000.pcie/1f00300000.us>
    KERNELS=="ttyUSB1"
    SUBSYSTEMS=="usb-serial"
    DRIVERS=="cp210x"

They look identical to me so Im wondering if this will work and if they 
will work what do you put in
# FTDI usb-serial converter for device A ACTION=="add", 
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", 
ATTRS{serial}=="XXXXXXXX", SYMLINK+="deviceA" # FTDI usb-serial converter 
for device B ACTION=="add", ATTRS{idVendor}=="0403", 
ATTRS{idProduct}=="6001", ATTRS{serial}=="YYYYYYYY", SYMLINK+="deviceB"

Thanks for help
Phil


-- 
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/214dda4a-94e9-4893-822c-6dd01a37d243n%40googlegroups.com.

Reply via email to