Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I still think you are going about this the wrong way. Using a USB monitor will give you the data coming from the device, as well as communication from the USB<>Serial port adapter. In other words, you're getting more data than you really need.
Ignore the USB bus. Let the kernel handle it, since you are using a converter anyways.
You need to figure out the data tansmission settings for the serial port first, then you can write a program that uses the serial port. If you have a system with a serial port, try using it to communicate with your Windows software. Have the Windows system send data, and tweek the serial port settings until you get ledgible data on the other side. If you don't have two computers to work with, download a serial port sniffer (google returned several free versions).
The problem is that when I use a serial port sniffer on the device, it returns zip. I see the port open and then no data crosses the wire. This was the only data I could get. I agree with you. I'm just not sure what else to do. I'll try to install a serial port on my other box, but I'm not sure if I can.
If you can see it open the port, then you should be able to get enough info on the data transmission settings. This is the information that the serial port needs to communicate with the device (baud, data bits, parity, stop bits - i.e. 9600,8,n,1). Once you have this info, then it gets easier. But without it, you're stabbing in the dark.
Software sniffers shouldn't interfere with the data transmission. They just monitor the data to<>from the serial port, much the same way that a network packet sniffer works.
OK, I know it's been a while, but I've been studying for and taking exams. Now I've got some more time. I connected to the serial port with the sniffer, and I got this:
Max Baud Rate: configurable
Data Bits: 5, 6, 7, 8
Stop Bits: 1, 1.5, 2 stop bits
Parity: None, Odd, Even, Mark, space parity
Current Rx Que: 4096 bytes
Capabilities: DTR/DSR, RTS/CTS, RLSD, Parity Check, XON/XOFF, settable XON/XOFF, Total timeouts, Interval time outs.
I don't know how much of this is relevant, but I thought I'd put it all down anyway. Now this is with the device off, because the software seems to snatch the device (it disappears from the list of monitorable devices on the sniffer). Also, the software never closes the serial port, and no data is recorded on the sniffer except the opening of the port and then just 58 (probably should be 58h). Does that mean anything?
Unfortunately those are just serial configuration settings and not real helpful. Typical settings are 9600 BAUD, 8 data bits, no parity, and 1 stop bit and hardware flow control.
OK, does anyone know where I can go from here? I'm a little lost. I found a tutorial here there seems pretty good for USB drivers. I'm thinking about setting up a small Gentoo partition so I can mess with usb-skeleton.c to familiarize myself with the whole kernel... thing. Yes? No?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.