Hi,

There is no "correct AM type" you just have to make sure that the receiver
and the sender are using the same AM_TYPE = 6.
Perhaps the problem is in your data size. It seems that you are trying to
send 10 * 8 = 80 bytes, whereas the default TOSH_DATA_LENGTH is 28. Try to
set it to a higher value:

CFLAGS += -DTOSH_DATA_LENGTH=115


Arik



On Mon, Dec 7, 2009 at 12:58, <[email protected]> wrote:

> Hi all,
>
> that is my problem:
> AM_TYPE = 6; that's what I used. This fits quite well for sending an
> Integer
> array[10].
>
> Now, I send a array[10] full of structs whereas one struct refers to
>
> {
>    uint_16 node_id;
>    uint_16 pkt_counter;
> }
>
> The problem is, that I do not receive any packet at the bases stations.
>
> I think, it is because of the wrong AM_TYPE. The TinyOS Tutorial describes,
> that
> the AM_TYPE refers to the kind of packet that is sent.
>
> So, how can I determine, which AM_TYPE is the right for me?
>
> I would be very happy, to get some hints :)
>
> Thanks in advance,
> Martin
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Best Regards,
Arik Sapojnik
[email protected]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to