Onomondo static profile with nrf9161 custom board not working

Hi,

I'm working with a custom board build with an nrf9161, I've created my board from nrf9161dk board (change some pin and defintion), I'm able to flash and build? I can use my custom led, my i2c bus, so I thought my custom board is well defined.

Right now I'm trying to use onomondo softsim profile, but ùy softsim never connect. To debug I've tried to do this here but same result not working. Just to know I have tried my source code with nordic nrf9160dk and it's working I'm able to have lte event and I can see my sim connected on onomondo, so the bug is not on my code...

Here is AT command I have tried :

[00:00*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
[00:00:00.326,324] <inf> nrf_modem: Initializing libmodem 2.6.1-lte-11b6ed4846a8
[00:00:00.570,983] <inf> nrf_modem: RPC ready
[00:00:00.619,964] <inf> gcg: Waiting for LTE connect event.

> AT
OK
> AT+CEREG?
+CEREG: 5,4
OK
+CEREG: 2,"E29D","09891B07",7
[00:03:30.427,307] <inf> gcg: LTE cell changed: Cell ID: 159980295, Tracking area: 58013 //always got only this event only, and look strange this event take always some time to come..

> AT+CEREG?
+CEREG: 5,2,"E29D","09891B07",7  // should have +CEREG: 1,5 from onomondo tutorial
OK

> AT+CESQ
+CESQ: 99,99,255,255,16,58
OK

> AT+CEREG=1
OK
> AT+COPS?
+COPS: 0
OK
> AT+CGDCONT=1,"IP","onomondo"
OK
> AT+CGACT=1,1
ERROR

> AT+CGMR
mfw_nrf91x1_2.0.1
OK

I can upload my board definition, tell me. Don't understand why it's working on 9160dk and not on my board, maybe bad board definition, I hope it's not an hardware issue with my custom board

Thanks for help

Parents
  • Hi Simon,
    regarding the capturing of the trace. You have to cpature it to a file and open it.
    The antenna connection, are you able to see TX operation from your board with a spectrum analyser? Again, I don't know what the HW looks like, but the antenna connection is definitely something to follow. I suspect the receiver on the nRF91 on your custom board is able to receive singals from the network, but the outgoing connection request and TX operations are not getting through back to the network. Placement of the antenna and location of the kit compared to windows and obstacles is worth testing out. 
    Best regards
    Asbjørn
  • Hi Asbjørn

    When I'm trying to capture with nrfutil my trace is always zero octet.

    ./nrfutil device list
    101c4425765aed11b7fd8a1d4f779c9c
    product         CP2102N USB to UART Bridge Controller
    ports           /dev/tty.usbserial-14320
    traits          serialPorts, usb
    
    1
    product         CP2102 USB to UART Bridge Controller
    ports           /dev/tty.usbserial-0001
    traits          serialPorts, usb
    
    Found 2 supported device(s)

    usbserial-0001 is cp21 where uart1 is connected (if I use nrf serial terminal with 1000000 baudrate I see datas)

    ./nrfutil trace lte --input-serialport /dev/tty.usbserial-0002 --output-raw trace.raw

    trace.raw is always empty... Don't understand why because I see my cp21 rx led blinking

    For my nrf here is the part of my schematic for LTE

  • simon884 said:

    usbserial-0001 is cp21 where uart1 is connected (if I use nrf serial terminal with 1000000 baudrate I see datas)

    usbserial-001 is where the uart1 is connected, but you usbserial-0002 as input for capturing the trace? Is this a typo is there something I'm not seeing there? What happens if you use usbserial0001 for the trace capture command?

    The radio part of the design schematic looks as the connector we have used on the nRF91xx-DK. Do you have some sort of spectrum analyzer available to verify the output from the cable once connected to the J1 connector? The flex antenna you are using, does that work with the DK you have available with the nRF9160?

    Best regards

    Asbjørn

  • usbserial-001 is where the uart1 is connected, but you usbserial-0002 as input for capturing the trace? Is this a typo is there something I'm not seeing there? What happens if you use usbserial0001 for the trace capture command?

    Sorry it's a typo error, I'm using usbserial-0001 for capturing data without success, trace;raw is always empty.

    Here is what I got if I'm using serial terminal on usbserial-0001

    QwBx
    9
    Tw
    Twzw
    TwYGgI[
    TwLE'Gg
    w
    HguE
    IgERwdVE
    Rwb>PE
    Rwb5
    Rw:JW
    w;PHHKgCHd
    PHLPsH
    s؍8
    wZaOgvu
    waLE0
    wp
    w!''PH( Qgpr"xK
    w;d
    wZdTCSgJ
    ,wJ  gД 0
    ,Uw#OҀ?Ĕ        6
    Uw!J
    UwC!VgnX
    Uw]C
    UwaOL
    Uw\)
    UwYZC!  ag6O g
    ,wOҀ?
    ,wOĀC'
    ,wmJ ĀCK
    ,wmJ ĀC
    ,VwϤJ0
    Vw!
    C!egK CegHp9fgGHfg/WCgg0jg1R
    wwH
    w¯
    Cjg1^
    wkg!E
    w!Clg!I
    [w
    J!
    [w0pg1^
    ugpvH
    ugHC!pgK
    2\w
    wSa*K
    waK
    wE5
    waK
    wX
    w^TC!"sgp
    w{
    6Д
    .Ww{
    6Д
    ]w
    ]w<B
    Ww
    Ww\B
    ,ug9B+CEREG:&I*9D","09891B07",7
    C!ygrrBX!
    ^w<BX!
    ugX
    wC!w     C!g8,!
    Xw􆁁L
    Yx$ʃ
    VgG
    gG
    g7x
    2^ʃ'
    Fg4Pg4g᐀C!Cg
    Fgc
    Fg5
    Fgik
    4^k
    k
    C!gkFpC!g4
    Ѐ
    Ѐ
    ^Ѐ
    ^Ѐ
    ^Ѐ
    g
    g9kpC!gkքk
    jk
    c
    M]
    Kݠ=g
    PyЀC!y\
    gk=C!gkC!g
    QPH1gH
    ۳$a
    Fg
    C!gPPFC!g,!
    i'C!g&!
    g
    SrO     c
    gt
    gg9 c
    ˞pC!g
    Cg
    g
    *%a
    &IV6P0\#1
    C!"&g+HP)gzd
    )J/H
    $dC!"+g\P,g$Ua,gEע
    ghdUa,gEע
    gPE0
    gLE0
    KV$P.ghUW.g/g]vC!/gv"K
    :g#
    &LT$$"Ѐ6\#1
    C!"1g>T$$"
    *DP2g'U2g
    U
    S[P3gE'C!3gg1
    DP4gn[Xג
    MВ5g
    MU
    M[6gPE'
    瞧 ޓc
    Zk
    k
    gZ
    gCxg
    p
    zgzg
    g
    gk
    gk
    g
    6C!
    ψFpC!
    7
    7
    Ѐ
    h
    a
    pC!gBԄk
    a&k
    g
    Cgニ
    .OC!vgXCQۀC!xg-
    gk
    gk
    g1k
    /#P
    /*       pC!(Ck
    gc
    P
    !b
    WN"
    4a:
    gzC!qgSI$$
    R3!=QPH;gZ<۳VЀ
    g=C!ob
    Y$$^a
    UHHdgAC!"fg/X
    WHPHHhg!PigBa
    p
    p
    g!PHHmgǏd
    gX
    $IY8&
    gȄC!,PFC!,!
    -C!g&!
    g0
    e
    g
    g$(BC!"(E)
    C!"   c
    hʃ
    Q c
    9
    R;
    9
    S;Ãa
    9
    t9odC!"9
    t9odc
    Xt
    %<ʃ'
    <PjhO
    pC!lhy
    +
    +&
    +'c
    [t
    F<
    k
    +k
    zk
    k
    G\
    k
    BC!shRkFpC!th(4
    WCЀ
    ]t
    C<Ѐ
    ]t
    C<Ѐ
    ]t
    C<Ѐ
    WC\Ѐ
    WC\Ѐ
    WC|Ѐ
    WJ|pC!xhքk
    Eh($kc
    [Z
    [ڠb
    WH\C!zhC!hٚ
    Q5a
    [t
    ޿
    CC!sheC!thPI,!
    WI C!whPa%!
    o
    <
    6rO,
    .:
    *
    b
    ,:
    了p"a
    ¶8̓B     c
    Mhʃ
    hX c
    a:
    b<᐀C!h
    Ch'b
    هү3!脑a
    &
    v8̓B
    &
    sᖍ8
    S
    쟦۴gc
    E\
    k
    Ek      c
    D{OC!lhqP
    F!%b
    \C!ih
    J$$ިa
    +
    8\     C!      \hVtdLQ
    E[8\
    ]h5(( 2q0À!0Z4L2gD
    EX
    E_''PH( ah6r"xK
    ,
    Fk"F
    г((PehdwC!ehK>C!"ghGc
    l"-Odʃ
    c
    H
    IÃ(
    96"-qUUIDI.320176d5-9f40-45fc-9a23b-2661ec18d547CjKHWVERSIONI.nRF9161P
    (Mߑڀj[)ˀuc
    '
    2'PH
    E᐀C!CjV
    GF-4炨jV[c
    <
    k
    6k
    5k
    7%k
    R=
    k
    R9EC!%j9kFpC!%jNYЀ
    R9Ѐ
    R9Ѐ
    R9Ѐ
    R9Ѐ
    R9Ѐ
    R9Ѐ
    )9ŃЀ
    kqpC!)j*
    JF-9ekc
    Vޣ
    V#b
    )>C!+j*zC!mjcKQ5a
    F
    RC!$j*PFC!%j,!
    IF-7nC!)j%!
    )
    )!<
    [,B=\   c
    *
    6ЀC!(jSb
    "#-(
    qjB     c
    jU)
    L#-WPc
    ӤX᐀C!BF
    CCDb
    ԤȨ
    a
    #-c2 ΃B
    n߄b
    <۵Ic
    Ĥ
    cC!jeqk
    H;OC!%jWV!
    w*
    Ĥ
    $㨙
    J$$B
    E\
    .Etd>
    8\
    jhP(( <q0À!0Z4L2gD
    gX
    Fc''PH( 3r!xK
    #wk!h
    wC!wYk!h
    jE؆     c
    ,-Eʃ
    [pPc
    sp
    sx
    ʃ'
    s)PͰ-)ΰ-
    ᐀C!ΰ-,(
    *Ёϰ-*Pϰ-,Ѕާc
    2
    k
    t,k
    u+k
    u.k
    u3
    k
    /C!ְ-6kFpC!װ-/΃Ѐ
    /Ѐ
    /Ѐ
    /Ѐ
    v/Ѐ
    v/Ѐ
    0cڰ-/.Ѐ
    k6.kpC!۰-4N
    ;/΂k
    쟠
    FX-ӌb
    v4
    w5C!ak
    Q5a
    uC!ְ--eC!װ--E)
    C!װ--ׁC!ڰ--7ER
    C!"ݰ-O
    -<
    ZX-#=\  c
    uX-*
    vX-,ЀC!akKLb
    \q
    "a
    ]h8΃B   c
    <-Uʃ!C!bkS* c
    N᐀C!-M
    Ob
    >-
    a
    8 ΃B
    n b8
    c
    r-
    k
    r-k
    -1-OC!ck-!
    ݭmNă!%b
    7C!ckv|f!P#ިa
    ܭH\
    .ܭ,''dԀ
    ܭh8\C!ckI Fq0À!0Z4L2gD
    n
    X
    -''PH(  ckVr!xK
    nm"k!
    nLIPcnwC!ckK#k!>C!"ck!  c
    "4
    ;ʃ!C!l] c
    $c4
    F4
    56Ã   a
    (E4
    ߳ckc
    ]
    n;
    lC!
    V
    l/
    l
    lʁH
    !H
    "[c
    0
    (7
    0
    "Wk
    !Wk
    $ׁk
    )W
    %C!lkFpC!lIф
    %Ѐ
    b
    %7Ѐ
    b
    %7Ѐ
    b
    %7Ѐ
    1
    %WЀ
    1
    %WЀ
    1
    %wЀ
    1
    ,wkpC!lW
    %kミc
    9
    U
    9
    ՠb
    1
    *WC!l݈
    y3۰=Q5a
    0
    %ȄC!l$eC!l$,!
    # C!l$EI !
    d
    <
    rO      c
    X
    OC!lU
    #b
    ]j
    z"a
    ,
    8΃B    c
    25
    Kʃ
    25
    CwPc
    cD᐀C!l
    Clb
    55
    Z
    a
    Q5
    Q8΃B
    ԍ
    q8 C΃b
    X5
    :
    mgc
    5
    W
    k
    5
    ׃k
    5
    'vOC!l/!
    l
    dă!b
    5
    Wިa
    ׍
    \
    .lY''d5
    l
    8\
    yl+I Pq0!0Z4L2gD
    5
    F
    5
    }!''PH(        5
    xK
    l1+
    lXY((P5
    DH5
    dk!h
    5
    F      c
    \
    1
    \
    *pPc
    *p
    +c
    m)'
    mEЇC.[/[
    C0m
    m0[Bワ
    &m
    k
    &mk
    mk
    m#k
    mck
    m#C!8["F
    Nm#
    Nm#
    Nm#
    'm#Ѐ
    'm#Ѐ
    'm#Ѐ
    'm#
    $skpC!<[!Ck
    m#      kc
    /m
    /m゙b
    'mC!mHC!mki
    Q5a
    Lm
    ȄC!7[)eC!8[IE)
    C!8[IC!<m&!
    mfx
    Pm/<
    9mJ=\
    ,
    mz
    m
    mFb
    Rm؜
    K;
    N
    qrB    c
    mP)
    Q^
    :pP   c
    R^
    :pC!V[
    mcb
    +^
    a
    Omn
    2 ΃B
    Omn
    n   !
    ^
    æ߁g%\
    ^
    [k
    imk
    m{
    N^
    XpP
    N
    Z܅%b
    ^
    {
    mqJH#ިa
    im8\
    .J^
    Wtd5
    J^
    p\
    *[!(( Zq0À!0Z4L2gD
    ^
    X
    K^
    y^''PH(       .[r!xK
    imV+
    L^
    zޅ((P2[^H2[Z4k!>C!"4[ c
    Wz'ʃ
    ^L
    , c
    z.
    z!Ã     a
    (oi\,lc
    wzOn;
    7oC!
    뀨7o{,
    耀C7oh-
    +7o[c
    k
    k
    zk
    zik
    z
    k
    z
    C!7oskFpC!7oDjЀ
    ɃЀ
    ɃЀ
    ɃЀ
    zЀ
    zЀ
    zЀ
    {
    Ѐ
    {
    pC!7oQ
    zkc
    z矠
    zgb
    {
    C!
    i
    Lze
    Q5a
    z
    C!7oHPFC!7oH,!
    C!7o$%!
    J
    re<
    oX      c
    zzԇOC!8o((
    {zb
    z=-
    =zc8΃B  c
    z7ʃ
    /z0)PÀ
    _zrpC!
    C!
    b
    Hz
    a
    Mzc2 σB
    j
    n߄b
    8
    ̜
    m߁gc
    w
    t
    k
    w
    n      k
    z(OC!:o*-!
    =
    P)ă!*
    zvC!:o7.IH#ިa
    ;
    C\
    .;
    v'''dրdC!:on8\
    :oT(( dq0À!0Z4L2gD
    zX
    zo''PH(
    trxK
    :oTG
    <
    p'IP:oOH:oT/
    y
    X      c
    Rʃ
    J^Pc
    )
    )Ãc
    bွR'
    dۇC!
    ^
    !C/
    c
    eHZk
    eတk
    f&k
    fတ
    k
    C*
    H7C!򈰍FpC!       Ѐ
    BЀ
    BЀ
    g       2Ѐ
    gBЀ
    gBЀ
    BЀ
    $kpC!H5k
    Hkc
    D
    b
    HC!C!\3۰=Qᆰ
    B+ȄC!ہeC!,!
    ЁC!&!
    h<
    p=\cc
    3p9
    p
    p'b
    bp\"a
    p8σB    c
    ZpI
    Zp c
    -pI
    pz
    C0b
    pVa
    V0L8σB
    n b8
    ]05
    ߁gc
    Lp-!k
    LpYk
    p=
    30EpP
    &pF!%b
    e0m2
    f05
    JH"ިa
    10Ō\
    .10mp''dk)dC!Ŭ\
    q(( nq0À!0Z4L2gD
    c0󆁀
    Lp''PH( j.xKP
    d0GfkÐ
    pVIPH
    HGkÐ
    X ,
    qE'
    ;qC c
    wqH
    qH      a
    (;qг,l^
    \zʃ'
    \CCq>
    \:᐀C!Dq<ȀCEq.cEq'
    Q\U
    \!k
    \k
    \3k
    \k
    \3
    q:C!LqrkFpC!MqZЀ
    S\Ѐ
    qzЀ
    qzЀ
    qzЀ
    qЀ
    qЀ
    uqЀ
    uqskpC!Qqׄk
    T\+kc
    qZ}D
    qb
    qC!Sq􄀀C!q*
    Q5a
    \z<
    \4ȄC!LqPFC!Mq,!
    S\C!Pq%!
    \
    \^<
    wqS             c
    ).F*
    .
    .#Ѐb
    '.j߁ "a
    S.zB    c
    U.$
    qG c
    Wr\[᐀C!jq
    .yb
    +.
    a
    !8σB
    n8
    .n߁ga
    Nu\
    .NcYtd
    '\c
    RqX!k
    Rqk
    Q*
    R;P
    R=[ă!%b
    (b
    !"a
    :qVI xq0À!0Z4L2gD
    'X
    O\tPH(  .r!xK
    Rqzk!h
    P]YIPBq;owC!BqOk!h
    .       c
    bh
    ù
    1h c
    h
    hc
    =hʃ'
    hePh倨hpC!hiChi hIc
    h!k
    sk
    s<k
    sok
    s<
    ?hC!h0FpC!hЀ
    sЀ
    sЀ
    sЀ
    sЀ
    s}Ѐ
    hЀ
    hpC!hP
    h4kc
    =s3
    Chbb
    sC!h
    QhI
    Q5a
    hp
    s=ȄC!h,PFC!hE)
    C!hC!h&!
    hr%
    hTj
    sz=\         c
    h*
    s
    s
    hd"a
    s*8σB   c
    BD.
    4$Pc
    (4᐀C!u
    Cb
    s؞a
    4ލ8σB
    n28
    ]4ǜ
    mg%a
    *zD.vB8w2Dl=c
    _4XD
    k
    _4RDk,
    4*
    H43P
    H45dă!b
    4Z$ިa
    /4^\
    .s+''d0
    s68\
    D.(( q0À!0Z4L2gD
    _4X
    s''PH(  D.W{xKm
    sEk!5
    sU((P.H.5k!5
    4҅
    

    Do you have some sort of spectrum analyzer available

    Unfortunately no I don't have it

    The flex antenna you are using, does that work with the DK you have available with the nRF9160?

    I can test it

  • Hi Simon,

    Did you get a chance to try the flex antenna on the nRF9160 DK? What did you find from that?

    Best regards

    Asbjørn

  • Hi Asbjørn

    Sorry for the delay, I was on another project. Right now I can get trace from UART1 and my modem. I've attached to you the mtrace file give by cellular monitor. The file contains all trace beetwen boot and

    +CEREG: 2,"C40D","09891BCF",9
    [00:03:33.222,625] <inf> GCG_DNV: LTE cell changed: Cell ID: 159980495, Tracking area: 50189

    trace-2025-01-20T16-10-55.824Z.mtrace

    Are you able to see something? I don’t understand why I have no packet when I’m loading mtrace file to nrt monitor, However, I have a data in my file… As I'm using mfw_nrf91x1_2.0.2 I've selected 2.0.2 in modem trace database in cellular monitor

    It's look like cellular monitor can't send AT command to my custom board

    EDIT : I've trie to test AT_MONITOR on my custom board here is the result :

    *** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
    AT Monitor sample started
    [00:00:01.415,618] <inf> nrf_modem_lib_trace: Trace thread ready
    [00:00:01.417,022] <inf> nrf_modem_lib_trace: Trace level override: 2
    Subscribing to notifications
    Connecting to network
    Resuming link quality monitor for AT notifications
    Waiting for network
    Network connection timed out
    Continuing without network
    Pausing link quality monitor for AT notifications
    Reading PSM info...
      PSM: disabled
    Enabling PSM
    Reading PSM info...
      PSM: disabled
      Periodic TAU string: 
      Active time string: 00100001
    Modem response:
    +CEREG: 1,4
    OK
    Shutting down modem
    +CEREG: 0
    Network registration status: no network
    [00:00:21.833,587] <inf> nrf_modem_lib_trace: Modem was turned off, no more traces
    Bye

    EDIT 2 : I've just received nrf9161dk board, and my code works also on this board. I use nrf9161dk non secure

  • Hi Simon,

    Are you still not able to make the connection or did you do something to your kit? Is this a different problem or is it the same you had two months ago?

    All code is running as expected, how are you confirming this?

    So the mtrace file states that there's nothing captured in it. Was this tried with your custom board? Are you able to capture somethign successfully with one of our DKs and your code?

    Best regards

    Asbjørn

Reply
  • Hi Simon,

    Are you still not able to make the connection or did you do something to your kit? Is this a different problem or is it the same you had two months ago?

    All code is running as expected, how are you confirming this?

    So the mtrace file states that there's nothing captured in it. Was this tried with your custom board? Are you able to capture somethign successfully with one of our DKs and your code?

    Best regards

    Asbjørn

Children
  • Are you still not able to make the connection or did you do something to your kit? Is this a different problem or is it the same you had two months ago?

    Yes I have always the same problem :(

    All code is running as expected, how are you confirming this

    yes all code works fine on nrf9160dk and nrf9161dk all in non Secure. I can confirm this because I’m able to reach onomondo and i'm connected to LTE. But the same code doesn’t work on my custom board build with nrf9161 in non secure also. 

    So the mtrace file states that there's nothing captured in it. Was this tried with your custom board? Are you able to capture somethign successfully with one of our DKs and your code

    ok understood but why my file size is 7.5MB what is inside? I don’t try with dk board; It's look like cellular monitor can't send AT command over uart1

  • Hi Simon,

    Your trace file cannot be opened in Cellular Monitor or converted to pcap. It seems that the file got corrupted or was not uploaded properly. Can you take new modem trace and upload it? Please verify that it can be opened in the Cellular Monitor before uploading.

    Best regards,
    Dejan 

Related