This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Socket offloading implementation for 3rd party AT modem - nrf_socket.c?

Hi,

Instead of an nRF9160, we are trying to expand the functionality of our older nRF52840 board with AT modem on it.

I would like to implement similar support for this modem as that has been implemented for the nRF9160 with on-board modem.
This way, it should be very easy to make use of for example the LwM2M already implemented in Zephyr, instead of having to handle the packets all in the application.

So in summary: I would like to offload networking operations to our own code, in the same way that it is done in the nRF9160.

What is the correct process for this? I could not find the nrf_socket.c file, which I believe is used by the offloading code in nrf_sockets.c.

Parents Reply
  • newUser said:
    On that system it is possible to use socket() commands, which are then dispatched as AT commands somewhere.

     No, when you call socket(), you call the bsdlib socket API function nrf_socket() by default, unless you have CONFIG_NET_NATIVE=y enabled. The bsdlib communicates with the modem firmware and opens a socket in the modem. You can read more about it here.

Children
Related