dgatf / msrc

Multi Sensor for RC with RP2040 - FrSky D, SmartPort, XBUS, SRXL, IBUS, SBUS, Multiplex Sensor Bus, Jeti Ex Bus, Hitec
GNU General Public License v3.0
168 stars 41 forks source link

Add CRSF (Crossfire) support #75

Open pierrotm777 opened 2 years ago

pierrotm777 commented 2 years ago

Hello,

Is it possible to add CRSF telemetry for use with ExpressLRS and TBS devices ?

Thanks,

Pierre

dgatf commented 2 years ago

CRFS protocol is serial at 420000. Telemetry has to be sent between frames. Seems easy to implement.

I could implement it, if you can do some tests. I don't have any ExpressLRS or TBS device

pierrotm777 commented 2 years ago

Hello, I have ELRS and TBS systems. I can help you for these tests. Thanks

dgatf commented 2 years ago

MSRC will send only GPS and battery telemetry. There are no other sensors available in CRSF telemetry protocol. Only GPS and analog voltage and current can be sent. No vario, airspeed, temperature and ESC telemetry will be sent. Would that be ok?

pierrotm777 commented 2 years ago

I think it's possible to have also vario. But gps and vbat are ok for me.

dgatf commented 2 years ago

That's right. I'll include vario speed

pierrotm777 commented 2 years ago

Cool, Thanks :-)

dgatf commented 2 years ago

I've created a branch for CRSF. I'll merge when tested

Please download and flash from https://github.com/dgatf/msrc/tree/crsf

Which board are you going to use?

pierrotm777 commented 2 years ago

Sorry for the delay, I think to use an Teensy 3.2 or LC ? I suppose they can work in 400K bauds ?

dgatf commented 2 years ago

Yes. Better the LC, as I have one LC around. Easier for me to check in case of issues

Also arduino (atmega328, atmega32u4...) will work, if not connecting to GPS or ESC serial. Otherwise you need a Teensy

erwinf commented 2 years ago

I would like to try this out as well with elrs and a pro mini board

dgatf commented 2 years ago

crsf branch is already configured with a simulated voltage sensor. You don't need to install the sensor yet. Only connect the crsf data to pin 1 for the teensy and to pins rx and tx for the pro mini. Also connect Vcc and gnd. Check for voltage telemetry value 12.34v in the transmitter.

pierrotm777 commented 2 years ago

Hum, thanks for your add. For now, my transmitter don't accept crsf telemetry (OpenAVRc firmware) but we work to add it as soon as possible.

dgatf commented 2 years ago

Hello, I have ELRS and TBS systems. I can help you for these tests. Thanks

I though you were able to test it

pierrotm777 commented 2 years ago

Yes, i have well tbs and elrs systems but OpenAVRc isn't ready for the crsf telemetry. We work on actually.

dgatf commented 2 years ago

No worries. When it is ready

secretman28 commented 2 years ago

i can help here , im want to convert s-port telemetry to crsf to get telemetry from my turbine jet , that send frsky telemetry, remote is ready, crsf have some sensor available https://github.com/ArduPilot/ardupilot_wiki/blob/master/images/crossfire-telemetry-meaning.jpg we can induce a change in name to get the sensor we want and in the lua of the remote we can manage to get it as we wanted lets say we send the fuel consumption from the frsky in roll imput to the crossfire and in the remote we use the roll as a fuel comsumption easy manage by the user for what he want to do, im far from a coder but i have a base to make thing work as i want lol

RobWei commented 1 year ago

Hi @dgatf, I would like to help finish the implementation of the CRSF protocol. I have a TBS Tracer system (which supports CRSF), an Arduino Pro Micro and an EdgeTX transceiver.

I have already compiled the 'crsf' branch, with a small change in platformio.ini, where I simply added the Pro Micro as a platform

[env:micro]
platform = atmelavr
board = micro

The compile and upload works. But when I connect to my Tracer RX, only the default TBS telemetry values are transmitted.

I have already swapped RX and TX without success.

m0p3d commented 11 months ago

Any news? ELRS adaption increasing would be very helpful to get CRSF Telemetry working

CarlouT commented 6 days ago

Just want to know if Telemetry for Express LRS is already supported?