I am planning a project and would appreciate any guidance you guys could give.
At the moment, I have a measurement device connected to a decoder box - the decoder box is connected to another PCB using a USB cable.
If practical, I would like to break into the USB cable running between the decoder box and the PCB to modify the values on the fly. Specifically, if two digits(say char 5 and char 6) are the same, a 1 would be appended, otherwise a 0 would be appended.
So if 123456789 were transmitted from the decoder, I would like to intercept and change it to 1234567890.
Likewise if 123455789 were transmitted, I would change this to 1234557891 and send on.
I have some experience programming PICs and RS232 but no experience using USB(2 in this case).
Initially, I was thinking about using a PIC with a USB input connected to the decoder, the same connected to the PCB and SPI between the two PICs.
Firstly, is this possible, and do you have any pointers on PICs & USB2.
Thanks.