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!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!195.71.90.67.MISMATCH!news.unit0.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Jeffrey Creem Newsgroups: comp.lang.ada Subject: Re: Direct control of NXT mindstorms Date: Fri, 08 Jan 2010 07:38:58 -0500 Organization: A noiseless patient Spider Message-ID: <9klj17-e8m.ln1@newserver.thecreems.com> References: <7qoirqFcnkU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 8 Jan 2010 13:15:04 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="CFAiAG8rVxPpF2avg9j34A"; logging-data="13286"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++KCm73h22z+Mq4NMOjkFuvQcs020I5BA=" User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <7qoirqFcnkU1@mid.individual.net> Cancel-Lock: sha1:7hS10SLqhzbGGlfES4ycpW0I0h8= Xref: g2news1.google.com comp.lang.ada:8671 Date: 2010-01-08T07:38:58-05:00 List-Id: 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.