Feature #877
Dump all-link database
100%
Description
Page 77 of the Modem Developer's Guide points out how to dump the all-link database records using 0x69 and 0x6A records. This may be necessary to enable the app to make sense out of commands like leak sensor reports.
Subtasks
History
#2 Updated by Luke Murphey about 10 years ago
To accomplish this, support would need to exist for 0x69, 0x6A and 0x57 commands.
#3 Updated by Luke Murphey about 10 years ago
I'm not sure what the link data section contains. This would need to be determined to make sense out of it.
#4 Updated by Luke Murphey about 10 years ago
From some reason, errors cause this lock acquisition to fail:
self.__commandLock.acquire()
#5 Updated by Luke Murphey about 10 years ago
Adding debugging code, I see this:
2014-10-30 01:34:23,025 DEBUG acquiring lock... 2014-10-30 01:34:23,025 DEBUG got lock 2014-10-30 01:34:23,025 DEBUG releasing lock... 2014-10-30 01:34:23,025 DEBUG lock released 2014-10-30 01:34:23,494 DEBUG Queued 17a3abc6657183970dac91cb2bac2f1a 2014-10-30 01:34:23,526 DEBUG acquiring lock... 2014-10-30 01:34:23,526 DEBUG got lock 2014-10-30 01:34:23,529 DEBUG releasing lock... 2014-10-30 01:34:23,529 DEBUG lock released 2014-10-30 01:34:24,030 DEBUG acquiring lock... 2014-10-30 01:34:24,030 DEBUG got lock 2014-10-30 01:34:24,030 DEBUG releasing lock... 2014-10-30 01:34:24,030 DEBUG lock released 2014-10-30 01:34:25,495 DEBUG Timed out for 17a3abc6657183970dac91cb2bac2f1a - Requeueing (already had 0 retries) 2014-10-30 01:34:27,496 DEBUG Timed out for 17a3abc6657183970dac91cb2bac2f1a - Requeueing (already had 1 retries) 2014-10-30 01:34:27,496 DEBUG Interesting. timed out for 17a3abc6657183970dac91cb2bac2f1a, but there is no pending command details
#6 Updated by Luke Murphey about 10 years ago
The problem is that the run() loop was throwing an exception. I need to detect this and re-initialize the connection.
#7 Updated by Luke Murphey about 10 years ago
HouseLinc seems to use the 0x75 command to dump the link tables. It appears that the other commands don't dump all of the information.
#8 Updated by Luke Murphey about 10 years ago
- % Done changed from 0 to 20
#9 Updated by Luke Murphey about 10 years ago
- Target version set to 0.5
- % Done changed from 20 to 50
#10 Updated by Luke Murphey about 10 years ago
Upon completion, a NAK will be returned alone in the 0x6a response:
[TX] - 02 6A [RX] - 02 6A 06 02 57 A2 01 04 F7 EE 01 00 22 [TX] - 02 6A [RX] - 02 6A 15
#11 Updated by Luke Murphey about 10 years ago
- Status changed from New to Closed