From 211408e893d6a2fcbe71d8a78c75651924045c0a Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" <robin.mueller.m@gmail.com> Date: Sun, 4 Oct 2020 17:22:24 +0200 Subject: [PATCH] binary uploader continued --- utility/obsw_binary_uploader.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utility/obsw_binary_uploader.py b/utility/obsw_binary_uploader.py index 47078d1..46f0d20 100644 --- a/utility/obsw_binary_uploader.py +++ b/utility/obsw_binary_uploader.py @@ -45,11 +45,16 @@ def perform_binary_upload(comIF: CommunicationInterface): print("Test") tc_queue = deque() + + # Delete existing binary file first, otherwise data might be appeneded to otherwise + # valid file which already exists. + # generate_service23_subservice1_packet() + # We have to split the binary here first generate_service23_subservice128_packet(tc_queue, "BIN/AT91/BL", "bl.bin", 1024, data_to_read) while tc_queue: (tc_packet, tc_info) = tc_queue.pop() comIF.send_telecommand(tc_packet, tc_info) print("Sending..") - time.sleep(0.5) + time.sleep(2.0) print("Test2") -- GitLab