From d795787c6ccd09cc9c6f8c88a69de79232f04833 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 30 Mar 2020 17:39:03 +0200 Subject: [PATCH] [AX25] Added note about Si443x support --- examples/AX25/AX25_Frames/AX25_Frames.ino | 15 ++++++++------- examples/AX25/AX25_Transmit/AX25_Transmit.ino | 3 ++- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/examples/AX25/AX25_Frames/AX25_Frames.ino b/examples/AX25/AX25_Frames/AX25_Frames.ino index 0d5ae5b6..c6af0ad8 100644 --- a/examples/AX25/AX25_Frames/AX25_Frames.ino +++ b/examples/AX25/AX25_Frames/AX25_Frames.ino @@ -11,6 +11,7 @@ - CC1101 - SX126x - nRF24 + - Si443x/RFM2x Using raw AX.25 frames requires some knowledge of the protocol, refer to @@ -48,7 +49,7 @@ void setup() { int state = fsk.beginFSK(434.0, 1.2, 0.5); // when using one of the non-LoRa modules for AX.25 - // (RF69, CC1101, etc.), use the basic begin() method + // (RF69, CC1101, Si4432 etc.), use the basic begin() method // int state = fsk.begin(); if(state == ERR_NONE) { @@ -83,10 +84,10 @@ void loop() { // control field: UI, P/F not used, unnumbered frame // protocol identifier: no layer 3 protocol implemented // information field: "Hello World!" - AX25Frame frameUI("NJ7P", 0, "N7LEM", 0, AX25_CONTROL_U_UNNUMBERED_INFORMATION | + AX25Frame frameUI("NJ7P", 0, "N7LEM", 0, AX25_CONTROL_U_UNNUMBERED_INFORMATION | AX25_CONTROL_POLL_FINAL_DISABLED | AX25_CONTROL_UNNUMBERED_FRAME, AX25_PID_NO_LAYER_3, "Hello World (unnumbered)!"); - + // send the frame Serial.print(F("[AX.25] Sending UI frame ... ")); int state = ax25.sendFrame(&frameUI); @@ -109,12 +110,12 @@ void loop() { // source station callsign: "N7LEM" // source station SSID: 0 // control field: RR, P/F not used, supervisory frame - AX25Frame frameRR("NJ7P", 0, "N7LEM", 0, AX25_CONTROL_S_RECEIVE_READY | + AX25Frame frameRR("NJ7P", 0, "N7LEM", 0, AX25_CONTROL_S_RECEIVE_READY | AX25_CONTROL_POLL_FINAL_DISABLED | AX25_CONTROL_SUPERVISORY_FRAME); // set receive sequence number (0 - 7) frameRR.setRecvSequence(0); - + // send the frame Serial.print(F("[AX.25] Sending RR frame ... ")); state = ax25.sendFrame(&frameRR); @@ -139,7 +140,7 @@ void loop() { // control field: P/F not used, information frame // protocol identifier: no layer 3 protocol implemented // information field: "Hello World (numbered)!" - AX25Frame frameI("NJ7P", 0, "N7LEM", 0, AX25_CONTROL_POLL_FINAL_DISABLED | + AX25Frame frameI("NJ7P", 0, "N7LEM", 0, AX25_CONTROL_POLL_FINAL_DISABLED | AX25_CONTROL_INFORMATION_FRAME, AX25_PID_NO_LAYER_3, "Hello World (numbered)!"); @@ -148,7 +149,7 @@ void loop() { // set send sequence number (0 - 7) frameI.setSendSequence(0); - + // send the frame Serial.print(F("[AX.25] Sending I frame ... ")); state = ax25.sendFrame(&frameI); diff --git a/examples/AX25/AX25_Transmit/AX25_Transmit.ino b/examples/AX25/AX25_Transmit/AX25_Transmit.ino index ac0eb1d2..0a462eff 100644 --- a/examples/AX25/AX25_Transmit/AX25_Transmit.ino +++ b/examples/AX25/AX25_Transmit/AX25_Transmit.ino @@ -11,6 +11,7 @@ - CC1101 - SX126x - nRF24 + - Si443x/RFM2x */ // include the library @@ -41,7 +42,7 @@ void setup() { int state = fsk.beginFSK(434.0, 1.2, 0.5); // when using one of the non-LoRa modules for AX.25 - // (RF69, CC1101, etc.), use the basic begin() method + // (RF69, CC1101,, Si4432 etc.), use the basic begin() method // int state = fsk.begin(); if(state == ERR_NONE) {