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
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
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
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
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
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
:[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
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
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
{
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
10 matches
Mail list logo