Giter Site home page Giter Site logo

Comments (6)

GUVWAF avatar GUVWAF commented on July 17, 2024

Hi,

SNR is calculated based on the RSSI and a noise level, which you can configure in config.py, but it is assumed to be the same everywhere. RSSI is calculated based on the pathloss model, the distance between each node, their transmit power (which is the same for each node and based on the region you set), and antenna gain. You can specify the antenna gain for each node when you place them.

Hope this helps.

from meshtasticator.

artiommocrenco avatar artiommocrenco commented on July 17, 2024

Hi,

SNR is calculated based on the RSSI and a noise level, which you can configure in config.py, but it is assumed to be the same everywhere. RSSI is calculated based on the pathloss model, the distance between each node, their transmit power (which is the same for each node and based on the region you set), and antenna gain. You can specify the antenna gain for each node when you place them.

Hope this helps.

Ah thanks so much, the reason why I'm asking is because in firmware I found that delay before flooding a message is dependant on SNR, and there also is some randomness

from meshtasticator.

GUVWAF avatar GUVWAF commented on July 17, 2024

Yes, indeed. The simulator calculates this as well:

def getTxDelayMsecWeighted(node, rssi): # from RadioInterface::getTxDelayMsecWeighted
snr = rssi-conf.NOISE_LEVEL
SNR_MIN = -20
SNR_MAX = 15
if snr < SNR_MIN:
verboseprint('Minimum SNR at RSSI of', rssi, 'dBm')
snr = SNR_MIN
if snr > SNR_MAX:
verboseprint('Maximum SNR at RSSI of', rssi, 'dBm')
snr = SNR_MAX
CWsize = int((snr - SNR_MIN) * (CWmax - CWmin) / (SNR_MAX - SNR_MIN) + CWmin)
if node.isRouter == True:
CW = random.randint(0, 2*CWsize-1)
else:
CW = random.randint(0, 2**CWsize-1)
verboseprint('Node', node.nodeid, 'has CW size', CWsize, 'and picked CW', CW)
return CW * slotTime

from meshtasticator.

artiommocrenco avatar artiommocrenco commented on July 17, 2024

Thank you so much!

from meshtasticator.

artiommocrenco avatar artiommocrenco commented on July 17, 2024

This is very helpful to simulate the mesh we have here in Moldova, Chisinau

from meshtasticator.

GUVWAF avatar GUVWAF commented on July 17, 2024

Great to hear! I'll close this issue now. Feel free to open another if you have further questions.

from meshtasticator.

Related Issues (4)

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.