Wstandard

class pylayers.signal.standard.Wstandard(stdname='', _filejson='wstd.json')[source]

Bases: pylayers.util.project.PyLayers, dict

Wireless standard class

The various available standard are described in a wstd.json file

Methods Summary

bandplan(fstart, fstop[, smhz, bmhz, gmhz, chan])

construct the different channels of the standard

load(stdname[, _fileini])

load a standard from file

ls()

list all available standards

power(band[, info, unit])

Returns power information for a given channel

Methods Documentation

bandplan(fstart, fstop, smhz=5, bmhz=20, gmhz=2, chan=True)[source]

construct the different channels of the standard

fstart : start frequency GHz fstop : stop frequency GHz smhz : step between adjacscent channels bmhz : useful channel bandwidth gmhz : gap between channels

load(stdname, _fileini='wstd.json')[source]

load a standard from file

stdnamestring

standard name

_fileinistring

file containing the description of available standards

ls()[source]

list all available standards

>>> from pylayers.signal.standard import *
>>> W =Wstandard('ieee80211ah')
>>> W.ls()

(Source code)

power(band, info='max', unit='mw')[source]

Returns power information for a given channel

bandint /float/string

‘bandnb’ : band number ‘fghz’ : frequency ‘bandname’ : band name

infostring (‘max’|’min’|’step’)

requested information about power

unitstring (‘mw’|db)

miliwatt or db

Pmaxmw

power informations for given bandnb/fghz/