PRO2 dual USB serial naming problem

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
dwhitemv
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Mon Jul 11, 2022 11:52 pm

PRO2 dual USB serial naming problem

Post by dwhitemv »

Hello,

I'm migrating my MR3020 based Meteobridge to a new PRO2. Currently I have 2 Davis consoles (a Vantage and a Vue) connected via a USB hub. On the old hardware, the two show up as separate tty's and can be attached to 2 weather station configs in Meteobridge.

On the Pro2, however, the ports are getting the same TTY name. The problem appears to be that the program that parses out the name doesn't grok the naming scheme on the Pro2 and generates the same name, ttyMH111.

For the record, the internal Pro2 meteostick is disabled. (The Pro2 isn't receiving my stations reliably, one is about at the reception range for it.)

The /var/run/devttyusb file generates these lines:

Code: Select all

/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0 ttyMH111
/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0 ttyMH
/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0 ttyMH111
/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0 ttyMH
You can see that the device paths are different, but the nameusb program doesn't detect this and creates the same name.

Any chance we could get a bugfix for this?

If I remove the hub and connect the consoles directly to the Pro2 it names the ports correctly, but it's messy looking. I'll still have to do some plugging to tell which console is which, but that's not Meteobridge's problem :)

Thanks for any assistance you can provide.
Post Reply