Hitec telemetry on Taranis or Horus

Post Reply
xnaron
Posts: 16
Joined: Wed Jun 25, 2014 2:12 am
Country: -

Hitec telemetry on Taranis or Horus

Post by xnaron »

I want to be able to view the telemetry data from hitec receivers on my Taranis or Horus. Hitec has a JR compatible PPM module that also outputs the telemetry data to a serial connector. The protocol is known and can be decoded ( http://www.rcgroups.com/forums/showthread.php?t=1389908 ). From what I have read ( https://github.com/opentx/opentx/wiki/T ... erial-port ) the Taranis has an S.Port connector in the module bay.

S.port to Uart and Uart to S.port http://www.t9hobbysport.com/frsky-s.por ... -adc-ports

Here is the basic idea. The FrSKY Horus/Taranis have an S-PORT pin on the external module. I should be able to use that to feed in the telemetry to the Horus/Taranis. I can think of two options. I need to look at the opentx code base to see how much work option 1 would be.

S.port to Uart and Uart to S.port http://www.t9hobbysport.com/frsky-s.por ... -adc-ports

update: (this option not possible as the telemetry available form the module is I2C not serial)
Option 1 (preferred):

Hitec tx serial -> uart to s.port -> S.port on module
Software: modify opentx to support hitec telemetry packets

update: updated to reflect I2C vs serial
Option 2:

Hitec tx I2C -> Arduino -> s.port on module
Software: Write arduino code to translate hitec telemetry protocol packets to s.port FrSky protocol.


Is there any easier/better way anyone can think of to do this? I don't even know if opentx will currently support telemetry from a PPM module via s.port.

thanks,
Brendin
Last edited by xnaron on Fri Sep 23, 2016 8:55 pm, edited 3 times in total.

User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Hitec telemetry on Taranis or Horus

Post by Kilrah »

Option 1 would be best, the telemetry system in OpenTX is designed to pretty easily accomodate parsers for new formats.
xnaron
Posts: 16
Joined: Wed Jun 25, 2014 2:12 am
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by xnaron »

Could this be done with a lua script or would it require a change to opentx?
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Hitec telemetry on Taranis or Horus

Post by Kilrah »

Changes to OpenTX would be needed. It will be possible to pass raw data to lua in OpenTX 2.2, but smart port frames are expected to know where to send the data so you'd have to implement something like solution 2 to create them, so while you're at it you'd be better off doing the full conversion in the arduino.
michel49
Posts: 192
Joined: Sun Oct 07, 2012 10:59 am
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by michel49 »

Jeti telemetry would be great ...

xnaron
Posts: 16
Joined: Wed Jun 25, 2014 2:12 am
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by xnaron »

I made an error. The Hitec spectra module puts the telemetry data out over I2C not serial. Will need something to translate i2c to s.port. I'll do some research and see if I can find some s.bus code for arduino (http://www.rcgroups.com/forums/showthread.php?t=2245978). I have the arduino code that can read and decode the i2c telemetry. It will just be a matter of formatting them to FrSky s.port telemetry packets.
Last edited by xnaron on Sat Sep 24, 2016 2:55 pm, edited 1 time in total.
xnaron
Posts: 16
Joined: Wed Jun 25, 2014 2:12 am
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by xnaron »

Is the s.port telemetry active in open TX when a PPM type module is in use? ie: can I feed it FrSKY S.PORT telemetry and have it picked up by detect sensors?

edit: I tried the discovery on the simulator with the external module set to PPM and I could discover sensors. Hopefully this means that the s.port pin is active.
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Hitec telemetry on Taranis or Horus

Post by Kilrah »

Yes, it's fine as long as the internal module is off.
xnaron wrote:Will need something to translate i2c to s.bus. I'll do some research and see if I can find some s.bus code for arduino
S-Port, not S-BUS ;)

There is S-Port code in openxSensor, openLRsng, cleanflight...
xnaron
Posts: 16
Joined: Wed Jun 25, 2014 2:12 am
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by xnaron »

Thanks. Corrected :)

I think I have all the pieces now. Starting on the code. My Teensy LC will be here next week.
xnaron
Posts: 16
Joined: Wed Jun 25, 2014 2:12 am
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by xnaron »

I've got a prototype working now. Using a Teensy 3.1. It's Pulling the Hitec i2c telemetry and decoding the 2D frame packet and encoding it to FrSKY SPORT and pushing to Horus. I am emulating a FrSky FCS current sensor (voltage param) to push it into the Horus. I am only concerned with the voltage but I have converted code to allow decoding of 2B,2D and 08 packets so I could populate the rest of the hitec telemetry.
xnaron
Posts: 16
Joined: Wed Jun 25, 2014 2:12 am
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by xnaron »

Here is a video of it working on the Horus
https://www.youtube.com/watch?v=LY1p84tVrFs
s0lstiCe
Posts: 1
Joined: Sat Nov 05, 2016 11:51 pm
Country: -

Re: Hitec telemetry on Taranis or Horus

Post by s0lstiCe »

Hi,

I'm relly interesting by your project. I have an Aurora9 and I'm looking to buy an horus.

Can you give me more details ?

Don't worry, electronic and programmation are not a black sheeps for me.

Thanks

Post Reply

Return to “openTx for FrSky radios”