[sane-devel] Fwd: [canon630u] read_byte(fd, 0x01, &result); /* got 00 */

insane@piments.com insane@piments.com
Wed, 09 Jun 2004 20:15:01 +0200


Hi Henning,

here's a copy of the email I sent to the maintainer of the fb630u backend.  
It gives the full debug output, the last lines where it blocks being the  
same as those I already posted on this list.

I got no reply from Nathan so I have nothing more to contriute from him.

As you can see communication seems to go quite well at first but then gets  
stuck in a loop with no apparent timeout.

regards, Peter.



------- Forwarded message -------
From: peter@piments.com
To: "Nathan Rutman" <nathan@gordian.com>
Subject: [canon630u] read_byte(fd, 0x01, &result); /* got 00 */
Date: Sun, 23 May 2004 22:27:03 +0200

Hi,

here is the full debug output from scanimage.

The final line just repeats until I kill the process or unplug the scanner.

This should give you a good idea of what is happening.

I'm an active member of forums.gentoo.org and there seem to be quite a lot
of posts with very similar pbs. So once I get it working will post the
solution.

Thanks again for any help or suggestions.

Regards, Peter.


bash-2.05b# !!
   SANE_DEBUG_CANON630U=255 scanimage -d canon630u
[sanei_debug] Setting debug level of canon630u to 255.
[canon630u] sane_init: version_code != 0, authorize != 0
[canon630u] sane_init: SANE Canon630u backend version 1.0.1 from
sane-backends 1.0.14-cvs
[canon630u] reading configure file canon630u.conf
[canon630u] attach_matching_devices(usb 0x04a9 0x2204)
[canon630u] attach_scanner: libusb:001:012
[canon630u] attach_scanner: opening libusb:001:012
[canon630u] CANON_open_device: `libusb:001:012'
[canon630u] CANON_close_device:
[canon630u] finished reading configure file
[canon630u] sane_open
[canon630u] sane_open: no devicename, opening first device
[canon630u] CANON_open_device: `libusb:001:012'
[canon630u] sane_control_option: handle=0x8056d60, opt=0, act=0,
val=0xbfffe780, info=(nil)
[canon630u] sane_control_option: handle=0x8056d60, opt=0, act=0,
val=0xbfffe6e8, info=(nil)
[canon630u] sane_get_option_descriptor: option = 0
[canon630u] sane_get_option_descriptor: option = 1
[canon630u] sane_get_option_descriptor: option = 2
[canon630u] sane_get_option_descriptor: option = 3
[canon630u] sane_get_option_descriptor: option = 4
[canon630u] sane_get_option_descriptor: option = 5
[canon630u] sane_get_option_descriptor: option = 6
[canon630u] sane_get_option_descriptor: option = 7
[canon630u] sane_control_option: handle=0x8056d60, opt=7, act=0,
val=0x80544b8, info=(nil)
[canon630u] sane_get_option_descriptor: option = 8
[canon630u] sane_control_option: handle=0x8056d60, opt=8, act=0,
val=0x80544bc, info=(nil)
[canon630u] sane_control_option: handle=0x8056d60, opt=5, act=0,
val=0xbfffe6e4, info=(nil)
[canon630u] sane_control_option: handle=0x8056d60, opt=6, act=0,
val=0xbfffe6e4, info=(nil)
[canon630u] sane_control_option: handle=0x8056d60, opt=5, act=0,
val=0xbfffe77c, info=(nil)
[canon630u] sane_get_option_descriptor: option = 7
[canon630u] sane_control_option: handle=0x8056d60, opt=7, act=1,
val=0xbfffe778, info=0xbfffe774
[canon630u] sane_control_option: handle=0x8056d60, opt=6, act=0,
val=0xbfffe77c, info=(nil)
[canon630u] sane_get_option_descriptor: option = 8
[canon630u] sane_control_option: handle=0x8056d60, opt=8, act=1,
val=0xbfffe778, info=0xbfffe774
[canon630u] sane_start
[canon630u] CANON_set_scan_parameters:
[canon630u] cal   = 0
[canon630u] gray  = 0 (ignored)
[canon630u] res   = 75
[canon630u] gain  = 1
[canon630u] gamma = 1.599991
[canon630u] in 600dpi pixels:
[canon630u] left  = 0, top    = 0
[canon630u] right = 5099, bottom = 6999
[canon630u] CANON_start_scan called
[canon630u] init query: 4
[canon630u] write_byte(fd, 0x42, 0x06);
[canon630u] write_byte(fd, 0x0b, 0x0d);
[canon630u] write_byte(fd, 0x0c, 0x4c);
[canon630u] write_byte(fd, 0x0d, 0x2f);
[canon630u] read_byte(fd, 0x0b, &result); /* got 0d */
[canon630u] read_byte(fd, 0x0c, &result); /* got 4c */
[canon630u] read_byte(fd, 0x0d, &result); /* got 2f */
[canon630u] write_byte(fd, 0x70, 0x73);
[canon630u] init post-reset: 4
[canon630u] Calibrating
[canon630u] read_byte(fd, 0x69, &result); /* got 02 */
[canon630u] write_byte(fd, 0x42, 0x06);
[canon630u] multi write 32
[canon630u]  0008:04[canon630u] write_byte(fd, 0x08, 0x04);
[canon630u]  0009:1a[canon630u] write_byte(fd, 0x09, 0x1a);
[canon630u]  000a:00[canon630u] write_byte(fd, 0x0a, 0x00);
[canon630u]  000b:0d[canon630u] write_byte(fd, 0x0b, 0x0d);
[canon630u]  000c:4c[canon630u] write_byte(fd, 0x0c, 0x4c);
[canon630u]  000d:2f[canon630u] write_byte(fd, 0x0d, 0x2f);
[canon630u]  000e:00[canon630u] write_byte(fd, 0x0e, 0x00);
[canon630u]  000f:01[canon630u] write_byte(fd, 0x0f, 0x01);
[canon630u]  0010:07[canon630u] write_byte(fd, 0x10, 0x07);
[canon630u]  0011:04[canon630u] write_byte(fd, 0x11, 0x04);
[canon630u]  0012:05[canon630u] write_byte(fd, 0x12, 0x05);
[canon630u]  0013:06[canon630u] write_byte(fd, 0x13, 0x06);
[canon630u]  0014:07[canon630u] write_byte(fd, 0x14, 0x07);
[canon630u]  0015:00[canon630u] write_byte(fd, 0x15, 0x00);
[canon630u]  0016:00[canon630u] write_byte(fd, 0x16, 0x00);
[canon630u]  0017:00[canon630u] write_byte(fd, 0x17, 0x00);
[canon630u]  0018:03[canon630u] write_byte(fd, 0x18, 0x03);
[canon630u]  0019:00[canon630u] write_byte(fd, 0x19, 0x00);
[canon630u]  001a:00[canon630u] write_byte(fd, 0x1a, 0x00);
[canon630u]  001b:00[canon630u] write_byte(fd, 0x1b, 0x00);
[canon630u]  001c:03[canon630u] write_byte(fd, 0x1c, 0x03);
[canon630u]  001d:25[canon630u] write_byte(fd, 0x1d, 0x25);
[canon630u]  001e:00[canon630u] write_byte(fd, 0x1e, 0x00);
[canon630u]  001f:4b[canon630u] write_byte(fd, 0x1f, 0x4b);
[canon630u]  0020:15[canon630u] write_byte(fd, 0x20, 0x15);
[canon630u]  0021:e0[canon630u] write_byte(fd, 0x21, 0xe0);
[canon630u]  0022:00[canon630u] write_byte(fd, 0x22, 0x00);
[canon630u]  0023:4b[canon630u] write_byte(fd, 0x23, 0x4b);
[canon630u]  0024:14[canon630u] write_byte(fd, 0x24, 0x14);
[canon630u]  0025:37[canon630u] write_byte(fd, 0x25, 0x37);
[canon630u]  0026:15[canon630u] write_byte(fd, 0x26, 0x15);
[canon630u]  0027:00[canon630u] write_byte(fd, 0x27, 0x00);
[canon630u]
[canon630u] multi write 55
[canon630u]  0029:02[canon630u] write_byte(fd, 0x29, 0x02);
[canon630u]  002a:00[canon630u] write_byte(fd, 0x2a, 0x00);
[canon630u]  002b:00[canon630u] write_byte(fd, 0x2b, 0x00);
[canon630u]  002c:03[canon630u] write_byte(fd, 0x2c, 0x03);
[canon630u]  002d:ff[canon630u] write_byte(fd, 0x2d, 0xff);
[canon630u]  002e:00[canon630u] write_byte(fd, 0x2e, 0x00);
[canon630u]  002f:01[canon630u] write_byte(fd, 0x2f, 0x01);
[canon630u]  0030:03[canon630u] write_byte(fd, 0x30, 0x03);
[canon630u]  0031:ff[canon630u] write_byte(fd, 0x31, 0xff);
[canon630u]  0032:00[canon630u] write_byte(fd, 0x32, 0x00);
[canon630u]  0033:01[canon630u] write_byte(fd, 0x33, 0x01);
[canon630u]  0034:03[canon630u] write_byte(fd, 0x34, 0x03);
[canon630u]  0035:ff[canon630u] write_byte(fd, 0x35, 0xff);
[canon630u]  0036:00[canon630u] write_byte(fd, 0x36, 0x00);
[canon630u]  0037:01[canon630u] write_byte(fd, 0x37, 0x01);
[canon630u]  0038:00[canon630u] write_byte(fd, 0x38, 0x00);
[canon630u]  0039:00[canon630u] write_byte(fd, 0x39, 0x00);
[canon630u]  003a:00[canon630u] write_byte(fd, 0x3a, 0x00);
[canon630u]  003b:01[canon630u] write_byte(fd, 0x3b, 0x01);
[canon630u]  003c:01[canon630u] write_byte(fd, 0x3c, 0x01);
[canon630u]  003d:01[canon630u] write_byte(fd, 0x3d, 0x01);
[canon630u]  003e:00[canon630u] write_byte(fd, 0x3e, 0x00);
[canon630u]  003f:00[canon630u] write_byte(fd, 0x3f, 0x00);
[canon630u]  0040:00[canon630u] write_byte(fd, 0x40, 0x00);
[canon630u]  0041:00[canon630u] write_byte(fd, 0x41, 0x00);
[canon630u]  0042:06[canon630u] write_byte(fd, 0x42, 0x06);
[canon630u]  0043:1d[canon630u] write_byte(fd, 0x43, 0x1d);
[canon630u]  0044:00[canon630u] write_byte(fd, 0x44, 0x00);
[canon630u]  0045:13[canon630u] write_byte(fd, 0x45, 0x13);
[canon630u]  0046:04[canon630u] write_byte(fd, 0x46, 0x04);
[canon630u]  0047:1a[canon630u] write_byte(fd, 0x47, 0x1a);
[canon630u]  0048:01[canon630u] write_byte(fd, 0x48, 0x01);
[canon630u]  0049:04[canon630u] write_byte(fd, 0x49, 0x04);
[canon630u]  004a:00[canon630u] write_byte(fd, 0x4a, 0x00);
[canon630u]  004b:00[canon630u] write_byte(fd, 0x4b, 0x00);
[canon630u]  004c:00[canon630u] write_byte(fd, 0x4c, 0x00);
[canon630u]  004d:00[canon630u] write_byte(fd, 0x4d, 0x00);
[canon630u]  004e:57[canon630u] write_byte(fd, 0x4e, 0x57);
[canon630u]  004f:02[canon630u] write_byte(fd, 0x4f, 0x02);
[canon630u]  0050:00[canon630u] write_byte(fd, 0x50, 0x00);
[canon630u]  0051:3c[canon630u] write_byte(fd, 0x51, 0x3c);
[canon630u]  0052:35[canon630u] write_byte(fd, 0x52, 0x35);
[canon630u]  0053:94[canon630u] write_byte(fd, 0x53, 0x94);
[canon630u]  0054:00[canon630u] write_byte(fd, 0x54, 0x00);
[canon630u]  0055:10[canon630u] write_byte(fd, 0x55, 0x10);
[canon630u]  0056:08[canon630u] write_byte(fd, 0x56, 0x08);
[canon630u]  0057:3f[canon630u] write_byte(fd, 0x57, 0x3f);
[canon630u]  0058:2b[canon630u] write_byte(fd, 0x58, 0x2b);
[canon630u]  0059:91[canon630u] write_byte(fd, 0x59, 0x91);
[canon630u]  005a:00[canon630u] write_byte(fd, 0x5a, 0x00);
[canon630u]  005b:00[canon630u] write_byte(fd, 0x5b, 0x00);
[canon630u]  005c:01[canon630u] write_byte(fd, 0x5c, 0x01);
[canon630u]  005d:00[canon630u] write_byte(fd, 0x5d, 0x00);
[canon630u]  005e:80[canon630u] write_byte(fd, 0x5e, 0x80);
[canon630u]  005f:00[canon630u] write_byte(fd, 0x5f, 0x00);
[canon630u]
[canon630u] multi read 32
[canon630u] read_byte(fd, 0x08, &result); /* got 04 */
[canon630u]  0008:04[canon630u] read_byte(fd, 0x09, &result); /* got 1a */
[canon630u]  0009:1a[canon630u] read_byte(fd, 0x0a, &result); /* got 00 */
[canon630u]  000a:00[canon630u] read_byte(fd, 0x0b, &result); /* got 0d */
[canon630u]  000b:0d[canon630u] read_byte(fd, 0x0c, &result); /* got 4c */
[canon630u]  000c:4c[canon630u] read_byte(fd, 0x0d, &result); /* got 2f */
[canon630u]  000d:2f[canon630u] read_byte(fd, 0x0e, &result); /* got 00 */
[canon630u]  000e:00[canon630u] read_byte(fd, 0x0f, &result); /* got 01 */
[canon630u]  000f:01[canon630u] read_byte(fd, 0x10, &result); /* got 07 */
[canon630u]  0010:07[canon630u] read_byte(fd, 0x11, &result); /* got 04 */
[canon630u]  0011:04[canon630u] read_byte(fd, 0x12, &result); /* got 05 */
[canon630u]  0012:05[canon630u] read_byte(fd, 0x13, &result); /* got 06 */
[canon630u]  0013:06[canon630u] read_byte(fd, 0x14, &result); /* got 07 */
[canon630u]  0014:07[canon630u] read_byte(fd, 0x15, &result); /* got 00 */
[canon630u]  0015:00[canon630u] read_byte(fd, 0x16, &result); /* got 00 */
[canon630u]  0016:00[canon630u] read_byte(fd, 0x17, &result); /* got 00 */
[canon630u]  0017:00[canon630u] read_byte(fd, 0x18, &result); /* got 03 */
[canon630u]  0018:03[canon630u] read_byte(fd, 0x19, &result); /* got 00 */
[canon630u]  0019:00[canon630u] read_byte(fd, 0x1a, &result); /* got 00 */
[canon630u]  001a:00[canon630u] read_byte(fd, 0x1b, &result); /* got 00 */
[canon630u]  001b:00[canon630u] read_byte(fd, 0x1c, &result); /* got 03 */
[canon630u]  001c:03[canon630u] read_byte(fd, 0x1d, &result); /* got 25 */
[canon630u]  001d:25[canon630u] read_byte(fd, 0x1e, &result); /* got 00 */
[canon630u]  001e:00[canon630u] read_byte(fd, 0x1f, &result); /* got 4b */
[canon630u]  001f:4b[canon630u] read_byte(fd, 0x20, &result); /* got 15 */
[canon630u]  0020:15[canon630u] read_byte(fd, 0x21, &result); /* got e0 */
[canon630u]  0021:e0[canon630u] read_byte(fd, 0x22, &result); /* got 00 */
[canon630u]  0022:00[canon630u] read_byte(fd, 0x23, &result); /* got 4b */
[canon630u]  0023:4b[canon630u] read_byte(fd, 0x24, &result); /* got 14 */
[canon630u]  0024:14[canon630u] read_byte(fd, 0x25, &result); /* got 37 */
[canon630u]  0025:37[canon630u] read_byte(fd, 0x26, &result); /* got 15 */
[canon630u]  0026:15[canon630u] read_byte(fd, 0x27, &result); /* got 00 */
[canon630u]  0027:00[canon630u]
[canon630u] multi read 55
[canon630u] read_byte(fd, 0x29, &result); /* got 02 */
[canon630u]  0029:02[canon630u] read_byte(fd, 0x2a, &result); /* got 00 */
[canon630u]  002a:00[canon630u] read_byte(fd, 0x2b, &result); /* got 00 */
[canon630u]  002b:00[canon630u] read_byte(fd, 0x2c, &result); /* got 03 */
[canon630u]  002c:03[canon630u] read_byte(fd, 0x2d, &result); /* got ff */
[canon630u]  002d:ff[canon630u] read_byte(fd, 0x2e, &result); /* got 00 */
[canon630u]  002e:00[canon630u] read_byte(fd, 0x2f, &result); /* got 01 */
[canon630u]  002f:01[canon630u] read_byte(fd, 0x30, &result); /* got 03 */
[canon630u]  0030:03[canon630u] read_byte(fd, 0x31, &result); /* got ff */
[canon630u]  0031:ff[canon630u] read_byte(fd, 0x32, &result); /* got 00 */
[canon630u]  0032:00[canon630u] read_byte(fd, 0x33, &result); /* got 01 */
[canon630u]  0033:01[canon630u] read_byte(fd, 0x34, &result); /* got 03 */
[canon630u]  0034:03[canon630u] read_byte(fd, 0x35, &result); /* got ff */
[canon630u]  0035:ff[canon630u] read_byte(fd, 0x36, &result); /* got 00 */
[canon630u]  0036:00[canon630u] read_byte(fd, 0x37, &result); /* got 01 */
[canon630u]  0037:01[canon630u] read_byte(fd, 0x38, &result); /* got 00 */
[canon630u]  0038:00[canon630u] read_byte(fd, 0x39, &result); /* got 00 */
[canon630u]  0039:00[canon630u] read_byte(fd, 0x3a, &result); /* got 00 */
[canon630u]  003a:00[canon630u] read_byte(fd, 0x3b, &result); /* got 01 */
[canon630u]  003b:01[canon630u] read_byte(fd, 0x3c, &result); /* got 01 */
[canon630u]  003c:01[canon630u] read_byte(fd, 0x3d, &result); /* got 01 */
[canon630u]  003d:01[canon630u] read_byte(fd, 0x3e, &result); /* got 00 */
[canon630u]  003e:00[canon630u] read_byte(fd, 0x3f, &result); /* got 00 */
[canon630u]  003f:00[canon630u] read_byte(fd, 0x40, &result); /* got 00 */
[canon630u]  0040:00[canon630u] read_byte(fd, 0x41, &result); /* got 00 */
[canon630u]  0041:00[canon630u] read_byte(fd, 0x42, &result); /* got 06 */
[canon630u]  0042:06[canon630u] read_byte(fd, 0x43, &result); /* got 1d */
[canon630u]  0043:1d[canon630u] read_byte(fd, 0x44, &result); /* got 00 */
[canon630u]  0044:00[canon630u] read_byte(fd, 0x45, &result); /* got 13 */
[canon630u]  0045:13[canon630u] read_byte(fd, 0x46, &result); /* got 04 */
[canon630u]  0046:04[canon630u] read_byte(fd, 0x47, &result); /* got 1a */
[canon630u]  0047:1a[canon630u] read_byte(fd, 0x48, &result); /* got 01 */
[canon630u]  0048:01[canon630u] read_byte(fd, 0x49, &result); /* got 04 */
[canon630u]  0049:04[canon630u] read_byte(fd, 0x4a, &result); /* got 00 */
[canon630u]  004a:00[canon630u] read_byte(fd, 0x4b, &result); /* got 00 */
[canon630u]  004b:00[canon630u] read_byte(fd, 0x4c, &result); /* got 00 */
[canon630u]  004c:00[canon630u] read_byte(fd, 0x4d, &result); /* got 00 */
[canon630u]  004d:00[canon630u] read_byte(fd, 0x4e, &result); /* got 57 */
[canon630u]  004e:57[canon630u] read_byte(fd, 0x4f, &result); /* got 02 */
[canon630u]  004f:02[canon630u] read_byte(fd, 0x50, &result); /* got 00 */
[canon630u]  0050:00[canon630u] read_byte(fd, 0x51, &result); /* got 3c */
[canon630u]  0051:3c[canon630u] read_byte(fd, 0x52, &result); /* got 35 */
[canon630u]  0052:35[canon630u] read_byte(fd, 0x53, &result); /* got 94 */
[canon630u]  0053:94[canon630u] read_byte(fd, 0x54, &result); /* got 00 */
[canon630u]  0054:00[canon630u] read_byte(fd, 0x55, &result); /* got 10 */
[canon630u]  0055:10[canon630u] read_byte(fd, 0x56, &result); /* got 08 */
[canon630u]  0056:08[canon630u] read_byte(fd, 0x57, &result); /* got 3f */
[canon630u]  0057:3f[canon630u] read_byte(fd, 0x58, &result); /* got 2b */
[canon630u]  0058:2b[canon630u] read_byte(fd, 0x59, &result); /* got 91 */
[canon630u]  0059:91[canon630u] read_byte(fd, 0x5a, &result); /* got 00 */
[canon630u]  005a:00[canon630u] read_byte(fd, 0x5b, &result); /* got 00 */
[canon630u]  005b:00[canon630u] read_byte(fd, 0x5c, &result); /* got 01 */
[canon630u]  005c:01[canon630u] read_byte(fd, 0x5d, &result); /* got 00 */
[canon630u]  005d:00[canon630u] read_byte(fd, 0x5e, &result); /* got 80 */
[canon630u]  005e:80[canon630u] read_byte(fd, 0x5f, &result); /* got 00 */
[canon630u]  005f:00[canon630u]
[canon630u] write_byte(fd, 0x70, 0x73);
[canon630u] write_byte(fd, 0x2c, 0x3f);
[canon630u] write_byte(fd, 0x2d, 0xff);
[canon630u] write_byte(fd, 0x2e, 0x00);
[canon630u] write_byte(fd, 0x2f, 0x01);
[canon630u] write_byte(fd, 0x30, 0x3f);
[canon630u] write_byte(fd, 0x31, 0xff);
[canon630u] write_byte(fd, 0x32, 0x00);
[canon630u] write_byte(fd, 0x33, 0x01);
[canon630u] write_byte(fd, 0x34, 0x3f);
[canon630u] write_byte(fd, 0x35, 0xff);
[canon630u] write_byte(fd, 0x36, 0x00);
[canon630u] write_byte(fd, 0x37, 0x01);
[canon630u] read_byte(fd, 0x02, &result); /* got 2d */
[canon630u] write_byte(fd, 0x07, 0x02);
[canon630u] read_poll_flag...
[canon630u] read_byte(fd, 0x02, &result); /* got 2c */
[canon630u] read_byte(fd, 0x02, &result); /* got 0e */
[canon630u] write_byte(fd, 0x07, 0x01);
[canon630u] read_byte(fd, 0x02, &result); /* got 0c */
[canon630u] read_byte(fd, 0x02, &result); /* got 0c */
[canon630u] write_byte(fd, 0x07, 0x02);
[canon630u] write_byte(fd, 0x03, 0x00);
[canon630u] write_byte(fd, 0x04, 0x00);
[canon630u] write_byte(fd, 0x05, 0x00);
[canon630u] write_bulk(fd, 0x06, buf, 0x0400);
[canon630u] write_byte(fd, 0x03, 0x02);
[canon630u] write_byte(fd, 0x04, 0x00);
[canon630u] write_byte(fd, 0x05, 0x00);
[canon630u] write_bulk(fd, 0x06, buf, 0x0400);
[canon630u] write_byte(fd, 0x03, 0x04);
[canon630u] write_byte(fd, 0x04, 0x00);
[canon630u] write_byte(fd, 0x05, 0x00);
[canon630u] write_bulk(fd, 0x06, buf, 0x0400);
[canon630u] write_byte(fd, 0x03, 0x00);
[canon630u] write_byte(fd, 0x04, 0x20);
[canon630u] write_byte(fd, 0x05, 0x00);
[canon630u] read_bulk(fd, 0x06, buf, 0x0400);
[canon630u] write_byte(fd, 0x03, 0x02);
[canon630u] write_byte(fd, 0x04, 0x20);
[canon630u] write_byte(fd, 0x05, 0x00);
[canon630u] read_bulk(fd, 0x06, buf, 0x0400);
[canon630u] write_byte(fd, 0x03, 0x04);
[canon630u] write_byte(fd, 0x04, 0x20);
[canon630u] write_byte(fd, 0x05, 0x00);
[canon630u] read_bulk(fd, 0x06, buf, 0x0400);
[canon630u] read_byte(fd, 0x02, &result); /* got 0e */
[canon630u] write_byte(fd, 0x07, 0x01);
[canon630u] read_byte(fd, 0x02, &result); /* got 0e */
[canon630u] read_byte(fd, 0x08, &result); /* got 04 */
[canon630u] write_byte(fd, 0x08, 0x04);
[canon630u] read_byte(fd, 0x46, &result); /* got 04 */
[canon630u] write_byte(fd, 0x46, 0x3f);
[canon630u] read_byte(fd, 0x47, &result); /* got 1a */
[canon630u] write_byte(fd, 0x47, 0xff);
[canon630u] read_byte(fd, 0x48, &result); /* got 01 */
[canon630u] write_byte(fd, 0x48, 0x01);
[canon630u] read_byte(fd, 0x49, &result); /* got 04 */
[canon630u] write_byte(fd, 0x49, 0x04);
[canon630u] read_byte(fd, 0x4a, &result); /* got 00 */
[canon630u] write_byte(fd, 0x4a, 0x00);
[canon630u] read_byte(fd, 0x4b, &result); /* got 00 */
[canon630u] write_byte(fd, 0x4b, 0xc8);
[canon630u] read_byte(fd, 0x4e, &result); /* got 57 */
[canon630u] write_byte(fd, 0x4e, 0x04);
[canon630u] read_byte(fd, 0x4f, &result); /* got 02 */
[canon630u] write_byte(fd, 0x4f, 0x02);
[canon630u] read_byte(fd, 0x50, &result); /* got 00 */
[canon630u] write_byte(fd, 0x50, 0x00);
[canon630u] write_byte(fd, 0x57, 0x1f);
[canon630u] write_byte(fd, 0x07, 0x08);
[canon630u] write_byte(fd, 0x07, 0x00);
[canon630u] write_byte(fd, 0x07, 0x03);
[canon630u] waiting...
[canon630u] read_byte(fd, 0x01, &result); /* got 00 */
[canon630u] read_byte(fd, 0x01, &result); /* got 00 */
[canon630u] read_byte(fd, 0x01, &result); /* got 00 */
[canon630u] read_byte(fd, 0x01, &result); /* got 00 */
[canon630u] read_byte(fd, 0x01, &result); /* got 00 */
[canon630u] read_byte(fd, 0x01, &result); /* got 00 */
[canon630u] read_byte(fd, 0x01, &result); /* got 00 */
.......................


this continues until I cntl-C or kill the process.



-- 
Using M2, Opera's e-mail client: on Gentoo Linux