done
assert serial_exists ${device}
- assert serial_is_unlocked ${device}
assert isset answer
assert isset timeout
local device=${1}
assert isset device
- # Make sure the SIM card is unlocked for this operation.
- assert modem_sim_unlocked ${device}
-
modem_chat ${device} "AT+CIMI"
}
local device=${1}
assert isset device
- # Make sure the SIM card is unlocked for this operation.
- assert modem_sim_unlocked ${device}
-
local output
output=$(modem_chat ${device} "AT+CREG?")
assert_check_retval $?
local device=${1}
assert isset device
- # Make sure the SIM card is unlocked for this operation.
- assert modem_sim_unlocked ${device}
-
local mode=${2}
assert isset mode
local device=${1}
assert isset device
- # Make sure the SIM card is unlocked for this operation.
- assert modem_sim_unlocked ${device}
-
local output
output=$(modem_chat --timeout=60 ${device} "AT+COPS=?")
assert_check_retval $?
local device=${1}
assert isset device
- # Make sure the SIM card is unlocked for this operation.
- assert modem_sim_unlocked ${device}
-
local argument=${2}
assert isset argument
local device=${1}
assert isset device
- # Make sure the SIM card is unlocked for this operation.
- assert modem_sim_unlocked ${device}
-
local argument=${2}
assert isset argument