Anyone tried 'dirtpan' on atUSB

Xiangfu Liu xiangfu at sharism.cc
Fri Jun 15 10:37:48 EDT 2012


Hi

Have anyone tried 'dirtpan' on atusb, here is my setup and problem:
  Ben Nanonote + atBen
  TP-LINK 703n + atUSB

Setup atBen first by using './dirtpan.ben' [3] then setup atUSB by
'./dirtpan.sh 2' [2] under 703n.

Then run ssh root at 10.8.0.2 under Nanonote. the 703n keep output those[1]
kernel message.

BTW:
  izchat works just fine under atUSB + atBen.

Best Regards
Xiangfu

-----------------

[1]
[  116.130000] usb 1-1: atusb_timer
[  116.200000] usb 1-1: atusb_timer
[  116.220000] at86rf230_state unexpected state change: 255, asked for 4
[  116.230000] at86rf230_xmit error: -16
[  116.310000] usb 1-1: atusb_timer
[  116.810000] usb 1-1: atusb_timer

... ...
[  630.720000] usb 1-1: atusb_timer
[  630.850000] usb 1-1: atusb_timer


[2]
#!/bin/sh
iz add wpan-phy0
if [ "$1" == "2" ]; then
   ip link set wpan0 address de:ad:be:af:ca:fe:ba:b2
else
   ip link set wpan0 address de:ad:be:af:ca:fe:ba:b1
fi
ifconfig wpan0 up

if [ "$1" == "2" ]; then
   iz assoc wpan0 777 1 11 short

   #izchat 777 8001 1
   dirtpan 777 8001 1 'ifconfig tun0 10.8.0.2 dstaddr 10.8.0.1 up' &
else
   rm -f /tmp/lease
   izcoordinator -d 1 -l /tmp/lease -i wpan0 -p 0x777 -s 1 -c 11 &

   #izchat 777 1 8001
   dirtpan 777 1 8001 'ifconfig tun0 10.8.0.1 dstaddr 10.8.0.2 up' &
fi


[3]
#!/bin/sh


cd /lib/modules/`uname -r`

echo jz4740-mmc.0 > /sys/bus/platform/drivers/jz4740-mmc/unbind
insmod at86rf230.ko
insmod spi_atben.ko

cd ${HOME}

iz add wpan-phy0
if [ "$1" == "2" ]; then
   ip link set wpan0 address de:ad:be:af:ca:fe:ba:b2
else
   ip link set wpan0 address de:ad:be:af:ca:fe:ba:b1
fi
ifconfig wpan0 up

if [ "$1" == "2" ]; then
   iz assoc wpan0 777 1 11 short

   #izchat 777 8001 1
   dirtpan 777 8001 1 'ifconfig tun0 10.8.0.2 dstaddr 10.8.0.1 up' &
else
   rm -f /tmp/lease
   izcoordinator -d 1 -l /tmp/lease -i wpan0 -p 0x777 -s 1 -c 11 &

   #izchat 777 1 8001
   dirtpan 777 1 8001 'ifconfig tun0 10.8.0.1 dstaddr 10.8.0.2 up' &
fi




More information about the discussion mailing list


interactive