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

RPi3: 6lowpan_control "Permission denied"

I am trying to use one of the example from NRF5 IoT SDK with RPi3 (kernel 4.9.41-v7+) but keep getting "permission denied" when execute command below:

echo "connect 00:5A:FD:06:8D:8E 1" > /sys/kernel/debug/bluetooth/6lowpan_control

Actual error I got:

bash: /sys/kernel/debug/bluetooth/6lowpan_control: Permission denied

I read and follow steps suggested using links below but pretty much stuck.

  1. devzone.nordicsemi.com/.../

  2. developer.nordicsemi.com/.../a00089.html

Parents
  • Yes, all those commands work without error.

    root@raspberrypi:~# sudo -i
    root@raspberrypi:~# modprobe bluetooth_6lowpan
    root@raspberrypi:~# lsmod | grep -e bluetooth -e ipv6
    nhc_ipv6                1273  0
    bluetooth_6lowpan      11549  0
    6lowpan                18741  8 nhc_udp,nhc_routing,nhc_mobility,bluetooth_6lowpan,nhc_fragment,nhc_dest,nhc_hop,nhc_ipv6
    bluetooth             365511  30 bluetooth_6lowpan,hci_uart,bnep,btbcm,rfcomm
    rfkill                 20851  6 bluetooth,cfg80211
    ipv6                  409035  41 6lowpan
    root@raspberrypi:~# echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable 
    root@raspberrypi:~# hcitool lescan | grep UDP
    00:6B:FD:06:8D:8E UDP_Server
    00:6B:FD:06:8D:8E UDP_Server
    00:6B:FD:06:8D:8E UDP_Server
    ^Croot@raspberrypi:~echo "connect 00:6B:FD:06:8D:8E 1" > /sys/kernel/debug/bluetooth/6lowpan_contol
    -bash: /sys/kernel/debug/bluetooth/6lowpan_contol: Permission denied
    root@raspberrypi:~#
    
Reply
  • Yes, all those commands work without error.

    root@raspberrypi:~# sudo -i
    root@raspberrypi:~# modprobe bluetooth_6lowpan
    root@raspberrypi:~# lsmod | grep -e bluetooth -e ipv6
    nhc_ipv6                1273  0
    bluetooth_6lowpan      11549  0
    6lowpan                18741  8 nhc_udp,nhc_routing,nhc_mobility,bluetooth_6lowpan,nhc_fragment,nhc_dest,nhc_hop,nhc_ipv6
    bluetooth             365511  30 bluetooth_6lowpan,hci_uart,bnep,btbcm,rfcomm
    rfkill                 20851  6 bluetooth,cfg80211
    ipv6                  409035  41 6lowpan
    root@raspberrypi:~# echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable 
    root@raspberrypi:~# hcitool lescan | grep UDP
    00:6B:FD:06:8D:8E UDP_Server
    00:6B:FD:06:8D:8E UDP_Server
    00:6B:FD:06:8D:8E UDP_Server
    ^Croot@raspberrypi:~echo "connect 00:6B:FD:06:8D:8E 1" > /sys/kernel/debug/bluetooth/6lowpan_contol
    -bash: /sys/kernel/debug/bluetooth/6lowpan_contol: Permission denied
    root@raspberrypi:~#
    
Children
No Data
Related