>Does Palm Vx and Palm IIIx support the new serial manager?
>
>I have tried this code (cut from the reference manual) on a Palm Vx
>with PalmOS 3.5.0 and on a Palm IIIx with PalmOS 3.3:
>
>FtrGet(sysFileCSerialMgr, sysFtrNewSerialPresent, &value))
>
>The result is that FtrGet returns 0, and sets value to 0, which
>according to the reference manual (in the section on the new serial
>manager), means that the new serial manager is not present.
Very odd - that works for me. Here is the initializer for my serial class.
The only place I had seen it report incorrectly was in the simulator (not
emulator).
CSerialConnection::CSerialConnection(void)
{
// Init our instance data
fSerLibRefNum = 0;
fSerRcvQueue = 0;
fDeviceID = 0;
fPortID = 0;
fPortOpen = false;
fPrefererredRxBufSize = 0; // 0 means use default buffer
fPrefererredBaudRate = 9600; // What rate should we use when
none specified?
// If the new serial manager is installed, the value parameter will be
// non-zero and the returned error should also be zero (for no error).
{
Err err;
UInt32 value;
err = FtrGet(sysFileCSerialMgr, sysFtrNewSerialPresent,
&value);
fHasNewSerialMgr = ((err == 0) && (value != 0));
}
// DOLATER: Current 3.5 Simulator does not think it has New Serial
Mgr, but it does!
#if EMULATION_LEVEL == EMULATION_MAC
fHasNewSerialMgr = true;
#endif
}
It should be present on any device with 3.3 or later (IIIc, TRG Pro, Vx,
older unit flashed to 3.3 or 3.5, etc)
Brian
_____________________________________________________________________
Mark/Space Softworks voice 408-293-7299
111 West Saint John, 3rd Floor fax 408-293-7298
San Jose, CA 95113 <http://www.markspace.com>
PalmOS, Mac OS, Windows and Web Software & Solutions:
PageNOW! Wireless Messaging, PhoneWatcher Caller ID,
Online & Communicate terminal emulation and serial debugging
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html