Esempio n. 1
0
__author__ = "Piotr Gawlowicz, Mikolaj Chwalisz, Zubow"
__copyright__ = "Copyright (c) 2015, Technische Universitat Berlin"
__version__ = "0.1.0"
__email__ = "{gawlowicz, chwalisz, zubow}@tkn.tu-berlin.de"

from wishful_upis.meta_models import Attribute, Measurement, Event, Action

# The protocol-specific definition of the WiSHFUL network control interface, UPI_N, for configuration/monitoring of the higher
# layers of the network protocol stack (upper MAC and higher).
# IEEE 802.11 protocol family

# ATTRIBUTES
DOT_80211_MODE = Attribute(
    key='DOT_80211_MODE', type=int,
    isReadOnly=False)  #: Mode of device: STA, AP, P2P, MESH, AD-HOC
DOT_80211_STA_BLACKLIST = Attribute(
    key='DOT_80211_STA_BLACKLIST', type=str,
    isReadOnly=False)  #: List of MAC addressed of blacklisted STAs
DOT_80211_STA_TX_POWER = Attribute(key='DOT_80211_STA_TX_POWER',
                                   type=int,
                                   isReadOnly=False)  #: Per STA TX power

# MEASUREMENTS
DOT_80211_AP_NUMBER = Measurement(
    key='DOT_80211_STA_NUMBER',
    type=int)  #: Number of APs in communication range
DOT_80211_STA_NUMBER = Measurement(
    key='DOT_80211_STA_NUMBER',
    type=int)  #: Number of STAs in communication range
DOT_80211_SEEN_SSIDS = Measurement(
    key='DOT_80211_SEEN_SSIDS',
Esempio n. 2
0
All protocol-dependent functions are defined in separate folder,
e.g. ``wifi/``, ``lowpan/`` or ``lte/``.
"""
from .lte.radio import *
from .wifi.radio import *
from .lowpan.radio import *

__author__ = "Piotr Gawlowicz, Mikolaj Chwalisz, Anatolij Zubow, Peter Ruckebusch, Domenico Garlisi"
__copyright__ = "Copyright (c) 2016, Technische Universitat Berlin, iMinds, CNIT"
__version__ = "0.1.0"
__email__ = "{gawlowicz, chwalisz, zubow}@tkn.tu-berlin.de, [email protected], [email protected]"

from wishful_upis.meta_models import Attribute, Measurement, Event, Action, ValueDoc

# ATTRIBUTES
TX_POWER = Attribute(key='TX_POWER', type=int,
                     isReadOnly=False)  #:Transmission power in dBm
TX_ANTENNA = Attribute(
    key='TX_ANTENNA', type=int,
    isReadOnly=False)  #:Antenna number selected for transmission
RX_ANTENNA = Attribute(
    key='RX_ANTENNA', type=int,
    isReadOnly=False)  #:Antenna number selected for reception

NETWORK_INTERFACE_HW_ADDRESS = Attribute(
    key='NETWORK_INTERFACE_HW_ADDRESS', type=int,
    isReadOnly=False)  #:MAC address of wireless network interface card

TDMA_SUPER_FRAME_SIZE = Attribute(
    key='TDMA_SUPER_FRAME_SIZE', type=int, isReadOnly=False
)  #:TDMA protocol. Duration of periodic frames used for slot allocations in us
TDMA_NUMBER_OF_SYNC_SLOT = Attribute(
Esempio n. 3
0
__email__ = "{gawlowicz, chwalisz, zubow}@tkn.tu-berlin.de"


from wishful_upis.meta_models import Attribute, Measurement, Event, Action, ValueDoc


'''
    The protocol-specific definition of the WiSHFUL radio control interface,
    UPI_R, for configuration/monitoring of the
    lower layers of the network protocol stack (lower MAC and PHY).
    IEEE 802.11 protocol family
'''


# ATTRIBUTES
DOT_80211_PHY_ANI = Attribute(key='DOT_80211_PHY_ANI', type=int, isReadOnly=False) #: Adaptive Noise Immunity (ANI)
DOT_80211_STANDARDS = Attribute(key='DOT_80211_STANDARDS', type=int, isReadOnly=False) #: Supported 802.11 standards
DOT_80211_PHY_CHANNEL = Attribute(key='DOT_80211_PHY_CHANNEL', type=int, isReadOnly=False) #: PHY channel
DOT_80211_PHY_RATE = Attribute(key='DOT_80211_PHY_RATE', type=int, isReadOnly=False) #: Rate index value
DOT_80211_PHY_MCS = Attribute(key='DOT_80211_PHY_MCS', type=int, isReadOnly=False) #: Modulation and Coding Scheme (MCS) index value
DOT_80211_PHY_CCA = Attribute(key='DOT_80211_PHY_CCA', type=int, isReadOnly=False) #: Clear channel assessment (CCA) threshold
DOT_80211_RTS_CTS_THRESHOLD = Attribute(key='DOT_80211_RTS_CTS_THRESHOLD', type=int, isReadOnly=False) #:
DOT_80211_FRAGMENTATION_THRESHOLD = Attribute(key='DOT_80211_RTS_CTS_THRESHOLD', type=int, isReadOnly=False) #:
DOT_80211_RETRY_SHORT = Attribute(key='DOT_80211_RETRY_SHORT', type=int, isReadOnly=False) #:Retry short is the number of transmission attempts before change the modulation rate
DOT_80211_RETRY_LONG = Attribute(key='DOT_80211_RETRY_LONG', type=int, isReadOnly=False) #:Retry short is the number of transmission attempts after change the modulation rate
DOT_80211_MAC_STATE_SAMPLING_INTERVAL = Attribute(key='DOT_80211_MAC_STATE_SAMPLING_INTERVAL', type=int, isReadOnly=False) #: MAC state sampling interval in ms
DOT_80211_MAC_EDCA_AIFS = Attribute(key='DOT_80211_MAC_EDCA_AIFS', type=int, isReadOnly=False) #: EDCA Arbitrated Interframe Space value
DOT_80211_MAC_EDCA_CW_MIN =Attribute(key='DOT_80211_MAC_EDCA_CW_MIN', type=int, isReadOnly=False) #: EDCA Contention Window Min value
DOT_80211_MAC_EDCA_CW_MAX =Attribute(key='DOT_80211_MAC_EDCA_CW_MAX', type=int, isReadOnly=False) #: EDCA Contention Window Max value
DOT_80211_MAC_EDCA_TX_OP =Attribute(key='DOT_80211_MAC_EDCA_TX_OP', type=int, isReadOnly=False) #: EDCA Transmit Opportunity value
DOT_80211_PHY_REGURATORY_DOMAIN =Attribute(key='DOT_80211_PHY_REGURATORY_DOMAIN', type=str, isReadOnly=False) #: Reguratory domain information