Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
What USB port on Pi
Moderator: mcrossley
-
- Posts: 11
- Joined: Fri 09 Mar 2012 3:38 am
- Weather Station: Davis VantagePro 2
- Operating System: Server 2003
- Location: United States
What USB port on Pi
I am moving my Davis Vantage Pro to Raspberry Pi. I have not been able to get it to connect to Pi. How should the port be set up on the Pi? I have tried numerous settings with no luck. It is a Raspberry Pi 4. with 4 USB ports. How do I configure the station settings in CumulusMX?
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: What USB port on Pi
You should have something like - /dev/ttyUSB0
Look in the /dev folder for a ttyUSB device that appears/disappears when you plug the VP2 in/out.
Look in the /dev folder for a ttyUSB device that appears/disappears when you plug the VP2 in/out.
-
- Posts: 6
- Joined: Mon 19 Aug 2019 11:59 am
- Weather Station: Velleman WS3080
- Operating System: Raspberry PI 3 b+
Re: What USB port on Pi
You can check if USB device is correctly detected with the command "sudo lsusb",
or you can check kernel messages, "dmesg | grep -i dev | grep -i usb"
or you can check kernel messages, "dmesg | grep -i dev | grep -i usb"
-
- Posts: 214
- Joined: Tue 24 Nov 2015 11:30 pm
- Weather Station: Fine Offset & Davis Vantage Vue
- Operating System: Windows 10; Raspbian Buster
- Location: Switzerland
Re: What USB port on Pi
That doesn't seem to work. My Pi Zero W /dev folder contains tty, tty0, tty1, tty2 etc up to tty63, but nothing starting ttyusb. There is a /dev/usb folder, but nothing there either.
All the below are from a Pi Zero W with nothing plugged in except the weather station
But
Code: Select all
sudo lsusb
Code: Select all
Bus 001 Device 002: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Trying
Code: Select all
dmesg | grep -i dev | grep -i usb
Code: Select all
[ 0.144092] usbcore: registered new device driver usb
[ 0.831010] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 0.831030] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.253651] usb 1-1: new low-speed USB device number 2 using dwc_otg
[ 1.503098] usb 1-1: New USB device found, idVendor=1941, idProduct=8021, bcdDevice= 1.00
[ 1.503122] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.517298] hid-generic 0003:1941:8021.0001: hiddev96,hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-20980000.usb-1/input0
In Cumulus.ini, the station shows up as /dev/ttyusb0 but I'm not sure how to convert one notation to the other
Maybe try /dev/ttyusb0, /dev/ttyusb1, /dev/ttyusb2 etc until you find the one that works? It may depend on which of the ports on a Pi 4 you have chosen to plug it into.
Last edited by ExperiMentor on Mon 02 Sep 2019 12:21 am, edited 1 time in total.
-
- Posts: 6
- Joined: Mon 19 Aug 2019 11:59 am
- Weather Station: Velleman WS3080
- Operating System: Raspberry PI 3 b+
Re: What USB port on Pi
With this you have the information about what driver uses the system to use the devices and the filesystem link to those devices.ButshowsCode: Select all
sudo lsusb
so it is connected [including the "USB Missile Launcher" that someone has noted before ROFL]Code: Select all
Bus 001 Device 002: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
This gives you the info regarding to connected devices and if they are correctly recognized.
TryingshowsCode: Select all
dmesg | grep -i dev | grep -i usb
which is the same info in a less-friendly format.Code: Select all
[ 0.144092] usbcore: registered new device driver usb [ 0.831010] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 0.831030] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.253651] usb 1-1: new low-speed USB device number 2 using dwc_otg [ 1.503098] usb 1-1: New USB device found, idVendor=1941, idProduct=8021, bcdDevice= 1.00 [ 1.503122] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 1.517298] hid-generic 0003:1941:8021.0001: hiddev96,hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-20980000.usb-1/input0
You can see here, it's creating /input0 for that device, which corresponds to a generic HID device driver. You can try searching /dev/input/event0 or something similar, but it seems you are missing more specific driver for the station.
Code: Select all
[ 1.503098] usb 1-1: New USB device found, idVendor=1941, idProduct=8021, bcdDevice= 1.00
[ 1.503122] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.517298] hid-generic 0003:1941:8021.0001: hiddev96,hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-20980000.usb-1/input0
-
- Posts: 214
- Joined: Tue 24 Nov 2015 11:30 pm
- Weather Station: Fine Offset & Davis Vantage Vue
- Operating System: Windows 10; Raspbian Buster
- Location: Switzerland
Re: What USB port on Pi
axierr wrote: ↑Sat 24 Aug 2019 12:20 pmActually, mine is working just fine thanks. Nothing is missing.... but it seems you are missing more specific driver for the station.
I've been doing some more checking, using weather station attached to a Pi 3B+ (which also has 4x USB ports).
Connecting the station to a different port gives an increasing Device Number in sudo lsusb as would be expected.
But CumulusMX 'just works' whatever I do. So I thought, it must be /dev/ttyUSB0 whatever I do (with nothing else USB plugged in.)
Then I fiddled experimentally with the CumulusMX / Settings / Station settings, which is where we enter /dev/ttyUSB0 [that's the defualt ... can change it].
I discovered . .. bizarrely ... that it makes no difference what I enter there. I can change it to another port such as /dev/ttyUSB1, or /dev/tty0 or even leave it blank. Saving that change makes the corresponding change in Cumulus.ini, BUT whatever I set it too CumulusMX just finds my weather station. It's like the program doesn't actually look at that setting.
For reference, /dev/input contains only:Code: Select all
pi@Cumulus:/dev/input $ ls -l total 0 crw-rw---- 1 root input 13, 63 Aug 24 16:42 mice
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: What USB port on Pi
Sorry, I should have noticed you were using a Fine Offset device, for those there is no connection setting you need to set, MX will "just detect" the Missile Launcher - so long as the VID/PID match what it is expecting.