gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Problem with AT driver.


From: Pawel Kot
Subject: RE: Problem with AT driver.
Date: Wed, 29 Jan 2003 12:08:35 +0100

>>> address@hidden 29 January 2003 04:17:02 >>>
> The problem is that the length of the message is calculated
incorrectly.
> Currently the length includes the sms message center #. In your
message
> the length command (AT+CMGS=25) should be reduced by 8 octets. I put
a
> hack in my code, and it works, but the code needs to be modified to
> include different message center formats... I will try to post a fix
> this weekend.

Correct, thanks for spotting. We have even the correct comment in the
code:
/* Length in AT mode is the length of the full message minus SMSC field
length */
The quick fix (pseudopatch) is:
+       sprintf(req, "AT+%s=%d\r", cmd, length -
data->RawSMS->MessageCenter[0] - 2);
-       sprintf(req, "AT+%s=%d\r", cmd, length - 1);

pkot





reply via email to

[Prev in Thread] Current Thread [Next in Thread]