mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-12-06 07:37:38 +00:00
FRSKYA: exact 300 kHz channel steps (#1223)
ACCESS gear hops on 2403.970 MHz + n x 300 kHz. CHANNR's 299.93 kHz steps put the bind channel (239) 17.5 kHz low, too much on top of the module's own offset for the narrow filter of the Archer receivers (an Archer GR8 only registered and bound with a large tune). The option now goes to FSCTRL0 with 3/64 steps (73.4 Hz) per channel. Bench: the bind channel within 2 kHz of the register channel (was -16.5 kHz), hops 0 to +5 kHz. T-Lite AIR: +32 bytes, still fits. Co-authored-by: Raphael Coeffic <1050031+raphaelcoeffic@users.noreply.github.com>
This commit is contained in:
1 parent
bbca98d58d
commit
fd08975a03
2 files changed
+8
-5
No files matched your search
@@ -18,7 +18,9 @@
|
|||||||
|
|
||||||
CC2500: 125 kbps 2-FSK, 69.8 kHz deviation, sync D391 sent twice (TX), the
|
CC2500: 125 kbps 2-FSK, 69.8 kHz deviation, sync D391 sent twice (TX), the
|
||||||
receiver's replies on 89CB, variable length, CRC. Channel n at 2403.97 MHz
|
receiver's replies on 89CB, variable length, CRC. Channel n at 2403.97 MHz
|
||||||
+ n x 300 kHz (CHANNR, 299.93 kHz steps as Mike's UNI ACCESS). Every 7 ms
|
+ n x 300 kHz exactly, as the ISRM: CHANNR's 299.93 kHz steps (17.5 kHz low
|
||||||
|
at the bind channel 239, too much for the narrow filter of the Archer
|
||||||
|
receivers) corrected by FSCTRL0. Every 7 ms
|
||||||
a 33-byte frame on the next hop, the receiver's 18-byte reply 3.97 ms
|
a 33-byte frame on the next hop, the receiver's 18-byte reply 3.97 ms
|
||||||
after its sync word on the same channel.
|
after its sync word on the same channel.
|
||||||
|
|
||||||
@@ -437,7 +439,6 @@ uint16_t FRSKYA_callback()
|
|||||||
#ifdef MULTI_SYNC
|
#ifdef MULTI_SYNC
|
||||||
telemetry_set_input_sync(FRSKYA_PERIOD);
|
telemetry_set_input_sync(FRSKYA_PERIOD);
|
||||||
#endif
|
#endif
|
||||||
CC2500_SetFreqOffset();
|
|
||||||
CC2500_SetPower();
|
CC2500_SetPower();
|
||||||
uint8_t ch;
|
uint8_t ch;
|
||||||
if(FrSkyA_mode != FRSKYA_DATA && IS_BIND_DONE)
|
if(FrSkyA_mode != FRSKYA_DATA && IS_BIND_DONE)
|
||||||
@@ -461,6 +462,8 @@ uint16_t FRSKYA_callback()
|
|||||||
FrSkyA_setup_frame(FrSkyA_mode + 1);
|
FrSkyA_setup_frame(FrSkyA_mode + 1);
|
||||||
}
|
}
|
||||||
FrSkyX_set_start(ch);
|
FrSkyX_set_start(ch);
|
||||||
|
// The option + n x 73.3 Hz: 3/64 FSCTRL0 steps (1587 Hz) per channel
|
||||||
|
CC2500_WriteReg(CC2500_0C_FSCTRL0, option + ((hopping_frequency[ch] * 3 + 32) >> 6));
|
||||||
FrSkyA_set_sync(0xD391);
|
FrSkyA_set_sync(0xD391);
|
||||||
CC2500_SetTxRxMode(TX_EN);
|
CC2500_SetTxRxMode(TX_EN);
|
||||||
CC2500_Strobe(CC2500_SFTX);
|
CC2500_Strobe(CC2500_SFTX);
|
||||||
@@ -535,8 +538,8 @@ void FRSKYA_init()
|
|||||||
FRSKY_init_cc2500(FRSKYA_cc2500_conf);
|
FRSKY_init_cc2500(FRSKYA_cc2500_conf);
|
||||||
// Frequency offset compensation only once a carrier is there (10 dB over
|
// Frequency offset compensation only once a carrier is there (10 dB over
|
||||||
// the noise): left running on noise before the reply, it drifts and 15 %
|
// the noise): left running on noise before the reply, it drifts and 15 %
|
||||||
// of the replies were missed. Without it, 15 % fail the CRC (the RX6R is
|
// of the replies were missed. Without it, 15 % failed the CRC (before the
|
||||||
// on 300 kHz steps, the CC2500 on 299.93 kHz).
|
// FSCTRL0 correction of the CHANNR steps).
|
||||||
CC2500_WriteReg(CC2500_19_FOCCFG, 0x36);
|
CC2500_WriteReg(CC2500_19_FOCCFG, 0x36);
|
||||||
CC2500_WriteReg(CC2500_1C_AGCCTRL1, 0x68);
|
CC2500_WriteReg(CC2500_1C_AGCCTRL1, 0x68);
|
||||||
for(uint8_t c = 0; c <= FRSKYA_BIND_CH; c++)
|
for(uint8_t c = 0; c <= FRSKYA_BIND_CH; c++)
|
||||||
|
|||||||
@@ -967,7 +967,7 @@ Telemetry enabled for A1 (RxBatt), RSSI, TX_RSSI, TX_LQI and the S.Port sensors,
|
|||||||
|
|
||||||
The receiver options (outputs, telemetry, F.Port/S.Bus...) are set with the [FrSky ACCESS RX script](https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/tree/master/Lua_scripts#frsky-access-rx).
|
The receiver options (outputs, telemetry, F.Port/S.Bus...) are set with the [FrSky ACCESS RX script](https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/tree/master/Lua_scripts#frsky-access-rx).
|
||||||
|
|
||||||
Option for this protocol corresponds to fine frequency tuning, as FrskyX. Check the [Frequency Tuning page](/docs/Frequency_Tuning.md) to determine it.
|
Option for this protocol corresponds to fine frequency tuning, as FrskyX. Check the [Frequency Tuning page](/docs/Frequency_Tuning.md) to determine it. The Archer receivers (for example the Archer GR8) have a narrow receive filter: if one does not register or bind, the module's frequency is likely off and needs tuning.
|
||||||
|
|
||||||
Bind: a receiver is registered to the module, then bound, both during the same bind:
|
Bind: a receiver is registered to the module, then bound, both during the same bind:
|
||||||
- put the receiver in register mode (RX6R: hold its bind button while powering it until the LEDs alternate; Archer Plus: see its manual) and start the bind on the radio
|
- put the receiver in register mode (RX6R: hold its bind button while powering it until the LEDs alternate; Archer Plus: see its manual) and start the bind on the radio
|
||||||
|
|||||||
Reference in new issue
Block a user