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

Recent nrf9160 modem fw 1.3.0 includes nidd or non-ip support. Requesting for an exmaple to initialise , send and receive data using nidd.

 nrf9160 modem Firmware version 1.3.0 release listed  nidd or non-ip support. in the firmware.

We are eager to use this feature to send/receive data over RF control plane.

Please provide an example to to select  the PDN network type,  send and receive data using nidd.

Thanks

NS MURTHY 

Parents Reply Children
  • Now iam using V1.6.0.  Able create PDN Context and associted PDN ID successfully using the API provided by APN Library.

    Raw Socket creation is successful but bind is failing.

    PDN Context = 0 and PDN ID = 0 after creation for NONIP Family.

    sock_nidd = socket(AF_PACKET,SOCK_RAW,0);  // Assuming success as sock_nidd is not -1.

    pdn_str[0] = (0 +48);  pdn_str[1] = 0;     length is 1

    err = nrf_setsockopt(sock_nidd,NRF_SOL_SOCKET,NRF_SO_BINDTODEVICE,(void *)                                                                                                                                              pdn_str,strlen(pdn_str));

    Failed to bind the nidd socket to PDN ID

    Thanks

    NS Murthy 

  • Hello, 

    Unfortunately, our modem team is currently on vacation. I'm not able to provide any other answer at this moment.

    Have you tried the same using the Modem Shell sample? Or looked at the PDN sample?

    #create and activate context (note: activation fails if not supported by the network)
    mosh:~$ link connect -a "nonip.apn" -f "non-ip"
    PDN event: PDP context 1 activated
    Created and activated a new PDP context: CID 1, PDN ID 1
    #create a packet/raw socket and bind to created PDN context
    mosh:~$ sock connect -f packet -t raw --cid 1
    Socket open and connect family=3, type=3, port=0, bind_port=0, pdn_cid=1, address=
    Socket created socket_id=0, fd=4
    #send data to a created socket
    mosh:~$ sock send -d foodata -i 0
    Socket data send:
            foodata
    RRC mode: Connected
    mosh:~$
    
    mosh:~$ link funmode --pwroff
    Network registration status: not registered
    mosh:~$ link defcont -e -a "non-ip.apn" -f "non-ip"
    link defcont enabled
    mosh:~$ link funmode --normal
    Functional mode set successfully: normal
    Network registration status: Connected - home network
    etc etc
    mosh:~$ sock connect -f packet -t raw
    Socket open and connect family=3, type=3, port=0, bind_port=0, pdn_cid=0, address=
    Socket created socket_id=0, fd=4
    mosh:~$ sock send -d foodata2 -i 0
    Socket data send:
            foodata2
    RRC mode: Connected
    RRC mode: Idle
    mosh:~$
    

    Kind regards,
    Øyvind

Related