LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Simulation in aqua-sim (https://www.linuxquestions.org/questions/linux-newbie-8/simulation-in-aqua-sim-4175505970/)

Faiza Al-Salti 05-24-2014 08:57 AM

Simulation in aqua-sim
 
Dear all,

I'm developing a routing protocol for underwater sensor networks in Aqua-sim. I am trying to run the the tcl file but I'm getting this error:
INITIALIZE THE LIST xListHead

(_o17 cmd line 1)
invoked from within
"_o17 cmd port-dmux _o26"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o17" line 2)
(SplitObject unknown line 2)
invoked from within
"$agent port-dmux $dmux_"
(procedure "_o14" line 11)
(Node/MobileNode add-target-rtagent line 11)
invoked from within
"$self add-target-rtagent $agent $port"
(procedure "_o14" line 23)
(Node/MobileNode add-target line 23)
invoked from within
"$self add-target $agent $port"
(procedure "_o14" line 15)
(Node attach line 15)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 105)
(Simulator create-wireless-node line 105)
invoked from within
"_o3 create-wireless-node 0"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node 0"
invoked from within
"set node_(0) [$ns_ node 0]"

can anyone help me, please?

knudfl 05-24-2014 09:59 AM

Welcome to LQ.

Please attach your tcl file as file-name.tcl.txt .

Attachments : The paper clip tool in the 'Advanced Editor'.

-

Faiza Al-Salti 05-26-2014 11:50 AM

memory corruption when running a routing protocol in ns2
 
1 Attachment(s)
Thank you. I have solved the problem, but now I got a memory corruption problem.

I set some varaibles to some values but when i tried to use them, their values are changed to some strange values.

Hopefully, you can assist me to solve this problem.

knudfl 05-26-2014 01:13 PM

# 3 .

'mggr.tcl' line 35 :
set opt(rp) MGGR ;# Routing protocol

? Is MGGR a new routing protocol, that you have created ?

-

Faiza Al-Salti 05-26-2014 01:22 PM

Yes, that is my routing protocl.

knudfl 05-26-2014 05:24 PM

# 5 .

Please describe the "routing protocol MGGR".

And attach the code / upload the code to 'Google Docs,
if you want your mggr.tcl file tested.

-

Faiza Al-Salti 05-27-2014 01:30 AM

I'm sorry, I can not disclose the code because it will be my thesis.

I appreciate your intention to help me.

Thank you..

Faiza Al-Salti 05-27-2014 11:05 AM

The origin of the coordinates in aqua-sim
 
One more question, please:

Where does aqua-sim assumes the origin of xyz-coordinates, is it at the sea surface or at the bottom?

Thank you in advance

knudfl 05-28-2014 04:11 PM

# 8 .

Probably like shown in the other application from `obinet´ : Aqua-3D →
http://obinet.engr.uconn.edu/wiki/index.php/Aqua-3D
http://ubinet.engr.uconn.edu/aqua_pa...-1.0.0-src.tgz
→ Aqua3d-1.0.0-src.tgz

-

Faiza Al-Salti 05-29-2014 08:41 AM

i seems from aqua 3D that the origin is at the middle of the monitored volume (middle of the sea).

However, in vbf_example_6.tcl written by the develpers of aqua-sim, nodes are given positive values and within the range of the length, width and hight of the monitored volume.


All times are GMT -5. The time now is 02:16 AM.