usbrply icon indicating copy to clipboard operation
usbrply copied to clipboard

Bring back libusb c output target

Open JohnDMcMaster opened this issue 4 years ago • 4 comments

These were removed during the recent rework. But pyprinter.py is pretty straightforward, and it should be easy to replicate that as a template to bring them back

Other: I haven't needed C recently, so this hasn't been as high priority. But if someone wants it I can add it back likely pretty quickly

JohnDMcMaster avatar Apr 01 '20 20:04 JohnDMcMaster

Any chance to get this back? Kinda looking for it rn.

himekifee avatar Jan 22 '22 13:01 himekifee

@himekifee not sure if this is still of use to you, but I have a WIP: https://github.com/JohnDMcMaster/usbrply/pull/74

Did you want kernel or libusb?

JohnDMcMaster avatar Apr 23 '22 14:04 JohnDMcMaster

Libusb is generally enough for me. I used to prototype in libusb and if necessary, port to kernel code.

himekifee avatar Apr 23 '22 14:04 himekifee

I've added experimental support but its pretty untested (compiles but not tested on real device). If you happen to test it definitely interested in your feedback, otherwise I'll test it properly when I can

Ubuntu quick start if you want to test:

sudo apt-get install -y libusb-1.0-0-dev
usbrply -l --wrapper my.pcapng ->main.c
gcc -I/usr/include/libusb-1.0 main.c -lusb-1.0 -o main
./main

JohnDMcMaster avatar Apr 24 '22 22:04 JohnDMcMaster