Thanks, I've tried to add rts/cts, then I tried to add parity, etc like in 
PalmOsCompanion volume 2
sample.

Well it seems that my communication works, but it is slow because of my 1 byte 
acknowledge.
What I do is :

loop 1 to 100
  receive 4 bytes (an int value)
  send 1 byte to acknowledge
  receive 4 bytes (length of the following string)
  send 1 byte to acknowledge
  receive N bytes (the string value)
  send 1 byte to acknowledge
end loop

To receive 4 bytes, I do :

SrmReceiveWait(port,4,timeout_ticks) (with timeout>40 or else it does errors)
SrmReceive(port,buf,4,0,&err_recv); (timeout zero since I've just done a receive wait)

To send acknowledgement :
SrmSend(port,"\001",1,&err_send);

If I dont send the 1 byte acknowledgement, the process takes 6 seconds
If I do it, it takes 60 seconds ! (same amout of data, and same port parameters, same 
hardware...)

Does somebody have an explanation ?
When i will do a transfert in both directions, I will have the same problem... What 
shall I do ?

Thanks




Dave Lippincott wrote:
Transmission speeds over 9600 require some type of flow control.  115Kbaud
requires hardware flow control enabled.  Without it, communications will be
unreliable and you may loose some bits.



-- Riccardo Cohen

Articque
Les Roches
37230 Fondettes
France
web = http://www.articque.com
tel: +33 02 47 49 90 49
fax: +33 02 47 49 91 49




-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to