Hello Martin.
I'm interested to USB virtual nic project.
I'm started working with USB CDC project porting on it the mmcau_lib.a library so to use the encryption decryption features trough the USB bus.
The main problem i've encountered is that:
To set-up a communication protocol between my TWRK60F120M and the PC,in order to communicate it which action perfrom encryption/decription, aes/des....,,, i need to know when the frame start and ends. in light of this, in the first instance, I've thougt to implement,as layer 1 protocol, an asynchronous HDLC. The problem is that with this protocol, expecially with the fragments (you know in CDC project the MTU max is 64 byte), i need several memcpy, memset... that lower significantly the throughput.
My interest to USB virtual nic project is due to the fact that i suppose this communication has a native framing method (hardware implemented) that should helps me to understand when a frame starts and ends and that have an insignificant impact on performance.Is it true??
Should you give me some input about this problem.
Thanks in advance
Alessandro