author | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-07 17:24:40 (UTC) |
commit | 88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22 (patch) (unidiff) | |
tree | 6331418973714243beb674abc87692277b83869d /gammu/emb/common/phone/symbian | |
parent | ef8a09ce74ad3f0a51484d03fdf009bd5b3677bf (diff) | |
download | kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.zip kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.gz kdepimpi-88b0d33b8b0b1f6ae320cfc863ca6a47fa8fec22.tar.bz2 |
Initial revision
Diffstat (limited to 'gammu/emb/common/phone/symbian') (more/less context) (show whitespace changes)
-rw-r--r-- | gammu/emb/common/phone/symbian/mroutgen.c | 220 | ||||
-rw-r--r-- | gammu/emb/common/phone/symbian/mroutgen.h | 29 |
2 files changed, 249 insertions, 0 deletions
diff --git a/gammu/emb/common/phone/symbian/mroutgen.c b/gammu/emb/common/phone/symbian/mroutgen.c new file mode 100644 index 0000000..2c339be --- a/dev/null +++ b/gammu/emb/common/phone/symbian/mroutgen.c | |||
@@ -0,0 +1,220 @@ | |||
1 | /* (c) 2003 by Marcin Wiacek */ | ||
2 | /* EXPERIMENTAL. NOT FUNCTIONAL */ | ||
3 | |||
4 | #include <string.h> | ||
5 | #include <time.h> | ||
6 | |||
7 | #include "../../gsmcomon.h" | ||
8 | #include "../../gsmstate.h" | ||
9 | #include "../../misc/coding/coding.h" | ||
10 | #include "../../service/gsmmisc.h" | ||
11 | |||
12 | #ifdef GSM_ENABLE_MROUTERGEN | ||
13 | |||
14 | GSM_Error MROUTERGEN_StartModem(GSM_StateMachine *s) | ||
15 | { | ||
16 | return ERR_NONE; | ||
17 | } | ||
18 | |||
19 | GSM_Error MROUTERGEN_Initialise(GSM_StateMachine *s) | ||
20 | { | ||
21 | |||
22 | unsigned char req2[]={0xFF,0x03,0x80,0xFD,0x04,0x01,0x00,0x09,0x11, | ||
23 | 0x05,0x00,0x01,0x03,0x77,0xBC}; | ||
24 | |||
25 | unsigned char req0[]={ | ||
26 | 0xFF,0x7D,0x23,0xC0,0x21,0x7D,0x21,0x7D,0x24,0x7D, | ||
27 | 0x20,0x7D,0x2E,0x7D,0x22,0x7D,0x26,0x7D,0x20,0x7D, | ||
28 | 0x20,0x7D,0x20,0x7D,0x20,0x7D,0x27,0x7D,0x22,0x7D, | ||
29 | 0x28,0x7D,0x22,0x69,0x27, | ||
30 | 0x7E, | ||
31 | |||
32 | 0x7E, | ||
33 | 0xFF,0x7D,0x23,0xC0,0x21,0x7D,0x22,0x7D,0x21,0x7D, | ||
34 | 0x20,0x7D,0x34,0x7D,0x25,0x7D,0x26,0x87,0xB9,0x7D, | ||
35 | 0x28,0xCF,0x7D,0x22,0x7D,0x26,0x7D,0x20,0x7D,0x20, | ||
36 | 0x7D,0x20,0x7D,0x20,0x7D,0x27,0x7D,0x22,0x7D,0x28, | ||
37 | 0x7D,0x22,0x82,0xB0, | ||
38 | 0x7E, | ||
39 | |||
40 | 0x7E, | ||
41 | 0xFF,0x7D,0x23,0xC0,0x21,0x7D,0x21,0x7D,0x24,0x7D, | ||
42 | 0x20,0x7D,0x2E,0x7D,0x22,0x7D,0x26,0x7D,0x20,0x7D, | ||
43 | 0x20,0x7D,0x20,0x7D,0x20,0x7D,0x27,0x7D,0x22,0x7D, | ||
44 | 0x28,0x7D,0x22,0x69,0x27, | ||
45 | 0x7E, | ||
46 | |||
47 | 0x7E, | ||
48 | 0xFF,0x7D,0x23,0xC0,0x21,0x7D,0x22,0x7D,0x21,0x7D, | ||
49 | 0x20,0x7D,0x34,0x7D,0x25,0x7D,0x26,0x87,0xB9,0x7D, | ||
50 | 0x28,0xCF,0x7D,0x22,0x7D,0x26,0x7D,0x20,0x7D,0x20, | ||
51 | 0x7D,0x20,0x7D,0x20,0x7D,0x27,0x7D,0x22,0x7D,0x28, | ||
52 | 0x7D,0x22,0x82,0xB0}; | ||
53 | |||
54 | unsigned char req[]={0x2F,0x45,0x00,0x00,0x34,0x00,0xC6, | ||
55 | 0x00,0x00,0x0A,0x0D,0x59,0xB4,0xA9,0xFE,0x01, | ||
56 | 0x44,0xA9,0xFE,0x01,0x0A,0x04,0x09,0x0B,0xB8, | ||
57 | 0x10,0x00,0x02,0x79,0x69,0x81,0x74,0x99,0x50, | ||
58 | 0x18,0x60,0x00,0x9D,0x0C,0x00,0x00,0x08,0x00, | ||
59 | 0x00,0x00,0x12,0x00,0x41,0x00,0x01,0x14,0x00, | ||
60 | 0x00,0xBA,0x4A}; | ||
61 | |||
62 | unsigned char req3[]={0x2D,0x5C,0x0D,0xEC,0x4C,0x10,0x26,0x08,0x00, | ||
63 | 0x00,0x00,0x12,0x00,0x15,0x00,0x01,0x08,0x00,0x00, | ||
64 | 0xAD,0xDE}; | ||
65 | smprintf(s,"writing\n"); | ||
66 | GSM_WaitFor (s, req0, 164, 0x00, 200, ID_Initialise); | ||
67 | smprintf(s,"writing\n"); | ||
68 | GSM_WaitFor (s, req3, 21, 0x00, 200, ID_Initialise); | ||
69 | GSM_WaitFor (s, req, 55, 0x00, 200, ID_Initialise); | ||
70 | |||
71 | GSM_WaitFor (s, req2, 15, 0x00, 200, ID_Initialise); | ||
72 | |||
73 | |||
74 | while (1) { | ||
75 | GSM_ReadDevice(s,false); | ||
76 | } | ||
77 | |||
78 | |||
79 | |||
80 | while (1) { | ||
81 | GSM_ReadDevice(s,false); | ||
82 | } | ||
83 | |||
84 | |||
85 | return ERR_UNKNOWN; | ||
86 | } | ||
87 | |||
88 | static GSM_Reply_Function MROUTERGENReplyFunctions[] = { | ||
89 | {NULL, "\x00",0x00,0x00,ID_None } | ||
90 | }; | ||
91 | |||
92 | GSM_Phone_Functions MROUTERGENPhone = { | ||
93 | "mrouter", | ||
94 | MROUTERGENReplyFunctions, | ||
95 | MROUTERGEN_Initialise, | ||
96 | NONEFUNCTION, /* Terminate */ | ||
97 | GSM_DispatchMessage, | ||
98 | NOTSUPPORTED, /* ShowStartInfo */ | ||
99 | NONEFUNCTION, /* GetManufacturer */ | ||
100 | NONEFUNCTION, /* GetModel */ | ||
101 | NONEFUNCTION, /* GetFirmware */ | ||
102 | NOTIMPLEMENTED, /* GetIMEI */ | ||
103 | NOTSUPPORTED, /* GetOriginalIMEI */ | ||
104 | NOTSUPPORTED, /* GetManufactureMonth*/ | ||
105 | NOTSUPPORTED, /* GetProductCode */ | ||
106 | NOTSUPPORTED, /* GetHardware */ | ||
107 | NOTSUPPORTED, /* GetPPM */ | ||
108 | NOTSUPPORTED, /* GetSIMIMSI */ | ||
109 | NOTSUPPORTED, /* GetDateTime */ | ||
110 | NOTSUPPORTED, /* SetDateTime */ | ||
111 | NOTSUPPORTED, /* GetAlarm */ | ||
112 | NOTSUPPORTED, /* SetAlarm */ | ||
113 | NOTSUPPORTED, /* GetLocale */ | ||
114 | NOTSUPPORTED, /* SetLocale */ | ||
115 | NOTSUPPORTED, /* PressKey */ | ||
116 | NOTSUPPORTED, /* Reset */ | ||
117 | NOTSUPPORTED, /* ResetPhoneSettings*/ | ||
118 | NOTSUPPORTED, /* EnterSecurityCode*/ | ||
119 | NOTSUPPORTED, /* GetSecurityStatus*/ | ||
120 | NOTSUPPORTED, /* GetDisplayStatus*/ | ||
121 | NOTSUPPORTED, /* SetAutoNetworkLogin*/ | ||
122 | NOTSUPPORTED, /* GetBatteryCharge*/ | ||
123 | NOTSUPPORTED, /* GetSignalQuality*/ | ||
124 | NOTSUPPORTED, /* GetNetworkInfo */ | ||
125 | NOTSUPPORTED, /* GetCategory */ | ||
126 | NOTSUPPORTED, /* GetCategoryStatus */ | ||
127 | NOTSUPPORTED, /* GetMemoryStatus */ | ||
128 | NOTSUPPORTED, /* GetMemory */ | ||
129 | NOTSUPPORTED, /* GetNextMemory */ | ||
130 | NOTSUPPORTED, /* SetMemory */ | ||
131 | NOTSUPPORTED, /* AddMemory */ | ||
132 | NOTSUPPORTED, /* DeleteMemory */ | ||
133 | NOTIMPLEMENTED, /* DeleteAllMemory */ | ||
134 | NOTSUPPORTED, /* GetSpeedDial */ | ||
135 | NOTSUPPORTED, /* SetSpeedDial */ | ||
136 | NOTSUPPORTED, /* GetSMSC */ | ||
137 | NOTSUPPORTED, /* SetSMSC */ | ||
138 | NOTSUPPORTED, /* GetSMSStatus */ | ||
139 | NOTSUPPORTED, /* GetSMS */ | ||
140 | NOTSUPPORTED, /* GetNextSMS */ | ||
141 | NOTSUPPORTED, /* SetSMS */ | ||
142 | NOTSUPPORTED, /* AddSMS */ | ||
143 | NOTSUPPORTED, /* DeleteSMS */ | ||
144 | NOTSUPPORTED, /* SendSMSMessage */ | ||
145 | NOTSUPPORTED, /* SendSavedSMS */ | ||
146 | NOTSUPPORTED, /* SetIncomingSMS */ | ||
147 | NOTSUPPORTED, /* SetIncomingCB */ | ||
148 | NOTSUPPORTED, /* GetSMSFolders */ | ||
149 | NOTSUPPORTED, /* AddSMSFolder */ | ||
150 | NOTSUPPORTED, /* DeleteSMSFolder */ | ||
151 | NOTSUPPORTED, /* DialVoice */ | ||
152 | NOTSUPPORTED, /* AnswerCall */ | ||
153 | NOTSUPPORTED, /* CancelCall */ | ||
154 | NOTSUPPORTED, /* HoldCall */ | ||
155 | NOTSUPPORTED, /* UnholdCall */ | ||
156 | NOTSUPPORTED, /* ConferenceCall */ | ||
157 | NOTSUPPORTED, /* SplitCall */ | ||
158 | NOTSUPPORTED, /* TransferCall */ | ||
159 | NOTSUPPORTED, /* SwitchCall */ | ||
160 | NOTSUPPORTED, /* GetCallDivert */ | ||
161 | NOTSUPPORTED, /* SetCallDivert */ | ||
162 | NOTSUPPORTED, /* CancelAllDiverts*/ | ||
163 | NOTSUPPORTED, /* SetIncomingCall */ | ||
164 | NOTSUPPORTED, /* SetIncomingUSSD */ | ||
165 | NOTSUPPORTED, /* SendDTMF */ | ||
166 | NOTSUPPORTED, /* GetRingtone */ | ||
167 | NOTSUPPORTED, /* SetRingtone */ | ||
168 | NOTSUPPORTED, /* GetRingtonesInfo*/ | ||
169 | NOTSUPPORTED, /* DeleteUserRingtones*/ | ||
170 | NOTSUPPORTED, /* PlayTone */ | ||
171 | NOTSUPPORTED, /* GetWAPBookmark */ | ||
172 | NOTSUPPORTED, /* SetWAPBookmark */ | ||
173 | NOTSUPPORTED, /* DeleteWAPBookmark */ | ||
174 | NOTSUPPORTED, /* GetWAPSettings */ | ||
175 | NOTSUPPORTED, /* SetWAPSettings */ | ||
176 | NOTSUPPORTED, /* GetMMSSettings */ | ||
177 | NOTSUPPORTED, /* SetMMSSettings */ | ||
178 | NOTSUPPORTED, /* GetSyncMLSettings*/ | ||
179 | NOTSUPPORTED, /* SetSyncMLSettings*/ | ||
180 | NOTSUPPORTED, /* GetChatSettings */ | ||
181 | NOTSUPPORTED, /* SetChatSettings */ | ||
182 | NOTSUPPORTED, /* GetBitmap */ | ||
183 | NOTSUPPORTED, /* SetBitmap */ | ||
184 | NOTSUPPORTED, /* GetToDoStatus */ | ||
185 | NOTSUPPORTED, /* GetToDo */ | ||
186 | NOTSUPPORTED, /* GetNextToDo */ | ||
187 | NOTSUPPORTED, /* SetToDo */ | ||
188 | NOTSUPPORTED, /* AddToDo */ | ||
189 | NOTSUPPORTED, /* DeleteToDo */ | ||
190 | NOTSUPPORTED, /* DeleteAllToDo */ | ||
191 | NOTSUPPORTED, /* GetCalendarStatus*/ | ||
192 | NOTSUPPORTED, /* GetCalendar */ | ||
193 | NOTSUPPORTED, /* GetNextCalendar */ | ||
194 | NOTSUPPORTED, /* SetCalendar */ | ||
195 | NOTSUPPORTED, /* AddCalendar */ | ||
196 | NOTSUPPORTED, /* DeleteCalendar */ | ||
197 | NOTSUPPORTED, /* DeleteAllCalendar*/ | ||
198 | NOTSUPPORTED, /* GetCalendarSettings*/ | ||
199 | NOTSUPPORTED, /* SetCalendarSettings*/ | ||
200 | NOTSUPPORTED, /* GetNote */ | ||
201 | NOTSUPPORTED, /* GetProfile */ | ||
202 | NOTSUPPORTED, /* SetProfile */ | ||
203 | NOTSUPPORTED, /* GetFMStation */ | ||
204 | NOTSUPPORTED, /* SetFMStation */ | ||
205 | NOTSUPPORTED, /* ClearFMStations */ | ||
206 | NOTSUPPORTED, /* GetNextFileFolder*/ | ||
207 | NOTSUPPORTED, /* GetFilePart */ | ||
208 | NOTSUPPORTED, /* AddFilePart */ | ||
209 | NOTSUPPORTED, /* GetFileSystemStatus*/ | ||
210 | NOTSUPPORTED, /* DeleteFile */ | ||
211 | NOTSUPPORTED, /* AddFolder */ | ||
212 | NOTSUPPORTED, /* GetGPRSAccessPoint*/ | ||
213 | NOTSUPPORTED /* SetGPRSAccessPoint*/ | ||
214 | }; | ||
215 | |||
216 | #endif | ||
217 | |||
218 | /* How should editor hadle tabs in this file? Add editor commands here. | ||
219 | * vim: noexpandtab sw=8 ts=8 sts=8: | ||
220 | */ | ||
diff --git a/gammu/emb/common/phone/symbian/mroutgen.h b/gammu/emb/common/phone/symbian/mroutgen.h new file mode 100644 index 0000000..af38fe5 --- a/dev/null +++ b/gammu/emb/common/phone/symbian/mroutgen.h | |||
@@ -0,0 +1,29 @@ | |||
1 | /* (c) 2003 by Marcin Wiacek */ | ||
2 | |||
3 | #ifndef mroutgen_h | ||
4 | #define mroutgen_h | ||
5 | |||
6 | #include "../../gsmcomon.h" | ||
7 | #include "../../gsmstate.h" | ||
8 | #include "../../service/gsmmisc.h" | ||
9 | #include "../../service/sms/gsmsms.h" | ||
10 | |||
11 | #ifndef GSM_USED_MROUTERBLUE | ||
12 | # define GSM_USED_MROUTERBLUE | ||
13 | #endif | ||
14 | #ifndef GSM_USED_IRDAMROUTER | ||
15 | # define GSM_USED_IRDAMROUTER | ||
16 | #endif | ||
17 | #ifndef GSM_USED_BLUEMROUTER | ||
18 | # define GSM_USED_BLUEMROUTER | ||
19 | #endif | ||
20 | |||
21 | typedef struct { | ||
22 | int fake; | ||
23 | } GSM_Phone_MROUTERGENData; | ||
24 | |||
25 | #endif | ||
26 | |||
27 | /* How should editor hadle tabs in this file? Add editor commands here. | ||
28 | * vim: noexpandtab sw=8 ts=8 sts=8: | ||
29 | */ | ||