Perhaps you forgot to wait for the SendDone event between successive sends and just the first one got in the air?
 
    Harri


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of prajakta choudhari
Sent: Wednesday, May 17, 2006 3:03 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: [Tinyos-help] Receiving packets from the base station

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

Reply via email to