The XRP firmware and the XRP Editor support using Bluetooth as an alternative to the USB cable. This is very useful when the XRP is moving around and you'd like to control it and get debugging info without a cable.
The XRP Code Editor displays the ID on the upper right of screen, beneath the RUN / STOP button. →
You can also retrieve the ID with this Python program:
from XRPLib.defaults import *
from machine import unique_id
id = (''.join(['{:02x}'.format(b) for b in unique_id()]))
id="XRP-" + id[11:]
print(id)
Write your XRP ID on the label on your XRP box and the side of the XRP.
From the XRP Code Editor, Help ... Change Log ... Version 1.1.0)
Connect your XRP with a cable
Let XRPCode upgrade the Micropython and XRPLib
Under the RUN button will be the unique name of the XRP. You will want to write this on the XRP.
Disconnect the XRP from the cable and turn on the XRP.
When you click CONNECT select Bluetooth and it will bring up a list of XRPs that are not currently connected. (If your XRP does not show up press reset)
Select your XRP's ID and click Pair.
(Be sure not to pair with someone else's XRP. That won't be fun at all...)
Once connected XRPCode should be the same as if connected via a cable. YOU ARE NOW CABLE FREE!
If the XRP is reset / turned off / too far away XRPCode will show RE-CONNECT XRP for 10 seconds and then switch to CONNECT.
If the XRP is turned back on / brought closer XRPCode will auto re-connect to the XRP within that 10 seconds
If you start the XRP and a program runs keeping the bluetooth from connecting then press reset and it will restart without running the program
Get the Bluetooth connection working on your XRP and XRP Code Editor
(Will this work well in a classroom with many XRPs? Not sure...)
Write a simple program (in Blockly or Python) that makes use of the wireless connection.
Turn the LED on/off from the computer keyboard
Drive your XRP using your computer's WASD keys (Forward, Left, Right, Reverse)
Your ideas?