Connecting via Bluetooth

Hello,

I am trying to connect my XRP via Bluetooth, but it keeps saying “Error connecting to the XRP. Please refresh this page and try again.”

It works fine with USB and the PestoLink bluetooth, but I want to connect the editor directly with Bluetooth so I can run the robot autonomously.

In my attempt to connect to bluetooth, initially, it did not show any XRPs available to pair. After I pressed the reset button, my robot showed up. I clicked to pair to my robot, and that’s when the error message popped up.

I tried this multiple times and refreshed the browser but I am not sure how to fix it.

Any suggestions are much appreciated! Thank you!

The web bluetooth connection is depedent on the bluetooth code in the operating system. When XRPCode suggest refreshing the page it means that it is getting a timeout along the process of connecting. Also on a Windows machine it can take up to 20 seconds for the condition to clear.

Here are a few of things to try.
1 - connect the XRP via a USB cable and make sure all the libraries are up to date. You can also force an update by deleting the file version.py in the lib/XRPLib directory.
2 - Make sure your batteries are fully charged or new. The bluetooth chip is on of the first things to brown out when the batteries are low.
3 - You can also try running a simple program with the USB connected that ends and does not continue to loop. Like just turning on the LED and then ending. When the XRP is running in a very type loop with no end, it can sometimes be hard for XRPCode to get its attention.

It works now, thank you! The problem was with the batteries.