Sending SMS trought 3G modem with picocom or other

Hi All,

i was wondering if someone succeeded in sending SMS's with a 3G dongle
on the Yun. I've read about picocom for openwrt and that should work in
the command line but i need to be able to have a sketch send a text message
when an event occurs.

Bart

Ssmtp is a Linux command that sends email. If you google yun ssmtp, you will get plenty of info. If you have to send a text, see here if it is Verizon. Send text messages using email on a PC | About Verizon

For another carrier, Google the name of the carrier and "email to text" and it will show you the email address to send to that will transmit it into a text.

Good luck

Let Yun send out SMS at US and Canada absolutely free (No Hardware or service fee) :

http://forum.arduino.cc/index.php?topic=210326.msg1544191#msg1544191

Let Yun send out SMS worldwide without hardware:

http://forum.arduino.cc/index.php?topic=210326.msg1581356#msg1581356

I'd like to have a service where i'm not using a webservice to send text messages. It's not relaible
enough bc i'm not sure that i'll always have a decent connection and can't tell whether the sms is
sent or not.

I did manage to use picocom to connect to my modem and send text messages , but i'm unable to
do it from the arduino side using process.. :frowning:

Arduino:

http://forum.arduino.cc/index.php?topic=239575.msg1720142#msg1720142

#include <Process.h>
int temperature;
void setup() {
 Bridge.begin();  // Initialize Bridge
}
void loop() {
 int temperature = random(0, 100);
 Process p;              
 p.begin("/mnt/sda1/sms.sh");      
 p.addParameter(String(temperature)); 
 p.run();
 delay(5000); 
}

Openwrt:

BusyBox has no bash. You could use ash instead of.

nano /mnt/sda1/sms.sh

#!/bin/ash
# process all passed arguments
# picocom

chmod 755 /mnt/sda1/sms.sh

confirm "/mnt/sda1/sms.sh 100" send out SMS correctly.