Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
You should probably get some ideas if you run a sniffer, as I would
probably too if I see your capture file.
As a first guess, I bet you are losing frames in your driver. You should
first run an application you know it works (like the ones in "apps" or
in the "contrib" tree) before diving into coding your one, because if
there is a problem in your driver or your port, as I think, you don't
know where to start fixing.