GithubHelp home page GithubHelp logo

Syntax errors about flora HOT 10 CLOSED

florasim avatar florasim commented on August 11, 2024
Syntax errors

from flora.

Comments (10)

Smangaliso1 avatar Smangaliso1 commented on August 11, 2024

@mariuszslabicki

from flora.

mariuszslabicki avatar mariuszslabicki commented on August 11, 2024

Hi

Please try with versions mentioned in the website: https://flora.aalto.fi/

As far as I remember, there was an update in new inet, and flora is not updated with it.

from flora.

Smangaliso1 avatar Smangaliso1 commented on August 11, 2024

Thank you, I'll try and let you know afterwards.

from flora.

Smangaliso1 avatar Smangaliso1 commented on August 11, 2024

Hi
Thank you initial problem fixed!!!

However, I've also encountered another bug while testing Flora project.

<!> Cannot evaluate parameter 'initialLoRaTP': operator "*": Refusing to perform computations involving quantities with nonlinear units (3dBm) -- in module (inet::SimpleLoRaApp) LoRaNetworkTest.loRaNodes[0].SimpleLoRaApp (id=30), during network setup

from flora.

mariuszslabicki avatar mariuszslabicki commented on August 11, 2024

Could you paste the config file?

from flora.

Smangaliso1 avatar Smangaliso1 commented on August 11, 2024

Sorry, config file for Omnetpp or Flora I'm not sure in that case?

from flora.

mariuszslabicki avatar mariuszslabicki commented on August 11, 2024

The .ini file which defines parameters for nodes. If you have run the example simulation from repository, the configuration is set in the "loRaNetworkTest.ini" file.

from flora.

Smangaliso1 avatar Smangaliso1 commented on August 11, 2024

Ok, I get you now. below I just copied what is in the file.
[General]
network = LoRaNetworkTest
rng-class = "cMersenneTwister"

network features

**.numberOfGateways = 1
**.loRaGW[0].numUdpApps = 1
**.loRaGW[0].packetForwarder.localPort = 2000
**.loRaGW[0].packetForwarder.destPort = 1000
**.loRaGW[0].packetForwarder.destAddresses = "networkServer"
**.loRaGW[0].packetForwarder.indexNumber = 0

**.loRaGW[1].numUdpApps = 1
**.loRaGW[1].packetForwarder.localPort = 2000
**.loRaGW[1].packetForwarder.destPort = 1000
**.loRaGW[1].packetForwarder.destAddresses = "networkServer"
**.loRaGW[1].packetForwarder.indexNumber = 1

**.networkServer.numUdpApps = 1
.networkServer..evaluateADRinServer = false
**.networkServer.udpApp[0].typename = "NetworkServerApp"
**.networkServer.udpApp[0].destAddresses = "loRaGW[0]"
**.networkServer.udpApp[0].destPort = 2000
**.networkServer.udpApp[0].localPort = 1000
**.networkServer.udpApp[0].adrMethod = ${"avg"}

**.numberOfNodes = 10
**.numberOfPacketsToSend = 0 #0 means infinite number of packets
sim-time-limit = 7d
warmup-period = 1d
simtime-resolution = -11

**.timeToFirstPacket = exponential(100s)
**.timeToNextPacket = exponential(100s)
**.alohaChannelModel = false

#nodes features
.loRaNodes[*]..initFromDisplayString = false
.loRaNodes[*]..evaluateADRinNode = false
**.loRaNodes[].**initialLoRaSF = intuniform(7,12)
**.loRaNodes[
].**initialLoRaBW = 125 kHz
**.loRaNodes[].**initialLoRaCR = 4
**.loRaNodes[
].**initialLoRaTP = (2dBm + 3dBm*intuniform(0, 4))

deployment of nodes in a circle with radius=maxGatewayDistance and gateway at gatewayX,gatewayY

#.loRaNodes[*].deploymentType = "circle"
#
.loRaNodes[].maxGatewayDistance = 120.0
#**.loRaNodes[
].gatewayX = 240
#**.loRaNodes[*].gatewayY = 240

random deployment of nodes in a square square area

.loRaNodes[*]..initialX = uniform(0m, 480m)
.loRaNodes[*]..initialY = uniform(0m, 480m)

#gateway features
**.LoRaGWNic.radio.iAmGateway = true
.loRaGW[*]..initFromDisplayString = false
.loRaGW[0]..initialX = 240m#uniform(0m, 50m)
.loRaGW[0]..initialY = 240m

#power consumption features
.loRaNodes[].LoRaNic.radio.energyConsumerType = "LoRaEnergyConsumer"
**.loRaNodes[
].
.energySourceModule = "IdealEpEnergyStorage"
**.loRaNodes[*].LoRaNic.radio.energyConsumer.configFile = xmldoc("energyConsumptionParameters.xml")

#general features
**.sigma = 0
**.constraintAreaMinX = 0m
**.constraintAreaMinY = 0m
**.constraintAreaMinZ = 0m
**.constraintAreaMaxX = 480m
**.constraintAreaMaxY = 480m
**.constraintAreaMaxZ = 0m

LoRaNetworkTest..radio.separateTransmissionParts = false
LoRaNetworkTest.
.radio.separateReceptionParts = false

**.delayer.config = xmldoc("cloudDelays.xml")
**.radio.radioMediumModule = "LoRaMedium"
**.LoRaMedium.pathLossType = "LoRaLogNormalShadowing"
**.minInterferenceTime = 0s
**.displayAddresses = false

from flora.

mariuszslabicki avatar mariuszslabicki commented on August 11, 2024

Are you sure that this is the config file that is evaluated in your simulation? From the error message: annot evaluate parameter 'initialLoRaTP': operator "*" it seems that the "initialLoRaTP" is not set. But the config file has all parameters configured.

BTW: have you evaluated example simulation?

from flora.

Smangaliso1 avatar Smangaliso1 commented on August 11, 2024

Hey,
I managed to fix the error, All was need is to remove this operator "*" from the config files .in.

Thank you.

from flora.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.