Hi,
sorry for late reply.
The tests you linked were actually very helpful, thanks for that.
The hottest problem I had was about reconnecting USB after resetting the device (or powering off and on again). After some research I solved this a physical way - pulling the usb D+ up and down in particular moments.
However, It might be - perhaps - a good idea to place the link for the tests into the docs page, because these somehow does not contain a word about the connection handling.
The “Reading data as FileHandle” I solved with a workaround which does not use posix read() behavior.
I just reworked it to use ´FH->readable()´.
This probably concludes my questions, thanks for your help.