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
Last revisionBoth sides next revision
packet:mmdvm-tnc [2023/10/08 09:57] – [Flashing from the web] m0ltepacket:mmdvm-tnc [2024/04/14 11:22] – [Building and flashing from source] m0lte
Line 14: Line 14:
 ===== Preparation ===== ===== Preparation =====
  
-Burn Raspberry Pi OS Lite (tested on 32 bit) to a micro SD, boot it+Tested on 32 bit Bullseye Raspi OS
  
-`sudo raspi-config→ interfaces → serial shell disabled, serial port enabled+Verified to NOT work on 64 bit 
 + 
 +Verified to NOT work on Bookworm, only Bullseye, due to /sys/class/gpio/export deprecation 
 + 
 +Burn Raspberry Pi OS Bullseye 32 bit Lite to a micro SD, boot it 
 + 
 +''sudo raspi-config'' → interface options → serial port → serial shell disabled, serial port enabled
  
 Then: Then:
Line 26: Line 32:
  
 # Fetch the flashing tool # Fetch the flashing tool
-curl -OL https://www.bi7jta.org/files/MMDVM_Firmware/repeater_HAT/stm32flashV5+curl -OLs https://www.bi7jta.org/files/MMDVM_Firmware/repeater_HAT/stm32flashV5
 chmod +x stm32flashV5 chmod +x stm32flashV5
-</code> 
  
-===== Flashing from the web ===== +sudo reboot
- +
-Unplug the board from the header +
- +
-Run the following: +
- +
-<code> +
-curl -O https://mmdvm-tnc.s3.eu-west-2.amazonaws.com/mmdvm-f4-simplex.hex +
-while ! sudo ./stm32flashV5 -v -w mmdvm-f4-simplex.hex -R -i 20,-21,21:-20,-21,21 /dev/ttyAMA0; do echo Again; done+
 </code> </code>
  
-Carefully but swiftly (!) plug the board into the header +===== Building and flashing from source =====
- +
-This is required because of some capacitor in the wrong charge state and there may be some workaround coming. +
- +
- +
-===== Building and flashing from source (hard(ish) mode) =====+
  
 <code> <code>
Line 56: Line 48:
 </code> </code>
  
-Make Config.h look like this: +Run:
- +
-<code> +
-#define CONFIG_H +
-#define EXTERNAL_OSC 12000000 +
-#define STM32F4_NUCLEO_MORPHO_HEADER +
-#define SERIAL_SPEED    115200 +
- +
-// Select the initial packet mode +
-// 1 = 1200 bps AFSK AX.25 +
-// 2 = 9600 bps C4FSK IL2P +
-#define INITIAL_MODE    2 +
- +
-// TX Delay in milliseconds +
-#define TX_DELAY        300 +
- +
-// P-Persistence in x/255 +
-#define P_PERSISTENCE   63 +
- +
-// Slot Time in milliseconds +
-#define SLOT_TIME       100 +
- +
-// Set Duplex, 1 for full duplex, 0 for simplex +
-#define DUPLEX          0 +
- +
-// Select use of serial debugging +
-#define SERIAL_DEBUGGING +
- +
-// Baud rate for serial debugging. +
-#define DEBUGGING_SPEED 38400 +
- +
-// Set the receive level (out of 255) +
-#define RX_LEVEL        128 +
- +
-// Set the mode 1 transmit level (out of 255) +
-#define MODE1_TX_LEVEL  128 +
- +
-// Set the mode 2 transmit level (out of 255) +
-#define MODE2_TX_LEVEL  128 +
- +
-// Use pins to output the current mode via LEDs +
-#define MODE_LEDS +
-</code> +
- +
-then run:+
  
 <code> <code>
Line 109: Line 57:
  
 <code> <code>
-wget -q https://www.bi7jta.org/files/MMDVM_Firmware/repeater_HAT/stm32flashV5 +mv ../stm32flashV5 . 
-chmod +x stm32flashV5 +while ! sudo ./stm32flashV5 -v -w bin/mmdvm_f4.hex -R -i 20,-21,21:-20,-21,21 /dev/ttyAMA0; do echo Again; done
-sudo ./stm32flashV5 -v -w bin/mmdvm_f4.hex -R -i 20,-21,21:-20,-21,21 /dev/ttyAMA0+
 </code> </code>
 +
 +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.
 +
  
 ===== Testing notes ===== ===== Testing notes =====
Line 140: Line 92:
 <code> <code>
 sudo python3 kiss-ax25-ui-batch.py /dev/ttyAMA0 115200 A0AAA B0BBB 100 "Hello world" 100 1 sudo python3 kiss-ax25-ui-batch.py /dev/ttyAMA0 115200 A0AAA B0BBB 100 "Hello world" 100 1
 +</code>
 +
 +This will listen:
 +
 +<code>
 +sudo python3 kiss-listen.py /dev/ttyAMA0 115200
 </code> </code>
  
packet/mmdvm-tnc.txt · Last modified: 2024/04/14 11:26 by m0lte