Skip to content

Instantly share code, notes, and snippets.

@bartoszfilipowicz
Created December 7, 2012 09:34
Show Gist options
  • Save bartoszfilipowicz/4232137 to your computer and use it in GitHub Desktop.
Save bartoszfilipowicz/4232137 to your computer and use it in GitHub Desktop.
Raspberry Pi nad RSX Lego Tower
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
Copy link

curl http://10.0.0.150/command
curl http://10.0.0.150/command -X POST -d "command[command_type]=stop"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment