Be careful that the addr is the node id or something else.
When reading from the UART it will be generall 76 (which is the UART address), but when writing the data, the genericcomm (AMStandard will not take the TOS_UART_ADDR . On 11/30/06, Brian Parfitt <[EMAIL PROTECTED]> wrote:
I'm having some trouble getting an application I am writing to speak with a mica2 mote over the UART interface. I am using MS .NET and can read data packets from the mote just fine... When I send a packet to the mote, I am not able to get the mote to respond. I have confirmed that the application running on the mote is working by sending messages with the SerialForwarder... Very simply, I turn on an LED when a UART message is received on the mote. Using some c# code as below, I'm not able to get the same response... Any thoughts or ideas? I have torn apart the SerialForwarder app looking for some special flow or control data I may have mised, but when it gets down to the byte level I am sending the same packet as SF... com = new SerialPort(); com.ReadTimeout = 3000; com.WriteTimeout = 3000; com.BaudRate = 57600; com.DataBits = 8; com.StopBits = System.IO.Ports.StopBits.One; com.Parity = Parity .None; //load the iPacket objec with some message data... //details omitted... //Now write the data to the com port. com.Write(iPacket.RawPacketData,0,iPacket.RawPacketData.Length); //Note, I have checked to make sure that iPacket has an appropriate length and data paylod.. i.e. I have not done something *really really *dumb like send an empty object. I'm using the same SerialPort object to read from so I suspect that my properties on the port are correct as I am able to do some things with the connection... Any hep or tips from people who have hadd success doing tis would be great! Thanks and regards, Brian _______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
-- Phani Kumar Arava Grad Student 1560 Worthington Street Department Of Computer Science Columbus Ohio 43201 2015 Neil Avenue Ohio State University Columbus Ohio-43210 Contact: (614)-286-2618 URL : www.cse.ohio-state.edu/~arava/ mailto: [EMAIL PROTECTED],[EMAIL PROTECTED], [EMAIL PROTECTED]
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
