[Smac-users] Some change for micaz
Wei Ye
weiye at ISI.EDU
Fri Oct 7 15:25:14 PDT 2005
I'm glad you've tried to port S-MAC to MicaZ. At this time, I can only
give you some high-level advice on your code.
1) Try NOT to change SMACM. The porting should only happen at the
physical layer, e.g., the PhyRadioM and RadioControlM. So if there is
any future changes in SMACM, all platform will get the changes.
2) Current S-MAC does not require or use TimerM. Instead, it uses the
ClockSMAC component to provide the clock signal of 1ms/tick. If the CPU
clock speed on MicaZ is the same as that on Mica2 (and I think it is),
you can directly copy the file from platform/mica2/ to platform/micaz/.
3) If possible, don't change TimerM. I think you modified it from the
default TinyOS directory tinyos-1.x/tos/system/. This is for the same
reason as SMACM.
BTW, I subscribed you to smac-users mailing list. This message is also
CC'ed to the list.
Regards,
Wei
On Fri, 2005-10-07 at 12:01 +0800, zhangtao wrote:
> weiye,您好!
>
> I add some change for micaz, but don't know clearly whether this work
> well. I need advise from you. Thank you.
>
> By the way, I can't subscribe the maillist.
>
>
> important change:
>
> app/Makesmac: add micaz option
> tos/platform/micaz/SMACM: add a TIMER_INTERVAL representing
> TIMER_INTERVAL ms each Clock.fire. init is called only once
> tos/platform/micaz/PhyRadioM: send whole packet instead of byte by
> byte
> tos/platform/micaz/RadioControlM: only keep CarrierSense and
> RadioState.
> tos/platform/micaz/TimerM: do not erase mState when stopped
>
>
> 致
> 礼!
>
>
> zhangtao
> zt at dislab.nju.edu.cn
> 2005-10-07
More information about the Smac-users
mailing list