At 3:19 PM +0800 2000/02/26, Ferdinand Perlas wrote:
>                    // Find serial library
>                    result = SysLibFind( "Serial Library", &serialrefnum );
>
>                    // Open serial port
>                    result = SerOpen( serialrefnum, 0, 38400L );
>
>                            // Flush receive buffer
>                            SerReceiveFlush( serialrefnum, 0);
>
>                            // Send command
>                            sent = SerSend( serialrefnum, sendstring,
>                                       StrLen( sendstring ), &err);
>
>                            // Receive response
>                            rcvd = SerReceive( serialrefnum, recvstring,
>sizeof(recvstring), 30, &err );
>
>                        // Close
>                        SerClose( serialrefnum );
>
>
>This works well on OS 3.1 with the Enhanced IR Update.  Should this not work
>with OS 3.3 ?

The code above looks like it *should* work. What sort of behavior are you seeing? 
Error values? On which device?

I seem to recall a little snag (bug) regarding setting the serial port speed during 
SerOpen with the backward compatibility library... unfortunately I don't recall which 
release of the OS had this bug... but you might try calling SerSetSettings to re-set 
the baud rate after the SerOpen.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to