Prolog to NXT via Bluetooth

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
roboteer
Posts: 12
Joined: 12 Aug 2011, 04:00

Prolog to NXT via Bluetooth

Post by roboteer » 12 Aug 2011, 22:42

Hi all,

I would like to create a Prolog program that would send commands to the NXT robot via Bluetooth. This is similar to what has been done with Legolog but I want to do it using Bluetooth and NXC. Prolog does not have any support for Bluetooth to NXT so I would have to have the NXC programs interpret the commands coming from Prolog and then send them to the brick. Does anyone have any ideas?

Thanks gang,

:shock:

timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Prolog to NXT via Bluetooth

Post by timpattinson » 14 Aug 2011, 07:04

The problem is that NXC programs run on the brick, and so cannot receive input from a Prolog program (or any other program running on the PC)
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/

tcwan
Posts: 186
Joined: 30 Sep 2010, 07:39

Re: Prolog to NXT via Bluetooth

Post by tcwan » 17 Aug 2011, 00:12

timpattinson wrote:The problem is that NXC programs run on the brick, and so cannot receive input from a Prolog program (or any other program running on the PC)
I suppose it depends on what roboteer meant by 'commands'.
If commands used were Direct Commands (which is basically a message passing protocol), then it is possible to interface the Prolog program to NXC.
There is a mailbox mechanism for sending and receiving messages via USB/Bluetooth.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests