pywws.device_libusb1

Low level USB interface to weather station, using python-libusb1.

Introduction

This module handles low level communication with the weather station via the python-libusb1 library. It is one of several USB device modules, each of which uses a different USB library interface. See Installation - USB library for details.

Testing

Run pywws-testweatherstation with increased verbosity so it reports which USB device access module is being used:

pywws-testweatherstation -vv
11:30:35:pywws.logger:pywws version 15.01.0
11:30:35:pywws.logger:Python version 3.3.5 (default, Mar 27 2014, 17:16:46) [GCC]
11:30:35:pywws.weatherstation.CUSBDrive:using pywws.device_libusb1
0000 55 aa ff ff ff ff ff ff ff ff ff ff ff ff ff ff 05 20 01 41 11 00 00 00 81 7f 00 f0 0f 00 50 04
0020 f9 25 74 26 00 00 00 00 00 00 00 15 01 15 11 31 41 23 c8 00 00 00 46 2d 2c 01 64 80 c8 00 00 00
0040 64 00 64 80 a0 28 80 25 a0 28 80 25 03 36 00 05 6b 00 00 0a 00 f4 01 12 00 00 00 00 00 00 00 00
0060 00 00 5a 0a 63 0a 41 01 70 00 dc 01 08 81 dc 01 c5 81 68 01 75 81 95 28 e0 25 24 29 d9 25 fd 02
0080 b9 02 f4 ff fd ff 85 ff 91 ff 6c 09 00 14 10 19 06 29 12 02 01 19 32 11 09 09 05 18 12 03 28 13
00a0 00 13 07 19 18 28 13 01 18 23 21 13 09 24 13 02 13 09 24 13 33 13 09 24 13 02 12 07 28 12 50 13
00c0 09 24 13 02 13 10 14 16 18 12 02 07 19 00 14 02 14 22 39 13 01 04 10 28 15 01 15 03 48 12 03 10
00e0 22 02 13 01 30 21 24 12 07 28 11 59 13 03 06 06 43 12 04 13 00 04 12 04 13 00 04 12 07 31 03 34

API

Classes

USBDevice(idVendor, idProduct)

Low level USB device access via python-libusb1 library.


Comments or questions? Please subscribe to the pywws mailing list http://groups.google.com/group/pywws and let us know.