Hi,

For the base I do not know, I use SerialActiveMessageC as explained into the
tutorial 4.
But I use the serial on my Iris mote so maybe it could help you :

configuration :

components PlatformSerialC;
MyModule.UartControl -> PlatformSerialC;
MyModule.UartStream  -> PlatformSerialC.UartStream;
MyModule.UartByte    -> PlatformSerialC.UartByte;

module :

async event void UartStream.sendDone( uint8_t* buf, uint16_t len, error_t
error ) {}
async event void UartStream.receiveDone( uint8_t* buf, uint16_t len, error_t
error ) {}
async event void UartStream.receivedByte( uint8_t byte ) {}


Regards,
Fabrice

On 18 August 2010 20:08, Xavi Colomer <[email protected]> wrote:

> I'm with the same problem, but I find these interface: ReceiveBytePack:
>
>
> http://www.tinyos.net/tinyos-2.x/doc/nesdoc/shimmer/ihtml/tos.lib.serial.ReceiveBytePacket.html
>
> But I don't know how declare that on my configuration file. Somebody did
> use that interface?
>
> 2010/8/18 Xavi Colomer <[email protected]>
>
> Hi people,
>>
>> I need to send data from matlab to my base through serial port. I take
>> data to serial port but I don't know what interface use to take that data
>> from serial port. Any suggestions?
>>
>> Thanks in advance.
>>
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to