Firmware V2.3.5 - Background Noise Level error

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
CorC
Posts: 2
Joined: 10 Aug 2017 10:34

Firmware V2.3.5 - Background Noise Level error

Post by CorC » 10 Aug 2017 11:05

Hi Guys,

I've updated to the latest 2.3.5 firmware, and updated the razberry firmware itself to the latest available 5.22 as well.

This resulted in a new tab showing up in the expert-ui "Analytics".

However the added functionality there isn't very stable yet, I've managed to crash the z-wave chip repeatably by going to the "Background Noise" tab, the only way to recover is by completely powering down the raspberrypi. A reboot won't cut it.

After recovering, everything is working fine, as long as I don't mess with the "Analytics" tab. Exploring my log file shows an error related to the Background Noise function.

I'm wondering if anyone can point me in the right direction on how to resolve this, a number of screenshots showing the versions I'm running:
Screen Shot 2017-08-10 at 09.41.16.png
Hardware & Firmware
Screen Shot 2017-08-10 at 09.41.16.png (51.02 KiB) Viewed 4305 times
Screen Shot 2017-08-10 at 09.41.29.png
Software
Screen Shot 2017-08-10 at 09.41.29.png (55.45 KiB) Viewed 4305 times
Screen Shot 2017-08-10 at 09.42.03.png
Functions
Screen Shot 2017-08-10 at 09.42.03.png (505.26 KiB) Viewed 4305 times
The error message showing up in the z-way-server.log file

Error

Code: Select all

[2017-08-10 09:26:46.937] [I] [zway] Adding job: Get background noise level
[2017-08-10 09:26:46.945] [D] [zway] SENDING: ( 01 03 00 3B C7 )
[2017-08-10 09:26:46.947] [D] [zway] RECEIVED ACK
[2017-08-10 09:26:46.947] [D] [zway] RECEIVED: ( 01 05 01 3B A2 A5 C7 )
[2017-08-10 09:26:46.948] [D] [zway] SENT ACK
[2017-08-10 09:26:46.948] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel1 = 162 (0x000000a2)
[2017-08-10 09:26:46.948] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel2 = 165 (0x000000a5)
[2017-08-10 09:26:46.949] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel3 = 127 (0x0000007f)
[2017-08-10 09:26:46.949] [I] [zway] Job 0x3b (Get background noise level): RSSI Ch#1: -91 dBm, Ch#2: -91 dBm, Ch#3: invalid
[2017-08-10 09:26:46.949] [D] [zway] Job 0x3b (Get background noise level): success
[2017-08-10 09:26:46.950] [I] [zway] Removing job: Get background noise level
[2017-08-10 09:26:46.974] [E] [core] Callback execution error: TypeError: Cannot read property 'push' of null
    at automation/modules/ZWave/index.js:463:10
    at Function.<anonymous> (automation/modules/ZWave/index.js:4962:3)
Specific function in index.js where the error appears:

Code: Select all

        // check if controller supports background rssi
        if (this.zway.controller.data.capabilities.value.indexOf(59) > -1) {
                // set timer that will request RSSI stats every 30 s
                this.rssiTimer = setInterval(function() {
                        try {
                                self.updateRSSIData(function(newValue) {
                                        var data = self.loadObject("rssidata.json");
	                                data.push(newValue);

                                        // remove values older than 24h
                                        if (data.length > 1440) {
                                                var lastDay = now - 86400;
                                                data = _.filter(data, function(entry){
                                                        return entry.time > lastDay;
                                                });
                                        }
                                        self.saveObject("rssidata.json", data);
                                });
                        } catch (e) {
                                console.log('Cannot fetch background RSSI. Error:', e.message);
                        }
                }, 1000*30);
        }

diemue
Posts: 27
Joined: 09 Sep 2015 12:40

Re: Firmware V2.3.5 - Background Noise Level error

Post by diemue » 11 Aug 2017 16:10

Hi,
after updating to firmware 05.22 i had also some problems.
Updating to 05.23 solved the problems.
Attachments
firmware.PNG
firmware.PNG (11.61 KiB) Viewed 4275 times

User avatar
PoltoS
Posts: 4989
Joined: 26 Jan 2011 19:36

Re: Firmware V2.3.5 - Background Noise Level error

Post by PoltoS » 11 Aug 2017 22:18

Please suggest from which version have you made the update to 5.22?

Indeed, 5.22 is problematic and we will hide it making direct update to 5.23

CorC
Posts: 2
Joined: 10 Aug 2017 10:34

Re: Firmware V2.3.5 - Background Noise Level error

Post by CorC » 19 Aug 2017 20:29

Hi,

I was originally on firmware "05.07", when I was presented with the update to 5.22.

I've now updated from 5.22 to 5.23, strange thing is, there were 3 fw update options from 5.22. Two of them were 5.22 versions, the other one 5.23.

I've selected 5.23 and the update was successful, after updating to 5.23 the other two options no longer showed up, and according to the web interface I'm running the latest firmware. Just to be sure I did a full power cycle (Actually removing power from the device altogether)

However, the error remains..... Below another snippet from the log and a screenshot showing my razberry running 5.23.

Code: Select all

[2017-08-19 19:27:26.239] [I] [zway] Adding job: Get background noise level
[2017-08-19 19:27:26.248] [D] [zway] SENDING: ( 01 03 00 3B C7 )
[2017-08-19 19:27:26.249] [D] [zway] RECEIVED ACK
[2017-08-19 19:27:26.250] [D] [zway] RECEIVED: ( 01 05 01 3B A2 7D 1F )
[2017-08-19 19:27:26.251] [D] [zway] SENT ACK
[2017-08-19 19:27:26.251] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel1 = 162 (0x000000a2)
[2017-08-19 19:27:26.251] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel2 = 125 (0x0000007d)
[2017-08-19 19:27:26.251] [D] [zway] SETDATA controller.data.statistics.backgroundRSSI.channel3 = 127 (0x0000007f)
[2017-08-19 19:27:26.252] [I] [zway] Job 0x3b (Get background noise level): RSSI Ch#1: -94 dBm, Ch#2: too low, Ch#3: invalid
[2017-08-19 19:27:26.252] [D] [zway] Job 0x3b (Get background noise level): success
[2017-08-19 19:27:26.252] [I] [zway] Removing job: Get background noise level
[2017-08-19 19:27:26.265] [E] [core] Callback execution error: TypeError: Cannot read property 'push' of null
    at automation/modules/ZWave/index.js:463:10
    at Function.<anonymous> (automation/modules/ZWave/index.js:4962:3)
Screen Shot 2017-08-19 at 16.45.35.png
Screen Shot 2017-08-19 at 16.45.35.png (51.78 KiB) Viewed 4184 times
Please advise.

(if other parts of the log are relevant, please let me know.)


paaland
Posts: 16
Joined: 08 Jun 2017 09:24
Location: Norway

Re: Firmware V2.3.5 - Background Noise Level error

Post by paaland » 24 Aug 2017 13:29

Where did you find 5.23? Mine is at 5.22 and claims that the latest.

Post Reply