di rin po ako makapagtest sa hyperterminal kasi windows7 gamit ko. kelangan lang po i place ang codes na to sa arduino:
AT+CMGL="ALL"
AT+CMGR=1
tapos gusto ko pong basahin ung messages sa serial monitor. ganito po ba?
#include <SoftwareSerial.h>
int rxPin = 0;
int txPin = 1;
// set up a new serial port
SoftwareSerial serial=SoftwareSerial(rxPin,txPin);
void setup() {
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
// set the data rate for the SoftwareSerial port
serial.begin(19200);
// Set SMS to text mode. Note it is critical
// to use \r\n to end each line
// The delays are also critical, without them,
// you may lose some of the
// characters of your message
serial.print("AT\r\n");
delay(10000);
serial.print("AT+CMGF=1\r\n");
delay(10000);
serial.print("AT+CMGR=1");
delay(10000);
// End the SMS with a control-z
serial.print(0x1A,BYTE);
char val = serial.read(); // get characters
serial.println(val); //display characters
}
void loop() {
}