@staticmethod
def get_gps_mode(mibversion):
    """return the correct gps mode depending on the firmware"""
    if mibversion == 'NG':
        return {'-1': 'mrsRefNone', '0': 'notAvailable', '1': 'gpsSync',
            '2': 'gpsTracking', '3': 'gpsAntennaDisconnected', '4':
            'gpsWarmBoot', '5': 'gpsColdBoot', '6':
            'gpsAntennaShortCircuit', '50': 'lwNeverSync', '51':
            'lwNotSync', '52': 'lwSync', '100': 'tcrNotSync', '101':
            'tcrSync', '150': 'mrsGpsSync', '151': 'mrs10MhzSync', '152':
            'mrsPpsInSync', '153': 'mrs10MhzPpsInSync', '154':
            'mrsIrigSync', '155': 'mrsNtpSync', '156': 'mrsPtpIeee1588Sync',
            '157': 'mrsPtpOverE1Sync', '158': 'mrsFixedFreqInSync', '159':
            'mrsPpsStringSync', '160': 'mrsVarFreqGpioSync', '161':
            'mrsReserved', '162': 'mrsDcf77PzfSync', '163':
            'mrsLongwaveSync', '164': 'mrsGlonassGpsSync', '165':
            'mrsHavequickSync', '166': 'mrsExtOscSync', '167': 'mrsIntOscSync'}
    return {'0': 'notavailable', '1': 'normalOperation', '2':
        'trackingSearching', '3': 'antennaFaulty', '4': 'warmBoot', '5':
        'coldBoot', '6': 'antennaShortcircuit'}
