To me, this looks like two other, probably unrelated problems:

Java doesn't find the TestSerial class, which should be in the current
working directory. I think the CLASSPATH environment variable is not set
properly though a previous e-mail exchange seemed to show that it should
be ok. A means of testing this would be to try to execute the program by
specifying the CLASSPATH manualy, something like 'java -cp
".:/opt/tinyos-2.x/support/sdk/java/tinyos.jar" TestSerial' (the period
is important).

The second problem is with the serial forwarder. According to the error
messages the program starts but is unable to open the com  port. This
could be because Windows has the port already open (for instance some
PDA synchronization software might open it to check whether a PDA is
connected).

Iyad, if you are running on Linux, then the serial port should be
/dev/ttyS0 rather than com1. If you are using Windows, make sure that no
other program is using the serial port (disable PDA synchronization
software, for instance). Though this shouldn't matter, try also writing
the com-port in upper case letters (COM1 instead of com1). Also if you
are running windows, you need to replace the colons (:) with semi-colons
(;) in your classpath.

Cheers,
Urs


Michael Schippling schrieb:
> You don't seem to have the TOSComm package installed correctly.
> Look for instructions online or in the manuals.
> MS
> 
> 
> Iyad tumar wrote:
>> Hi i still face the same problem, to make
>> communication between PC and the telosB and i still
>> get this message
>>
>> " Exception in thread "main"
>> java.lang.NoClassDefFoundError: TestSerial" (even
>> though the current directory is in the classpath)
>>
>> well i face too a problem when i try to open serial
>> forwarder i got the following message and i think its
>> related to the same problem i need your help pls.
>> the command: $ java net.tinyos.sf.SerialForwarder
>> the output:
>> Listening to [EMAIL PROTECTED]:57600
>> Could not open com1: TOSComm JNI library runtime
>> error: flush: Input/output error
>> [EMAIL PROTECTED]:57600 died - restarting
>> Listening for client connections on port 9002
>> Could not open com1: TOSComm JNI library runtime
>> error: flush: Input/output error
>> [EMAIL PROTECTED]:57600 died - restarting
>> Could not open com1: TOSComm JNI library runtime
>> error: flush: Input/output error
>> [EMAIL PROTECTED]:57600 died - restarting
>> Could not open com1: TOSComm JNI library runtime
>> error: flush: Input/output error
>> [EMAIL PROTECTED]:57600 died - restarting
>> Could not open com1: TOSComm JNI library runtime
>> error: flush: Input/output error
>> [EMAIL PROTECTED]:57600 died - restarting
>> Could not open com1: TOSComm JNI library runtime
>> error: flush: Input/output error
>> [EMAIL PROTECTED]:57600 died - restarting
>> Could not open com1: TOSComm JNI library runtime
>> error: flush: Input/output error
>>
>>
>> Best Regards.
>> Iyad Tumar.
>> Jacobs university Bremen
>> Germany
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to