Anybobdy Listening?

122 views
Skip to first unread message

Doug

unread,
Aug 2, 2012, 1:32:50 AM8/2/12
to fo...@googlegroups.com
I notice very little activity on this group. I posted a message serval days ago that has not even been viewed? Is there anyone listening?

Doug

wieselflink

unread,
Aug 31, 2012, 7:52:38 AM8/31/12
to fo...@googlegroups.com
Yes i am listening :-) - but i am NO programmer - i am only a ordinary user who wants to have a weaterstation working  

But it seems that only very very little other people have the idea for installing such a weather - station / and / or problems with the compiling . . . . .
So it´s a bad situation for all who have not the knowledge of programming and the way how the program is working and interacting. . . . 

For me it´s the same, i bought a station at a german seller, downloaded the file, started compiling and the result is that the data is not downloaded from the weather-station :-( 

Reginaldo 

Doug

unread,
Aug 31, 2012, 10:41:41 AM8/31/12
to fo...@googlegroups.com
I emailed the authors of fowsr and wwsr directly as well as posting on here but I have heard nothing back. The major problem appears to be USB interfacing issues. As I stated on an earlier post I can read the station fine with the wwsr code but fowsr gives me USB errors and does not run. I tried to look at the difference in coding. It appears that wwsr has fixed vendor and product codes imbedded in the code. In any event whatever is in there works for me. If I had more time I would try to pull the code out of wwsr and install it in fowsr.  According to the readme the fowsr author used wwsr as an example for fowsr but there were changes made and it has caused it to not work in apparently many cases.

I suggest you get and try the wwsr code to see if it reads your device. It is a simple readout.  'wwsr -a' gives all the weather station parameters.  Google  wwsr  for the code.  Compile it and just run the binary - wwsr.

Hopefully one or both of the authors will chime in and help but it appears they have abandoned the project.

Doug 

 


From: wieselflink <reginaldo...@gmx.de>
To: fo...@googlegroups.com
Sent: Friday, August 31, 2012 7:52 AM
Subject: Re: Anybobdy Listening?

Gerry Skerbitz

unread,
Aug 31, 2012, 1:21:23 PM8/31/12
to fo...@googlegroups.com, Doug
We're all listening. :-)
Since you succeeded in compiling, what does fowsr -b do?
Also what platform are you building on/for?
Contrary to your statement, fowsr does run.  It just doesn't gather info from the station.
Have you tried other USB ports? no hub? Other cables?
does strace give you any insight?
The "latest" libusb is libusb-1.0 and fowsr needs libusb-0.1. But so does wwsr, so I'd guess you have that part right.
Although there is a libusb-compat-1.0.... which might have allowed you to compile and still not work.
(I have never succeeded in getting fowsr compiled for my desktop machine but I got it to work on my chumby)

Doug

unread,
Aug 31, 2012, 2:22:59 PM8/31/12
to fo...@googlegroups.com
Below are the results of   'fowsr -b',  my /var/log/messages when installing the WS2080 and the (correct) output I get from 'wwsr -a'   The hard coded vendor and device settings in  wwsr.c match the numbers that the messages file produces when reading the device. This is done differently in fowsr,  I do not see and device or vendor codes.

I discount any USB hardware problems. The weather station is being read just not by fowsr. Since wwsr works I need to look at the difference in the USB code and perhaps make some changes in fowsr to get the USB working.

I am using an NSLU2 running Debian lenny.  I consider that something does not run if it returns an error and no useable output!

LKG66450E:/usr/src/utils/fowsr-1.0# ./fowsr -b
000264D0 | 8B 01 40 50 __ __ __ __ __ __ __ __ __ __ __ __ | .@P
usb_set_debug: Setting debugging level to 255 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 003
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 008 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
usb_get_driver_np returned 0
interface 0 already claimed by driver \'usbhid\', attempting to detach it
usb_detach_kernel_driver_np returned 0
000164D0 | 55 AA FF FF FF FF FF FF 00 00 00 00 00 00 00 00 | Uª..............
000164E0 | 1E 47 08 2C 11 00 00 00 85 00 00 6C 00 00 B0 07 | .G.,....
..l..°.
000164F0 | E0 27 D8 27 00 00 00 00 00 00 01 12 08 30 20 12 | à'Ø'.........0..
00016500 | 41 23 A8 02 40 01 46 2D 5C 03 8C 00 A8 02 40 01 | A#¨.@.F-\..¨.@.
00016510 | F4 01 8C 00 00 0C 13 0B 00 0C 13 0B 00 70 00 00 | ô...........p..
00016520 | DF 00 00 04 00 C5 00 12 00 00 00 00 00 00 00 00 | ß....Å..........
00016530 | 00 00 4B 2D 5B 2F 2A 01 EA 00 34 01 C5 00 34 01 | ..K-[/*.ê.4.Å.4.
00016540 | B9 00 E5 00 8E 00 E4 27 6F 27 EC 27 8C 27 25 00 | ¹.å..ä'o'ì''%.
00016550 | 3D 00 18 00 1E 00 1E 00 1E 00 1E 00 00 12 08 30 | =..............0
00016560 | 09 46 10 01 01 12 11 12 08 29 01 46 12 08 29 14 | .F.......).F..).
00016570 | 44 10 01 01 12 00 10 01 01 14 39 10 01 01 14 29 | D.........9....)
00016580 | 12 08 29 06 49 10 01 01 14 29 12 08 29 06 56 10 | ..).I....)..).V.
00016590 | 01 01 14 02 10 01 01 12 12 12 08 30 12 03 10 01 | ...........0....
000165A0 | 01 16 08 12 08 30 12 03 10 01 01 13 07 12 08 29 | .....0.........)
000165B0 | 08 27 12 08 29 05 02 10 01 01 18 52 10 01 01 19 | .'..)......R....
000165C0 | 22 10 01 01 19 22 10 01 01 19 22 10 01 01 19 22 | "...."...."...."
000264D4 | 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ | ....
failed to release interface: 0
failed to close interface: 0

From my messages when installing the  ws2080 -

Aug 31 09:13:41 LKG66450E kernel: [47047347.120000] usb 1-2.1: USB disconnect, address 7
Aug 31 14:08:10 LKG66450E kernel: [47065016.000000] usb 1-2.1: new low speed USB device using ehci_hcd and address 8
Aug 31 14:08:10 LKG66450E kernel: [47065016.120000] usb 1-2.1: configuration #1 chosen from 1 choice
Aug 31 14:08:11 LKG66450E kernel: [47065016.150000] hiddev96hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-0000:00:01.2-2.1
Aug 31 14:08:11 LKG66450E kernel: [47065016.160000] usb 1-2.1: New USB device found, idVendor=1941, idProduct=8021
Aug 31 14:08:11 LKG66450E kernel: [47065016.170000] usb 1-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0

and again the wssr -a results -

LKG66450E:/usr/src/utils/wwsr-0.5# ./wwsr -a
Reading last updated record from device
Last saved values:
224:            interval:                  30
225:            indoor humidity            53
228:            outdoor humidity           57
226 227:        indoor temperature         26.5
229 230:        outdoor temperature        31.7
233:            wind speed                  1.0
234:            wind gust                   1.4
236:            wind direction             SW
238 239:        rain?                       0.0
237:            rain - ??                   0.5
248:            rain1                       0
                rain2                       5
235:            other 1                     0
239:            other 2                     0
231 232:        pressure(hPa)            1018.2
                Current history pos:      9f0

Current values:
240:            Since last save:            4min
241:            indoor humidity            54
244:            outdoor humidity           59
242 243:        indoor temperature         26.5
245 246:        outdoor temperature        31.7
249:            wind speed                  1.7
250:            wind gust                   2.4
252:            wind direction              W
254 255:        rain? this is always zero     0.0
253:            rain - 24h?                 0.5
254:            rain1                       0
                rain2                       5
251:            other 1                     0
255:            other 2                     0
247 248:        pressure(hPa)            1018.0
                Current history pos:     20fc

Gerry

unread,
Aug 31, 2012, 3:17:14 PM8/31/12
to fo...@googlegroups.com
Doug,
Cool! So fowsr IS talking to the USB device -- it got data. That's very good.

Do you and I have different versions of fowsr; because my fowsr.c does contain
the vendor and product numbers:

gsker@veeta:~/weather/fowsr-read-only/fowsr-1.0> egrep '1941|8021' fowsr.c
int vendor = 0x1941;
int product = 0x8021;

Others on the web have found that the USB hardware sometimes responds
differently to different software. Thus my question about the hardware.

Having had so much trouble just compiling some of these libusb based packages, I
consider that it runs if it runs. Never mind that it didn't do anything
useful for me. :-)

I should have asked you to run fowsr -d too. and fowsr -r.

Do you have an strace command for the NSLU2? (since you are succeeding in
talking to the device, this is probably moot.

The way fowsr works is that it reads ALL of the memory on the WS2080. Then it
saves that in fowsr.dat. The next time it runs it only reads the parts that are
necessary to get it's saved copy back in sync. wwwsr doesn't do that in a normal run.

I wonder if there's a bad read somewhere in the middle (or early if the error is
happening quickly.

To check what's happening, you could run wwsr to dump everything in the ws2080
and then try doing the same thing with fowsr. If wwsr also fails when trying to
read it all, you'd have some more info about what's happening.

fowsr -r
and
wwsr -d 256:131816

Some people have gotten things running again by clearing out the weather station.

But is there actually some other problem due to it being a WS2080 instead of a
WS1080? Below is my output from fowsr -b. Why would the address column
be different? And yours is 17 lines while mine is only 16. Hmmm.


chumby:/psp# ./fowsr.bin -b
000153A8 | 55 AA FF FF FF FF FF FF 00 00 54 00 00 00 00 00 | U........T.....
000153B8 | 05 47 08 3A 09 00 00 00 85 00 00 CC 05 00 B0 5D | .G.:........]
000153C8 | 58 26 7E 25 00 00 00 00 00 00 01 12 04 15 23 59 | X&~%..........#Y
000153D8 | 41 23 A8 02 40 01 45 2D 5C 03 8C 00 A8 02 40 01 | A#.@.E-\...@.
000153E8 | F4 01 8C 00 00 0C 13 0B 00 0C 13 0B 00 70 00 00 | ...........p..
000153F8 | DF 00 00 04 00 C5 00 12 00 00 00 00 00 00 00 00 | ..............
00015408 | 00 00 3A 0A 63 0A FC 00 9A 00 19 01 AD 80 19 01 | ..:.c.......
00015418 | D9 80 BD 00 20 81 E9 27 68 25 CF 28 42 26 3D 00 | ـ..'h%(B&=.
00015428 | 23 02 D8 60 D8 60 E1 60 19 62 80 01 00 12 03 19 | #.```.b.....
00015438 | 09 49 12 02 02 00 44 32 02 01 04 38 12 02 08 11 | .I....D2...8....
00015448 | 32 12 03 18 21 18 12 02 25 06 41 12 03 16 14 26 | 2...!...%.A....&
00015458 | 12 02 11 06 50 12 03 16 14 26 12 02 11 03 27 12 | ....P....&....'.
00015468 | 04 15 14 57 12 02 11 14 08 07 01 01 12 37 12 04 | ...W.........7..
00015478 | 15 19 19 12 03 09 09 53 12 04 15 19 19 12 03 18 | .......S........
00015488 | 17 11 32 02 01 02 20 12 02 02 01 20 12 02 02 01 | ..2.............
00015498 | 20 12 02 02 01 20 12 03 04 11 22 12 04 07 14 17 | ..........".....

Just some more data for you.

Gerry
> ___________________________________________________________________________________________________________
> From: wieselflink <reginaldo...@gmx.de>
> To: fo...@googlegroups.com
> Sent: Friday, August 31, 2012 7:52 AM
> Subject: Re: Anybobdy Listening?
>
> Yes i am listening :-) - but i am NO programmer - i am only a ordinary user who wants to
> have a weaterstation working  
>
> But it seems that only very very little other people have the idea for installing such a
> weather - station / and / or problems with the compiling . . . . .
> So it´s a bad situation for all who have not the knowledge of programming and the way how
> the program is working and interacting. . . . 
>
> For me it´s the same, i bought a station at a german seller, downloaded the file, started
> compiling and the result is that the data is not downloaded from the weather-station :-( 
>
> Reginaldo 
>
>
> Am Donnerstag, 2. August 2012 07:32:50 UTC+2 schrieb Doug:
> I notice very little activity on this group. I posted a message serval days
> ago that has not even been viewed? Is there anyone listening?
>
> Doug
>
>
>
>
>
>
>

--
Gerry Skerbitz
gs...@skerbitz.org

Doug

unread,
Aug 31, 2012, 6:36:35 PM8/31/12
to fo...@googlegroups.com
Here is fowsr -r  :

LKG66450E:/usr/src/utils/fowsr-1.0# ./fowsr -r | more

usb_set_debug: Setting debugging level to 255 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 003
usb_os_find_busses: Found 001
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 008 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 006 on 001
usb_os_find_devices: Found 005 on 001
usb_os_find_devices: Found 002 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
error obtaining child information: Inappropriate ioctl for device
USB error: could not get bound driver: No data available
000264D0 | 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ | ....
usb_get_driver_np returned -61
000165D0 | 1E 3B F3 00 3E E3 00 8A 27 00 00 00 0C 02 00 00 | .;ó.>ã.'.......
000165E0 | 1E 3B ED 00 3D DE 00 86 27 00 03 00 0C 02 00 00 | .;í.=Þ.'.......
000165F0 | 1E 3C EC 00 3E E4 00 87 27 00 00 00 00 02 00 00 | .<ì.>ä.'.......
00016600 | 1E 3C ED 00 42 27 01 87 27 07 0E 00 00 05 00 00 | .<í.B'.'.......
00016610 | 1E 3C EB 00 3D 34 01 87 27 07 0A 00 04 05 00 00 | .<ë.=4.'.......
00016620 | 1E 3B F0 00 3D 30 01 8A 27 03 0A 00 0E 05 00 00 | .;ð.=0.'.......
00016630 | 1E 3C ED 00 3E 2B 01 8C 27 0A 0E 00 0C 05 00 00 | .<í.>+.'.......
00016660 | 1E 37 F8 00 47 09 01 8E 27 00 03 00 0A 05 00 00 | .7ø.G..'.......
00016670 | 1E 36 F8 00 47 06 01 92 27 00 0A 00 04 05 00 00 | .6ø.G..'.......
00016680 | 1E 37 F3 00 4D 00 01 97 27 00 03 00 0A 05 00 00 | .7ó.M..'.......
00016690 | 1E 38 F0 00 50 FB 00 96 27 00 00 00 0C 05 00 00 | .8ð.Pû.'.......
000167E0 | 1E 46 F1 00 47 CA 00 AA 27 14 25 00 02 05 00 00 | .Fñ.GÊ.ª'.%.....
000167F0 | 1E 42 EF 00 44 D5 00 AB 27 0E 18 00 04 05 00 00 | .Bï.DÕ.«'.......
00016800 | 1E 48 EE 00 40 E0 00 AC 27 11 22 00 02 05 00 00 | .Hî.@à.¬'.".....
00016810 | 1E 48 EF 00 41 E8 00 AF 27 11 1B 00 05 05 00 00 | .Hï.Aè.¯'.......
00016820 | 1E 47 F1 00 3D F2 00 B1 27 0A 18 00 04 05 00 00 | .Gñ.=ò.±'.......
00016830 | 1E 46 F6 00 3C 01 01 B3 27 0A 11 00 04 05 00 00 | .Fö.<..³'.......
00016840 | 1E 44 F7 00 39 0D 01 B5 27 03 07 00 02 05 00 00 | .D÷.9..µ'.......
00016850 | 1E 46 F5 00 37 0F 01 B5 27 0A 14 00 06 05 00 00 | .Fõ.7..µ'.......
00016860 | 1E 45 F3 00 3B 0B 01 B7 27 0A 11 00 02 05 00 00 | .Eó.;..·'.......
00016870 | 1E 43 F0 00 33 15 01 B6 27 07 0A 00 06 05 00 00 | .Cð.3..¶'.......
00016880 | 1E 41 EE 00 37 13 01 B6 27 0A 14 00 0C 05 00 00 | .Aî.7..¶'.......
00016890 | 1E 42 EE 00 3A 0F 01 B4 27 14 1B 00 0E 05 00 00 | .Bî.:..´'.......
000168A0 | 1E 41 F2 00 35 17 01 B3 27 07 0E 00 08 05 00 00 | .Aò.5..³'.......
000168B0 | 1E 3F F2 00 35 19 01 B1 27 0A 11 00 0A 05 00 00 | .?ò.5..±'.......
000168C0 | 1E 3D EF 00 31 18 01 B0 27 18 1B 00 0C 05 00 00 | .=ï.1..°'.......
000168D0 | 1E 3B F2 00 30 1B 01 AF 27 0E 18 00 0C 05 00 00 | .;ò.0..¯'.......
000168E0 | 1E 39 F6 00 31 19 01 AD 27 0A 11 00 0C 05 00 00 | .9ö.1..­'.......
000168F0 | 1E 38 F8 00 31 19 01 AB 27 03 0A 00 0A 05 00 00 | .8ø.1..«'.......
00016900 | 1E 38 F6 00 34 16 01 AD 27 11 14 00 0C 05 00 00 | .8ö.4..­'.......
00016910 | 1E 38 F4 00 35 1C 01 AD 27 07 25 00 04 05 00 00 | .8ô.5..­'.%.....
00016920 | 1E 3B F3 00 39 10 01 AE 27 07 14 00 06 05 00 00 | .;ó.9..®'.......
00016930 | 1E 3A F2 00 3C 0A 01 AC 27 07 11 00 06 05 00 00 | .:ò.<..¬'.......
00016940 | 1E 39 F5 00 3F 03 01 AB 27 00 03 00 06 05 00 00 | .9õ.?..«'.......
00016950 | 1E 37 F3 00 43 F9 00 AF 27 00 03 00 08 05 00 00 | .7ó.Cù.¯'.......
00016960 | 1E 39 EF 00 48 E8 00 B3 27 00 00 00 06 05 00 00 | .9ï.Hè.³'.......
00016970 | 1E 40 F4 00 4C DD 00 B5 27 00 00 00 08 05 00 00 | .@ô.LÝ.µ'.......
00016980 | 1E 3A FA 00 50 D6 00 B8 27 00 00 00 0C 05 00 00 | .:ú.PÖ.¸'.......
00016990 | 1E 39 FA 00 52 D3 00 BA 27 00 00 00 0C 05 00 00 | .9ú.RÓ.º'.......
000169A0 | 1E 3F FE 00 54 CE 00 BA 27 00 00 00 0C 05 00 00 | .?þ.TÎ.º'.......
000169B0 | 1E 3E FF 00 56 CB 00 BD 27 00 00 00 0C 05 00 00 | .>..VË.½'.......
000169C0 | 1E 3D 00 01 58 CB 00 BD 27 00 00 00 0C 05 00 00 | .=..XË.½'.......
000169D0 | 1E 3B 02 01 59 C9 00 BE 27 00 00 00 06 05 00 00 | .;..YÉ.¾'.......
000169E0 | 1E 3F FF 00 59 CB 00 BF 27 00 00 00 06 05 00 00 | .?..YË.¿'.......
000169F0 | 1E 3D 00 01 5A CB 00 C0 27 00 00 00 06 05 00 00 | .=..ZË.À'.......
00016A00 | 1E 41 FC 00 5A CF 00 C1 27 00 03 00 08 05 00 00 | .Aü.ZÏ.Á'.......
00016A10 | 1E 42 FA 00 55 D5 00 C2 27 03 07 00 0E 05 00 00 | .Bú.UÕ.Â'.......
00016A20 | 1E 40 F6 00 53 D7 00 C3 27 00 03 00 0A 05 00 00 | .@ö.S×.Ã'.......
00016A30 | 1E 44 F3 00 52 D9 00 C3 27 00 00 00 08 05 00 00 | .Dó.RÙ.Ã'.......
00016A40 | 1E 45 F2 00 54 D1 00 C3 27 00 00 00 08 05 00 00 | .Eò.TÑ.Ã'.......
00016A50 | 1E 45 F2 00 56 CD 00 C4 27 00 00 00 06 05 00 00 | .Eò.VÍ.Ä'.......
00016A60 | 1E 44 EF 00 54 D3 00 C5 27 00 07 00 0A 05 00 00 | .Dï.TÓ.Å'.......
00016A70 | 1E 47 EF 00 53 D7 00 C5 27 00 07 00 08 05 00 00 | .Gï.S×.Å'.......
00016A80 | 1E 46 F0 00 53 D5 00 C5 27 00 03 00 06 05 00 00 | .Fð.SÕ.Å'.......
00016A90 | 1E 46 F0 00 53 D9 00 C6 27 03 0A 00 0B 05 00 00 | .Fð.SÙ.Æ'.......
00016AA0 | 1E 46 F0 00 51 DF 00 CA 27 03 0A 00 0E 05 00 00 | .Fð.Qß.Ê'.......
00016AB0 | 1E 46 F0 00 51 DD 00 CD 27 00 00 00 0C 05 00 00 | .Fð.QÝ.Í'.......
00016AC0 | 1E 46 F0 00 53 DA 00 CD 27 03 07 00 0A 05 00 00 | .Fð.SÚ.Í'.......
00016AD0 | 1E 42 EE 00 52 DF 00 CC 27 00 07 00 0C 05 00 00 | .Bî.Rß.Ì'.......
00016AE0 | 1E 48 ED 00 52 E4 00 CF 27 00 07 00 0E 05 00 00 | .Hí.Rä.Ï'.......
00016AF0 | 1E 49 EE 00 51 ED 00 D6 27 03 0A 00 0B 05 00 00 | .Iî.Qí.Ö'.......
00016B00 | 1E 49 EF 00 49 FA 00 D8 27 03 0A 00 0C 05 00 00 | .Iï.Iú.Ø'.......
00016B10 | 1E 44 EE 00 45 01 01 DB 27 0A 14 00 0E 05 00 00 | .Dî.E..Û'.......
00016B20 | 1E 4A EE 00 43 02 01 DE 27 0A 11 00 04 05 00 00 | .Jî.C..Þ'.......
00016B30 | 1E 4A EF 00 3F 08 01 E1 27 07 0A 00 0C 05 00 00 | .Jï.?..á'.......
00016B40 | 1E 46 EE 00 3A 0E 01 E0 27 00 03 00 00 05 00 00 | .Fî.:..à'.......
00016B50 | 1E 4A F1 00 36 19 01 E2 27 00 07 00 04 05 00 00 | .Jñ.6..â'.......
00016B60 | 1E 46 F8 00 33 18 01 E1 27 07 0E 00 0A 05 00 00 | .Fø.3..á'.......
00016B70 | 1E 43 F8 00 32 18 01 E4 27 0E 14 00 0E 05 00 00 | .Cø.2..ä'.......
00016B80 | 1E 40 F6 00 32 19 01 E1 27 03 0A 00 0C 05 00 00 | .@ö.2..á'.......
00016B90 | 1E 40 F8 00 35 1B 01 E0 27 0A 14 00 0E 05 00 00 | .@ø.5..à'.......
00016BA0 | 1E 3E FA 00 34 1B 01 E1 27 07 0E 00 0C 05 00 00 | .>ú.4..á'.......
00016BB0 | 1E 3C F8 00 33 28 01 E0 27 03 07 00 00 05 00 00 | .<ø.3(.à'.......
00016BC0 | 1E 39 F6 00 34 25 01 DC 27 07 11 00 0E 05 00 00 | .9ö.4%.Ü'.......
00016BD0 | 1E 38 F1 00 37 23 01 DB 27 03 0A 00 0A 05 00 00 | .8ñ.7#.Û'.......
00016BE0 | 1E 38 F0 00 37 29 01 DB 27 0A 11 00 0E 05 00 00 | .8ð.7).Û'.......
00016BF0 | 1E 38 EE 00 3B 26 01 D9 27 03 0E 00 0A 05 00 00 | .8î.;&.Ù'.......
00016C00 | 1E 38 ED 00 41 1F 01 D7 27 00 07 00 07 05 00 00 | .8í.A..×'.......
00016C10 | 1E 38 EF 00 40 1A 01 D7 27 0A 14 00 03 05 00 00 | .8ï.@..×'.......
00016C20 | 1E 36 F1 00 3D 17 01 D7 27 0A 1F 00 08 05 00 00 | .6ñ.=..×'.......
00016C30 | 1E 38 F1 00 41 13 01 D5 27 00 07 00 08 05 00 00 | .8ñ.A..Õ'.......
00016C40 | 1E 39 EE 00 44 0C 01 D7 27 00 03 00 06 05 00 00 | .9î.D..×'.......
00016C50 | 1E 38 F5 00 49 02 01 D4 27 07 0E 00 06 05 00 00 | .8õ.I..Ô'.......
00016C60 | 1E 37 FD 00 4E F7 00 D4 27 03 0A 00 04 05 00 00 | .7ý.N÷.Ô'.......
00016C70 | 1E 37 FF 00 52 ED 00 D7 27 00 00 00 00 05 00 00 | .7..Rí.×'.......
00016C80 | 05 36 00 01 53 EC 00 D8 27 00 00 00 00 05 00 00 | .6..Sì.Ø'.......
00016C90 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016CA0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016CB0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016CC0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016CD0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016CE0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016CF0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016D00 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
00016D10 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................

and many many  screens of just 0's to

000264A0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000264B0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000264C0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................

000264D4 | 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ | ....
failed to release interface: 0
failed to close interface: 0

My wwsr has no -d option.

and you are right the product and vendor are in fowsr.c - so we can eliminate that as an issue.

One of the things that usually ends up being a problem in Linux is permissions. I am running this as root. I saw in one post that a problem could happen if the /var was not writable. I would think that would show up as a specific error and not the stuff I am seeing about failed to release interface etc.

Doug
 
From: Gerry <gs...@skerbitz.org>
To: "fo...@googlegroups.com" <fo...@googlegroups.com>
Sent: Friday, August 31, 2012 3:17 PM
Subject: Re: Anybobdy Listening?

Doug

unread,
Aug 31, 2012, 6:57:59 PM8/31/12
to fo...@googlegroups.com
It also occurred to me that maybe there is no problem with reading the data and all those USB error messages are not really a problem although I don't know why all that stuff has to be displayed if they are not.

Maybe the problem is being able to write the log. I tried saving it to my home directory as well as the /var/log location but neither are created.

I guess I will have to dig into the code. I am not unfamiliar with C. I could go in and put some more debug statements in and see where this is going. It would be nice to have some more feedback as to what is happening.

Doug



Gerry

unread,
Aug 31, 2012, 7:07:57 PM8/31/12
to fo...@googlegroups.com, dsc...@yahoo.com
Doug,
My wwsr was based on the one from
http://meteolinger.lowlevel.cz/tracker

I've added some conversion things and different formats.
He had already added the -d.
I'm attaching my version.

(I'm not necessarily _proud_ of my coding changes and I know there are still
broken things in there, so I wouldn't use it blindly. For example I don't think
the rain data is being done correctly yet.)

But the -d is there.

While I agree that I think that permissions errors would show up obviously,
what you have shared is suspicious. The USB communication is clearly happening
and I think your data looks good.

If that's true, then the permissions may be something to wonder about.
strace would be able to show a failure really quickly.

Can you manually create a file called /var/fowsr.dat to make sure that that's
not an issue? (just "touch /var/fowsr.dat")

I recompiled fowsr to put all it's data in /psp/fowsr because that's where the
chumby likes it.


Just change these lines to a place you KNOW you can write.
(probably /tmp for now)
gerry@work:~/fowsr-1.0> grep -n 'Write.*/var/'
~/fowsr-read-only/fowsr-1.0/fowsr.c
764: CWF_Write('p',"//var//pywws.log");
766: CWF_Write('s',"//var//pwsweather.log");
768: CWF_Write('w',"//var//wunderground.log");
770: CWF_Write('x',"//var//fowsr.xml");
--
Gerry Skerbitz
gs...@skerbitz.org
wwsr3.5.c

Doug

unread,
Aug 31, 2012, 8:49:57 PM8/31/12
to fo...@googlegroups.com
OK making progress. The supposed USB errors were throwing me off. I am sure they have alarmed others also. If you see the data with -d or  -r  then more than likely you can ignore the messages.

First of all change the  'usb_set_debug'  parameter in the source to '1'  That reports errors only. Here is the info on usb_set_debug :

usb_set_debug()
Name
usb_set_debug -- set debug message verbose level
Description
void usb_set_debug(int level);
usb_set_debug() sets the debug message verbose level. You can set it to 4 to print the debug message which is quite verbose.
0 LOG_OFF, 1 LOG_ERROR, 2 LOG_WARNING, 3 LOG_INFO, 4 LOG_DEBUG,
In the original code it is set to 255. I am not sure what that does but from what I see above there are only 5 levels.

Once you do this most all of the messages go away. I still get failed to detach and close messages though but looking at the source they come from the programmers created error messages and not libusb.  You could probably squelch them in the source but better to just send the output of fowsr to /dev/null !    /usr/bin/fowsr -x > /dev/null  - produces no command line output.

I did change the locations of the output files in my case to   /var/log/fowsr/
This makes more sense for logs. You do need to create the directory  /var/log/fowsr   or wherever you are putting it.

So it is working and I suspect maybe working for others who have seen these ominous messages and not gone on.

So now I will see if I can update wundergournd.

Has anyone written code to convert  the xml log to some nicely formatted web output?

Doug

Cc: dsc...@yahoo.com
Sent: Friday, August 31, 2012 7:07 PM
Subject: Re: Anybobdy Listening?

Doug

unread,
Aug 31, 2012, 11:50:15 PM8/31/12
to fo...@googlegroups.com
WORKING!

My wunderground site name is 

KNJNORTH13


Thanks for the help. 


I still would like to use the xml data locally to create my own web page. If anyone has done that and is willing to share some examples that would be great.

Doug
 


Reply all
Reply to author
Forward
0 new messages