5 #ifdef GSM_ENABLE_NOKIA9210 10 #include "../../../misc/coding/coding.h" 11 #include "../../../gsmcomon.h" 12 #include "../../../service/gsmlogo.h" 13 #include "../../../service/gsmnet.h" 14 #include "../../../service/sms/gsmmulti.h" 15 #include "../../pfunc.h" 25 switch (Bitmap->
Type) {
27 smprintf(s,
"Getting operator logo\n");
31 smprintf(s,
"Getting startup logo\n");
34 smprintf(s,
"Getting welcome note\n");
44 smprintf(s,
"Operator logo clear/set\n");
52 size_t Width, Height, i,count=3;
54 unsigned char reqStartup[1000] = {
57 0x04, 0x00, 0x00, 0x00, 0x30, 0x00,
58 0x02, 0xc0, 0x54, 0x00, 0x03, 0xc0,
59 0xf8, 0xf8, 0x01, 0x04};
60 unsigned char reqStartupText[500] = {
63 unsigned char reqClrOp[] = {
67 switch (Bitmap->
Type) {
73 smprintf(s,
"Setting startup logo\n");
78 reqStartupText[4] = 0x02;
80 reqStartupText[i++] = 0;
81 reqStartupText[i++] = 0;
101 memcpy(req+count,
"\x00\x00\x00\x00\x00\x00", 6);
104 if (error !=
ERR_NONE)
return error;
106 if (!strcmp(Bitmap->
NetworkCode,
"000 00"))
return error;
119 req[count++] = Width;
120 req[count++] = Height;
139 smprintf(s,
"SMS message received\n");
154 #ifdef GSM_ENABLE_N71_92INCOMINGINFO 160 smprintf(s,
"Incoming SMS enabled\n");
163 smprintf(s,
"Error enabling incoming SMS\n");
181 smprintf(s,
"Enabling incoming SMS\n");
185 smprintf(s,
"Disabling incoming SMS\n");
202 #ifdef GSM_ENABLE_N71_92INCOMINGINFO 203 N9210_SetIncomingSMS(s,
TRUE);
219 #ifdef GSM_ENABLE_N71_92INCOMINGINFO 221 {N9210_ReplySetIncomingSMS,
"\x02",0x03,0x0F,ID_SetIncomingSMS },
223 {N9210_ReplyIncomingSMS,
"\x02",0x03,0x11,ID_IncomingFrame },
224 #ifdef GSM_ENABLE_CELLBROADCAST 226 {DCT3_ReplySetIncomingCB,
"\x02",0x03,0x22,ID_SetIncomingCB },
227 {DCT3_ReplyIncomingCB,
"\x02",0x03,0x23,ID_IncomingFrame },
239 {N9210_ReplySetOpLogo,
"\x0A",0x03,0xA4,ID_SetBitmap },
240 {N9210_ReplySetOpLogo,
"\x0A",0x03,0xB0,ID_SetBitmap },
267 {NULL,
"\x00",0x00,0x00,
ID_None }
327 N9210_SetIncomingSMS,
size_t PHONE_GetBitmapSize(GSM_Phone_Bitmap_Types Type, size_t Width, size_t Height)
GSM_Error DCT3DCT4_GetModel(GSM_StateMachine *s)
void CopyUnicodeString(unsigned char *Dest, const unsigned char *Source)
GSM_Error N71_92_ReplyGetBatteryCharge(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_CancelCall(GSM_StateMachine *s, int ID, gboolean all)
GSM_Error DCT3_ReplyGetIMEI(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_ReplyGetDateTime(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_DialVoice(GSM_StateMachine *s, char *number, GSM_CallShowNumber ShowNumber)
GSM_Error DCT3_DecodeSMSFrame(GSM_StateMachine *s, GSM_SMSMessage *SMS, unsigned char *buffer)
#define N6110_FRAME_HEADER
GSM_Error N71_92_SetDateTime(GSM_StateMachine *s, GSM_DateTime *date_time)
GSM_Error DCT3_GetPPM(GSM_StateMachine *s, char *value)
GSM_Error DCT3_ReplyDialCommand(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_ReplyEnableSecurity(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error GSM_DispatchMessage(GSM_StateMachine *s)
void PHONE_EncodeBitmap(GSM_Phone_Bitmap_Types Type, char *buffer, GSM_Bitmap *Bitmap)
size_t UnicodeLength(const unsigned char *str)
GSM_Error PHONE_Terminate(GSM_StateMachine *s)
GSM_Error DCT3_AnswerAllCalls(GSM_StateMachine *s)
GSM_Error DCT3_ReplySetSMSC(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_ReplyGetSMSC(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_SetSMSC(GSM_StateMachine *s, GSM_SMSC *smsc)
GSM_Error DCT3DCT4_GetFirmware(GSM_StateMachine *s)
GSM_Error N71_92_ReplyGetSignalQuality(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_GetSMSC(GSM_StateMachine *s, GSM_SMSC *smsc)
GSM_Error N71_92_GetPhoneSetting(GSM_StateMachine *s, int Request, int Setting)
GSM_Error N71_92_GetBatteryCharge(GSM_StateMachine *s, GSM_BatteryCharge *bat)
GSM_Error GSM_WaitFor(GSM_StateMachine *s, unsigned const char *buffer, size_t length, int type, int timeout, GSM_Phone_RequestID request)
GSM_Error N71_92_ReplyPhoneSetting(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_GetIMEI(GSM_StateMachine *s)
GSM_Error N61_91_ReplySetOpLogo(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_ReplySendSMSMessage(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3_SetIncomingCB(GSM_StateMachine *s, gboolean enable)
#define N7110_FRAME_HEADER
GSM_Error DCT3_SendSMSMessage(GSM_StateMachine *s, GSM_SMSMessage *sms)
void NOKIA_EncodeNetworkCode(unsigned char *buffer, const char *input)
GSM_Error DCT3_GetProductCode(GSM_StateMachine *s, char *value)
GSM_Error DCT3_ReplyNetmonitor(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3DCT4_ReplyGetModelFirmware(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error N71_92_GetSignalQuality(GSM_StateMachine *s, GSM_SignalQuality *sig)
GSM_Error NOKIA_ReplyGetPhoneString(GSM_Protocol_Message *msg, GSM_StateMachine *s)
void PHONE_GetBitmapWidthHeight(GSM_Phone_Bitmap_Types Type, size_t *width, size_t *height)
GSM_Error DCT3_GetHardware(GSM_StateMachine *s, char *value)
void * IncomingSMSUserData
GSM_Error N71_92_GetDateTime(GSM_StateMachine *s, GSM_DateTime *date_time)
unsigned char Text[2 *(GSM_BITMAP_TEXT_LENGTH+1)]
GSM_Error NOKIA_GetManufacturer(GSM_StateMachine *s)
GSM_Error DCT3_GetOriginalIMEI(GSM_StateMachine *s, char *value)
gboolean EnableIncomingSMS
GSM_Error DCT3_GetNetworkInfo(GSM_StateMachine *s, GSM_NetworkInfo *netinfo)
GSM_Error DCT3DCT4_AnswerCall(GSM_StateMachine *s, int ID)
GSM_Error DCT3_ReplySetDateTime(GSM_Protocol_Message *msg, GSM_StateMachine *s)
IncomingSMSCallback IncomingSMS
GSM_Error DCT3_ReplyGetNetworkInfo(GSM_Protocol_Message *msg, GSM_StateMachine *s)
int smprintf(GSM_StateMachine *s, const char *format,...)
GSM_Error DCT3_GetManufactureMonth(GSM_StateMachine *s, char *value)