-
-1.see Smart Messaging 2.0 for info, what the DMCP is
-
-2.I didn't have success in changing menus via cable (without sending SMS).
- Here is example foogle funtion. You will see only "Nokia service update failed"
-------------------------------------
-int foogle(char *argv[])
-{
- GSM_NetworkInfo NetworkInfo;
- int i;
-
- char buffer[100]= { 0x0c, 0x01,
- 0x06, /* User Data Header Length */
- 0x05, /* IEI: application port addressing scheme, 16 bit address */
- 0x04, /* IEDL (IED length ?) */
- 0x15, /* destination address: high byte */
- 0x84, /* destination address: low byte */
- 0x00, /* originator address: high byte */
- 0x00}; /* originator address: low byte */
-
- int MSGLEN=9;
-
- /* Initialise the code for the GSM interface. */
-
- fbusinit(NULL);
-
- buffer[MSGLEN++]='B';
- buffer[MSGLEN++]='O';
- buffer[MSGLEN++]='D';
- buffer[MSGLEN++]='Y';
- buffer[MSGLEN++]=':';
- buffer[MSGLEN++]=10;
- buffer[MSGLEN++]='I';
- buffer[MSGLEN++]='A';
- buffer[MSGLEN++]=':';
- buffer[MSGLEN++]=10;
- buffer[MSGLEN++]='O';
- buffer[MSGLEN++]='P';
- buffer[MSGLEN++]='E';
- buffer[MSGLEN++]='R';
- buffer[MSGLEN++]=' ';
- buffer[MSGLEN++]='a';
- buffer[MSGLEN++]='l';
- buffer[MSGLEN++]=10;
- buffer[MSGLEN++]='L';
- buffer[MSGLEN++]='i';
- buffer[MSGLEN++]='n';
- buffer[MSGLEN++]='k';
- buffer[MSGLEN++]=10;
- buffer[MSGLEN++]='N';
- buffer[MSGLEN++]=10;
- buffer[MSGLEN++]=10;
- buffer[MSGLEN++]='M';
- buffer[MSGLEN++]=' ';
- buffer[MSGLEN++]='S';
- buffer[MSGLEN++]='M';
- buffer[MSGLEN++]='S';
- buffer[MSGLEN++]=10;
- buffer[MSGLEN++]='+';
- buffer[MSGLEN++]='4';
- buffer[MSGLEN++]='8';
- buffer[MSGLEN++]='6';
- buffer[MSGLEN++]='0';
- buffer[MSGLEN++]='2';
- buffer[MSGLEN++]='9';
- buffer[MSGLEN++]='5';
- buffer[MSGLEN++]='1';
- buffer[MSGLEN++]='1';
- buffer[MSGLEN++]='1';
- buffer[MSGLEN++]='1';
- buffer[MSGLEN++]='/';
- buffer[MSGLEN++]='+';
- buffer[MSGLEN++]='4';
- buffer[MSGLEN++]='8';
- buffer[MSGLEN++]='6';
- buffer[MSGLEN++]='0';
- buffer[MSGLEN++]='2';
- buffer[MSGLEN++]='9';
- buffer[MSGLEN++]='5';
- buffer[MSGLEN++]='1';
- buffer[MSGLEN++]='1';
- buffer[MSGLEN++]='1';
- buffer[MSGLEN++]='1';
-
- for (i=0;i<MSGLEN;i++) {
- fprintf(stdout,_("%c"),buffer[i]);
- }
-
- Protocol->SendMessage(MSGLEN, 0x12, buffer);
- GSM->GetNetworkInfo(&NetworkInfo); //need to make something
-
-
- GSM->Terminate();
-
- return 0;
-}
------------------------------------
-3.to change via SMS - read parts of email sent by Martin Lucina [mato@kotelna.sk]
------------------------------------
-
-1. First of all, use the OPER (Operator) services rather than the Nokia
- services. There's probably no reason why you couldn't use either but
- there may be extra hooks in the phone firmware regarding Nokia
- services that I don't know about.
-
-2. Make sure that "Operator access number 1" and "Operator access number
- 2" are set correctly in the services menu. The former should be set
- to the SMS centre the messages you send are going to come from
- (important, send yourself a test message and check it's details, some
- operators set the sending SMSC number to one different from the one
- you originally sent the message to). The latter should be the number
- of the MS you are sending the SMS from.
-
-3. Don't send the messages as binary NBS messsages using the UDH. I
- haven't been able to get this method to work and besides, the //SCK
- compatibility header works just fine.
-
- Also, while I haven't seen this, it's possible that if you send a
- message in binary format, the destination MS will reply in binary
- format. This makes the reply useless if you are sending from another
- NBS-aware phone, since the NBS router will most likely silently
- discard it (or try to forward it to the phones TTML/DMCP server,
- which won't help either).
-
- If you send the messages as text, the replies I've seen also come
- back as text so you can retrieve them from the phone in the normal
- fashion.
-
-One caveat I've noticed with sending NBS messages using the //SCK
-compatibility header is that the NBS grammar in the Nokia SM spec
-version 2 contradicts the grammar in the original Intel NBS spec. Nokia
-says you can using either a newline or space as the delimiter after
-"//SCK", it turns out that you _must_ use a space (as stated in the
-Intel spec). Of course you can still stick a newline in afterwards.
-
-I have attached a test file that will add two menu items that send SMS
-messages to your services menu. I send this to the phone using
-
-$ sendsms +6421XXXXXX < addsms
-
-[...]
-
-Cheers,
-
---
-Martin Lucina http://www.kotelna.sk/mato/ Wellington, New Zealand
-I've always been mad I know I've been mad like the most of us are
-Pretty hard to explain why you're a madman even if you're not mad
+\r
+1.see Smart Messaging 2.0 for info, what the DMCP is\r
+\r
+2.I didn't have success in changing menus via cable (without sending SMS).\r
+ Here is example foogle funtion. You will see only "Nokia service update failed"\r
+------------------------------------\r
+int foogle(char *argv[])\r
+{\r
+ GSM_NetworkInfo NetworkInfo;\r
+ int i;\r
+\r
+ char buffer[100]= { 0x0c, 0x01,\r
+ 0x06, /* User Data Header Length */\r
+ 0x05, /* IEI: application port addressing scheme, 16 bit address */\r
+ 0x04, /* IEDL (IED length ?) */\r
+ 0x15, /* destination address: high byte */\r
+ 0x84, /* destination address: low byte */\r
+ 0x00, /* originator address: high byte */\r
+ 0x00}; /* originator address: low byte */\r
+\r
+ int MSGLEN=9;\r
+\r
+ /* Initialise the code for the GSM interface. */ \r
+\r
+ fbusinit(NULL);\r
+\r
+ buffer[MSGLEN++]='B';\r
+ buffer[MSGLEN++]='O'; \r
+ buffer[MSGLEN++]='D';\r
+ buffer[MSGLEN++]='Y';\r
+ buffer[MSGLEN++]=':';\r
+ buffer[MSGLEN++]=10;\r
+ buffer[MSGLEN++]='I';\r
+ buffer[MSGLEN++]='A';\r
+ buffer[MSGLEN++]=':';\r
+ buffer[MSGLEN++]=10;\r
+ buffer[MSGLEN++]='O';\r
+ buffer[MSGLEN++]='P';\r
+ buffer[MSGLEN++]='E';\r
+ buffer[MSGLEN++]='R';\r
+ buffer[MSGLEN++]=' ';\r
+ buffer[MSGLEN++]='a';\r
+ buffer[MSGLEN++]='l';\r
+ buffer[MSGLEN++]=10;\r
+ buffer[MSGLEN++]='L';\r
+ buffer[MSGLEN++]='i';\r
+ buffer[MSGLEN++]='n';\r
+ buffer[MSGLEN++]='k';\r
+ buffer[MSGLEN++]=10;\r
+ buffer[MSGLEN++]='N';\r
+ buffer[MSGLEN++]=10;\r
+ buffer[MSGLEN++]=10;\r
+ buffer[MSGLEN++]='M';\r
+ buffer[MSGLEN++]=' ';\r
+ buffer[MSGLEN++]='S';\r
+ buffer[MSGLEN++]='M';\r
+ buffer[MSGLEN++]='S';\r
+ buffer[MSGLEN++]=10;\r
+ buffer[MSGLEN++]='+';\r
+ buffer[MSGLEN++]='4';\r
+ buffer[MSGLEN++]='8';\r
+ buffer[MSGLEN++]='6';\r
+ buffer[MSGLEN++]='0';\r
+ buffer[MSGLEN++]='2';\r
+ buffer[MSGLEN++]='9';\r
+ buffer[MSGLEN++]='5';\r
+ buffer[MSGLEN++]='1';\r
+ buffer[MSGLEN++]='1';\r
+ buffer[MSGLEN++]='1';\r
+ buffer[MSGLEN++]='1';\r
+ buffer[MSGLEN++]='/';\r
+ buffer[MSGLEN++]='+';\r
+ buffer[MSGLEN++]='4';\r
+ buffer[MSGLEN++]='8';\r
+ buffer[MSGLEN++]='6';\r
+ buffer[MSGLEN++]='0';\r
+ buffer[MSGLEN++]='2';\r
+ buffer[MSGLEN++]='9';\r
+ buffer[MSGLEN++]='5';\r
+ buffer[MSGLEN++]='1';\r
+ buffer[MSGLEN++]='1';\r
+ buffer[MSGLEN++]='1';\r
+ buffer[MSGLEN++]='1';\r
+\r
+ for (i=0;i<MSGLEN;i++) {\r
+ fprintf(stdout,_("%c"),buffer[i]);\r
+ }\r
+\r
+ Protocol->SendMessage(MSGLEN, 0x12, buffer);\r
+ GSM->GetNetworkInfo(&NetworkInfo); //need to make something\r
+\r
+ \r
+ GSM->Terminate();\r
+\r
+ return 0;\r
+}\r
+-----------------------------------\r
+3.to change via SMS - read parts of email sent by Martin Lucina [mato@kotelna.sk]\r
+-----------------------------------\r
+\r
+1. First of all, use the OPER (Operator) services rather than the Nokia\r
+ services. There's probably no reason why you couldn't use either but\r
+ there may be extra hooks in the phone firmware regarding Nokia\r
+ services that I don't know about.\r
+\r
+2. Make sure that "Operator access number 1" and "Operator access number\r
+ 2" are set correctly in the services menu. The former should be set\r
+ to the SMS centre the messages you send are going to come from\r
+ (important, send yourself a test message and check it's details, some\r
+ operators set the sending SMSC number to one different from the one\r
+ you originally sent the message to). The latter should be the number\r
+ of the MS you are sending the SMS from.\r
+\r
+3. Don't send the messages as binary NBS messsages using the UDH. I\r
+ haven't been able to get this method to work and besides, the //SCK\r
+ compatibility header works just fine. \r
+ \r
+ Also, while I haven't seen this, it's possible that if you send a\r
+ message in binary format, the destination MS will reply in binary\r
+ format. This makes the reply useless if you are sending from another\r
+ NBS-aware phone, since the NBS router will most likely silently\r
+ discard it (or try to forward it to the phones TTML/DMCP server,\r
+ which won't help either). \r
+ \r
+ If you send the messages as text, the replies I've seen also come\r
+ back as text so you can retrieve them from the phone in the normal\r
+ fashion.\r
+\r
+One caveat I've noticed with sending NBS messages using the //SCK\r
+compatibility header is that the NBS grammar in the Nokia SM spec\r
+version 2 contradicts the grammar in the original Intel NBS spec. Nokia\r
+says you can using either a newline or space as the delimiter after\r
+"//SCK", it turns out that you _must_ use a space (as stated in the\r
+Intel spec). Of course you can still stick a newline in afterwards.\r
+\r
+I have attached a test file that will add two menu items that send SMS\r
+messages to your services menu. I send this to the phone using\r
+\r
+$ sendsms +6421XXXXXX < addsms\r
+\r
+[...]\r
+\r
+Cheers,\r
+\r
+-- \r
+Martin Lucina http://www.kotelna.sk/mato/ Wellington, New Zealand \r
+I've always been mad I know I've been mad like the most of us are \r
+Pretty hard to explain why you're a madman even if you're not mad \r