AN158 reading error

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
Mirar
Posts: 113
Joined: 19 Oct 2014 16:54
Location: Stockholm

AN158 reading error

Post by Mirar »

I keep getting this in the log:

Code: Select all

[2014-10-22 14:22:04.464] SENDING (cb 0x5f): ( 01 0A 00 13 06 03 32 01 00 25 5F AA )
[2014-10-22 14:22:04.474] RECEIVED ACK
[2014-10-22 14:22:04.485] RECEIVED: ( 01 04 01 13 01 E8 )
[2014-10-22 14:22:04.485] SENT ACK
[2014-10-22 14:22:04.485] Delivered to Z-Wave stack
[2014-10-22 14:22:04.496] RECEIVED: ( 01 05 00 13 5F 00 B6 )
[2014-10-22 14:22:04.496] SENT ACK
[2014-10-22 14:22:04.496] Job 0x13 (Meter get (v2)): Delivered
[2014-10-22 14:22:04.496] SETDATA devices.6.data.lastPacketInfo.delivered = True
[2014-10-22 14:22:04.496] SETDATA devices.6.data.lastPacketInfo.packetLength = 6 (0x00000006)
[2014-10-22 14:22:04.496] SETDATA devices.6.data.lastPacketInfo.deliveryTime = 10 (0x0000000a)
[2014-10-22 14:22:04.497] SETDATA devices.6.data.lastPacketInfo = **********
[2014-10-22 14:22:04.497] SendData Response with callback 0x5f received: received by recipient
[2014-10-22 14:22:04.497] SETDATA devices.6.data.lastSend = 20741563 (0x013c7dbb)
[2014-10-22 14:22:04.497] Job 0x13 (Meter get (v2)): success
[2014-10-22 14:22:04.497] Removing job: Meter get (v2)
[2014-10-22 14:22:04.508] RECEIVED: ( 01 14 00 04 00 06 0E 32 02 21 24 00 00 00 0E 00 00 00 00 00 00 DC )
[2014-10-22 14:22:04.508] SENT ACK
[2014-10-22 14:22:04.508] SETDATA devices.6.data.lastReceived = 0 (0x00000000)
[2014-10-22 14:22:04.509] SETDATA devices.6.instances.0.commandClasses.50.data.0.val = 1.400000

Code: Select all

[2014-10-22 14:22:04.509] Error returned from zway_data_set_integer(zway, zassert(_zway_find_data(scale, "delta")), data[4+size] * 0xff + data[5+size]): Bad arguments (-1)
[2014-10-22 14:22:04.509] Error returned from zway_data_set_integer(zway, zassert(_zway_find_data(scale, "ratetype")), rt): Bad arguments (-1)
[2014-10-22 14:22:04.509] Error returned from zway_data_set_float(zway, zassert(_zway_find_data(scale, "previous")), (float)v / powf(10, x)): Bad arguments (-1)
[2014-10-22 14:22:04.509] SETDATA devices.6.instances.0.commandClasses.50.data.0 = Empty
Can anyone help me debug/fix the errors?

(edit: broke up the code section to make the error part more easily seen)
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: AN158 reading error

Post by pofs »

You might need to re-interview your device.

Seems like Meter was detected like version 1, but it sends v2 reports.
If that doesn't help, we'll consider adding some code to automatically upgrade Meter to v2 when v2 packet is received.
Mirar
Posts: 113
Joined: 19 Oct 2014 16:54
Location: Stockholm

Re: AN158 reading error

Post by Mirar »

All my AN158 have real problems finishing the interview. This one finished, but obviously not correct...

Seems like the AN158 can be used to test code to re-send interview questions until it's satisfied... but since 2.0.0 (at least) they work a lot better, at least it's possible to finish interview with some coercion.
Post Reply