Setup for Stamp being an RS232 DTE
LewM
Posts: 4
I am attempting to use MultiTech CDMA wireless modem as a time base. It works as hoped when connected to a PC - I can read current local time with an AT command. I changed the default baudrate of the modem to 2400, 8, none, and 1.
I have not been able to get it to communicate with a BS2p40. I am using a MAX232A for the RX and TX lines. DTR is held high (5v), RTS is asserted thru the MAX232. I have tried setting the stamp at both inverted and true. The docs on the modem states that it uses the RTS and CTS lines for flow control.
Is there a standard configuration for 5 wire DTE side of serial communication with the stamp? Thanks in advance.
I have not been able to get it to communicate with a BS2p40. I am using a MAX232A for the RX and TX lines. DTR is held high (5v), RTS is asserted thru the MAX232. I have tried setting the stamp at both inverted and true. The docs on the modem states that it uses the RTS and CTS lines for flow control.
Is there a standard configuration for 5 wire DTE side of serial communication with the stamp? Thanks in advance.
Comments
Maybe you could attach your program (and diagram/s, if available)·that isn't working so we might critique it?
"The official RS-232 use of the RTS and CTS lines is asymmetrical. The DTE asserts RTS to indicate a desire to transmit and the DCE asserts CTS in response to grant permission. This allows for half-duplex modems that disable their transmitters when not required, and must transmit a synchronization preamble to the receiver when they are re-enabled. There is no way for the DTE to indicate that it is unable to accept data from the DCE.
A non-standard symmetrical alternative is far more widely used: CTS indicates permission from the DCE for the DTE to transmit, and RTS indicates permission from the DTE for the DCE to transmit. The "request to transmit" is implicit and continuous.
3-wire and 5-wire RS-232
A minimal "3-wire" RS-232 port consisting only of transmit data, receive data, and ground, is commonly used when the full facilities of RS-232 are not required. When only flow control is required, the RTS and CTS lines are added in a 5-wire version."
This would lead me to believe that in most cases the RTS is always asserted. The code is really basic:
SEROUT tx, baud, [noparse][[/noparse]"AT+CCLK?"]
SERIN rx, baud,4500,timed, [noparse][[/noparse]string(5)]
It times out every time. The status light on the modem indicate the same state as when hooked to the PC with HyperTerm, but the transmit and receive lights never do anything when attached to the stamp. I may wire up a breakout box and see what is happening. Let me know if you think of anything - Thanks!
The usual data transfers from a Stamp won't flood the buffers on the modem.
The other thing to try if all else fails is to interchange pins 2, 3.
Cheers,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tom Sisk
http://www.siskconsult.com
·
Can someone confirm exactly what I should be using for the Baudmode with the BS2p and a MAX232? Thanks.