Learning CAN-FIX

Discussion forum for the CAN-FIX protocol. This is a CANBus based communications protocol specifically suited for experimental aviation.

Moderators: John Nicol, birkelbach

birkelbach
Posts: 193
Joined: 04 Sep 2012, 14:42

Re: Learning CAN-FIX

Post by birkelbach »

I like it! Great start! UDP is ridiculously simple to implement (there's that word again :-)) and I like 'simple'. There is also a lesser known transport protocol on IP called SCTP. It's more of a message based protocol. It's a bit of a step above UDP in that it handles retries and errors etc. I'm not advocating it but it might be worth a look. It might not be available on smaller devices yet.

I love the port number pick. I checked Wikipedia http://en.wikipedia.org/wiki/List_of_TC ... rt_numbers and it doesn't appear to be assigned to any standard service.

You might want to think about adding a byte to the identification word. This would still give you three bits to use for identification and would leave room for the extended identifier set if we ever moved up to those. I'd also make it a 32 bit number which will be easier to deal with on most hardware. Also, don't forget about the FIX ASCII protocols, we need to pass those through as well.

I love the idea of a WiFi<->CAN gateway that folks could use to configure the CAN-FIX devices, download firmware, troubleshoot etc. It'd make connecting to the CAN bus simple. And you know me and 'simple.' :-)
Phil Birkelbach
Waller, Texas
RV-7 727WB
www.myrv7.com
User avatar
davecove
Posts: 38
Joined: 06 Feb 2013, 18:11
Location: Houston, Tx

Re: Learning CAN-FIX

Post by davecove »

You might want to think about adding a byte to the identification word.
Agreed.
Also, don't forget about the FIX ASCII protocols, we need to pass those through as well.
Oh, I can't forget those... mainly because I never knew about them in the first place :D What FIX ASCII protocol?

Dave
birkelbach
Posts: 193
Joined: 04 Sep 2012, 14:42

Re: Learning CAN-FIX

Post by birkelbach »

Oh, I can't forget those... mainly because I never knew about them in the first place :D What FIX ASCII protocol?
http://www.vx-aviation.com/FIX/
Phil Birkelbach
Waller, Texas
RV-7 727WB
www.myrv7.com
tbkahouna
Posts: 10
Joined: 01 Aug 2013, 20:31

Re: Learning CAN-FIX

Post by tbkahouna »

Hi Phil,

Is there any reason why you are not using ARINC 429 labels as a means, or reference, for defining the data that would flow across the CAN-FIX busses? The AEEC has built a great many years of thought into defining those labels, which even the GA CSDB protocol has inspired itself from. You'll find just about every possible parameter you can think of in an aircraft in the lot. Another advantage to this, will be the ability to rip any data off a CSDB bus and move it onto the CAN-FIX bus without conversion.

Has anyone given thought to putting together a CAN-FIX to CSDB gateway? This would ease the integration of a great many GA radio into the avionics package.

Another thought would be to use the ASN.1 syntax to define the data transferred.
http://en.wikipedia.org/wiki/Abstract_S ... tation_One

Combining CAN-FIX and ASN.1 would allow you to focus on a basic, minimal subset of parameters for the LSA, knowing that you can grow it in the future, as required, for other aircraft.
birkelbach
Posts: 193
Joined: 04 Sep 2012, 14:42

Re: Learning CAN-FIX

Post by birkelbach »

ARINC 429 labels don't take into account the arbitration and prioritization scheme built into CAN. With the identifiers that we chose we get prioritization of our messages for free. This is a major advantage of CAN. If there is some information that these other standards are transmitting that you think we are missing then by all means lets figure that out. I just released a new version of the spec yesterday so take a look at it and let me know if you see something missing.

ARINC 429 and GA CSDB seem a bit too verbose. CAN only gives us 8 data bytes per message. Sending sentences of XML are just not feasible. We are trying to build something simple that the average homebuilder will be able to understand and use, not necessarily something that is compatible with all the avionics out there.

The secret is the conversion boxes. We are not going to have CAN-FIX transponders or comm radios anytime soon, so converting to those types of devices is a valuable exercise for sure. I think the vast majority of them can be converted with an RS-232 interface and some active low transistor outputs.

I couldn't find an official answer, but it looks like ARINC 429 and GA CSDB are nothing more than RS-485. If this is the case then a converter would be trivial. I've already made an RS-232 converter that can be used to communicate to transponders, GPSs and the like. An RS-485 converter wouldn't be much different, it would just have a different level converter chip on it. This assumes that I'm right about the RS-485. Otherwise we'll have to deal with the physical layer signaling.
Phil Birkelbach
Waller, Texas
RV-7 727WB
www.myrv7.com
tbkahouna
Posts: 10
Joined: 01 Aug 2013, 20:31

Re: Learning CAN-FIX

Post by tbkahouna »

birkelbach wrote:ARINC 429 labels don't take into account the arbitration and prioritization scheme built into CAN. With the identifiers that we chose we get prioritization of our messages for free. This is a major advantage of CAN. If there is some information that these other standards are transmitting that you think we are missing then by all means lets figure that out. I just released a new version of the spec yesterday so take a look at it and let me know if you see something missing.
Definitely agree that CAN-BUS arbitration and prioritization are an added improvement over the simpler ARINC 429 protocol, which cannot achieve that.
birkelbach wrote:ARINC 429 and GA CSDB seem a bit too verbose. CAN only gives us 8 data bytes per message. Sending sentences of XML are just not feasible. We are trying to build something simple that the average homebuilder will be able to understand and use, not necessarily something that is compatible with all the avionics out there.
I'm talking here simply about capturing the label identifiers and message definition.

Also, 8 data bytes is plenty of room for the ARINC 429 19-bit of actual data from a single label. You can even pack into a single CAN-FIX message some of the ARINC 429 messages that require 2 or 3 distincts labels to get an entire message across the bus. In reverse, the CAN-FIX gateway would have to break-up, potentially, CAN-FIX messages into their equivalent multi-label ARINC 429/CSDB counterpart.

Also agree that transmitting XML is not desirable in real-time. However, the definition of what data to transfer over a CAN-FIX bus, read as XML ASN.1 parametric data, could be loaded at boot time. this would add tremendous flexibility to the data transfer mechanism. This would allow the use of different supplier's/builder's boxes performing a particular function (e.g. VHF radio, ATC transponder, etc.) without having to reprogram the EFIMS operational code.
birkelbach wrote:The secret is the conversion boxes. We are not going to have CAN-FIX transponders or comm radios anytime soon, so converting to those types of devices is a valuable exercise for sure. I think the vast majority of them can be converted with an RS-232 interface and some active low transistor outputs.

I couldn't find an official answer, but it looks like ARINC 429 and GA CSDB are nothing more than RS-485. If this is the case then a converter would be trivial. I've already made an RS-232 converter that can be used to communicate to transponders, GPSs and the like. An RS-485 converter wouldn't be much different, it would just have a different level converter chip on it. This assumes that I'm right about the RS-485. Otherwise we'll have to deal with the physical layer signaling.
From my knowledge, that's right.
birkelbach
Posts: 193
Joined: 04 Sep 2012, 14:42

Re: Learning CAN-FIX

Post by birkelbach »

tbkahouna wrote:ASN.1 parametric data, could be loaded at boot time. this would add tremendous flexibility to the data transfer mechanism. This would allow the use of different supplier's/builder's boxes performing a particular function (e.g. VHF radio, ATC transponder, etc.) without having to reprogram the EFIMS operational code.
I don't understand why we'd have to reprogram EFIMS code now? If we send a signal over the bus that says "Push to talk" then why does it matter what brand VHF radio it was. PTT is the same. Transponders all care about pressure altitude, why do we have to reprogram devices at boot up to send pressure altitude?

I agree that we could have taken ARINC 429 and used it to come up with all the parameters that we are defining. We didn't do that. But it's not as though we were just dreaming all this up from nothing. We did use other specifications (ARINC 825 for one). The main protocol that we tried to match was FIX. You'll find that CAN-FIX matches the FIX protocols very closely.

If we are missing some data points then by all means we want to know what those are. Two versions ago somebody said "hey what about hybrid engine data and ADS-B traffic?" The last version somebody said "what about writing VHF frequencies to the radios?" Both of those questions were productive and resulted in improving the protocol.

This is all about simplicity. Simplicity and flexibility are mortal enemies, but simplicity leads to modularity and modularity and flexibility can become friends if properly introduced to one another. If we try to make this thing so complex that it solves every problem then we'll never make it work at all.
Phil Birkelbach
Waller, Texas
RV-7 727WB
www.myrv7.com
Katharina
Posts: 3
Joined: 22 May 2025, 22:57

Re: Learning CAN-FIX

Post by Katharina »

It'd make node to node communication more robust as well.
Skysmotor sells the following products online: Nema 23 motor, Electric rotary actuator, Spindle motor, Stepper motor and can be purchased online if needed.
Post Reply