# MC 8092 sending SMS

**URL:** <https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358>\
**Category:** MC/EM Series\
**Created:** [January 8, 2016, 1:47pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358 "2016-01-08T13:47:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 8, 2016, 1:47pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/1 "2016-01-08T13:47:35Z")

</div>

Hi,

Im desperately trying to send sms with smstools from my MC8092 from a linux server. Here is where i’ve been so far :

> [@](#):
>
> 2016-01-08 12:32:42,5, smsd: Moved file /var/spool/sms/outgoing/message to /var/spool/sms/checked  
> 2016-01-08 12:32:43,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/message  
> 2016-01-08 12:32:43,6, GSM1: Sending SMS from to 33675152427  
> 2016-01-08 12:32:43,6, GSM1: Checking if modem is ready  
> 2016-01-08 12:32:44,7, GSM1: → AT  
> 2016-01-08 12:32:44,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:44,7, GSM1: ← OK  
> 2016-01-08 12:32:44,6, GSM1: Pre-initializing modem  
> 2016-01-08 12:32:44,7, GSM1: → ATE0+CMEE=1;+CREG=2  
> 2016-01-08 12:32:44,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:44,7, GSM1: ← OK  
> 2016-01-08 12:32:44,6, GSM1: Initializing modem  
> 2016-01-08 12:32:45,7, GSM1: → AT^CURC=0  
> 2016-01-08 12:32:45,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:45,7, GSM1: ← OK  
> 2016-01-08 12:32:45,7, GSM1: → AT+CSQ  
> 2016-01-08 12:32:45,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:45,7, GSM1: ← +CSQ: 7,99 OK  
> 2016-01-08 12:32:45,6, GSM1: Signal Strength Indicator: (7,99) -99 dBm (Marginal), Bit Error Rate: not known or not detectable  
> 2016-01-08 12:32:46,7, GSM1: → AT+CSQ  
> 2016-01-08 12:32:46,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:46,7, GSM1: ← +CSQ: 7,99 OK  
> 2016-01-08 12:32:46,6, GSM1: Signal Strength Indicator: (7,99) -99 dBm (Marginal), Bit Error Rate: not known or not detectable  
> 2016-01-08 12:32:46,6, GSM1: Checking if Modem is registered to the network  
> 2016-01-08 12:32:46,7, GSM1: → AT+CREG?  
> 2016-01-08 12:32:46,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:46,7, GSM1: ← +CREG: 0,1,0708,318BD4 OK  
> 2016-01-08 12:32:46,6, GSM1: Modem is registered to the network  
> 2016-01-08 12:32:46,6, GSM1: Selecting PDU mode  
> 2016-01-08 12:32:47,7, GSM1: → AT+CMGF=0  
> 2016-01-08 12:32:47,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:47,7, GSM1: ← OK  
> 2016-01-08 12:32:47,7, GSM1: → AT+CIMI  
> 2016-01-08 12:32:47,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:47,7, GSM1: ← OK  
> 2016-01-08 12:32:48,7, GSM1: → AT+CGSN  
> 2016-01-08 12:32:48,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:48,7, GSM1: ← OK  
> 2016-01-08 12:32:48,5, GSM1: CGSN:  
> 2016-01-08 12:32:48,5, GSM1: IMSI:  
> 2016-01-08 12:32:48,7, GSM1: → AT+CMGS=25  
> 2016-01-08 12:32:48,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:58,7, GSM1: put\_command expected (\>)|(ERROR), timeout occurred. 1.  
> 2016-01-08 12:32:58,7, GSM1: ← OK  
> 2016-01-08 12:32:59,7, GSM1: → 0011000B913376152524F70000FF0CF4F29C0E6A97E7F3F0B90C  
> 2016-01-08 12:32:59,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:32:59,7, GSM1: Command is sent, waiting for the answer  
> 2016-01-08 12:33:59,7, GSM1: put\_command expected (OK)|(ERROR), timeout occurred. 2.  
> 2016-01-08 12:33:59,7, GSM1: ←   
> 2016-01-08 12:33:59,3, GSM1: The modem did not answer (expected OK).

> [@](#):
>
> [GSM1]  
> init = AT^CURC=0  
> init2 = AT+CSQ  
> device = /dev/ttyUSB4  
> incoming = yes  
> #pin =  
> baudrate = 115200

I’ve been following several internet guides and I simply don’t understand why in most of them i can’t even execute basic AT commands. Such as AT+CMGS which gives me back OK instead of permitting me to write my message.

Thanks in advance,  
Etienne

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 8, 2016, 3:56pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/2 "2016-01-08T15:56:58Z")

</div>

Hi,

Can you use minicom (or other terminal program in either Windows or Linux) to send the below commands manually to the unit?

at+cmee=1  
at+cmgf=0  
at+cmgs=25 //Make sure this returns the \> to start sending the hex characters

I presume you are sending character 26 at the end of the PDU to trigger the sending of the message?

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 8, 2016, 5:14pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/3 "2016-01-08T17:14:38Z")

</div>

Hello,

Thanks for your reply !  
The problem we seem to meet is that “AT+CMGS” does not return any “\>”, anytime…

> [@](#):
>
> AT+CMEE=1
> 
> OK  
> AT+CMGF=0
> 
> OK  
> AT+CMGS=25
> 
> OK

Even if i try AT+CMGF=1 and AT+CMGS=phone\_number, my AT+CMGS won’t return any \> character.

Frustrating…

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 12, 2016, 8:09am UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/4 "2016-01-12T08:09:38Z")

</div>

Etienne,

I have done this on a unit and it seems to work on the USB interface (as per the attached) so I have no reason to suspect it does not work generally.

Can you send the below?  
ati  
at+cgmr

If the ATI response comes back with APPx (if you are doing this on the UART then APP3 is the default) then it means that it is the end point which is intended to be used for a data connection rather than anything else i.e. check network connection, sending SMS, etc. You will need to use the at!mapuart command on the USB port to re map it to the full AT command parser as these units only have one.

Note if the full AT parser is on the USB port and you remap it to the UART the USB will have the end point enumerate but will not respond to AT commands, you would need to use the UART to switch it back.

Regards

Matt

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 12, 2016, 8:10am UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/5 "2016-01-12T08:10:32Z")

</div>

With attachment this time.  
[SMS USB interface.txt](https://forum.sierrawireless.com/uploads/short-url/onscHsuVg8BcWWxNzAV8Rh8wJD7.txt) (181 Bytes)

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 12, 2016, 8:59am UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/6 "2016-01-12T08:59:39Z")

</div>

Hello,  
Thank for your reply, here is my return for these commands :

> [@](#):
>
> ATI  
> Sierra Wireless, Incorporated  
> MC8092  
> APP1
> 
> OK  
> AT+CGMR
> 
> OK

Not sure what I should do now, i found [https://mail.gnome.org/archives/networkmanager-list/2013-February/msg00172.html](https://mail.gnome.org/archives/networkmanager-list/2013-February/msg00172.html). Should I try another USB interface ? (I have four ttyUSB1-\>4)

Is there a physical action to realize ? Like changing port on the card, i am at the moment on the first, dissociated one.

Thanks,

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 12, 2016, 1:25pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/7 "2016-01-12T13:25:58Z")

</div>

Etienne,

I presume that this is in the UART or USB? Assuming it is on the UART you need to get access to the USB AT command port which does not respond to the ATI command with an APPx and send the following command to it

at!entercnd=“A710”  
at!mapuart=1  
at!reset

After this the full AT parser will be assigned to the UART and not the USB.

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 12, 2016, 3:18pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/8 "2016-01-12T15:18:29Z")

</div>

I found out that ttyUSB3 was responding something else to the ATI command (it was the only one actually) and sent him the commands you gave me.  
It deleted ttyUSB4 (which I was using so far) and created a ttyUSB5 with exactly the same behaviour and ttyUSB3 not responding anymore to AT commands.

So i rebooted, hoping to reset the card, and now I found my ttyUSB4 again with exactly the same behaviour as before (no sms, etc), and ttyUSB3 still not really responding.  
Now i can reset and execute all 3 commands you gave me before on ttyUSB4, but nothing more.

What could I do now ?

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 12, 2016, 3:33pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/9 "2016-01-12T15:33:49Z")

</div>

What is your end game? What interface do you want to use? Are you doing anything with UART or only USB end points? I have asked if you are using UART several time before and you have not told me so I have had to make assumptions.

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 12, 2016, 3:45pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/10 "2016-01-12T15:45:19Z")

</div>

I want to send a sms through any interface which could do it and as so far I worked on 3G connection with the interface ttyUSB4, I tried sending my messages through this mountpoint (/dev/ttyUSB4).

I’d say ttyUSB0/1/2/3/4 are USB interfaces. My vision is that they are be emulated by UART interface (ttyUSB0-\>4 emulated by COM connected card)

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 12, 2016, 5:00pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/11 "2016-01-12T17:00:57Z")

</div>

Etienne,

On hte units each USB end point is associated with specific functionality, there is no way to know what this functionality is without connecting to it and asking. There is no way to produce a hard guide since the way they enumerate varies depends on user set options with in the unit. TYPICALLY SL8 and old directIP units will enumerate as follows.  
/dev/ttyUSB0 - HIP/CnS  
/dev/ttyUSB1 - Diagnostic Monitoring port  
/dev/ttyUSB2 - NMEA data  
/dev/ttyUSB3 - AT command  
/dev/ttyUSB4 - Modem port (limited AT command capability)

If you disable the NMEA then 3 and 4 would become 2 and 3 respectively when it next re enumerated.

It may well me that you have switched the AT parser to the UART. I would suggest you connect to each of the /dev/ttyUSB ports in turn with minicom and see what the response to ATI is, if one of them comes back with a load of unit information (i.e. firmware version) rather than APPx then this will be the interface you need to use for the SMS. If none of the interfaces come back with a load of unit information then I suspect you have switch the AT parser to the UART and you wll need to connect to this and send at!mapuart=7 to it to remap the AT parser back to USB, then reset the unit and go through each of the interfaces as I have just said.

Hopefully that should sort you out.

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 12, 2016, 5:18pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/12 "2016-01-12T17:18:05Z")

</div>

Thnks for this response and your help, it’s much more clear now !

One last question though, how can I connect to the UART to set it back to USB mountpoint on ttyUSB3 ?

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 12, 2016, 5:49pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/13 "2016-01-12T17:49:01Z")

</div>

Connecting to a UART is a problem if this is in your hardware as opposed to a dev kit (is it your hardware)? Not sure how you get around this, I have had customer do this in the past, its why I was specifically asking about interfaces early on but had to try to answer you without this information hence my comments about assuming certain configs as sending commands blind to the unit can result in configs you cannot get out of if you set hardware interfaces up. There might be some tools around to reset this config just through the USB if you go back through your disti.

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 13, 2016, 9:13am UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/14 "2016-01-13T09:13:00Z")

</div>

Hello Matt,

Thanks for your help, I used another modem (same model) to try and send a SMS. Here is what I do (ttyUSB3) :

> [@](#):
>
> ATI  
> Manufacturer: Sierra Wireless, Incorporated  
> Model: MC8092  
> Revision: P1\_0\_0\_8AP R1338 CNHKGDKCE01 2011/10/21 09:21:31  
> IMEI: 351516050113042  
> IMEI SV: 8  
> FSN: CEC3474045410  
> 3GPP Release 6  
> +GCAP: +CGSM,+DS,+ES
> 
> OK  
> AT+CSCS?  
> +CSCS: “IRA”
> 
> OK  
> AT+CSCS=“GSM”  
> OK
> 
> AT+CMEE=1  
> OK
> 
> AT+CMGF?  
> ERROR
> 
> AT+CMGS=25  
> ERROR

Do you have any idea why I get those errors for CMGF/CMGS ?

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 13, 2016, 10:13am UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/15 "2016-01-13T10:13:58Z")

</div>

Etienne,

Can you send the following to the unit?

```auto
at+cmee=1
ati
at+cpin?
at+creg?
at+cmgf=0
```

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 13, 2016, 4:20pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/16 "2016-01-13T16:20:17Z")

</div>

Hello Matt,

I identified my problem as a bas connection between SIM and Modem, so i changed my Modem to another Server and tried again, here is my result :

> [@](#):
>
> AT+CMEE=1  
> OK  
> ATI  
> Manufacturer: Sierra Wireless, Incorporated  
> Model: MC8092  
> Revision: P1\_0\_0\_8AP R1338 CNHKGDKCE01 2011/10/21 09:21:31  
> IMEI: 351516050113042  
> IMEI SV: 8  
> FSN: CEC3474045410  
> 3GPP Release 6  
> +GCAP: +CGSM,+DS,+ES
> 
> OK  
> AT+CPIN?  
> +CPIN: READY
> 
> OK  
> AT+CREG?  
> +CREG: 0,2
> 
> OK  
> AT+CMGF=0  
> OK  
> AT+CMGS=“33\*\*\*\*\*\*\*\*\*\*”  
> +CMS ERROR: 304  
> AT+CMGF=1  
> OK  
> AT+CMGS=“33\*\*\*\*\*\*\*\*\*\*”
> 
> > test
> 
> +CMS ERROR: 500

This card has worked on another modem just yesterday.

Thanks,

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 13, 2016, 4:33pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/17 "2016-01-13T16:33:01Z")

</div>

Etienne,

The CREG response shows that the unit is not attached to a network so you are not going to be able to send any SMS’s. Not sure why this is but you will need to sort this out first of all. I would try the following

```auto
at+cops=0 //Leave it for 20 seconds or so after receiving the OK back to give it a chance to attach
at+cops=? //This will take a few minutes to complete to show you the networks it can see
```

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 13, 2016, 4:59pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/18 "2016-01-13T16:59:09Z")

</div>

Here is my reply, no connection… I don’t think it’s a CARRIER problem since it can see networks.

> [@](#):
>
> AT+COPS=0  
> OK  
> AT+COPS=?  
> +COPS: (3,“Orange F”,“Orange”,“20801”,2),(1,“F SFR”,“SFR”,“20810”,2),(0,1,2,3,4),(0,1,2)
> 
> OK  
> AT+CREG?  
> +CREG: 0,2

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 13, 2016, 5:03pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/19 "2016-01-13T17:03:36Z")

</div>

Etienne,

What is the SIM card i.e. Orange, SFR?

Regards

Matt

---

<div class="post-metadata">

**Author:** ![etiennej](https://avatars.discourse-cdn.com/v4/letter/e/ce7236/32.png) [@etiennej](https://forum.sierrawireless.com/u/etiennej)\
**Post date:** [January 13, 2016, 5:22pm UTC](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358/20 "2016-01-13T17:22:18Z")

</div>

It should be SFR

[Next page](https://forum.sierrawireless.com/t/mc-8092-sending-sms/8358.md?page=2)
