standard at command set supported by piaccess link

Upload: mihai-paun

Post on 14-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    1/8

    Standard AT command set supported by piAccess Link

    AT+CMGR Read Message

    Description: Returns messages with location value from phone memory message storage (ME). If the status of the

    message is "REC UNREAD" (0), the status in the storage changes to "REC READ" (1). If reading fails, +CMS ERR

    00 is returned and if is out of bounds +CMS ERROR 321 is returned.

    Execution command: AT+CMGR=

    Command response: +CMGR: ,,,,

    PDU-mode example:

    AT+CMGR=15

    CMGR: 15,1,,78

    pdu_data>

    CR>OK

    AT+CMGD Delete Message

    Description: Deletes message from the phone memory message storage at location . If deletion fails, +CMSERROR 500 is returned and if is out of bounds +CMS ERROR 321 is returned.

    Execution command: AT+CMGD=

    Example:

    AT+CMGD=6

    CR>OK

    AT+CMGL List Messages

    Description: Lists messages with status value from the phone memory message storage (ME).

    Execution command: AT+CMGL=

    Command response: +CMGL: ,,,,,

    PDU-mode example:

    AT+CMGL=4

    CR>+CMGL: 1,1,,40

    pdu data>

    CR>+CMGL: 2,1,,48

    pdu data>

    CR>+CMGL: 3,2,,78

    pdu data>

    CR>+CMGL: 4,2,,78

    pdu data>

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    2/8

    CR>+CMGL: 5,0,,78

    pdu data>

    CR>+CMGL: 6,3,,78

    pdu data>

    CR>

    CR>OK

    AT+CMGS Send Message

    Description: Sends message from a terminal equipment to the network. To send the message (ASCII 26) must be give

    mr> is returned after successful message delivery. If sending fails in the network or if there is an phone error, +CM

    ERROR 500 is returned. If the PDU message is corrupted or invalid +CMS ERROR 304 is

    eturned.

    Execution command: AT+CMGS=

    Command response: +CMGS:

    Example:

    AT+CMGS=29

    011000C914477214365870000FF07C8721E847E8700

    CMGS: 1

    CR>OK

    AT+CNMI New Message Indication

    Description: Selects if the reception of new messages from the network is indicated to the terminal equipment when the phone

    ctive. parameter is used to enable or disable new message indications. When set to 1 is enabled and value 0 disables i

    Default is disabled.

    Set command: AT+CNMI=,,,,

    mportant Note: Parameters ,,, are irrelevant to us and therefore will be ignored. Added in order to

    maintain compatibility with the standard AT+CNMI command

    Example:

    AT+CNMI=0,1,0,0,0

    CR>OK

    New message unsolicited indication:

    CMTI: "ME",15

    Note: New message stored in phone's memory, in index 15

    AT+CPMS Preferred Message Storage

    Description: Selects memory storage spaces to be used for reading. If chosen storage is not valid, ERROR

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    3/8

    Command response: +CPMS: ,,,,,

    Example:

    AT+CPMS="ME"

    CPMS: 45,145,0,0,45,145

    CR>OK

    AT+CMGF Preferred Message Format

    Description: Selects message format to be used for reading. If chosen format is not valid, ERROR is

    eturned. Default is PDU.

    Command: AT+CMGF=

    Command response: +CMGF:

    Example:

    AT+CMGF=1

    CMGF:1

    CR>OK

    AT+CPBR Phonebook Read

    Description: Returns phone book entries in location number range ... from the phone memory phonebook

    torage. If is omitted, only location is returned. Entry fields returned are location number , phone

    umber in , and last and/or first name associated with the number.

    Execution command: AT+CPBR=[,]

    Command response: +CPBR: ,,,

    est command: AT+CPBR=? Shows if the command is supported

    est command response: +CPBR: (list of supported s),,

    Example:

    AT+CPBR=1,3

    CPBR: 1,"12345677890",129,"MARK/M"

    CPBR: 2,"2107407407",129,"DEBBBY/H"

    CPBR: 3,"+442089898989",145,"JOHN DOE/W"

    CR>OK

    AT+CPBS Select Phonebook Storage

    Description: Selects the phonebook memory storage that is used by other phonebook commands such as CPBR.

    Currently only phone memory (ME) storage is supported.

    Execution command: AT+CPBS=

    Command response: +CPBS:(list of supported s)

    Read command: AT+CPBS? Displays the current setting.

    est command: AT+CPBS=? Shows if the command is supported.

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    4/8

    AT+CGSN Return IMEI

    Description: Returns the pure 15-digit IMEI, no SV digits, but some formatting.

    Example:

    AT+CGSN

    5454500-026854-6

    CR>OK

    AT+CIMI Return IMSI

    Description: Returns the IMSI

    Example:

    AT+CIMI

    10380047335755

    CR>OK

    Note: IMSI retrieval may not be supported in some phone models (eg. P800)

    AT+CSQ Signal Quality

    Description: Returns received signal strength indication.

    Execution command: AT+CSQ

    Command response: +CSQ: ,

    est command: AT+CSQ=? Shows if the command is supported.

    est command response: +CSQ: (list of supported s),(list of supporteds)

    Values of :

    -1 -110dBm or less

    -30 -109dBm to -53dBm

    9 Not known or not detectable

    Example:

    AT+CSQ

    CSQ: 30,99

    CR>OK

    Note: is not supported and has a constant value of 99. It is included for compatibility reasons

    AT+CBC Battery Charge

    Description: Returns battery level.

    Execution command: AT+CBC

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    5/8

    Command response: +CBC:,

    est command: AT+CBC=? Shows if the command is supported.

    est command response: +CBC: (list of supported s),(list of supporteds)

    Example:

    AT+CBC

    CBC: 0,89

    CR>OK

    Notes:

    . Battery level indications may not be supported in some phones (e.g. Px00, A1000)

    . is not supported and has a constant value of 0. It is included for compatibility reasons

    Custom AT commands supported by piAccess Link

    AT+SMGR Read Message With Phonebook Integration

    Description: Custom read command that returns messages with location value from phone memory message storage

    ME) and integrates phonebook information, if available, as part of the response. If reading fails, +CMS ERROR

    00 is returned and if is out of bounds +CMS ERROR 321 is returned.

    Execution command: AT+SMGR=

    PDU-mode response: +SMGR: ,,,,,,

    PDU-mode example:

    AT+SMGR=59

    SMGR: 59,1,,"FirstName","LastName","[email protected]",99

    pdu_data>

    CR>OK

    AT+SMGR=12

    SMGR: 12,3,"05/04/23,19:57:26",,"LastName",,68

    pdu_data>

    CR>OK

    Note: In PDU-mode the value is present only in messages with value 3. I.e. only for Sent items.

    AT+SMGL List Messages With Phonebook Integration

    Description: Custom list command that returns messages with status value from phone memory (ME) message storage

    ntegrates phonebook information, if available, as part of the response.

    Execution command: AT+SMGL=

    Command response in Text-mode: +SMGL: ,,,,,,,

    Command response in PDU-mode: +SMGL: ,,,,,,

    PDU-mode example:

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    6/8

    AT+SMGL=4

    SMGL: 1,3,"05/04/23,19:57:26","Joe","Bloggs","[email protected]",40

    pdu data>

    CR>+SMGL: 2,1,,"Joey",,,48

    pdu data>

    CR>+SMGL: 3,1,,,,,55

    pdu data>

    CR>+SMGL: 4,0,,,"Smith","[email protected]",99

    pdu data>

    CR>OK

    mportant Notes:

    . In PDU-mode when a concatenated message is read, only the 1st fragment contains phonebook info. All other fragments of

    message follow with the phonebook fields empty.

    . In PDU-mode the value is present only in messages with value 3. I.e. only for Sent items.

    AT+SPBR Multi-number Phonebook Read

    Description: Returns phone book entries in location number range ... from the phone memory storage. If

    index2> is omitted, only location is returned. Entry fields returned are location number , number of phone

    umbers retrieved , number of emails retrieved , phone numbers in , followed by contac

    ata info if present.

    Execution command: AT+SPBR=[,]

    Command response: +SPBR: ,,,[,,...],[],

    ],[,...],[],[],[],[],[]

    est command: AT+SPBR=? Shows if the command is supported

    est command response: +SPBR: (list of supported s),,

    Example:

    AT+SPBR=1,3

    SPBR: 1,1,0,"12345677890",129,"MARK",,,,,,,

    SPBR: 2,0,2,,"JON","DOE,"[email protected]","[email protected]",,,,,USA

    SPBR: 3,2,1,"+442089898989",145,"222244444",129,"Joe","Bloggs","[email protected]","10 High

    Street","Camden","London","N1 5FG","England"

    CR>OK

    Standard AT commands soon to be supported by piAccess Link

    AT+CMGW Write Message To Memory

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    7/8

    Description: Stores a message to phone memory message storage. The memory location of the stored message is

    eturned. If writing fails, +CMS ERROR 500 is returned.

    Execution command: AT+CMGW=

    Command response: +CMGW:

    Example:

    AT+CMGW=6949798989Hello there

    CMGW: 3

    CR>OK

    Note: Message stored in index 3

    dentification AT commands supported by piAccess Link

    Command Reply

    ATI piAccess Link

    ATI0 piAccess Link

    ATI1 Software version

    ATI2 AT protocol version

    ATI3 Build number and date

    AT+CGMM piAccess Link

    AT+GMM piAccess Link

    AT+CGMI Pragmaticomm Limited

    AT+GMI Pragmaticomm Limited

    AT+CGMR Software version

    AT commands with mock support by piAccess Link

    Command Reply

    AT OK

    ATZ OK

    ATE0 OK

    ATE1 OK

    Response termination sequence

    All commands, will be appended at the end of their responses by:

    CR>OK

    n succesful completion or by

    CR>ERROR

    n case of error, unless otherwise stated.

  • 7/27/2019 Standard at Command Set Supported by PiAccess Link

    8/8

    Parameter definitions

    data> Message body

    stat> Status of message. Can take values "ALL" or 4, "REC UNREAD" or 0, "REC READ" or 1 (both read from Inbox),

    STO UNSENT" or 2 (Drafts) and "STO SENT" or 3 (Sent)

    oa> Originator address

    da> Destination address

    length> Length of sms body characters

    scts> Service center time stamp in string format: "yy/mm/dd,hh:mm:ss" (Year/Month/Day,Hour:Min:Sec)

    used1> Always refers to SM (SIM) memory storage

    used2> Always refers to ME (Phone) memory storage

    mode> Message format mode. Takes values 0 for PDU and 1 for Text mode

    mr> Message reference. 8-bit integer value that is increased every time a message is sent

    indexn> Values in the range of location numbers of phonebook memory

    number> Phone number of format

    type> 129:Unknown numbering plan, national/international number unknown, 145:international number

    text> Contact last name and/or first name. Maximum length

    nlength> Maximum length of field

    tlength> Maximum length of field

    contact_flag> "/H": Home, "/M": Mobile, "/W": Work, "/F": Fax, "/O": Other

    rssi> Received signal strength indication

    bcl> Battery charge level. Values: 0 Battery exhausted, 1-99 percent of capacity remaining, 100 Fully charged

    CR> Carriage return

    LF> Line feed