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
I'm in the process of creating an additional feature to send the alpine REGA distress signal. This is a five digit ZVEI sequence, sent on a specific frequency. The aim is to send a reque alert to the REGA network. Further communication is like normal radio traffic on the same frequency. There is also a CTCSS tone squelch in use.
My code will have two entry points 'REGA Alert' and 'REGA Test', assignable to any configurable button, like button2 long press. Triggering the function should change to the special frequency, set the CTCSS parameter, put the transmitter in high power, send out the ZVEI sequence and leave the transmitter in the same settings for further communication.
I found the function calls and stitched something together, which partially works. I can set the radio parameters and send out the ZVEI, but the settings dont stick, the radio falls back on the settings before the alert call.
Here my actual code, hacked together, but only partially working.
The ZVEI is sent out on the correct frequency
The change to frequency, power, etc. are not persistant
How can I display a message on the LCD, what I tried below does not work
// Set the frequency to 161,300 Mhz
gTxVfo->freq_config_RX.Frequency = REGA_FREQUENCY;
gCurrentVfo->pTX->Frequency = REGA_FREQUENCY;
BK4819_SetFrequency(REGA_FREQUENCY);
// Set the modulation to FM narrow, no offset
gTxVfo->Modulation = MODULATION_FM;
gTxVfo->CHANNEL_BANDWIDTH = BK4819_FILTER_BW_NARROW;
ACTION_Remove_Offset();
// Set Squelch Tone
BK4819_SetCTCSSFrequency(REGA_CTCSS);
// Set the transmit power to high
ACTION_Power_High();
// Display message
UI_DisplayClear();
UI_PrintString(message0, 0, 127, 0, 10);
UI_PrintString(message1, 0, 127, 2, 10);
// Set the radio to transmit mode
RADIO_PrepareCssTX();
// Wait to allow the radio to switch to transmit mode and stabilize the transmitter
SYSTEM_DelayMs(ZVEI_PRE_LENGTH_MS);
// Send out the ZVEI2 tone sequence
for (int i = 0; i < ZVEI_NUM_TONES; i++)
{
BK4819_PlaySingleTone(tones[i], ZVEI_TONE_LENGTH_MS, 100, true);
SYSTEM_DelayMs(ZVEI_PAUSE_LENGTH_MS);
}
// Wait to allow the radio to finish transmitting
SYSTEM_DelayMs(ZVEI_POST_LENGTH_MS);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm in the process of creating an additional feature to send the alpine REGA distress signal. This is a five digit ZVEI sequence, sent on a specific frequency. The aim is to send a reque alert to the REGA network. Further communication is like normal radio traffic on the same frequency. There is also a CTCSS tone squelch in use.
My code will have two entry points 'REGA Alert' and 'REGA Test', assignable to any configurable button, like button2 long press. Triggering the function should change to the special frequency, set the CTCSS parameter, put the transmitter in high power, send out the ZVEI sequence and leave the transmitter in the same settings for further communication.
I found the function calls and stitched something together, which partially works. I can set the radio parameters and send out the ZVEI, but the settings dont stick, the radio falls back on the settings before the alert call.
Here my actual code, hacked together, but only partially working.
Beta Was this translation helpful? Give feedback.
All reactions