4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
7 * Sooyoung Ha <yoosah.ha@samsung.com>
8 * Sungmin Ha <sungmin82.ha@samsung.com>
9 * YeongKyoon Lee <yeongkyoon.lee@samsung.com>
11 * This library is free software; you can redistribute it and/or modify it under
12 * the terms of the GNU Lesser General Public License as published by the
13 * Free Software Foundation; either version 2.1 of the License, or (at your option)
16 * This library is distributed in the hope that it will be useful, but WITHOUT ANY
17 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
19 * License for more details.
21 * You should have received a copy of the GNU Lesser General Public License
22 * along with this library; if not, write to the Free Software Foundation, Inc., 51
23 * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
30 #ifndef _vgsm_phone_h_
31 #define _vgsm_phone_h_
36 * I858 TAPI API´Â I519/I819¿Í Å©°Ô ´Ù¸£Áö ¾Ê´Ù. ¶ÇÇÑ
37 * 1. ÇÁ·ÎÁ§Æ®ÀÇ µ¿½Ã ÁøÇàÀ¸·Î ÀÎÇÑ ±¸ºÐ ÇÊ¿ä.
38 * 2. GSM Only Mode¸¸¿¡¼¸¸ ÇÊ¿äÇÑ ³»¿ëµéÀ» À§ÇÑ ½Å±Ô ³»¿ë
39 * À» À§Çؼ µð·ºÅ丮´Â ºÐ¸®ÇÏ¿´½¿.
42 * Dialer, PhoneBookµîÀÇ phone client¿Í phone server¿ÍÀÇ µ¥ÀÌŸ ±³È¿¡
43 * ÇÊ¿äÇÑ ÆÐŶÀÇ ±âº» ±¸Á¶´Â µ¿ÀÏÇÏ¸ç °¢°¢¿¡ ´ëÇÑ ³»¿ëÀº ¾Æ·¡ÀÇ ÁÖ¼®À»
46 * - TAPI packet ±âº» ±¸Á¶. TAPI packetÀÇ RX, TX´Â ¾Æ·¡¿Í °°ÀÌ µ¿ÀÏÇÑ ÇüÅÂ
47 * +--------+--------+-------------+---------------------------------------+
48 * |MAIN CMD|SUB CMD | Data Length | DATA |
49 * | 1byte | 1byte | 2bytes | Data Length's Byte(s) |
50 * +--------+--------+-------------+---------------------------------------+
52 * Data Length´Â DATAÀÇ ±æÀ̸¸À» ÀǹÌÇÑ´Ù. Áï µ¥ÀÌŸ°¡ ¾ø´Â °æ¿ì¿¡´Â Length´Â
61 #define GSM_NETWORK 0x02
65 #define GSM_DISPLAY 0x06
69 #define GSM_SOUND 0x0A
71 #define GSM_SERVICEMODE 0x0C
72 #define GSM_EMULATOR 0x0D
74 #define GSM_POWER 0x0F
75 #define GSM_CLIENT 0x10
76 #define RESTORE_EI_DATA 0x11
78 #define FUNC_EDB_IND 0x01
79 #define FUNC_SINGLEDB_IND 0x02
81 /* --------------------------------------------------------------------------
83 --------------------------------------------------------------------------*/
84 #define GSM_CLIENT_RELEASE_NOTI 0x01
85 #define GSM_CLIENT_RELEASE_NOTI_ACK 0x02
86 /* --------------------------------------------------------------------------
87 GSM_CALL : Call Control Functions
88 --------------------------------------------------------------------------*/
91 * Length : Caller ID ±æÀÌ(VAR)
95 #define GSM_CALL_MAKE_REQ 0x21
102 #define GSM_CALL_HANGUP_REQ 0x22
108 #define GSM_CALL_ANSWER_REQ 0x23
113 #define GSM_CALL_LIST_REQ 0x24
120 #define GSM_CALL_WAITING_STATUS_CFRM 0x25
125 * - GSM_MPTY_OPERATION : 1byte (mzgsmcall.h ÂüÁ¶)
126 * - GSM_MPTY_PARAM_ID : 1byte
127 * - parameter length : 1byte
130 #define GSM_CALL_CONTROL_REQ 0x26
137 #define GSM_CALL_GENERATE_DTMF_REQ 0x27
141 #define GSM_CALL_GET_FAKE_CALLLIST_REQ 0x28
142 // EMTRACE_I878, civily 20051014 ]
148 #define GSM_CALL_GET_AUTOREDIAL_REQ 0x29
153 * - Enable or Disable
155 #define GSM_CALL_SET_AUTOREDIAL_REQ 0x2A
156 #define GSM_CALL_LIST_CFRM 0x2B
159 * Length : Caller ID ±æÀÌ (VAR)
163 #define GSM_CALL_MAKE_TO_DEVICE_REQ 0x2C
164 #define GSM_CALL_TO_DEVICE_CFRM 0x2D
166 /* --------------------------------------------------------------------------
167 GSM_CALL : Notification or Response
168 --------------------------------------------------------------------------*/
170 #define GSM_CALL_ID 0x20
176 * - Forwared flag (1byte)
177 * - Call ID Length(1byte)
180 * ÁÖÀÇ : CLIR_CAUSE´Â »èÁ¦
183 #define GSM_CALL_INCOMING_NOTI 0x21
189 * - Status (1byte) mzgsmcall.h ¿¡ ÀÖ´Â °ª°ú ¼³¸íÀ» ÂüÁ¶
190 * ÁÖÀÇ : CAUSE, NUM_CALLS_IN_USE´Â »èÁ¦
192 #define GSM_CALL_STATUS_NOTI 0x22
194 * Length : VAR 1byte(Reserved1) + 1byte(Reserved2) +
195 * 1byte(Call Count) + (Call Count) * 5 (Call Data)
197 * - Reserved1 (1byte)
198 * - Reserved2 (1byte)
200 * - Call Count (1byte)
202 * ÀÌÇÏ 5¹ÙÀÌÆ®´Â Call Count ¸¸Å ¹Ýº¹.
204 * - GSM_Call_Dir (1byte) mzgsmcall.h ÂüÁ¶
205 * - GSM_Call_Stat (1byte) mzgsmcall.h ÂüÁ¶
206 * - GSM_Call_Mode (1byte) mzgsmcall.h ÂüÁ¶(Voice¸¸ Ãë±ÞÇÒ°Í)
207 * - MPTY (1byte) 0x01 mpty, 0x00 single
209 #define GSM_CALL_LIST_RES 0x23
212 * Length : VAR 1byte(result) + 1byte(Operation) + 1byte(call Id) +
213 * (Call Count) + VAR(Call Count * 1)
216 * - GSM_MPTY_OPERATION (1byte) mzgsmcall.h ÂüÁ¶
217 * - GSM_MPTY_PARAM_ID (1byte) mzgsmcall.h ÂüÁ¶
218 * - active call count (1byte)
219 * - active call list (VAR)
221 #define GSM_CALL_CONTROL_RES 0x24
228 * 0x01 : waiting »óÅÂ GSM_Call_Dialing, GSM_Call_Alerting, GSM_Call_Incoming
229 * 0x00 : not waiting »óÅÂ GSM_Call_Active, GSM_Call_Release
231 #define GSM_CALL_WAITING_STATUS_IND 0x25
237 * - Call ID Length (1byte)
238 * - Connected Line (VAR)
241 #define GSM_CALL_CONNECTED_LINE_NOTI 0x26
246 * - the reason of redialing mode
248 #define GSM_CALL_AUTOREDIAL_NOTI 0x27
253 * - ALS value : 1 byte
255 #define GSM_CALL_GET_AUTO_REDIAL_RES 0x28
260 #define GSM_CALL_CALL_LIST_IND 0x29
265 #define GSM_CALL_WAITING_STATUS_TO_DEVICE_IND 0x2A
270 #define GSM_CALL_CONNECTION_TONE_NOTI 0x2B
275 #define GSM_CALL_SMASO_NOTI 0x2C
281 #define GSM_CALL_MAKE_RES 0x2D
287 #define GSM_CALL_ANSWER_RES 0x2E
293 #define GSM_CALL_HANGUP_RES 0x2F
295 // sunnyfan 2006.01.17
296 #define GSM_CALL_GET_ALS_MV_REQ 0x41
297 #define GSM_CALL_GET_ALS_MV_RES 0x42
298 #define GSM_CALL_SET_ALS_MV_REQ 0x43
299 #define GSM_CALL_SET_ALS_MV_RES 0x44
302 // sunnyfan, 2005.11.17 [
303 #define GSM_CALL_GENERATE_DTMF_RES 0x50
305 #define GSM_CALL_GENRES_DTMF 0x51
308 #define GSM_CALL_STATE 0x61
309 #define GSM_CALL_ALERT_IND 0x62
311 /* --------------------------------------------------------------------------
312 GSM_NETWORK : Network Functions
313 --------------------------------------------------------------------------*/
320 #define GSM_NETWORK_CURRENT_MODE_REQ 0x31
327 #define GSM_NETWORK_SET_AUTOMATIC_MODE_REQ 0x32
332 * - operator name (5byte)
334 #define GSM_NETWORK_SET_MANUAL_MODE_REQ 0x33
341 #define GSM_NETWORK_INQUIRY_OPERATOR_REQ 0x34
348 #define GSM_NETWORK_GPRS_STATE_REQ 0x35
353 #define GSM_NETWORK_GET_BAND_REQ 0x36
357 * - Band value : 1 byte
359 #define GSM_NETWORK_SET_BAND_REQ 0x37
366 #define GSM_NETWORK_GET_SIGNAL_REQ 0x38
373 #define GSM_NETWORK_GET_NETWORK_INFO_REQ 0x39
380 #define GSM_NETWORK_CANCEL_OPERATOR_REQ 0x3A
387 #define GSM_NETWORK_GET_INDICATOR_REQ 0x3B
390 #define GSM_NETWORK_SET_SVCDOMAIN_REQ 0x3C
391 #define GSM_NETWORK_SET_POWERONATTACH_REQ 0x3D
392 #define GSM_NETWORK_GET_SVCDOMAIN_REQ 0x3E
393 #define GSM_NETWORK_GET_POWERONATTACH_REQ 0x3F
394 // EMTRACE_I878, civily 2005.10.13 ]
395 /* --------------------------------------------------------------------------
396 GSM_NETWORK : Notification or Response
397 --------------------------------------------------------------------------*/
400 * Length : 1 + 1 + VAR(Network Name)
401 * - State (1byte) mzgsmnet.h ¿¡ ÀÖ´Â °ª°ú ¼³¸íÀ» ÂüÁ¶
402 * - Length (1byte) Network Name Length
403 * - Network Name (VAR)
405 #define GSM_NETWORK_REG_NOTI 0x31
409 * - String Length 1byte
413 // CAUTION : ÇâÈÄ ¹®ÀÚ¿ÀÌ ¾Æ´Ñ À妽º°ª¸¸ Àü´ÞµÇ´Â °ÍÀ¸·Î ¼öÁ¤
414 #define GSM_NETWORK_SMNT_NOTI 0x32
417 * Length : 1 + 1 + VAR
418 * GSM_OperMode : 1byte
419 * Length MCC+MNC : 1byte
420 * operator name : VAR
422 #define GSM_NETWORK_CURRENT_MODE_RES 0x33
427 #define GSM_NETWORK_SET_AUTOMATIC_MODE_RES 0x34
432 #define GSM_NETWORK_SET_MANUAL_MODE_RES 0x35
435 * Length : 1 + (item count * 6)
441 #define GSM_NETWORK_INQUIRY_OPERATOR_RES 0x36
446 * - Band value: 1 byte
448 #define GSM_NETWORK_GET_BAND_RES 0x37
453 * - Band value: 1 byte
455 #define GSM_NETWORK_SET_BAND_RES 0x38
460 * - result : 0x00 (ok) or 0x01 (failed)
461 * - mode : refer mzgsmnet.h
463 #define GSM_NETWORK_GET_NETWORK_INFO_RES 0x39
466 #define GSM_NETWORK_POWERONATTACH_RES 0x3A
467 #define GSM_NETWORK_SVCDOMAIN_RES 0x3B
468 // EMTRACE_I878, civily 2005.10.13 ]
470 #define GSM_NETWORK_PLMN_LIST 0x3C
473 #define GSM_NETWORK_CURRENT_PLMN_NOTI 0x3D
475 /* gsm_network_current_plmn_info, nitz info by cosmos in 20090213 */
476 #define GSM_NETWORK_CURRENT_PLMN_INFO 0x3E
477 #define GSM_NETWORK_CURRENT_NITZ_INFO 0x3F
479 /* --------------------------------------------------------------------------
480 GSM_SUPS : Sups Service TX function
481 --------------------------------------------------------------------------*/
483 * Length : MMI String ±æÀÌ(VAR)
487 #define GSM_SUPS_MMI_REQ 0x41
490 * Length : 1(fac value) + 1(class)
492 * - fac value (1byte) mzgsmsups.h ÂüÁ¶
493 * - class (1byte) mzgsmmisc.h ÂüÁ¶
495 #define GSM_SUPS_GET_FAC_LOCK_STATUS_REQ 0x42
498 * Length : 1(fac value) + 1(class) + 1(mode) + 1(pw length) + VAR(passwd)
500 * - fac value (1byte) mzgsmsups.h ÂüÁ¶
501 * - class (1byte) mzgsmmisc.h ÂüÁ¶
502 * - mode (1byte) mzgsmsups.h ÂüÁ¶
503 * - pw length (1byte)
504 * - passwd (pw length bytes)
506 #define GSM_SUPS_SET_FAC_LOCK_STATUS_REQ 0x43
509 * Length : 1(the reason)
511 * - GSM_CF_Reason (1byte) mzgsmsups.h ÂüÁ¶
513 #define GSM_SUPS_GET_CCFC_REQ 0x44
516 * Length : sizeof (struct GSM_CF_Data)
518 * - GSM_CF_Data (1byte) mzgsmsups.h ÂüÁ¶
520 #define GSM_SUPS_SET_CCFC_REQ 0x45
525 #define GSM_SUPS_GET_CLIR_REQ 0x46
528 * Length : 1 (CLIR Setting Value)
530 * - CLIR_Activation_Status : (1byte)
532 #define GSM_SUPS_SET_CLIR_REQ 0x47
535 * Length : 1(CW_Notify) + 1(GSM_CW_Mode) + 1(GSM_ClassX)
537 * - CW_Notify : (1byte)
538 * - CW_Mode : (1byte)
539 * - GSM_ClassX (1byte)
541 #define GSM_SUPS_GET_CW_REQ 0x48
544 * Length : 1(CW_Notify) + 1(GSM_CW_Mode) + 1(GSM_ClassX)
546 * - CW_Notify : (1byte)
547 * - CW_Mode : (1byte)
548 * - GSM_ClassX (1byte)
550 #define GSM_SUPS_SET_CW_REQ 0x49
553 * Length : 1(GSM_AOC_Value)
557 #define GSM_SUPS_AOC_REQ 0x4A
564 #define GSM_SUPS_AOC_RESET_REQ 0x4B
569 * - acm max value (6bytes) // Hexadecimal value
570 * - pin2 length (1byte)
573 #define GSM_SUPS_SET_ACM_MAX_REQ 0x4C
578 * - AOC_CURRENCY_Code (1byte)
582 #define GSM_SUPS_AOC_SET_PPU_REQ 0x4D
585 * Length : USSD String ±æÀÌ(VAR)
589 #define GSM_SUPS_USSD_SEND_REQ 0x4E
596 #define GSM_SUPS_USSD_CANCEL_REQ 0x4F
597 // sunnyfan, 2005.11.09 [
598 #define GSM_SUPS_PWDSET_CB_REQ 0x50
599 #define GSM_SUPS_SET_CB_REQ 0x51
600 #define GSM_SUPS_GET_CB_REQ 0x52
601 #define GSM_SUPS_USSD_SEND_CONFIRM 0x53
602 #define GSM_SUPS_NOTI_FEEDBACK 0x54
603 #define GSM_SUPS_MESSAGE_FEEDBACK 0x55
612 #define GSM_SUPS_CB_STATUS_REQ 0x56
619 #define GSM_SUPS_GET_PPU_REQ 0x57
621 /* --------------------------------------------------------------------------
622 GSM_SUPS : Notification or Response
623 --------------------------------------------------------------------------*/
624 // sunnyfan, 2006.01.19 [
625 #define GSM_SUPS_NETWORK_POPUP_MESSAGE 0x40
628 * Length : 1(status) + 1(fac value) + 1(class)
630 * - status (1byte) 0x00 : not active, 0x01 : active
631 * - fac value (1byte) mzgsmsups.h ÂüÁ¶
632 * - class value (1byte) mzgsmsups.h ÂüÁ¶
634 #define GSM_SUPS_GET_FAC_LOCK_STATUS_RES 0x41
637 * Length : 1(fac value) + 1(class) + 1(mode)
640 * - fac (1byte) mzgsmsups.h ÂüÁ¶
643 #define GSM_SUPS_SET_FAC_LOCK_STATUS_RES 0x42
646 * Length : 1(status) + 1(class) + 1(number_length) + VAR(number) +
649 * - GSM_CF_Status (1byte) mzgsmsups.h ÂüÁ¶
650 * - GSM_ClassX (1byte)
653 * - time (1byte) only 'no reply' case
655 #define GSM_SUPS_GET_CCFC_RES 0x43
658 * Length : 1(Activation Status) + 1(Network Provisioning Status)
660 * - CLIR_Activation_Status (1byte) mzgsmsups.h ÂüÁ¶
661 * - CLIR_Provision_Status (1byte) mzgsmsups.h ÂüÁ¶
663 #define GSM_SUPS_GET_CLIR_RES 0x44
666 * Length : 1(status) + 1(class)
668 * - GSM_CW_Status (1byte) mzgsmsups.h
669 * - GSM_ClassX (1byte) mzgsmsups.h
671 #define GSM_SUPS_GET_CW_RES 0x45
674 * Length : 1(notify code) + 2(USSD str length) + VAR(USSD string) + 1(dcs)
676 * - USSD_Notify (1byte) mzgsmsups.h
677 * - USSD string length (2byte)
678 * - USSD String (VAR)
679 * - Decoding Scheme (1byte)
681 #define GSM_SUPS_USSD_NOTI 0x46
683 #define GSM_SUPS_CW_NOTI 0x47
686 * Length : 2(code) + 1(Call id)
688 * CSSU code 2 value (2bytes)
691 #define GSM_SUPS_CSSU_NOTI 0x48
696 * CSSI code 2 value (2bytes)
698 #define GSM_SUPS_CSSI_NOTI 0x49
703 * CSSI code 2 value (2bytes)
705 #define GSM_SUPS_CSSI_NOTI 0x49
710 * CCCM code 4 value (4bytes)
712 #define GSM_SUPS_CCCM_NOTI 0x4A
717 * - CCM : 6bytes // String type hexdecimal e.g : "00001E" indicates decimal
719 * - CACM : 6bytes // type same as CCM
720 * - CAMM : 6bytes // type same as CCM
722 #define GSM_SUPS_AOC_RES 0x4B
729 #define GSM_SUPS_AOC_RESET_RES 0x4C
736 #define GSM_SUPS_SET_ACM_MAX_RES 0x4D
743 #define GSM_SUPS_AOC_SET_PPU_RES 0x4E
750 #define GSM_SUPS_MMI_RES 0x4F
752 #define GSM_SUPS_GET_CB_RES 0x50
753 #define GSM_SUPS_CB_NOTI 0x51
754 #define GSM_SUPS_CB_PW_INDI 0x52
761 #define GSM_SUPS_GET_CCFC_FAILED_RES 0x53
768 #define GSM_SUPS_CB_STATUS_RES 0x54
775 #define GSM_SUPS_GET_PPU_RES 0x55
777 #define GSM_SUPS_STATE 0x56
778 #define GSM_SUPS_CONFERENCE 0x57
779 #define GSM_SUPS_HOLD 0x58
780 #define GSM_SUPS_UNHOLD 0x59
781 #define GSM_SUPS_AOC_SET 0x5a
782 #define GSM_SUPS_AOC_GET 0x5b
783 #define GSM_SUPS_CW_SET 0xe0
784 #define GSM_SUPS_CW_GET 0xe1
785 #define GSM_SUPS_CF_SET 0xe2
786 #define GSM_SUPS_CF_GET 0xe3
787 #define GSM_SUPS_CB_SET 0xe4
788 #define GSM_SUPS_CB_GET 0xe5
789 #define GSM_SUPS_USSD_GET 0xe6
790 #define GSM_SUPS_USSD_SET 0xe7
792 /* --------------------------------------------------------------------------
793 GSM_MISC : misc Functions
794 --------------------------------------------------------------------------*/
798 * - CMD ID (2bytes) Debug command ID
800 #define GSM_MISC_DEBUG_REQ 0x61
804 * - CMD ID (2bytes) Debug command ID
805 * - param1 (1byte) H/W ¼³Á¤À» À§ÇÑ parameter1
806 * - param2 (1byte) H/W ¼³Á¤À» À§ÇÑ parameter2
808 #define GSM_MISC_DEBUG_HW_REQ 0x62
812 * - RAMDUMP Trace (1byte) RAMDUMP¸¦ acceptÇÒ°ÍÀÎÁöÀÇ ¿©ºÎ
814 #define GSM_MISC_RAMDUMP_REQ 0x63
820 #define GSM_MISC_IMEI_REQ 0x64
826 #define GSM_MISC_IMSI_REQ 0x65
830 * - Phone Version Á¶È¸
832 #define GSM_MISC_VERSION_INFO_REQ 0x66
836 * - SIMÀÇ »óÅÂ¿Í ¸Á»óŸ¦ Á¶È¸ÇÑ´Ù.
838 #define GSM_MISC_INTERNAL_MODE_REQ 0x67
840 /* --------------------------------------------------------------------------
841 GSM_DISPLAY : Notification or Response
842 --------------------------------------------------------------------------*/
846 * - String Length 1byte
849 #define GSM_MISC_DEBUG_NOTI 0x61
853 * - String Length 1byte
856 #define GSM_MISC_RESET_NOTI 0x62
860 * - Error type : (1byte) mzgsmerror.h ÂüÁ¶
861 * - CME or CMS : (2bytes)CME ȤÀº CMS ¿¡·¯ÄÚµå
863 #define GSM_MISC_ERROR_RESPONSE 0x63
867 * - String Length 1byte
870 #define GSM_MISC_IMEI_RES 0x64
874 * - String Length 1byte
877 #define GSM_MISC_IMSI_RES 0x65
881 * - String Length 1byte
884 #define GSM_MISC_RESET_RES 0x66
890 #define GSM_MISC_VERSION_INFO_RES 0x67
892 // sunnyfan, 2006.02.07 [
893 #define GSM_MISC_SLEEP_BY_PHONE_NOTI 0x68
894 #define GSM_MISC_DIAG_KEYCODE_NOTI 0x69
895 #define GSM_MISC_BT_TEST_MODE_NOTI 0x70 // sunnyfanbt
898 /* --------------------------------------------------------------------------
899 GSM_DISPLAY : Functions for Indicator
900 --------------------------------------------------------------------------*/
903 * Declare Display Functions constant.
906 /* --------------------------------------------------------------------------
907 GSM_DISPLAY : Notification or Response
908 --------------------------------------------------------------------------*/
913 * - Indicator (1byte) mzgsmmisc.h¿¡ ÀÖ´Â °ª°ú ¼³¸íÀ» ÂüÁ¶
916 #define GSM_DISPLAY_INDICATOR_NOTI 0x71
918 /* --------------------------------------------------------------------------
919 GSM_SIM : SIM card Functions
920 --------------------------------------------------------------------------*/
928 //#define GSM_SIM_PIN2_REQ 0x81
929 #define GSM_SIM_SELECT_PB_STORAGE_REQ 0x82
930 #define GSM_SIM_PB_READ_REQ 0x83
931 #define GSM_SIM_PB_WRITE_REQ 0x84
932 #define GSM_SIM_PB_ERASE_REQ 0x85
933 #define GSM_SIM_PB_CLEAR_REQ 0x86
934 #define GSM_SIM_WRITE_VOICE_MAIL_REQ 0x87
935 #define GSM_SIM_READ_VOICE_MAIL_REQ 0x88
938 #define GSM_SIM_PIN_REQ 0x89 //GVSM does not uesd this
939 #define GSM_SIM_PUK_REQ 0x8A //state
940 #define GSM_SIM_CHANGE_PW_REQ 0x8B
941 #define GSM_SIM_CRSM_GET_REQ 0x8C
942 #define GSM_SIM_PUK2_REQ 0x8D
943 #define GSM_SIM_PB_READY_REQ 0x8E
944 #define GSM_SIM_CRSM_READ_BIN_REQ 0x8F
945 #define GSM_SIM_CRSM_READ_RECORD_REQ 0x90
946 #define GSM_SIM_GET_ALS_REQ 0x91
947 #define GSM_SIM_SET_ALS_REQ 0x92
948 #define GSM_SIM_CRSM_UPDATE_RECORD_REQ 0x93
949 #define GSM_SIM_CRSM_UPDATE_BIN_REQ 0x94
950 #define GSM_SIM_SELECT_SM_STORAGE_REQ 0x95
951 #define GSM_SIM_SM_ERASE_REQ 0x96
952 #define GSM_SIM_SEC_STATUS_REQ 0x97
954 #define GSM_SIM_PB_CAPACITY_REQ 0x98
955 #define GSM_PB_ACCESS_REQ 0x99
956 #define GSM_PB_STORAGE_REQ 0x9A
957 #define GSM_SIM_PHONELOCK_STATUS_REQ 0x9B
958 #define GSM_SIM_SET_PHONELOCK_REQ 0x9C
959 #define GSM_PB_RECORD_ADD_REQ 0x9D
960 #define GSM_PB_RECORD_DEL_REQ 0x9E
961 #define GSM_PB_RECORD_EDIT_REQ 0x9F
962 #define GSM_SIM_LOCK_INFO_REQ 0xA0
963 #define GSM_PB_SET_STORAGE_TYPE_REQ 0xA1
964 #define GSM_SIM_SECURITY_STATUS_REQ 0xA2
965 #define GSM_PB_ENTRY_INFO_REQ 0xA3
966 #define GSM_SIM_LOCK_PASSWORD_REQ 0xA4
967 #define GSM_SIM_CARD_READY_REQ 0xA5
968 #define GSM_SIM_PIN2_RES 0x81
969 #define GSM_SIM_SECURITY_STATUS_RES 0x82
970 #define GSM_SIM_SELECT_PB_STORAGE_RES 0x83
971 #define GSM_SIM_PB_READ_RES 0x84
972 #define GSM_SIM_PB_ACTION_RES 0x85
973 #define GSM_SIM_AUTH_RES 0x86
974 #define GSM_SIM_CHANGE_PW_RES 0x87
975 #define GSM_SIM_PB_READY_RES 0x88
976 #define GSM_SIM_CRSM_GET_RES 0x89
977 #define GSM_SIM_CRSM_READ_BIN_RES 0x8A
978 #define GSM_SIM_CRSM_READ_RECORD_RES 0x8B
979 #define GSM_SIM_GET_ALS_RES 0x8C
980 #define GSM_SIM_SET_ALS_RES 0x8D
981 #define GSM_SIM_CRSM_UPDATE_RECORD_RES 0x8E
982 #define GSM_SIM_SELECT_SM_STORAGE_RES 0x8F
983 #define GSM_SIM_SM_ACTION_RES 0x90
984 #define GSM_SIM_AUTH_PIN2_RES 0x91
985 #define GSM_SIM_CDCI_NOTI 0x92
986 #define GSM_SIM_SEC_STATUS_RES 0x93
987 #define GSM_SIM_PB_CAPACITY_RES 0x94
988 #define GSM_PB_ACCESS_RES 0x95
989 #define GSM_PB_STORAGE_RES 0x96
990 #define GSM_SIM_PHONELOCK_STATUS_RES 0x97
991 #define GSM_SIM_SET_PHONELOCK_RES 0x98
992 #define GSM_SIM_CHANGE_LOCKING_PW_RES 0x99
993 #define GSM_PB_ACCESS_ERROR_RES 0x9A
994 #define GSM_SIM_PUK_RES 0x9B
995 #define GSM_SIM_PUK2_RES 0x9C
996 #define GSM_SIM_LOCK_INFO_RES 0x9D
997 #define GSM_PB_ENTRY_INFO_RES 0x9E
998 #define GSM_SIM_LOCK_PASSWORD_RES 0x9F
999 // sunnyfan, 2005.12.16, for CPHS [
1000 #define GSM_SIM_SET_CFL_REQ 0xB1
1001 #define GSM_SIM_SET_CFL_RES 0xB2
1002 #define GSM_SIM_SET_VMW_REQ 0xB3
1003 #define GSM_SIM_SET_VMW_RES 0xB4
1005 #define GSM_SIM_EF_SELECT_REQ 0xB5
1006 #define GSM_SIM_EF_SELECT_RES 0xB6
1007 #define GSM_SIM_PIN_RES 0xB7
1009 #define GSM_SIM_INIT_REQ 0xB8//state
1010 #define GSM_SIM_FRIZEN 0xb9//state
1011 #define GSM_SIM_PIN2_REQ 0xba
1012 #define GSM_SIM_READY 0xbb//state
1013 #define GSM_SIM_WRONG_STATUS_TYPE 0xbc
1014 #define GSM_SIM_STATUS_SET 0xbd
1015 #define GSM_SIM_CHANGE_PASS_SET 0xbe
1016 #define GSM_SIM_FACILITY_SET 0xbf
1017 #define GSM_SIM_NO_SIM 0xa0 //state
1018 #define GSM_SIM_PIN_REQ_STATE 0xa1
1019 #define GSM_SIM_FDN_STATE 0xa2
1020 #define GSM_SIM_FACILITY_PIN 0xa3
1021 #define GSM_SIM_FACILITY_FDN 0xa4
1022 #define GSM_SIM_PIN2_OK 0xa5
1023 #define GSM_SIM_FACILITY_RES 0xa6
1024 #define GSM_SIM_GET_SIM_DB_REQ 0xa7
1025 #define GSM_SIM_GET_SIM_DB_RES 0xa8
1026 #define GSM_SIM_MAKE_PB_DB_REQ 0xa9
1027 #define GSM_SIM_ADD_PB_DB_REQ 0xaa
1028 #define GSM_SIM_GET_PB_DB_REQ 0xab
1029 #define GSM_SIM_DELETE_PB_DB_REQ 0xac
1030 #define GSM_SIM_GET_PB_ST_INFO_RES 0xad
1031 #define GSM_SIM_SET_PB_STORAGE_REQ 0xae
1032 #define GSM_SIM_GET_ALL_PB_DB_REQ 0xaf
1033 #define GSM_SIM_ADD_EVENT_PB_DB_REQ 0xb0
1034 #define GSM_SIM_DELETE_EVENT_PB_DB_REQ 0xb1
1035 #define GSM_SIM_PROTECT_SIM_DB 0xc0
1036 #define GSM_SIM_PUKSET_REQ 0xc1 //set
1037 #define GSM_SIM_PUK2SET_REQ 0xc2 //set
1039 #define GSM_SIMINFO_REQ 0xD1 //get SIMINFO
1040 #define GSM_SIMDATA_REQ 0xD2 //get SIMDATA
1041 #define GSM_SIMINFO_RES 0xD3 //get SIMINFO
1042 #define GSM_SIMDATA_RES 0xD4 //get SIMDATA
1043 #define GSM_SIMSAVE_REQ 0xD5 //get SIMSAVE
1044 #define GSM_SIM_REINIT_REQ 0xD6 //get SIMSAVE
1045 #define GSM_SIM_ERR_ADD_NOTI 0xD7
1046 #define GSM_SIM_ERR_DEL_NOTI 0xD8
1050 #define GSM_SAT_CMD_MENU_SELECTION 0xd3
1052 #define GSM_SAT_CMD_DISPLAY_TEXT 0x01
1053 #define GSM_SAT_CMD_GET_INKEY 0x02
1054 #define GSM_SAT_CMD_GET_INPUT 0x03
1055 #define GSM_SAT_CMD_SET_UP_MENU 0x04
1056 #define GSM_SAT_CMD_SELECT_ITEM 0x05
1057 #define GSM_SAT_CMD_SEND_SMS 0x06
1058 #define GSM_SAT_CMD_SET_UP_CALL 0x07
1060 // 090908 for FUNC_EDB
1061 #define FUNC_GET_PB_DB_REQ 0x01
1062 #define FUNC_DEL_PB_DB_REQ 0x02
1063 #define FUNC_ADD_PB_DB_REQ 0x03
1064 #define FUNC_GET_ONE_PB_DB_REQ 0x04
1081 /* --------------------------------------------------------------------------
1082 GSM_DATA : Data Service Functions
1083 --------------------------------------------------------------------------*/
1089 #define GSM_DATA_GPRS_REQ 0xA1
1094 * - Dial Number (VAR)
1096 #define GSM_DATA_GSM_REQ 0xA2
1102 * nsclass : for multiple PDP
1104 #define GSM_DATA_IP_ADDR_REQ 0xA3
1109 * nsclass : for multiple PDP
1111 #define GSM_DATA_CLOSE_REQ 0xA4
1112 // EMTRACE_I878, civily YK11 ]
1115 #define GSM_DATA_EXTERNAL_HANGUP_REQ 0xA5
1120 #define GSM_DATA_HANGUP_REQ 0xA6
1122 /* --------------------------------------------------------------------------
1123 GSM_DATA : Notification or Response
1124 --------------------------------------------------------------------------*/
1127 * - State (1byte) mzgsmnet.h¿¡ ÀÖ´Â °ª°ú ¼³¸íÀ» ÂüÁ¶
1128 * GPRS state¿Í Network Registration state´Â À¯»çÇϹǷΠ°°ÀÌ »ç¿ëÇÑ´Ù.
1130 #define GSM_DATA_GPRS_REG_NOTI 0xA1
1135 #define GSM_DATA_GPRS_RES 0xA2
1140 #define GSM_DATA_GSM_RES 0xA3
1144 * dummy 1 byte (»ç¿ëÇÏÁö ¾ÊÀ½)
1146 #define GSM_DATA_CSD_CONNECT_NOTI 0xA4
1151 #define GSM_DATA_CSD_FAILED_NOTI 0xA5
1153 // nsclass : multiple PDP
1154 #define GSM_DATA_IP_ADDR_RES 0xA6
1156 // nsclass : multiple PDP status
1157 #define GSM_DATA_STATUS_RES 0xA7
1159 // nsclass : for data relase noti
1160 #define GSM_DATA_PDP_CONNECT_NOTI 0xA8
1162 // nsclass : for data relase noti
1163 #define GSM_DATA_PDP_DISCONNECT_NOTI 0xA9
1165 // nsclass : for data svc noti
1166 #define GSM_DATA_EXTERNAL_SVC_NOTI 0xAA
1170 * GSM_DataService 1 byte (mzgsmnet.h)
1171 * GSM_DataStatus 1 byte (mzgsmnet.h)
1173 #define GSM_DATA_SERVICE_STATUS_RES 0xAB
1178 #define GSM_DATA_HANGUP_RES 0xAC
1185 #define GSM_DATA_SMPCTR_NOTI 0xAD
1191 #define GSM_DATA_STATE 0xAE
1197 #define GSM_DATA_STATUS 0xAE
1199 // add by mckim: for informing evt injector with the initial data restored from DB
1200 #define GSM_DATA_GPRS_INIT_REQ 0xAF
1202 /* --------------------------------------------------------------------------
1204 --------------------------------------------------------------------------*/
1206 * Length : IMEI ±æÀÌ (VAR)
1210 #define GSM_EXT_SET_IMEI_REQ 0xB1
1213 * Length : BTMAC ±æÀÌ (VAR)
1217 #define GSM_EXT_SET_BTMAC_REQ 0xB2
1224 #define GSM_EXT_GET_BTMAC_REQ 0xB3
1229 * - mode : up Or down
1231 #define GSM_EXT_SET_VOICE_VOL_REQ 0xB4
1236 * - path : Audio path
1238 #define GSM_EXT_SET_AUDIO_PATH_REQ 0xB5
1243 * - path : Phone State
1245 #define GSM_EXT_SET_INTERNAL_STATE_REQ 0xB6
1246 /* --------------------------------------------------------------------------
1247 GSM_EXT : Notification or Response
1248 --------------------------------------------------------------------------*/
1254 #define GSM_EXT_SET_IMEI_RES 0xB1
1261 #define GSM_EXT_SET_BTMAC_RES 0xB2
1269 #define GSM_EXT_GET_IMEI_RES 0xB3
1276 #define GSM_EXT_BATT_INFO_NOTI 0xB4
1283 #define GSM_EXT_PHONE_POWER_ON_RES 0xB5
1285 // sunnyfan, 2005.09.26 [
1286 #define GSM_SUPS_GENRES_CW 0xA0
1287 #define GSM_SUPS_GENRES_CLI 0xA1
1288 #define GSM_SUPS_GENRES_CB 0xA2
1289 #define GSM_SUPS_GENRES_CBPW 0xA3
1290 #define GSM_SUPS_GENRES_CF 0xA4
1291 #define GSM_SUPS_GENRES_MANAGE 0xA5
1292 #define GSM_SUPS_GENRES_USSD 0xA6
1293 #define GSM_SUPS_GENRES_SSINFO 0xA7
1294 #define GSM_SUPS_GENRES_SSMAX 0xA8
1295 #define GSM_SUPS_GENRES_UNKNOWN 0xAA
1296 #define GSM_SUPS_INFORMATION 0xB0
1300 // sunnyfan, 2005.11.04 [ for SAT Response
1301 #define GSM_GENRES_CALLOUTGOING 0xB6
1305 /* --------------------------------------------------------------------------
1306 GSM_SMS : SMS Functions
1307 --------------------------------------------------------------------------*/
1308 #define GSM_SMS_SEND_MSG_REQ 0x01
1309 #define GSM_SMS_READ_MSG_REQ 0x02
1310 #define GSM_SMS_SAVE_MSG_REQ 0x03
1311 #define GSM_SMS_DEL_MSG_REQ 0x04
1312 #define GSM_SMS_SEND_ACK_REQ 0x05
1313 #define GSM_SMS_GET_SEL_MEM_REQ 0x06
1314 #define GSM_SMS_SET_SEL_MEM_REQ 0x07
1315 #define GSM_SMS_STORED_MSG_CNT_REQ 0x08
1316 #define GSM_SMS_GET_MSG_CONFIG_REQ 0x09
1317 #define GSM_SMS_SET_MSG_CONFIG_REQ 0x0A
1318 #define GSM_SMS_GET_SVC_OPTION_REQ 0x0B
1319 #define GSM_SMS_SET_SVC_OPTION_REQ 0x0C
1320 #define GSM_SMS_MEM_FULL_REQ 0x0D
1321 // by luxmea, 2005.11.16 [
1322 #define GSM_SMS_GET_CB_CONFIG_REQ 0x0E
1323 #define GSM_SMS_SET_CB_CONFIG_REQ 0x0F
1324 #define GSM_SMS_SET_MSG_STATUS_REQ 0x10
1325 #define GSM_SMS_SET_BLK_LIST_REQ 0x11
1327 #define GSM_SMS_INCOMING_CB_MSG_REQ 0x12
1329 /* --------------------------------------------------------------------------
1330 GSM_SMS : Notification or Response
1331 --------------------------------------------------------------------------*/
1332 #define GSM_SMS_INCOMING_MSG_NOTI 0x01
1333 #define GSM_SMS_READ_MSG_RES 0x02
1334 #define GSM_SMS_RECEIVE_ACK_NOTI 0x03
1335 #define GSM_SMS_SEL_MEM_RES 0x04
1336 #define GSM_SMS_STORED_MSG_CNT_RES 0x05
1337 #define GSM_SMS_MSG_CONFIG_RES 0x06
1338 #define GSM_SMS_SVC_OPTION_RES 0x07
1339 #define GSM_SMS_MEM_FULL_NOTI 0x08
1340 #define GSM_SMS_ACTION_STATUS_NOTI 0x09
1341 // by luxmea, 2005.11.16 [
1342 #define GSM_SMS_CB_CONFIG_RES 0x0A
1344 #define GSM_SMS_STORED_MSG_CNT_NOTI 0x0B // by luxmea
1345 #define GSM_SMS_RECEIVE_RES 0x0C
1348 /* --------------------------------------------------------------------------
1349 GSM_SAT : SAT functions
1350 --------------------------------------------------------------------------*/
1351 #define GSM_SAT_PROFILE_DOWNLOAD_SET 0x01
1352 #define GSM_SAT_ENVELOPE_COMMAND_REQ 0x02
1353 #define GSM_SAT_PROACTIVE_COMMAND_GET 0x03
1354 #define GSM_SAT_PROVIDE_LOCAL_INFOMATION_GET 0x04
1355 #define GSM_SAT_POLLING_GET 0x05
1356 #define GSM_SAT_REFRESH_GET 0x06
1357 #define GSM_SAT_SETUP_EVENT_LIST_GET 0x07
1358 #define GSM_SAT_TERMINATE_SESSION_SET 0x08
1359 #define GSM_SAT_PROACTIVE_COMMAND_SEND 0x09
1360 //////////////////////////////////////////////////////////////////////////
1361 #define GSM_SAT_PROACTIVE_DISPLAY_TEXT 0xa0
1362 #define GSM_SAT_PROACTIVE_GET_INKEY 0xa1
1363 #define GSM_SAT_PROACTIVE_GET_INPUT 0xa2
1364 #define GSM_SAT_PROACTIVE_SET_MENU 0xa3
1365 #define GSM_SAT_PROACTIVE_SELECT_ITEM 0xa4
1366 #define GSM_SAT_PROACTIVE_SEND_SMS 0xa5
1367 #define GSM_SAT_PROACTIVE_SET_UP_CALL 0xa6
1371 /* --------------------------------------------------------------------------
1372 GSM_SAT : Notification or Response
1373 --------------------------------------------------------------------------*/
1374 #define GSM_SAT_PROACTIVE_COMMAND_INDICATION 0x01
1375 #define GSM_SAT_PROACTIVE_COMMAND_RESPONSE 0x02
1376 #define GSM_SAT_ENVELOPE_COMMAND_NOTIFICATION 0x03
1377 #define GSM_SAT_PROVIDE_LOCAL_INFOMATION_RESPONSE 0x04
1378 #define GSM_SAT_POLLING_RESPONSE 0x05
1379 #define GSM_SAT_REFRESH_RESPONSE 0x06
1380 #define GSM_SAT_REFRESH_NOTIFICATION 0x07
1381 #define GSM_SAT_SETUP_EVENT_LIST_RESPONSE 0x08
1382 ///////////////////////////////////////////////////////////////////////////
1386 /* --------------------------------------------------------------------------
1387 GSM_SOUND : Sound functions
1388 --------------------------------------------------------------------------*/
1390 #define GSM_SND_KEY_TONE_REQ 0x01
1391 #define GSM_SND_NOTI_TONE_REQ 0x02
1392 #define GSM_SND_LED_CTRL_REQ 0x03
1393 #define GSM_SND_VIB_CTRL_REQ 0x04
1394 #define GSM_SND_GET_SPKR_VOLUME_CTRL_REQ 0x05
1395 #define GSM_SND_SET_SPKR_VOLUME_CTRL_REQ 0x06
1396 #define GSM_SND_GET_MIC_GAIN_CTRL_REQ 0x07
1397 #define GSM_SND_SET_MIC_GAIN_CTRL_REQ 0x08
1398 #define GSM_SND_GET_MIC_MUTE_CTRL_REQ 0x09
1399 #define GSM_SND_SET_MIC_MUTE_CTRL_REQ 0x0A
1400 #define GSM_SND_SPKR_PHONE_CTRL_REQ 0x0B
1401 #define GSM_SND_HFK_AUDIO_STARTSTOP_REQ 0x0C
1402 #define GSM_SND_VOICECALL_RECORD_REPORT_REQ 0x0D
1403 #define GSM_SND_AUDIO_PATH_CTRL_REQ 0x0E
1404 #define GSM_SND_SET_USER_CONFIG 0x0F
1405 #define GSM_SND_GET_GAIN_CTRL_REQ 0x10
1406 #define GSM_SND_SET_GAIN_CTRL_REQ 0x11
1408 /* --------------------------------------------------------------------------
1409 GSM_SOUND : Notification or Response
1410 --------------------------------------------------------------------------*/
1411 #define GSM_SND_SPKR_VOLUME_CTRL_RES 0x01
1412 #define GSM_SND_MIC_GAIN_CTRL_RES 0x02
1413 #define GSM_SND_SET_MIC_MUTE_CTRL_RES 0x03
1414 #define GSM_SND_AUDIO_SOURCE_CTRL_NOTI 0x04
1415 #define GSM_SND_GAIN_CTRL_RES 0x05
1416 #define GSM_SND_GAIN_CTRL_NOTI 0x06
1418 /* --------------------------------------------------------------------------
1419 GSM_SERVICEMODE : Service Mode functions
1420 --------------------------------------------------------------------------*/
1421 #define GSM_SVCMODE_ENTER_REQ 0x01
1422 #define GSM_SVCMODE_END_REQ 0x02
1423 #define GSM_SVCMODE_PROCESS_KEY_REQ 0x03
1424 //#define GSM_SVCMODE_GET_HW_SOUND_CONFIG_REQ 0x04
1425 //#define GSM_SVCMODE_SET_HW_SOUND_CONFIG_REQ 0x05
1427 /* --------------------------------------------------------------------------
1428 GSM_SERVICEMODE : Notifications or Responses
1429 --------------------------------------------------------------------------*/
1430 #define GSM_SVCMODE_ENTER_NOTI 0x01
1431 #define GSM_SVCMODE_END_NOTI 0x02
1432 #define GSM_SVCMODE_SCREEN_CONFIG_NOTI 0x03
1433 #define GSM_SVCMODE_DISPLAY_NOTI 0x04
1434 //#define GSM_SVCMODE_HW_SOUND_CONFIG_RES 0x05
1435 //#define GSM_SVCMODE_HW_SOUND_CONFIG_NOTI 0x06
1437 /* --------------------------------------------------------------------------
1439 --------------------------------------------------------------------------*/
1442 * Length : HDLC ±æÀÌ
1446 #define GSM_EMULATOR_HDLC_REQ 0x01
1447 #define GSM_EMULATOR_HDLC_MODE 0x02
1448 #define GSM_EMULATOR_HDLC_CLEAR 0x03
1449 #define GSM_EMULATOR_SET_CALL_GENERAL_RESPONSE_ERROR 0x04
1450 #define GSM_EMULATOR_SET_CALL_STATUS_ERROR 0x05
1451 #define GSM_EMULATOR_SET_SCA 0x06
1452 #define GSM_EMULATOR_SET_SS_GENERAL_RESPONSE_ERROR 0x07
1453 #define GSM_EMULATOR_CLIENT_RELEASE_NOTI 0X08
1454 #define GSM_EMULATOR_SET_SS_HOLD_RESPONSE_ERROR 0x09
1455 #define GSM_EMULATOR_SET_SS_RETRIEVE_RESPONSE_ERROR 0x0a
1456 #define GSM_EMULATOR_SET_SS_JOIN_RESPONSE_ERROR 0x0b
1457 #define GSM_EMULATOR_SET_SS_SPLIT_RESPONSE_ERROR 0x0c
1458 #define GSM_EMULATOR_SET_SS_TRANSFER_RESPONSE_ERROR 0x0d
1462 /* --------------------------------------------------------------------------
1464 --------------------------------------------------------------------------*/
1466 #define GSM_POWER_MODEM_ON_REQ 0x01
1467 #define GSM_POWER_MODEM_OFF_REQ 0x02
1468 #define GSM_POWER_BATTERY_STATUS_NOTI 0x02
1471 /* --------------------------------------------------------------------------
1473 --------------------------------------------------------------------------*/
1477 * field_flag : 2 bytes
1478 * ip_address : 4 bytes
1479 * primary_dns : 4 bytes
1480 * secondary_dns : 4 bytes
1481 * default_gateway : 4 bytes
1482 * subnet_mask : 4 bytes
1484 //#define GSM_GPRS_IP_CONFIGURATION 0x01
1486 #endif // _vgsm_phone_h_