-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Description
PR #10877 really breaks support for custom targets with ublox modem, everything is target specific and not modem specific. I'm using SARA-G350 (part of C027) with STM32F412ZG/STM32F303RE.
Following command is not supported on this modem and fails to connect, it should be moved to a line 62
where this variable is used
mbed-os/features/cellular/framework/targets/UBLOX/AT/UBLOX_AT_CellularContext.cpp
Line 52 in 431c4c1
CellularNetwork::RadioAccessTechnology rat = read_radio_technology(); |
Following part is limiting, this is where it should be specified #ifdef TARGET_UBLOX_C027 || TARGET_HAS_G350
or similar.
mbed-os/features/cellular/framework/targets/UBLOX/AT/UBLOX_AT.cpp
Lines 98 to 110 in 431c4c1
#ifdef TARGET_UBLOX_C027 | |
_at->cmd_start("AT+CFUN=0"); | |
_at->cmd_stop_read_resp(); | |
if (_at->get_last_error() == NSAPI_ERROR_OK) { | |
_at->cmd_start("ATE0"); // echo off | |
_at->cmd_stop_read_resp(); | |
_at->cmd_start("AT+CMEE=1"); // verbose responses | |
_at->cmd_stop_read_resp(); | |
config_authentication_parameters(); | |
_at->cmd_start("AT+CFUN=1"); // set full functionality | |
_at->cmd_stop_read_resp(); | |
} | |
#else |
I know that i can override init()
but than there would a problem with config_authentication_parameters()
because it's private and of course overriding it takes aditional 192 bytes extra space
Issue request type
[ ] Question
[ ] Enhancement
[x] Bug