Commit Graph
1537 Commits
Author SHA1 Message Date
Aleksander Morgado 3bfbb59beb ublox: check which auth methods are supported
Don't assume the 'auto' auth method is supported for APN
authentication, query the modem first:

    checking supported authentication methods...
    (ttyACM2): --> 'AT+UAUTHREQ=?<CR>'
    (ttyACM2): <-- '<CR><LF>+UAUTHREQ: (1-4),(0-2),,<CR><LF>'
    (ttyACM2): <-- '<CR><LF>OK<CR><LF>'

    Using automatic authentication method

    setting up authentication preferences in PDP context #2...
    (ttyACM2): --> 'AT+UAUTHREQ=2,1,"vodafone","vodafone"<CR>'
    (ttyACM2): <-- '<CR><LF>OK<CR><LF>'
2017-09-15 10:31:21 -07:00
Aleksander Morgado b774e58dd0 ublox: new +UAUTHREQ=? tester 2017-09-15 10:31:21 -07:00
Aleksander Morgado acda0d69f1 ublox: if authentication not required, ignore +UAUTHREQ=0 errors
Just go on with the connection attempt.
2017-09-15 10:31:21 -07:00
Aleksander Morgado 0239e8769b ublox: try to use AT+UACT=X to set current bands 2017-09-15 10:31:21 -07:00
Aleksander Morgado 91f4ea5689 ublox: try to use AT+UACT? to query current bands 2017-09-15 10:31:21 -07:00
Aleksander Morgado 2d0b7b4ae0 ublox: try to use AT+UACT=? to query supported bands 2017-09-15 10:31:21 -07:00
Aleksander Morgado a0768a13f6 ublox: new AT+UACT=X command builder 2017-09-15 10:31:21 -07:00
Aleksander Morgado 826c5ad74a ublox: new AT+UACT=? test parser 2017-09-15 10:31:21 -07:00
Aleksander Morgado dbb8f7235d ublox: new AT+UACT? response parser 2017-09-15 10:31:21 -07:00
Aleksander Morgado 56e7112712 ublox,tests: define common method to compare bands 2017-09-15 10:31:21 -07:00
Aleksander Morgado ce203a1f74 ublox: define port type hints for the TOBY-L4
The TOBY-L4 exposes multiple TTY ports, but each of them has different
purposes:

The TTY at interface #2 is a fully capable AT port but shouldn't be
used to start connections, so we flag it as secondary.

The TTY at interface #4 is a non-AT debug port, so we explicitly
ignore it to make probing faster.

The TTY at interface #6 is the fully capable AT port that must be used
as primary port.

The TTY at interface #8 is an AT-capable port but dedicated to FOTA
update operations.
2017-09-15 10:31:21 -07:00
Aleksander Morgado 9a1c4f626d ublox: fallback to router mode if networking mode unknown
The TOBY-L4 doesn't support querying the current networking mode in
use via the AT+UBMCONF command, so we will just fallback to
MM_UBLOX_NETWORKING_MODE_ROUTER if that happens, as this is the mode
which requires less configuration commands from our side.
2017-09-15 10:31:21 -07:00
Aleksander Morgado 3dc3b52e77 ublox: allow creating u-blox bearers if MM_UBLOX_USB_PROFILE_UNKNOWN
The TOBY-L4 doesn't support querying the current USB profile in use
via the AT+UUSBCONF command, so the loaded profile will always be set
as MM_UBLOX_USB_PROFILE_UNKNOWN.

In this case, we will anyway allow creating a u-blox specific bearer,
as long as a network interface has also been found in the modem.
2017-09-15 10:31:21 -07:00
Aleksander Morgado 5ee58513c7 simtech: fix error reporting in 3gpp unsolicited events enabling 2017-09-13 16:37:00 +02:00
Ben Chan 0d2a167238 novatel-lte: port disconnect_3gpp to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 71bc8c7506 novatel-lte: port connect_3gpp to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan c13746dad7 novatel-lte: port scan_networks to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 43c4a49bc7 novatel-lte: port load_access_technologies to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan d8be23b606 novatel-lte: port load_current_bands to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan eb59cf8617 novatel-lte: port load_supported_bands to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan b56ea69589 novatel-lte: port modem_after_sim_unlock to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan ced9264a1c novatel-lte: port modem_create_bearer to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 979730247e novatel: port set_current_modes to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 7000039c8c novatel: port load_signal_quality to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan b14a3be4f1 novatel: port load_current_modes to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan b25b7723ec icera: port disconnect_3gpp to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 533a53c38d icera: port get_ip_config_3gpp to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan f2853ac2f8 icera: port modem_3gpp_{enable,disable}_unsolicited_events to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan cffe686cb1 icera: port modem_3gpp_{setup,cleanup}_unsolicited_events to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan e612838814 icera: port modem_create_bearer to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan b7bfba3e54 icera: port modem_time_check_support to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 18a55f6940 icera: port modem_power_up to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan d6bd83e5cf icera: port modem_set_current_bands to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 6612ffcb8b icera: port modem_set_current_modes to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan aa2cd2288a icera: port modem_load_current_bands to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan f168ffd032 icera: port modem_load_supported_bands to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan 4ecc8a13fd icera: port modem_load_unlock_retries to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan ce732e568c icera: port modem_load_access_technologies to use GTask 2017-09-13 16:36:49 +02:00
Ben Chan d6d52b95c7 huawei: port connect_3gpp to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 1ada2d23a5 huawei: port disconnect_3gpp to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan abf9d36183 huawei: port huawei_modem_create_bearer to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 7880a35b19 huawei: port huawei_custom_init to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan e76015ac49 huawei: port get_detailed_registration_state to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 9c32a96578 huawei: port setup_registration_checks to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 39484765f1 huawei: port call_start to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 8df63e385c huawei: port modem_voice_disable_unsolicited_events to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 68075a23a7 huawei: port modem_voice_enable_unsolicited_events to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 5e8a7aad76 huawei: port modem_voice_{setup,cleanup}_unsolicited_events to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 46866b08be huawei: port modem_cdma_{setup,cleanup}_unsolicited_events to use GTask 2017-09-08 17:45:29 +02:00
Ben Chan 5f641afe07 huawei: port modem_3gpp_disable_unsolicited_events to use GTask 2017-09-08 17:45:29 +02:00