Hi Jesse,
thank you very much for the reply. I wrote a small C program that would just open the ‘file’, ttyUSB0 and send out an SMS to a phone number using the AT commands. I am however getting a Segmentation fault when I try to open the file ttyUSB0 and write an AT command to it. Here is my program:
void main()
{
FILE *fileptr;
fileptr = fopen(” /dev/ttyUSB0 :,”a”);
puts(“AT!SSMS=0,xxxxxxxx,0,yyyyyyyyyy”); /* xxxxxxxxx is the phone number and yyyyyyyyy is the message */
fclose(fileptr);
}
I would appreciate it if you could let me know where my program went wrong. Thank you very much and have a great day.
Best Regards,
JM