When I first bought, it totally worked. but now, it works after many plug and re-unplugs. What should I do? and it keeps not detecting the usb to ethernet cable.
The best thing you should try is remove the interface in your System Preferences, Network.
Select the USB adaptor, click the - sign, then re-add the interface.
That could fix your problem.