trx_toolkit/{ctrl,data}_if.py: add init log message

Change-Id: I1a2caf6999ed4f33df76328e48ff5076d166d9fe
This commit is contained in:
Vadim Yanitskiy 2019-01-14 07:54:18 +07:00
parent ba28c3efc1
commit 6b040c6e06
3 changed files with 8 additions and 1 deletions

View File

@ -27,6 +27,10 @@ import logging as log
from udp_link import UDPLink
class CTRLInterface(UDPLink):
def __init__(self, *udp_link_args):
UDPLink.__init__(self, *udp_link_args)
log.debug("Init CTRL interface (%s)" % self.desc_link())
def handle_rx(self):
# Read data from socket
data, remote = self.sock.recvfrom(128)

View File

@ -46,7 +46,6 @@ class CTRLInterfaceTRX(CTRLInterface):
def __init__(self, trx, *udp_link_args):
CTRLInterface.__init__(self, *udp_link_args)
log.info("Init CTRL interface (%s)" % self.desc_link())
# Link with Transceiver instance we belong to
self.trx = trx

View File

@ -28,6 +28,10 @@ from udp_link import UDPLink
from data_msg import *
class DATAInterface(UDPLink):
def __init__(self, *udp_link_args):
UDPLink.__init__(self, *udp_link_args)
log.debug("Init DATA interface (%s)" % self.desc_link())
def recv_raw_data(self):
data, _ = self.sock.recvfrom(512)
return data