here is an email i sent to the gphoto developer's list. if anybody knows
serial programming, can you answer the questions at the bottom of the email?
hello all,
i've had a (very) partial success getting the polaroid pdc700 recognized
under linux. here is what i did:
gphoto2 --port "serial:/dev/ttyS0" --camera "Polaroid DC700" --summary --debug
here's the output:
1 gp_port: gp_port_write: (size=00005) DATA: 40 00 02 01 01
using comlite32, i determined that the send string (line 1) is correct.
. all commands begin with 0x40.
. the next 2 bytes represents the number of bytes sent to the camera.
in this case, "0x00 0x02" corresponding to the following "0x01 0x01".
. the next 0x01 (i think) is the camera initialization string
. the last 0x01 is the checksum of all bytes between the 2-byte length
and the last (checksum) byte. in this case, it's simply "0x01".
so far, so good. now the camera responds...
2 gp_port: gp_port_read: (size=00003) DATA: 40 03 00
3 gp_port: gp_port_read: (size=00001) DATA: 81
4 gp_port: gp_port_read: (size=00001) DATA: 01
this is correct, except the camera's response always ends with "0x82", which
is missing. this byte isn't being read. in fact...
5 gp_port: gp_port_read: read timeout
6 gp_port: gp_port_set_settings: update ok
some kind of read error is occuring.
7 gp_port: gp_port_write: (size=00005) DATA: 40 00 02 01 01
8 gp_port: gp_port_read: read timeout
9 gp_port: gp_port_set_settings: update ok
gphoto2 tries a 2nd time, but the camera is not responding.
10 gp_port: gp_port_write: (size=00005) DATA: 40 00 02 01 01
11 gp_port: gp_port_read: read timeout
12 gp_port: gp_port_set_settings: update ok
and a 3rd time.
13 gp_port: gp_port_write: (size=00005) DATA: 40 00 02 01 01
14 gp_port: gp_port_read: read timeout
15 gp_port: Closing port...
16 gPhoto2 reported the error 'Timeout reading from or writing to the port'
after a 4th try, gphoto is throwing its hands in the air and gives up.
looking through a bunch of windoze output, i noticed that the polaroid
software sends the initalization string anywhere between 1 and 5 times
before the camera responds.
i know nothing about serial programming. if the baud is wrong, would there
be no communication at all or would there be "some" communication until the
program desyncronizes with the camera? this is the only thing i can think of
that would be souring the communication midway between the handshake.
is there anything i should be looking for that would cause the last byte not
to be read?
pete
--
"The following addresses had permanent fatal errors..." [EMAIL PROTECTED]
-- Mailer Daemon www.dirac.org/p