Yes the Listen tool works with TOSSIM as well (using export
MOTECOM=tossim-serial).

However I am not sure about the reverse channel (sending packets from
pc to the mote)


Tarun Bansal

On 4/28/07, Michael Schippling <[EMAIL PROTECTED]> wrote:
So perhaps the SF connect setting is the default for MoteIF?
I've never been clear on the syntax or the possible settings,
mostly I have my one true variable that continues to work.
I just tried a search to see if I could find any spec...hahaha...
but I did find this interesting tidbit:

..."export MOTECOM=tossim-serial or tossim-radio"...

So it may be possible to dispense with the SerialForwarder
and just use "tossim-serial" in order to connect directly.
There was mention that the sim-serial mote must be ID 0.

MS

Tarun Bansal wrote:
> Sorry for the incomplete reply.
>
> If you use Serial Forwarder, you don't need to use listen tool. Serial
> Forwarder will forward all the data from TOSSIM to the default tcp
> port 9001. The java oscilloscope application (shipped default with
> tinyos) uses a MoteIF class which will connect to port 9001 and
> display all the packets.
> So here there is no need to set MOTECOM variable.
>
> Tarun Bansal
>
> On 4/28/07, Michael Schippling <[EMAIL PROTECTED]> wrote:
>> Will that dump the packets directly, or do you still have
>> to run Listen to connect to the SF? If the latter, then
>> Chan: look for the right MOTECOM setting to connect Listen
>> to SerialForwarder...it has an IP port number in it instead
>> of the baud rate...
>>
>> MS
>>
>> Tarun Bansal wrote:
>> > Use the SerialForwarder with option "-comm tossim-serial".
>> >
>> > After that running the oscilloscope (java end) should give you all the
>> > packets
>> >
>> > Tarun Bansal
>> >
>> > On 4/28/07, Michael Schippling <[EMAIL PROTECTED]> wrote:
>> >> The simulator does not transmit over the serial line,
>> >> so that MOTECOM variable you show is incorrect at best...
>> >>
>> >> I don't use the sim stuff so I'm not sure, but there was
>> >> some intimation that SerialForwarder could be used with
>> >> simulated code, or perhaps some different MOTECOM setting.
>> >> I'd have to search around in the doc, code, and online to
>> >> find out.
>> >>
>> >> MS
>> >>
>> >>
>> >> Chan kenniel wrote:
>> >> > Dear all,
>> >> >
>> >> > I am new to tinyos, and I have encountered the following problem
>> when I
>> >> > follow the instruction of this link
>> >> >  http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html
>> >> > <http://www.tinyos.net/tinyos-1.x/doc/tutorial/lesson6.html>
>> >> >
>> >> > the quote text is from the website aboved
>> >> >
>> >> > "* The 'listen' tool: displaying raw packet data*
>> >> >
>> >> > The first step to establishing communication between the PC and the
>> >> mote
>> >> > is to connect up your serial port cable to the programming board,
>> >> and to
>> >> > make sure that you have Java and the javax.comm package installed.
>> >> After
>> >> > programming your mote with the Oscilloscope code, cd to the
>> tools/java
>> >> > directory, and type
>> >> >
>> >> >   make
>> >> >
>> >> >   export [EMAIL PROTECTED]:baudrate
>> >> >
>> >> > The environment variable MOTECOM tells the java Listen tool (and
>> most
>> >> > other tools too) which packets it should listen to. Here
>> >> > [EMAIL PROTECTED]:baudrate says to listen to a mote connected to a
>> >> > serial port, where serialportis the serial port that you have
>> connected
>> >> > the programming board to, and baudrate is the specific baudrate
>> of the
>> >> > mote. For the mica and mica2dot motes, the baud rate is 19200,
>> for the
>> >> > mica2 it is 57600 baud. You can also use a mote name as the baudrate
>> >> (in
>> >> > which case that motes baudrate is selected). So you could do any of:
>> >> >
>> >> >   export [EMAIL PROTECTED]:19200 # mica baud rate
>> >> >   export [EMAIL PROTECTED]:mica  # mica baud rate, again
>> >> >   export MOTECOM=
>> >> > [EMAIL PROTECTED]:mica2 # the mica2 baud rate, on a different serial 
port
>> >> >   export [EMAIL PROTECTED]:57600 # explicit mica2 baud rate
>> >> >
>> >> > Set MOTECOM appropriately, then run
>> >> >
>> >> >   java net.tinyos.tools.Listen
>> >> >
>> >> > You should see some output resembling the following:
>> >> >
>> >> > % java net.tinyos.tools.Listen
>> >> >
>> >> > [EMAIL PROTECTED]:19200: resynchronising
>> >> > 7e 00 0a 7d 1a 01 00 0a 00 01 00 46 03 8e 03 96 03 96 03 96 03 97 03
>> >> 97 03 97 03 97 03 97 03
>> >> >
>> >> > 7e 00 0a 7d 1a 01 00 14 00 01 00 96 03 97 03 97 03 98 03 97 03 96 03
>> >> 97 03 96 03 96 03 96 03
>> >> > 7e 00 0a 7d 1a 01 00 1e 00 01 00 98 03 98 03 96 03 97 03 97 03 98 03
>> >> 96 03 97 03 97 03 97 03
>> >> >
>> >> > The program is simply printing the raw data of each packet received
>> >> from
>> >> > the serial port.
>> >> >
>> >> > Before continuning, execute unset MOTECOM to avoid forcing all java
>> >> > applications to use the serial port to get packets.
>> >> >
>> >> > If you don't have the javax.comm package installed properly, then
>> the
>> >> > program will complain that it can't find the serial port. If you
>> do not
>> >> > see that data lines on the screen, you may have chosen the wrong COM
>> >> > port or the mote may not be correctly connected to the computer. "
>> >> >
>> >> >
>> >> >
>> >> > I have followed what it tells me to do, but when I use the command I
>> >> > only see
>> >> >
>> >> > % java net.tinyos.tools.Listen
>> >> >
>> >> > [EMAIL PROTECTED]:19200: resynchronising
>> >> >
>> >> > There's no the data line 7e 00 7d .... show up, it keeps
>> listening, but
>> >> > listen nothing. Can anyone tell me what I did wrong please? Here is
>> >> what
>> >> > I did:
>> >> >
>> >> > Noted: I have no mote plug in the computer, but I was wondering
>> is it
>> >> > necessary?
>> >> > 1) I went to /apps/Oscilloscope directory, and use command "make
>> PC",
>> >> > after compile, I run by using " build/pc/main.exe 1" command, and in
>> >> > cygwin window, there's bunch of data flashing
>> >> > out in the screen, which I think it's working.
>> >> >
>> >> > 2) then I move to another cygwin window, and go to /tools/java, then
>> >> use
>> >> > command "make"
>> >> > after making java, I export the port I want to listen which I used:
>> >> >
>> >> > export MOTECOM=serial@/COM1:19200/
>> >> >
>> >> > then I use
>> >> >
>> >> > java net.tinyos.tools.Listen
>> >> >
>> >> > at this moment, nothing comes up. what did I do wrong? or did I miss
>> >> > something?
>> >> >
>> >> > Thanks a lot for your answer.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best wishes,
>> >> > Kenneth Chan
>> >> >
>> >> > ------------------------
>> >> > Wish you have a good day!
>> >> >
>> >> >
>> >> >
>> >>
>> ------------------------------------------------------------------------
>> >> >
>> >> > _______________________________________________
>> >> > 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
>> >>
>>

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

Reply via email to