> Am 01.07.2016 um 15:01 schrieb matthew venn <[email protected]>: > > Hello, > > I'm working on a bipod (polargraph) style drawing robot. I'm using machinekit > on beaglebone. > > I'm moving the pen up and down with a radio (xbee) controlled servo. I've > written a hal component in C that opens (non blocking) a serial port on the > beaglebone and then reads and writes to it. The component takes just over > 25ms to run. > This component is added to a slow thread (50ms). I don't get realtime error > messages or joint following errors. > > Most of the time everything works fine, but sometimes I'll get timeouts when > machinekit starts, lots of: > > USRMOT: ERROR: command timeout
usually a sign the realtime daemon (rtapi:0) died a horrible death usually caused by a buggy RT component linuxcnc.log says so: Jul 1 14:13:48 beaglebone msgd:0: rtapi_app:1711:user signal 11 - 'Segmentation fault' received, dumping core (current dir=/home/machinekit/bipod) Jul 1 14:13:48 beaglebone msgd:0: rtapi_app:1711:user --- rtapi_app backtrace: --- Jul 1 14:13:48 beaglebone msgd:0: rtapi_app:1711:user b5316e19 ?? ??:0 Jul 1 14:13:48 beaglebone msgd:0: rtapi_app:1711:user b5315961 ?? ??:0 Jul 1 14:13:48 beaglebone msgd:0: rtapi_app:1711:user b67e80ff ?? ??:0 Jul 1 14:13:48 beaglebone msgd:0: rtapi_app:1711:user b67f80c7 ?? ??:0 Jul 1 14:13:48 beaglebone msgd:0: rtapi_app:1711:user -------------------- Jul 1 14:13:48 beaglebone msgd:0: rtapi_app exit detected - scheduled shutdown that said - suggest Charles' recommendations > > If I comment out the line in bipod.hal that adds the xbee component to the > thread then it will start. So I think it's to do with my component. > > I've done a lot of testing with halrun, and I've never had a problem with > just starting a thread, adding my component to it and then moving the servo > manually. > > I've attached the component code, bipod.ini, bipod.hal, as well as stdout, > dmesg and linuxcnc.log that shows what happens when it doesn't start up. > Any help on this would be greatly appreciated! This is only the 2nd component > I've written! > > Thanks, > Matt > > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to the Google Groups > "Machinekit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/machinekit. > For more options, visit https://groups.google.com/d/optout. > <dmesg><screenlog.0><linuxcnc.log><bipod.ini><bipod.hal><xbee.comp> -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
