Tutorial on how to implement mobility with FloRA and inet ?

321 views
Skip to first unread message

Amir Rouatbi

unread,
Jul 1, 2022, 4:51:32 PM7/1/22
to OMNeT++ Users

Hello all,

I want to implement mobile LoRa nodes in FloRA andI don't how to proceed to define mobility for one LoRa node. Is there any tutorial on how to use mobility with FloRA ?

Alfonso Ariza Quintana

unread,
Jul 4, 2022, 7:05:49 AM7/4/22
to omn...@googlegroups.com
You can check the implementation of Flora in inetmanet, the node has been modified to support mobility

De: omn...@googlegroups.com <omn...@googlegroups.com> en nombre de Amir Rouatbi <amirrou...@gmail.com>
Enviado: viernes, 1 de julio de 2022 22:51
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: [Omnetpp-l] Tutorial on how to implement mobility with FloRA and inet ?
 

Hello all,

I want to implement mobile LoRa nodes in FloRA andI don't how to proceed to define mobility for one LoRa node. Is there any tutorial on how to use mobility with FloRA ?

--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/omnetpp/dc4d7fb1-9813-427e-b949-ebb188a0d771n%40googlegroups.com.

Amir Rouatbi

unread,
Jul 4, 2022, 9:57:28 AM7/4/22
to OMNeT++ Users
Where do I find that implementation please ? Thank you.

Alfonso Ariza Quintana

unread,
Jul 4, 2022, 10:02:24 AM7/4/22
to omn...@googlegroups.com
Enviado: lunes, 4 de julio de 2022 15:57
Para: OMNeT++ Users <omn...@googlegroups.com>
Asunto: Re: [Omnetpp-l] Tutorial on how to implement mobility with FloRA and inet ?
 

Amir Rouatbi

unread,
Jul 10, 2022, 5:08:47 PM7/10/22
to OMNeT++ Users
Hello, I did manage to make lora nodes move. But, it doesn't seem like the nodes send any messages while they're moving. Is there any way to fix this ?

Alfonso Ariza Quintana

unread,
Jul 11, 2022, 3:57:31 AM7/11/22
to omn...@googlegroups.com
Have you checked the total number of packets sent/received?
If yoi set the speed of the simulation to see the nodes moving, you will not see the packets

Enviado: domingo, 10 de julio de 2022 23:08

Amir Rouatbi

unread,
Jul 11, 2022, 8:49:25 AM7/11/22
to OMNeT++ Users
I will check that. But, according to the simulation, I can see packets being sent but only during certain moments where the node seems to be standing still.

Amir Rouatbi

unread,
Jul 11, 2022, 8:50:42 AM7/11/22
to OMNeT++ Users
Another problem is that there are no ADR packets being sent to the nodes and the SF doesn't change for any of the nodes ? Any idea on what might be the error ? Thanks for the help.

Charles Pandian

unread,
Jul 11, 2022, 9:39:47 AM7/11/22
to omn...@googlegroups.com
Hello, I did manage to make lora nodes move. But, it doesn't seem like the nodes send any messages while they're moving. Is there any way to fix this ?

In fact, it is not an issue - it is a limitation of the Omnet ++ visualizer.

To understand this, carefully watch the 3D visualization output  in the following post (the last video)
https://www.projectguideline.com/simulating-and-visualizing-3d-underwater-wireless-sensor-network-uwsn-under-omnet/

While the transmission starts (the expanding bubble) the Sharks will not move - in fact, they are moving (very very slowly😊) in one sense, the time is scaled down to show the transmission (bubble) which is happening at the speed of light.

Similarly, you will see such stopping of nodes in VANET simulation also.

Charles Pandian,



Alfonso Ariza Quintana

unread,
Jul 11, 2022, 9:43:11 AM7/11/22
to omn...@googlegroups.com
I can see that the ADR packet are generated but must be activated in the server and in the nodes

Enviado: lunes, 11 de julio de 2022 14:50

Amir Rouatbi

unread,
Jul 11, 2022, 1:01:35 PM7/11/22
to OMNeT++ Users
When defining mobility for a loRaNode, at the end of the simulation, I have the following error :

check_and_cast(): Cannot cast (inet::CircleMobility*)LoRaNetworkTest.loRaNodes[0].mobility to type 'inet::StationaryMobility *' -- in module (inet::flora::SimpleLoRaApp) LoRaNetworkTest.loRaNodes[0].SimpleLoRaApp (id=30), during finalization

I think that's why, there are no packets recorded in the result file.

Alfonso Ariza Quintana

unread,
Jul 12, 2022, 4:33:34 AM7/12/22
to omn...@googlegroups.com
If you try to force the deployment mode
**.deploymentType = "circle"
The code check that the nodes are static.

Enviado: lunes, 11 de julio de 2022 19:01
Reply all
Reply to author
Forward
0 new messages