Skip to content

mbed AT commands #14889

Open
Open
@tcpipchip

Description

@tcpipchip

on
https://github.com/ARMmbed/mbed-os-example-cellular
modem AT command Socket receive

Target(s) affected by this defect ?

NRF52832 (Nina B112)

Toolchain(s) (name and version) displaying this defect ?

Mbed Studio: 1.4.1

What version of Mbed-os are you using (tag or sha) ?

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

Mbed Studio: 1.4.1

How is this defect reproduced ?

I found something very interesting!
If you put in UBLOX_AT__celularStack.cpp the following instruction:

printf("%s\n","EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE");

UBLOX_AT_CellularStack::UBLOX_AT_CellularStack(ATHandler &atHandler, int cid, nsapi_ip_stack_t stack_type, AT_CellularDevice &device) :

AT_CellularStack(atHandler, cid, stack_type, device)
{
// URC handlers for sockets

printf("%s\n","EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE");

_at.set_urc_handler("+UUSORD:", callback(this, &UBLOX_AT_CellularStack::UUSORD_URC));
_at.set_urc_handler("+UUSORF:", callback(this, &UBLOX_AT_CellularStack::UUSORF_URC));
_at.set_urc_handler("+UUSOCL:", callback(this, &UBLOX_AT_CellularStack::UUSOCL_URC));
_at.set_urc_handler("+UUPSDD:", callback(this, &UBLOX_AT_CellularStack::UUPSDD_URC));
}

Blocks my UART (console)...

But....all AT commands sent to MODEM work perfectly now, i can see now the ECHO! See the picture

Can you give some tip about ?

image

If i remove the
printf("%s\n","EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE");
fail
image

By the way, the parameter on printf must be a LONG string :( "EEEEEEEEEEEEEEEEEEEEEEEEEEEE.... and
"platform.stdio-buffered-serial": true,
to work

Very weird! Some tip ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions