NCP radio logs

114 views
Skip to first unread message

prachi parekh

unread,
Sep 18, 2019, 8:08:18 AM9/18/19
to openthre...@googlegroups.com
Hi Jonathan,

I am running ot-ncp in raspberry pi board and ot-rcp in kw41z borad,

I am compiling ot-rcp with flags BORDER_ROUTER=1 JOINER=1 FULL_LOGS=1 USB=1 REFERENCE_DEVICE=0.

I have followed the guide given in site :  https://openthread.io/guides/build/logs. to see the ot-rcp logs in syslog(raspberry pi).

Still I am not able to the ot-rcp logs in syslog.

Could you please provide me solution for viewing ot-rcp logs in syslog of host.

Thanks & regards,
Prachi



Jonathan Hui

unread,
Sep 18, 2019, 10:36:20 AM9/18/19
to prachi parekh, openthread-users
Just to confirm, did you also change OPENTHREAD_CONFIG_LOG_OUTPUT in examples/platforms/kw41z/openthread-core-kw41z-config.h to OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL?

Also note that RCP includes few source files by design and will have very little log output compared to NCP firmware.

--
Jonathan Hui

--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/CAMLWne%2B6A5o6NLuuYArJmCzE9GrGDrmncVpsgKmsynsMn87K_Q%40mail.gmail.com.

prachi parekh

unread,
Sep 18, 2019, 11:17:07 AM9/18/19
to Jonathan Hui, openthread-users
Hi Jonathan,

Yes I have changed in,
OPENTHREAD_CONFIG_LOG_OUTPUT in examples/platforms/kw41z/openthread-core-kw41z-config.h to OPENTHREAD_CONFIG_LOG_OUTPUT_NCP_SPINEL.

Thanks,
Prachi 

Jonathan Hui

unread,
Sep 18, 2019, 10:48:17 PM9/18/19
to prachi parekh, openthread-users
Are you able to attach the syslog output that includes all the log output from starting wpantund and doing something like forming a network?

--
Jonathan Hui

prachi parekh

unread,
Sep 20, 2019, 1:21:07 AM9/20/19
to Jonathan Hui, openthread-users
Hi Jonathan,

Yes, Please find attached syslog file, having log output from starting wpantund and forming a network.

Thanks & regards,
Prachi
otbr_syslog.txt

Jonathan Hui

unread,
Sep 30, 2019, 4:59:19 PM9/30/19
to prachi parekh, openthread-users
I just tried the following (using OpenThread emulation on posix):

# make -f examples/Makefile-posix REFERENCE_DEVICE=0 FULL_LOGS=1
# make -f src/posix/Makefile-posix REFERENCE_DEVICE=0 FULL_LOGS=1
# sudo wpantund -s 'system:./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp ./output/x86_64-unknown-linux-gnu/bin/ot-rcp 1'

And was able to see logs from both the RCP and NCP:

Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: [INFO]-MLE-----: Send Advertisement (ff02:0:0:0:0:0:0:1)
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: [DEBG]-MAC-----: Request to start operation "TransmitDataDirect"
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: [DEBG]-MAC-----: Starting operation "TransmitDataDirect"
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: [DEBG]-MAC-----: RadioState: Receive -> CsmaBackoff
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: [DEBG]-MAC-----: RadioState: CsmaBackoff -> Transmit
Sep 30 20:57:10 ad05e9417cbc ot-rcp[43495]: [1] [DEBG]-MAC-----: RadioState: Receive -> CsmaBackoff
Sep 30 20:57:10 ad05e9417cbc ot-rcp[43495]: [1] [DEBG]-MAC-----: RadioState: CsmaBackoff -> Transmit
Sep 30 20:57:10 ad05e9417cbc ot-rcp[43495]: [1] [DEBG]-MAC-----: RadioState: Transmit -> Receive
Sep 30 20:57:10 ad05e9417cbc ot-rcp[43495]: [1] [DEBG]-MAC-----: LinkRaw::TransmitDone(69 bytes), error:OK
Sep 30 20:57:10 ad05e9417cbc ot-rcp[43495]: [1] [DEBG]-MAC-----: LinkRaw::ReceiveDone(69 bytes), error:OK
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: [INFO]-MAC-----: Frame rx failed, error:InvalidSourceAddress, len:69, seqnum:47, type:Data, src:166ecdd1631eae1d, dst:0xffff, sec:no, ackreq:no
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: [DEBG]-MAC-----: RadioState: Transmit -> Receive
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: ==============================[TX len=069]===============================
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: | 41 D8 2F 7B 5C FF FF 1D | AE 1E 63 D1 CD 6E 16 7F | AX/{\.....cQMn..
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: | 3B 01 F0 4D 4C 4D 4C 04 | 58 00 15 09 00 00 00 00 | ;.pMLML.X.......
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: | 00 00 01 02 CE C3 3F 10 | 9B 6F AB FD CB 6C 64 44 | ....NC?..o+}KldD
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: | B9 31 7C 07 37 9B 9F BA | 5C A7 86 22 94 D5 E4 0A | 91|.7..:\'.".Ud.
Sep 30 20:57:10 ad05e9417cbc ./output/posix/x86_64-unknown-linux-gnu/bin/ot-ncp[43493]: | 20 38 76 3C EC .. .. .. | .. .. .. .. .. .. .. .. |  8v<l...........

--
Jonathan Hui

Reply all
Reply to author
Forward
0 new messages