Page 1 of 1

Prolog to NXT via Bluetooth

Posted: 12 Aug 2011, 22:42
by roboteer
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:

Re: Prolog to NXT via Bluetooth

Posted: 14 Aug 2011, 07:04
by timpattinson
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)

Re: Prolog to NXT via Bluetooth

Posted: 17 Aug 2011, 00:12
by tcwan
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.