You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the FS-2 sketch, message store and forwarding is supported by the folling code
case 'b':
addStoreAndForward(0x1337BEEF, "Hello there!");
break;
I'm not a programmer, but it appears that 0x1337BEEF is a memory address? Is there a limit on the numberof characters which may be sent to this address?
Also, please comment on the code below. This is intended to send a message (up to 32 characters) but unclear to me how to specify the correct memory address.
//adapted from code provided by K4KDR
String myCall="N6RFM";
String mySFtext="Hello from";
voidsendSF() {
// get data to be stored and forwardedchar optData[32];
// text to transmit + some additional underscores for blank space after
String cq = mySFtext + myCall + "";
// Length (with one extra character for the null terminator)int str_len = cq.length() + 1;
cq.toCharArray(optData, str_len);
Serial.println();
Serial.print(F("Sending Store annd Forward text "));
// data to transmituint8_t functionId = CMD_STORE_AND_FORWARD_ADD; //unclear how to specify target memory address ?0x1337BEEFuint8_t optDataLen = strlen(optData);
// build frameuint8_t len = FCP_Get_Frame_Length(callsign, optDataLen);
uint8_t* frame = newuint8_t[len];
FCP_Encode(frame, callsign, functionId, optDataLen, (uint8_t*)optData);
// send dataint state = radio.transmit(frame, len);
delete[] frame;
Thanks so much!
Bob N6RFM
The text was updated successfully, but these errors were encountered:
0x1337BEEF is a 4-byte ID for your message, chosen by the user (see the communication protocol specs). If you want to request the saved message later, you send the ID and the satellite will return the message with that ID. If you send a message with the same ID, the original one will be overwritten.
The above link also contains information on how to specify the ID (it's the first 4 bytes of optional data), as well as the maximum message length (28 bytes).
Hi,
In the FS-2 sketch, message store and forwarding is supported by the folling code
case 'b':
addStoreAndForward(0x1337BEEF, "Hello there!");
break;
I'm not a programmer, but it appears that 0x1337BEEF is a memory address? Is there a limit on the numberof characters which may be sent to this address?
Also, please comment on the code below. This is intended to send a message (up to 32 characters) but unclear to me how to specify the correct memory address.
Thanks so much!
Bob N6RFM
The text was updated successfully, but these errors were encountered: