Wolfgang Grandegger wrote: > Jan Kiszka wrote: >> Roland Tollenaar wrote: >>> Hi list, >>> >>> does anyone have, or can anyone direct met to a project or code-snippet >>> that shows how the CAN driver in the xenomai patch is used in an >>> application? If not that any documentation that gives and explains what >>> calls it responds to. >> >> Check src/utils/can/ on some tools that can also serve as nice examples. >> But maybe we should also add even simpler demo code to the examples >> repository. Just takes someone to write them... > > The utility programs rtcanconfig, rtcansend and rtcanrcv in > src/utils/can already demonstrate most of RT-Socket-CAN's functionality > including filter definition and error handling. I do not see a need for > simpler examples. Yeah, maybe already a link (README) from the examples repos would be enough to point beginners to them. Or maybe we should ask some beginners what they expect, what they didn't understand... (Roland?) > I have attached a patch for a nice program to measure > the round trip time of CAN messages. It contrast to the other CAN > utility programs, it uses the POSIX-API and works as-is for Socket-CAN > as well. Jan, any objections to include it? If yes, I'm going to provide > a README. On first glance, nope, looks nice and clean. > > BTW: some time ago I provided a patch to make the CAN utility programs > part of the Doxygen documentation. IIRC, we said it's nice to have > hyperlinked examples in general. Some link at hand? Does it still apply? Sounds like something worth to apply. Jan