> 1. How can the ADC values of the motes be set using Tython ? The method simcore.comm.setADCValue() is what you want. In the doc/tython section is javadoc on the sim.script.reflect.Commands class which exports that method.
> 2. If a mote sends some data on the serial port, is it possible to > wait on that event (UARTMsgSent) and see what data was sent out ? It depends on what you mean by 'wait on that event'. You can certainbly set up an event handler for the UARTMsgSentEvent and execute script code based on that. However there's no interface to wait until an event occurs. You have to manage the event handlers and callback functions yourself. There are several examples of waiting for events in the pyscripts directory. A good example would be in pyscripts/callat.py, where the "CallIn" object schedules an event handler for an InterruptEvent and then calls a python function when that event occurs. > 3. What interface should the node use for the UART ? GenericComm or > HPLUART ? This is up to you, as far as Tython is concerned they are the same. However, I would say that GenericComm is the recommended way of doing this. -mike _______________________________________________ Tinyos-users mailing list [EMAIL PROTECTED] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
