I'm trying to send a text message from the command line to a cell phone. Right now I'm working with gnokii but it isn't panning out. I ran
Code:
echo "This is a test message" | gnokii --sendsms +17191234567 -r
but it isn't working. The output I get is this
Code:
GNOKII Version 0.6.27                                                                           
Couldn't read /root/.gnokiirc config file.                                                      
Couldn't read /root/.gnokiirc config file.                                                      
LOG: debug mask is 0x1                                                                          
Config read from file /etc/gnokiirc.                                                            
phone instance config:                                                                          
model = 6510                                                                                    
port = /dev/ttyS0                                                                               
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Connecting
Serial device: opening device /dev/ttyS0
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to low
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Serial device: closing device
Serial device: opening device /dev/ttyS0
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to high
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Serial device: closing device
Serial device: opening device /dev/ttyS0
Serial device: setting RTS to low and DTR to low
Serial device: setting RTS to high and DTR to high
Serial device: setting speed to 19200
Switching to FBUS mode
Serial device: setting speed to 115200
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
SM_Block: exiting the retry loop
Serial device: closing device
Telephone interface init failed: Command timed out.
Quitting.
Command timed out.
I'm not particularly attached to gnokii, I just need to send text messages from the command line.

Thanks!