kopia lustrzana https://github.com/jgromes/RadioLib
[AX25] Added note about Si443x support
rodzic
43295e6827
commit
d795787c6c
|
@ -11,6 +11,7 @@
|
||||||
- CC1101
|
- CC1101
|
||||||
- SX126x
|
- SX126x
|
||||||
- nRF24
|
- nRF24
|
||||||
|
- Si443x/RFM2x
|
||||||
|
|
||||||
Using raw AX.25 frames requires some
|
Using raw AX.25 frames requires some
|
||||||
knowledge of the protocol, refer to
|
knowledge of the protocol, refer to
|
||||||
|
@ -48,7 +49,7 @@ void setup() {
|
||||||
int state = fsk.beginFSK(434.0, 1.2, 0.5);
|
int state = fsk.beginFSK(434.0, 1.2, 0.5);
|
||||||
|
|
||||||
// when using one of the non-LoRa modules for AX.25
|
// 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();
|
// int state = fsk.begin();
|
||||||
|
|
||||||
if(state == ERR_NONE) {
|
if(state == ERR_NONE) {
|
||||||
|
@ -83,10 +84,10 @@ void loop() {
|
||||||
// control field: UI, P/F not used, unnumbered frame
|
// control field: UI, P/F not used, unnumbered frame
|
||||||
// protocol identifier: no layer 3 protocol implemented
|
// protocol identifier: no layer 3 protocol implemented
|
||||||
// information field: "Hello World!"
|
// 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_CONTROL_POLL_FINAL_DISABLED | AX25_CONTROL_UNNUMBERED_FRAME,
|
||||||
AX25_PID_NO_LAYER_3, "Hello World (unnumbered)!");
|
AX25_PID_NO_LAYER_3, "Hello World (unnumbered)!");
|
||||||
|
|
||||||
// send the frame
|
// send the frame
|
||||||
Serial.print(F("[AX.25] Sending UI frame ... "));
|
Serial.print(F("[AX.25] Sending UI frame ... "));
|
||||||
int state = ax25.sendFrame(&frameUI);
|
int state = ax25.sendFrame(&frameUI);
|
||||||
|
@ -109,12 +110,12 @@ void loop() {
|
||||||
// source station callsign: "N7LEM"
|
// source station callsign: "N7LEM"
|
||||||
// source station SSID: 0
|
// source station SSID: 0
|
||||||
// control field: RR, P/F not used, supervisory frame
|
// 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);
|
AX25_CONTROL_POLL_FINAL_DISABLED | AX25_CONTROL_SUPERVISORY_FRAME);
|
||||||
|
|
||||||
// set receive sequence number (0 - 7)
|
// set receive sequence number (0 - 7)
|
||||||
frameRR.setRecvSequence(0);
|
frameRR.setRecvSequence(0);
|
||||||
|
|
||||||
// send the frame
|
// send the frame
|
||||||
Serial.print(F("[AX.25] Sending RR frame ... "));
|
Serial.print(F("[AX.25] Sending RR frame ... "));
|
||||||
state = ax25.sendFrame(&frameRR);
|
state = ax25.sendFrame(&frameRR);
|
||||||
|
@ -139,7 +140,7 @@ void loop() {
|
||||||
// control field: P/F not used, information frame
|
// control field: P/F not used, information frame
|
||||||
// protocol identifier: no layer 3 protocol implemented
|
// protocol identifier: no layer 3 protocol implemented
|
||||||
// information field: "Hello World (numbered)!"
|
// 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,
|
AX25_CONTROL_INFORMATION_FRAME, AX25_PID_NO_LAYER_3,
|
||||||
"Hello World (numbered)!");
|
"Hello World (numbered)!");
|
||||||
|
|
||||||
|
@ -148,7 +149,7 @@ void loop() {
|
||||||
|
|
||||||
// set send sequence number (0 - 7)
|
// set send sequence number (0 - 7)
|
||||||
frameI.setSendSequence(0);
|
frameI.setSendSequence(0);
|
||||||
|
|
||||||
// send the frame
|
// send the frame
|
||||||
Serial.print(F("[AX.25] Sending I frame ... "));
|
Serial.print(F("[AX.25] Sending I frame ... "));
|
||||||
state = ax25.sendFrame(&frameI);
|
state = ax25.sendFrame(&frameI);
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
- CC1101
|
- CC1101
|
||||||
- SX126x
|
- SX126x
|
||||||
- nRF24
|
- nRF24
|
||||||
|
- Si443x/RFM2x
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// include the library
|
// include the library
|
||||||
|
@ -41,7 +42,7 @@ void setup() {
|
||||||
int state = fsk.beginFSK(434.0, 1.2, 0.5);
|
int state = fsk.beginFSK(434.0, 1.2, 0.5);
|
||||||
|
|
||||||
// when using one of the non-LoRa modules for AX.25
|
// 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();
|
// int state = fsk.begin();
|
||||||
|
|
||||||
if(state == ERR_NONE) {
|
if(state == ERR_NONE) {
|
||||||
|
|
Ładowanie…
Reference in New Issue