Created
December 7, 2012 09:34
-
-
Save bartoszfilipowicz/4232137 to your computer and use it in GitHub Desktop.
Raspberry Pi nad RSX Lego Tower
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SSH to rasp Pi: | |
ssh [email protected] | |
password: raspberry | |
Given that the lego Tower is in /dev/usb/legousbtower0, start by making sure the device is accessible with a lazy hack: | |
$ sudo chmod 777 /dev/usb/legousbtower0 | |
Here are two useful nqc commands to communicate with the RCX brick through the Lego Tower. | |
1) Uploading the firmware(if needed): nqc -Susb:/dev/usb/legousbtower0 -firmware firm0309.lgo | |
2) Uploading a nqc program: nqc -Susb:/dev/usb/legousbtower0 -d yourProgram.nqc | |
our server interface: | |
curl http://10.0.0.150/command | |
curl http://10.0.0.150/command -X POST -d "command[command_type]=stop" |
mariuszlusiak
commented
Dec 7, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment