SUCCESS!  After poking around some more, I realized I have 3 (why???)
different versions of Java installed, and apparently I was in the wrong one.
Finally tried the third one, and got it working with the .dll going into
<javapath>\bin, the comm.jar into <javapath>\lib\ext, and the properties
file into <javapath>\lib.  Thanks for the help, all.

-Greg Turnipseed


> From: Greg Turnipseed <[EMAIL PROTECTED]>
> Date: Thu, 10 May 2007 03:25:08 -0500
> To: Marcel Kania <[EMAIL PROTECTED]>
> Cc: <[email protected]>
> Conversation: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
> found!
> Subject: Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
> found!
> 
> Hello, Marcel.  I'm not sure, but this strikes me as application-level,
> whereas the problem I seem to be having is operating system/java engine
> level.  Where did you get the toscomm.dll file?
> 
> Thanks,
> Greg Turnipseed
> 
> 
>> From: Marcel Kania <[EMAIL PROTECTED]>
>> Date: Wed, 09 May 2007 23:50:33 -0300
>> To: Greg Turnipseed <[EMAIL PROTECTED]>
>> Cc: <[EMAIL PROTECTED]>, <[email protected]>
>> Subject: Re: [Tinyos-help] Java.io.IOException: Invalid port. No comm ports
>> found!
>> 
>> Hallo,
>> 
>> here a short description, how I resolved this problem. I hope it's
>> understandable.
>> 
>> try this:
>> 
>> public class MyCommunicationClass implements MessageListener {
>> private MoteIF mote;
>> 
>> ...
>> mote = new MoteIF(BuildSource.makePhoenix(serialAddress,
>> PrintStreamMessenger.err));
>> mote.registerListener(new FooMsg(), this);   // Where FooMsg is a Msg
>> created with mig representing
>>                                                                     // a
>> msg coming from a mote
>> ...
>> 
>> 
>> // sending Messages
>> try {
>>             mote.send(moteID, msg);   //msg is a message generated with
>> mig, which is understandable by a mote
>>         } catch (Exception e) {
>>             e.printStackTrace();
>>             return -1;
>>         }
>> 
>> 
>> I'm using the toscomm.dll (Windows) for communication. This file has to
>> be located in the %jre-path%\bin-folder.
>> 
>> Cheers Marcel
> 
> 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to