lupyuen opened a new pull request, #9304:
URL: https://github.com/apache/nuttx/pull/9304

   ## Summary
   
   This PR adds the PinePhone Driver for Quectel EG25-G LTE Modem. When the 
driver is started, the LTE Modem accepts AT Commands over UART3 and 
`/dev/ttyS1`.
   
   PinePhone's LTE Modem is explained in [this 
article](https://lupyuen.github.io/articles/lte).
   
   ### New Files in `boards/arm64/a64/pinephone`
   
   `src/pinephone_modem.c`, `pinephone_modem.h`: Driver for Quectel EG25-G LTE 
Modem
   
   `configs/modem/defconfig`: New Build Configuration `pinephone:modem` that 
enables the LTE Modem at UART3 and `/dev/ttyS1`
   
   ### Modified Files in `boards/arm64/a64/pinephone`
   
   `Kconfig`: Added Kconfig Setting `PINEPHONE_MODEM` to enable the LTE Modem 
at "Board Selection > Board-Specific Options > LTE Modem"
   
   `src/pinephone_bringup.c`: Start the LTE Modem if `PINEPHONE_MODEM` is 
selected
   
   `src/Makefile`: Added LTE Modem Driver to Makefile
   
   ### Updated Documentation
   
   `platforms/arm/a64/boards/pinephone/index.rst`: Added Build Configuration 
`pinephone:modem` that enables the LTE Modem
   
   ## Impact
   
   With this PR, NuttX Apps will be able to control the PinePhone LTE Modem 
with AT Commands over UART3 and `/dev/ttyS1`.
   
   There is no impact on existing code because the driver is not used currently.
   
   ## Testing
   
   We tested the LTE Modem Driver on PinePhone by sending AT Commands. For 
Regression Testing, we tested PinePhone with the LTE Modem Driver disabled.
   
   ### LTE Modem Test
   
   To test the LTE Modem Driver, we selected the `pinephone:modem` Build 
Configuration:
   
   ```bash
   tools/configure.sh pinephone:modem
   make
   ```
   
   We ran a Modem Test App that sends AT Commands to make phone calls and send 
SMS messages:
   
   - [Modem Test App: 
hello_main.c](https://github.com/lupyuen2/wip-pinephone-nuttx-apps/blob/modem/examples/hello/hello_main.c)
   
     [(As explained 
here)](https://lupyuen.github.io/articles/lte2#send-at-commands)
   
   The modem responds correctly to our AT Commands:
   
   - [Modem Test 
Log](https://gist.github.com/lupyuen/b4195155d0899986ab72d955e386fcdb)
   
   ### Regression Test
   
   For Regression Testing, we selected the `pinephone:lvgl` Build Configuration 
that disables the LTE Modem:
   
   ```bash
   tools/configure.sh pinephone:lvgl
   make
   ```
   
   NuttX boots correctly and starts the LCD Display, with the LTE Modem 
disabled:
   
   - [Regression Test 
Log](https://gist.github.com/lupyuen/a823283f3adae9f23de02a65cff56940)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to