2) genesys_gl843.h, There is definition of the Sensor_Profile sensors.
For the CS8400F there is defined array (line 666). I logged several
scans with different dpi settings using usbsnoop. After processing
logs with your script I found that there are different possible values
reported for the sensor_profile and motor_profile. This profiles do
not coincide with the one in the genesys_gl843.h. Here are ones,
extracted from the logs:
sensor_profile { sensor_id, dpi, 7200, 0xe3f, 0x0, 0x1b6db, 5168,
0,0xffffffffffffffff,
0xfffffffffffffeff, 0xfffffffffffffeff, 0xfffffffffffffeff,
0xffffffffffffffff, 0x01, 0x02, 0xffffffffffffffff, 0xffffffffffffffff,
{0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff,
0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0x33,
0x0c, 0x13, 0xffffffffffffffff, 0x30, 0xffffffffffffffff, 0x00, 0x84, },
{0x0d,0x10,0x01,0x04,0x07,0x0a,0x6b,0xffffffffffffffff,0x40,0x00,0x00,0xffffffffffffffff,0x85,},
}
sensor_profile { sensor_id, dpi, 7200, 0xe3f, 0x0, 0x1b6db, 5168,
0,0xffffffffffffffff,
0xfffffffffffffeff, 0xfffffffffffffeff, 0xfffffffffffffeff,
0xffffffffffffffff, 0x01, 0x02, 0xffffffffffffffff, 0xffffffffffffffff,
{0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff,
0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0x33,
0x0c, 0x13, 0xffffffffffffffff, 0x30, 0xffffffffffffffff, 0x00, 0x84, },
{0x0d,0x10,0x01,0x04,0x07,0x0a,0x6b,0xffffffffffffffff,0x40,0x00,0x00,0xffffffffffffffff,0x88,},
},
sensor_profile { sensor_id, dpi, 22000, 0x0, 0xff, 0x0, 5168, 0,0x2a,
0x 0, 0x 0, 0x 0, 0xffffffffffffffff, 0x07, 0x08, 0xffffffffffffffff,
0xffffffffffffffff,
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3b, 0x0c, 0x10, 0x2a, 0x30,
0x00, 0x00, 0x9a, },
{0x01,0x04,0x07,0x0a,0x0d,0x10,0x1b,0x00,0x40,0x00,0x00,0xffffffffffffffff,0x88,},
},
sensor_profile { sensor_id, dpi, 10800, 0xe3f, 0x0, 0x1b6db, 5168, 0,0x2a,
0x 0, 0x 0, 0x 0, 0xffffffffffffffff, 0x01, 0x02, 0xffffffffffffffff,
0xffffffffffffffff,
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x0c, 0x13, 0x2a, 0x30,
0x00, 0x00, 0x84, },
{0x0d,0x10,0x01,0x04,0x07,0x0a,0x6b,0x00,0x40,0x00,0x00,0xffffffffffffffff,0x88,},
},
sensor_profile { sensor_id, dpi, 14400, 0x1ff, 0x0, 0x24924, 5168, 0,0x2a,
0x 0, 0x 0, 0x 0, 0xffffffffffffffff, 0x00, 0x01, 0xffffffffffffffff,
0xffffffffffffffff,
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x0c, 0x11, 0x2a, 0x30,
0x00, 0x00, 0x84, },
{0x0b,0x0e,0x11,0x02,0x05,0x08,0x63,0x00,0x40,0x00,0x00,0xffffffffffffffff,0x88,},
},
sensor_profile { sensor_id, dpi, 7200, 0xe3f, 0x0, 0x1b6db, 5168, 0,0x2a,
0x 0, 0x 0, 0x 0, 0xffffffffffffffff, 0x01, 0x02, 0xffffffffffffffff,
0xffffffffffffffff,
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x33, 0x0c, 0x13, 0x2a, 0x30,
0x00, 0x00, 0x84, },
{0x0d,0x10,0x01,0x04,0x07,0x0a,0x6b,0x00,0x40,0x00,0x00,0xffffffffffffffff,0x85,},
}
They are all different. Do you have any suggestions what to do with
this? For each sensor_profile there is a motor_profile. They have the
following structure:
motor_profile={id,7200,2, {0, 0, ......} all skipped numbers are zeros
(in contrast to one in the genesys_gl843.h, line 677). The second
number coincides with the first number reported in the sensor_profile.
I would appreciate you suggestions for further implementation.
Thank you in advance,
Best regards,
Myroslav