PDA

View Full Version : debug -> infrared -> PocketPC??



ham789
- 25th November 2007, 23:56
I can't find any real documentation on any of this,
so I'm just observing and guessing what might be needed.

PBP has a very nice debug command that I use to send
status info in serial format. Works great. I'd like to get
rid of the wire.

I have a PocketPC that implements SIR protocol. Again,
found no documentation, but looking at it on the scope,
it seems like straight on/off (unmodulated) RS-232-like
data, but it's RZ format.

The debug command outputs NRZ data and the PocketPC
doesn't like it. I'm assuming that's the problem. I can't change
the PocketPC, so I'll have to change the data I send it.

What I think i want is a debug command that outputs
RZ data. Yes, I could recode the whole thing, but I don't
want to lose all the data formatting features of the debug command.
And I'd like to modify some existing programs without having to modify
them...much.

I'm about to put another hack into PBPPIC14.LIB (split debugdelay into two pieces
and reset the data in the middle) to make this
happen. I don't yet understand enough about how the compiler works to know
if it will let me create my own "define" to turn this feature on and off.
If it works, it's a simple matter of recompiling my old code.
I'm guessing there will be unintended consequences,
so I'll ask here first.

Is there a simpler way, to make the
debug command output whatever is required by the SIR protocol of
Windows Mobile 5?
Maybe someone has already hacked the library?
Actual documentation on the SIR format used by Windows Mobile 5?
I'm not really sure that hacking in RZ will fix my problem.

Ideas?
Thanks, mike

mackrackit
- 26th November 2007, 01:32
Do a search on MicroChips web site. I was going to do some thing like this using Palm a few years ago and never got around to it, but do remember seeing an app note talking about it.

ham789
- 27th November 2007, 01:48
Thanks, I searched Microchip again. Everything I found
is an application of their ir protocol chip.
And all roads seem to lead to irda.com who want big bux
just to look at their data.

What I'm looking for is application of Pbp to generate what
I need to talk to the pocket pc or palm.

mackrackit
- 28th November 2007, 21:53
I do not have my notes from way back, but...

Have you read this?
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1824&appnote=en012140
Page 15 has
PALM OS SERIAL MANAGER
PROGRAMMING

Go here
https://pdn.palm.com/regac/pdn/page?Page_Name=TECHNICAL_RESOURCES
and look for
Public Access
Palm Developer Guide,
Palm OS Platform
Palm Develop Guide,
Windows Mobile Platform

ham789
- 29th November 2007, 15:59
Thanks for the inputs. I've read a bunch of that stuff. Not much help.
I gave up, reverse engineered it and hacked PicbasicPro
to talk to my palm. Seems to be working, and all I have to do is
recompile existing progs to make it work.
mike