Skip to content

Commit e76516f

Browse files
committed
Add SubscribeStar info
2 parents c5403da + 2e472f0 commit e76516f

10 files changed

Lines changed: 804 additions & 46 deletions

File tree

README.md

Lines changed: 46 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
JT65/JT9/JT4/WSPR/FSQ Encoder Library for Arduino
2-
=============================================
3-
This library very simply generates a set of channel symbols for JT65, JT9, JT4, or WSPR based on the user providing a properly formatted Type 6 message for JT65, JT9, or JT4 (which is 13 valid characters) or a callsign, Maidenhead grid locator, and power output for WSPR. It will also generate an arbitrary FSQ message of up to 200 characters in both directed and non-directed format. When paired with a synthesizer that can output frequencies in fine, phase-continuous tuning steps (such as the Si5351), then a beacon or telemetry transmitter can be created which can change the transmitted characters as needed from the Arduino.
2+
=================================================
3+
4+
This library very simply generates a set of channel symbols for JT65, JT9, JT4, FT8, or WSPR based on the user providing a properly formatted Type 6 message for JT65, JT9, or JT4 (which is 13 valid characters), Type 0.0 or 0.5 message for FT8 (v2.0.0 protocol) or a callsign, Maidenhead grid locator, and power output for WSPR. It will also generate an arbitrary FSQ message of up to 200 characters in both directed and non-directed format. When paired with a synthesizer that can output frequencies in fine, phase-continuous tuning steps (such as the Si5351), then a beacon or telemetry transmitter can be created which can change the transmitted characters as needed from the Arduino.
45

56
Please feel free to use the issues feature of GitHub if you run into problems or have suggestions for important features to implement.
67

@@ -28,7 +29,7 @@ There is a simple example that is placed in your examples menu under JTEncode. O
2829

2930
To run this example, be sure to download the [Si5351Arduino](https://github.com/etherkit/Si5351Arduino) library and follow the instructions there to connect the Si5351A Breakout Board to your Arduino. In order to trigger transmissions, you will also need to connect a momentary pushbutton from pin 12 of the Arduino to ground.
3031

31-
The example sketch itself is fairly straightforward. JT65, JT9, JT4, WSPR, and FSQ modes are modulated in same way: phase-continuous multiple-frequency shift keying (MFSK). The message to be transmitted is passed to the JTEncode method corresponding to the desired mode, along with a pointer to an array which holds the returned channel symbols. When the pushbutton is pushed, the sketch then transmits each channel symbol sequentially as an offset from the base frequency given in the sketch define section.
32+
The example sketch itself is fairly straightforward. JT65, JT9, JT4, FT8, WSPR, and FSQ modes are modulated in same way: phase-continuous multiple-frequency shift keying (MFSK). The message to be transmitted is passed to the JTEncode method corresponding to the desired mode, along with a pointer to an array which holds the returned channel symbols. When the pushbutton is pushed, the sketch then transmits each channel symbol sequentially as an offset from the base frequency given in the sketch define section.
3233

3334
An instance of the JTEncode object is created:
3435

@@ -64,6 +65,12 @@ On sketch startup, the mode parameters are set based on which mode is currently
6465
tone_spacing = WSPR_TONE_SPACING;
6566
tone_delay = WSPR_DELAY;
6667
break;
68+
case MODE_FT8:
69+
freq = FT8_DEFAULT_FREQ;
70+
symbol_count = FT8_SYMBOL_COUNT; // From the library defines
71+
tone_spacing = FT8_TONE_SPACING;
72+
tone_delay = FT8_DELAY;
73+
break;
6774
case MODE_FSQ_2:
6875
freq = FSQ_DEFAULT_FREQ;
6976
tone_spacing = FSQ_TONE_SPACING;
@@ -105,6 +112,9 @@ Before transmit, the proper class method is chosen based on the desired mode, th
105112
case MODE_WSPR:
106113
jtencode.wspr_encode(call, loc, dbm, tx_buffer);
107114
break;
115+
case MODE_FT8:
116+
jtencode.ft_encode(message, tx_buffer);
117+
break;
108118
case MODE_FSQ_2:
109119
case MODE_FSQ_3:
110120
case MODE_FSQ_4_5:
@@ -135,8 +145,8 @@ Public Methods
135145
* a channel symbol table.
136146
*
137147
* message - Plaintext Type 6 message.
138-
* symbols - Array of channel symbols to transmit retunred by the method.
139-
* Ensure that you pass a uint8_t array of size JT65_SYMBOL_COUNT to the method.
148+
* symbols - Array of channel symbols to transmit returned by the method.
149+
* Ensure that you pass a uint8_t array of at least size JT65_SYMBOL_COUNT to the method.
140150
*
141151
*/
142152
```
@@ -149,8 +159,8 @@ Public Methods
149159
* a channel symbol table.
150160
*
151161
* message - Plaintext Type 6 message.
152-
* symbols - Array of channel symbols to transmit retunred by the method.
153-
* Ensure that you pass a uint8_t array of size JT9_SYMBOL_COUNT to the method.
162+
* symbols - Array of channel symbols to transmit returned by the method.
163+
* Ensure that you pass a uint8_t array of at least size JT9_SYMBOL_COUNT to the method.
154164
*
155165
*/
156166
```
@@ -164,8 +174,8 @@ Public Methods
164174
* a channel symbol table.
165175
*
166176
* message - Plaintext Type 6 message.
167-
* symbols - Array of channel symbols to transmit retunred by the method.
168-
* Ensure that you pass a uint8_t array of size JT9_SYMBOL_COUNT to the method.
177+
* symbols - Array of channel symbols to transmit returned by the method.
178+
* Ensure that you pass a uint8_t array of at least size JT9_SYMBOL_COUNT to the method.
169179
*
170180
*/
171181
```
@@ -178,14 +188,30 @@ Public Methods
178188
* Takes an arbitrary message of up to 13 allowable characters and returns
179189
*
180190
* call - Callsign (6 characters maximum).
181-
* loc - Maidenhead grid locator (4 charcters maximum).
191+
* loc - Maidenhead grid locator (4 characters maximum).
182192
* dbm - Output power in dBm.
183-
* symbols - Array of channel symbols to transmit retunred by the method.
184-
* Ensure that you pass a uint8_t array of size WSPR_SYMBOL_COUNT to the method.
193+
* symbols - Array of channel symbols to transmit returned by the method.
194+
* Ensure that you pass a uint8_t array of at least size WSPR_SYMBOL_COUNT to the method.
185195
*
186196
*/
187197
```
188198

199+
### ft8_encode()
200+
```
201+
/*
202+
* ft8_encode(const char * message, uint8_t * symbols)
203+
*
204+
* Takes an arbitrary message of up to 13 allowable characters or a telemetry message
205+
* of up to 18 hexadecimal digit (in string format) and returns a channel symbol table.
206+
* Encoded for the FT8 protocol used in WSJT-X v2.0 and beyond (79 channel symbols).
207+
*
208+
* message - Type 0.0 free text message or Type 0.5 telemetry message.
209+
* symbols - Array of channel symbols to transmit returned by the method.
210+
* Ensure that you pass a uint8_t array of at least size FT8_SYMBOL_COUNT to the method.
211+
*
212+
*/
213+
```
214+
189215
### fsq_encode()
190216
```
191217
/*
@@ -195,7 +221,7 @@ Public Methods
195221
*
196222
* from_call - Callsign of issuing station (maximum size: 20)
197223
* message - Null-terminated message string, no greater than 130 chars in length
198-
* symbols - Array of channel symbols to transmit retunred by the method.
224+
* symbols - Array of channel symbols to transmit returned by the method.
199225
* Ensure that you pass a uint8_t array of at least the size of the message
200226
* plus 5 characters to the method. Terminated in 0xFF.
201227
*
@@ -213,7 +239,7 @@ Public Methods
213239
* to_call - Callsign to which message is directed (maximum size: 20)
214240
* cmd - Directed command
215241
* message - Null-terminated message string, no greater than 100 chars in length
216-
* symbols - Array of channel symbols to transmit retunred by the method.
242+
* symbols - Array of channel symbols to transmit returned by the method.
217243
* Ensure that you pass a uint8_t array of at least the size of the message
218244
* plus 5 characters to the method. Terminated in 0xFF.
219245
*
@@ -226,16 +252,20 @@ Here are the defines, structs, and enumerations you will find handy to use with
226252

227253
Defines:
228254

229-
JT65_SYMBOL_COUNT, JT9_SYMBOL_COUNT, JT4_SYMBOL_COUNT, WSPR_SYMBOL_COUNT
255+
JT65_SYMBOL_COUNT, JT9_SYMBOL_COUNT, JT4_SYMBOL_COUNT, WSPR_SYMBOL_COUNT, FT8_SYMBOL_COUNT
230256

231257
Acknowledgements
232258
----------------
233-
Many thanks to Joe Taylor K1JT for his innovative work in amateur radio. We are lucky to have him. The algorithms in this program were derived from the source code in the [WSJT](http://sourceforge.net/projects/wsjt/) suite of applications. Also, many thanks for Andy Talbot G4JNT for [his paper](http://www.g4jnt.com/JTModesBcns.htm) on the WSPR coding protocol, which helped me to understand the WSPR encoding process, which in turn helped me to understand the related JT protocols.
259+
Many thanks to Joe Taylor K1JT for his innovative work in amateur radio. We are lucky to have him. The algorithms in this program were derived from the source code in the [WSJT-X](https://sourceforge.net/p/wsjt/) suite of applications. Also, many thanks for Andy Talbot G4JNT for [his paper](http://www.g4jnt.com/JTModesBcns.htm) on the WSPR coding protocol, which helped me to understand the WSPR encoding process, which in turn helped me to understand the related JT protocols.
234260

235261
Also, a big thank you to Murray Greenman, ZL1BPU for working allowing me to pick his brain regarding his neat new mode FSQ.
236262

237263
Changelog
238264
---------
265+
* v1.2.0
266+
267+
* Add support for FT8 protocol (79 symbol version introduced December 2018)
268+
239269
* v1.1.3
240270

241271
* Add support for ESP8266

examples/Si5351JTDemo/Si5351JTDemo.ino

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//
2-
// Simple JT65/JT9/WSPR/FSQ beacon for Arduino, with the Etherkit
2+
// Simple JT65/JT9/JT4/FT8/WSPR/FSQ beacon for Arduino, with the Etherkit
33
// Si5351A Breakout Board, by Jason Milldrum NT7S.
44
//
55
// Transmit an abritrary message of up to 13 valid characters
6-
// (a Type 6 message) in JT65 and JT9, or a standard Type 1
7-
// message in WSPR.
6+
// (a Type 6 message) in JT65, JT9, JT4, a type 0.0 or type 0.5 FT8 message,
7+
// a FSQ message, or a standard Type 1 message in WSPR.
88
//
99
// Connect a momentary push button to pin 12 to use as the
1010
// transmit trigger. Get fancy by adding your own code to trigger
@@ -43,11 +43,12 @@
4343
#include "Wire.h"
4444

4545
// Mode defines
46-
#define JT9_TONE_SPACING 174 // ~1.74 Hz
47-
#define JT65_TONE_SPACING 269 // ~2.69 Hz
48-
#define JT4_TONE_SPACING 437 // ~4.37 Hz
49-
#define WSPR_TONE_SPACING 146 // ~1.46 Hz
50-
#define FSQ_TONE_SPACING 879 // ~8.79 Hz
46+
#define JT9_TONE_SPACING 174 // ~1.74 Hz
47+
#define JT65_TONE_SPACING 269 // ~2.69 Hz
48+
#define JT4_TONE_SPACING 437 // ~4.37 Hz
49+
#define WSPR_TONE_SPACING 146 // ~1.46 Hz
50+
#define FSQ_TONE_SPACING 879 // ~8.79 Hz
51+
#define FT8_TONE_SPACING 625 // ~6.25 Hz
5152

5253
#define JT9_DELAY 576 // Delay value for JT9-1
5354
#define JT65_DELAY 371 // Delay in ms for JT65A
@@ -57,12 +58,14 @@
5758
#define FSQ_3_DELAY 333 // Delay value for 3 baud FSQ
5859
#define FSQ_4_5_DELAY 222 // Delay value for 4.5 baud FSQ
5960
#define FSQ_6_DELAY 167 // Delay value for 6 baud FSQ
61+
#define FT8_DELAY 159 // Delay value for FT8
6062

6163
#define JT9_DEFAULT_FREQ 14078700UL
6264
#define JT65_DEFAULT_FREQ 14078300UL
6365
#define JT4_DEFAULT_FREQ 14078500UL
6466
#define WSPR_DEFAULT_FREQ 14097200UL
6567
#define FSQ_DEFAULT_FREQ 7105350UL // Base freq is 1350 Hz higher than dial freq in USB
68+
#define FT8_DEFAULT_FREQ 14075000UL
6669

6770
#define DEFAULT_MODE MODE_JT65
6871

@@ -72,7 +75,7 @@
7275

7376
// Enumerations
7477
enum mode {MODE_JT9, MODE_JT65, MODE_JT4, MODE_WSPR, MODE_FSQ_2, MODE_FSQ_3,
75-
MODE_FSQ_4_5, MODE_FSQ_6};
78+
MODE_FSQ_4_5, MODE_FSQ_6, MODE_FT8};
7679

7780
// Class instantiation
7881
Si5351 si5351;
@@ -139,6 +142,9 @@ void set_tx_buffer()
139142
case MODE_WSPR:
140143
jtencode.wspr_encode(call, loc, dbm, tx_buffer);
141144
break;
145+
case MODE_FT8:
146+
jtencode.ft8_encode(message, tx_buffer);
147+
break;
142148
case MODE_FSQ_2:
143149
case MODE_FSQ_3:
144150
case MODE_FSQ_4_5:
@@ -193,6 +199,12 @@ void setup()
193199
tone_spacing = WSPR_TONE_SPACING;
194200
tone_delay = WSPR_DELAY;
195201
break;
202+
case MODE_FT8:
203+
freq = FT8_DEFAULT_FREQ;
204+
symbol_count = FT8_SYMBOL_COUNT; // From the library defines
205+
tone_spacing = FT8_TONE_SPACING;
206+
tone_delay = FT8_DELAY;
207+
break;
196208
case MODE_FSQ_2:
197209
freq = FSQ_DEFAULT_FREQ;
198210
tone_spacing = FSQ_TONE_SPACING;

keywords.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ jt65_encode KEYWORD2
44
jt9_encode KEYWORD2
55
jt4_encode KEYWORD2
66
wspr_encode KEYWORD2
7+
ft8_encode KEYWORD2
78
fsq_encode KEYWORD2
89
fsq_dir_encode KEYWORD2
910

1011
JT65_SYMBOL_COUNT LITERAL1
1112
JT9_SYMBOL_COUNT LITERAL1
13+
JT4_SYMBOL_COUNT LITERAL1
1214
WSPR_SYMBOL_COUNT LITERAL1
15+
FT8_SYMBOL_COUNT LITERAL1
1316
JT65_ENCODE_COUNT LITERAL1
1417
JT9_ENCODE_COUNT LITERAL1
18+
FT8_ENCODE_COUNT LITERAL1
1519
JT9_BIT_COUNT LITERAL1
20+
JT4_BIT_COUNT LITERAL1
1621
WSPR_BIT_COUNT LITERAL1
22+
FT8_BIT_COUNT LITERAL1

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=Etherkit JTEncode
2-
version=1.1.3
2+
version=1.2.0
33
author=Jason Milldrum <milldrum@gmail.com>
44
maintainer=Jason Milldrum <milldrum@gmail.com>
5-
sentence=Generate JT65, JT9, JT4, WSPR, and FSQ symbols on your Arduino.
6-
paragraph=This library very simply generates a set of channel symbols for JT65, JT9, JT4, or WSPR based on the user providing a properly formatted Type 6 message for JT65, JT9, or JT4 (which is 13 valid characters) or a callsign, Maidenhead grid locator, and power output for WSPR. It will also generate an arbitrary FSQ message of up to 200 characters in both directed and non-directed format. When paired with a synthesizer that can output frequencies in fine, phase-continuous tuning steps (such as the Si5351), then a beacon or telemetry transmitter can be created which can change the transmitted characters as needed from the Arduino.
5+
sentence=Generate JT65, JT9, JT4, FT8, WSPR, and FSQ symbols on your Arduino.
6+
paragraph=This library very simply generates a set of channel symbols for JT65, JT9, JT4, FT8, or WSPR based on the user providing a properly formatted Type 6 message for JT65, JT9, or JT4 (which is 13 valid characters), Type 0.0 or 0.5 message for FT8 (v2.0.0 protocol) or a callsign, Maidenhead grid locator, and power output for WSPR. It will also generate an arbitrary FSQ message of up to 200 characters in both directed and non-directed format. When paired with a synthesizer that can output frequencies in fine, phase-continuous tuning steps (such as the Si5351), then a beacon or telemetry transmitter can be created which can change the transmitted characters as needed from the Arduino.
77
category=Data Processing
88
url=https://github.com/etherkit/JTEncode
99
architectures=*

0 commit comments

Comments
 (0)