Re: [Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-19 Thread Michael Schippling
Try digging through the DBG() code and see how they get to stdout, might be as simple as printf() I'd then suspect that there is some similar way you could use the moral equivalent of getline() or scanf() to get input. I'm not even sure what language the TOSSIM stuff is in so I can't help

Re: [Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-19 Thread Chan kenniel
Dear Michael, Is it possible to get the data from DBG(), if so, that would be definitely awesome. But I don't know how to get data from stdin and stdout, could you please give me some help on this? Thanks a lot. Best regards, Kenneth On 10/19/07, Michael Schippling [EMAIL PROTECTED] wrote:

Re: [Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-18 Thread Chan kenniel
Dear Michael, Actually what I need to is sending some bytes to the simulator, not on the mote, coz we are trying to do some testing job on some nesC programs. More specifically, we first try to instrument some faults to some nesC programs, then we want to run it in the simulator coz we want

[Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-17 Thread Chan kenniel
Dear all, Currently, I have successfully use the nesC program Oscilloscope to send TOS_Msg to TOSSIM, and this is done by calling the UARTSend.send function in interface BareSendMsg. However, what I am trying to do is creating my own send function that is written in C program, that means I have

Re: [Tinyos-help] Problems about sending TOS_Msg to serial port

2007-10-17 Thread Michael Schippling
I don't know from TOSSIM, but on real motes the low-level code starts around UARTM.nc. I don't know if there is an equivalent for the simulator as it looks like your packet_sim.c file plugs in at a higher level. But I'm a bit unclear on the purpose. Do you want to write a mote program that