huh....not sure what or why your PFLAGS is including mica2 stuff
when you seem to be building for micaz. That is probably the source
of your make error. I did not make any changes to the standard
contrib/xbow makefiles for either platform, so if you did,
maybe you shouldn't. I don't think you need an explicit ref
to the platform dir, as necc has many and nefarious ways of
including code in the TOS tree.
What you were supposed to find while searching was one of many
references to my posted code that uses ACKs on mica2,z which I
was too lazy to look up yet again (2L2LUYA):
http://www.etantdonnes.com/Motes/robocode.tar.gz
This is all assuming TOS1.x not T2, of course.
Beyond that, I'm not much help.
MS
Heo Heo wrote:
Thank you very much, Mike.
I did a Google on your name and ACK and found some related topics. So
I tweaked the code but I got some a compiler error:
MyComponent.nc:9: component CC2420RadioIntM not found
C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/HPLPowerManagementM.nc:42:
expected component `CC2420RadioIntM', but got component
'HPLPowerManagementM'
I guess the error is more related to my make file.
The makefile I got from Crossbow for my micaZ is:
COMPONENT=MyComponent
XBOWROOT=%T/../contrib/xbow/tos
PFLAGS= -I$(XBOWROOT)/platform/mica2
include ../MakeXbowlocal
include $(TOSROOT)/tools/make/Makerules
It worked some Blink, etc. But if I change .../platform/mica2 to
/platform/micaz, I got a lot of errors.
Could you give me some hints on this issue.
Thanks again.
Heo
*/Michael Schippling <[EMAIL PROTECTED]>/* wrote:
Assuming you are using TOS 1.x, the TOS_Msg.ack field will be != 0
in sendDone() if an ACK is received from the destination mote. When ACKS
are enabled the transmitter waits until an ACK reception times out
before
calling sendDone(). Search back on this list with my name and "ACK"
to see
massive amounts of (questionable) advice...
A good search starting point is:
http://www.moteiv.com/community/TinyOS_Information
MS
Heo Heo wrote:
> Hui,
>
> Thanks for your answer.
>
> So I call the MacControl.enableAck() to enable ACK mode. But from
the
> sending mode, how do I check if the packet has been sent
successfully ?
> Like you said, sendDone is called after the packet is placed in the
> queue, not after ACK is received.
>
> I am sorry but I am completely new to TinyOS. I would appreciate
it if
> you could give me detailed instructions.
>
> Thanks again,
> Heo
>
>
>
>
>
>
> */Hui KANG /* wrote:
>
>
> The sendDone function only indicates that the message is put into the
> send stack, which done not necessarily mean that the message is
received
> by the other node.
> I think you should use MacControl.enableAck to receive the
> acknowledgement.
>
> Regards,
> Hui
>
> On 1/9/2007, "Heo Heo" wrote:
>
> > I was trying to use interface SendMsg of GenericComm to send a
> message (based on the Oscilloscope example). This interface provides
> 2 functions:
> >
> > - send(Destination, Size, Msg);
> > - sendDone(TOS_MsgPtr sent, result_t success)
> >
> > I thought I would be able to check if the packet has been sent
> successfully by looking at the "success" field of sendDone. However,
> when I test it by having a mote UNICAST to a different one (which I
> intentionally turned OFF), it surprises me that sendDone always
> provides me a success that equals SUCCESS. By saying UNICAST, I
> meant I put the address of the other mote as destination address,
> instead of using TOS_BCAST_ADDR.
> >
> > So, what is wrong with this, and what is the best way to check if
> a message has been successfully sent or not.
> >
> > Thanks a lot for any help.
> > Heo
> >
> >
> > __________________________________________________
> >Do You Yahoo!?
> >Tired of spam? Yahoo! Mail has the best spam protection around
> >http://mail.yahoo.com )
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
>
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help