-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Given that this is an extension of the user configuration, not a fix, the minor version should be bumped. I'll merge this when UltimateHackingKeyboard/agent#2385 gets implemented. |
Well, it is one that is not backwards compatible (or is it?), so it should major version correctly? Anyways, the only reason I bumped it is so that it can be merged independently of agent implementation. Given that merging waits for Agent, I think we don't need to bump anything? |
You're right. The major version should be bumped. But let's leave it this way for now. Maybe we'll only bump the major version before merging the UHK 80 repos into the official repos. |
I am starting to working on Agent side of this PR. I think worth to rebase or update this branch with the firmware80/master because many thing has been modified in the firmware, that affect the firmware upgrade process |
I implemented the Agent side requirements in the UltimateHackingKeyboard/agent80#84 PR. I restarted the CI to generate the firmware artifact. I flashed the firmware with it @kareltucek If you will have time could you check it. Thy |
a72eb39
to
df9eec5
Compare
I have found and resolved some problems on my side and written some better logging to help troubleshoot cases like these. At the moment, I am encountering this:
What exactly are those zeroes between addresses 125 and 145? |
0dd39a9
to
4bf4b37
Compare
I don't know what are the zeros. If you start Agent with I just copy the first iteration of the status buffer from my computer
the message parsed as UTF8 string is
The status buffer contains so many Based on it Agent reads and parses properly the status buffer. I added more log entry to Agent for easer follow the status buffer reading. Somewhere I read somewhere in other comment Agent hides the error message of the save configuration event. |
or do you ask why are the extra zeros maybe because I send the name for |
Oh, sorry. The numbers are the relevant parts of the serialized configuration, each number describing one byte. They make sense until address ~125. Around address 128, the parser errors out when trying to read number of keymaps and it encounters 0. The above comment describes meaning of the byte sequences as interpretted by me. I believe that targets section should (in the above screenshot) end at address 124. It seems like you are saving 20 (or so) extra zero bytes that the firmware doesn't expect. |
As to not returning error codes, I see the problem. Will fix it soon. |
I also fix the Agent. Now I don't serialise |
thanks for your help |
This comment was marked as outdated.
This comment was marked as outdated.
0eac4b5
to
27a6079
Compare
- stack overflow on c2usb thread, - saving the config
It finally works! Please rename targets to connections according to the new naming across the codebase. |
"Connection" is a darn generic term. It is going to get mixed up with a number of other connections across the codebase. Wouldn't it be better to use something less ambiguous internally, and use "connections" only in UI and macro language? What about something like "hid target"? |
How about the previously proposed "host connection" term? If not, HID target can work. |
Sounds great! Will "rebrand" that in an hour. (Already got scripts for this kind of thing 😃.) |
This reverts commit e3b524a.
Looks like there are some debug statements left in the code. Wanna remove them before I merge this PR? |
Oh, yes, forgotten about them! |
Done. |
I have bumped the version to 8.0.1 for the sake of our internal config version compatibility.
Closes UltimateHackingKeyboard/agent#2408
(This just parses the targets. It doesn't do anything with them.)