Sending SMS in PDU mode fails.

José Joseddg92 at gmail.com
Fri Aug 4 13:47:49 UTC 2017


On Fri, Aug 4, 2017 at 3:24 PM, Aleksander Morgado
<aleksander at aleksander.es> wrote:
> Hum.... I totally believe I did send SMS in PDU mode with the Telit
> LE866 a while back... What is the error you're getting, and which is
> the actual PDU you're trying to send?
>

Sorry, I forgot to include that. Here are the commands I tried and the output:

root at ccimx6ulsbc:~# mmcli -m 0 --messaging-create-sms="text='Hello
world',number='+19700000000'"
Successfully created new SMS:
        /org/freedesktop/ModemManager1/SMS/3 (unknown)

<debug> [1501854124.113201] [../../git/src/mm-iface-modem.c:1206]
update_signal_quality(): Modem /org/freedesktop/ModemManager1/Modem/0:
signal quality updated (6)

root at ccimx6ulsbc:~# mmcli -s 3 --send
error: couldn't send the SMS:
'GDBus.Error:org.freedesktop.ModemManager1.Error.Message.Unknown:
Unknown error'

<debug> [1501854251.236624] [../../git/src/mm-base-sms.c:178]
generate_3gpp_submit_pdus():   Processing chunk '0' of text with '11'
bytes
<debug> [1501854251.238542] [../../git/src/mm-base-sms.c:208]
generate_3gpp_submit_pdus(): Created SMS part for singlepart SMS
<debug> [1501854251.241746] [../../git/src/mm-sms-part-3gpp.c:805]
mm_sms_part_3gpp_get_submit_pdu(): Creating PDU for part...
<debug> [1501854251.243373] [../../git/src/mm-sms-part-3gpp.c:892]
mm_sms_part_3gpp_get_submit_pdu():   using GSM7 encoding...
<debug> [1501854251.244973] [../../git/src/mm-sms-part-3gpp.c:957]
mm_sms_part_3gpp_get_submit_pdu():   user data length is '11' septets
(without UDH)
<debug> [1501854251.246756] [../../git/src/mm-port-serial.c:1250]
mm_port_serial_open(): (ttymxc1) device open count is 2 (open)
<debug> [1501854251.248551] [../../git/src/mm-port-serial-at.c:459]
debug_log(): (ttymxc1): --> 'AT+CMGS=23<CR>'
<debug> [1501854251.262761] [../../git/src/mm-port-serial-at.c:459]
debug_log(): (ttymxc1): <-- 'AT'
<debug> [1501854251.274812] [../../git/src/mm-port-serial-at.c:459]
debug_log(): (ttymxc1): <-- '+CMGS=23'
<debug> [1501854251.284741] [../../git/src/mm-port-serial-at.c:459]
debug_log(): (ttymxc1): <-- '<CR><CR><LF>> '
<debug> [1501854251.286704] [../../git/src/mm-port-serial.c:1250]
mm_port_serial_open(): (ttymxc1) device open count is 3 (open)
<debug> [1501854251.288503] [../../git/src/mm-port-serial.c:1307]
_close_internal(): (ttymxc1) device open count is 2 (close)
<debug> [1501854251.290317] [../../git/src/mm-port-serial-at.c:459]
debug_log(): (ttymxc1): -->
'0001000B919107000000F000000BC8329BFD06DDDF723619\26'
<debug> [1501854251.345394] [../../git/src/mm-port-serial-at.c:459]
debug_log(): (ttymxc1): <-- '0'
<debug> [1501854251.370661] [../../git/src/mm-port-serial-at.c:459]
debug_log(): (ttymxc1): <-- '<CR><LF>+CMS ERROR: 41<CR><LF>'
<debug> [1501854251.373089] [../../git/src/mm-error-helpers.c:218]
mm_message_error_for_code(): Invalid message error code: 41
<debug> [1501854251.374966] [../../git/src/mm-serial-parsers.c:364]
mm_serial_parser_v1_parse(): Got failure code 500: Unknown error
<debug> [1501854251.376918] [../../git/src/mm-port-serial.c:1307]
_close_internal(): (ttymxc1) device open count is 1 (close)


Same setup if I use microcom to send the SMS using text mode, it works fine.

>> I have been told that "Telit's PDU mode doesn't use the standard GSM
>> PDUs" but I am checking the AT Reference sheet and this is not clear
>> to me. Does anyone know about this? Would it be possible to make the
>> Telit plugin from ModemManager to use Text mode for the LE866-SV1?
>>
>
> Carlo, Daniele, do you have any comment on that statement regarding
> Telit's PDU mode?
>

Some extra information:

One thing that’s not described in the PDF is that encoding value 0x09
indicates GSM 7-bit (i.e. what you’d normally put into a PDU), and
that while “7-bit ASCII” and “GSM 7-bit” septets are packed into
octets differently. I don’t remember off the top of my head which
encoding leads to which packing order, but it’s easy enough to figure
out if you send the module an SMS and just look at the bits.


I also got this example: http://i.imgur.com/WJYRFiv.png


More information about the ModemManager-devel mailing list