Hello Alejandro, Could you explain to me again what do you wan to do exactly ? If you only want the mote to read and send back the temperature values.
All you have to do is define a nx_struct (e.g. nx_struct Temp_Msg) structure which contains temperature value e.g. uint16_t temp. In your readDone() event, assign the temperature value to temp attribute and send it to base station. And your base station sends received temperatures back to PC using SerialActiveMessageC component. When you compile your program, MIG will translate your nex_struct into a Java class and you may read RAW temperature values in your console using net.tinyos.tools.MsgReader: java net.tinyos.tools.MsgReader TempMsg -comm serial@/dev/ttyUSB0:telosb Best regards - Yanbo > Dear Yanbo. > > I've seen something in the TutorialMote-PC about serial communication and > SerialForwarder. > > But what do you recommend to me, in order to store the sensor values in > MySQL DB? or is indistinct? > > Thanks in advance, > > Alejandro. > >> Hello, >> >> I've nevered tryed Listen. >> I prefer net.tinyos.tools.MsgReader which shows me all attributes' >> values in hexadecimal of received messages. >> Have you tried this tool ? >> >> Best regards. >> >> - Yanbo >> > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
