sending data to usb port

Jack Craig jack.craig.aptos at gmail.com
Thu Feb 4 18:17:49 UTC 2016


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 at 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 at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20160204/8521f8e9/attachment.html>


More information about the users mailing list