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:

Yes, I sent the packet "7e....7e"directly. I was using MATLAB and fwrite()
function.

Thanks for your code, although it doesn't work on my platform. I'm using
micaz. Is that just to send messages?

I will keep trying to figure it out.

Thanks again.

Lei

On 6/6/06, Sankar Gorthi <[EMAIL PROTECTED]> wrote:

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 ... 7E directly to the serial port?
And if you're using MATLAB, could you use the fwrite() function rather
than the fprintf()?

How about writing a short bit of code to write stuff out to the UART of
the mote.

Tell you what - attaching the code: MessageSender, save the attachments in
a folder in tinyos-1.x/apps/(folder name)/
and program one mote with it,

program another with TOSBase and check what the output on the serial port
of TOSBase is.

This should give you an idea about correct CRC packets etc, and maybe you
can find the correct package format to send.

Sankar.

On Tue, 06 Jun 2006 21:26:22 -0500, Lei Tang <[EMAIL PROTECTED]> wrote:

> I am not sure if i was using UARTNoCRCPacket. Is it a component? But, I
> do
> not think it's because the CRC check. At least Msg->length, type, addr
> are
> correct.
>
> I tried the packet you sent me, but i failed again. Msg->data = 25 00 00
> 00
> 00.
>
> Did you program the base mote with TOSBase?
>
> Thank you.
> Best,
> Lei
>
> On 6/6/06, Sankar Gorthi <[EMAIL PROTECTED]> wrote:
>>
>> well, that will obviously not work.
>>
>> the last two bytes in the packet i sent you were the CRC bytes (38 40)
-
>> they were specific to the message that was formed with group id 7D and
>> message address FF FF.
>>
>> however, you mentioned in a previous email that you aren't concerned
>> about
>> the CRC packet being sent to your mote. are you using UARTNoCRCPacket
or
>> something similar to read from/ write to the mote?
>>
>> with your group ID and message, the packet would be:
>>
>> 7E42 7D5E 0000 8105 AA07 4408 11B9 257E
>>
>> could you try that?
>>
>> I think your CRC packet isn't valid and that's why you don't recieve
>> anything on your mote.
>>
>> Sankar.
>>
>>
>>
>> On Tue, 06 Jun 2006 16:05:40 -0500, Lei Tang <[EMAIL PROTECTED]>
>> wrote:
>>
>> > 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,
>> > Lei



--
No opera plot can be sensible, for people do not sing when they are feeling sensible. - W. H. Auden

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to