USB Low Level commands (embedded Linux, terminal commands)
I am a Linux newb. I need to test a USB port on a device. I would like to test it like a comport (short tx/rx together, send char, read char). Is it possible to send a char or just to toggle the tx line high so I can measure the status change? Also, to does a command exist to simply read the status of the RX line. Here are my usb devices
root@TSSC:/$ lsusb Bus 001 Device 001: ID 1d6b:0002 Bus 002 Device 001: ID 1d6b:0002 Bus 001 Device 002: ID 0424:7500 root@TSSC:/$ |
You could do what you are proposing iff there was some sort of device which looks like a serial port plugged into the USB port. USB, in and of itself, is a bus used by other devices. The device drivers that use USB provide the mechanism for sending and receiving data. There are a couple of USB-Serial chips that are well supported in Linux; FTDI is one, and the other eludes my recollection at the moment. There is no userspace software that I know of that lets you control (send & receive data) the USB bus itself directly.
--- rod. |
Member Response
Hi,
You can look at: Introduction to FTDI bitbang mode Quote:
Quote:
HTH! |
All times are GMT -5. The time now is 07:33 AM. |