I am trying to rewrite a small utility tool for my bike computer Mio 105. Unfortunately there is not any API to do that, so the only thing left is reverse engeneering. So I have set up a USB sniffer and used orginal software to communicate with the device. I managed then to write a piece of code which was able to communicate too, the port was set up correctly, but there is a problem how it works. In original soft data is being transfered in bigger packages (up to 4kB) but in my code I had to read one byte by one. So here is the question: how to achieve something like this packages automatically?
I used Serial Port Monitor to watch a USB port. Here's an example of data being sent: https://pastebin.com/SdePj58x When I manually open the port using this program I can see that RTS and DTR are turned on. Sending one particular hex code results in the same answer from device like given before. Is this communication somehow standarized or these hex-code commands are specific for this device and I need then to hardcode them inside my program?