Trying to get my Airmar 150WX working. I have the NEMA0183 RS-485 to USB 
adapter. It communicates with the Airmar software so I know the adapter and 
sensor are working. When I try to get it to work on my RPI with weewx it 
get the following error when I start weewx:

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

I have setup a udev rule to keep the USB port at /dev/ttyUSB1. It remains 
at /dev/ttyUSB1 with connects and disconnects. I'm kind of at a loss. Maybe 
since you got yours working you could give a hand.

On Wednesday, January 24, 2018 at 7:48:50 AM UTC-6, Thomas Boström wrote:
>
> Hi all,
>
> I am running the driver airmar version 028 connected  to an Airmar PB100 
> weather station with big success, thank you for a great driver.
> But I can't see any Barometer values in the report. 
> I am very thankful for all help to solve it.
>
> Regards
> Thomas
>
>

Reply via email to