Michael
2006-11-28 03:44:43 UTC
I keep getting 'communication error' everytime I try to use thinkfinger, with
the tf-tool testing utility.
I added some code from the old thinkfinger.c file at line 377 of
libthinkfinger.c:
if (!(flags & SILENT)) {
fprintf(stdout, "Write: ");
printhex(ctrldata, len);
fprintf(stdout, "Read: ");
printhex(inbuf, real_len);
}
Doing that gets me:
$ sudo tf-tool/tf-tool
tf-tool: intialization... ok
tf-tool: setting file... ok
tf-tool: setting callback... ok
tf-tool: acquire fingerprint...
Write: 43 69 61 6f 00 60 08 28 05 00 00 00 00 30 01 49 6b
Read: 43 69 61 6f 00 50 07 28 04 00 ea fb 02 12 36 9b 01 00 04 00 08 0f 86 00 00 00 00 00 00 00 0a 00 0a 00 64 00 f4 01 32 00 00 00 00 10 00 00 04 00 02 00 02 00 08 00 93 0f 00 00 64 01 00 00 00 00
tf-tool: TF_STATE_COMM_FAILED (255)
tf-tool: communication error
tf-tool: verifying fingerprint...
Write: 43 69 61 6f 00 50 1d 28 1a 00 00 00 03 02 00 00 00 00 00 00 00 00 00 00 00 00 c0 d4 01 00 20 00 00 00 03 00 4f 47
Read: 43 69 61 6f 00 60 07 28 04 00 52 f7 f0 1f 49 ca 6b 00 04 00 08 0f 86 00 00 00 00 00 00 00 0a 00 0a 00 64 00 f4 01 32 00 00 00 00 10 00 00 04 00 02 00 02 00 08 00 93 0f 00 00 64 01 00 00 00 00
Write: 43 69 61 6f 00 60 08 28 05 00 00 00 00 30 01 49 6b
Read: 43 69 61 6f 00 50 07 28 04 00 ea fb 03 12 07 a8 00 00 00 00 00 00 00 00 00 00 c0 d4 01 00 20 00 00 00 03 00 3e 08 32 00 00 00 00 10 00 00 04 00 02 00 02 00 08 00 93 0f 00 00 64 01 00 00 00 00
tf-tool: TF_STATE_COMM_FAILED (255)
tf-tool: communication error
Same issues I had when playing around with thinkfinger.c before.
This is Gentoo x86_64 2006.1:
$ uname -a
Linux sony 2.6.18 #7 SMP Tue Nov 21 18:03:26 EST 2006 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
My first thought is that it's an issue with my machine being 64bit - I've seen
reports of this stuff working on 32bit machines. Any thoughts? I'll keep
hacking at it, though it'd help to know why in parse() the result is always
0x07 (thus throwing TF_STATE_COMM_FAILED)... I'm just not sure what to expect
yet.
the tf-tool testing utility.
I added some code from the old thinkfinger.c file at line 377 of
libthinkfinger.c:
if (!(flags & SILENT)) {
fprintf(stdout, "Write: ");
printhex(ctrldata, len);
fprintf(stdout, "Read: ");
printhex(inbuf, real_len);
}
Doing that gets me:
$ sudo tf-tool/tf-tool
tf-tool: intialization... ok
tf-tool: setting file... ok
tf-tool: setting callback... ok
tf-tool: acquire fingerprint...
Write: 43 69 61 6f 00 60 08 28 05 00 00 00 00 30 01 49 6b
Read: 43 69 61 6f 00 50 07 28 04 00 ea fb 02 12 36 9b 01 00 04 00 08 0f 86 00 00 00 00 00 00 00 0a 00 0a 00 64 00 f4 01 32 00 00 00 00 10 00 00 04 00 02 00 02 00 08 00 93 0f 00 00 64 01 00 00 00 00
tf-tool: TF_STATE_COMM_FAILED (255)
tf-tool: communication error
tf-tool: verifying fingerprint...
Write: 43 69 61 6f 00 50 1d 28 1a 00 00 00 03 02 00 00 00 00 00 00 00 00 00 00 00 00 c0 d4 01 00 20 00 00 00 03 00 4f 47
Read: 43 69 61 6f 00 60 07 28 04 00 52 f7 f0 1f 49 ca 6b 00 04 00 08 0f 86 00 00 00 00 00 00 00 0a 00 0a 00 64 00 f4 01 32 00 00 00 00 10 00 00 04 00 02 00 02 00 08 00 93 0f 00 00 64 01 00 00 00 00
Write: 43 69 61 6f 00 60 08 28 05 00 00 00 00 30 01 49 6b
Read: 43 69 61 6f 00 50 07 28 04 00 ea fb 03 12 07 a8 00 00 00 00 00 00 00 00 00 00 c0 d4 01 00 20 00 00 00 03 00 3e 08 32 00 00 00 00 10 00 00 04 00 02 00 02 00 08 00 93 0f 00 00 64 01 00 00 00 00
tf-tool: TF_STATE_COMM_FAILED (255)
tf-tool: communication error
Same issues I had when playing around with thinkfinger.c before.
This is Gentoo x86_64 2006.1:
$ uname -a
Linux sony 2.6.18 #7 SMP Tue Nov 21 18:03:26 EST 2006 x86_64 Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz GenuineIntel GNU/Linux
My first thought is that it's an issue with my machine being 64bit - I've seen
reports of this stuff working on 32bit machines. Any thoughts? I'll keep
hacking at it, though it'd help to know why in parse() the result is always
0x07 (thus throwing TF_STATE_COMM_FAILED)... I'm just not sure what to expect
yet.
--
Michael Stella | IT Systems Architect | http://www.michaelstella.com/
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B ED7A 2EC2 1206 BC3F F6D4
"To dwell on the destination is to waste the journey"
Michael Stella | IT Systems Architect | http://www.michaelstella.com/
PGP: 1024D/BC3FF6D4 2BC2 A79B 88D1 218A B32B ED7A 2EC2 1206 BC3F F6D4
"To dwell on the destination is to waste the journey"