Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

usbserial

“The semaphore timeout period has expired” error for USB connection

September 24, 2023 by Tarik

Okay, I am now connecting without the semaphore timeout problem. If anyone reading ever encounters the same thing, I hope that this procedure works for you; but no promises; hey, it’s windows. In my case this was Windows 7 I got a little hint from This page on eHow; not sure if that might help … Read more

Categories c# Tags c++, semaphore, serial-port, usb, usbserial Leave a comment

How to programmatically unplug & replug an arbitrary USB device?

August 25, 2023 by Tarik

What about using Devcon.exe to “remove” and then “rescan”? DR

Categories c++ Tags c++, usb, usbserial, winapi Leave a comment

bypass android usb host permission confirmation dialog

August 15, 2023 by Tarik

I know it’s a bit late, but still… I had the same kind of problem and I think I’ve managed to solve it. There’s a service that Android uses internally that allows to manage USB devices and accessories. This service is hidden from thrid party developers and is not documented. If you check the source … Read more

Categories android Tags android, permissions, root, usb, usbserial Leave a comment

How to sniff a USB port under Windows?

April 29, 2023 by Tarik

After five years waiting, now it’s possible to sniff usb packets on windows See http://desowin.org/usbpcap/tour.html for a quick tour. It works pretty well

Categories windows Tags sniffing, usb, usbserial, windows Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa