Flysky AFHDS 2A, protocol as used i10, i6, iT4,

More
13 Apr 2017 21:11 #61443 by goebish
Yes, I'm speaking of external ibus sensor.

Please Log in or Create an account to join the conversation.

More
13 Apr 2017 21:25 - 13 Apr 2017 21:39 #61444 by Fernandez
Replied by Fernandez on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,
hmm ok so I should be able to get the external volt input pin from X6B or iA6C receiver? Basically giving RSSI, V Rx batt, V Ext batt?

I can't get it to work, only 2 values as shown, no ext bat for me on both rx tested.
Attachments:
Last edit: 13 Apr 2017 21:39 by Fernandez.

Please Log in or Create an account to join the conversation.

More
13 Apr 2017 21:33 #61445 by AirPatoine
Replied by AirPatoine on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,

goebish wrote: External voltage sensor is still not implemented, it's on my todo list ...


Good to know. I'll keep an eye on this post. Thanks

Please Log in or Create an account to join the conversation.

More
19 Apr 2017 10:03 #61575 by Tay
Using Devo 7e and testing with FS-IA4B in my Glider
Devo7e-v5.0.0-26d39af

Bind and Range - Great
Receiver Voltage and alarms - Great
RSSI shows up but is inverted -60db unable to set rssi alarms is there a workaround for -+ db Values

Thanks for Deviation and Multiple Protocols ;-)

Please Log in or Create an account to join the conversation.

More
06 May 2017 00:19 - 06 May 2017 01:02 #62051 by goebish
Better late than never, here's a new update:

  • RSSI now reported as a positive number, allowing to set an alarm (min = 60, the lower the better)
  • report Link Quality as LQI (max = 100, the higher the better), probably a better indicator than RSSI
  • external IBUS voltage sensors support, only 1 for 7e (modular build), 2 for other platforms, VOLT2 & VOLT3
  • external IBUS RPM sensor support, only 1 sensor supported (not available on 7e), both hall and infrared sensors are supported, but not simultaneously
test builds: www.dropbox.com/sh/81zcpg2bq8z08ue/AABGm...CpJ4UWhWz4PACia?dl=0
Last edit: 06 May 2017 01:02 by goebish.

Please Log in or Create an account to join the conversation.

More
06 May 2017 20:38 #62068 by Fernandez
Replied by Fernandez on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,
Hi Goebish,

I loaded your firmware and have tested with IA6C of Hobbyking, I get the RX voltage, RSSI and LQI (I assume). But no luck yet I do not get the External Voltage Monitoring.
See this movie, they speak also about different firmware.


I also tested with Flysky X6B, I do get same telemetry, rx volt etc, but not yet the external volt monitoring input.

I am wondering is there any scale factor to be typed? With Frsky there is a scale factor in protocol option for external adc to get correct readout? (So maybe value received but stay displayed at 0V?)

Please Log in or Create an account to join the conversation.

More
06 May 2017 20:41 - 06 May 2017 20:47 #62069 by goebish
I tested with an IA10 Rx + TGY-AVT01 external voltage sensor and it's working fine, there's no scale factor.
What are you testing with (Devo model, voltage sensor) ?
Last edit: 06 May 2017 20:47 by goebish.

Please Log in or Create an account to join the conversation.

More
06 May 2017 21:22 #62070 by Fernandez
Replied by Fernandez on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,
I am using u7e - 256.

I checked the telemetry monitor page only.
The external V bat input is just hard wired input to the Rx, it is not something connected to an I-bus input.

It is not available on other receivers than ia6c and x6b.

Please Log in or Create an account to join the conversation.

More
06 May 2017 21:28 - 06 May 2017 21:38 #62071 by goebish
Ok, I suppose it's using a different sensor type identifier, please try this build and report:
www.dropbox.com/s/7m73hrtdrbhsavf/deviat...0.0-ba54901.zip?dl=1
Last edit: 06 May 2017 21:38 by goebish.

Please Log in or Create an account to join the conversation.

More
06 May 2017 22:31 #62072 by Fernandez
Replied by Fernandez on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,
Great Job Goebish!! This time it works for me!
At least for IA6C and for X6B, receiver we can now monitor the Lipo voltage.

Shown in the Telemetry monitor:
Row 1: 1st Box RSSI - 2nd Box RX Volt - 3rd Box Rx Ext Volt input.

Please Log in or Create an account to join the conversation.

More
06 May 2017 22:33 - 06 May 2017 22:44 #62073 by goebish
Great, so it's using the same ID than individual cells sensor, it should also work with cleanflight / betaflight IBUS telemetry.
This ID is already in the pull request , it should be included in the nightly soon :)
... but it won't work on non 256 7e.

I also implemented temperature sensor, but I don't have one so I can't test.
Last edit: 06 May 2017 22:44 by goebish.

Please Log in or Create an account to join the conversation.

More
07 May 2017 00:45 #62078 by Tay
Tried to test with my 7e but couldn't load new firm without protocol mismatch errors
is this right? tried using Deviation upload jar and drag and drop entire Zip contents
but protocol mismatch error on transmitter startup sorry if this is novice error

Thanks

Please Log in or Create an account to join the conversation.

More
07 May 2017 07:11 - 07 May 2017 08:49 #62089 by Fernandez
Replied by Fernandez on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,
It is for U7E-256, so it is a 7e where the CPU has been replaced.

After flash of the latest nightlies, I also needed to update my devo folder, then putting back my old hardware and tx ini, icons and models folders. (For some reason without doing that, it booted but menus seem corrupted or missing.) Normally only flashing dfu is enough.


@ Goebish while you are on it, is it possible to add a small finetune field, so we can put voltage spot on, something like multiplier 0.01V? So we can calibrate, using multimeter?

Oh btw resolutions seem different?
Box 2: Rx Volt 4.60V resolution 0.01V (The field name is TelemV1)
Box 3: External Vbat Volt, 11.5V resolution is only 0.1V. (The field name is C1)
Edit, Box3, voltage below 10V is also displayed with two digits.

Instead of using Cel Voltage C1: Can we not better use field AllCell or TelemV2 ?
Last edit: 07 May 2017 08:49 by Fernandez.

Please Log in or Create an account to join the conversation.

More
07 May 2017 09:52 - 07 May 2017 21:40 #62094 by goebish
@Tay I suppose you've not copied the new afhds-2a.mod file to the modules folder on the file system after flashing the .dfu. Also, there have been some changes recently, as Fernandez said, you've to replace the language/layout/media folders on the filesystem as well.

@Fernandez adding fine tune would require adding quite a bit of code, you'll have to live with a small offset for now if the voltage sensor isn't very accurate, just set your alarm(s) accordingly ...
I suppose the boxes can only display 5 characters (3 digits + dot + unit), hence resolution is 0.1V if voltage > 10V, but internally the resolution is still 0.01V.
TelemV2 (and TelemV3) fields are already used for external IBUS voltage sensors (eg AVT01) and I think it would be the same.
Last edit: 07 May 2017 21:40 by goebish.

Please Log in or Create an account to join the conversation.

More
07 May 2017 12:30 #62095 by Fernandez
Replied by Fernandez on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,
Ok thanks for clarification.

But what about using the "AllCell" field instead, would sound more logic to me than C1, for this ext RX Vbat port..
It was a bit trial and error as in deviation I can't see which "telemetry box" has which "label", so have to select try them all one by one, click to to figure out which field carry what data.
Did not expect it was in C1.

Please Log in or Create an account to join the conversation.

More
07 May 2017 12:33 #62096 by goebish
AllCell is supposed to be C1+C2+C3+C4+C5+C6 but I've not implemented it.

Please Log in or Create an account to join the conversation.

More
07 May 2017 12:51 #62097 by goebish
Actually, all this mess is because I'm using the FrSky telemetry model, I don't feel like creating a new telemetry model for AFHDS-2A (requires lots of code...).

Please Log in or Create an account to join the conversation.

More
07 May 2017 13:59 #62099 by Fernandez
Replied by Fernandez on topic Flysky AFHDS 2A, protocol as used i10, i6, iT4,
I am going to have a short test flight.
Trying to set battery alert, but C1 really intended for cell voltage, as in alert setup it is restricted to max 5V. So can't use to setup alert for low pack voltage.

Please Log in or Create an account to join the conversation.

More
07 May 2017 14:02 #62100 by goebish
Ok, I didn't realize that, well, I'll implement AllCell then, that should fix this issue.

Please Log in or Create an account to join the conversation.

More
07 May 2017 14:10 #62102 by goebish

Please Log in or Create an account to join the conversation.

Time to create page: 0.120 seconds
Powered by Kunena Forum