Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-07 Thread Lei Tang
Thanks for you suggestion.Packetizer.java indicates the form of each packet should be : 7e packet type data bytes 1..n 16-bit crc 7e. So my packet does not violate it. I think the base mote assumes a packet from UART has the form of TOS_Msg. My problem is my mote received header of each packet

Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread Lei Tang
Thanks. But it doesn't work. If I send 7E 42 7D 5E 00 00 81 05 AA 07 44 08 11 38 40 7E, Msg-data is 40 00 00 00 00 at the base mote. And I found that Msg-data[0] is always the last CRC byte. Thanks anyway.Best,LeiOn 6/6/06, Sankar Gorthi [EMAIL PROTECTED] wrote:of course, i'm assuming you're

Fwd: Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread Sankar Gorthi
Yes. Although, I've programmed them with group ID 7D (default). This shouldn't matter as TOSBase simply reads the packet sent over the UART and substitutes the current group ID when transmitting. Quick doubt - are you framing a message AROUND this packet? I mean are you sending the packet 7E

Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread Sankar Gorthi
Yup, The code sends out a packet every ~1.5 seconds on the radio. A TOSBase mote connected to a PC should be able to pick it up. -shrug- You're welcome and please do keep me posted. Curious to say the least. Sankar. On Tue, 06 Jun 2006 23:26:02 -0500, Lei Tang [EMAIL PROTECTED] wrote:

Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-06 Thread David Gay
On 6/5/06, Lei Tang [EMAIL PROTECTED] wrote: I was using a general serial-port application to send data to the mote, because I want to have my own application to control motes. A suggestion: if you want to roll your own code, start by reading through the existing code which does what you want

[Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread jabdo
Hi Lei, Are u trying to send the packet to Micaz using serial Forwarder and Broadcast Inject. If not, What format are u using to send it??? Note: 10 represents the data length right?? so I think it should be 6 and not 10. Also, since you are sending the packet to the UART so the destination

[Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread Lei Tang
Hi, JuliaThanks for your reply.I was using a general serial-port application to send data to the mote, because I want to have my own application to control motes.My steps:Firstly, I created a data file with TOS_Msg type; then the application read it and sent data to the base mote through serial

Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread Sankar Gorthi
Lei, you're actually right. You need to write to the 7E address. Try sending this message: 7E42 7D5E 7D5D 05AA 0744 0811 3840 7E Sankar. On Mon, 05 Jun 2006 23:23:41 -0500, Lei Tang [EMAIL PROTECTED] wrote: Hi, Julia Thanks for your reply. I was using a general serial-port

Re: [Tinyos-help] Re: Packet format from PC to base mote through UART

2006-06-05 Thread Sankar Gorthi
of course, i'm assuming you're using a windows based PC and are using a generic serial port access software (MATLAB, java etc.) to write to the serial port. Sankar. On Mon, 05 Jun 2006 23:35:30 -0500, Sankar Gorthi [EMAIL PROTECTED] wrote: Lei, you're actually right. You need to