SMS support through MBIM
Aleksander Morgado
aleksander at lanedo.com
Fri Jun 21 03:34:46 PDT 2013
On 21/06/13 12:27, Bjørn Mork wrote:
>> On 21/06/13 11:01, Bjørn Mork wrote:
>>> >> So I repeated with my old perl debugging script and got this indication,
>>> >> which looks like the one you describe the Huawei modem is sending:
>>> >>
>>> >> [Fri Jun 21 10:39:24 2013] read 52 bytes from /dev/cdc-wdm0
>>> >> at <eval>(unknown source)
>>> >> at main::read_mbim(/home/bjorn/privat/prog/git/wwan/scripts/mbim.pl:1493)
>>> >> at main::(/home/bjorn/privat/prog/git/wwan/scripts/mbim.pl:1658)
>>> >>
>>> >> ---
>>> >> 07 00 00 80 34 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 53 3f be eb 14 fe 44 67 9f 90 33 a2 23 e5 6c 3f 05 00 00 00 08 00 00 00 02 00 00 00 0f 00 00 00
>>> >> ---
>>> >> MBIM_MESSAGE_HEADER
>>> >> MessageType: 0x80000007 (MBIM_INDICATE_STATUS_MSG)
>>> >> MessageLength: 52
>>> >> TransactionId: 0
>>> >> MBIM_FRAGMENT_HEADER
>>> >> TotalFragments: 1
>>> >> CurrentFragment: 0
>>> >> SMS (533fbeeb-14fe-4467-9f90-33a223e56c3f)
>>> >> MBIM_CID_SMS_MESSAGE_STORE_STATUS (5)
>>> >> InformationBuffer [8]:
>>> >> Flags: MBIM_SMS_FLAG_NEW_MESSAGE (2)
>>> >> MessageIndex: 15
>>> >>
>>> >>
>>> >>
>>> >> Any idea why I don't see these in ModemManager?
>> >
>> > Do you still have the MM debug log around?
> I'll create a new one. Attached. But it's probably useless.
>
> There is something fishy going on here. I snooped using usbmon while
> expecting the notification, but there was nothing! So I don't think MM
> is to blame. The modem doesn't send any notification for some reason.
>
> The question is really: Why do I see the notification when using my perl
> script to monitor instead of MM? This is really odd. I just repeated
> that experiment, doing only MBIM OPEN and waiting, and I do receive the
> notification then.
>
> MM status while receiving:
>
>
> bjorn at nemi:~$ mmcli -m 0 -e
> successfully enabled the modem
> bjorn at nemi:~$ mmcli -m 0
>
> /org/freedesktop/ModemManager1/Modem/0 (device id 'ffe068d90d832eb0db22a3f72e218b42f4cec954')
> -------------------------
> Hardware | manufacturer: 'Generic'
> | model: 'MBIM [1199:68A2]'
> | revision: 'SWI9200X_03.05.19.04ap'
> | supported: 'gsm-umts, lte'
> | current: 'gsm-umts, lte'
> | equipment id: '358178040092316'
> -------------------------
> System | device: '/sys/devices/pci0000:00/0000:00:1d.7/usb4/4-4'
> | drivers: 'cdc_mbim'
> | plugin: 'Generic'
> | primary port: 'cdc-wdm0'
> -------------------------
> Numbers | own : 'unknown'
> -------------------------
> Status | lock: 'none'
> | unlock retries: 'sim-pin2 (3)'
> | state: 'registered'
> | power state: 'on'
> | access tech: 'lte'
> | signal quality: '61' (cached)
> -------------------------
> Modes | supported: 'allowed: 2g, 3g, 4g; preferred: none'
> | current: 'allowed: 2g, 3g, 4g; preferred: none'
> -------------------------
> Bands | supported: 'unknown'
> | current: 'unknown'
> -------------------------
> IP | supported: 'ipv4, ipv6, ipv4v6'
> -------------------------
> 3GPP | imei: '358178040092316'
> | enabled locks: 'sim, fixed-dialing, ph-fsim, net-pers, net-sub-pers, provider-pers, corp-pers'
> | operator id: '24201'
> | operator name: 'TELENOR'
> | registration: 'home'
> -------------------------
> SIM | path: '/org/freedesktop/ModemManager1/SIM/0'
>
>
>
>> > Was the notification received in MM but not processed? Or completely not
>> > processed?
> Nothing visible at all.
I'll check at which device-service-subscriber-list messages MM sends; we
may be incorrectly disabling SMS notifications in the modem... otherwise
I have no idea what could be happening.
>
>> > Was the modem *enabled* when you expected to receive the SMS?
> Yes. The first time was immediately after successfully sending, without
> disabling or restarting anything.
>
> And listing the messages now using MBIM_CID_SMS_READ with 3 x 0 as
> infobuffer, I see that they are indeed all received.
Are those listed when using (MBIM_SMS_FLAG_ALL = 0) in SMS_READ?
--
Aleksander
More information about the libmbim-devel
mailing list