kevinyeandel
Joined: 11 Jun 2008 Posts: 4
|
hardware flow control on modem |
Posted: Thu Jun 12, 2008 4:47 pm |
|
|
Hi
How do I set hw flow control. I have:
#USE RS232(BAUD=19200,XMIT=PIN_C6,RCV=PIN_C7,PARITY=E,STOP=1)
Which matches my hyperterminal settings.
I'm using a Teltonika G10 and spent about 3 hours trying to get the settings for baud=19200 to stick after power down/up. I can see they are "apparently" saved in nvram using AT&V and AT&Y1 is supposed to make that profile the default on reset. AT+CSAS=0 used to save but it seems to forget after poweroff which is pretty hopeless.
So for a bodge I go to hyperterminal with AT+IPR=19200 and switch dsubs from my pc to my picdem 2 (not sure this is helping).
I know the thing is freezing at
ch = getc();
in my routine (I know the code works if I pretend to be the modem using hyperterminal). All I've done is printf'd "AT" and am waiting for an "OK".
So if anyone has any clues I will be very grateful.... it's all a bit depressing really!
Many thanks
Kevin |
|