All of lore.kernel.org
 help / color / mirror / Atom feed
* RPi, Raspbian with openlabs transceiver - lib/tool versions and updated instructions(?)
@ 2015-05-06  7:27 Christoffer Holmstedt
  2015-05-06  9:08 ` Alexander Aring
       [not found] ` <5549DA61.2040201@gmail.com>
  0 siblings, 2 replies; 6+ messages in thread
From: Christoffer Holmstedt @ 2015-05-06  7:27 UTC (permalink / raw)
  To: linux-wpan

I'm currently setting up my dev/test environment to get a "default"
working state to build upon but have stumbled upon some issues on the
way. I'm currently running Raspbian with latest bluetooth-next kernel.
U-Boot from last november. For libnl I use the default packages
available in Raspbian repository. wpan-tools I've checked out the 0.4
release from git repository.

U-Boot: 2014-11-10 [1]
Raspbian version: 2015-02-16 (originally built with 3.18 kernel)
Bluetooth-next kernel 4.1.0-rc1+ 2015-04-30 [2]
libnl-3-dev version: 3.2.7-4 (Raspbian repository)
libnl-genl-3-dev version: 3.2.7-4 (Raspbian repository)
wpan-tools (tag: wpan-tools-0.4) [3]

Is this set of libraries/tools ever going to work together or do I
have an obvious mismatch that will for sure fail?

### command failed: Device or resource busy (-16)
The problem I have now is that when I try to set pan_id as described
on wpan.cakelab.org I get "resource is busy" error. I also have two
wpan interfaces which I'm not sure is what I should expect, as only
one transceiver is connected to the RPi.

$ sudo iwpan --debug dev wpan0 set pan_id 0xbeef (almost identical
response for wpan1)
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 21 <0x15>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1430895752
    .nlmsg_pid = 12459
  [PAYLOAD] 20 octets
    0a 00 00 00 08 00 03 00 02 00 00 00 06 00 09 00 ef be ..................
    00 00                                                 ..
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 56
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1430895752
    .nlmsg_pid = 12459
  [ERRORMSG] 20 octets
    .error = -16 "Device or resource busy"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 21 <0x15>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1430895752
    .nlmsg_pid = 12459
---------------------------  END NETLINK MESSAGE   ---------------------------
command failed: Device or resource busy (-16)

### iwpan dev and ifconfig gives me the following information:
$ iwpan dev
phy#1
    Interface wpan1
        ifindex 3
        wpan_dev 0x100000001
        extended_addr 0x4507b443ff180a33
        short_addr 0xffff
        pan_id 0xffff
        type node
        max_frame_retries -1
        min_be 3
        max_be 5
        max_csma_backoffs 4
        lbt 0
phy#0
    Interface wpan0
        ifindex 2
        wpan_dev 0x1
        extended_addr 0x0000000000000000
        short_addr 0xffff
        pan_id 0xffff
        type node
        max_frame_retries -1
        min_be 3
        max_be 5
        max_csma_backoffs 4
        lbt 0

$ ifconfig
wpan0     Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING NOARP  MTU:127  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:300
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wpan1     Link encap:UNSPEC  HWaddr
45-07-B4-43-FF-18-0A-33-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING NOARP  MTU:127  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:300
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

### Instructions available
The most up to date instructions I have found are from august last
year and outdated (openlabs.co), has anyone else written a blog post
or similar on how to get a working setup running?

[1] https://github.com/swarren/u-boot/tree/4f70244e0a1a0d68cf3c5493998ff3565f38d825
[2] https://git.kernel.org/cgit/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=1add15646672ff4e7fe59bec2afcb5a0c80c5e49
[3] https://github.com/linux-wpan/wpan-tools/releases/tag/wpan-tools-0.4

Regards
-- 
Christoffer Holmstedt

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-05-13  6:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-06  7:27 RPi, Raspbian with openlabs transceiver - lib/tool versions and updated instructions(?) Christoffer Holmstedt
2015-05-06  9:08 ` Alexander Aring
2015-05-06 12:26   ` Michael C. Cambria
2015-05-07  7:37     ` Christoffer Holmstedt
2015-05-13  6:46     ` Guido Günther
     [not found] ` <5549DA61.2040201@gmail.com>
2015-05-06  9:12   ` Fwd: " Varka Bhadram

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.