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

2

u/jluna79 May 26 '23 edited May 27 '23

I made a diff comparison and can confirm that the file you posted is the same file in the keychron repo. I tried using this file when I flashed the firmware but got no results.

However, this time I followed your idea of using a new window and it worked! :O

I'm not sure what exactly was the reason but here are some of the steps and considerations

  1. I am using Chrome. I had only one window where I had been doing all the previous tests.
  2. I started by opening a new private window, went to usevia.app, enabled the design panel, loaded the file (leave "Use v2 definitions" off). Paired with the keyboard, no errors were shown but the "configure" screen remained loading. I could, however, turn on "diagnostic information" in settings (showed firmware protocol v12 as you mentioned)
  3. Closed the private window, opened a new regular window and followed the same steps as before. It connected correctly! Everything is working as before 🎉
  4. Extra esting 1: I closed the new window and went back to my "original window" and followed the steps. Got the "Fetching v3 definition failed" again. _Very_ weird.
  5. Extra testing 2: Did points 2 & 3 again. They keep working correctly. I guess there is something that opening a new window does? Maybe something stored in cache/local-storage? (I didn't test but maybe clearing all cookies and storage might fix it also)
  6. Extra testing 3: I can even load my previous json mappings!

Thank you very much for pointing in the right (strange) direction!

Edit: After playing a bit more, I’ve found that some keys are missing in via.

  1. Custom keys only get to 9 (but the layout shows 14 & 15, probably a firmware mistake)
  2. the Launchpad and Mission Control (Mac) are not in the corresponding section of VIA.
  3. The Bluetooth device 1-3 keys are incorrect/unset compared to the original layout