I'm cc'ing back to the help list, so maybe someone can help....

I haven't done any parallel port access since DOS-days so all
I can say is that there is a javax.comm.ParallelPort class in
the SUN version of javacomm20-win32.zip used in TOS1.x. That
might give you enough access to read and write bytes to the
port. I don't know....

Here is just about everything I know about TOS 1.x for mica2:
     http://www.etantdonnes.com/Motes/schipTOS.zip

The TOSBasePlus dir has my modified code for mica basestations.
It doesn't process any special messages it receives (as I suggested
to you) but it does send a new message and do some extra work.
I have no idea if it has any utility on telosb.

The TOSComm dir has my Java command-line program for sending
and receiving messages between a PC and a mote. With the right
message classes and MOTECOM it should work for mica's and telosb.

And, as usual, the code is the documentation.

MS


amad khalil wrote:
>  sir  actually i m a student and  new one in wsn field and first time  
> working on  parallel interface code in java ..... so please kindly help 
> me ...
> i m mailing mye code   please add parallel interface code to it.......
>  and  if u can send me   your modified mica2 TOSBase code .... may it 
> help me ...... i shall be thankful to you for your this kindness
>  
> 
> 
> --- On *Fri, 7/16/10, Michael Schippling /<sc...@santafe.edu>/* wrote:
> 
> 
>     From: Michael Schippling <sc...@santafe.edu>
>     Subject: Re: [Tinyos-help] parallel interface code
>     To: "amad khalil" <amadkha...@yahoo.com>
>     Cc: tinyos-help@millennium.berkeley.edu
>     Date: Friday, July 16, 2010, 5:21 PM
> 
>     Google up parallel interface drivers. You might be able to
>     just use a standard printer interface and send specific
>     characters...
> 
>     But...
> 
>     Why not use the telosB on your base-station? You could send
>     a message that causes it to twiddle some of it's I/O pins.
>     You would need to modify the basestation code to catch and
>     process the message rather than forwarding it, but that should
>     be "easy"... I've modified my mica2 TOSBase to send it's own
>     sync messages and toggle some I/O lines to drive external
>     hardware, while still forwarding radio messages.
> 
>     MS
> 
>     amad khalil wrote:
>      >  sir i m  working on   monitoring and  control system for wsn 
>     using telosb  mote.......   i have 2 motes and 1 base
>     station....   these 2 motes  monitor temperature and humidity and
>     sent to base station ...... my monitoring part is complete and i m 
>     getting values of temperature and humidity in java 
>     application   now i want to send my these coming  temperature and
>     humidity values to  relays through parallel interface......  
> 
> 
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to