I am trying to bring up Bluetooth networking with pand, verdex as the Bluetooth master, so I can access boa from a handheld. I know the handheld can do it because I have paired it with a T-Mobile phone in a PAN config with the phone serving and got through to the internet that way. With the verdex as the access point all I want is the local boa server. 

I have set up everything as described in the pan access point  section ot the bluetooth how-to page except btap does nothing (since a) I am not routing anywhere except local and b) iptables throws an error not knowing about a table called 'nat')


but bnep0 is not getting installed. Everything else seems to be working as advertised, including being able to l2ping from the gumstix to my handheld.

Relevant dump from the boot console:

Configuring network interfaces... eth0      no wireless extensions.

pccard: card ejected from slot 0
cfio: module license 'unspecified' taints kernel.
pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
Before register driver
Entering cf_attach()
pcmcia: request for exclusive IRQ could not be fulfilled.
pcmcia: the driver needs updating to supported shared IRQ lines.
BasePort1=0xc48a0000, AssignedIRQ=128
After calling wlan_add_card function
After register driver
udhcpc (v1.2.1) started
udhcpc[667]: udhcpc (v1.2.1) started
udhcpc[673]: udhcpc (v1.2.1) started
Sending discover...
udhcpc[667]: Sending discover...
udhcpc[673]: Sending discover...
Sending select for
udhcpc[667]: Sending select for
udhcpc[673]: Sending select for
Lease of obtained, lease time 86400
udhcpc[667]: Lease of obtained, lease time 86400
adding dns
udhcpc[673]: Lease of obtained, lease time 86400
SIOCGIFFLAGS: No such device
bnep0     No such device

This is what I have in /etc/network/interfaces

#Bluetooth PAN Server
allow-hotplug bnep0
auto bnep0
iface bnep0 inet static

ps shows me pand running, and everything else:

  PID  Uid     VmSize Stat Command
    1 root        532 S   init [5]   
    2 root            SWN [ksoftirqd/0]
    3 root            SW  [watchdog/0]
    4 root            SW< [events/0]
    5 root            SW< [khelper]
    6 root            SW< [kthread]
   26 root            SW< [kblockd/0]
   38 root            SW  [pdflush]
   39 root            SW  [pdflush]
   40 root            SW< [kswapd0]
   41 root            SW< [aio/0]
  120 root            SW  [mtdblockd]
  197 root        568 S < udevd --daemon 
  388 root            SWN [jffs2_gcd_mtd1]
  426 root            SW< [kmmcd]
  431 root            SW< [ksuspend_usbd]
  433 root            SW< [khubd]
  447 root            SW< [pccardd]
  465 root            SW< [krfcommd]
  597 root            SW< [wlan_main_servi]
  600 root            SW< [wlan_reassoc_se]
  664 root        244 S   udhcpc -n -p /var/run/udhcpc.wlan0.pid -i wlan0 
  715 root        244 S < udhcpc -n -p /var/run/udhcpc.wlan0.pid -i wlan0 
  739 root        552 S   /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22 
  749 www-data    520 S   /usr/sbin/boa 
  758 messageb    676 S   /usr/bin/dbus-daemon --system 
  766 nobody      656 S   /usr/bin/dnsmasq 
  771 root        984 S   /usr/bin/ntpd -p /var/run/ntp.pid -g 
  778 root        616 S   /sbin/syslogd -n -O /var/log/messages -s 32 -b 1 -m 20 
  780 root        592 S   /sbin/klogd -n 
  820 root        176 S   /sbin/hciattach -s 921600 ttyS1 gumstix 921600 flow 
  823 root       1120 S   /sbin/hcid -s -f /etc/bluetooth/hcid.conf 
  831 root        400 S   /bin/rfcomm -r watch 0 1 /sbin/getty -w -L rfcomm0 115200 vt100 
  837 root        448 S   /bin/pand --listen --role NAP 
  840 root        436 S   /bin/hidd --master --server 
  880 root        540 S   /usr/sbin/mdnsd -f /etc/bonjour.conf -b 
  885 root        396 S   /usr/sbin/cron 
  901 root        516 S   /sbin/getty 115200 ttyS0 vt100 
  902 root        504 S   /sbin/getty 38400 tty1 
  905 root       1156 S   /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22 
  906 root        944 S   -sh 
  911 root        740 R   ps 

Any idea why the bnep0 interface is not being created? 

modprobe bnep completes quietly but ifconfig shows only wlan0 eth0 and lo.

I can do the hcitool sequence 

hcitool dev
hcitool scan
hcitool inq
l2ping ......

and the layer 2 ping works as expected, gumstix can see and ping the handheld via Bluetooth.

One other silly little question: when I go through the device discovery from my handheld, it is giving me a passkey which it is expecting me to type into the gumstix to validate the pairing. passkey-agent does not seem to have any effect, so how to I do this?

Second silly one: /etc/supplicant.conf does not seem to have a way (according to the docs) of having an open wifi network co-exist with one with a 128 bit WEP passkey. how would I do this? I have open running right now, but I have to edit interfaces to switch to a specific one to run with my protected network at home. Which means I have to hook up a terminal directly before I can get wifi access to the gumstix every time I change location. How do I configure so I do not have to edit the file?

Thanks again for your help,

David Warman
Computer Systems Architect
P: 206-780-9963
M: 206-407-7050
F: 206-842-4958
Skype: david.warman