gsm/gprs and rs232

Hey guys. I’m using a gprs/gps shield with arduino (icomsat v1.1 - electrow) to receive an sms.
the sms has the house number, heart rate, blood pressure and temperature. I would like to save the data in the sms as csv file or excel.

My question is, can i use Processing or must i use rs232.
this is my code:
#include <SoftwareSerial.h>

SoftwareSerial mySerial(7, 8);

void setup()
{
mySerial.begin(9600); // Setting the baud rate of GSM Module
Serial.begin(9600); // Setting the baud rate of Serial Monitor (Arduino)
delay(100);
}

void loop()
{
if (Serial.available()>0)
switch(Serial.read())
{
case ‘s’:
SendMessage();
break;
case ‘r’:
RecieveMessage();
break;
}

if (mySerial.available()>0)
Serial.write(mySerial.read());
}

void SendMessage()
{
mySerial.println(“AT+CMGF=1”); //Sets the GSM Module in Text Mode
delay(1000); // Delay of 1000 milli seconds or 1 second
mySerial.println(“AT+CMGS=”+91xxxxxxxxxx"\r"); // Replace x with mobile number
delay(1000);
mySerial.println(“I am SMS from GSM Module”);// The SMS text you want to send
delay(100);
mySerial.println((char)26);// ASCII code of CTRL+Z
delay(1000);
}

void RecieveMessage()
{

mySerial.println(“AT+CNMI=2,2,0,0,0”); // AT Command to recieve a live SMS
delay(1000);

}

I am receiving the texts, the confusing part is the software serial

First off you really need to put code in between the </> code tags.
I would use the software serial to talk to the GSM shield and then you can use the hardware serial to talk to the PC through ‘processing’ or maybe directly to Excel (google ‘Arduino Excel’) for possible code.

Thank you for your reply Riva. So i don't need the rs232 cable right?

Tuli_92:
Thank you for your reply Riva. So i don't need the rs232 cable right?

According to the Wiki here you can define any pins D0-D7 to be TX/RX pins to the shield so just move the jumpers from using D0/D1 (hardware serial) to other pins and then use software serial to talk to the GSM shield. This will free up the hardware serial for connecting to your PC.

I am using the one similar to the one in the link one so my software serial is pin 7 and 8. [url=http://www.seeedstudio.com/wiki/GPRS_Shield_V2.0]http://www.seeedstudio.com/wiki/GPRS_Shield_V2.0[/url]

The thing is, the shield is working and I am receiving texts, the problem is reading that text, saving it to a csv file. I can view the sms with serial monitor, but that data how to i transfer it to the hardware serial? what must i connect to the hardware port 0 or 1? 

I tried using processing but it keeps saying port COM15 busy. and plx-daq has a macro problem... I don't really understand processing well...

 [codeimport processing.serial.*;
Serial myPort;
String smsReading="";
PrintWriter output;
String fname = "texts.csv";
void setup()
{
  size(400,200);
  myPort = new Serial (this, "COM15", 9600);
  myPort.bufferUntil('\n');
  output = createWriter(fname);
  writeText ("Vitals");
}
void serialEvent(Serial myPort)
{
  smsReading = myPort.readStringUntil('\n');
  if(smsReading != null)
  {
    smsReading = trim(smsReading);
  }
  writeText("Vitals:" +smsReading);
  output.println(smsReading);
}
void writeText(String textToWrite)
{
  background(255);
  fill(0);
  text(textToWrite, width /20, height /2);
}]

i just want to save the entire sms text

You only need to put the code section between </> code tags, not the entire text.

You link to http://www.seeedstudio.com/wiki/GPRS_Shield_V2.0 for your GSM shield but in your initial post you state

I’m using a gprs/gps shield with arduino (icomsat v1.1 - electrow) to receive an sms.

so what one is correct?
The seeedstudio link also shows the GSM shield can be set to use software serial instead of hardware serial and also offers example code to send SMS messages that could adapt to your needs.