> I am confused whether the problem is in the java code or in the TOSBase
Me too, but not just that, I'm not sure I understand what your system does.
Assuming that you are using some part of the TOS java tools that uses
Packetizer.java as the message transport, then all your messages
need to have the TOS_Msg format with escape codes and a correct crc.
It may be that your acknowledgment message doesn't fit that pattern,
I couldn't readily decode it anyway... You could try just returning
the msg received from the pc to see if that helps.
Also your use of "ACK" is a bit confusing. There is an internal
ACK mechanism, but I don't think that is what you are talking
about. If all you want to do is get an ack for messages sent
have a look at my robot code which uses the internal ACK:
http://www.etantdonnes.com/Motes/robocode.tar.gz
And just in case the TOS_Msg format is not as transparent as
it seems, this is a handy reference:
http://www.octavetech.com/pubs/TB5-01%20Deciphering%20TinyOS%20Serial%20Packets.pdf
Otherwise I think I'd have to see your code to figure it all out....
MS
prajakta choudhari wrote:
Hi all..
thank you Mr.Michael Schippling for u r previous response.
I was able to send a packet from pc to gateway.
We have modified TOSBase such that whenever it receives the request
packet from the pc it sends
back a response packet to the pc over uart and also broadcasts the
request packet on the radio.
The request packet that is send to the base station requires
acknowledgement.
7e 41 01 ff ff 09 7d 5d 02 00 00 08 bf 7e
But when we sent the packet,it is received by TOSBase,broadcasted by the
TOSBase over the radio , but the acknowledgement is not shown up on the PC.
The PC side tool is a java program using javax.comm apis ,to send and
receive packets over COM1 port.
If we send 5 request packets , only one acknowledge token is printed on
the screen along with the second packet's ack. token first 2 bytes.
Output on the pc side tool:
5 packets sent succesfully to gateway
7e 40 0f ed 73 7e 7e 40
I am confused whether the problem is in the java code or in the TOSBase
Thank you
--
-------------------------------------
-------------------------------------
Regards,
Prajakta Choudhari,
Project Engineer,
------------------------------------------------------------------------
_______________________________________________
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