📄 diagcmd.h
字号:
#ifndef DIAGCMD_H
#define DIAGCMD_H
/*==========================================================================
Diagnostic Services Packet Processing Command Code Defintions
Description
This file contains packet id definitions for the serial interface to
the dmss.
Copyright (c) 1993-2005 by QUALCOMM, Incorporated. All Rights Reserved.
===========================================================================*/
/* DO NOT MODIFY THIS FILE WITHOUT PRIOR APPROVAL
**
** Diag commands, by design, are a tightly controlled set of values.
** Developers may not create command IDs at will.
**
** Request new commands using the following process:
**
** 1. Send email to asw.diag.request requesting command ID assignments.
** 2. Identify the command needed by name.
** 3. Provide a brief description for the command.
**
*/
/*===========================================================================
Edit History
$Header: //depot/asic/msmshared/services/diag/diagcmd.h#47 $
when who what, where, why
-------- --- ----------------------------------------------------------
06/10/02 lcl/jwh FEATURE_HWTC changes.
05/23/02 sfh Added DIAG_PROTOCOL_LOOPBACK_F (123) command.
06/27/01 lad Assigned equipment ID 0 to be for OEMs to use.
05/21/01 sfh Added DIAG_TRACE_EVENT_REPORT_F for trace event support.
04/17/01 lad Moved subsystem dispatch IDs from diagpkt.h.
04/06/01 lad Changed the name of cmd code 111 from DUAG_TUNNEL_F to
DIAG_ROUTE_F.
02/23/01 lad Cosmetic changes.
09/06/00 bgc Added support for FEATURE_FACTORY_TESTMODE with
DIAG_FTM_CMD_F (set to 59, which is also DIAG_TMOB_F).
08/31/00 lad Added command code for tunneling capability.
06/23/00 lad Removed obsolete command codes and marked them "reserved".
06/19/00 lad Added DIAG_PARM_RETRIEVE_F
05/31/00 jal Added GPS statistics, session control, and grid support.
05/15/00 lad Added streaming config support (nice).
02/28/00 lad Added codes for event reporting service.
02/02/00 lad Added commands used with FEATURE_DIAG_QCT_EXT.
09/17/99 lcc Merged in RPC support from PLT archive.
08/17/99 tac Merged in EFS changes from branch.
07/19/99 sk Replacing reset_sup_fer with walsh code.
07/19/99 sk Added walsh code display command.
03/30/99 lad Added support for FEATURE_IS95B_MDR and FEATURE_SPECIAL_MDR.
11/04/98 lad Added 1998/1999 copyright information.
10/29/98 jmk Merged Module command changes into the mainline.
(Replaced MOD_GET_STATUS with MOD_EXTENDED_PKT cmd code 75)
10/27/98 jmk Added cmd IDs for CSS command, and SMS message read/write.
09/11/98 grl Added feature query command
10/06/97 jjn Added new commands for the Module Phase 1 interface. These
include Module Status Mask, AKEY and audio control packets.
04/23/97 jjn Added new packet pair to allow System Unit to access
service option and caller ID information
03/25/97 jjn Added new command (and packets) that allow writing to NV
without going offline (for the Module only)
02/28/97 jjn Enabled RSSI packets for the Module, added a packet for
module status and sound reporting, and added a pcket for
retrieving SMS messages
06/25/96 jmk Added cmd id for preferred roaming list read.
06/24/96 jmk Added cmd id for preferred roaming list write.
04/09/96 jmk Added cmd ids for sending security code, and return code
if phone is not unlocked for operations that require it.
03/06/96 jmk Added command id for serial mode change (to AT cmd mode)
and command id for get rssi (for antenna aiming/WLL only)
08/16/95 jmk Added command id for parm_get2 (includes MUX2 parms)
08/10/95 jmk Added command id for Phone State, Pilot Sets and SPC reqs
01/28/95 ptw Added command id to obtain System Time from the mobile.
12/07/94 jmk Added command id for portable sleep on/off request.
11/07/94 jmk Added command to request that seq_nums be used in pkts.
09/26/94 jmk Put DIAG_ORIG_F and DIAG_END_F back in.
07/23/93 twp Added DIAG_TMOB_F
01/14/93 twp First release
===========================================================================*/
/*--------------------------------------------------------------------------
Command Codes between the Diagnostic Monitor and the mobile. Packets
travelling in each direction are defined here, while the packet templates
for requests and responses are distinct. Note that the same packet id
value can be used for both a request and a response. These values
are used to index a dispatch table in diag.c, so
DON'T CHANGE THE NUMBERS ( REPLACE UNUSED IDS WITH FILLERS ). NEW IDs
MUST BE ASSIGNED AT THE END.
----------------------------------------------------------------------------*/
/* Version Number Request/Response */
#define DIAG_VERNO_F 0
/* Mobile Station ESN Request/Response */
#define DIAG_ESN_F 1
/* Peek byte Request/Response */
#define DIAG_PEEKB_F 2
/* Peek word Request/Response */
#define DIAG_PEEKW_F 3
/* Peek dword Request/Response */
#define DIAG_PEEKD_F 4
/* Poke byte Request/Response */
#define DIAG_POKEB_F 5
/* Poke word Request/Response */
#define DIAG_POKEW_F 6
/* Poke dword Request/Response */
#define DIAG_POKED_F 7
/* Byte output Request/Response */
#define DIAG_OUTP_F 8
/* Word output Request/Response */
#define DIAG_OUTPW_F 9
/* Byte input Request/Response */
#define DIAG_INP_F 10
/* Word input Request/Response */
#define DIAG_INPW_F 11
/* DMSS status Request/Response */
#define DIAG_STATUS_F 12
/* 13-14 Reserved */
/* Set logging mask Request/Response */
#define DIAG_LOGMASK_F 15
/* Log packet Request/Response */
#define DIAG_LOG_F 16
/* Peek at NV memory Request/Response */
#define DIAG_NV_PEEK_F 17
/* Poke at NV memory Request/Response */
#define DIAG_NV_POKE_F 18
/* Invalid Command Response */
#define DIAG_BAD_CMD_F 19
/* Invalid parmaeter Response */
#define DIAG_BAD_PARM_F 20
/* Invalid packet length Response */
#define DIAG_BAD_LEN_F 21
/* 22-23 Reserved */
/* Packet not allowed in this mode
( online vs offline ) */
#define DIAG_BAD_MODE_F 24
/* info for TA power and voice graphs */
#define DIAG_TAGRAPH_F 25
/* Markov statistics */
#define DIAG_MARKOV_F 26
/* Reset of Markov statistics */
#define DIAG_MARKOV_RESET_F 27
/* Return diag version for comparison to
detect incompatabilities */
#define DIAG_DIAG_VER_F 28
/* Return a timestamp */
#define DIAG_TS_F 29
/* Set TA parameters */
#define DIAG_TA_PARM_F 30
/* Request for msg report */
#define DIAG_MSG_F 31
/* Handset Emulation -- keypress */
#define DIAG_HS_KEY_F 32
/* Handset Emulation -- lock or unlock */
#define DIAG_HS_LOCK_F 33
/* Handset Emulation -- display request */
#define DIAG_HS_SCREEN_F 34
/* 35 Reserved */
/* Parameter Download */
#define DIAG_PARM_SET_F 36
/* 37 Reserved */
/* Read NV item */
#define DIAG_NV_READ_F 38
/* Write NV item */
#define DIAG_NV_WRITE_F 39
/* 40 Reserved */
/* Mode change request */
#define DIAG_CONTROL_F 41
/* Error record retreival */
#define DIAG_ERR_READ_F 42
/* Error record clear */
#define DIAG_ERR_CLEAR_F 43
/* Symbol error rate counter reset */
#define DIAG_SER_RESET_F 44
/* Symbol error rate counter report */
#define DIAG_SER_REPORT_F 45
/* Run a specified test */
#define DIAG_TEST_F 46
/* Retreive the current dip switch setting */
#define DIAG_GET_DIPSW_F 47
/* Write new dip switch setting */
#define DIAG_SET_DIPSW_F 48
/* Start/Stop Vocoder PCM loopback */
#define DIAG_VOC_PCM_LB_F 49
/* Start/Stop Vocoder PKT loopback */
#define DIAG_VOC_PKT_LB_F 50
/* 51-52 Reserved */
/* Originate a call */
#define DIAG_ORIG_F 53
/* End a call */
#define DIAG_END_F 54
/* 55-57 Reserved */
/* Switch to downloader */
#define DIAG_DLOAD_F 58
/* Test Mode Commands and FTM commands */
#define DIAG_TMOB_F 59
/* Test Mode Commands and FTM commands */
#define DIAG_FTM_CMD_F 59
/* 60-62 Reserved */
#ifdef FEATURE_HWTC
#error code not present
#endif /* FEATURE_HWTC */
/* Return the current state of the phone */
#define DIAG_STATE_F 63
/* Return all current sets of pilots */
#define DIAG_PILOT_SETS_F 64
/* Send the Service Prog. Code to allow SP */
#define DIAG_SPC_F 65
/* Invalid nv_read/write because SP is locked */
#define DIAG_BAD_SPC_MODE_F 66
/* get parms obsoletes PARM_GET */
#define DIAG_PARM_GET2_F 67
/* Serial mode change Request/Response */
#define DIAG_SERIAL_CHG_F 68
/* 69 Reserved */
/* Send password to unlock secure operations
the phone to be in a security state that
is wasn't - like unlocked. */
#define DIAG_PASSWORD_F 70
/* An operation was attempted which required */
#define DIAG_BAD_SEC_MODE_F 71
/* Write Preferred Roaming list to the phone. */
#define DIAG_PR_LIST_WR_F 72
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -