[ns] [Very Urgent] Error of PUMA multicasting in multiple radio multiple channel network

2011-04-25 Thread Ejaz Ahmed Awan


Dear All,
I am facing problem in simulating the PUMA in multiple radio multi channel
environment. I have ported PUMA multicasting patch for wireless to ns-2.31.
Its working well when i ran its example. I have also integrated the crcn
patch for cognitive radio network in ns-2.31 which is also working well on
its own example. Now i am writing my own example for checking the PUMA
performance over crcn mac. It is not working and giving an error.
-
can't set chan(0): variable isn't array
while executing
set chan($indexch) $ch
(procedure _o3 line 3)
(Simulator add-channel line 3)
invoked from within
$ns_ add-channel $i $chan_($i)
(for body line 3)
invoked from within
for {set i 0} {$i  $val(channum) } {incr i} {
puts error is over here b4 channel
$ns_ add-channel $i $chan_($i)
puts error is over here after chan...

-
It is giving an error on add-channel function and pointing that can't set
chan(0): variable isn't array. But sir it does not give any error when it
run on crcn example.

Waiting for useful replies.
--
Ejaz Ahmed.

-- 
View this message in context: 
http://old.nabble.com/-Very-Urgent--Error-of-PUMA-multicasting-in-multiple-radio-multiple-channel-network-tp31469864p31469864.html
Sent from the ns-users mailing list archive at Nabble.com.



Re: [ns] [Very Urgent] Error of PUMA multicasting in multiple radio multiple channel network

2011-04-25 Thread Mubashir Rehmani

Hi Ejaz,

In fact, the CRCN patch has an array that maintains the number of channels
at the routing layer. When you run any other routing protocol except the
aodv or wcett provided with the CRCN patch, it will give you an error.
Because, other protocols are not configured to work with multiple channels.

Thanks
Regards

Mubashir Husain Rehmani
Lip6, UPMC-Sorbone Universités,
Paris, France

On 25 April 2011 11:16, Ejaz Ahmed Awan ime...@gmail.com wrote:



 Dear All,
 I am facing problem in simulating the PUMA in multiple radio multi channel
 environment. I have ported PUMA multicasting patch for wireless to ns-2.31.
 Its working well when i ran its example. I have also integrated the crcn
 patch for cognitive radio network in ns-2.31 which is also working well on
 its own example. Now i am writing my own example for checking the PUMA
 performance over crcn mac. It is not working and giving an error.

 -
 can't set chan(0): variable isn't array
while executing
 set chan($indexch) $ch
(procedure _o3 line 3)
(Simulator add-channel line 3)
invoked from within
 $ns_ add-channel $i $chan_($i)
(for body line 3)
invoked from within
 for {set i 0} {$i  $val(channum) } {incr i} {
 puts error is over here b4 channel
 $ns_ add-channel $i $chan_($i)
 puts error is over here after chan...


 -
 It is giving an error on add-channel function and pointing that can't set
 chan(0): variable isn't array. But sir it does not give any error when it
 run on crcn example.

 Waiting for useful replies.
 --
 Ejaz Ahmed.

 --
 View this message in context:
 http://old.nabble.com/-Very-Urgent--Error-of-PUMA-multicasting-in-multiple-radio-multiple-channel-network-tp31469864p31469864.html
 Sent from the ns-users mailing list archive at Nabble.com.




-- 
Mubashir Husain Rehmani