LightSourceR2X4 (R/G/B/W)

Not connected
Demo
Establishing a connection
  1. Use Chrome or Edge on a desktop OS. Firefox and Safari don't support Web Serial.
  2. Open this page as a local file (file://) or over https://. No web server is needed. The page loads its COBS and CRC libraries from cdn.jsdelivr.net, so it needs internet access.
  3. Plug in the light source over USB and click Connect. Choose Lightsource VCP in the port list (USB ID 0483:5740).
  4. Connecting takes up to about a minute: the page configures the light source and waits for the LED temperature to stabilize. The status line shows progress.

Port not listed?

  • Linux, Chromium installed as a snap (e.g. Ubuntu): the sandbox hides USB devices until you allow it. Run this once, then close every Chromium window and start it again:
    sudo snap connect chromium:raw-usb
    Check with snap connections chromium: raw-usb should show :raw-usb. You can ignore the "no serial-port interface slots" error from snap connect chromium:serial-port, because it isn't needed.
  • Linux, port access: your user must be in the dialout group (sudo usermod -aG dialout $USER, then log out and in again).
  • Port is busy: only one program can use the port at a time. Close other connections (Python ls_r2x4, r2x4_gui_qt, serial terminals, or this page in another tab).
  • Check that the device is visible to the OS: lsusb | grep 0483:5740 on Linux, Device Manager on Windows.
Log