git-hanjo / fowsr

Automatically exported from code.google.com/p/fowsr
0 stars 0 forks source link

fowsr returns only zeros #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. start fowsr on raspberry with WH1080 connected on USB 

What is the expected output? What do you see instead?
expected is data from weather station, i got this output:

2013-09-18 14:37:27 FOWSR V2.0.130910 started Cmd: ./fowsr -v3 -b
last cached record 1970-01-01 01:00:00
0001665C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001666C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001667C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001668C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001669C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000166AC | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000166BC | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000166CC | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000166DC | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000166EC | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
000166FC | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001670C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001671C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001672C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001673C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
0001674C | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 | ................
last record read   1970-01-01 01:00:00

What version of the product are you using? On what operating system?

fowsr-2.0.130910.tar.gz
on
Linux raspberrypi 3.1.9+ #168 PREEMPT Sat Jul 14 18:56:31 BST 2012 armv6l 
GNU/Linux

Please provide any additional information below.
downloaded, unpack, make and run "./fowsr -b"

Original issue reported on code.google.com by Michael....@gmail.com on 18 Sep 2013 at 12:40

GoogleCodeExporter commented 9 years ago
"-v3" is a wrong option. Use "-v3c" instead. "-b" only displays the cached 
fixed block and does no read. But the cache file seems to be empty (or does not 
exist; Look into /var/log/fowsr). Please use one of the log options ("-f.." or 
"-c") to do a readout of the weatherstation.

Original comment by Josch600 on 23 Sep 2013 at 8:09

GoogleCodeExporter commented 9 years ago
Hello,

tested now.

# ./fowsr -v3c -fw -c
2013-09-25 08:58:33 FOWSR V2.0.130910 started Cmd: ./fowsr -v3c -fw -c
usb_set_debug: Setting debugging level to 4 (on)
usb_os_find_busses: Found 001
usb_os_find_devices: Found 013 on 001
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Couldn't open /dev/bus/usb/001/012
usb_os_find_devices: Couldn't open /dev/bus/usb/001/011
usb_os_find_devices: Couldn't open /dev/bus/usb/001/010
usb_os_find_devices: Couldn't open /dev/bus/usb/001/009
usb_os_find_devices: Couldn't open /dev/bus/usb/001/008
usb_os_find_devices: Couldn't open /dev/bus/usb/001/007
usb_os_find_devices: Couldn't open /dev/bus/usb/001/006
usb_os_find_devices: Couldn't open /dev/bus/usb/001/005
usb_os_find_devices: Couldn't open /dev/bus/usb/001/004
usb_os_find_devices: Found 003 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
USB error: could not get bound driver: No data available
usb_get_driver_np returned -61
last cached record 1970-01-01 01:00:00
0000(+10): 00 -> 2C
0000(+11): 00 -> EA
0000(+12): 00 -> 82
0000(+13): 00 -> BE
0000(+18): 00 -> 02
0000(+1C): 00 -> 08
0000(+1D): 00 -> EB
0000(+1E): 00 -> 82
0000(+1F): 00 -> BE
0000(+20): 00 -> 55
0000(+21): 00 -> AA
0000(+22): 00 -> 38
0000(+23): 00 -> E1
0000(+25): 00 -> 58
0000(+26): 00 -> 5C
0000(+28): 00 -> 68
0000(+29): 00 -> 65
0000(+2A): 00 -> 64
0000(+2B): 00 -> 20
0000(+2C): 00 -> 72
0000(+2D): 00 -> 65
0000(+2E): 00 -> 63
0000(+2F): 00 -> 6F
0000(+30): 00 -> 72
0000(+31): 00 -> 64
0000(+32): 00 -> 20
0000(+33): 00 -> 31
0000(+34): 00 -> 39
0000(+35): 00 -> 37
0000(+36): 00 -> 30
0000(+37): 00 -> 2D
0000(+38): 00 -> 30
0000(+39): 00 -> 31
0000(+3A): 00 -> 2D
0000(+3B): 00 -> 30
0000(+3C): 00 -> 31
0000(+3D): 00 -> 20
0000(+3E): 00 -> 30
0000(+3F): 00 -> 31
0000(+40): 00 -> 79
0000(+41): 00 -> 25
0000(+42): 00 -> 0A
0000(+43): 00 -> 11
0000(+45): 00 -> 04
0000(+46): 00 -> 0B
0000(+50): 00 -> 01
0000(+54): 00 -> 6C
0000(+55): 00 -> 52
0000(+56): 00 -> 2E
0000(+57): 00 -> 40
0000(+58): 00 -> 02
0000(+5D): 00 -> 20
0000(+5E): 00 -> 2E
0000(+5F): 00 -> 40
0000(+60): 00 -> A1
0000(+62): 00 -> 40
0000(+63): 00 -> 20
0000(+64): 00 -> A1
0000(+67): 00 -> 20
0000(+68): 00 -> D8
0000(+69): 00 -> D4
0000(+6A): 00 -> 8B
0000(+70): 00 -> D8
0000(+71): 00 -> D4
0000(+72): 00 -> 8B
0000(+74): 00 -> D8
0000(+75): 00 -> EA
0000(+76): 00 -> 82
0000(+77): 00 -> BE
0000(+78): 00 -> 58
0000(+79): 00 -> 32
0000(+7A): 00 -> 2E
0000(+7B): 00 -> 40
0000(+7C): 00 -> 90
0000(+7D): 00 -> E4
0000(+7E): 00 -> 2C
0000(+7F): 00 -> 40
0000(+80): 00 -> A1
0000(+82): 00 -> 60
0000(+83): 00 -> 20
0000(+84): 00 -> A1
0000(+87): 00 -> 20
0000(+8D): 00 -> 20
0000(+8E): 00 -> 2E
0000(+8F): 00 -> 40
0000(+90): 00 -> F0
0000(+91): 00 -> EA
0000(+92): 00 -> 82
0000(+93): 00 -> BE
0000(+94): 00 -> 90
0000(+95): 00 -> 24
0000(+96): 00 -> 2E
0000(+97): 00 -> 40
0000(+98): 00 -> F4
0000(+99): 00 -> EA
0000(+9A): 00 -> 82
0000(+9B): 00 -> BE
0000(+9C): 00 -> 18
0000(+A0): 00 -> BB
0000(+A2): 00 -> 57
0000(+A3): 00 -> 03
0000(+A4): 00 -> 89
0000(+A5): 00 -> 04
0000(+A6): 00 -> D9
0000(+A7): 00 -> 05
0000(+A8): 00 -> 31
0000(+A9): 00 -> 39
0000(+AA): 00 -> 37
0000(+AB): 00 -> 30
0000(+AC): 00 -> 90
0000(+AD): 00 -> 24
0000(+AE): 00 -> 2E
0000(+AF): 00 -> 40
0000(+B0): 00 -> 08
0000(+B4): 00 -> 14
0000(+B5): 00 -> EB
0000(+B6): 00 -> 82
0000(+B7): 00 -> BE
0000(+B8): 00 -> 20
0000(+B9): 00 -> 8F
0000(+C0): 00 -> A1
0000(+C2): 00 -> A0
0000(+C3): 00 -> 20
0000(+C4): 00 -> A1
0000(+C7): 00 -> 20
0000(+C9): 00 -> C0
0000(+CA): 00 -> 02
0000(+CB): 00 -> 40
0000(+CC): 00 -> 4C
0000(+CD): 00 -> EB
0000(+CE): 00 -> 82
0000(+CF): 00 -> BE
0000(+D0): 00 -> 04
0000(+D1): 00 -> 97
0000(+D2): 00 -> 24
0000(+D3): 00 -> 40
0000(+D4): 00 -> EF
0000(+D5): 00 -> EA
0000(+D6): 00 -> 82
0000(+D7): 00 -> BE
0000(+D8): 00 -> C0
0000(+D9): 00 -> 24
0000(+DA): 00 -> 2E
0000(+DB): 00 -> 40
0000(+DC): 00 -> 6C
0000(+DD): 00 -> 52
0000(+DE): 00 -> 2E
0000(+DF): 00 -> 40
0000(+E0): 00 -> A1
0000(+E2): 00 -> C0
0000(+E3): 00 -> 20
0000(+E4): 00 -> A1
0000(+E7): 00 -> 20
0000(+E8): 00 -> F0
0000(+E9): 00 -> 7A
0000(+EA): 00 -> 24
0000(+EB): 00 -> 40
0000(+EC): 00 -> C0
0000(+ED): 00 -> 24
0000(+EE): 00 -> 2E
0000(+EF): 00 -> 40
0000(+F0): 00 -> 4C
0000(+F1): 00 -> EB
0000(+F2): 00 -> 82
0000(+F3): 00 -> BE
0000(+F4): 00 -> D8
0000(+F5): 00 -> 9B
0000(+F8): 00 -> 10
0000(+F9): 00 -> C7
0000(+FC): 00 -> 99
0000(+FD): 00 -> 89
0000(+FE): 00 -> 42
0000(+FF): 00 -> 52
Fixed block is not valid.

A test with a Python Script found in Internet (from wfrog) is working properly:
# ./TestWeatherStation.py 
0000 55 aa 38 e1 00 58 5c 00 79 25 0a 11 00 04 0b 00 1e 20 02 20 09 00 00 00 00 
00 00 e8 00 00 70 0f
0020 95 27 40 25 00 00 00 00 00 00 00 13 09 25 08 59 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 00 b4 00 00 68 01 00 0a 00 f4 01 12 00 
00 00 00 00 00 00 00
0060 00 00 3e 23 63 0a 4e 01 ae 00 9f 01 73 81 9f 01 73 81 cd 00 bb 80 e9 25 2e 
24 0d 28 44 26 69 00
0080 bb 00 57 03 89 04 d9 05 36 09 04 1d 00 12 10 26 22 03 13 08 10 23 31 12 10 
23 22 23 13 06 13 19
00a0 33 13 08 06 23 27 13 01 19 06 59 13 08 03 15 47 13 01 06 04 49 13 08 03 15 
47 13 01 06 04 49 13
00c0 07 28 12 53 12 12 13 06 59 13 01 03 08 17 12 10 27 16 54 13 09 22 08 38 12 
10 27 16 54 13 08 04
00e0 19 40 13 08 04 19 38 13 05 24 07 27 13 05 24 20 53 13 05 24 16 43 13 06 04 
01 16 13 08 21 07 31

So my 1080 is working properly.

Original comment by Michael....@gmail.com on 25 Sep 2013 at 7:00