Function get_csq
pub fn get_csq() -> Result<i32>Expand description
Get the current network registration status.
Normally, CSQ = (113 + rssi) / 2
| CSQ | RSSI |
|---|---|
| 0 | -113dBm or less |
| 1 | -111 |
| 2…30 | -109…-53 dBm |
| 31 | -51 dBm or greater |
| 99 | not known or not detectable |
§Quectel Examples
None.
§Implementation Notes
Calls ql_nw_get_rssi_ext (unfortunately not exported), which in turn calls
qmi_client_send_msg_sync. The rssi value is then converted to CSQ.
The function calls printf("RSSI outside signal range: %d", arg1); in one
of the branches, but I don’t know what the conditions are.