Hi Alexandre,

I didn't work with New Serial Manager, but I can tell you what happens with the Serial 
Manager
on Handspring devices.
The handspring changed the RS232 protocol for cradle so it can support USB 
communication
Also they changed the name of the serial library.

this is a piece of code that I use to open the correct serial library on a Visor 
device:

//*************************************************88
#include <HsExt.h> 

void f()
{
    char bufP[50];
        
    unsigned long ftrHSVersion;
    bool bVisor = !FtrGet( hsFtrCreator, hsFtrIDVersion, &ftrHSVersion);        

    if(bVisor) //if the device is from Handspring
    {
        //you need to call this function before using serial port on visor devices
          HsExtKeyboardEnable( false );
        
        HsPrefEnum pref = hsPrefSerialLibDef;
        DWord prefSizeP = 50;
        
        //get the correct name of the serial library
          int nErr=0;
        if(HsPrefGet( pref, bufP, &prefSizeP )==hsErrBufferTooSmall)
                nErr = HsPrefGet( pref, bufP, &prefSizeP );
        
          if(!nErr)
                bufP[prefSizeP] = 0;
          else
                StrCopy(bufP, hsLibNameBuiltInSerial);  
    }
    else
        StrCopy(bufP, "Serial Library");
    
   int err = SysLibFind(bufP, &m_nLibraryRefNumber);
        
}
**********************************************************//

In order to use HsExtKeyboardEnable function and other Handspring specific functions
you need to download "HandspringHeaders" from Handspring site.


I hope this will help you.



-----Original Message-----
From: Alexandre Kazantsev [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 16:08
To: Palm Developer Forum
Subject: Handspring Visor and serial driver


Hi all,

My customer wants to use my application on Handspring Visor. The application
utilizes a simplified virtual driver with the New Serial Manager function
calls including SrmSetWakeHandler, SrmReceiveWindowOpen,
SrmReceiveWindowOpen, etc. The driver operates on interrupt basis and runs
great on Palms under OS 3.5x/4.xx. However the application fails to run on
Handspring Visor for some reason concerned with serial communication. It is
definitely not a cable problem. Could it be the Serial Manager
incompatibility problem? Is 115K communication speed supported in Visors?

Thanks in advance.




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

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

Reply via email to