CRBasic Example 3: CELL200 series settings configuration and status retrieval using terminal
'clean out any garbage characters that might have come in.
SerialOut
(ComSDC11, CRLF ,
'Send a CRLF and wait CELL2xx prompt before continuing on.
SerialOut
(ComSDC11,
'put the modem into low power mode
SerialIn
(returned_value, ComSDC11, 100,
If
(returned_value =
modem_is_off = TRUE
returned_value =
EndIf
Loop
EndIf
If
((TimeIsBetween(0, 10, 60, Min)
AND
modem_is_off
'turn the modem on at the top of the hour in a 10 minute windows
'PPPOpen'Uncomment line for CR1000, CR800 series, and CR3000.
Do Until
(modem_is_off = FALSE)
SerialFlush
'clean out any garbage characters that might have come in.
SerialOut
(ComSDC11, CRLF ,
'Send a CRLF and wait CELL2xx prompt before continuing on.
SerialOut
(ComSDC11,
'bring the modem fully back online
SerialIn
(returned_value, ComSDC11, 100,
If
(returned_value =
modem_is_off = FALSE
returned_value =
EndIf
Loop
EndIf
Loop
EndSequence
EndProg
D.2 Status commands
Status commands show current values of the information being requested. Some correspond to
settings and others are tied to diagnostic information. All values returned are strings. Not all
modems return all values. Values returned are also dependent on the network the device is
connected to.
"CELL2xx>"
"deep sleep"
"Sleep enabled."
""
<>
Then
FALSE)
(ComSDC11)
"CELL2xx>"
"wakeup"
"Sleep disabled."
""
functionality
, 1, 200)
& CRLF, CRLF, 1, 200)
CHR
(13), 1000)
CHR
&
(13))
OR TimeIsBetween
, 1, 200)
& CRLF, CRLF, 1, 200)
CHR
(13), 1000)
&
CHR
(13))
CELL200-Series 4G LTE Cellular Module
Then
(58, 60, 60, Min)) _
Then
77