HTTP GET request over PPP using UART to Linux Device

I am attempting to establish a PPP connection between an nRF9160 and a Linux device over a UART (hardware flow control is optional). The goal is to allow these devices to share their internet connections, and also communicate directly with each other via HTTP.
I am unclear how to setup a UART as the PPP interface when the UART is not connected to a gsm modem.
I see examples that involve establishing a PPP connection over the cellular modem:
I also see examples where it appears a PPP connection is established with the Linux host; however, the app runs in QEMU, and does not involve a UART.

I have made some attempts at setting this up, starting with establishing a PPP connection. As I dug through the source (https://github.com/nrfconnect/sdk-zephyr/blob/main/drivers/net/ppp.c), it seems very focused on UARTs connected to gsm modules. I'm wondering if what I'm trying is no possible with the SDK "out of the box" as I originally thought.
Is it even possible to use PPP to send HTTP through a UART that connects to a device running Linux? From a high level, what would that involve?

Any high-level suggestions or guidance would be greatly appreciated. Thanks!
  • Hi Ben,

    As you need to establish PPP connection, I would suggest that you use Modem Shell (MoSh) example for nRF9160. This example provides information how to use PPP for Internet connectivity. It contains various tools, such as curl for HTTP download and upload, and sock for managing the sockets. Using button 2 in the MoSh example gives you the option to enable/disable UART. Upon creation of the PPP connection, it is possible to browse the Internet via MoSh PPP connection over LTE. You can find more information on how to use the MoSh example and PPP in the NCS documentation.

    Best regards,
    Dejan

Related