Fixed block is not valid

37 views
Skip to first unread message

matt barclay

unread,
Mar 24, 2015, 5:23:44 PM3/24/15
to fo...@googlegroups.com

I've been running fowsr using a WH1080 for a little over a year.  Suddenly, I'm getting fixed block is not valid.  Easy Weather can read the weather console without issue.  Any idea what might be going on here?  Almost looks like fowsr is trying to read from the wrong USB device...

$ lsusb
Bus 001 Device 003: ID 07d1:3303 D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Here is a debug output using the latest version of fowsr.  

2015-03-24 14:01:06 FOWSR V2.0.150114 started Cmd: ./fowsr -v3c -fw
usb_set_debug: Setting debugging level to 4 (on)
usb_os_find_busses: Found 005
usb_os_find_busses: Found 004
usb_os_find_busses: Found 003
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 005
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 005
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 001 on 004
usb_os_find_devices: Found 001 on 003
usb_os_find_devices: Found 002 on 002
skipped 1 class/vendor specific interface descriptors
usb_os_find_devices: Found 001 on 002
error obtaining child information: Inappropriate ioctl for device
usb_os_find_devices: Found 003 on 001
usb_os_find_devices: Found 001 on 001
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 1969-12-31 16:00:00
0000(+10): 00 -> 1E
0000(+11): 00 -> 47
0000(+12): 00 -> 08
0000(+13): 00 -> 3D
0000(+14): 00 -> 09
0000(+18): 00 -> 88
0000(+1B): 00 -> 01
0000(+1E): 00 -> D0
0000(+1F): 00 -> C8
0000(+20): 00 -> E8
0000(+21): 00 -> 27
0000(+22): 00 -> D4
0000(+23): 00 -> 27
0000(+2B): 00 -> 15
0000(+2C): 00 -> 03
0000(+2D): 00 -> 24
0000(+2E): 00 -> 12
0000(+2F): 00 -> 48
0000(+30): 00 -> 41
0000(+31): 00 -> 23
0000(+32): 00 -> A8
0000(+33): 00 -> 02
0000(+34): 00 -> 40
0000(+35): 00 -> 01
0000(+36): 00 -> 43
0000(+37): 00 -> 2D
0000(+38): 00 -> 5C
0000(+39): 00 -> 03
0000(+3A): 00 -> 8C
0000(+3C): 00 -> A8
0000(+3D): 00 -> 02
0000(+3E): 00 -> 40
0000(+3F): 00 -> 01
0000(+40): 00 -> F4
0000(+41): 00 -> 01
0000(+42): 00 -> 8C
0000(+45): 00 -> 0C
0000(+46): 00 -> 13
0000(+47): 00 -> 0B
0000(+49): 00 -> 0C
0000(+4A): 00 -> 13
0000(+4B): 00 -> 0B
0000(+4D): 00 -> 70
0000(+50): 00 -> DF
0000(+53): 00 -> 04
0000(+55): 00 -> C5
0000(+57): 00 -> 12
0000(+5F): 00 -> 64
0000(+60): 00 -> 04
0000(+61): 00 -> 60
0000(+62): 00 -> 63
0000(+63): 00 -> 23
0000(+64): 00 -> 63
0000(+65): 00 -> 01
0000(+66): 00 -> 2F
0000(+67): 00 -> 01
0000(+68): 00 -> 03
0000(+69): 00 -> 80
0000(+6A): 00 -> 2E
0000(+6B): 00 -> 01
0000(+6C): 00 -> BC
0000(+6D): 00 -> 80
0000(+6E): 00 -> 2E
0000(+6F): 00 -> 01
0000(+70): 00 -> 67
0000(+71): 00 -> 81
0000(+72): 00 -> 1C
0000(+73): 00 -> 01
0000(+74): 00 -> 42
0000(+75): 00 -> 80
0000(+76): 00 -> 85
0000(+77): 00 -> 28
0000(+78): 00 -> 49
0000(+79): 00 -> 26
0000(+7A): 00 -> B4
0000(+7B): 00 -> 28
0000(+7C): 00 -> FA
0000(+7D): 00 -> 25
0000(+7E): 00 -> B3
0000(+7F): 00 -> 01
0000(+80): 00 -> C1
0000(+81): 00 -> 01
0000(+82): 00 -> AE
0000(+84): 00 -> E8
0000(+85): 00 -> 02
0000(+86): 00 -> 80
0000(+87): 00 -> 07
0000(+88): 00 -> 98
0000(+89): 00 -> 07
0000(+8A): 00 -> 80
0000(+8B): 00 -> 0D
0000(+8D): 00 -> 14
0000(+8E): 00 -> 12
0000(+8F): 00 -> 30
0000(+90): 00 -> 10
0000(+91): 00 -> 24
0000(+92): 00 -> 15
0000(+93): 00 -> 01
0000(+94): 00 -> 17
0000(+95): 00 -> 09
0000(+96): 00 -> 21
0000(+97): 00 -> 14
0000(+98): 00 -> 12
0000(+99): 00 -> 02
0000(+9A): 00 -> 05
0000(+9B): 00 -> 20
0000(+9C): 00 -> 15
0000(+9D): 00 -> 03
0000(+9E): 00 -> 06
0000(+9F): 00 -> 06
0000(+A0): 00 -> 56
0000(+A1): 00 -> 14
0000(+A2): 00 -> 01
0000(+A3): 00 -> 01
0000(+A4): 00 -> 12
0000(+A6): 00 -> 14
0000(+A7): 00 -> 12
0000(+A8): 00 -> 30
0000(+A9): 00 -> 08
0000(+AA): 00 -> 23
0000(+AB): 00 -> 14
0000(+AC): 00 -> 01
0000(+AD): 00 -> 01
0000(+AE): 00 -> 12
0000(+B0): 00 -> 15
0000(+B1): 00 -> 03
0000(+B2): 00 -> 06
0000(+B3): 00 -> 06
0000(+B4): 00 -> 56
0000(+B5): 00 -> 14
0000(+B6): 00 -> 01
0000(+B7): 00 -> 01
0000(+B8): 00 -> 12
0000(+BA): 00 -> 15
0000(+BB): 00 -> 03
0000(+BC): 00 -> 06
0000(+BD): 00 -> 06
0000(+BE): 00 -> 56
0000(+BF): 00 -> 14
0000(+C0): 00 -> 01
0000(+C1): 00 -> 01
0000(+C2): 00 -> 12
0000(+C4): 00 -> 14
0000(+C5): 00 -> 01
0000(+C6): 00 -> 01
0000(+C7): 00 -> 12
0000(+C9): 00 -> 14
0000(+CA): 00 -> 12
0000(+CB): 00 -> 29
0000(+CC): 00 -> 22
0000(+CD): 00 -> 40
0000(+CE): 00 -> 14
0000(+CF): 00 -> 12
0000(+D0): 00 -> 11
0000(+D1): 00 -> 18
0000(+D2): 00 -> 04
0000(+D3): 00 -> 14
0000(+D4): 00 -> 12
0000(+D5): 00 -> 29
0000(+D6): 00 -> 22
0000(+D7): 00 -> 40
0000(+D8): 00 -> 14
0000(+D9): 00 -> 12
0000(+DA): 00 -> 11
0000(+DB): 00 -> 18
0000(+DC): 00 -> 04
0000(+DD): 00 -> 15
0000(+DE): 00 -> 03
0000(+DF): 00 -> 06
0000(+E0): 00 -> 06
0000(+E1): 00 -> 56
0000(+E2): 00 -> 15
0000(+E3): 00 -> 03
0000(+E4): 00 -> 06
0000(+E5): 00 -> 06
0000(+E6): 00 -> 56
0000(+E7): 00 -> 15
0000(+E8): 00 -> 02
0000(+E9): 00 -> 07
0000(+EA): 00 -> 16
0000(+EB): 00 -> 31
0000(+EC): 00 -> 14
0000(+ED): 00 -> 12
0000(+EE): 00 -> 10
0000(+EF): 00 -> 23
0000(+F0): 00 -> 42
0000(+F1): 00 -> 14
0000(+F2): 00 -> 12
0000(+F3): 00 -> 12
0000(+F4): 00 -> 09
0000(+F5): 00 -> 12
0000(+F6): 00 -> 14
0000(+F7): 00 -> 12
0000(+F8): 00 -> 12
0000(+F9): 00 -> 11
0000(+FA): 00 -> 43
0000(+FB): 00 -> 15
0000(+FC): 00 -> 03
0000(+FD): 00 -> 24
0000(+FE): 00 -> 12
0000(+FF): 00 -> 29
Fixed block is not valid.


Thanks,
Matt

thomas...@gmail.com

unread,
Mar 24, 2015, 6:39:13 PM3/24/15
to fo...@googlegroups.com
Hello Matt,


Am Dienstag, 24. März 2015 22:23:44 UTC+1 schrieb matt barclay:

I've been running fowsr using a WH1080 for a little over a year.  Suddenly, I'm getting fixed block is not valid.  Easy Weather can read the weather console without issue.  Any idea what might be going on here?  Almost looks like fowsr is trying to read from the wrong USB device...

$ lsusb
Bus 001 Device 003: ID 07d1:3303 D-Link System DWA-131 802.11n Wireless N Nano Adapter(rev.A1) [Realtek RTL8192SU]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 002: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 051d:0002 American Power Conversion Uninterruptible Power Supply
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

I had such an experience when starting using fowsr. The solution was to 
put an USB hub between computer and WH1080.
But I assume you haven't changed anything...

Thomas

matt barclay

unread,
Mar 24, 2015, 7:09:40 PM3/24/15
to fo...@googlegroups.com
Hi Gerry,

I've had that UPS since mid-January, and the weather console was working great until March 17.

The machine is Ubuntu Dekstop 14.04.2 i686.  I have VirtualBox on it with a Windows XP VM.  I can pass the USB Weather Console to the VM and use Easy Weather to communicate with the console, but when I return the USB connection to the Ubuntu host it no longer works.  I tried clearing the console memory with Easy Weather, and doing a hard reset by unplugging the USB and removing the console batteries.

I modified the fowsr.c file so instead of exiting after "fixed block not valid" it just returns the new data flag:

In CWS_read_fixed_block:


        if(((m_buf[0]==0x55) && (m_buf[1]==0xAA))
        || ((m_buf[0]==0xFF) && (m_buf[1]==0xFF)))
                return NewDataFlg;

        MsgPrintf(0, "Fixed block is not valid. 0x%02x 0x%02x\n", m_buf[0], m_buf[1]);

        return NewDataFlg;

        exit(1);


Now my debug output shows:

Fixed block is not valid. 0x15 0x03

But it looks like I'm getting valid data:

$ cat /var/log/fowsr/wunderground.log 
dateutc=2015-03-24+20%3A49%3A00&winddir=315.0&windspeedmph=0.7&windgustmph=2.2&humidity=76.0&tempf=52.7&rainin=0.000&dailyrainin=0.000&baromin=30.16791&dewptf=45.3
dateutc=2015-03-24+21%3A19%3A00&winddir=225.0&windspeedmph=0.7&windgustmph=1.6&humidity=77.0&tempf=53.8&rainin=0.000&dailyrainin=0.000&baromin=30.17381&dewptf=46.7
dateutc=2015-03-24+21%3A49%3A00&winddir=315.0&windspeedmph=3.1&windgustmph=4.5&humidity=67.0&tempf=54.1&rainin=0.000&dailyrainin=0.000&baromin=30.17677&dewptf=43.4
dateutc=2015-03-24+22%3A19%3A00&winddir=45.0&windspeedmph=0.0&windgustmph=0.7&humidity=67.0&tempf=54.5&rainin=0.000&dailyrainin=0.000&baromin=30.16791&dewptf=43.8
dateutc=2015-03-24+22%3A49%3A00&winddir=135.0&windspeedmph=1.6&windgustmph=3.1&humidity=68.0&tempf=55.0&rainin=0.000&dailyrainin=0.000&baromin=30.17381&dewptf=44.7


So I guess that means the console used to report 0x55, 0xAA (or 0xff, 0xff), but now is reporting 0x15, 0x03

Strange.

Matt

Александр Касьянов

unread,
May 6, 2015, 12:47:04 AM5/6/15
to fo...@googlegroups.com
Clear memory of base station (remove battary and insert).
I have same error before.
Found solve in this group.

Best wishes !
Reply all
Reply to author
Forward
0 new messages