I have tried with different baud rates in MOTECOM and this problem ("bad
packet") dissapears, so am I missing anything? I mean, I have typed:
Export motecom=ser...@com4:115200 (which is the baud rate said in Packet
sources and TestSerial chapter in Tinyos Tutorial for telosb), but with this
baud rate I get "bad packet", for example, if I type: Export
motecom=ser...@com4:telos the problem is solved in Listen tool, and I start to
get good packet which are shown in screen.
What baud rate do I have to write in motecom var for TElosB?
Do I have to change any parameter in oscilloscope component or other in order
to solve this problem?
Thanks in advance
-----Mensaje original-----
De: [email protected]
[mailto:[email protected]] En nombre de David Conde
Enviado el: miércoles, 07 de octubre de 2009 15:03
Para: [email protected]
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
Hi again,
I followed the link shown below and I found the problem:
I was missing out win32com.dll in Windows/system32/ folder.
Now that I solved the problem I am trying to launch oscilloscope application in
Telosb mote and java net.tinyos.oscope.oscilloscope so that I can see the
sensing values from my mote in PC application.
The problem now is that I am getting bad packet error when I launch java
net.tinyos.oscope.oscilloscope.
As shown below:
ser...@com4:115200: resynchronising
ser...@com4:115200: bad packet
serial@ COM4:115200: packet too long
serial@ COM4:115200: resynchronising
ser...@com4:115200: bad packet
ser...@com4:115200: bad packet
ser...@com4:115200: bad packet
The same is gotten when I launch $java Listen and $java Forwarder
Any idea?
I do not have TestSerial as it is said in the documentation so I do not know
any othe way to try if serial communications is working right.
Thanks in advance
-----Mensaje original-----
De: [email protected]
[mailto:[email protected]] En nombre de David Conde
Enviado el: miércoles, 07 de octubre de 2009 9:31
Para: 'Michael Schippling'
CC: [email protected]; 'Rubén Gmail'
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
Hi Michael,
Firstly, thank you very much for your replies.
Listen was not succesful at all, I just solved the JNI Error by including
getenv.dll in System32 directory, but I am getting the next error when I type
java net.tinyos.tools.Listen:
java.net.ConnectEXception: Connection refused: Connect
It is a problem with the connection, I think it is not able to take the right
port, because if I try to launch SerialForwarder I get a similar Exception:
Java.io.IOException: Invalid port. No comm ports found!
Any idea?
-----Mensaje original-----
De: Michael Schippling [mailto:[email protected]]
Enviado el: martes, 06 de octubre de 2009 19:44
Para: David Conde
CC: 'Rubén Gmail'; [email protected]
Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
Were you finally successful with Listen using the MOTECOM variable?
If so, SF should use the same port syntax.
MS
David Conde wrote:
> Hi again,
>
> I solved this by placing getenv.dll in Windows/system32 folder.
>
> But now I am getting the next Exception:
>
> Error on s...@localhost:9001: java.net.ConnectEXception: Connection refused:
> Connect.
>
> I have tried either with SerialForwarder and I am getting something similar:
>
> Java.io.IOException: Invalid port. No comm ports found!
>
> Any idea?
>
> I am typing java net.tinyos.sf.SerialForwarder -comm ser...@com4:telosb
>
> Thanks in advance
>
>
>
> -----Mensaje original-----
> De: [email protected]
> [mailto:[email protected]] En nombre de David Conde
> Enviado el: martes, 06 de octubre de 2009 12:15
> Para: 'Rubén Gmail'
> CC: [email protected]
> Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
>
> Hi,
>
> Thank you for your replies.
>
> I have tried typing "export motecom=ser...@com4:telosb" after doing motelist
> in Cygwin command line, where I got COM4 for my telosB mote.
>
> I have follow the next link:
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/2007-January/022165.html
>
> So, I installed comm.jar in my ClassPath and put it in JRE/LIB/Ext
> directories, either I placed win32.dll in Windows/system32 folder:
>
> but I am now getting the next Exception when I tried to do: java
> net.tinyos.tools.Listen:
>
> getenv JNI library not found. Env.getenv will not work (please consult
> installation direction in tinyos-1.x/tolos/java/net/tinyos/útil/Env.INSTALL)
> Error on s...@localhost:9001: java.net.ConnectException: Connection refused:
> connect
>
> My environment is the next one:
>
> I have a telosb mote in USB port which is COM4 according to motelist command,
> this mota has installed OSCILLOSCOPE application and I tried to see the
> information received by serial port with java net.tinyos.tools.Listen
> application ,
>
> What am I missing?
>
> Thanks in advance
>
>
>
> -----Mensaje original-----
> De: Rubén Gmail [mailto:[email protected]]
> Enviado el: lunes, 05 de octubre de 2009 22:05
> Para: David Conde
> CC: <[email protected]>
> Asunto: Re: [Tinyos-help] Problem with java net.tinyos.tools.Listen
>
> Have you tried to use the motelist command to determine where is your
> device connected?
>
> El 05/10/2009, a las 18:54, "David Conde" <[email protected]> escribió:
>
>> Hi , I am trying to launch the Lesson 6 example in TinyOS 1.X
>> tutorial but when I tried to launch
>>
>>>> java net.tinyos.tools.Listen –comm ser...@com1:telosb
>>
>>
>> I do not get any data in the screen, I just get:
>>
>>
>>
>>>> Usage: java net.tinyos.tools.Listen.
>>
>> Firstly I installed the oscilloscope application in my Mote, then I
>> included the Listen path in my ClassPath, and then when I tried to
>> type: java net.tinyos.tools.Listen –comm ser...@com1:telosb I just
>> got what I wrote above.
>>
>>
>>
>> I have tried changing the COM1 to COM2, and COM3 because I am
>> working in WindowsXP, and I have also tried changing telosb to telos
>> but I do not know what it is the problem.
>>
>>
>>
>> I am not working in Cygwin, is this necessary? I am using the MS-DOS
>> command line
>>
>>
>>
>> Any tips?
>>
>>
>>
>> Thanks in advance
>>
>>
>>
>> David
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help