Wykres commitów

694 Commity (master)

Autor SHA1 Wiadomość Data
Thomas Osterried c728ff73e4 Q-encoding: Corrected example
Signed-off-by: Thomas Osterried <dl9sau@github>
2021-12-01 15:16:35 +01:00
Thomas Osterried 073cef610e Small redesign of RSSI/SNR Q-path-encoding
Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2021-12-01 14:32:13 +01:00
Thomas Osterried fd918f57c9 beautiness: correct indent 2021-11-30 04:56:16 +01:00
Thomas Osterried f3cee1504c Updated SNR, RSSI, and Q...-encodinig scheme
We use an old BG_RF95 library from 2001. RadioHead/RH_RF95.cpp implements _lastSNR and _lastRssi correctly accordingg to the specs
- SNR computation according to spec
- RSSI computation revised

Work on design of Q...-encoding scheme for encoding SNR and RSSI in path.
2021-11-30 04:50:35 +01:00
Thomas Osterried 72e88ffb4b plattformio.ini: newest library Adafruit BusIO broke two days before.
-> added Adafruit BusIO @ !=1.9.7 # due to https://github.com/adafruit/Adafruit_BusIO/pull/70
2021-11-26 08:16:45 +01:00
Thomas Osterried 9330841bb4 - Webinterface receive log:
- Use time format %Y-%m-%d %H:%M:%S
  - Use real SNR instead of S-value

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2021-11-26 07:55:09 +01:00
Thomas Osterried f4f8a721de Web-interface works now. Found the bugs, fixed them, and testet inensively.
In TTGO_T-Beam_LoRa_APRS.ino I removed unused variable
lora_old_speed
which was still there after removing my debug code which showed previous / current value ;)

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2021-11-25 09:04:57 +01:00
Thomas Osterried 450da6216c Merge branch 'master' of github.com:dl9sau/TTGO-T-Beam-LoRa-APRS 2021-11-25 08:58:30 +01:00
Thomas Osterried 570b24685c Web-interface works now. Found the bugs, fixed them, and testet inensively.
In TTGO_T-Beam_LoRa_APRS.ino I removed unused variable
lora_old_speed
which was still there after removing my debug code which showed previous / current value ;)

Signed-off-by: Thomas Osterried <dl9sau@darc.de>
2021-11-25 08:44:34 +01:00
Thomas Osterried 00c140c78e
Merge branch 'mi-gri:master' into master 2021-11-24 13:40:04 +01:00
Thomas Osterried 30f9b4a94e This commit brings many enhancements (like digipeating), fixes, and cosmetic changes.
(c) 2021 Thomas Osterried dl9sau, License GPL

CAVE:
webconfig does not work properly. This needs to be fixed before the changes could go upstream!
Until then, you can hardcode values in TTGO_T-Beam_LoRa_APRS.ino after the
  "// enforce valid transmissions even on wrong configurations"
  section.
For examples, see appendix 1.

New features

Changes
- improved automatic CodeRate adaption
- Concept for adding SNR+RSSI in packet path. Q23073* means, 23 dB SNR, -73 dB RSSI.
- full smart-beaconing implementation, with default parameters from kenwood / yaesu devices

Changed files:

1. data_embed/index.html
------------------------
- cosmetic changes
- added configuration options for new features described above
- description how to configure DST-call-path-addressing
- make configurable
  - automatic coderate adaption
  - rate limiting comment text
  - My recent "Accept own positions via KISS" feature
  - My recent "Allow GPS sleep while own positions received via KISS" feature
  - LoRa Digipeating
  - LoRa cross-digipeating (Mode, frequency, speed)

2. preference_storage.h
-----------------------
definitions for the new configuration variables

3. platformio.ini
------------------k

Variable MAX_TIME_TO_NEXT_TXT commented out. Was not implemented, and needs not be configured anymore.
Default enabling of
  ENABLE_TNC_SELF_TELEMETRY
switched off because most people do not need this

DIGI_PATH="1": suggestion to make this default

"FIXED_BEACON_EN": switched off, because if you have a tracker with GPS, you do smart-beaconing.
Or if you have no GPS, you need to configure LAT/LONG before enabling fixed beaconing.

"SHOW_BATT": if you really need this, enable it.

"SPEED_1200": most regions use 300.

Typo:
LATIDUDE_PRESET -> changed to LATITUDE_PRESET (also in TTGO_T-Beam_LoRa_APRS.ino)

4. TTGO_T-Beam_LoRa_APRS.ino
----------------------------

global variables:
- -D SPEED_1200 had not effekt. Added appropriete #ifdef.
   Perhaps, "LORA_SPEED_LOW" or "LORA_SPEED_FAST" (like mentioned in the web interface) would be a better approach
- gps state: set default on only at devices with GPS-RX
- New smartbeaconing:
  - values like sb_turn_slope and sb_turn_time
  - if -D SB_ALGO_KENWOOD, use those defaults. Scales better at low speed.

- my new featerus:
  - lora_speed_cross_digi
  - lora_freq_cross_digi

  - lora_automatic_cr_adaption
  - lora_digipeating_mode
  - lora_add_snr_rssi_to_path
  - lora_cross_digipeating_mode
  - acceptOwnLocationReportsViaKiss
  - allow_gps_sleep_while_kiss
  - acceptOwnPositionReportsViaKiss
  - gps_allow_sleep_while_kiss

- added code for new preferences values

- in prepareAPRSFrame()
  - beautified DST-path addition on outString
  - better comment-ratelimiting computation

- loraSend(): small change.
  - If lora freq was changed for sending one packet on another frequency (cross digi mode):
  +  // cross-digipeating may have altered our RX-frequency. Revert frequency change needed for this transmission.
  +  if (lora_FREQ != lora_freq)
  +    rf95.setFrequency(lora_freq);

  - FEATURE request:
    // Feauture request: add param lora_speed. Currently, we need a variable for storing the old speed, and affer loraSend(), we have to revert :(
    I did not change the function parametes without asking

- new sanity check:

  +// enforce valid transmissions even on wrong configurations
  +if (aprsSymbolTable.length() != 1)
  +  aprsSymbolTable = String("/");
  +if (aprsSymbol.length() != 1)
  +  aprsSymbol = String("[");
  +if (aprsLatPreset.length() != 8 || !(aprsLatPreset.endsWith("N") || aprsLatPreset.endsWith("S")) || aprsLatPreset.c_str()[4] != '.')
  +  aprsLatPreset = String("0000.00N");
  +if (aprsLonPreset.length() != 9 || !(aprsLonPreset.endsWith("E") || aprsLonPreset.endsWith("W")) || aprsLonPreset.c_str()[5] != '.')
  +  aprsLonPreset = String("00000.00E");

  -> Without this, and if unconfigured, invalid packets without position in the position-part of the AX.25 packets could occur. Saw this happens, at findu.com ;)

- encode_snr_rssi_in_path():
  My idea of coding SNR and RSSI in packet path. Instead of modifying user's comment text (which some digi software does, and is a really bad idea)
- add_element_to_path():
  a quick, string based option to add a digi element to the AX.25 header
- tnc_format_to_ax25_frame(): header parser, needed for handle_lora_frame_for_lora_digipeating
- handle_lora_frame_for_lora_digipeating: does header rewrite for digipeating
- implemented digipeating and cross-digipeating
- redesignt automatic cr-adatpion
- improved smart-beaconing decisions

5. taskWebServer.cpp:
---------------------
- added code for new preferences values

Appendix 1
----------

I.e. my enforced test settings in  TTGO_T-Beam_LoRa_APRS.ino behind
the block
  "// enforce valid transmissions even on wrong configurations"
were:
  lora_speed = 180;
  lora_digipeating_mode = 2;
  lora_cross_digipeating_mode = 0;
  sb_min_interval = 90000L;
  sb_max_interval = 1800000L;
  lora_automatic_cr_adaption = true;
  lora_speed_cross_digi = 1200;
  lora_freq_cross_digi = 433.900;
  sb_max_speed = 20;
  sb_turn_slope = 11;
  rate_limit_message_text = true;
  acceptOwnPositionReportsViaKiss = true;
  lora_add_snr_rssi_to_path = true;

And in platformio.ini:
       		-D 'KISS_PROTOCOL'				; leave enabled
			-D 'CALLSIGN="DL9SAU-12"'			; can be set from www interface
			-D 'DIGI_PATH="1"'				; can be set from www interface
			; -D 'FIXED_BEACON_EN'			; can be set from www interface
			-D 'SB_ALGO_KENWOOD'				; Kenwood skales better on lower speed.
			-D 'LATITUDE_PRESET="0000.00N"'			; can be set from www interface
			-D 'LONGITUDE_PRESET="00000.00E"'		; can be set from www interface
			-D 'APRS_SYMBOL_TABLE="/"'			; can be set from www interface
			-D 'APRS_SYMBOL="["'				; can be set from www interface
			-D 'MY_COMMENT="/145.500MHz d023/Thomas D23. TTGO-T-Beam LoRa 70cm; KISS-Test"'		; can be set from www interface
			-D 'SHOW_ALT'					; can be set from www interface
			; -D 'SHOW_BATT'				; can be set from www interface
			-D 'SHOW_RX_PACKET'				; can be set from www interface
			-D 'SHOW_RX_TIME=10000' 			; can be set from www interface
			-D 'TXFREQ=433.775'			; set operating frequency
			; -D 'LORA_SPEED_1200'			; comment out to set 300baud
			-D 'TXdbmW=23'				; set power
			; -D 'ENABLE_OLED'				; can be set from www interface
			-D 'ENABLE_LED_SIGNALING'			; can be set from www interface
			-D 'NETWORK_TNC_PORT=8001'		; default KISS TCP port
			; -D 'MAX_TIME_TO_NEXT_TX=120000L'		; can be set from www interface -- not implemented
			-D 'FIX_BEACON_INTERVAL=1800000L'		; can be set from www interface
			-D 'NETWORK_GPS_PORT=10110'		; GPS NMEA Port
			; -D 'ENABLE_TNC_SELF_TELEMETRY'		; can be set from www interface
			-D 'TNC_SELF_TELEMETRY_INTERVAL=3600L'		; can be set from www interface (seconds)
			-D 'SHOW_OLED_TIME=15000'			; an be set from www interface (OLED Timeout)

Signed-off-by: Thomas Osterried <dl9sau@github>
2021-11-24 13:34:04 +01:00
MiGri bbacac4b56
Merge pull request #1 from dl9sau/master
New features (from DL9SAU)
2021-11-17 06:40:32 +01:00
MiGri 3a5af9aca9
Merge branch 'master' into master 2021-11-17 06:39:37 +01:00
MiGri 15cd57b215
Merge branch 'SQ9MDD:master' into master 2021-11-17 06:31:02 +01:00
Rysiek Labus (SQ9MDD) 4fa5001a67
Merge pull request #94 from ge0rg/master
GPS TCP: fix compilation without WiFi
2021-10-28 21:47:46 +02:00
Georg Lukas 5e64d3c0c7 GPS TCP: fix compilation without WiFi
This adds an ifdef around a wifi-specific line introduced in
edee67e798.
2021-10-25 17:43:01 +02:00
MiGri 98f5280274 new logo for the configuration-webpage 2021-10-24 19:06:10 +02:00
MiGri 031dcab8d3
Changed to-Call to APLOXx 2021-10-24 10:51:32 +02:00
MiGri a14e4feb14 The to-call is now APLOBx for this fork with agreement of SQ9MDD 2021-10-23 21:40:01 +02:00
Thomas Osterried 7436a513b0 New features
- automatic CR adption in regions running SF12
  - Algorithm (n packets vs. last heard frame) is a first guess;
    maybe it's a goood choice, maybe it has to be optimized.
  - Rate-Limiting position packets: grace time now honoors CR-value (longer
    wait time in SF12 CR4/8). Makes use of the "lora_speed" definition.
  - Could be ported for other SF's, but there are no other CRs
    (here: "speed rates") defined yet.
  TODO: Make it web-configurable (variable: lora_automatic_cr_adaption = true)

- Text-Messaging
  - if our KISS client (same call+ssid) uses TEXT messaging, beacon indicator
    changes from '!' to '=' (-> signals text messaging capability)
  - If kiss client came via bluetooth and disconnects, we can now instantly
    go back to send own positon packets
2021-10-23 21:16:42 +02:00
MiGri 76595f1369 outString corrected 2021-10-21 21:40:45 +02:00
MiGri 83226ab39e Added more fixes from DL9SAU 2021-10-21 21:06:58 +02:00
MiGri 41fb8a0c08 Fixes from DL9SAU from https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/issues/93 2021-10-21 20:51:53 +02:00
MiGri f140e0a327 Fixes for smart beaconing from DL9SAU from https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/issues/92 2021-10-21 20:39:42 +02:00
MiGri 38340d2490 Fixes from DL9SAU from https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/issues/91 2021-10-21 20:32:56 +02:00
MiGri d6060a4b90 Merged from SQ9MDD 2021-10-16 21:36:14 +02:00
MiGri 9f9e01aac3 Merge branch 'master' of https://github.com/mi-gri/TTGO-T-Beam-LoRa-APRS 2021-10-16 21:32:50 +02:00
MiGri 3214a7b36b Merged from SQ9MDD 2021-10-16 21:29:51 +02:00
Rysiek Labus 14cbcac5d1 Update TTGO_T-Beam_LoRa_APRS.ino 2021-10-16 07:54:16 +02:00
Rysiek Labus 4b4c17e0c2 Update index.html 2021-10-16 07:48:17 +02:00
Rysiek Labus (SQ9MDD) 228037a0cc
Update TTGO_T-Beam_LoRa_APRS.ino
1,5h investigation thanks Thomas.
2021-10-15 22:17:43 +02:00
MiGri 09de0bf71d Merged from SQ9MDD 2021-10-02 20:24:19 +02:00
MiGri 7d5af6da1e
Merge branch 'SQ9MDD:master' into master 2021-10-02 20:16:22 +02:00
Rysiek Labus (SQ9MDD) 4366b3542c
Merge pull request #87 from mi-gri/patch-1
More Tx Modes by DO3BOX
2021-10-02 20:12:57 +02:00
MiGri 81ce66bd0d
Update TTGO_T-Beam_LoRa_APRS.ino 2021-10-02 19:48:18 +02:00
MiGri 9ca6e66880
Update index.html 2021-10-02 19:39:34 +02:00
MiGri ffba4f2ac6
Added more modes
Added more modes, compatible to the old '300bps' mode but with different correction rates. Renamed all modes
2021-10-02 19:36:04 +02:00
MiGri bf4f564701
Added more modes
Added more modes, compatible to the old '300bps' mode but with different correction rates.
2021-10-02 19:32:04 +02:00
MiGri 3d4a25b43c
Added more modes
Added more modes, compatible to the old '300bps' mode but with different correction rates.
2021-10-02 19:30:34 +02:00
MiGri 577055c56d Added more modes, compatible to the old '300bps' mode but with different correction rates. Renamed all modes 2021-09-29 00:57:27 +02:00
MiGri e1cae2112c Change slow mode to Cr 4:8 2021-09-23 22:02:09 +02:00
MiGri 91b4067e86 Revert last change as it produces errors at compiling 2021-09-23 19:39:28 +02:00
MiGri 3aeb7df813 Change slow mode to Cr 4:8 - second line 2021-09-23 19:21:09 +02:00
MiGri f6f7241078 Change slow mode to Cr 4:8 2021-09-23 19:19:11 +02:00
MiGri c8fcc78444 Change default Symbiol to car with L 2021-09-23 19:14:50 +02:00
MiGri 6e2f6f3fd6 Merge remote-tracking branch 'upstream/master' 2021-09-20 21:40:03 +02:00
Rysiek Labus (SQ9MDD) 65e5de10e0
Merge pull request #83 from mi-gri/patch-1
Fix for https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/issues/82
2021-09-20 21:28:33 +02:00
MiGri a0cedb561b Merge remote-tracking branch 'upstream/master' 2021-09-20 21:24:24 +02:00
MiGri 17f0a92875
Fix for https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/issues/82 2021-09-20 21:17:15 +02:00
Rysiek Labus f1246de693 testing 4Hz issue 2021-09-20 21:03:59 +02:00