sudo python sniffer.py -c 11 -n 1 -u /dev/ttyACM0 | sudo wireshark -k -i -Initializing sniffer...SUCCESS: sniffer initializedSniffing...
-DMBEDTLS_CONFIG_FILE=\"mbedtls-config.h" \
-DOPENTHREAD_CONFIG_FILE=\"openthread-mbed-config.h" \
-DOPENTHREAD_FTD=1 \
-DOPENTHREAD_ENABLE_NCP=1 \
-DOPENTHREAD_ENABLE_NCP_MTD=0 \
-DOPENTHREAD_ENABLE_NCP_FTD=1 \
-DOPENTHREAD_ENABLE_NCP_UART=1 \
-DOPENTHREAD_ENABLE_NCP_SPI=0--
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 post to this group, send email to openthre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/09a7c772-97b2-4ae2-86cf-2b555985e550%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CLI 1: > promiscuous enable[INFO]---------: execute command: promiscuous enable
[DEBG]-MAC-----: Idle mode: Radio receiving on channel 11
CLI 2: > scan
CLI 1: [INFO]-MAC-----: Frame rx failed, error:DestinationAddressFiltered, len:10, seqnum:0, type:Cmd(Beac
Done
============================================[len = 10]============================
| 03 08 00 FF FF FF FF 07 00 00 .. .. .. .. .. ..| ? ? ? ? ? ? ? ? ? ? . . . . . .|
-----------------------------------------------------------------------------------
(sniffer.py)
result = wpan_api.prop_set_value(SPINEL.PROP_PHY_ENABLED, 1)
result = wpan_api.prop_set_value(SPINEL.PROP_MAC_FILTER_MODE, SPINEL.MAC_FILTER_MODE_MONITOR)
if result is None:
return False
...
result = wpan_api.prop_set_value(SPINEL.PROP_MAC_RAW_STREAM_ENABLED, 1)
spinel-cli > ncp-raw 1
PROP_VALUE_SET [tid=1]: MAC_RAW_STREAM_ENABLED
Done
spinel-cli > ncp-raw
PROP_VALUE_GET [tid=1]: MAC_RAW_STREAM_ENABLED
1
Done
spinel-cli > ncp-filter 1
PROP_VALUE_SET [tid=1]: MAC_FILTER_MODE
Done
spinel-cli > ncp-filter
PROP_VALUE_GET [tid=1]: MAC_FILTER_MODE
0
Done
spinel-cli > ncp-filter 2
PROP_VALUE_SET [tid=1]: MAC_FILTER_MODE
Done
spinel-cli > ncp-filter
PROP_VALUE_GET [tid=1]: MAC_FILTER_MODE
0
DoneSet MAC filter mode:
0 = MAC_FILTER_MODE_NORMAL Normal MAC filtering is in place.
1 = MAC_FILTER_MODE_PROMISCUOUS All MAC packets matching network are passed up the stack.
2 = MAC_FILTER_MODE_MONITOR All decoded MAC packets are passed up the stack.And I have found that the `otPlatRadioSetPromiscuous()` has never be called after NCP Node starting. Is this the reason? The radio will be set to promiscuous mode during sniffer initializing?
--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to openthread-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/81fd4541-68a9-4002-b9a0-992ca2a71d51%40googlegroups.com.
def sniffer_init(wpan_api, options):
...
# wpan_api.cmd_send(SPINEL.CMD_RESET)
# time.sleep(1)
def sniffer_init(wpan_api, options):
...
# wpan_api.cmd_send(SPINEL.CMD_RESET)
# time.sleep(1)
Thanks for your kind help!
--
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 post to this group, send email to openthre...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/61a18e86-31bd-4899-a764-3045d45fb482%40googlegroups.com.