Hi again guys,
I was trying to do this patch on an Xubuntu 11.10 of one of my group
members and after I do the ant jar command it says that cannot find the
Listen class and so on for the other java programs.
I think is a nesC problem, but i can't find what.
The output of the ant jar command is
Hi Luís,
These are interesting findings. I don't think it is a problem related to
Java as a language. It appears to me that the microcontroller is reset
as soon as the serial port is opened. Maybe the Java programs that you
have tried set some handshaking lines that cause a reset.
If you look
Hi Urs,
Thanks for your aswer. So if Java programs work that way, there is nothing I
can do to make it work do I?
Well I could make some C/C++ program to do what I want.
Luís Pereira
On Thu, Oct 27, 2011 at 07:39, Urs Hunkeler urs.hunke...@epfl.ch wrote:
Hi Luís,
These are interesting
Hi Urs,
You're right.
I mesaurd the voltage on the reset button: it's about 3.3V when it's
unpressed, and 0V if pressed. But after I connect to the mote with
Listen, the voltage is always 0V, which means, it's in reset state.
The mote only exit the reset state if I unplug/replug it, or reset it
Hi Luís,
Hi Andris,
As Andris pointed out, if you could control the RTS/DTS lines, you
should be able to solve this. Actually, this is not a Java problem, as
Java doesn't have support for the serial port. Java uses a JNI (Java
Native Interface) library written in C and provided by TinyOS to
Hi Guys,
Urs, it's not always working in c, I couldn't use it with cutecom.
But since I worked with the JNI libraries recently, I checked what
should be changed, and it was really easy, check the attached patch (I
did the change on the svn version). You can try it with:
cd $TOSROOT/sdk/java
Hi Urs,
I tried to create a serial forward using the cpp program that comes with
tinyos (I don't know how to compile the C program that comes with it too)
and I have the same problem. It turn off the mote and can't connect. After
study the code, I found out it get stuck in writteBuffer.dequeue().
Hi András,
I tried out your patch but it didn't work. I test a few combinations of the
RTS DTS state and none of them work. Did it work for you?
What do you mean with ant jar? I don't understand that line.
Thanks for your help
Luís Pereira
On Thu, Oct 27, 2011 at 16:10, András Bíró
Yes, it worked for me (I also tried all the combinations, only this one worked).
ant jar: It regenerates the tinyos.jar file. Apache ant is similar to
GNU Make, but it's designed for java. You will need ant and javac to
regenerate the jar file (and mig and ncg, which are part of nesc and
Hi Rafael
I don't have a ttyUSB1 on /dev/ only USB0. Is this a problem with my computer?
Thanks for your help so far
Luís Pereira
On 26/10/2011, Rafael de Oliveira Costa rafaeldeoliveiraco...@gmail.com wrote:
I will say something like Igglezakis. here serial works on ttyUSB1 and to
deploy
Hi Luís,
The FTDI drivers actually only create one serial port (the others were
probably thinking of the X-Bow MIB520 programming boards for the
Mica-series of motes).
The telosa platform is distinct from the telosb / tmote platform. If you
really have a telosa platform, maybe you could try
2011/10/25 Luís Pereira luispereira@gmail.com
Hi Rafael
I don't have a ttyUSB1 on /dev/ only USB0. Is this a problem with my
computer?
No.
I'm not sure what the other guy is using and why he is saying that an FTDI
interface results in two USB devs in the /dev/ttyUSB* tree but that is
Hi Luís,
I just had a look. It appears that telosa, telosb and tmote all use the
same baud rate, and that the platform name for telosa on TinyOS is just
telos (not tmote).
TelosA and TelosB/Tmote are similar, but not identical. It is entirely
possible that if you compile your programs for the
Hi Urs,
I am already using the telos platform. I post a command with tmote because I
read in some other question to try that way, and it doesn't make any
difference. I am trying to communicate with the mote using the
apps/tests/TestLed/Multiled program and I got this outputs:
MAKE TELOS:
mkdir
Hi Luis,
I had similar problems with telosa motes, and I don't know what caused
the problem, or how to resolve it, but I found a workaround.
Unofrtunatly it only worked on windows (xp)+cygwin:
Before opening the serial port with the tinyos java apps, I opened it
with rxtx
Hi Bíró,
Ok I will try to open the usb port with rxtx to see what happen..can you
send me what program you use to do that?
Thanks for your help
Luís Pereira
2011/10/26 Bíró András bband...@gmail.com
Hi Luis,
I had similar problems with telosa motes, and I don't know what caused
the
Sorry, those codes are lost, but it's easy to simplify an rxtx
example. Acutally, you only need to list the available serial ports,
since it tries to open them. And again: it only worked on windows.
Andris
2011/10/26 Luís Pereira luispereira@gmail.com:
Hi Bíró,
Ok I will try to open the
Hi guys,
Following that tip Bíró gave, i found a little program that uses rxtx to
find and open the usb port. When I run the program it find the door and my
mote stop blink again. I'm starting to think that the problem is with java
and usb ports.
I have a little program in C that reads data from
Hi All,
I'm starting a project at my school using telosa. I'm trying to do the
tutorial and i got stuck in lesson 4.
I can't receive data from telosa. When I try java.net.tinyos.tools.Listen
or java TestSerial or even the serialForwarder programs it shows me the
resynchronizing message and
Hi Luís,
please show what command did you executed.
Rafael de Oliveira Costa, M.Sc. Student
PPGI - UFRJ
Rio de Janeiro, RJ, Brazil
http://www.labnet.nce.ufrj.br
The first step to getting the things you want out of life is this : decide
what you want, Ben Stein
2011/10/24 Luís Pereira
Hi Rafael,
well when I run motelist i have:
Reference Device Description
-- -
M4MWCK4F /dev/ttyUSB0 Moteiv Telos (Rev A 2004-04-27)
Then i run:
java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:tmote
Try
java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB1:tmote
instead.
FTDI creates 2 USB ports, one for reading and one for writing!
On 10/26/2011 12:48 AM, Luís Pereira wrote:
Hi Rafael,
well when I run motelist i have:
Reference Device Description
--
Hi Igglezakis,
Sorry but here only ttyUSB0 exist. I have no USB1.
By the way i'm using archlinux but i don't think that is the problem.
Luís Pereira
On Tue, Oct 25, 2011 at 23:07, Igglezakis Antonios aiggleza...@gmail.comwrote:
Try
java net.tinyos.tools.Listen -comm
I will say something like Igglezakis. here serial works on ttyUSB1 and to
deploy ttyUSB0
Rafael de Oliveira Costa, M.Sc. Student
PPGI - UFRJ
Rio de Janeiro, RJ, Brazil
http://www.labnet.nce.ufrj.br
The first step to getting the things you want out of life is this : decide
what you want, Ben Stein
24 matches
Mail list logo