User Tools

Site Tools


packet:mmdvm-tnc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
packet:mmdvm-tnc [2024/04/03 20:06] – [Building and flashing from source (hard(ish) mode)] m0ltepacket:mmdvm-tnc [2024/04/14 11:26] (current) – [Testing notes] m0lte
Line 61: Line 61:
 </code> </code>
  
-Carefully but swiftly (!) plug the board into the header+Carefully but swiftly (!) plug the board into the header. If it fails, unplug the board for a while and leave it before trying again later. A minute or two should be fine.
  
 This is required because of some capacitor in the wrong charge state and there may be some workaround coming. This is required because of some capacitor in the wrong charge state and there may be some workaround coming.
Line 102: Line 102:
 sudo required for this unless your user is in the dialout group. sudo required for this unless your user is in the dialout group.
  
 +
 +This diff hacks kiss-ax25-ui-batch.py to:
 +  - set persist=255
 +  - divide supplied time interval by 10
 +
 +<code>
 +diff --git a/kiss-ax25-ui-batch.py b/kiss-ax25-ui-batch.py
 +index 11b3a75..2ebcbf8 100644
 +--- a/kiss-ax25-ui-batch.py
 ++++ b/kiss-ax25-ui-batch.py
 +@@ -120,6 +120,11 @@ TFESC = int(0xDD).to_bytes(1,'big')
 + TFEND = int(0xDC).to_bytes(1,'big')
 + KISS_PORT = 0
 + KISS_COMMAND = 0
 ++
 ++kiss_output_frame = bytearray(FEND) + bytearray(int(0x02).to_bytes(1,'big')) + bytearray(int(0xFF).to_bytes(1,'big')) + bytearray(FEND)
 ++#print(kiss_output_frame)
 ++port.write(kiss_output_frame)
 ++
 + KISS_TYPE_ID = (KISS_PORT * 16) + KISS_COMMAND
 + KISS_TYPE_ID = KISS_TYPE_ID.to_bytes(1,'big')
 +
 +@@ -191,6 +196,6 @@ for i in range(0, frame_count):
 +        # print(kiss_output_frame)
 +        frame_time = len(kiss_output_frame) * 10 / int(sys.argv[2])
 +        port.write(kiss_output_frame)
 +-       time.sleep(frame_interval)
 ++       time.sleep(frame_interval/10)
 + print('\nDone.')
 + GracefulExit(port, 0)
 +</code>
 ===== Serial debugging ===== ===== Serial debugging =====
  
packet/mmdvm-tnc.txt · Last modified: 2024/04/14 11:26 by m0lte