#libusb

Neustradamus :xmpp: :linux:neustradamus
2025-03-08

1.0.28 RC1 has been released ( / ) libusb.info/

Lorenzo Minierolminiero@fosstodon.org
2024-12-30

Considering the Windows editor for my #DNAfx GiT Core won't run on neither Wine nor any VM, I've spent the past few days trying to reverse engineer its USB protocol, in order to write a basic editor for Linux of my own. It's been interesting so far to play with #libusb (I can already kinda talk to the device), especially coming from the perspective of a network developer, but I have some doubts on how #USB communication works in general: is there anyone around here that can clarify a few points?

Orhun Parmaksız 👾orhun@fosstodon.org
2024-09-12

Today I discovered a pretty cool utility for listing USB devices! 🔌

🌸 **cyme**: A modern and cross-platform lsusb!

🔥 Displays manufacturer, serial number, speed, current information (mA) and more!

🦀 Written in Rust!

⭐ GitHub: github.com/tuna-f1sh/cyme

#rustlang #lsusb #usb #devices #utility #commandline #tool #libusb

2024-09-10

does anyone knows a simple way to handle hotplug #usb devices with #libusb ?

2024-09-06

I could really use some experts opinion on getting this function faster. The round trip takes 100~200 uS and is just too slow, but async read causes race conditions.
A single write takes 30 uS (async). Ive already removed all overhead on the device side code but the time stays the same.

via @loudfpv

mastodon.social/@loudfpv/11308

code poop
2024-09-04

Any LIBUSB Async (linux) experts here? I want to improve speed between usbsid and PC. Unfortunately I am running into race conditions causing packets from device to pc misalign, e.g. the callback gets called more then expected, or too late. Async send and sync on read is too slow.

Neustradamus :xmpp: :linux:neustradamus
2024-02-01

1.0.27 has been released () libusb.info/

2023-09-09

It works, but everything is hardcoded. Need to add some configuration system. #streamdeck #WriteInC #libusb

Stream deck, controlled by a piece of C code.
2023-07-10

Can anyone recommend a #framework that allows relatively easy cross-platform (#Android, #Windows, #Linux) development?
Needs to be able to:
- Open #USB webcam stream
- Call #ffmpeg
- Send USB vendor control transfers (or calls to #libusb)
- GUI

:BoostOK:

I really don't want to write code two times (and dislike Android app dev), but recently realized that I'd really like for my upcoming #P2Pro viewer to run on Android too.

But if there is no such thing, I'll stick to desktop only for now :/

Paul ‮etnomailgaTpaul@soylent.green
2023-03-28

Day 2 of my posting adventures to finally figure out what is going on with my build of #libuhd #libusb on #openbsd :openbsd:

sourceforge.net/p/libusb/mailm

:boost_ok: boosts would be v helpful in case anyone has seen something like this before, esp from bsd folks or sdr folks #ham #sdr #bsd

Paul ‮etnomailgaTpaul@soylent.green
2023-03-28

if any of my :openbsd: friends have some time to devote to a mystery, I don't know #OpenBSD's USB stack / ugen well enough to reason through the logs, so far everyone I've reached out to haven't been able to point me in the direction of a smoking gun yet #bsd #libusb

marc.info/?t=167993667800007&r

Brian Swetlandswetland@chaos.social
2023-03-06

With libusb_get_bus_number(), and libusb_get_port_numbers(), one can easily construct a path like /sys/bus/usb/devices/{BUS}-{PORTS} to access the string descriptors as "product", "manufacturer", and "serial" (if present). And /sys/bus/usb/devices/{BUS}-{PORTS}:{CONFIGNUM}-{INTERFACENUM} has "interface" for the interface string descriptor (if present).

#projects #xdebug #libusb #workarounds

Brian Swetlandswetland@chaos.social
2023-03-06

Annoying. libusb requires you to open a device before reading string descriptors (necessitating you have read/write permission because libusb only opens devices RW).

On modern Linux (and I believe on Windows and OSX) this is not actually necessary and makes enumeration and reporting errors to users that much more complicated than need be.

This feature has been discussed, but there has been no forward motion, it seems:
github.com/libusb/libusb/issue

#projects #xdebug #libusb #grumbles

2023-01-10

Yesterday I've learned what USB filter drivers are on Windows and that it's apparently pretty easy to install libusb0 as one. (Thanks @patagona)

Having done that, my initial plan worked on the second try. I can now send the command for switching the color palette, wohoo \o/

I only needed to make sure that I send the USB control transfers after the video capture has already been started, otherwise the call to #libusb will just hang indefinitely for whatever reason.

#P2Pro #reveng

A screenshot showing two thermal images side by side. On the left a similar image like the one from two posts ago, but with the characteristic "Iron-Red" color palette applied. On the right the greyscale raw image.
scy #GPN23 📞 7299scy@chaos.social
2022-08-09

Okay no it isn’t. But Thursday’s probably the day I start working with #libusb.

scy #GPN23 📞 7299scy@chaos.social
2022-08-09

So today is probably the day I start working with #libusb.

2022-05-27

Mein POS-Kundendisplay läuft nun auch unter Linux.
Es reicht schon, das Gerät mit #PyUSB über #libusb aufzumachen, die erste (und einzige) Konfiguration zu aktivieren und die seriellen Daten auf den per Wireshark ermittelten #USB-Endpoint zu schreiben.

Ich muss jetzt noch mal abwarten ob irgendwann der Puffer platzt weil ich keine Daten abhole, aber bisher funktioniert es und so viel hat ein #Display eh nicht zu erzählen.

@overflo

2020-03-23

`#libusb: debug [handle_events] caught a fish on the event pipe`
🎣 ❓

2020-03-13

My git commit message yesterday:
Use asynchronous #libusb transfers, with lambda functions as callback.
:awesome:
My git commit message today:
#TIL that C++ #lambda­s don’t work as C-style callback functions.
😩

Would someone on *buntu 18.04 tell me what version of #libusb they have installed by default?
And could you indicate whether you upgraded from a previous *buntu version or did a fresh install of *buntu?

#ScanningOnLinux #Driverproblems

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst