[ns] URGENT:: txtime = 0.0

2007-01-17 Thread annalisa.perrotta
Hi everybody! I'm using a new MAC protocol for wireless nodes, in ns2.28 . I need the transmission time information to decrease node's energy, at wireless-phy.cc. For this reason in MAC I set the txtime_ variable of the common header, before sending down the MAC control packets to PHY.

[ns] R: URGENT:: txtime = 0.0

2007-01-17 Thread annalisa.perrotta
Thank you for your reply! My Problem is that the value of the variable "double txtime_" in common header, that I compute, as (packet_length_in_bit / bandwidth_in_bit_per_second ), and set at MAC layer, with struct hdr_cmn *ch = HDR_CMN(p); ch->txtime()=tx_time(p); ( t

[ns] Energy; call from MAC to WIRELESSPHY

2007-02-27 Thread annalisa.perrotta
Does anybody know if it's possible to make a call, say from MAC, to a function in another target, say WIRELESS-PHY?? I got a "SEGMENTATION FAULT" The debbuger writes this: Program received signal SIGSEGV, Segmentation fault. 0x082f81c4 in typeinfo name for CMUTrace () (gdb) bt #0 0x082f81c4 i

[ns] I: initial energy of wireless node

2007-04-02 Thread annalisa.perrotta
Da: [EMAIL PROTECTED] Inviato: lun 02/04/2007 11.27 A: ns-users@isi.edu Oggetto: initial energy of wireless node Hy guys, what is a reasonable value to adding to: set opt(initialenergy) for implementing energy model in wireless network? I

[ns] NRTE: MAC - Routing dialogue

2007-06-22 Thread annalisa.perrotta
Hi everybody. I've a problem with the MAC protocol I'm using, that I developed (it wasn't inside ns)... when node mobility is 0.0, everything works... But when I set node mobility to a value greater then 0.0, the Routing Protocol (AODV) can't find a route any more. That is: everything works til