signetlabdei / lorawan

An ns-3 module for simulation of LoRaWAN networks
GNU General Public License v2.0
185 stars 131 forks source link

Changing bandwidth #51

Closed philipskotte closed 4 years ago

philipskotte commented 4 years ago

Hi!

I am simulating the simple-network-example.cc, but I can't figure out how to change the bandwidth for the simulation. Right now it is using the bandwidth of 125000 Hz, but I want to change that to 250000 Hz. Do you have any suggestions how to do this ?

DvdMgr commented 4 years ago

Hi, to do that, you can change the configuration of channels in LorawanMacHelper. Keep in mind these two things:

Time on air computation with a 250kHz channel should be taken care of appropriately by the respective functions, no need to tweak that.

philipskotte commented 4 years ago

Hi again! Thank you for the answer! I just have one more question and that is in which file do you implement the size of the package that will be sent?

DvdMgr commented 4 years ago

This is decided by the application layer - typically, in the examples we use the PeriodicSender class.

On Tue, Nov 19, 2019 at 11:21 AM philipskotte notifications@github.com wrote:

Hi again! Thank you for the answer! I just have one more question and that is in which file do you implement the size of the package that will be sent?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/signetlabdei/lorawan/issues/51?email_source=notifications&email_token=AATSICMAUNMS4BHARQNQZ5DQUO42XA5CNFSM4JORVS72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEENU4PA#issuecomment-555437628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATSICPSAUMP6DDKFSUXSELQUO42XANCNFSM4JORVS7Q .

DvdMgr commented 4 years ago

I'm closing this, feel free to keep commenting if you need further assistance!