OC1 usb connection
Posted: Sun Oct 16, 2011 6:29 am
Nick,
I'm having what appears to be a common connection problem with the Oceanic OC1.
My error is:
Failed connecting to dive computer on serial port '/dev/tty.usbserial-20030001' (Error Code: -6)
I have read forum entries that suggest that this is a cable connection problem and that what is necessary is to jiggle the cable and to try again. After almost three hours of experimentation, I do not believe that this is a cable issue.
I have tested two different (brand new) OC1s, with three different cables, on two different computers, with Mac OS 10.6 and 10.7. I tested MacDive (native) and Oceanic's OceanLog under VMware.
OceanLog worked each and every time with all combinations of PDC and cables. MacDive on the same computer failed to establish a connection approximately 80% of the time. Cable jiggling/wiggling/etc. did not affect connection success rates. Retrying the connection over and over was all that mattered.
My speculation was that there is a timing issue with the initial handshake with the OC1 and that the mac is overrunning the OC1's receive buffer. To test this, I started loading the CPUs with free running apps, and started MacDive with nice. After doing this, the connection failure rate improved dramatically, dropping to around 30%.
I note that when the connection fails, the following is output from MacDive:
/Users/nick/Projects/DiveComputer/Mac/DiveComputer/../../src/oceanic_atom2.c:212: Unexpected answer start byte(s).
/Users/nick/Projects/DiveComputer/Mac/DiveComputer/../../src/oceanic_atom2.c:212: Unexpected answer start byte(s).
/Users/nick/Projects/DiveComputer/Mac/DiveComputer/../../src/oceanic_atom2.c:212: Unexpected answer start byte(s).
Perhaps a delay loop or two in the initial handshake would fix it?
If there is anything that I can do to help narrow if further, please let me know.
Regards,
Denny
I'm having what appears to be a common connection problem with the Oceanic OC1.
My error is:
Failed connecting to dive computer on serial port '/dev/tty.usbserial-20030001' (Error Code: -6)
I have read forum entries that suggest that this is a cable connection problem and that what is necessary is to jiggle the cable and to try again. After almost three hours of experimentation, I do not believe that this is a cable issue.
I have tested two different (brand new) OC1s, with three different cables, on two different computers, with Mac OS 10.6 and 10.7. I tested MacDive (native) and Oceanic's OceanLog under VMware.
OceanLog worked each and every time with all combinations of PDC and cables. MacDive on the same computer failed to establish a connection approximately 80% of the time. Cable jiggling/wiggling/etc. did not affect connection success rates. Retrying the connection over and over was all that mattered.
My speculation was that there is a timing issue with the initial handshake with the OC1 and that the mac is overrunning the OC1's receive buffer. To test this, I started loading the CPUs with free running apps, and started MacDive with nice. After doing this, the connection failure rate improved dramatically, dropping to around 30%.
I note that when the connection fails, the following is output from MacDive:
/Users/nick/Projects/DiveComputer/Mac/DiveComputer/../../src/oceanic_atom2.c:212: Unexpected answer start byte(s).
/Users/nick/Projects/DiveComputer/Mac/DiveComputer/../../src/oceanic_atom2.c:212: Unexpected answer start byte(s).
/Users/nick/Projects/DiveComputer/Mac/DiveComputer/../../src/oceanic_atom2.c:212: Unexpected answer start byte(s).
Perhaps a delay loop or two in the initial handshake would fix it?
If there is anything that I can do to help narrow if further, please let me know.
Regards,
Denny