Hello everybody. I'm new in this list and new with tinyOS.
I'm starting learning TinyOS 2.x and I've a problem a couple of days ago.
I'm Trying to make a serial echo with interface SerialByteComm, but I've some
problems.
After a lot of tries, I've compiled my example without problems, but id doesn't
work.
Anyone can help me please?
This is the code I've compiled:
echoSerialC.nc
#include "Serial.h"
module echoSerialC
{
uses {
interface Leds;
interface Boot;
interface SerialByteComm;
}
}
implementation
{
event void Boot.booted()
{
call Leds.led0On();
}
async event void SerialByteComm.get(uint8_t data){
call Leds.led1Toggle();
call SerialByteComm.put(0x41);
while (call SerialByteComm.put(data) != SUCCESS);
}
async event void SerialByteComm.putDone(){}
}
echoSerialAppC.nc
#include "Serial.h"
configuration echoSerialAppC
{
}
implementation
{
components MainC, echoSerialC, LedsC;
echoSerialC -> MainC.Boot;
echoSerialC.Leds -> LedsC;
}
Led 0 turns on, but Led 1 never toggle.
Thanks and sorry for my bad englis :-S
--
Nunca confies en un S.O. del que no tienes código fuente ;-)
--------------------------------
Javier Almansa Sobrino.
Ingeniero Técnico en Sistemas.
Grupo de Investigación ARCo.
Escuela Superior de Informática. Ciudad Real
Tel: (+34)926 29 53 00 Ext: 3705
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help