system
March 5, 2015, 8:05pm
1
i want to send sms using gsm module ,I am using touchscreen to input no. which I am storing in Numb array as a string. but unable to send it. Receiving error as multiple definitions.
#include <SoftwareSerial.h>
SoftwareSerial my(7,3);
#include <GSM.h>
GSM_SMS sms;
char Numb[10];
char Msg[5]="gsm";
void setup()
{
my.begin(19200);
delay(500);
message();
}
void message()
{
sms.beginSMS(Numb);
delay(500);
sms.print(Msg);
delay(500);
sms.endSMS();
delay(500);
}
void loop()
{
}
system
March 5, 2015, 8:10pm
3
multiple definition of `__vector_3'
this error i am getting. no idea what it means.
system
March 5, 2015, 8:15pm
4
It means both libraries are trying to use the same pin change interrupt vector.
system
March 6, 2015, 6:47am
5
Sir ,Can you make changes in the code?n send me correct one,I am still unable to get what is wrong.Thanks.
The GSM library has it's own implementation of SoftwareSerial so the two are incompatible. Try following the "SendSMS" example included with the GSM library.
system
March 6, 2015, 9:31pm
7
Sir the SendSMS example is for Serial, i m no using serial. m using lcd for display
system
March 7, 2015, 2:35am
8
Sir it is for Serial,
What is? Do not use pronouns that don't refer to anything except in your mind.
If "it" means that you are trying to use SoftwareSerial for ANY purpose, while using a GSM shield, get over it. You can NOT.
system
March 7, 2015, 6:43am
9
If I can not use software serial with gsm shield then what? What ports shall I use for communication between gsm shield and AT328?
system
March 7, 2015, 12:57pm
10
If I can not use software serial with gsm shield then what? What ports shall I use for communication between gsm shield and AT328?
The GSMSoftwareSerial class that is built into the GSM class.
arduinogeekiam:
Sir, the SendSMS example uses Serial. I am not using Serial. I am using an LCD for display.
So, change it. Leave all the GSM and SMS parts unchanged. Just change where messages are displayed and where input comes from.
system
March 8, 2015, 7:39pm
12
Change where input comes from? didn't get it. Sir can you point out in the code where went wrong.