EasyManua.ls Logo

Campbell CELL205 - Page 81

Campbell CELL205
102 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CRBasic Example 3: CELL200 series settings configuration and status retrieval using terminal
functionality
EndIf
SerialOut(ComSDC11, "set sdc 7" & CRLF, CRLF, 1, 200)
'Set the SDC address of the modem (7, 8, 10, 11)
SerialIn(returned_value, ComSDC11, 100, CHR(13), 1000)
If (returned_value = "SDC address saved. Cellular module reset required!" _
& CHR(13)) Then
modem_reset_needed = TRUE
EndIf
SerialOut(ComSDC11, "set listen port 3001" & CRLF, CRLF, 1, 200)
'Set the listen port
SerialIn(returned_value, ComSDC11, 100, CHR(13), 1000)
If (returned_value = "Listen port set. Reboot required!" & _
CHR(13)) Then
modem_reset_needed = TRUE
EndIf
SerialOut(ComSDC11, "set billing 10" & CRLF, CRLF, 1, 200)
'Set day of the month for billing statistics
SerialIn(returned_value, ComSDC11, 100, CHR(13), 1000)
SerialOut(ComSDC11, "set roaming auto" & CRLF, CRLF, 1, 200)
'Set the roaming mode of the data logger (Auto or disabled).
SerialIn(returned_value, ComSDC11, 100, CHR(13), 1000)
If (returned_value = "Roaming set to Auto. Cellular module reset required!"
_
& CHR(13)) Then
modem_reset_needed = TRUE
EndIf
SerialOut(ComSDC11, "set ipprotocol IPv4" & CRLF, CRLF, 1, 200)
'Set the IP protocol used on the cellular network (IPv4, IPv6, or
'IPv4/IPv6).
SerialIn(returned_value, ComSDC11, 100, CHR(13), 1000)
If (returned_value = "Protocol set to IPv4. Cellular module reset _
required!" & CHR(13)) Then
modem_reset_needed = TRUE
EndIf
'other set commands include:
' set ppp user (PPP username in modem)
' set ppp pass (PPP password in modem)
' set comms watch (allows user to sniff/watch a port, usually not used
' programatically)
CELL200-Series 4G LTE Cellular Module 68

Table of Contents

Related product manuals