Campbell CELL205 Product Manual page 80

4g lte cellular module
Hide thumbs Also See for CELL205:
Table of Contents

Advertisement

CRBasic Example 3: CELL200 series settings configuration and status retrieval using terminal
SetSetting
"CellDiversity"
(
SetSetting
(
"CELLBIllingDay"
SetSetting
(
"PPPInterface"
'Open a serial connection to the modem using the SDC address listed in the
modem's
'Terminal Port CS I/O SDC Address: setting.
SerialOpen
(ComSDC11, 460800, 0, 0, 500)
#Else
modem_reset_needed = FALSE
'Open a serial connection to the modem using the SDC address listed in the
modem's
'Terminal Port CS I/O SDC Address: setting.
SerialOpen
(ComSDC11, 460800, 0, 0, 500)
SerialOut
(ComSDC11, CRLF ,
SerialOut
(ComSDC11,
'Replace *s with APN assigned by cellular provider
SerialIn
(returned_value, ComSDC11, 100,
If
(returned_value =
CHR
(13))
Then
  modem_reset_needed = TRUE
EndIf
SerialOut
(ComSDC11, "set div 0" & CRLF, CRLF, 1, 200)
'Tell the modem not to use the diversity antenna on the cellular
'modem (default). 0 = off 1 = on
SerialIn
(returned_value, ComSDC11, 100,
If
(returned_value =
CHR
Then
(13))
  modem_reset_needed = TRUE
EndIf
SerialOut
(ComSDC11,
'Set the baud rate on the RS-232 port of the cellular modem
SerialIn
(returned_value, ComSDC11, 100,
If
(returned_value =
CHR
Then
(13))
modem_reset_needed = TRUE
EndIf
SerialOut
(ComSDC11,
'Set the mode the modem operates in PPP or SERIAL
SerialIn
(returned_value, ComSDC11, 100,
If
(returned_value =
CHR
Then
(13))
  modem_reset_needed = TRUE
functionality
, 0)
, 10)
, COMSDC8)
'Set PPP Interface to COMSDC8
"CELL2xx>"
"set apn ****.****"
"APN saved. Cellular module reset required!"
"Diversity saved. Cellular module reset required!"
"set baud 115200"
"Baud rate saved. Cellular module reset required!"
"set mode PPP"
& CRLF, CRLF, 1, 200)
"Mode set to PPP mode. Reboot required!"
, 1, 200)
& CRLF, CRLF, 1, 200)
CHR
(13), 1000)
CHR
(13), 1000)
& CRLF, CRLF, 1, 200)
CHR
(13), 1000)
CHR
(13), 1000)
CELL200-Series 4G LTE Cellular Module
& _
& _
& _
& _
67

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cell200 seriesCell210Cell215Cell220Cell225

Table of Contents