please help me

136 views
Skip to first unread message

Manojkumar Annamraju

unread,
Feb 3, 2012, 3:44:22 AM2/3/12
to omnetpp
hi alfonso,

i am getting following error when i run the project .please
tell me the reason



<!> Error in module (OLSR)
Net802_11olsrprotocol.adhocHost[0].manetrouting (id=18) during network
setup: Wrong value `prefix("wlan")' for parameter
`Net802_11olsrprotocol.adhocHost[0].manetrouting.interfaces': function
`prefix()' (with 1 args) not found (Define_NED_Function() or
Define_NED_Math_Function() missing from C++ code?).


Simulation terminated with exit code: -1073741819
Working directory: C:/finalproject/omnetpp-4.2.1/samples/Net802_11OLSR
Command line: c:/finalproject/omnetpp-4.2.1/bin/opp_run.exe -r 0 -u
Cmdenv -c General -n src;simulations;../inetmanet-2.0/examples;../
inetmanet-2.0/src -l ../inetmanet-2.0/src/inet omnetpp.ini

Environment variables:
OMNETPP_ROOT=c:/finalproject/omnetpp-4.2.1
PATH=;C:/finalproject/omnetpp-4.2.1/samples/inetmanet-2.0/src;c:
\finalproject\omnetpp-4.2.1\bin;c:\finalproject\omnetpp-4.2.1\msys
\bin;c:\finalproject\omnetpp-4.2.1\mingw\bin;c:/finalproject/
omnetpp-4.2.1/ide/jre/bin/client;c:/finalproject/omnetpp-4.2.1/ide/jre/
bin;c:/finalproject/omnetpp-4.2.1/ide/jre/lib/i386;.;C:\finalproject
\omnetpp-4.2.1\msys\local\bin;c:\finalproject\omnetpp-4.2.1\mingw
\bin;C:\finalproject\omnetpp-4.2.1\msys\bin;c:\finalproject
\omnetpp-4.2.1\bin;c:\Program Files\Common Files\Microsoft Shared
\Windows Live;c:\Program Files (x86)\Common Files\Microsoft Shared
\Windows Live;c:\windows\system32;c:\windows;c:\windows
\System32\Wbem;c:\windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files\Lenovo\Bluetooth Software\;c:\Program Files\Lenovo\Bluetooth
Software\syswow64;c:\Program Files (x86)\Windows Live\Shared;c:
\Program Files\Java\jdk1.7.0_02\bin;c:\project\omnetpp-4.2\bin;d:
\manoj@backup\manoj@education\manoj@projec materials\inetmanet-
inetmanet-b381c9e\src;c:\project\omnetpp-4.2\bin;c:\project
\omnetpp-4.2\msys\bin;c:\project\omnetpp-4.2\mingw\bin;c:\project
\omnetpp-4.2\ide\jre\bin\client;c:\project\omnetpp-4.2\ide\jre\bin;c:
\project\omnetpp-4.2\ide\jre\lib\i386;.;c:\project\omnetpp-4.2\msys
\local\bin;c:\project\omnetpp-4.2\mingw\bin;c:\project\omnetpp-4.2\msys
\bin;c:\project\omnetpp-4.2\bin;c:\Program Files\Common Files
\Microsoft Shared\Windows Live;c:\Program Files (x86)\Common Files
\Microsoft Shared\Windows Live;c:\windows\system32;c:\windows;c:
\windows\System32\Wbem;c:\windows\System32\WindowsPowerShell\v1.0\;c:
\Program Files\Lenovo\Bluetooth Software\;c:\Program Files\Lenovo
\Bluetooth Software\syswow64;c:\Program Files (x86)\Windows Live
\Shared;c:\Program Files\Java\jdk1.7.0_02\bin;c:\anilproject
\omnetpp-4.2\bin;.;c:\finalproject\omnetpp-4.2.1\ide;
OMNETPP_IMAGE_PATH=c:\finalproject\omnetpp-4.2.1\images



the ned file is:

package net802_11olsr.simulations;


import inet.networklayer.autorouting.ipv4.FlatNetworkConfigurator;
import inet.nodes.inet.AdhocHost;
import inet.world.radio.ChannelControl;


@license(LGPL);
//
// TODO documentation
//
network Net802_11olsrprotocol
{
parameters:
int numHosts;
submodules:
adhocHost[numHosts]: AdhocHost {
@display("p=107,103");
}
channelControl: ChannelControl {
@display("p=51,42");

// @display("p=60,50;i=misc/sun");
}
// flatNetworkConfigurator: FlatNetworkConfigurator {
// @display("p=108,35");
// }
}


the configuration file is:

[General]
network = net802_11olsr.simulations.Net802_11olsrprotocol
sim-time-limit = 200s
cmdenv-express-mode = true
tkenv-plugin-path = ../../../etc/plugins

**.numHosts = 10
**.adhocHost[*].routingProtocol = "OLSR"
**.manetrouting.OLSR_HELLO_INTERVAL = 2s
**.manetrouting.OLSR_TC_INTERVAL = 5s
**.manetrouting.OLSR_MID_INTERVAL = 5s
**.manetrouting.OLSR_REFRESH_INTERVAL = 2s
**.adhocHost[*].numExtInterfaces = 0
**.adhocHost[*].numRadios = 0
**.adhocHost[*].mobilityType = "MassMobility"
**.adhocHost[*].routingFile = ""
**.adhocHost[*].IPForward = true
**.adhocHost[*].numTcpApps = 0
**.adhocHost[*].numUdpApps = 0
**.adhocHost[*].tcpType = "TCP"
**.adhocHost[*].udpType = "UDP"
#**.channelControl.coreDebug = false
**.channelControl.pMax = 20mW
**.channelControl.sat = -110dBm
**.channelControl.alpha = 2
**.channelControl.carrierFrequency = 2.4GHz
**.channelControl.numChannels = 1
**.channelControl.propagationModel = "FreeSpaceModel"
**.mobility.changeInterval =uniform(1s,2s)
**.mobility.changeAngleBy = uniform(0deg,2deg)
**.mobility.speed = normal(3mps,2mps)
#**.manetrouting.excludedInterfaces = ""
#**.manetrouting.interfaces =
**.manetrouting.usetManetLabelRouting = true
#**.manetrouting.useICMP =
#**.manetrouting.setICMPSourceAddress =
**.manetrouting.manetPurgeRoutingTables = true
**.manetrouting.autoassignAddressBase = "10.0.0.0"
**.manetrouting.Willingness = 3
**.manetrouting.Hello_ival = 2
**.manetrouting.Tc_ival = 5
**.manetrouting.Mid_ival = 5
**.manetrouting.use_mac = 0
**.manetrouting.UseIndex = false
**.manetrouting.reduceFuncionality =false
**.mac.bitrate = 54Mbps
**.radio.bitrate = 54Mbps
**.mac.promiscuous =false
#**.mac.address =
#**.mac.duplexMode =
#**.mac.mtu =
#**.ext[*].filterString =
**.mobility.debug = false
**.mobility.constraintAreaMinX = 0m
**.mobility.constraintAreaMinY = 0m
**.mobility.constraintAreaMinZ = 0m
**.mobility.constraintAreaMaxX = 1000m
**.mobility.constraintAreaMaxY = 1000m
**.mobility.constraintAreaMaxZ = 0m
**.mobility.updateInterval = 0.1s
**.mobility.initialX = uniform(0m,1000m)
**.mobility.initialY = uniform(0m,1000m)
#**.mobility.initialZ =
**.mobility.startAngle = uniform(0deg,360deg)
**.mobility.initFromDisplayString = true
**.ip.procDelay = 0s
**.ip.timeToLive = 32
**.ip.multicastTimeToLive = 32
**.ip.fragmentTimeout = 60s
**.ip.forceBroadcast = false
**.arp.retryTimeout = 1s
**.arp.retryCount = 3
**.arp.cacheTimeout = 120s
**.arp.globalARP = false
**.arp.silentDeletion = false
**.routingTable.routerId = "auto"
**.wlan[*].mgmtType = "Ieee80211MgmtSTA"
**.mgmt.frameCapacity = 100
**.mac.maxQueueSize = 14
**.mac.basicBitrate = 2000000bps
**.mac.rtsThresholdBytes = 2346B
#**.mac.retryLimit =
#**.mac.cwMinData =
#**.mac.cwMinMulticast =
**.radio.channelNumber = 1
**.radio.carrierFrequency = 2.4GHz
**.radio.transmitterPower =20 mW
**.radio.thermalNoise = -110dBm
**.radio.sensitivity = -85dBm
**.radio.NoiseGenerator = ""
**.radio.pathLossAlpha = 2
**.radio.TransmissionAntennaGainIndB = 0dB
**.radio.ReceiveAntennaGainIndB = 0dB
**.radio.SystemLossFactor = 0dB
**.radio.TransmiterAntennaHigh = 1m
**.radio.ReceiverAntennaHigh = 1m
**.radio.sigma = 1
**.radio.nak_m = 1
#**.radio.K =
**.radio.usage_radio_idle = -1mA
**.radio.usage_radio_recv = -1mA
**.radio.usage_radio_sleep = -1mA
**.radio.usage_radio_send = -1mA
**.radio.drawCoverage = true
**.radio.refreshCoverageInterval = 0s
**.radio.snirThreshold = 4dB
**.queue.frameCapacity = 100
#**.queue.classifierClass =
**.tcp.advertisedWindow = 1043
**.tcp.delayedAcksEnabled = false
**.tcp.nagleEnabled = true
**.tcp.limitedTransmitEnabled = false
**.tcp.increasedIWEnabled = false
**.tcp.sackSupport = false
**.tcp.windowScalingSupport = false
**.tcp.timestampSupport = false
**.tcp.mss = 536
**.tcp.tcpAlgorithmClass = "TCPReno"
**.tcp.recordStats = true
**.tcp.sendQueueClass = ""
**.tcp.receiveQueueClass = ""
**.pingApp.destAddr = ""
**.pingApp.srcAddr = ""
**.pingApp.packetSize = 56B
**.pingApp.sendInterval = 1s
**.pingApp.hopLimit = 32
**.pingApp.count = 0
**.pingApp.startTime = 1s
**.pingApp.stopTime = 0s
**.pingApp.printPing = false
**.manetrouting.excludedInterfaces = ""
**.manetrouting.interfaces = prefix("wlan")
**.manetrouting.autoassignAddress = true
**.mac.address = "auto"
**.mac.duplexMode = true
#**.mac.mtu =
#**.ext[*].filterString =
#**.ext[*].device =
#**.adhocHost[*].numPcapRecorders =
#**.adhocHost[*].numSctpApps =
#**.adhocHost[*].sctpType =
#**.mobility.initialZ =
#**.networkLayer.proxyARP =
#**.pcapRecorder[*].verbose =
#**.pcapRecorder[*].pcapFile =
#**.pcapRecorder[*].snaplen =
#**.pcapRecorder[*].dumpBadFrames =
#**.pcapRecorder[*].moduleNamePatterns =
#**.pcapRecorder[*].sendingSignalNames =
#**.pcapRecorder[*].receivingSignalNames =
**.wlan[*].numOutputHooks = 0
#**.wlan[*].numInputHooks =
#**.agent.activeScan =
#**.agent.channelsToScan =
#**.agent.probeDelay =
#**.agent.minChannelTime =
#**.agent.maxChannelTime =
#**.agent.authenticationTimeout =
#**.agent.associationTimeout =
#**.agent.startingTime =
#**.agent.default_ssid =
#**.mac.retryLimit =
#**.mac.cwMinData =
#**.mac.cwMinMulticast =
#**.radio.K =
#**.eth[*].csmacdSupport =
#**.eth[*].useSNAP =
#**.eth[*].macType =
#**.eth[*].queueType =
#**.eth[*].numOutputHooks =
#**.eth[*].numInputHooks =
#**.queue.classifierClass =
#**.ppp[*].queueType =
#**.ppp[*].numOutputHooks =
#**.ppp[*].numInputHooks =
#**.ppp.mtu =
#**.ext[*].mtu =
#**.manetrouting.useICMP =
#**.manetrouting.setICMPSourceAddress =

#**.channelControl.propagationModel =


Manojkumar Annamraju

unread,
Feb 3, 2012, 3:44:22 AM2/3/12
to omnetpp

Alfonso Ariza Quintana

unread,
Feb 3, 2012, 1:40:52 PM2/3/12
to omn...@googlegroups.com
search the parameter "interfaces"

the value must be
interfaces = "prefix(wlan)"
not
interfaces = prefix(wlan)

-----Mensaje original-----
From: Manojkumar Annamraju
Sent: Friday, February 03, 2012 9:44 AM
To: omnetpp
Subject: [Omnetpp-l] please help me

hi alfonso,

the ned file is:

package net802_11olsr.simulations;


the configuration file is:

#**.channelControl.propagationModel =


--
Sent from the OMNeT++ mailing list. To configure your membership,
visit http://groups.google.com/group/omnetpp

Jaipal Dhobale

unread,
Feb 4, 2012, 5:44:03 AM2/4/12
to omn...@googlegroups.com
Hi Dear Alfonso,

Could You help me to come out of this:

1. I have working model of Omnet++ 4.2.1.

2. I import Inetmanet in the Omnet++ and build it after that it is
displaying following message:


The following project(s) contains an old CDT project file (.cproject):
-inetmanet
We recommend that you re-create the projects, as old project files may
cause problems for the C++ indexer. You can re-create a project by
deleting it (answer “No” when asked if you want to delete the files as
well), and creating a new project in the same directory using File ->
New -> Project – this will overwrite the project settings while
leaving contents intact.


And after running the inetmanet it displays following Error message:



<!> Warning: opp_run: Cannot check library ../../../src/inet: The
specified module could not be found


<!> Error during startup: Cannot load library '../../../src//
libinet.dll': The operation completed successfully.

I am very thankful to the person who could help me indetail for
solving the problem.

Thanking You, 
--
Regards
Mr. Dhobale J V

Alfonso Ariza Quintana

unread,
Feb 6, 2012, 3:59:12 AM2/6/12
to omn...@googlegroups.com
for omnet 4.2.1 you should use inetmanet-2.0 or inetmanet integration branch
Reply all
Reply to author
Forward
0 new messages