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

setup nRF52DK sniffer on Wireshark has some error, Apple M1

I am following the step to install my nRF52DK, but when I check it with "python3 nrf_sniffer_ble.py --extcap-interfaces", it has some error:

extcap {version=3.1.0}{display=nRF Sniffer for Bluetooth LE}{help=https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer-for-Bluetooth-LE}
Traceback (most recent call last):
  File "/Users/ann/Downloads/nrf_sniffer_for_bluetooth_le_3.1.0_7cc811f /extcap/nrf_sniffer_ble.py", line 619, in <module>
    extcap_interfaces()
  File "/Users/ann/Downloads/nrf_sniffer_for_bluetooth_le_3.1.0_7cc811f /extcap/nrf_sniffer_ble.py", line 134, in extcap_interfaces
    for interface_port in get_interfaces():
  File "/Users/ann/Downloads/nrf_sniffer_for_bluetooth_le_3.1.0_7cc811f /extcap/nrf_sniffer_ble.py", line 125, in get_interfaces
    devices = UART.find_sniffer(write_data=False)  # Try non-intrusive search, set argument to True for intrusive search
  File "/Users/ann/Downloads/nrf_sniffer_for_bluetooth_le_3.1.0_7cc811f /extcap/SnifferAPI/UART.py", line 59, in find_sniffer
    reader = Packet.PacketReader(portnum=port, baudrate=rate)
  File "/Users/ann/Downloads/nrf_sniffer_for_bluetooth_le_3.1.0_7cc811f /extcap/SnifferAPI/Packet.py", line 72, in __init__
    self.uart = UART.Uart(portnum, baudrate)
  File "/Users/ann/Downloads/nrf_sniffer_for_bluetooth_le_3.1.0_7cc811f /extcap/SnifferAPI/UART.py", line 106, in __init__
    self.ser = serial.Serial(
  File "/opt/homebrew/lib/python3.9/site-packages/serial/serialutil.py", line 244, in __init__
    self.open()
  File "/opt/homebrew/lib/python3.9/site-packages/serial/serialposix.py", line 332, in open
    self._reconfigure_port(force_update=True)
  File "/opt/homebrew/lib/python3.9/site-packages/serial/serialposix.py", line 517, in _reconfigure_port
    termios.tcsetattr(
termios.error: (22, 'Invalid argument')

Could anyone help?

Parents Reply Children
Related