Received my Airmar 150WX sensor head and NEMA 0183 to USB converter. The 
combination works with the Airmar Weathercaster software so I know it's 
outputting valid data. I have added the Airmar driver in weewx.conf and 
created a udev rule to maintain the port as "/dev/airmar". It follows the 
rule and creates the link to /dev/airmar each time the usb cable is 
disconnected and reconnected.

Apr 15 21:35:57 airshowwx kernel: [ 4860.471916] usb 1-1.2: USB disconnect, 
device number 17
Apr 15 21:36:01 airshowwx kernel: [ 4864.606189] usb 1-1.2: new full-speed 
USB device number 18 using dwc_otg
Apr 15 21:36:01 airshowwx kernel: [ 4864.769255] usb 1-1.2: New USB device 
found, idVendor=0403, idProduct=cc60
Apr 15 21:36:01 airshowwx kernel: [ 4864.769269] usb 1-1.2: New USB device 
strings: Mfr=1, Product=2, SerialNumber=3
Apr 15 21:36:01 airshowwx kernel: [ 4864.769278] usb 1-1.2: Product: AIRMAR 
USB<=>RS485 SerialConverter
Apr 15 21:36:01 airshowwx kernel: [ 4864.769286] usb 1-1.2: Manufacturer: 
FTDI
Apr 15 21:36:01 airshowwx kernel: [ 4864.769293] usb 1-1.2: SerialNumber: 
FT1X0L5W
Apr 15 21:36:01 airshowwx mtp-probe: checking bus 1, device 18: 
"/sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2"
Apr 15 21:36:01 airshowwx mtp-probe: bus: 1, device: 18 was not an MTP 
device

udev rule:

# FTDI usb-serial converter for device A
ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="cc60", 
ATTRS{serial}=="FT1X0L5W", SYMLINK+="airmar"

pi@airshowwx:/home/weewx $ ls -l /dev/airmar
lrwxrwxrwx 1 root root 15 Apr 15 21:14 /dev/airmar -> bus/usb/001/017

When I start weewx the following shows in syslog:

Apr 15 21:07:14 airshowwx systemd[1]: Starting LSB: weewx weather system...
Apr 15 21:07:14 airshowwx weewx[4736]: engine: Initializing weewx version 
3.7.1
Apr 15 21:07:14 airshowwx weewx[4736]: engine: Using Python 2.7.9 (default, 
Sep 17 2016, 20:26:04) #012[GCC 4.9.2]
Apr 15 21:07:14 airshowwx weewx[4736]: engine: Platform 
Linux-4.9.45-v7+-armv7l-with-debian-8.0
Apr 15 21:07:14 airshowwx weewx[4736]: engine: Locale is 'en_US.UTF-8'
Apr 15 21:07:14 airshowwx weewx[4736]: engine: pid file is 
/var/run/weewx.pid
Apr 15 21:07:14 airshowwx weewx[4726]: Starting weewx weather system: weewx.
Apr 15 21:07:14 airshowwx systemd[1]: Started LSB: weewx weather system.
Apr 15 21:07:14 airshowwx weewx[4740]: engine: Using configuration file 
/home/weewx/weewx.conf
Apr 15 21:07:14 airshowwx weewx[4740]: engine: debug is 1
Apr 15 21:07:14 airshowwx weewx[4740]: engine: Initializing engine
Apr 15 21:07:14 airshowwx weewx[4740]: engine: Loading station type Airmar 
(weewx.drivers.airmar)
Apr 15 21:07:14 airshowwx weewx[4740]: airmar: driver version is 0.28
Apr 15 21:07:14 airshowwx weewx[4740]: airmar: using serial port /dev/airmar
Apr 15 21:07:14 airshowwx weewx[4740]: airmar: open serial port /dev/airmar
Apr 15 21:07:14 airshowwx weewx[4740]: import of driver failed: Could not 
configure port: (25, 'Inappropriate ioctl for device') (<class 
'serial.serialutil.SerialException'>)
Apr 15 21:07:14 airshowwx weewx[4740]: engine: Unable to load driver: Could 
not configure port: (25, 'Inappropriate ioctl for device')
Apr 15 21:07:14 airshowwx weewx[4740]:     ****  Exiting...

I'm stuck at this point. I'm thinking the problem is permission on the 
linked port. It has rwx permissions for user, group and other so that 
should be permission for anyone to read/write to that port.

Like I said i'm stuck. I know there were a couple of other users that have 
gotten the Airmar 150WX working so hearing back from them on how they 
accomplished it would be great. If someone else has a suggestion I'm all 
ears.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to