Espanol
AddThis Social Bookmark Button

05 Example of routine command for Telit GM862

Normally I propose an example of how can be made a routine of sending command AT The final time of 500mS serves in order to attend the answer and allows to make an other send. Obviously it can be reduced, or better I can monitor the answer and correct the result
Answer OK > Continue
Wrong Answer > error analysis > errors management

;------------------------------------------------------------------------
EXAMPLE OF ROUTINE COMMAND FOR TELIT GM862
;
; AT COMMAND
; AT+CPBS="SM"
;------------------------------------------------------------------------

_cpbs

movlw 'A'
call TransWt
movlw 'T'
call TransWt
movlw '+'
call TransWt
movlw 'C'
call TransWt
movlw 'P'
call TransWt
movlw 'B'
call TransWt
movlw 'S'
call TransWt
movlw '='
call TransWt
movlw '"'
call TransWt
movlw 'S'
call TransWt
movlw 'M'
call TransWt
movlw '"'
call TransWt
movlw .13 ;
call TransWt
call t500ms
return

;--------------------------------------------------------------------------------