If it was me, I would try to get the Java stuff working,
but then I'm mostly a Java kinda guy this millennium...
The Java version of serialforwarder does pass messages in
both direction, so I assume the C version is able to do
the same. But, IMHO, SF is an unnecessary complication,
and is only useful if you want to access the base-station
from some other network node.
There seem to exist listen and listenraw C examples which
could get you closer to the UART in question. With some
reverse engineering of the working Java code, like:
tools/java/net/tinyos/tools/Send.java
you should be able to figure out the format for the
message send. Or look at the raw output from a receive
and emulate the structure, since they are the same
coming and going. Then it's a matter of calculating
the CRC and doing a write() to the UART port.
Easier said than done, I know...
MS
walid hamdi wrote:
The problem is in fact not with java, but with the
serialforwarder, i mean i tried it a long time ago and
it does not function:(
So i used the serial forwarder of C /src/sf and since
that time, i´ve forgotten java totally... Since now,
where I must use the UART to send packets...
Any kind of Help?
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
_______________________________________________
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