Thanks!
I could also include some sort of verification that it is code generated by the app, otherwise, the PC would reject it.
My original idea was to send the data via HID vendor defined pages, then store it in flash, and load it into RAM as an array of "Commands", but performance is my main concern, and it seems like predefined, compiled code would be a better option.
How would I do this??
I was trying to remove the need for computer-side code, so the PC side wouldn't work.Logitech extends the mouse HID a bit; the rest is done on the PC side.
Would this be OK if, for example, it was just a list of predefined functions, which then users could add up to around ten per button? These would be like: Keyboard Button, Mouse Button, Delay, etc.Running user code on a device brings up security issues, sandboxing, CIA hacking [1], etc. Compiled or JITed user code will be more problematic than interpreted scripts. The moment you call it a serious product, a horde of security researchers will jump on it -- those fellows like to write fun papers for Defcon...
I could also include some sort of verification that it is code generated by the app, otherwise, the PC would reject it.
My original idea was to send the data via HID vendor defined pages, then store it in flash, and load it into RAM as an array of "Commands", but performance is my main concern, and it seems like predefined, compiled code would be a better option.
I think this would probably be the best - I can also hardwire/control with a tiny MCU, the BOOTSEL up/down when uploading/not uploading.For large updates, maybe use the BOOTSEL style (== explicit user intervention.)
How would I do this??
Statistics: Posted by Yanntastic5915 — Fri Oct 04, 2024 6:38 am