I have been working with the m515 and have a software package that uses
the serial port to communicate with a battery powered Spread Spectrum
Radio device. On the m515 I used the RTS line to turn on the power of the
SSR. When the SSR goes into configuration mode it spits out about 600
bytes of configuration menu information. Once I have set the
configuration to what I want I put it in data mode and wait for the CTS
which is connected to the DCD line on the SSR modem. All has been working
great in Palm OS 4.1.
I have since been trying to get the same app to work on a Zire 71 with no
luck. When I turn on the RTS (power up the SSR) and then put the SSR in
configuration mode, the data coming from the SSR causes the RTS to go
inactive, thus causing the SSR to go off. It also causes an overload on
the serial port and causes all the serial lines to turn off. To fix this
I moved the power control of the SSR to DSR. It appears to stay powered
up now. Although the RTS blinks it appears not to have an effect on the
SSR or the function of the palm software. When I am through configuring
the SSR I wait for the CTS signal to tell me that it is connected to the
master on the other end and it never comes. I can watch the lights on a
serial breakout box and confirm that the CTS is changing state. The
serial status in the code below is always 0. On the m515 it is 2 with the
CTS off and 3 with CTS on.
while(!(serStatus & srmStatusCtsOn) && delayCnt<20) // wait for DCD
(CTS) for 10 seconds
{
SysTaskDelay(SysTicksPerSecond()/2);
SrmGetStatus(gModemConfig.port, &serStatus, &serLineErr);
delayCnt++;
}
I have tried different port configurations and am back to the defaults
now.
Can I get the status of CTS on OS 5?
Is there a way to hold RTS high and monitor the state of CTS?
Any help that can be provided would be GREATLY appreciated, Thanks,
Larry
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/