Skip to content

NanoStation 5AC loco - Failed to deserialize AirOS data #65

@thefipster

Description

@thefipster

Hi there, I tried to integrate my fleet of NanoStation 5AC locos but there seems to be a serialization issue according to the logs.

Initial Warning

Logger: airos.data
Source: components/airos/config_flow.py:59
First occurred: 08:56:38 (5 occurrences)
Last logged: 09:28:04

Unknown value 'sta-ptmp' for Wireless.mode. Please report at https://github.com/CoMPaTech/python-airos/issues so we can add support.

Following Error

Logger: airos.airos8
Source: /usr/local/lib/python3.13/site-packages/airos/airos8.py:252
First occurred: 08:56:38 (5 occurrences)
Last logged: 09:28:04

Failed to deserialize AirOS data
Traceback (most recent call last):
  File "<string>", line 226, in __mashumaro_from_dict__
  File "<string>", line 84, in __mashumaro_from_dict__
mashumaro.exceptions.MissingField: Field "mode" of type WirelessMode is missing in Remote instance

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 233, in __mashumaro_from_dict__
  File "<string>", line 228, in __mashumaro_from_dict__
mashumaro.exceptions.InvalidFieldValue: Field "remote" of type Remote in Station has invalid value {'age': 2, 'device_id': 'b9292701e8ab7fc2c67245340954ed5b', 'hostname': 'NanoStation  Garage Up', 'platform': 'NanoStation 5AC loco', 'version': 'WA.ar934x.v8.7.14.47873.241003.1314', 'time': '2025-03-09 07:47:40', 'cpuload': 10.7843, 'temperature': 0, 'totalram': 63447040, 'freeram': 14254080, 'netrole': 'bridge', 'sys_id': '0xe7fa', 'tx_throughput': 3903, 'rx_throughput': 198, 'uptime': 13545226, 'power_time': 13545225, 'compat_11n': 0, 'signal': -64, 'rssi': 32, 'noisefloor': -87, 'tx_power': 10, 'distance': 450, 'rx_chainmask': 3, 'chainrssi': [26, 31, 0], 'tx_ratedata': [9, 4, 101, 3278, 14756, 18225, 256519, 15191996, 2119205, 0], 'tx_bytes': 5477418059133, 'rx_bytes': 322543033017, 'antenna_gain': 13, 'cable_loss': 0, 'height': None, 'ethlist': [{'ifname': 'eth0', 'enabled': True, 'plugged': True, 'duplex': True, 'speed': 1000, 'snr': [30, 30, 30, 30], 'cable_len': 14}], 'ipaddr': ['192.168.1.119'], 'ip6addr': ['fe80::2a70:4eff:fea0:ff78'], 'oob': False, 'unms': {'status': 0}, 'airview': 2, 'service': {'time': 13545150, 'link': 13544612}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 50, in __mashumaro_from_dict__
  File "<string>", line 235, in __mashumaro_from_dict__
mashumaro.exceptions.InvalidFieldValue: Field "sta" of type list[Station] in Wireless has invalid value [{'mac': '28:70:4E:A0:FF:78', 'lastip': '192.168.1.119', 'signal': -64, 'rssi': 32, 'noisefloor': -88, 'chainrssi': [32, 21, 0], 'tx_idx': 6, 'rx_idx': 6, 'tx_nss': 2, 'rx_nss': 2, 'tx_latency': 0, 'distance': 1200, 'tx_packets': 0, 'tx_lretries': 0, 'tx_sretries': 0, 'uptime': 134638, 'dl_signal_expect': -78, 'ul_signal_expect': -57, 'cb_capacity_expect': 130000, 'dl_capacity_expect': 104000, 'ul_capacity_expect': 156000, 'dl_rate_expect': 5, 'ul_rate_expect': 8, 'dl_linkscore': 75, 'ul_linkscore': 57, 'dl_avg_linkscore': 73, 'ul_avg_linkscore': 65, 'tx_ratedata': [2, 4, 6, 10713, 63214, 657485, 3240490, 9959279, 2721192, 0], 'stats': {'rx_bytes': 52830938307, 'rx_packets': 45015614, 'rx_pps': 386, 'tx_bytes': 3371747594, 'tx_packets': 30929634, 'tx_pps': 0}, 'airmax': {'actual_priority': 2, 'beam': 0, 'desired_priority': 2, 'cb_capacity': 83460, 'dl_capacity': 78000, 'ul_capacity': 88920, 'atpc_status': 2, 'rx': {'usage': 44, 'cinr': 27, 'evm': [[29, 25, 28, 23, 26, 30, 27, 28, 28, 28, 29, 27, 26, 28, 29, 27, 24, 27, 27, 30, 27, 28, 28, 29, 28, 27, 27, 29, 25, 25, 26, 28, 25, 30, 27, 30, 23, 24, 25, 24, 28, 27, 28, 24, 25, 27, 26, 23, 27, 28, 27, 24, 24, 27, 25, 27, 28, 24, 24, 24, 23, 30, 24, 26], [34, 33, 34, 33, 33, 33, 33, 33, 33, 34, 33, 33, 33, 33, 33, 33, 34, 33, 33, 33, 34, 33, 33, 33, 34, 33, 32, 33, 33, 33, 33, 32, 33, 32, 33, 33, 32, 32, 32, 32, 33, 32, 32, 32, 32, 33, 34, 32, 34, 32, 33, 33, 33, 28, 32, 32, 32, 32, 31, 32, 32, 33, 33, 32]]}, 'tx': {'usage': 10, 'cinr': 27, 'evm': [[27, 28, 26, 26, 29, 25, 25, 25, 25, 29, 27, 30, 26, 26, 25, 27, 26, 27, 27, 27, 29, 29, 25, 26, 30, 28, 30, 29, 26, 31, 26, 27, 27, 30, 30, 27, 27, 28, 28, 25, 27, 26, 31, 25, 26, 30, 26, 27, 27, 27, 24, 28, 28, 28, 23, 25, 27, 27, 27, 30, 25, 27, 27, 26], [32, 33, 33, 33, 33, 32, 32, 32, 32, 32, 32, 33, 34, 33, 33, 33, 33, 28, 33, 33, 33, 32, 33, 33, 33, 34, 32, 33, 33, 33, 33, 32, 32, 33, 33, 32, 33, 33, 33, 34, 33, 33, 34, 33, 33, 33, 32, 33, 32, 32, 32, 33, 32, 32, 30, 33, 33, 32, 32, 35, 33, 33, 31, 33]]}}, 'last_disc': 0, 'remote': {'age': 2, 'device_id': 'b9292701e8ab7fc2c67245340954ed5b', 'hostname': 'NanoStation  Garage Up', 'platform': 'NanoStation 5AC loco', 'version': 'WA.ar934x.v8.7.14.47873.241003.1314', 'time': '2025-03-09 07:47:40', 'cpuload': 10.7843, 'temperature': 0, 'totalram': 63447040, 'freeram': 14254080, 'netrole': 'bridge', 'sys_id': '0xe7fa', 'tx_throughput': 3903, 'rx_throughput': 198, 'uptime': 13545226, 'power_time': 13545225, 'compat_11n': 0, 'signal': -64, 'rssi': 32, 'noisefloor': -87, 'tx_power': 10, 'distance': 450, 'rx_chainmask': 3, 'chainrssi': [26, 31, 0], 'tx_ratedata': [9, 4, 101, 3278, 14756, 18225, 256519, 15191996, 2119205, 0], 'tx_bytes': 5477418059133, 'rx_bytes': 322543033017, 'antenna_gain': 13, 'cable_loss': 0, 'height': None, 'ethlist': [{'ifname': 'eth0', 'enabled': True, 'plugged': True, 'duplex': True, 'speed': 1000, 'snr': [30, 30, 30, 30], 'cable_len': 14}], 'ipaddr': ['192.168.1.119'], 'ip6addr': ['fe80::2a70:4eff:fea0:ff78'], 'oob': False, 'unms': {'status': 0}, 'airview': 2, 'service': {'time': 13545150, 'link': 13544612}}}]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.13/site-packages/airos/airos8.py", line 250, in status
    airos_data = AirOSData.from_dict(adjusted_json)
  File "<string>", line 52, in __mashumaro_from_dict__
mashumaro.exceptions.InvalidFieldValue: Field "wireless" of type Wireless in AirOS8Data has invalid value {'essid': 'AP-yRhtF-18A', 'mode': 'ap-ptmp', 'ieeemode': '11ACVHT20', 'band': 2, 'compat_11n': 0, 'hide_essid': 0, 'apmac': '9C:05:D6:8C:C1:8A', 'antenna_gain': 13, 'frequency': 5200, 'center1_freq': 5200, 'dfs': 0, 'distance': 1050, 'security': 'WPA2', 'noisef': -88, 'txpower': 10, 'aprepeater': False, 'rstatus': 5, 'chanbw': 20, 'rx_chainmask': 3, 'tx_chainmask': 3, 'nol_state': 0, 'nol_timeout': 0, 'cac_state': 0, 'cac_timeout': 0, 'rx_idx': 6, 'rx_nss': 2, 'tx_idx': 6, 'tx_nss': 2, 'throughput': {'tx': 203, 'rx': 3940}, 'service': {'time': 134638, 'link': 134638}, 'polling': {'cb_capacity': 88465, 'dl_capacity': 69030, 'ul_capacity': 107900, 'use': 54, 'tx_use': 18, 'rx_use': 36, 'atpc_status': 2, 'fixed_frame': False, 'gps_sync': False, 'ff_cap_rep': False}, 'count': 1, 'sta': [{'mac': '28:70:4E:A0:FF:78', 'lastip': '192.168.1.119', 'signal': -64, 'rssi': 32, 'noisefloor': -88, 'chainrssi': [32, 21, 0], 'tx_idx': 6, 'rx_idx': 6, 'tx_nss': 2, 'rx_nss': 2, 'tx_latency': 0, 'distance': 1200, 'tx_packets': 0, 'tx_lretries': 0, 'tx_sretries': 0, 'uptime': 134638, 'dl_signal_expect': -78, 'ul_signal_expect': -57, 'cb_capacity_expect': 130000, 'dl_capacity_expect': 104000, 'ul_capacity_expect': 156000, 'dl_rate_expect': 5, 'ul_rate_expect': 8, 'dl_linkscore': 75, 'ul_linkscore': 57, 'dl_avg_linkscore': 73, 'ul_avg_linkscore': 65, 'tx_ratedata': [2, 4, 6, 10713, 63214, 657485, 3240490, 9959279, 2721192, 0], 'stats': {'rx_bytes': 52830938307, 'rx_packets': 45015614, 'rx_pps': 386, 'tx_bytes': 3371747594, 'tx_packets': 30929634, 'tx_pps': 0}, 'airmax': {'actual_priority': 2, 'beam': 0, 'desired_priority': 2, 'cb_capacity': 83460, 'dl_capacity': 78000, 'ul_capacity': 88920, 'atpc_status': 2, 'rx': {'usage': 44, 'cinr': 27, 'evm': [[29, 25, 28, 23, 26, 30, 27, 28, 28, 28, 29, 27, 26, 28, 29, 27, 24, 27, 27, 30, 27, 28, 28, 29, 28, 27, 27, 29, 25, 25, 26, 28, 25, 30, 27, 30, 23, 24, 25, 24, 28, 27, 28, 24, 25, 27, 26, 23, 27, 28, 27, 24, 24, 27, 25, 27, 28, 24, 24, 24, 23, 30, 24, 26], [34, 33, 34, 33, 33, 33, 33, 33, 33, 34, 33, 33, 33, 33, 33, 33, 34, 33, 33, 33, 34, 33, 33, 33, 34, 33, 32, 33, 33, 33, 33, 32, 33, 32, 33, 33, 32, 32, 32, 32, 33, 32, 32, 32, 32, 33, 34, 32, 34, 32, 33, 33, 33, 28, 32, 32, 32, 32, 31, 32, 32, 33, 33, 32]]}, 'tx': {'usage': 10, 'cinr': 27, 'evm': [[27, 28, 26, 26, 29, 25, 25, 25, 25, 29, 27, 30, 26, 26, 25, 27, 26, 27, 27, 27, 29, 29, 25, 26, 30, 28, 30, 29, 26, 31, 26, 27, 27, 30, 30, 27, 27, 28, 28, 25, 27, 26, 31, 25, 26, 30, 26, 27, 27, 27, 24, 28, 28, 28, 23, 25, 27, 27, 27, 30, 25, 27, 27, 26], [32, 33, 33, 33, 33, 32, 32, 32, 32, 32, 32, 33, 34, 33, 33, 33, 33, 28, 33, 33, 33, 32, 33, 33, 33, 34, 32, 33, 33, 33, 33, 32, 32, 33, 33, 32, 33, 33, 33, 34, 33, 33, 34, 33, 33, 33, 32, 33, 32, 32, 32, 33, 32, 32, 30, 33, 33, 32, 32, 35, 33, 33, 31, 33]]}}, 'last_disc': 0, 'remote': {'age': 2, 'device_id': 'b9292701e8ab7fc2c67245340954ed5b', 'hostname': 'NanoStation  Garage Up', 'platform': 'NanoStation 5AC loco', 'version': 'WA.ar934x.v8.7.14.47873.241003.1314', 'time': '2025-03-09 07:47:40', 'cpuload': 10.7843, 'temperature': 0, 'totalram': 63447040, 'freeram': 14254080, 'netrole': 'bridge', 'sys_id': '0xe7fa', 'tx_throughput': 3903, 'rx_throughput': 198, 'uptime': 13545226, 'power_time': 13545225, 'compat_11n': 0, 'signal': -64, 'rssi': 32, 'noisefloor': -87, 'tx_power': 10, 'distance': 450, 'rx_chainmask': 3, 'chainrssi': [26, 31, 0], 'tx_ratedata': [9, 4, 101, 3278, 14756, 18225, 256519, 15191996, 2119205, 0], 'tx_bytes': 5477418059133, 'rx_bytes': 322543033017, 'antenna_gain': 13, 'cable_loss': 0, 'height': None, 'ethlist': [{'ifname': 'eth0', 'enabled': True, 'plugged': True, 'duplex': True, 'speed': 1000, 'snr': [30, 30, 30, 30], 'cable_len': 14}], 'ipaddr': ['192.168.1.119'], 'ip6addr': ['fe80::2a70:4eff:fea0:ff78'], 'oob': False, 'unms': {'status': 0}, 'airview': 2, 'service': {'time': 13545150, 'link': 13544612}}}], 'sta_disconnected': []}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions