AN93

9.3. Example Session

The example below shows a typical session. The user determines the values of the U-registers.

transmit "AT+FCLASS=256<CR>" ;Enable SMS POS mode waitfor "OK"

transmit "AT:UCA,0,12C,4E<CR>" ;Set SMS POS parameters waitfor "OK"

transmit "ATD<phone number here>;<CR>" ;dial out waitfor "OK`x0d`x0a"

The ’;’ at the end of the dial string returns the modem to command mode after dialing. The modem will issue an OK after dialing.

transmit "AT:UD1,3C<CR>" ; Set TxDelay = 600ms waitfor "OK"

transmit "AT:UD2,3E8<CR>" ; Wait 10 s for an answer. waitfor "OK"

transmit "AT+FRM=200<CR>" ; Go into data mode and wait for Originate modem

The length of the timeout is dependent on the host called. Once the connection is made, the answer modem’s host expects to receive a frame such as:

0x81 0x00 0x05 0x13 0xcd 0xaa 0xa4 0x00 0x4c

Followed by:

<DLE><ETX><CR><LF>OK<CR><LF>

Once a frame has been received, the receive modem becomes the transmit modem. The server returns a frame of data to the terminal.

transmit "AT+FTM=202<CR>"; Use Protocol 2 waitfor "CONNECT `x0d`x0a"

Transmit a frame such as:

0x82 0x00 0x05 0x6c 0xea 0x50 0x6b 0x00 0x68

transmit "`x10`x03"

; Send <DLE><ETX> at the end of frame

waitfor "OK`x0d`x0a"

 

Rev. 1.3

239

Page 239
Image 239
Silicon Laboratories SI2494/39, SI2493/57/34/15/04 manual Example Session, Dleetxcrlfokcrlf