This reminds me about a bug in the original wpan implementation. Not
sure if it is fixed in Iyappan patch as I am using ns-2.29.

In the method:
bool CsmaCA802_15_4::canProceed(double wtime, bool afterCCA)

The following declaration exists:

UINT_16 t_bPeriods,t_CAP;

For large BO/SO values, UINT_16 is insufficient. I replaced it with
UINT_32 and many problems with large BO/SO values were resolved. I used
to get poor delivery ratio but now it is reasonable.
I have no idea whether this has anything to do with your problem, but
you might want to give it a try. There is a good chance it does. Make
sure you update the type casts related to these two variables in this
method, too.

- Ahmad


On Thu, 22 Mar 2007 10:47:37 +0100
Stefano Busanelli <[EMAIL PROTECTED]> wrote:

> 
> Hi all,
> 
> I'm using ns-allinone-2.31 package, that includes 802.15.4
> implementation made by Zheng subsequently patched by Iyappan.
> 
> If I set to 14 both Beacon Order (BO) and Superframe Order (SO) values
> of a generic device (not coordinator), ns returns this error message:
> 
> <!>[0.300000](node 1) unable to start as a device: active channel scan
> failed -
> 
> This happens using scss methods and independently from the values
> assumed by others flags, like "assoPermit" or "isFFD".
> 
> Instead if I set BO=14 and SO=13, all works well.
> 
> Am i making some mistakes or the "legal" pair (BO=14,SO=14) is not
> admitted in current implementation of 802.15.4?
> 
> I'm looking forward to receive your prompt reply.
> 
> Best regards
> 
> Busanelli Stefano
> 

Reply via email to