[Tinyos-help] HPLUSARTControl transmit timing

Bhavish Aggarwal bhavishaggarwal at gmail.com
Tue Apr 22 09:01:20 PDT 2008


Hi,

 I've connected 2 tmotes over the UART) expansion connector and am
 sending AM packets from one to the other. I'm using the
 HPLUSARTControl interface provided by HPLUSART0M to do this. The
 transmit function in this interface is byte by byte. So I have to send
 the entire AM packet byte by byte. I transmit one byte and then go
 into a busy wait till HPLUSARTControl .isTxEmpty() returns true. After
 this I send the next byte.

 The time taken for each byte to be transferred is around 1.2 ms (and
 for the whole AM packet is about 55 ms). This seems to be a very high
 value for transfer over wire. I analyzed it a bit further and found
 that the isTxEmpty() returns true after approx. 1.2 ms for each byte.

 Is there a way to reduce this time? Also, is there no event signaled
 when transmission is completed? There is a HPLUSARTFeedback interface
 but I could't find any implementation for it.

 Thanks,

 Bhavish


More information about the Tinyos-help mailing list