Hi,
On Wed, Oct 29, 2008 at 08:50, Davide Berra <address@hidden> wrote:
i need to send a message with a accurate validity period, so i would like to
fill TP-VP field
with Absolute value and not with Relative value (default by gnokii).
OK, but...
So i edited common/phones/nk6510.c (my phone) sms_encode() function...
first, i changed TP-VPF (bit 4 and bit 3 of first octet) with 01 (means
Enhanced format) instead of 10 (Relative format)
.. why you use enhanced format instead of absolute format?
if (data->raw_sms->validity_indicator)
{
// req[pos] |= 0x10;
req[pos] |= 0x08;
Absolute format is:
req[pos] |= 0x18;
req[pos++] = 0x99; /* year */
req[pos++] = 0x20; /* month */
req[pos++] = 0x21; /* day */
req[pos++] = 0x50; /* hour */
req[pos++] = 0x75; /* minute */
req[pos++] = 0x03; /* second */
req[pos++] = 0x21; /* timezone */
This is not enhanced validity period format. Please refer to GSM 03.40
spec (not too old, enhanced format is pretty new).
the result is..... phone can't send message.... =(
It may not support enhanced validity period format.
What "data length" and "block length", in validity period block, means?
You used them correctly.
pkot
------------------------------------------------------------------------
Nessun virus nel messaggio in arrivo.
Controllato da AVG - http://www.avg.com
Versione: 8.0.175 / Database dei virus: 270.8.4/1753 - Data di rilascio: 28/10/2008 21.20