Hello,
I bought one of these
http://imall.iteadstudio.com/im120417009.html for a project I'm working on. I'm trying to send a jpg saved on an SD card via MMS. I am able to send SMS text messages fine, but when it comes to downloading the image to the GSM module, I'm having the biggest difficulties.
From looking at the MMS example in the manual on page 25, it says to do AT+CMMSDOWN. Then it says that when the module prints "CONNECT" to the serial monitor, that means that its ready to receive information on the UART. I have not figured out a way to make it read data. Perhaps I'm now writing to the UART right or something... I don't know. But eventually, the module exceeds the specified time limit and prints "ERROR".
http://www.mt-system.ru/sites/default/files/docs/documents/sim900_mms_at%20command%20manual_v1.01.pdfHere is what I'm working with now to attempt to write data to the module.
File dataFile = SD.open("datalog.txt");
// if the file is available, write to it:
if (dataFile) {
while (dataFile.available()) {
Serial.write(dataFile.read());
}
dataFile.close();
}
// if the file isn't open, pop up an error:
else {
Serial.println("error opening datalog.txt");
}
The microcontroller that I'm using is an Arduino Uno.
If somebody can offer some help, it would be greatly appreciate it.
Thanks for your time!
Ted