Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cellular: Gemalto Cinterion support for ELS61 and BGS2 #7677

Merged
merged 4 commits into from
Aug 29, 2018

Conversation

AriParkkila
Copy link

@AriParkkila AriParkkila commented Aug 2, 2018

Description

AT command support for the Gemalto Cinterion cellular modules:

  • LWIP supported in PPP mode
  • UDP sockets supported in AT mode

Depends on PR #7860.

Pull request type

[ ] Fix
[ ] Refactor
[ ] New target
[X] Feature
[ ] Breaking change

@AriParkkila
Copy link
Author

@jarvte @mirelachirica @TeemuKultala please review

return (reg_type == C_REG || reg_type == C_GREG || reg_type == C_EREG);
}

const char *GEMALTO_CINTERION_CellularNetwork::get_apn() const
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for this method as _apn is protected in inherited class

}

socket->created = true;
tr_info("Socket %d created (err %d)", socket->id, _at.get_last_error());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be debug so that log is not polluted.

nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_sendto_impl(CellularSocket *socket,
const SocketAddress &address, const void *data, nsapi_size_t size)
{
tr_info("Socket %d, sendto %s, len %d", socket->id, address.get_ip_address(), size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be debug so that log is not polluted.

_at.write_bytes((uint8_t *)data, accept_len);
_at.resp_stop();

tr_info("Socket %d sendto %s, %d bytes (err %d)", socket->id, address.get_ip_address(), accept_len, _at.get_last_error());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be debug so that log is not polluted.

nsapi_size_or_error_t GEMALTO_CINTERION_CellularStack::socket_recvfrom_impl(CellularSocket *socket, SocketAddress *address,
void *buffer, nsapi_size_t size)
{
tr_info("Socket %d recvfrom %d bytes", socket->id, size);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be debug so that log is not polluted.


_at.resp_stop();

tr_info("Socket %d, recvfrom %s, %d bytes (err %d)", socket->id, ip_address, len, _at.get_last_error());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be debug so that log is not polluted.

@AriParkkila
Copy link
Author

Removed redundant get_apn() and fixed tracing level to tr_debug. Also rebased with mbed-os/master.

@AriParkkila AriParkkila changed the title Cellular: Gemalto Cinterion support for ELS61 Cellular: Gemalto Cinterion support for ELS61 and BGS2 Aug 17, 2018
@cmonr
Copy link
Contributor

cmonr commented Aug 22, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Aug 22, 2018

Build : FAILURE

Build number : 2871
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7677/

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 23, 2018

Restarting the build, should be fine now (previous failure was known yesterday and was fixed)

/morph build

@mbed-ci
Copy link

mbed-ci commented Aug 23, 2018

Build : SUCCESS

Build number : 2881
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7677/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Aug 23, 2018

@cmonr
Copy link
Contributor

cmonr commented Aug 23, 2018

Pausing Test CI until 5.9.6 PR is merged.
Will restart CI shortly after.

@cmonr cmonr added the risk: G label Aug 24, 2018
@cmonr
Copy link
Contributor

cmonr commented Aug 24, 2018

/morph test

@cmonr
Copy link
Contributor

cmonr commented Aug 24, 2018

/morph uvisor-test

1 similar comment
@0xc0170
Copy link
Contributor

0xc0170 commented Aug 24, 2018

/morph uvisor-test

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 24, 2018

uvisor CI reports this error : GEMALTO_CINTERION_CellularStack.cpp@461,28: 'strtol' is not a member of 'std' please review

@mbed-ci
Copy link

mbed-ci commented Aug 24, 2018

@AriParkkila
Copy link
Author

@0xc0170 added more comments and removed out-commented code. Also fixed network registration as that has changed in PR #7860, which must be merged first.

@cmonr
Copy link
Contributor

cmonr commented Aug 27, 2018

@AriParkkila Were a couple of lines missed?

Normally GitHub will collapse review comments when the line disappears from the review.

@AriParkkila
Copy link
Author

@cmonr for me, GitHub is a bit too clever in how it handles review comments, do you see something missing there... I'm guessing that due to this PR does not compile without PR #7860 that might mess up how GitHub shows review comments?

@AriParkkila
Copy link
Author

Please trigger morph builds to see that this passes all tests.

@cmonr
Copy link
Contributor

cmonr commented Aug 28, 2018

/morph build

@cmonr cmonr added risk: G and removed risk: A labels Aug 28, 2018
@mbed-ci
Copy link

mbed-ci commented Aug 28, 2018

Build : SUCCESS

Build number : 2943
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7677/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Aug 28, 2018

@mbed-ci
Copy link

mbed-ci commented Aug 29, 2018

@0xc0170 0xc0170 merged commit 70439dd into ARMmbed:master Aug 29, 2018
@AriParkkila AriParkkila deleted the cell-gemalto branch September 10, 2018 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants