SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sun May 19, 2024 21:37
SMSTools3 Community » Help and support Bottom

[fixed in 3.1.6] Using Huawei E220 modem

  This topic is locked

Page:  1

Author Post
Member
Registered:
Nov 2009
Location: Czech Republic
Operating system name and version: Windows XP SP3 / Cygwin 1.7 beta
Version of smsd: 3.1.5
Smsd installed from: sources
Name and model of a modem / phone: Huawei E220 HSDPA USB Modem
Interface: USB (internal usb2serial)

Sending messages just works, no problem there. Receiving messages didn't work at first, communication went this way:



I tried to set check_memory_method to use CMGL (tried all values), but that didn't work either:



Finally I tried to change the code to start with AT+CMGR=0 instead of AT+CMGR=1 and it helped:



Any comments about this? Is there any other way how to achieve AT+CMGR starting from 0? I read the whole smstools website very carefully, but couldn't find any. While this works for me with one modem, it'll break if I use another one that expects indexes starting from 1.

Last little problem is with enexpected input from modem. Lines like these are appearing in log:



At first sight it looks like some status reporting. Is it safe to just ignore it?

Thanks in advance.

Member
Registered:
Nov 2009
Location: Czech Republic
Topic owner
Turns out that I didn't read so carefully after all. I din't notice that there are actually two more commands instead of one (CMGD and CMGL). Noticed just after I sent the message. Typical. :)

With check_memory_method=2 receiving messages works.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Thank you for an exemplary description of the problem.

There is a modem setting memory_start = 0 available. This should work with your setup.

I check those check_memory_method and unexpected input -troubles later.

Member
Registered:
Nov 2009
Location: Czech Republic
Topic owner
You're right, memory_start exists and works perfectly. I somehow missed it among all those other options. ;) Thank you.

And here is quick "works for me" change to make CMGL work:



Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
The CMGL test has a bug. It was seen at May 2009 and I have missed to include the fix in 3.1.5 :(. Next version will have your fix with a test if (errno == EINVAL || mnumber < 0).

Sob wrote
At first sight it looks like some status reporting. Is it safe to just ignore it?

It's a statistics data from the modem, for example RSSI is a value of signal strength.

This kind of data should be disabled. Unfortunately I do not know how to disable it, and only thing I found with fast googling was a question in Huawei Technical Forum, about how to disable it, but there was no answer.

Those messages may cause troubles if they are received while smsd is waiting an answer for some command. Hopefully this modem does not send those messages when a sending of SMS is initiated, otherwise sending may fail and smsd will then retry. In the worst case message can be sent more than once, because of an incorrect answer from the modem.

Member
Registered:
Nov 2009
Location: Czech Republic
Topic owner
init = AT^CURC=0

is the right answer. Took just over an hour of googling. :)

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.