I recently was following set up docs for RAE(https://docs-beta.luxonis.com/deploy/connect-device/RAE) and was wondering if it is possible to manually connect to Robothub as well by updating the /home/robothub/agent.toml
file mentioned here (https://docs-beta.luxonis.com/develop/robotHub-platform/agent-robot) and restarting the service (robothub-ctl restart
), or some other process?
Robothub manual configuration
Looking into this further using robothub-ctl help
after manually setting up wifi.
Running
robothub-ctl devices after editing /home/robothub/agent.toml
to look for rcv3 devices and adding my team ID found under Team Name in robothub settings
shows (omitting serial)
product │ location │ status │ connectionStatus │ app
RAE (DM3370) │ 127.0.0.1 │ success │ ready │ none
Running robothub-ctl cloud connect
then shows ready to connect, with a link https://robothub.luxonis.com/auth/connect-agent/<code> or head to RobotHub -> Robots -> Connect Robot and enter the following code: <code>
Finally, run 'robothub-ctl cloud connect' again or wait for robot to appear
Not finding anywhere to enter a code, I tried the link and I get the following message when trying to click the Connect to <team_name>
button
Hello @loxscs,
Can you please explain your use case for connecting in this "manual way"? Is connecting RAE to RobotHub with the default approach not working for you?
The original QR code based way doesn't seem to work, trying several times, several resets to the device.
The other use case I was thinking about is being able to add or remove systems from Robothub without having to completely reset the device.
The other piece of feedback is on the lack of feedback during this QR based network connection. There is no indication that the system is actively scanning, no feedback on alignment, whether it tried and failed, etc.
I just did a check scanning the code with my phone camera and looking at the decoded string it appears there might be an issue parsing special characters properly as the input information and decoded information do not match.
Hello @loxscs ,
I'm sorry for the complications and thanks for your feedback, we are looking to make this experience smoother. I will get back to you on how to connect to RH manually.
Concerning the character decoding issue - I will let the team know. Can you specify any special characters that are decoded incorrectly? I cannot replicate this issue currently.
Thank you
- Edited
There is an ! and $ that look to decode to %21 and %24, respectively.
This is standard URL encoding AFAIK, it encodes every character outside of ASCII in a similar way. Nevertheless, there might be an issue here - I will let you know as soon as I have more information on the above issues.
Well, as another data point, I used another QR generator, such as qr.io with the corrected text string from robothub and was able to initiate the connection with RAE.
I noticed the LEDs seemed to flash when scanning, not sure if this was a coincidence or not.
There will be an addition to the docs on how to connect manually, currently it is not possible.
In regards to the alternative QR generator - I am a bit puzzled by this, can you provide more information? How did you correct the string?
Thank you
So, I first scanned the Robothub QR code generated using Add Robot-> RAE -> Enter SSID and PW using my phone camera, this gave me the following string
ssid:<ssid>;;PASSWORD:<password-With-Errors>;;RH_PIN:<pin>;;
I then copied this into qr.io as a text example, but entered the correct characters (! and $) and then scanned this with my RAE. This showed "connecting to <ssid>" then "connecting to robothub" etc.