Re: [Tinyos-help] UART ReceiveMsg

2007-04-23 Thread Inderjit Singh
Thanks for the suggestions lad. Very appreciated. Most of them I have already thought of. The code was only written to test that the communication is working. That's it. But It's good to be confirmed on the issue. Thanks. However, Michael, what do you mean by you need to leave the 7E's alone as

[Tinyos-help] UART ReceiveMsg

2007-04-19 Thread Inderjit Singh
Thanks for the suggestions lad. Very appreciated. Most of them I have already thought of. The code was only written to test that the communication is working. That's it. But It's good to be confirmed on the issue. Thanks. However, Michael, what do you mean by you need to leave the 7E's alone as

Re: [Tinyos-help] UART ReceiveMsg

2007-04-19 Thread Michael Schippling
I think the sync bytes are covered in the octavetech doc. Each message is preceeded and succeeded (bracketed) by a 0x7E byte so the receiving code can figure out where it is in the stream. All other 7E's in the message are escaped, which at least triples the complicatedness of the system. But it

Re: [Tinyos-help] UART ReceiveMsg

2007-04-18 Thread Inderjit Singh
Thanks Ben, I tried something very simple: 1. I get the byte stream from usb sent from the TMote like: 7e 42 xx xx xx xx 7e 2. I remove the 7e from the stream and send it back as it is (42 xx xx xx xx). But I still don't get it. C/C++ should be able to handle this no? Is there any doc on

Re: [Tinyos-help] UART ReceiveMsg

2007-04-18 Thread Michael Schippling
I think you need to leave the 7E's alone as well. If it's going to GenericComm, the full message should be bracketed with the sync bytes. If that doesn't work it may be due to having to swap a source address or something... Structure alignment shouldn't be a problem if you are dealing with a

RE: [Tinyos-help] UART ReceiveMsg

2007-04-16 Thread Benjamin Madore
I noticed that your using C++ and not C looking at the message again. On Wed, April 11, 2007 2:03 pm, Ben Buckner said: I have trouble sending msg from laptop (using c++) code to tmote. All the code is at the bottom. I have no problem reading the data from the serial but sending it back

Re: [Tinyos-help] UART ReceiveMsg

2007-04-13 Thread Inderjit Singh
:[EMAIL PROTECTED] Sent: Thursday, April 12, 2007 2:46 AM To: Ben Buckner Subject: Re: [Tinyos-help] UART ReceiveMsg Thanks Ben, I tried something very simple: 1. I get the byte stream from usb sent from the TMote like: 7e 42 xx xx xx xx 7e 2. I remove the 7e from the stream and send it back

Re: [Tinyos-help] UART ReceiveMsg

2007-04-12 Thread Inderjit Singh
Thanks Ben, I tried something very simple: 1. I get the byte stream from usb sent from the TMote like: 7e 42 xx xx xx xx 7e 2. I remove the 7e from the stream and send it back as it is (42 xx xx xx xx). But I still don't get it. C/C++ should be able to handle this no? Is there any doc on

[Tinyos-help] UART ReceiveMsg

2007-04-11 Thread Inderjit Singh
Hi, I have trouble sending msg from laptop (using c++) code to tmote. All the code is at the bottom. I have no problem reading the data from the serial but sending it back dooesn't seam to work. Anyone knows why? Thanks. Indy CODE :nesC and tinyOS configuration TimeSync { } implementation {

RE: [Tinyos-help] UART ReceiveMsg

2007-04-11 Thread Ben Buckner
Hi, I have trouble sending msg from laptop (using c++) code to tmote. All the code is at the bottom. I have no problem reading the data from the serial but sending it back dooesn't seam to work. Anyone knows why? Thanks. Indy [...] memcpy(output_buffer, msgOUT, sizeof(msgOUT)); Out