Sorry for all the replies:
Using
arosen@arosen-desktop:~/tinyos-2.1.1/support/sdk/java$ java -cp
tinyos.jar net.tinyos.tools.Listen
serial@/dev/ttyUSB0:115200: resynchronising
00 FF FF 00 00 02 00 0B 00 AA
Exception in thread "Thread-0" java.lang.Exception: TOSComm JNI
library runtime error: read: Resource temporarily unavailable
at net.tinyos.comm.TOSCommJNI.NativeSerial_read__SWIG_1(Native Method)
at net.tinyos.comm.NativeSerial.read(NativeSerial.java:195)
at
net.tinyos.comm.TOSSerial$SerialInputStream.gather(TOSSerial.java:163)
at
net.tinyos.comm.TOSSerial$SerialInputStream.available(TOSSerial.java:183)
at
net.tinyos.packet.SerialByteSource.readByte(SerialByteSource.java:111)
at net.tinyos.packet.Packetizer.readFramedPacket(Packetizer.java:271)
at net.tinyos.packet.Packetizer.run(Packetizer.java:227)
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 <[email protected]> wrote:
> Also,
>
> I've used mig to generate a java interface and that interface is failing here:
>
>
> init(BuildSource.makePhoenix(net.tinyos.util.PrintStreamMessenger.err));
>
>
> with:
>
> Exception in thread "main" java.lang.NullPointerException
> at net.tinyos.message.MoteIF.init(MoteIF.java:119)
> at net.tinyos.message.MoteIF.<init>(MoteIF.java:89)
> at MainDriver.<init>(MainDriver.java:10)
> at MainDriver.main(MainDriver.java:61)
>
> Thanks,
>
> Aaron
>
> On Mon, Apr 25, 2011 at 6:29 PM, Aaron Rosen <[email protected]> wrote:
>> 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 ? Is what I'm trying to do possible this way?
>>
>> Thanks,
>>
>> Aaron
>>
>> --
>> Aaron O. Rosen
>> Masters Student - Network Communication
>> 306B Fluor Daniel
>> 843.425.9777
>>
>
>
>
> --
> Aaron O. Rosen
> Masters Student - Network Communication
> 306B Fluor Daniel
> 843.425.9777
>
--
Aaron O. Rosen
Masters Student - Network Communication
306B Fluor Daniel
843.425.9777
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help