[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SMS from AT phones -- fix
From: |
Pavel Machek |
Subject: |
SMS from AT phones -- fix |
Date: |
Thu, 25 Apr 2002 23:53:27 +0200 |
User-agent: |
Mutt/1.3.28i |
Hi!
This fixes sending sms-es from at phone. However, I'd like to know
what the right fix is. [Yes, I skip first 16 bytes and hardcode next
byte to zero. Ouch. But it works?!]
Pavel
Index: common/phones/atgen.c
===================================================================
RCS file: /cvsroot/gnokii/gnokii/common/phones/atgen.c,v
retrieving revision 1.29
diff -u -u -r1.29 atgen.c
--- common/phones/atgen.c 22 Apr 2002 16:22:46 -0000 1.29
+++ common/phones/atgen.c 25 Apr 2002 21:30:41 -0000
@@ -638,8 +639,14 @@
bin2hex(req, data->RawData->Data, data->RawData->Length);
req[data->RawData->Length * 2] = 0x1a;
req[data->RawData->Length * 2 + 1] = 0;
- dprintf("Sending frame: %s\n", req);
- if (SM_SendMessage(state, strlen(req), GOP_SendSMS, req) != GE_NONE)
return GE_NOTREADY;
+ {
+ char *s = &req[16]; /* 16 seems to be what scmxx uses */
+ // strcpy(s,
"0011000A8160404313300000FF15D37698CD06D1CB737ADA7D0635CBD379F05C04\x1a");
+ s[0] = '0';
+ s[1] = '0';
+ dprintf("Sending frame: %s\n", s);
+ if (SM_SendMessage(state, strlen(s), GOP_SendSMS, s) != GE_NONE) return
GE_NOTREADY;
+ }
return SM_BlockNoRetry(state, data, GOP_SendSMS);
}
--
(about SSSCA) "I don't say this lightly. However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
- SMS from AT phones -- fix,
Pavel Machek <=