Re: gammu getallsms returns nothing for Huawei E303 modem

Hendrik Greving <[email protected]> Mon, 21 Nov 2016 08:06:06 -0800
Newsgroups gmane.linux.drivers.gammu
Message-ID <CAB1qr4GNAfhrQGDyx=L-dGYqdc2CEjZoTC8u2sZoXpk5D2=kLw@mail.gmail.com>
gammu is configured correctly, see above, device /dev/ttyUSB1

The reason gammu doesn't see any message I think I've found is mentioned in
this thread:
https://community.hologram.io/t/at-commands-with-e303-read-sms/107/3

There is some kind of internal modem storage for SMS the Huawei E303 uses
and that storage is not accessible via AT commands. I have tried
AT+CPMS="ME", "ME" "ME" and well as AT+CPMS="SM", "SM" "SM" (the modem only
supports SM and ME). Both have no messages, but the web interface shows
there are. AT+CMGL="ALL" also returns zero. I think this is why gammu also
returns zero, I debugged the gammu code a little bit and I saw that it is
basically referring to AT messages.

Anybody know how to get AT based SMS messages from the Huawei E303 modem?

On Mon, Nov 21, 2016 at 7:43 AM, gilberto dos santos alves <[email protected]
> wrote:

> look your dmesg or usr lsusb and use vendor:device . generally eorks too.
>
> Em 20/11/2016 16:02, "Hendrik Greving" <[email protected]> escreveu:
>
>> Hi, sorry should have posted this. I have
>>
>> [gammu]
>>
>> port = /dev/ttyUSB1
>> model =
>> connection = at19200
>> synchronizetime = yes
>> logfile =
>> logformat = nothing
>> use_locking =
>> gammuloc =
>>
>> I have also tried ttyUSB2 and ttyUSB3. ttyUSB3 behaves the same as
>> ttyUSB1, while ttyUSB2 doesn't work at all (timeout).
>>
>>
>> On Sun, Nov 20, 2016 at 9:44 AM, gilberto dos santos alves <
>> [email protected]> wrote:
>>
>>> hi. in your getallsms explicity what is your gammuc or config for use.
>>> home/your-user or /etc/gammurc
>>>
>>> Em 20/11/2016 15:37, "Hendrik Greving" <[email protected]> escreveu:
>>>
>>>> Hello,
>>>>
>>>> I am using a Huawei E303 3G Dongle with Ubuntu 16.04 (and/or nanopi
>>>> system behaves identically as below). I am doing the following:
>>>>
>>>> 1) Disable mode switching in /etc/usb_modeswitch.conf 2) Connect dongle
>>>> 3) sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -V 0x12d1 -P 0x14dc -M
>>>> "55534243000000000000000000000011060000000000000000000000000000"
>>>>
>>>> I now have /dev/ttyUSB1, /dev/ttyUSB2, /dev/ttyUSB3 (/dev/ttyUSB0 is
>>>> used by another serial device)
>>>>
>>>> I got the latest gammu -v 1.37.91. I can send SMS by
>>>>
>>>> echo "BLAH" | sudo gammu sendsms TEXT +1##########
>>>>
>>>> however, "sudo gammu getallsms" returns:
>>>>
>>>> 0 SMS parts in 0 SMS sequences
>>>>
>>>> however there should already be SMS available and I can see them when
>>>> switching the dongle to ethernet mode
>>>>
>>>> 1) sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -V 0x12d1 -P 0x14dc -M
>>>> "55534243123456780000000000000a11062000000000000100000000000000" 2)
>>>> http://192.168.1.1 -> check SMS in web interface
>>>>
>>>> before I debug gammu and/or manual AT commands, anybody have an idea
>>>> what could be wrong why I am not able to receive SMS using gammu?
>>>>
>>>> Thank you, Hendrik
>>>>
>>>> ------------------------------------------------------------
>>>> ------------------
>>>>
>>>> _______________________________________________
>>>> Gammu-users mailing list - https://lists.sourceforge.net/
>>>> lists/listinfo/gammu-users
>>>>
>>>>
>>> ------------------------------------------------------------
>>> ------------------
>>>
>>> _______________________________________________
>>> Gammu-users mailing list - https://lists.sourceforge.net/
>>> lists/listinfo/gammu-users
>>>
>>>
>>
>> ------------------------------------------------------------
>> ------------------
>>
>> _______________________________________________
>> Gammu-users mailing list - https://lists.sourceforge.net/
>> lists/listinfo/gammu-users
>>
>>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> Gammu-users mailing list - https://lists.sourceforge.net/
> lists/listinfo/gammu-users
>
>

------------------------------------------------------------------------------

_______________________________________________
Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users