- Posts: 776
KN protocol adaption for Feilun helicopter?
- aMax
- Topic Author
- Offline
www.feiluntoys.com/EN/feilun/product_lis...&class2_ID=&keyWord=
I was ask for help from some members of rcgroup.com who own these birds. But I am no coder, the only thing I can do is asking here in this community for an adaption, based on the existing KN protocol of the WL V977.
These helicopters seem to bind to the V977 TX, but with slow action on the swash plate.
A TX and a RX (board) will be shipped to work with.
Some photos. A better one of the TX will follow
i.imgur.com/2szinhh.jpg
static.rcgroups.net/forums/attachments/4...a6909168-216-PCB.jpg
Thanks guys for your attention.
Devo7e, TaranisQ X7, R9M , 4in1 MM, Futaba FC18plusV3.2 & DFT/FLD-02
Please Log in or Create an account to join the conversation.
- victor123s
- Offline
- Posts: 9
977 is a micro heli which doesn't need a lot of throw like larger heli to make it goes fast. Also it is intended to be a stable, easy to fly, beginner friendly 6ch heli.
Please Log in or Create an account to join the conversation.
- ricchrist
- Offline
- Posts: 6
Ric...
Please Log in or Create an account to join the conversation.
- aMax
- Topic Author
- Offline
- Posts: 776
www.banggood.com/DEVO-Transmitter-Tuner-...ys-V922-p-89812.html
The Devo was already planned, wasn`t it?
As Victor told, it only needs specific parameter to get the heli working.
Devo7e, TaranisQ X7, R9M , 4in1 MM, Futaba FC18plusV3.2 & DFT/FLD-02
Please Log in or Create an account to join the conversation.
- ricchrist
- Offline
- Posts: 6
Thanks for the tx tuner link and it looks like two tuner being installed, but one in the package. What is the other tuner or module?
Ric...
Please Log in or Create an account to join the conversation.
- aMax
- Topic Author
- Offline
- Posts: 776
What you need is a NRF24L01+ (Hisky)(with PA & LNA) which is shown above on
the mainpage.
Additionaly there is a CC2500 shown ( Skyartec).
Devo7e, TaranisQ X7, R9M , 4in1 MM, Futaba FC18plusV3.2 & DFT/FLD-02
Please Log in or Create an account to join the conversation.
- aMax
- Topic Author
- Offline
- Posts: 776
Devo7e, TaranisQ X7, R9M , 4in1 MM, Futaba FC18plusV3.2 & DFT/FLD-02
Please Log in or Create an account to join the conversation.
- moss
- Offline
- Posts: 40
If the bind procedure will not do a two-way communication (likely not) then the receiver must have an algorithm or a look-up table to hop from. If they are completely different, no bind, some overlap = bind.
If it hops on three different frequencies and you happen to get overlap on one, which of course could roll to the other ones as time goes on, then you have control 33% of the time.
Please Log in or Create an account to join the conversation.
- wasp09
- Offline
- Posts: 211
I have to put my NRF24F01 antenna within an inch to the FX071C antenna, then I can have them bound almost at will.
I guess my 7E is not listening correctly or it uses the wrong TX power at initialization, or background wifi signals somehow prevent the hopping.
My stock TX can bind a lot further away. Perhaps it listens/transmit better or it has more insight on hunting for the signals initially.
After binding, even though FX071C is a 4 channel FP, we still have to configure the model on 7E as 8 channel to make sure the flag bits mapped onto channel 5 to 8 are acceptable. In particular channel 6 maps to TH, channel 7 to idleup and channel 8 to auto-levelling. The 4CH with D/R template maps pitch (tied to throttle stick) to channel 6 by default. It would shut down both motors at half stick.
BTW, we haven't had a night build or hg update for a long time. Looking forward to some new code soon.
Please Log in or Create an account to join the conversation.
- wasp09
- Offline
- Posts: 211
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Basically channels are mapped the same way as the V977:
CH1 THR
CH2 AIL
CH3 ELE
CH4 RUD
CH5 Dual Rate
CH6 Throttle Hold
CH8 3G/6G Gyro-mode
For me, binding works consistently with a Devo 7e and a fixed id of 12345, which means that the binding channel is definitely the same as in the V977. Different ID's give either incomplete binding or stuttering servo movement. This is most likely due to a different channel hopping pattern compared to the V977. Going through the sources (using my marginal C knowledge) I saw, that in deviation the FH channels are randomized from the (fixed) ID as well as a manufacturer ID of the microprocessor. This may be the reason why some people have had success so far while others, especially Devo10 Users, are still without success.
More updates as soon as the LA is running...
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
If someone needs the logicdata files, just drop me a note.
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
So far it seems, the protocol is a little simpler but close to the v977 one, although it has some different timings. I guess the hopping channels are derived from the TXID sent during the binding process. How the channels are calculated I don't know yet, some more SPI traces will be necessary for that.
Anyone willing to be really experimental (I am not responsible for any damage to helicopters or mankind! can try the attached DFU vor devo7e or devo10 including the new protocol (called KNFX) and a basic model file. This build uses a permanently fixed ID and RF channels, so it is basically just to see if binding is consistent with different FX helicopters. Switch A1 controls the 3G/6G gyro, FMOD ist for the original FX-Dual rate. Feedback is welcome!
I will make a fork in the repository once I get the code cleaned up and documented.
Please Log in or Create an account to join the conversation.
- aMax
- Topic Author
- Offline
- Posts: 776
...good luck!
..nearly took ten month to find someone to do this SPI snoop.
.
Devo7e, TaranisQ X7, R9M , 4in1 MM, Futaba FC18plusV3.2 & DFT/FLD-02
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
BTW, sources are now available here
bitbucket.org/Moeder/knfx-protocol/branch/knfxsupport
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
ID cd 35 00 00 is what the stock tx sends and then it hops between channels 2 and 34 (or 0x02 and 0x22)
I played with some different fixed ID's, these are the results:
ID 35 cd 00 00 -> binds and feels like the stock id
ID 00 cd 00 00 -> no bind
ID cd 00 00 00 -> no bind
I guess I'm stuck here, since I only have this one tx and rx combo available.
Also, I don't know if my protocol adaption is really correct concerning timings, but it works pretty well. Any of the experts is welcome to have a look at the traces (I will upload logicdata
tomorrow).
P.S.: I'm new to Mercurial and bitbucket, something went wrong, the module compiled from my repo doesn't work right now. I will find out later...
Please Log in or Create an account to join the conversation.
- Flyingboats
- Offline
- Posts: 6
aMax wrote: @Moeder
...good luck!
..nearly took ten month to find someone to do this SPI snoop.
.
Many of us are electronic and software retards!
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
After a little trial and error it seems the protocol just takes the sum of the 4 TXID values and then subtracts 256 to calculate the fist hopping channel. hopping channel 2 is hopping_channel_1 + 20
Working on the code, maybe this module is actually pretty close to finished
But I still need people trying out the firmware I posted above!
Please Log in or Create an account to join the conversation.
- aMax
- Topic Author
- Offline
- Posts: 776
Flyingboats wrote:
aMax wrote: @Moeder
...good luck!
..nearly took ten month to find someone to do this SPI snoop.
.
Many of us are electronic and software retards!
I see,...was unaware of this.
Thought, give them a hand and push things forwards......, was really delighted when Craig finally got his LA....
Anyway, to cut the long story short, I will be happy if you guys are posting feedbacks on success now......and fine flying videos.
Devo7e, TaranisQ X7, R9M , 4in1 MM, Futaba FC18plusV3.2 & DFT/FLD-02
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
bitbucket.org/Moeder/knfx-protocol/
Unfortunately, due to my very basic programming knowledge, I still have trouble getting the randomization of TXID bug free. I hope some of the deviation experts can help me here to finish the protocol. Problem lies in
bitbucket.org/Moeder/knfx-protocol/src/7...l01.c?at=knfxsupport
function kn_calculate_tx_addr
The current version doesn't give a bind with several Fixed IDs setup in the model config, for example 123451 gives a perfect bind, while 12345 doesn't. What am I doing wrong?
Edit:
Some further testing:
12340 bind
12341 bind
12342 bind
12343 bind
12344 bind
12345 no bind
12346 bind
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- KN protocol adaption for Feilun helicopter?