On 23-Jul-99 Chris Faherty wrote:
>> http://www.x10.com/manuals/cm17a_proto.txt
>
> I think I can use SerControl() to send an arbitrary break (all zeroes) on
> the TXD line, and that should suffice for one of the CM17A lines. As far as
> manipulating the RTS line, I think this may also be possible by playing
> around with some API.
Well I have had some success in controlling the CM17A (FireCracker etc) from
a PalmPilot. First a breakdown on how I hooked it up:
Normally the CM17A connects to RTS & DTR. Since the PalmPilot doesn't have a
programmable DTR signal, I used RTS & TXD instead. At the moment I have had
to manipulate the DragonBall registers, but I think that I can get what I
need from the API if I play around with it a bit more.
Which brings me to this question; I was trying to use SerControl() with
serStartBreak & serStopBreak to manipulate TXD. This appeared to be working
until I noticed a little glitch fly by my oscilloscope. Don't have a digital
storage scope so it is difficult for me to be certain. What I think is
happening is that the break signal is also using a start or stop bit.
I just replaced the SerControl() with some register stuff and it now works.
So now that I know it works, I'll have to tune the serial configuration a
little to see if I can get rid of the break signal glitch. Then I'll start
playing around with getting the API to flip RTS back and forth; I think I can
do that by playing with the fifo or something, or maybe putting it into
loopback mode and filling / emptying the receive queue.
/* Chris Faherty <[EMAIL PROTECTED]>, finger for PGP */