Pages: [1]   Go Down
Author Topic: serial port and software serial!!!!  (Read 315 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 9
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: April 09, 2008, 03:01:47 pm by noceco33 » Logged

0
Offline Offline
Jr. Member
**
Karma: 1
Posts: 64
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: