Skip to content

Commit d9f8a39

Browse files
committed
FX/FX620: only 1 ID
1 parent 416f7d5 commit d9f8a39

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

Multiprotocol/FX_nrf24l01.ino

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Multiprotocol is distributed in the hope that it will be useful,
1818

1919
#include "iface_xn297.h"
2020

21-
#define FX_INITIAL_WAIT 500
2221
#define FX_BIND_COUNT 300 //3sec
2322
#define FX_SWITCH 20
2423
#define FX_NUM_CHANNELS 4
@@ -74,6 +73,8 @@ static void __attribute__((unused)) FX_send_packet()
7473
{
7574
memcpy(packet,rx_tx_addr,3);
7675
packet[3] = hopping_frequency[0];
76+
if(bind_counter > (FX_BIND_COUNT >> 1))
77+
packet[5] = 0x78;
7778
}
7879
else
7980
{
@@ -108,11 +109,15 @@ static void __attribute__((unused)) FX_RF_init()
108109
{
109110
XN297_SetTXAddr((uint8_t *)"\xcc\xcc\xcc\xcc\xcc", 5);
110111
XN297_RFChannel(FX816_BIND_CHANNEL);
112+
packet_period = FX816_PACKET_PERIOD;
113+
packet_length = FX816_PAYLOAD_SIZE;
111114
}
112115
else //FX620
113116
{
114117
XN297_SetTXAddr((uint8_t *)"\xaa\xbb\xcc", 3);
115118
XN297_RFChannel(FX620_BIND_CHANNEL);
119+
packet_period = FX620_BIND_PACKET_PERIOD;
120+
packet_length = FX620_PAYLOAD_SIZE;
116121
}
117122
}
118123

@@ -127,9 +132,6 @@ static void __attribute__((unused)) FX_initialize_txid()
127132
memcpy(hopping_frequency,"\x09\x1B\x30\x42",FX_NUM_CHANNELS); //Original dump=9=0x09,27=0x1B,48=0x30,66=0x42
128133
for(uint8_t i=0;i<FX_NUM_CHANNELS;i++)
129134
hopping_frequency[i]+=rx_tx_addr[3]&0x07;
130-
131-
packet_length = FX816_PAYLOAD_SIZE;
132-
packet_period = FX816_PACKET_PERIOD;
133135
}
134136
else//FX620
135137
{
@@ -141,9 +143,6 @@ static void __attribute__((unused)) FX_initialize_txid()
141143
#endif
142144
for(uint8_t i=1;i<FX_NUM_CHANNELS;i++)
143145
hopping_frequency[i] = i*10 + hopping_frequency[0];
144-
145-
packet_length = FX620_PAYLOAD_SIZE;
146-
packet_period = FX620_BIND_PACKET_PERIOD;
147146
}
148147
}
149148

Multiprotocol/Multiprotocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define VERSION_MAJOR 1
2020
#define VERSION_MINOR 3
2121
#define VERSION_REVISION 3
22-
#define VERSION_PATCH_LEVEL 17
22+
#define VERSION_PATCH_LEVEL 18
2323

2424
#define MODE_SERIAL 0
2525

Protocols_Details.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ CFlie|38|CFlie||||||||NRF24L01|
9696
[FrskyX2](Protocols_Details.md#FRSKYX2---64)|64|CH_16|CH_8|EU_16|EU_8|Cloned|Cloned_8|||CC2500|
9797
[Frsky_RX](Protocols_Details.md#FRSKY_RX---55)|55|Multi|CloneTX|EraseTX|CPPM|||||CC2500|
9898
[Futaba/SFHSS](Protocols_Details.md#Futaba---21)|21|SFHSS||||||||CC2500|
99-
[FX816](Protocols_Details.md#FX816---58)|28|FX816||||||||NRF24L01|
99+
[FX](Protocols_Details.md#FX---58)|28|816|620|||||||NRF24L01|
100100
[FY326](Protocols_Details.md#FY326---20)|20|FY326|FY319|||||||NRF24L01|
101101
[GD00X](Protocols_Details.md#GD00X---47)|47|GD_V1*|GD_V2*|||||||NRF24L01|XN297L
102102
[GW008](Protocols_Details.md#GW008---32)|32|||||||||NRF24L01|XN297
@@ -1600,15 +1600,23 @@ A|E|T|R|FMODE|AUX6|AUX7
16001600

16011601
FMODE and AUX7 have 4 positions: -100%..-50%=>0, -50%..5%=>1, 5%..50%=>2, 50%..100%=>3
16021602

1603-
## FX816 - *58*
1604-
Model: FEI XIONG FX P38, B17
1605-
1606-
Only 8 TX IDs available
1603+
## FX - *58*
1604+
FEI XIONG
16071605

16081606
CH1|CH2|CH3|CH4
16091607
---|---|---|---
16101608
A|-|T|-
16111609

1610+
### Sub_protocol 816 - *0*
1611+
Model: FX816 P38, B17
1612+
1613+
Only 8 TX IDs available
1614+
1615+
### Sub_protocol 620 - *1*
1616+
Model: FX620 SU35
1617+
1618+
Only 1 TX ID available
1619+
16121620
## FY326 - *20*
16131621

16141622
### Sub_protocol FY326 - *0*

0 commit comments

Comments
 (0)