Skip to content

Ublox cellular: broken support for custom board #11170

@pilotak

Description

@pilotak

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

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.

#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions