[Tinyos-help] What exactly is in my 6lowpan packet

2011-04-26 Thread Aaron Rosen
Hello, I'm using blip to create a bridge from my computer to a mote and on the other end I have a mote running the UDPEcho app. I'm trying to figure out what exactly is the data structure in my packet. I'm sending UDP packets in with a payload of 85 bytes. (I've found this to be the correct value

[Tinyos-help] casting msg to get 6lowpan header from CC2420TransmitP.nc

2011-04-25 Thread Aaron Rosen
Hello, I'm trying to detect in loadTXFIFO() at /opt/tinyos-2.1.1/tos/chips/cc2420/transmit/CC2420TransmitP.nc if a packet is a fragmented ipv6 lowpan packet. There it calls: cc2420_header_t* header = call CC2420PacketBody.getHeader( m_msg ); and I know that header->type (value 248) are 6lo

[Tinyos-help] Using Printf with IPBaseStation

2011-04-25 Thread Aaron Rosen
Hello, I've added CFLAGS += -I$(TOSDIR)/lib/printf to the Makefile in IPBaseStation and I've also added a printf("hello world"); in the boot section. After doing that I install the program to my mote. Then I run java -cp tinyos.jar net.tinyos.tools.PrintfClient -comm serial@/dev/ttyUSB0:telosb

Re: [Tinyos-help] Sending to Uart from CC2420TransmitP.nc

2011-04-25 Thread Aaron Rosen
at java.lang.Thread.run(Thread.java:636) Works until i get that error then it stops. Aaron On Mon, Apr 25, 2011 at 6:31 PM, Aaron Rosen wrote: > Also, > > I've used mig to generate a java interface and that interface is failing here: > >        

Re: [Tinyos-help] Sending to Uart from CC2420TransmitP.nc

2011-04-25 Thread Aaron Rosen
MoteIF.java:119) at net.tinyos.message.MoteIF.(MoteIF.java:89) at MainDriver.(MainDriver.java:10) at MainDriver.main(MainDriver.java:61) Thanks, Aaron On Mon, Apr 25, 2011 at 6:29 PM, Aaron Rosen wrote: > Hello, > > I've added code in  CC2420TransmitP.nc an

[Tinyos-help] Sending to Uart from CC2420TransmitP.nc

2011-04-25 Thread Aaron Rosen
Hello, I've added code in CC2420TransmitP.nc and CC2420TransmitC.nc to send information about a couple variables to the uart port. I'm also using the ip-driver in blip to create a tun interface with the mote. I'm thinking there is some conflict here because there are two things using the uart ?

Re: [Tinyos-help] Changing tinyos-2.1.1/tos/chips/cc2420/transmit/*

2011-04-25 Thread Aaron Rosen
Thanks I also got it by changing TOSDIR Aaron On Mon, Apr 25, 2011 at 5:59 PM, Janos Sallai wrote: > Aaron: > > Add "PFLAGS+=-I/home/whatever/folder/your/component/is/in" to the > beginning of the application's make file. > > Janos > > On Mon, Apr

Re: [Tinyos-help] Changing tinyos-2.1.1/tos/chips/cc2420/transmit/*

2011-04-25 Thread Aaron Rosen
quot;PFLAGS=-v make telosb blip" to see which > components/modules get pulled in. > > Janos > > On Mon, Apr 25, 2011 at 4:16 PM, Aaron Rosen wrote: >> Hello, >> >> I've make a couple changes to CC2420TransmitC.nc and  CC2420TransmitP.nc in >>

[Tinyos-help] Changing tinyos-2.1.1/tos/chips/cc2420/transmit/*

2011-04-25 Thread Aaron Rosen
Hello, I've make a couple changes to CC2420TransmitC.nc and CC2420TransmitP.nc in (tinyos-2.1.1/tos/chips/cc2420/transmit). Though when I compile ~/tinyos-2.1.1/apps/IPBaseStation I don't see my changes. (I've added a syntax error in CC2420TransmitP.nc and I would expect to see that error when I

Re: [Tinyos-help] Routing between two computers using IPBaseStation with blip

2011-04-18 Thread Aaron Rosen
Also, When I manually add a route to it: ip -6 route add fec0::65 dev tun0 and ping6 fec0::65 I get From fec0::64 icmp_seq=3 Time exceeded: Hop limit Thanks, Aaron On Mon, Apr 18, 2011 at 1:00 PM, Aaron Rosen wrote: > Hi Pietro, > > Thanks for your reply. So now I'm runni

[Tinyos-help] Routing between two computers using IPBaseStation with blip

2011-04-17 Thread Aaron Rosen
Hello, I'm trying to create a route between two laptops using the IPBaseStation app with each laptop having a mote plugged into it. In serial_tun.conf I have the following: addr fec0::64 # addr fec0::65 for the other laptop proxy lo channel 15 Now I install the IPBaseStation app on each mote