David Gay wrote: > You just need to replace net/tinyos/packet/SerialByteSource.java. And, > conveniently, there's already a javacomm implementation, in > tinyos-1.x/tools/java/net/tinyos/packet/SerialByteSource.java (get it > from sourceforge CVS if you don't have tinyos 1.x installed), which by > the look of it should just function as is...
I tried this out, and it works wonderfully, with this IBM JDK: $ java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build pxa64dev-20061002a (SR3) ) IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux amd64-64 j9vmxa6423-20061001 (JIT enabled) J9VM - 20060915_08260_LHdSMr JIT - 20060908_1811_r8 GC - 20060906_AA) JCL - 20061002 please note that the IBM JDK has official JavaComm support. here's the output I get, which looks just fine: $ java TestSerial serial@/dev/ttyUSB0:115200: resynchronising Sending packet 0 Received packet sequence number 183 Sending packet 1 Received packet sequence number 184 Sending packet 2 Received packet sequence number 185 Sending packet 3 Akos _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
