Hi Zainab, If I understand your description correctly (sorry, I am not too familiar with the BaseStation application), the LEDs indicate that one BaseStation is sending packets, but the other is not receiving them. In that case I don't think this is a problem with the baud rate. Maybe there is a problem with NodeIDs? Could you give us the exact commands you are using to send messages and to listen for them so that we could try to replicate your setup?
If you need to send at baud rate different from the default one you'll need indeed to change the program. hardware.h seems to be the only place where this can be changed (which is not nice as it would change it for every node you'll program, not just for the one where you need a different baudrate). Also I'm not sure the current TinyOS implementation supports anything other than 57600bps (Mica2, MicaZ, Iris) and 19200bps (Mica2Dot). You might want to have a look at $TOSROOT/tos/chips/atm128/Atm128UartP.nc (and in particular at lines 70-73). Why do you need a different baudrate? The baudrate defines the length of the individual bits on the serial port. You are not required to send a sequence of bytes without pauses, you can just wait in between. I also think that TinyOS waits for an acknowledgment when sending, so if you need time to process the received data before the mote should send the next packet, you can just delay the acknowledgment. Cheers, Urs On 12/3/10 11:01 PM, Zainab Noorbhaiwala wrote: > > Hi All, > I am using Basestation for one of my applications. I have two motes with > Basestation running on them and I use Testserial to send serial data to > one of the motes and Listen on the other mote to test what I receive . > But the red LED blinks indicating the packets are dropped and I don't > see anything on Listen. I'm using mica2 motes and set the radio > frequency 916400000. > When I program one mote with blinktoradio and the other with basestation > it runs fine.(radio frequency 916400000) > What could be the problem? I now need to send serial data at 2400bps. Do > I need to change the baud rate in the platform-specific file of mica2 > (hardware.h)? > Any help would be greatly appreciated! > Thanks, > Zainab _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help