# Question on UCLA\_ZigBee\_Phy program communicate with sensor node

**URL:** <https://www.ruby-forum.com/t/question-on-ucla-zigbee-phy-program-communicate-with-sensor-node/166682>\
**Category:** GNU Radio\
**Created:** [April 28, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/question-on-ucla-zigbee-phy-program-communicate-with-sensor-node/166682 "2009-04-28T15:02:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Su\_Jinzhao](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/919ad9/32.png) [@Su\_Jinzhao](https://www.ruby-forum.com/u/Su_Jinzhao)\
**Post date:** [April 28, 2009, 3:02pm UTC](https://www.ruby-forum.com/t/question-on-ucla-zigbee-phy-program-communicate-with-sensor-node/166682/1 "2009-04-28T15:02:44Z")

</div>

Hi,

I want to make our usrp run with UCLA\_ZigBee\_Phy communicate with  
sensor  
node which equipped with CC2420 RF chip. But I failed, the following  
experiments are what I have done:

I used the default SHR and SFD values with four bytes 0x00 and one A7  
in  
Physical Layer, and modified the Frame Control fields and Addressing  
fieldsof MAC frame in order to be in accordance with our sensor node  
as this:

Frame Control Fields:  
B0 ---- B2 : Frame Type = 100  
B3 : SecurityEnabled = 0  
B4 : Frame Pending = 0  
B5 : Ack Request = 0  
B6 : Intra PAN = 1  
B7 — B9 : Reserved = 000  
B10 — B11 : Destination Addressing Mode = 01  
B12 — B13 : Reserved = 00  
B14 — B15 : Source Addressing Mode = 01  
so the fuction make\_FCF in /ucla\_blks/ieee802\_15\_4\_pkt.py returns  
\0x41\0x88.

The Addressing fields is changed with: addressInfo =  
struct.pack(“HHHH”,0x0010,0x0010,0x0010,0x0000) ,so the source and  
destination node are in the same PAN.

1. Two usrp run with UCLA\_ZigBee\_Phy program on two separate machines  
can  
communicate successfully.( One send the other receive,or vice  
versa.),The  
printed message  
on screen include MHR + MAC payload + MFR is :  
payload: [‘0x41’, ‘0x88’, ‘0xe5’, ‘0x10’, ‘0x0’, ‘0x10’, ‘0x0’,  
‘0x10’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x80’, ‘0x80’, ‘0xde’, ‘0xb7’]
2. One sensor send, and the usrp can receive successfully. ,The  
printed  
message on screen include MHR + MAC payload + MFR is :  
payload: [‘0x41’, ‘0x88’, ‘0x1b’, ‘0x1’, ‘0x0’, ‘0x1’, ‘0x0’,  
‘0x1’,  
‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x0’, ‘0x3f’, ‘0x58’]
3. One usrp send, and the sensor node receive failed !!!

The three experiments work on the same central frequency 2.405G, I  
tried  
to change the following parameters in cc2420\_txtest.py, but that seems  
meaningless.  
dac\_rate = self.u.dac\_rate();  
self.\_data\_rate = 2000000  
self.\_spb = 2  
self.\_interp = int(128e6 / self.\_spb / self.\_data\_rate)  
self.fs = 128e6 / self.\_interp

So anyone would be kind enough to tell me the potential reason ? Any  
suggestions will be appreciated. Thanks.
