Go Down

Topic: serial port and software serial!!!! (Read 342 times) previous topic - next topic

noceco33

Apr 09, 2008, 09:18 pm Last Edit: Apr 09, 2008, 10:01 pm by noceco33 Reason: 1
hello:

I have a little problem with my arduino board!!

I plugged over the arduino a GPS-GPRS modem, I mean that in the digital 0 pin I have  the GPRS_RXD and in the dig pin 1 the GPRS_TXD, that is the hardware serial isn't it?? the problem is that I need to send some commands (AT commands) with (ie:   serial.print("AT+CPIN?")) and wait the reply, but this commands apears in the terminal and there is not reply of the modem.
So I'm talking with the serial terminal, but no with the modem. How can I do? what I'm doing wrong?????

I think that i need to use the sofware serial, but I donĀ“t know how. cos if the hardware serial works in the digital pin 0 and 1, and that are the pins that I need for my Modem...

and I already check this

#define rxPin 6
#define txPin 7

SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);

to use as terminal...

Wath can I do?

MysteriousAges

It sounds like you have your pins swapped. Try connecting your modem's TX to the Arduino RX, and Arduino TX to the modem's RX.

Go Up