2022-05-23 00:54:12 +00:00
|
|
|
# -*- coding: UTF-8 -*-
|
2021-02-24 13:22:28 +00:00
|
|
|
"""
|
|
|
|
Created on Sun Dec 27 20:43:40 2020
|
|
|
|
|
|
|
|
@author: DJ2LS
|
|
|
|
"""
|
2022-05-11 22:10:59 +00:00
|
|
|
# pylint: disable=invalid-name, line-too-long, c-extension-no-member
|
2022-05-23 00:54:12 +00:00
|
|
|
# pylint: disable=import-outside-toplevel, attribute-defined-outside-init
|
2023-08-18 06:29:26 +00:00
|
|
|
# pylint: disable=fixme
|
|
|
|
|
2022-05-11 22:10:59 +00:00
|
|
|
|
2021-02-24 13:22:28 +00:00
|
|
|
import threading
|
2022-05-11 22:10:59 +00:00
|
|
|
import helpers
|
2022-05-23 00:54:12 +00:00
|
|
|
import structlog
|
2023-11-17 22:05:41 +00:00
|
|
|
from modem_frametypes import FRAME_TYPE as FR_TYPE
|
2023-11-20 08:00:07 +00:00
|
|
|
import event_manager
|
2023-11-19 13:56:29 +00:00
|
|
|
|
2023-11-19 16:09:47 +00:00
|
|
|
|
2023-04-26 16:23:49 +00:00
|
|
|
|
2022-01-07 10:25:28 +00:00
|
|
|
TESTMODE = False
|
2022-05-09 00:41:49 +00:00
|
|
|
|
2022-05-09 01:27:24 +00:00
|
|
|
|
2022-05-19 20:15:24 +00:00
|
|
|
class DATA:
|
2022-05-23 00:54:12 +00:00
|
|
|
"""Terminal Node Controller for FreeDATA"""
|
|
|
|
|
2022-05-28 02:17:15 +00:00
|
|
|
log = structlog.get_logger("DATA")
|
2023-02-06 15:56:50 +00:00
|
|
|
|
2023-11-19 22:17:43 +00:00
|
|
|
def __init__(self, config, event_queue, states):
|
|
|
|
|
2023-11-19 16:09:47 +00:00
|
|
|
self.config = config
|
2023-11-19 22:17:43 +00:00
|
|
|
self.event_queue = event_queue
|
|
|
|
self.states = states
|
2023-11-08 17:49:38 +00:00
|
|
|
|
2023-11-19 22:17:43 +00:00
|
|
|
|
|
|
|
|