- Posts: 208
Adding channels to the Bayang protocol?
- Richard96816
- Topic Author
- Offline
With the new open firmware available for various small quads, H8 mini, CG023, Floureon H101, etc., was wondering how hard it might be to add a channel or two to the Bayang protocol to expand these quads capabilities. Remote PID tuning is one current interest. (These boards transplant readily into other frames, so tuning is a recurring issue.)
Could the Bayang protocol accommodate another channel or two?
Thanks.
Please Log in or Create an account to join the conversation.
- Nitro_123
- Offline
- Posts: 95
I think the firmware on the quads needs work for that not the transmitter.
So I think you should ask silverxxx (i'm assuming you're talking about his firmware) about this possibility
And yes that sounds very awesome
Keep us updated.
And if im wrong someone please correct me
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- Richard96816
- Topic Author
- Offline
- Posts: 208
victzh wrote: Why specifically Bayang? If you have control over both ends - flight controller and TX you can introduce any protocol with any number of channels. Bayang is not that good - it uses only 4 radio frequencies for frequency hopping, it's not resilient enough.
Thanks for the insight. Bayang (H8 mini) and EachineX4 (CG023) are the protocols he's used so far. He's also adapted the Floureon H101 (Bayang.) I think he just finished the CG023 and it can select either of those protocols. I've been using the H8 FC for a bit, mostly transplanted to a Bayangtoys X9, which flies very nicely, level and acro modes. Nice to learn acro on a cheap expendable quad. It's a nice controller. He just started working on the DHD D1 nano, I think.
The H8 has plenty of memory, 32K, twice what it currently needs. So it seems like a good choice for further expansion. Bad news is the manufacturer is switching processors on it.
Silverxxx is the maestro. He doesn't have a Deviated xmitter. Yet. It's just where he's gotten the necessary information to code his receiver protocols. He has put a few things into his code for those of us that do have Deviated xmitters.
I think he's somewhat aware of the awesomeness of controlling both ends. He seems to think Deviation is a bit more limited than it is though. That's why I'm here asking about expanding protocols.
Expanding Bayang would be a good start. Suggestions of better protocols might be helpful too. He's the maestro. I'm just collecting information and ideas.
Deviation model files give the impression you can increase the number of channels just by declaring a larger number. But I'm not sure the protocol code (or timing) doesn't impose limits of its own.
Thanks.
Please Log in or Create an account to join the conversation.
- mwm
- Offline
Each of the protocols in Deviation has a limit on maximum number of channels. That's generally imposed by the protocol as above, or by how it was reverse engineered - we didn't have anything that used more channels to look at for the encoding, and also no reason to add them.
There's also a global limit of 12 transmitted channels. That looks like raising it is simply a matter of changing a single define in the source, but it really ought to be tested to make sure no one has done something that depends on it elsewhere.
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
www.rcgroups.com/forums/showthread.php?t=2512604 (it's not only for H8 mini, he adapted his firmware to more "toys" boards).
I'll contact him to know if he's interested (because that will break compatibility with stock TXs) and what would be required.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
- send 3 packets
- instead of sending the 4th one, listen for telemetry data
and so on ...
Please Log in or Create an account to join the conversation.
- xxx
- Offline
- Posts: 43
Thanks for your replies, I would like to add telemetry at least.
I was thinking of keeping the h8 protocol (modified) mainly because the quad could autodetect the protocol. This would save some flash imo, on the other hand, simpler protocols like the cg023 save about 1K anyway.
Why is there a need for interrupts? I usually set the radio to rx after tx is finished, and poll 1ms before tx'ing again. I guess the devo might do things differently. Anyway, it can be done in whichever way.
What would be a good way/protocol? You guys have seen a lot of them.
I think it probably needs hopping, even if it would be simpler without it.
A tx sum or crc because sometimes they receive garbage
Also, can the devo send independent trims?
silverxxx
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Hopping is better, but some protocols such as Hubsan or cg023 / 3d x4 are using only one channel and work well like that.
I'm not sure what you want to say with independent trims, but I think the answer is yes, as I did for the H7 basically ( www.deviationtx.com/forum/protocol-devel...eachine-gin-h7#34882 ), but I removed it later as people had a hard time to set them up.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- Richard96816
- Topic Author
- Offline
- Posts: 208
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
One downside is that telemetry would be dependent on receiving packets from the tx rather than the aircraft transmitting independently. And no protocols currently implement this so it would be new code.
Recommend leaving retransmits off on the tx - if an AA packet is missed just go on to the next packet.
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- xxx
- Offline
- Posts: 43
But right now, if you trim in level mode on the main channels, it will drift in acro.
About AA, this is xn297 , I'm not sure about compatibility with AA on nrf24.
I'm not sure how to implement pid tuning. I guess sending the pids at bind? Or maybe a special packet could update them while flying?
There are 5 pid numbers. The question is, is it possible to enter numbers somewhere on the devo, and have them sent?
I think we should do telemetry first, and worry about pids later. And also, thanks for your offer to help. It's going to be different to code the receiver without the tx, but should be possible
silverxxx
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
It is definitely possible to edit numbers and send them as channels, not at the beginning, but all the time as regular channels.
Different trims for different flight modes - I'm not sure it's currently possible but it's nice idea.
Please Log in or Create an account to join the conversation.
- TheSFReader
- Offline
- Posts: 64
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- SirDomsen
- Offline
Concerning the PID tuning: If it really would be possible to type in a PID number in Deviation and,send it to the quad, that would be by far the best way to tune PIDs!!
Concerning Telemetry: Would be very nice, I think the first nrf based protocol with telemetry?
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- Adding channels to the Bayang protocol?