fixing a crc bug - but origin not found yet

pull/704/head
DJ2LS 2024-04-08 16:49:47 +02:00
parent f983a9b0bd
commit aefce88ceb
3 changed files with 4 additions and 3 deletions

View File

@ -33,7 +33,7 @@ class ARQSession:
3: {
'mode': codec2.FREEDV_MODE.data_ofdm_2438,
'min_snr': 7,
'duration_per_frame': 2.5,
'duration_per_frame': 6.5,
'bandwidth': 2438,
},
4: {

View File

@ -249,7 +249,8 @@ class DataFrameFactory:
# data is always on the last payload slots
if item_length in ["dynamic"] and key in["data"]:
data = frame[buffer_position:]
# TODO: We need to check the "-2", for some reason the tests are failing with "-2", and real world test i failing without...
data = frame[buffer_position:-2]
item_length = len(data)
print("---------------------------------------------")
print(len(data))

View File

@ -160,7 +160,7 @@ class TestARQSession(unittest.TestCase):
self.establishChannels()
params = {
'dxcall': "AA1AAA-1",
'data': base64.b64encode(np.random.bytes(100000)),
'data': base64.b64encode(np.random.bytes(1000)),
'type': "raw_lzma"
}
cmd = ARQRawCommand(self.config, self.iss_state_manager, self.iss_event_queue, params)