This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is a UDP command line shell based on zephyr Shell for nrf9160 possible?

Hi Devzone,

A couple of conceptual questions about what is possible and a request for ideas for how to best accomplish my goal.

I want to implement a command line shell that hopefully can be build utilizing the zephyr shell module but interfaced through UDP on a modem socket. I am working with the nrf9160DK. 

Is it possible to set up the zephyr shell using a UDP socket for command input/output?

      If not, would it be advisable to implement UDP on top of the shell where the shell is then interfaced with the dummy transport layer parhaps?

I have noticed that the modem is given a private Ip with the IBasis sim that came with the nrf9160DK.

If I want to host a UDP server on the nrf9160 to connect to for interfacing with the command line shell, would I then have to obtain a sim with a dataplan that provides a public static Ip, or is there a way around having to do that?

Hope you can help me. Thanks in advance.

Regards

Mads

Parents Reply
  • Hi,

    Mads said:
    but initialize the shell with udp as the main way of interfacing with it, and not through a serial connection as it is done in the sample as i understand it. 

    Are you saying that you want (the normal) Zephyr shell over UDP, and not that you want to control UDP over the shell?

    UDP is not implemented as one of the transports for the shell module, but it should be possible.

    I recommend you take a look at the documentation for the shell module: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/shell/index.html 

    If I want to host a UDP server on the nrf9160 to connect to for interfacing with the command line shell, would I then have to obtain a sim with a dataplan that provides a public static Ip, or is there a way around having to do that?

    Yes, that would be the best solution.

    Best regards,

    Didrik

Children
  • Hi Didrik,

    Thanks for your response.

    That's right, my goal is to somehow implement UDP as a transport for the shell.

    I have looked into the documentation and I'm not sure how to best go about implementing it. 

    Would it be to look at the examples with the other transports like shell_rtt.h, shell_dummy.h and shell_telnet.h and so on, and create my own shell_udp.h tthat initializes a shell struct that i can use?

    Regards

    Mads

  • Mads said:
    Would it be to look at the examples with the other transports like shell_rtt.h, shell_dummy.h and shell_telnet.h and so on, and create my own shell_udp.h tthat initializes a shell struct that i can use?

    Yes, that would probably be the best way to do it.

Related