-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Basic driver for Quectel EC25/EC21 #10292
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
Conversation
3db6e4f
to
1c874da
Compare
@hasnainvirk, thank you for your changes. |
@AnttiKauppila @AriParkkila @kjbracey-arm @ARMmbed/mbed-os-wan Please review. |
features/cellular/framework/targets/QUECTEL/EC2X/QUECTEL_EC2X.cpp
Outdated
Show resolved
Hide resolved
features/cellular/framework/targets/QUECTEL/EC2X/QUECTEL_EC2X.cpp
Outdated
Show resolved
Hide resolved
features/cellular/framework/targets/QUECTEL/EC2X/QUECTEL_EC2X.cpp
Outdated
Show resolved
Hide resolved
features/cellular/framework/targets/QUECTEL/EC2X/QUECTEL_EC2X.h
Outdated
Show resolved
Hide resolved
features/cellular/framework/targets/QUECTEL/EC2X/QUECTEL_EC2X.cpp
Outdated
Show resolved
Hide resolved
@kivaisan @AriParkkila Please review again. |
Please do not add new/remove the current PR type. This one falls into target update. I've fixed it |
Ci started |
Test run: FAILEDSummary: 2 of 9 test jobs failed Failed test jobs:
|
Provides basic power up / power down sequences for Quectel EC2X series modems. Can be used in PPP mode. For using the on-board IP stack, we will need to add and implement classes that provide context. Driver constructor takes power and reset control pins along with the FileHandle. A default construction is provided which can be chosen by the application in its mbed_app.json. Otherwise the user is free to construct as per demand.
A test trace was left lurking around. Removed in this commit.
AT+CREG command can also provide information regarding lac/ci/lat etc so we should set the mode correctly in cellular properties structure.
Standard 3GPP TS27.007 states that the AT+CGSN command can optionally have type parameter that determines the output. However Quiectel EC2X series doesn't accept parameters. We need to reflect that in the cellular properties setup.
A little tidying up was needed as there was some boiler plate code that could be shoved into a corner and reused.
To make this driver more useful, we needed to do some changes. The wirings for the modem can differ on the board so we also need to be flexible in our approach. It is now mandatory to provide the power pin and pin polarity in the constructor alongwith the file handle. Reset pin is optional.
@AnttiKauppila @AriParkkila @kivaisan Please review again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intentionally assumed that pwr and rst pin polarity are the same?
Yes that is right. |
For default construction of the driver, it would be necessary to define the pins. However as we don't know the correct pins, until/unless user sets them up for us. So it makes sense to mark the pins as NC. It would be easier to debug if the pins are set to NC if user forgot to set them up.
features/cellular/framework/targets/QUECTEL/EC2X/QUECTEL_EC2X.h
Outdated
Show resolved
Hide resolved
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Test passed (second round). |
Description
Provides basic power up / power down sequences for Quectel EC2X series
modems. Can be used in PPP mode. For using the on-board IP stack, we
will need to add and implement classes that provide context.
Driver constructor takes power and reset control pins along with the
FileHandle. A default construction is provided which can be chosen by
the application in its mbed_app.json. Otherwise the user is free to
construct as per demand.
Pull request type
Reviewers
Release Notes