Page 1 of 1

Software to read from USB?

Posted: Tue Aug 12, 2008 11:14 am
by etlam
Hello,
I want to send Debugging Information from my testing machine to another computer. I thought about doing it with trough parallel port (then there is also no difference to when I run it in bochs). But for this I have to use a wire which is usb on the other side (since the other computer is a notebook and doesn't have a parallel port #-o ).
1. Will this work? The wire was made for the other way (usb to parallel printer). Can I just send data the other diraction?
2. I'm then searching for a software for Linux or Windows, which can read data coming in from usb and store it in a file. Is this possible maybe with dd or something similar?

Thanks in advance,
etlam

Re: Software to read from USB?

Posted: Tue Aug 12, 2008 2:17 pm
by tetsujin
etlam wrote:Hello,
I want to send Debugging Information from my testing machine to another computer. I thought about doing it with trough parallel port (then there is also no difference to when I run it in bochs). But for this I have to use a wire which is usb on the other side (since the other computer is a notebook and doesn't have a parallel port #-o ).
1. Will this work? The wire was made for the other way (usb to parallel printer). Can I just send data the other diraction?
2. I'm then searching for a software for Linux or Windows, which can read data coming in from usb and store it in a file. Is this possible maybe with dd or something similar?

Thanks in advance,
etlam
Hi,

I don't really have a good answer for the first question (whether it's possible to connect a USB-to-printer to one computer's USB and another's printer port) except that at the very least you'd need a gender changer and a USB-to-printer adaptor designed for versatility... Most aren't designed for versatility, they're just designed for talking to printers.

Rather simpler would be to use a USB-to-serial converter (or possibly two, if the system you're testing would have a driver for the USB-to-serial chipset) and a null modem. RS-232 comms are relatively easy, and the drivers already exist and will be capable of doing what you want them to do - and for your logging software you could use a terminal app like minicom or just write something yourself.

Re: Software to read from USB?

Posted: Wed Aug 13, 2008 3:09 am
by etlam
Thanks for your answer. I can't try it now, because I'm still 1,000km away, but I think I can do it as you proposed.

Thanks,
etlam