Re: [Linux-zigbee-devel] Radio transmission using openembedded images

2012-08-07 Thread Andrea
bala krishna sanjeeva  writes:

> 
> Hi All,I have used openembedded for flashing images on to the 
> imote2. Openembedded uses the linux zigbee kernel. Imote2 is a sensor board 
with cc2420 radio chip. I have written a transmit and receive program using 
header files
>  from the user space applications provided in the linux-zigbee project. I
>  am able to transmit and receive data.I have used one imote as the 
transmitter. The transmit program works fine with the data being transmitted at 
regular intervals.The
>  problem is with the receiving. It works fine for a few duration but due
>  to some reason,there is an overflow and the data is no more received. 
> This happens when the receiver receives data from another source and not
>  from the node (imote) that I am using. I guess its due to 
> interference from other wireless devices. Have anyone of you faced this 
> problem. Can anyone offer any suggestions for this problem?Also I am trying 
> to 
understand the lower layers and its working.The debug message looks like 
this:root  imote2:~# dmesg[ 1189.220754] parse_frame_start(): dst SHORT 
address 8001[ 1189.228991] parse_frame_start(): got src non-NONE address[ 
1189.236880] parse_frame_start(): src IEEE802154_ADDR_SHORT[ 1189.242466] 
ieee802154_wpans_rx() frame 1[ 1189.251480] ieee802154_subif_frame Getting 
packet via slave interface wpan0[ 1189.258940] net wpan0: ACK requested, 
however 
AACK not supported.[ 1189.265134] got frame, type 804, dev c1e67800[ 
1189.269504] ieee802154_rcv 33 30 35 30 30 0a    
30500.[ 1199.164224] cc2420 spi3.0: fifop interrupt received[
>  1199.170253] ieee802154_subif_rx()[ 1199.178503] cc2420 spi3.0: RXFIFO: 0 17 
68[ 1199.185445] parse_frame_start: 8861 dsnbe[ 1199.189527] 
parse_frame_start(): ACKNOWLEDGE required[ 1199.200026] cc2420 spi3.0: sfd 
interrupt received[ 1199.207219] parse_frame_start(): src 
IEEE802154_FC_INTRA_PAN[ 1199.212974] parse_frame_start(): src PAN address 
0777[ 
1199.223032] parse_frame_start(): dst PAN address 0777[ 1199.230570] 
parse_frame_start(): dst SHORT address 8001[ 1199.238817] parse_frame_start(): 
got src non-NONE address[ 1199.246705] parse_frame_start(): src 
IEEE802154_ADDR_SHORT[ 1199.252290] ieee802154_wpans_rx() frame 1[ 1199.261310] 
ieee802154_subif_frame Getting packet via slave interface wpan0[ 1199.268762] 
net wpan0: ACK requested, however AACK not supported.[ 1199.274964] got frame, 
type 804, dev c1e67800[ 1199.279339] ieee802154_rcv 33 30 35 30 30
>  0a    30500.[ 1239.204127] cc2420 spi3.0: fifop 
interrupt received[ 1302.889393] cc2420 spi3.0: fifop interrupt received[ 
1302.898177] ieee802154_subif_rx()[ 1302.901623] parse_frame_start: da13 dsna4[ 
1302.909981] cc2420 spi3.0: RXFIFO: 0 84 1f[ 1302.917697] cc2420 spi3.0: sfd 
interrupt received[ 1302.922548] parse_frame_start(): dst PAN address f906[ 
1302.930458] parse_frame_start(): dst SHORT address 5216[ 1302.939484] 
parse_frame_start(): got src non-NONE address[ 1302.947382] 
parse_frame_start(): 
src IEEE802154_FC_INTRA_PAN[ 1302.956095] parse_frame_start(): src hardware 
addr[ 1302.960988] ieee802154_wpans_rx() frame 3[ 1302.967850] 
ieee802154_subif_frame Getting packet via slave interface wpan0[ 1302.975336]
>  Command 56 on device wpan0[ 1302.979074] Frame type is not supported yet[ 
1470.533561] cc2420 spi3.0: fifop interrupt received[ 1470.539622] 
ieee802154_subif_rx()[ 1470.547845] cc2420 spi3.0: RXFIFO: 0 69 1b[ 
1470.554382] 
parse_frame_start: 6622 dsn52[ 1470.558468] parse_frame_start(): ACKNOWLEDGE 
required[ 1470.569095] cc2420 spi3.0: sfd interrupt received[ 1470.576289] 
ieee802154_wpans_rx(): Got invalid frame[ 1509.673935] cc2420 spi3.0: fifop 
interrupt received[ 1509.679996] ieee802154_subif_rx()[ 1509.688186] cc2420 
spi3.0: RXFIFO: 0 67 1b[ 1509.694729] parse_frame_start: 496e dsn1d[ 
1509.698821] parse_frame_start(): ACKNOWLEDGE required[ 1509.709436] cc2420 
spi3.0: sfd interrupt received[ 1509.716604] security support is not 
implemented[ 1509.721250] ieee802154_wpans_rx(): Got invalid frame[ 
1603.652760] 
cc2420 spi3.0: fifop interrupt received[ 1603.658822]
>  ieee802154_subif_rx()[ 1603.667041] cc2420 spi3.0: RXFIFO: 0 164 0[ 
1603.671701] parse_frame_start: 8f3c dsn4f[ 1603.679023] cc2420 spi3.0: sfd 
interrupt received[ 1603.686660] parse_frame_start(): ACKNOWLEDGE required[ 
1603.691807] security support is not implemented[ 1603.699195] 
ieee802154_wpans_rx(): Got invalid frame[ 1799.274796] cc2420 spi3.0: fifop 
interrupt received[ 1799.280825] ieee802154_subif_rx()[ 1799.289063] cc2420 
spi3.0: RXFIFO: 0 51 24[ 1799.295603] parse_frame_start: ebf5 dsnca[ 
1799.299689] parse_frame_start(): ACKNOWLEDGE required[ 1799.310314] cc2420 
spi3.0: sfd interrupt received[ 1799.317517] parse_frame_start(): src 
IEEE802154_FC_INTRA_PAN[ 1799.326252] parse_frame_start(): src PAN address 
2b4e[ 
1799.333771] parse_frame_start(): dst PAN address 2b4e[ 1799.338898] 
parse_frame_sta

[Linux-zigbee-devel] GPIO error with PXA270

2012-08-09 Thread Andrea
Hello,
I'm trying to use 6lowpan on imote2 platform but with kernel 3.3-rc5 (latest 
git linux-zigbee devel )  I have this error at bootup:


...
[0.265882] gpiochip_add: registered GPIOs 0 to 31 on device: gpio-0
[0.269766] gpiochip_add: registered GPIOs 32 to 63 on device: gpio-1
[0.273585] gpiochip_add: registered GPIOs 64 to 95 on device: gpio-2
[0.278527] gpiochip_add: registered GPIOs 96 to 120 on device: gpio-3
[0.312939] __mfp_validate: GPIO91 is invalid pin
[0.313038] __mfp_validate: GPIO103 is invalid pin
[0.313072] __mfp_validate: GPIO104 is invalid pin
[0.313107] __mfp_validate: GPIO105 is invalid pin
[0.313141] __mfp_validate: GPIO102 is invalid pin
[0.313176] __mfp_validate: GPIO1 is invalid pin
...

Also, before this I add this 2 line in pxa27x.c file:

INIT_CLKREG(&clk_dummy, "pxa-gpio", NULL),
INIT_CLKREG(&clk_dummy, "pxa27x-rtc", NULL),

otherwise a -22 error result in gpio probing phase

So, cc2420 driver cannot be loaded (neither that use gpio, including leds)

is there any patch ?

thank you very much

Andrea

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel