Add support for Telit Cinterion TX62 #448
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of changes
This PR adds support to Mbed OS for the Telit (formerly Gemalto) Cinterion TX62 modem. This modem is used on the Arduino Portenta Cat.M1/NB IoT shield, and it's needed in order for the Arduino core to compile against Mbed. I adapted it from a series of patches that Arduino created, starting with this one. I have also tried to clean it up somewhat, so that the changes to classes outside of the Cinterion driver are minimized.
One thing I did change verseus the Arduino patches is I removed the ability to select the specific radio band that the modem operates on. This seems like it was kinda complicated to implement, and reading the modem datasheet, it says that it's perfectly capable of selecting its own bands based on what the cell towers in your area offer. So, not adding that unless there's an actual demonstrable reason why someone needs it.
Another note is that the "CMUX" support works together with a bunch of custom logic that Arduino implements in their serial code to basically mux one serial port into three. That logic currently doesn't exist in Mbed, and it would probably take a fair bit of work to port it over in a non janky way. So, for now I am merging their patch that adds a way to turn on CMUX, even though there's no way to actually use it with plain Mbed.
Impact of changes
Migration actions required
Documentation
None
Pull request type
Test results
Unfortunately I can't test this at present as I don't have TX62 hardware available...