|
|
SMS Server Tools 3 Community |
Welcome, Guest. The forum is currently read-only, but will open soon. |
Sat Oct 12, 2024 10:35 |
This topic is locked
Page: 1
Author |
Post |
|
#1 Thu Nov 05, 2009 21:29, 181 months ago.
|
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.
|
|
#2 Thu Nov 05, 2009 21:39, 181 months ago.
|
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.
|
|
#3 Thu Nov 05, 2009 21:53, 181 months ago.
|
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.
|
|
#4 Thu Nov 05, 2009 23:24, 181 months ago.
|
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:
|
|
#5 Fri Nov 06, 2009 10:15, 181 months ago.
|
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.
|
|
#6 Fri Nov 06, 2009 17:50, 181 months ago.
|
Member
Registered: Nov 2009
Location: Czech Republic
Topic owner
|
init = AT^CURC=0is the right answer. Took just over an hour of googling.
|
This topic is locked
Page: 1
Time in this board is UTC.
|
|
|
|
|
|
|