Retrieve sensor reading over bluetooth using Direct Commands
Posted: 25 Jul 2013, 21:00
My friend and I are currently working on a project that utilises two NXTs connected via Bluetooth. We are using the NXC language.
We are trying to do all of the interfacing between the two NXTs via Direct Control from the master to the slave, in order not to have to write a seperate program for the slave and worry about the complexities of 'mailboxing' etc. (With (apparantely) very little tutorial or learning information on this subject available on the internet we are finding this quite difficult.)
So far we have managed to control all of the output devices on the slave, from the master (i.e motors etc), but cannot find a way to remotely retrieve the current reading on an input device on the slave (i.e light sensor). Is this possible?
I have read a little about 'RemoteGetSensorValue' but it seems you have to have John Hansens modded firmware to enable this command and my friend doesn't want to run a non-official firmware on his brick.
Any help or advice you can offer would be greatly appreciated!
We are trying to do all of the interfacing between the two NXTs via Direct Control from the master to the slave, in order not to have to write a seperate program for the slave and worry about the complexities of 'mailboxing' etc. (With (apparantely) very little tutorial or learning information on this subject available on the internet we are finding this quite difficult.)
So far we have managed to control all of the output devices on the slave, from the master (i.e motors etc), but cannot find a way to remotely retrieve the current reading on an input device on the slave (i.e light sensor). Is this possible?
I have read a little about 'RemoteGetSensorValue' but it seems you have to have John Hansens modded firmware to enable this command and my friend doesn't want to run a non-official firmware on his brick.
Any help or advice you can offer would be greatly appreciated!