⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atextend.c

📁 free sources for gsm
💻 C
📖 第 1 页 / 共 3 页
字号:
                 /* Audio data commands */
                /* "AT+VBT: ", */
                /* "AT+VCID: ", */
                /* "AT+VGR: ", */
                /* "AT+VGT: ", */
                /* "AT+VIP: ", */
                /* "AT+VIT: ", */
                /* "AT+VLS: ", */
                /* "AT+VRX: ", */
                /* "AT+VSM: ", */
                /* "AT+VTD: ", */
                /* "AT+VTS: ", */
                /* "AT+VTX: ", */

                /* Mobile equipment and status commands */
                "AT+CPAS  : Request phone activity status",
                /* "AT+CFUN: ", */
                "AT+CPIN  : Set pin code",
                "AT+CBC   : Requenst battery charge info",
#if defined( CUSTK ) && !defined(SIM_TRACE)
                "AT+CSQ   : Request signal strength and quality",
#endif
                /* "AT+CMEC: ", */
                /* "AT+CKPD: Keypad control", */
                /* "AT+CDIS: ", */
                /* "AT+CIND: ", */
                /* "AT+CMER: ", */
                /* "AT+CPBS: ", */
                /* "AT+CPBR: ", */
                /* "AT+CPBF: ", */
                /* "AT+CPBW: ", */
                "AT+CCLK  : Clock",
                /* "AT+CALA: ", */
                /* "AT+CSIM: ", */
                /* "AT+CRSM: ", */
                "AT+CLVL  : Set loudspeaker volume level",

                 /* Mobile equipment errors */
                "AT+CMEE  : Set mobile equipment error",

                 /* V25ter Commands */
                 /* Commands relating to the TE/TA interface */
                /* "AT+ICF: ", */
                /* "AT+IFC: ", */
                /* "AT+ILRR: ", */
                /* "AT+IPR: ", */

                /* General Commands */
                /* "AT+GCAP: ", */
                /* "AT+GCI: ", */
                "AT+GMI   : Request manufacturer identification",
                "AT+GMM   : Request model identification",
                "AT+GMR   : Request revision identification",
                /* "AT+GOI: ", */
                "AT+GSN   : Request Product Serial Number Identification",

                /* Call control commands and methods */
                /* "AT+DR: ", */
                /* "AT+DS: ", */

                /* Fax Commands (see ITU T31, S11) */
                "AT+FCLASS: Request or set fax class ",
                "AT+FRH   : Receive HDLC frame",
                "AT+FRM   : Receive fax data",
                "AT+FRS   : Receive silence",
                "AT+FTH   : Transmit HDLC frame",
                "AT+FTM   : Transmit fax data",
                "AT+FTS   : Transmit silence",
                "AT+FAE   : Select fax auto answer mode",
     /* AT GPRS  commands */
 #if 1                
                "AT+CGDCONT: Define a PDP context",
                "AT+CGDSCONT: Define a secondary PDP context",
                "AT+CGTFT: Define a Pkt Filter for Traffic Flow Template",
                "AT+CGQREQ:  Define requested QoS",
                "AT+CGQMIN:  Define minimum QoS",
                "AT+CGEQREQ:  Define requested extended QoS",
                "AT+CGEQMIN:  Define minimum extended QoS",
                "AT+CGEQNEG:  Show negociated extended QoS",
                "AT+CGACT:   Activate a PDP context",
                "AT+CGCMOD:   Modify a PDP context",
                "AT+CGPADDR: Show a PDP address",
                "AT+CGMSACT: switch on/off  the MS",                
                "AT+CGATT:   Attach/Detached GPRS services",  
                "AT+FXTLLI:  Asssign a TLLI to ??",
                "AT+CGCONF: configuration command for GPRS services",                  
                /* 250601 */
#endif        
                /* SMS commands */
#ifdef AT_SMS
        "AT+CSMS   : Select message service",  
        "AT+CPMS   : Preferred message storage",  
        "AT+CMGF   : Message format", 
  /* Commented out because we do not intend to handle block mode any time soon NW May 99 */        
  /*      {"+CESP",   HndlATsCESP,   NULL,           HndlATtCESP  }, */

/****************************** Message configuration commands ******************************/
        "AT+CSCA   : Service center address",  
        "AT+CSMP   : Set text mode parameters",  
        "AT+CSDH   : Show text mode parameters",  
        "AT+CSCB   : Select cell broadcast message types",   
        "AT+CSAS   : Save settings",  
        "AT+CRES   : Restore settings",  

/***************************Message receiving and reading commands **************************/
        "AT+CNMI   : New message indications to TE",   
        "AT+CMGL   : List messages",   
        "AT+CMGR   : Read message",   

/**************************** Message sending and writing commands **************************/
        "AT+CMGS   : Send message",   
        "AT+CMSS   : Send message from storage",   
        "AT+CMGW   : Write message to memory",   
        "AT+CMGD   : Delete message",  
        
       /*  "AT+CMGC   : Send command", NOT IMPLEMENTED */
#endif        
                0
                };




/**************************************************************************/
/**     FUNCTION PROTOTYPES                                              **/
/**************************************************************************/


/**************************************************************************/
/**     LOCAL FUNCTIONS                                                  **/
/**************************************************************************/


/* ---------------------------------------------------------------------- */
/*
Name:     HndlATtXXX
Desc:     V.25ter requires that ALL extended AT commands support the test
          syntax  "AT+xxx=?".  Those which do not have any parameters
          simply return the result code "OK".  This routine may be used
          for all such commands.
Params:
Returns:
Caveats:  -
*/

static ATCMD_RESULT HndlATtXXX( void )
   {

   /* THIS IS NOT YET IMPLEMENTED!!!!! - should switch on XXX and call the
   relevant t function! */
   
   T( "*AT* - HndlATtXXX\n" );
   return DIDIT;
   }


/* ---------------------------------------------------------------------- */
/*
Name:     HndlATsWS46
Desc:     PCCA STD-101 [17] select wireless network (Mandatory in PCCA STD-101,
          but optional for Phase 2 & Phase 2+)
          (Set Command)
Params:
Returns:  ATCMD_RESULT
Caveats:  -
*/

static ATCMD_RESULT HndlATsWS46( INT8 * paramStrPtr )
   {
   ATCMD_RESULT result;
   UINT16 n;

   T( "*AT* - HndlATsWS46\n" );

   /* Extract the parameter */
   result = ParseForNOptInt( paramStrPtr, 1, &n );
   if ( result == DIDIT )
      {
      if ( n == UNSPECIFIED )
         n = 12;                /* Default: GSM digital cellular */

      /* Range checking */
      if ( n != 12 )
         return AT_UNSUPPORTED;

      /* Execute the command */

      }

   return AT_UNSUPPORTED;
   }

/* ---------------------------------------------------------------------- */
/*
Name:     HndlATrWS46
Desc:     PCCA STD-101 [17] select wireless network (Mandatory in PCCA STD-101,
          but optional for Phase 2 & Phase 2+)
          (Read Command)
Params:
Returns:  ATCMD_RESULT
Caveats:  -
*/

static ATCMD_RESULT HndlATrWS46( void )
   {
   T( "*AT* - HndlATrWS46\n" );
   ATSendReply( "+WS46:12" );
   return DIDIT;
   }

/* ---------------------------------------------------------------------- */
/*
Name:     HndlATtWS46
Desc:     PCCA STD-101 [17] select wireless network (Mandatory in PCCA STD-101,
          but optional for Phase 2 & Phase 2+)
          (Test Command)
Params:
Returns:  ATCMD_RESULT
Caveats:  -
*/

static ATCMD_RESULT HndlATtWS46( void )
   {
   T( "*AT* - HndlATtWS46\n" );
   ATSendReply( "+WS46:(12)" );
   return DIDIT;
   }



/**************************************************************************/
/**     GLOBAL FUNCTIONS                                                 **/
/**************************************************************************/

/* ---------------------------------------------------------------------- */
/*
Name:    HndlATExtHelp
Desc:    Display Help for Extended Commands
Params:
Returns:
Caveats:
*/
void  HndlATExtHelp( void )
 {
   
     if(!MSInactiveWaitingForSwitchonByATCmd)
     {
         ListHelp( ExtHelp );
     }
     else
    {
         ListHelp( ExtTestHelp );
     }
   
 }
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -