Hi! Imagine I have some device connected to USB port. Is it possible to send some code directly to that port? Here's what I'm trying: # echo "0" > /dev/bus/usb/004/010 -bash: echo: write error: Invalid argument
On Thu, Feb 04, 2016 at 06:45:57PM +0300, Hiisi wrote:
Hi! Imagine I have some device connected to USB port. Is it possible to send some code directly to that port? Here's what I'm trying: # echo "0" > /dev/bus/usb/004/010 -bash: echo: write error: Invalid argument
Sort of, but not like that. I'd recommend using PyUSB: https://walac.github.io/pyusb/
how about
you plug in your USB widget & identify the device node (/dev/sdc1, for example).
say your src data is in /tmp/junk
# dd if=/tmp/junk of=/devsdc1 [any other args you might want to shape the write and some error handing ( i think, it was a long time ago...)]
man dd {for more options}
hth,....
On Thu, Feb 4, 2016 at 7:45 AM, Hiisi hiisi@fedoraproject.org wrote:
Hi! Imagine I have some device connected to USB port. Is it possible to send some code directly to that port? Here's what I'm trying: # echo "0" > /dev/bus/usb/004/010
-bash: echo: write error: Invalid argument
Hiisi. Registered Linux User #487982. Be counted at: https://linuxcounter.net/ -- Spandex is a privilege, not a right.
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org
On Thu, Feb 4, 2016 at 10:45 AM, Hiisi hiisi@fedoraproject.org wrote:
Imagine I have some device connected to USB port. Is it possible to send some code directly to that port?
Try:
http://stackoverflow.com/questions/3526593/sending-raw-data-through-usb-on-l...
On 4 February 2016 at 22:43, Ted Roche tedroche@gmail.com wrote:
Try:
http://stackoverflow.com/questions/3526593/sending-raw-data-through-usb-on-l...
Try what? Simple '>' doesn't work :(
On 4 February 2016 at 21:17, Jack Craig jack.craig.aptos@gmail.com wrote:
how about
you plug in your USB widget & identify the device node (/dev/sdc1, for example).
say your src data is in /tmp/junk
# dd if=/tmp/junk of=/devsdc1 [any other args you might want to shape the write and some error handing ( i think, it was a long time ago...)]
man dd {for more options}
hth,....
Will check with dd. Thanks!
On 4 February 2016 at 18:54, Matthew Miller mattdm@fedoraproject.org wrote:
Sort of, but not like that. I'd recommend using PyUSB: https://walac.github.io/pyusb/
Thanks! Any library like that for C++?
On Thu, Feb 04, 2016 at 11:25:21PM +0300, Hiisi wrote:
Sort of, but not like that. I'd recommend using PyUSB: https://walac.github.io/pyusb/
Thanks! Any library like that for C++?
Yes. Well, C. http://libusb.info/
On 5 February 2016 at 02:48, Matthew Miller mattdm@fedoraproject.org wrote:
Yes. Well, C. http://libusb.info/
Thanks a lot! Stupid gmail webinterface doesn't allow me to change topic. Otherwise I would mark the topic as [solved].
On Fri, Feb 05, 2016 at 03:06:19PM +0300, Hiisi wrote:
Yes. Well, C. http://libusb.info/
Thanks a lot! Stupid gmail webinterface doesn't allow me to change topic. Otherwise I would mark the topic as [solved].
Well, it's a mailing list, so you can't really change the whole thread topic. But you _can_, in gmail, change the subject any given reply by clicking on the little drop-down triangle to the left of the address bar in your reply.
On 5 February 2016 at 13:24, Matthew Miller mattdm@fedoraproject.org wrote:
On Fri, Feb 05, 2016 at 03:06:19PM +0300, Hiisi wrote:
Yes. Well, C. http://libusb.info/
Thanks a lot! Stupid gmail webinterface doesn't allow me to change topic. Otherwise I would mark the topic as [solved].
Well, it's a mailing list, so you can't really change the whole thread topic. But you _can_, in gmail, change the subject any given reply by clicking on the little drop-down triangle to the left of the address bar in your reply.
Regrettably that will cause gmail to drop the references headers, breaking threading for everyone reading it (or did last time I looked at it). Doing it in a real mail client should work properly.