From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9ba17363da3e8cb1 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Direct control of NXT mindstorms Followup-To: comp.lang.ada Date: Fri, 08 Jan 2010 18:30:03 +0100 Message-ID: <7qp8csFlu0U1@mid.individual.net> References: <7qoirqFcnkU1@mid.individual.net> <9klj17-e8m.ln1@newserver.thecreems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Trace: individual.net 6FW7tKgD6K5TIpwXDDpV5wz0LCAH2kjxgYiOFOjiZGqjNDDzs= Cancel-Lock: sha1:jeVKeE91nGU2n3PzlKqFIbe6GRo= User-Agent: KNode/4.4 pre Xref: g2news1.google.com comp.lang.ada:8674 Date: 2010-01-08T18:30:03+01:00 List-Id: Jeffrey Creem wrote: > Alex R. Mosteo wrote: >> Hi people, >> >> I'm studying the options for Ada direct control of a NXT brick from an >> external computer using the USB connection (as opposed to flashing a new >> firmware, which is the way that GNAT for Mindstorms does). After looking >> for what's available out there I've come to the following options: >> >> a) Pure Ada library, would require binding to libusb. >> b) Binding to some of the other libraries out there. I couldn't find a >> C/C++ one that has USB implemented, so next good candidate seems Python >> or OCaml. c) Completing the libnxtc (the one in C) with the missing USB >> bits. >> >> Probably the less work is b) or c), and then bind to it from Ada if >> wanted. Anyway, just for the sake of completeness, I'd like to ask the >> group for any related experiences or missing bits. More precisely: >> >> p) I'm missing some approach in the above? >> q) Are there any Ada bindings to libusb already? Not according to my >> googling, and only some early efforts in old threads that didn't get >> reported here afterwards. >> r) Experiences in binding to Python/OCaml? I guess a C glue layer is the >> way? >> >> Kind regards, >> >> Alex. > > I never finished it but another approach with a start that is present is > at http://nxtada.svn.sourceforge.net/viewvc/nxtada/trunk/ > > This controlled it from a computer over bluetooth essentially using a > serial API and a bluetooth virtual serial port. > > Suggested as another initial source of ideas and approach. Thanks, that's interesting. Actually I explicitly don't want to use bluetooth, but I've seen devices attached to linux boxes where they appear as a serial line. I must check if this is the case with the NXT, since this would make unnecessary (I guess) the use of libusb. In this case I could jump right into continuing with your code...