HOWTO: ConsoleWD for Raspberry Pi Setup Instructions - Old version

that looks like the data is out of sync
it might come back into sync?
re the 64 bit compile, I did get that to work now on my raspberry 3 ( there was another thread about that) :wink:

Brian,

i did restart the raspberry but all the time same issue, barometer is crazy reading and nothing in here

pi@raspberrypi ~/WX $ ls -la clientraw.txt
-rwxrwxrwx 1 pi pi 0 Jul 7 21:11 clientraw.txt
pi@raspberrypi ~/WX $

I can not restart the IROX as it is in remote, also I can not rewrite the SD card image to an old raspbian.
I am pretty sure the raspbian upgrade killed it.

Is there a way to make it work with the lastest raspbian? Are you aware of that issue that if someone upgrade the OS, it stops working?

Can you please make a test or what should i try to do to give you some debug info? Many thanks

w interface driver hub
[ 0.601025] usbcore: registered new device driver usb
[ 0.607036] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-03-15 14:47
[ 0.642715] Switched to clocksource stc
[ 0.696270] FS-Cache: Loaded
[ 0.699593] CacheFiles: Loaded
[ 0.718003] NET: Registered protocol family 2
[ 0.723933] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.731124] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.737756] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.744400] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.750299] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.757007] NET: Registered protocol family 1
[ 0.761972] RPC: Registered named UNIX socket transport module.
[ 0.768023] RPC: Registered udp transport module.
[ 0.772797] RPC: Registered tcp transport module.
[ 0.777531] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.785245] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[ 0.794385] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.816731] VFS: Disk quotas dquot_6.6.0
[ 0.821103] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.830761] FS-Cache: Netfs ‘nfs’ registered for caching
[ 0.837533] NFS: Registering the id_resolver key type
[ 0.842834] Key type id_resolver registered
[ 0.847058] Key type id_legacy registered
[ 0.854890] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.862881] io scheduler noop registered
[ 0.866882] io scheduler deadline registered (default)
[ 0.872462] io scheduler cfq registered
[ 0.878861] BCM2708FB: allocated DMA memory 5b800000
[ 0.884034] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 0.894582] Console: switching to colour frame buffer device 82x26
[ 0.905847] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[ 0.914741] KGDB: Registered I/O driver kgdboc
[ 0.921898] vc-cma: Videocore CMA driver
[ 0.927644] vc-cma: vc_cma_base = 0x00000000
[ 0.934043] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 0.941024] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 0.948308] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 0.978841] brd: module loaded
[ 0.992655] loop: module loaded
[ 0.998545] vchiq: vchiq_init_state: slot_zero = 0xdb880000, is_master = 0
[ 1.009087] Loading iSCSI transport class v2.0-870.
[ 1.017230] usbcore: registered new interface driver smsc95xx
[ 1.024835] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.232417] Core Release: 2.80a
[ 1.237195] Setting default values for core params
[ 1.243578] Finished setting default values for core params
[ 1.450862] Using Buffer DMA mode
[ 1.455798] Periodic Transfer Interrupt Enhancement - disabled
[ 1.463266] Multiprocessor Interrupt Enhancement - disabled
[ 1.470415] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.476408] Dedicated Tx FIFOs mode
[ 1.481861] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[ 1.494990] FIQ FSM acceleration enabled for :
[ 1.494990] Non-periodic Split Transactions
[ 1.494990] Periodic Split Transactions
[ 1.494990] High-Speed Isochronous Endpoints
[ 1.518172] dwc_otg: Microframe scheduler enabled
[ 1.518301] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc03dd8e0
[ 1.525881] WARN::hcd_init_fiq:413: FIQ ASM at 0xc03ddbbc length 36
[ 1.533793] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc896000
[ 1.541522] dwc_otg 20980000.usb: DWC OTG Controller
[ 1.548186] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 1.557221] dwc_otg 20980000.usb: irq 32, io mem 0x00000000
[ 1.564464] Init: Port Power? op_state=1
[ 1.569935] Init: Power Port (0)
[ 1.575063] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.583520] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.592330] usb usb1: Product: DWC OTG Controller
[ 1.598630] usb usb1: Manufacturer: Linux 4.1.19+ dwc_otg_hcd
[ 1.605970] usb usb1: SerialNumber: 20980000.usb
[ 1.613264] hub 1-0:1.0: USB hub found
[ 1.618704] hub 1-0:1.0: 1 port detected
[ 1.624803] dwc_otg: FIQ enabled
[ 1.624826] dwc_otg: NAK holdoff enabled
[ 1.624841] dwc_otg: FIQ split-transaction FSM enabled
[ 1.624906] Module dwc_common_port init
[ 1.625450] usbcore: registered new interface driver usb-storage
[ 1.633519] mousedev: PS/2 mouse device common for all mice
[ 1.641688] bcm2835-cpufreq: min=700000 max=700000
[ 1.648487] sdhci: Secure Digital Host Controller Interface driver
[ 1.656293] sdhci: Copyright(c) Pierre Ossman
[ 1.662602] sdhost: log_buf @ db813000 (5b813000)
[ 1.742801] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 1.750460] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.778682] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.786646] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.794028] usbcore: registered new interface driver usbhid
[ 1.801192] usbhid: USB HID core driver
[ 1.811147] Initializing XFRM netlink socket
[ 1.817471] NET: Registered protocol family 17
[ 1.823783] Indeed it is in host mode hprt0 = 00021501
[ 1.891814] Key type dns_resolver registered
[ 1.904446] registered taskstats version 1
[ 1.910544] vc-sm: Videocore shared memory driver
[ 1.917154] [vc_sm_connected_init]: start
[ 1.924264] [vc_sm_connected_init]: end - returning 0
[ 1.933452] Waiting for root device /dev/mmcblk0p2…
[ 1.950479] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.963712] mmc0: new high speed SDHC card at address b368
[ 1.971669] mmcblk0: mmc0:b368 AF SD 15.1 GiB
[ 1.979775] mmcblk0: p1 p2
[ 2.052833] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.062013] Indeed it is in host mode hprt0 = 00001101
[ 2.131072] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.142703] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.160791] devtmpfs: mounted
[ 2.166763] Freeing unused kernel memory: 348K (c0771000 - c07c8000)
[ 2.283300] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 2.292043] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.303813] hub 1-1:1.0: USB hub found
[ 2.310822] hub 1-1:1.0: 3 ports detected
[ 2.592943] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 2.723347] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 2.732247] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.755540] smsc95xx v1.0.4
[ 2.839184] smsc95xx 1-1.1:1.0 eth0: register ‘smsc95xx’ at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:5c:4d:18
[ 2.952891] usb 1-1.3: new low-speed USB device number 4 using dwc_otg
[ 3.088886] usb 1-1.3: New USB device found, idVendor=1130, idProduct=6801
[ 3.097930] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 3.107233] usb 1-1.3: Product:
[ 3.129487] hid-generic 0003:1130:6801.0001: hiddev0,hidraw0: USB HID v1.10 Device [ ] on usb-20980000.usb-1.3/input0
[ 3.836950] udevd[156]: starting version 175
[ 6.081529] bcm2835-rng 20104000.rng: hwrng registered
[ 8.102840] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 10.575039] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 10.966272] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 17.304855] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 19.648512] random: dd urandom read with 108 bits of entropy available
[ 20.455918] smsc95xx 1-1.1:1.0 eth0: hardware isn’t capable of remote wakeup
[ 21.956644] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x51E1
[ 22.514210] random: nonblocking pool is initialized
[ 30.605222] Adding 102396k swap on /var/swap. Priority:-1 extents:2 across:507900k SSFS
[ 40.444090] uart-pl011 20201000.uart: no DMA platform data
[ 44.463466] fuse init (API version 7.23)
[ 130.526073] usb 1-1.3: usbfs: process 3112 (consolewd) did not claim interface 0 before use
[ 130.526556] usb 1-1.3: usbfs: process 3112 (consolewd) did not claim interface 0 before use
[ 130.526949] usb 1-1.3: usbfs: process 3112 (consolewd) did not claim interface 0 before use
root@raspberrypi:~#

root@raspberrypi:~# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 1130:6801 Tenx Technology, Inc.
root@raspberrypi:~#

I could add more debug info
e.g like the raw data that has arrived
and you have tried restarting consolewd a few times?

how long had it being running with no problems?

Hi Brian,

first many thanks for your help. It has been running like this for 2 years, that was just my huge mistake that I wanted to updated the raspbian OS on it 2 days ago and since then it behaves like that. There is no rawdate in the txt files, also if i start it i just see the high, unreal barometric measurement, and nothing else.

I restarted the raspy like 20 times, and even if i wait like 8 hours ( a night) same issue.

I would like to use this consolewd app if possible with the new/ latest raspbian. Worst case I can clone the SD card of my other weather raspy that have not been updated, but it would be really great if consolewd would run on the latest OS.

How can i give you more logs or debug info ?

there must have been a change to the usb/hid library
great that it ran for 2 years (was that non stop, or?)
re more info, I would need to get a new version up for you…with more raw data…

yes it run 2 years non-stop, i have another one here too: https://www.wunderground.com/personal-weather-station/dashboard?ID=ICANTONO10

exactly same raspberry pi 2 and irox pro 2.

Luckily i did not upgrade this PI.

The one I upgraded is located in a remote place, so I can not visit it easily, so I am hoping you will find a solution.

I just did the libhid and libusb compile on this upgraded raspbian OS but exactly the same behaviour. No data apart of that unreal barometer reading:

~/consolewdfiles $ sudo ./consolewd
Station type raw=59<
Station type =59
Weather station type is an Irox
Davis com method d
OWW file location= ←
program location= /home/pi/consolewdfiles/<-
Davis VP IP data logger port= 22222<
Davis VP IP data logger IP= 192.168.2.3<-
Station name =My station
Daily rain startup= 0.0
Monthly rain startup= 0.0
wunderground username =
wunderground password =
wunderground utc =-5
Dir offset= 0
Barooffset= 0.0
Comport is USB to serial
Davis com method d
Yes Revb Davis VP
Davis rain gauge .01 inch
mysql username =
mysql server =
mysql databasename =
mysql tablename =
Will do mysql metric
mysql time interval = 300
cwop station id =
cwop call sign = -1 // -1 is default (you do not have a Ham call si
cwop latitude=
cwop longitude=
FTP server =
FTP username =
FTP port = 21
FTPremote dir =
Will do ftp passive
remote file =
FTP time interval = 60
wu =Y
Will save logfile
logfile metric
Custom file name = wx.html
Custom file name 2=
Custom file name 3=
Custom file name 4=
Custom file name 5=
Tag units in celsius
wind units = kts
baro metric= Y
rain metric= Y
Will run cron files
Custom log out = customlogout.txt
temp offset raw = <
wmr300 channel =1
utc hour=18
local hour=20
Weather Display vers WD_console_12.3
If use this program,then please consider sending a PayPal donation to [email protected] (Brian Hamilton)
to help with costs, and support, thanks!
www.weather-display.com
Irox opened OK
irox write 5
irox read -1
irox read -1
irox read 34
Raw irox baro 4095.9
irox read -1
irox read -1

I have a Raspberry pi 3 here now…64 bit…
and so that probably has the updated OS
I will test with my Irox station…

thank you, lets see.

I have tested consolewd 64 bit version on my raspberry pi, 3 which is a recent version
4.1.18
and it works with my Irox station OK
I wonder if the problem you have is related to the raw barometer being out of range

I could try updating my OS to 4.1.19
but have you tried re compiling libhid , as per the original setup?

I am running: root@raspberrypi:~# uname -a
Linux raspberrypi 4.1.19+ #858 Tue Mar 15 15:52:03 GMT 2016 armv6l GNU/Linux

and its an older PI 2 only.

I recompiled both libhid and libusb following the instruction shown on the first page of this post. It did not help.

Back in 2 years ago, I did not compile the libhid and libusb, as I recall, you shared these and i just downloaded from your site that time, but never compiled then. i just tried to recompile only now.

I could try updating my OS…how do I do that?

ps, this should really be in its own thread?

as root, just run
apt-get update
apt-get upgrade

done that…
it went through the process
I even rebooted
but its still 4.1.18
and consolewd still works
maybe the 64 bit OS has not been updated?
I could try updating my raspberry pi 1

yes, it can be that the 64 bit variant is running a bit behind or like with some other linux distros, maybe some application is preventing you to upgrade it.
OK lets see with the older one.

I got my Raspberry pi 1 updated to 4.1.19
March 15th
consolewd is still working OK for my Irox station

(e.g the barometer data returned is OK)
the data received number you are getting is OK… (34)
but what I can do is add in to show the raw data received

it could be that the barometer reading is out of range?

let me know what the raw data shows for this test version
http://www.weather-display.com/downloadfiles/consolewdiroxtest.zip

Hi Brian,

thanks for the troubleshooting, with your test version i see these:

www.weather-display.com
Irox opened OK
irox write 5
irox read -1
irox read -1
irox read 34
5A 1
02 2
83 3
49 4
95 5
C2 6
50 7
0A 8
00 9
0A 10
0A 11
00 12
0A 13
0A 14
00 15
0A 16
0A 17
00 18
0A 19
FF 20
FF 21
FF 22
FF 23
05 24
FF 25
FF 26
FF 27
FF 28
FF 29
FF 30
E0 31
41 32
0B 33
3A 34
Raw irox baro 4095.9
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox write 5
irox read 34
5A 1
02 2
83 3
49 4
95 5
C2 6
50 7
0A 8
00 9
0A 10
0A 11
00 12
0A 13
0A 14
00 15
0A 16
0A 17
00 18
0A 19
FF 20
FF 21
FF 22
FF 23
05 24
FF 25
FF 26
FF 27
FF 28
FF 29
FF 30
E0 31
41 32
0B 33
3A 34
Raw irox baro 4095.9
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox write 5
irox read 34
5A 1
02 2
83 3
49 4
95 5
C2 6
50 7
0A 8
00 9
0A 10
0A 11
00 12
0A 13
0A 14
00 15
0A 16
0A 17
00 18
0A 19
FF 20
FF 21
FF 22
FF 23
05 24
FF 25
FF 26
FF 27
FF 28
FF 29
FF 30
E0 31
41 32
0B 33
3A 34
Raw irox baro 4095.9
^Cpi@raspberrypi ~/consolewdfiles $

any idea why i dont have anything in this file?

pi@raspberrypi ~/consolewdfiles $ pwd
/home/pi/consolewdfiles
pi@raspberrypi ~/consolewdfiles $ ls -la clientraw.txt
-rwxrwxrwx 1 pi pi 0 Jul 9 09:55 clientraw.txt
pi@raspberrypi ~/consolewdfiles $

please note that unit dont have the water / wind sensor unit connected(battery died some month ago). Only the outside temp sensor unit is connected via wireless link.

OK, the data is synced OK, the 5A at the start is what is to be expected
the barometer data is this data:
FF 22
FF 23

which are both NULL 255

which points to a hardware issue with the barometer (its basicly out of range/not working or similar)

and because of that , the program is ignoring all the other data
(I could make this special version carry on so you at least get outdoor/indoor temperature?

download again, …same URL…
so that it will carry on and ignore that NULL barometer values

Brian, you are a BIG BIG Magican !! :smiley:

irox write 5
irox read 34
Raw irox baro 4095.9 FF FF
irox Data OK
Current data : Temperature= 30.1 Windspeed =0.0 Gustspeed =0.0 Direction =0 Humidity=52 Barometer=1013.0 Daily Rain=0.0
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox read -1
irox write 5
irox read 34
Raw irox baro 4095.9 FF FF
irox Data OK
Current data : Temperature= 30.1 Windspeed =0.0 Gustspeed =0.0 Direction =0 Humidity=52 Barometer=1013.0 Daily Rain=0.0
irox read -1
irox read -1

and now I have data:

pi@raspberrypi ~/consolewdfiles $ cat clientraw.txt
12345 0.0 0.0 0 30.1 52 1013.0 0.0 0.0 0.0 0.000 0.000 30.8 50 0.0 0 0.0 0 0 0.0 -1.0 -1.0 -1.0 -1.0 166.5 0.0 10 10 10 13 04 49 My_station-13:04:49 0 0 9 7 0 0 0 0 0 0 0 30.1 37.0 30.1 30.1 0 Dry 0.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.0 19.2 4506.6 9/7/2016 37.0 37.0 30.1 30.1 0.0 0 0 0 0 0 0 0 0 0 0 13.0 13.0 13.0 13.0 13.0 13.0 13.0 13.0 13.0 23.3 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 31.5 31.5 31.5 0.0 0 — — 0 0 0 0.0 0.0 10 165 0 0 0 0.0 30.8 30.8 33.0 1013.0 1013.0 0 00:00:00 00:00:00 33.0 33.0 19.2 19.2 0 2016 2016 1 1 -1 0 0 0 0 0 0 0 0 0 0 0.0 0.0 0.0 22.9 0.0 0.0 0.0 52 52 !!CWD_console_12.3!!
pi@raspberrypi ~/consolewdfiles $

OK, I thank you million times, and now we all know that if some of the data is missing because of disconnected units or faulty sensors we have such issue. Actually now I will use this test variant, as I really like this way, if i lose connection to some of the wireless sensors, I will still have data to monitor.

Great job Sir!