At 8:38 PM +0000 12/19/99, [EMAIL PROTECTED] wrote:
>greetings, i'm developing an ir based application using PalmOS exchange
>manager.
>
>i own a couple of palm iii's so can test my app on the hardware, but i'm
>wondering if/how people here are testing their ir apps under POSE emulator?
You can use shortcut-dot-t to toggle loop-back mode in the emulator (or set it
programmatically when debugging). This will cause outgoing beams to "loop back" to the
same device. If you're beaming to a peer (ie. the same app on another device), you'll
receive the data you just sent. When in loop-back mode, the UART isn't used for IR, so
you can do this while Poser or a real device is connected to the debugger. You can't
be connected to a debugger while doing real IR on a Palm. You may be able to do this
on a Visor because it has a USB cradle. Has anyone tried this? If you use a Mac, the
simulator is in loop-back mode by default.
One thing to watch for is not accessing globals during the beam receive launch code.
When debugging, it'll always be a sub-launch, so you can access globals freely. But
when you turn off loop-back mode, this won't always be the case. Another thing to
watch for is handling overwrites. When debugging with loop-back mode, you'll receive
the same data you're sending.
Consider yourself lucky. It's much easier to use the exchange manager than the IR
library.
-
Danny Epstein, Applied Thought Corporation
Have friends with Palm organizers? Get BeamBooks!
http://www.appliedthought.com/beambooks