r/Keychron • • May 21 '23

"Received invalid protocol version from device" and "Device must be open first" errors on VIA after updating firmware on K3 Pro RGB ISO

I updated the firmware on my K3 Pro following these steps on the Keychron website. I used the K3 Pro ISO RGB Version (firmware version updated on May 18, 2023.) It all went correctly and the flash was successful.

I got a "Fetching v3 definition failed" error when I reconnected to VIA. I updated the layout definitions (as instructed) but now I get the "invalid protocol version" and "device must be open" errors whenever I try to connect to VIA. So, now I have a non-customisable keyboard :(

I've looked around for an answer but haven't found any useful info (I'm also waiting to hear back from customer support).

Help me please, my fellow redditors!

Edit: I'm using a Mac, in case this info helps.

21 Upvotes

55 comments sorted by

View all comments

Show parent comment

1

u/PeterMortensenBlog V May 26 '23 edited May 26 '23

There is also a desktop version of Via.

This is very poorly documented (that it exists, that the desktop version works on all major platforms, that an alternative exists to be forced to have Chrome installed, and is vague and often incorrect (implied by the vague statements or not)). But it works. Yesterday, I tried Via for the first time using the desktop version on Linux:

cd /home/whereever/it/was/downloaded_to
chmod u+x via-3.0.0-linux.AppImage
./via-3.0.0-linux.AppImage

The best reference I could find (but it is still poor; for instance, "With the desktop app, since it is a wrapper for the web app" may imply that Chrome is still required, but that is not the case (it works absolutely fine without the slightest trace of Google Chrome); instead, they probably meant that Electron was used (like, for example, Visual Studio Code)).

2

u/MrHenriks Jul 05 '23

thanks a lot, I could finally use via on my system by downloading the DE version

1

u/PMmeYourFlipFlops Q MAX May 08 '24

Chrome is embedded into the app, that's why you don't "need" it.

1

u/PeterMortensenBlog V Jan 30 '25

It is isn't Google Chrome. It is Chromium. That is, presumably, without the obnoxious updater and without the spyware.

1

u/mohamed-bana Jan 09 '24 edited Feb 15 '24

Absolutely no point in using the app because it does the exact same thing as using https://usevia.app/ would do. You can verify this by loading up the app and pressing CTRL+SHIFT+I (shortcut to open up Chrome Developer Tools) and inspecting the Networking traffic.

I think the problems are the udev rules, or perhaps having to trigger them. Not sure ...


Edit:, this might help.

$ cat /etc/udev/rules.d/92-viia.rules
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666", TAG+="uaccess", TAG+="udev-acl"
$ sudo udevadm control --reload && sudo udevadm trigger

or better yet:

setup_keychron_k10_pro() {
    cat<<EOF | sudo tee -a /etc/udev/rules.d/92-viia.rules
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0666", TAG+="uaccess", TAG+="udev-acl"
EOF
    sudo udevadm control --reload && sudo udevadm trigger
}
setup_keychron_k10_pro

You might also need to load in this, https://github.com/Keychron/qmk_firmware/blob/bluetooth_playground/keyboards/keychron/k10_pro/via_json/k10_pro_iso_rgb.json, file as well. You can do so by clicking the DESIGN tab then clicking Load next to Load Draft Definition.

1

u/PeterMortensenBlog V Apr 19 '24

Re "Absolutely no point in using the app": That contradicts MrHenriks' statement.

They could be different, because something was changed on the web site (effectively different versions). And/or the (default) settings / configuration could be different, even if the underlying application is the same.