- Posts: 983
Flysky AFHDS 2A, protocol as used i10, i6, iT4,
- Fernandez
- Topic Author
- Offline
It in now on a betaflight 3.3, which is not yet finished build, so can flash your file.
The question can Deviation display al this stuff? Will probably be able to flah benctest during the weekend.
Please Log in or Create an account to join the conversation.
- qba667
- Offline
- Posts: 16
Deviation right now can handle just few sensors - none from custom neuroses added by me. I am thinking about port of Deviaiton to I6X - so maybe then all custom telemetry can be added.
Please Log in or Create an account to join the conversation.
- Fernandez
- Topic Author
- Offline
- Posts: 983
Would be great if we can get at least Vbat working over betaflight ibus, as now only get the 5v Rx voltage wich is pretty useles.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- qba667
- Offline
- Posts: 16
Please Log in or Create an account to join the conversation.
- Fernandez
- Topic Author
- Offline
- Posts: 983
Please Log in or Create an account to join the conversation.
- markxr
- Offline
- Posts: 6
I'm developing my own receiver for AFHDS 2A, and I've got it (almost) working, I'm now trying to implement telemetry.
The messages in this thread, and the Deviation source code, have been extremely helpful in doing this, so thank you everyone who's reverse engineered it.
Does anyone have an SPI dump of a transmitter or receiver doing a bind?
I can see that the rx (TGY-iA6C) sends a "bind response" packet, possibly on every channel. Deviation does receive this (first byte is 0xbc) and uses it as a signal to exit bind mode.
But my receiver is sending this packet, but my tx doesn't see it, and stays in bind mode. So I'm doing something wrong.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
www.dropbox.com/s/d341a7gyuunrcw6/A7105%20decode.zip?dl=0
I already wrote an AFHDS-2A RX some time ago for the Multi Protocol Module but telemetry is not implemented since this protocol is used for wireless master/slave training with OpenTX:
github.com/pascallanger/DIY-Multiprotoco...AFHDS2A_Rx_a7105.ino
Maybe this can be useful for your project, note that the AFHDS2A_Rx_build_telemetry_packet() function has nothing to do with AFHDS-2A telemetry, it only sends received channels data to OpenTX.
Please Log in or Create an account to join the conversation.
- markxr
- Offline
- Posts: 6
Please Log in or Create an account to join the conversation.
- markxr
- Offline
- Posts: 6
Do we know why the firmware writes 38 bytes into the A7105 tx buffer, even though the packets are only 37 bytes long, and it only reads 37 bytes?
Is there some special magic I don't understand (I'll be honest, the A7105 datasheet leaves a lot to be desired!)
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- markxr
- Offline
- Posts: 6
I saw the Deviation code does this too, but I never understood why, I guess it's just replicating the behaviour of the commercial firmwares?!
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- markxr
- Offline
- Posts: 6
With help from these SPI dumps and the Deviation source code, I've successfully developed my own receiver with telemetry! It works with the Turnigy Evolution TX and I'll soon test it with others. There is no way I could have done it without your prior work.
Please Log in or Create an account to join the conversation.
- emalagon
- Offline
- Posts: 2
Please Log in or Create an account to join the conversation.
- markxr
- Offline
- Posts: 6
Please Log in or Create an account to join the conversation.
- emalagon
- Offline
- Posts: 2
I'm working on a multifunction unit for an old 1/14 scale truck. I had an old MFC from Tamiya but it looks like something made in the middle of the 80's. So I decided to remove it to put something with more features. Unfortunately the market is dominated by quads, planes and helicopters. If I want something more sophisticated I have to go DIY. I have a few prototypes but I'm still planning it. Your code can save me a lot of time.
Thanks.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- Flysky AFHDS 2A, protocol as used i10, i6, iT4,