AhnSeung / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
0 stars 0 forks source link

Wrong Packet Source and Destination Address Set for Mote Address over 255 in IRIS #138

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Write a program that will send back (reflect) received pkt from serial back 
to serial, and program it into a IRIS mote.
2. Use serialsend with sf to send any packet with 2-byte source address 
(address over 255) to a 2-byte destination address (address over 255).
3. Use seriallisten to display 'reflected' pkt.

What is the expected output? What do you see instead?
AMPacket.setDestination(message_t* amsg, am_addr_t Daddr) sets higher byte of 
source address to the same value of the higher byte of Daddr. 
AMPacket.setSource(message_t* amsg, am_addr_t Saddr) does not set the higher 
byte of Saddr.

What version of the product are you using? On what operating system?
TinyOS 2.x Google Code tinyos-main CVS checkout revision 5956 on Ubuntu 11.10.

Please provide any additional information below.
Platform used: IRIS

Original issue reported on code.google.com by xian...@gmail.com on 18 Jun 2012 at 6:18