PRO2 dual USB serial naming problem. **solved**

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: 11
Joined: Mon Jul 11, 2022 11:52 pm

PRO2 dual USB serial naming problem. **solved**

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.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7974
Joined: Mon Oct 01, 2007 10:51 pm

Re: PRO2 dual USB serial naming problem

Post by admin »

I will have a look into that. To be honest, I never tried the enumeration when using an external USB hub connected.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7974
Joined: Mon Oct 01, 2007 10:51 pm

Re: PRO2 dual USB serial naming problem

Post by admin »

Just released update for PRO2 should build a proper enumeration. May be it will need a second reboot to have the new enumeration code installed before OS is starting the USB drivers.

Please report back, if the issue is solved by that.
dwhitemv
Fresh Boarder
Fresh Boarder
Posts: 11
Joined: Mon Jul 11, 2022 11:52 pm

Re: PRO2 dual USB serial naming problem. **solved**

Post by dwhitemv »

Yes, working great now, thank you!

With the hub connected and the console connected to ports 2 & 3 the device list looks like this:

Code: Select all

/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0 ttyMH1112
/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0 ttyMH
/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0 ttyMH1113
/devices/platform/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.3/1-1.1.3:1.0 ttyMH
Post Reply