gnokii-users
[Top][All Lists]
Advanced

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

P6510_PressOrReleaseKey doesn't work.


From: Gio De Francesco
Subject: P6510_PressOrReleaseKey doesn't work.
Date: Mon, 3 Feb 2003 15:25:51 -0700

Does anyone know what needs to be done in order to complete this function? I 
have tried all sorts of
different packets with no luck. Fixed the reg[] array but I can't figure out 
what to change it seems no
matter what I send, the phone always seems to get a [DOWN ARROW] msg and brings 
up the phonebook.

Gio


static gn_error P6510_PressOrReleaseKey(GSM_Data *data, GSM_Statemachine 
*state, bool press)
{
        unsigned char req[] = {FBUS_FRAME_HEADER, 0x11, 
                               0x00, 0x01, 
                               0x00, 0x00, 
                               0x00, 
                               0x01, 0x01, 0x43, 0x12, 0x53};
        /*
          req[5] = data->KeyCode;

          not functional yet
        */

        req[5] = press ? 0x01 : 0x02;

        SEND_MESSAGE_BLOCK(P6510_MSG_KEYPRESS, 11);
}






reply via email to

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