I have a Debian Lenny system and I've plugged in a USB 56K modem. (I know that's as outdated as a Model T, but I need it for business.) When I type "cat /proc/bus/usb/devices" I get this:
From what I can find, that means the actual device file for this modem should be at /dev/bus/usb/001/002, but I know I could be wrong on that.
I'm trying to communicate with this modem. I've used Minicom, with the device I mentioned above. There are no /dev/ttyACM0 devices, as sometimes happens with a modem. I've tried all /dev/ttySx, where x is from 0 to 4, with no results. The problem with Minicom is that it can take time and a lot of frustrating keypresses to try one device after another. Also, I'm not sure the serial port speed settings are at all appropriate in Minicom for USB modems.
I was also trying a Perl program that would simply fork, have the parent open the device for reading and listen, then the child would open the same device for writing and send "ATZ" through to the device, then I could watch for a response -- but then when I tried it on a system with a serial port where I knew the device was /dev/ttyS0, it didn't work, so maybe there's a problem with the program. (I don't want to post a full Perl program here, since this isn't a Perl board that focuses on debugging Perl.)
This is a test situation, so I can't be sure the modem works with Linux, but I would think if it's external and USB, it would have to accept serial commands sent over the USB port. I could be wrong on this, of course.
So here's the questions:
1) What device should I be able to write to and read from to connect to this modem?
2) Any suggestions on how to write to and read from the device? (Write to it in Perl or use echo in bash -- but then how do I read to see results?)
3) Any other ideas or suggestions on how to control and use this modem in Linux (without going into C or C++)?
Thanks for any help on this!
Hal
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 8F2308B6-5559-40D6-A963-DD1582010D43@halblog.com">http://lists.debian.org/8F2308B6-5559-40D6-A963-DD1582010D43@halblog.com
10-09-2010, 08:17 AM
Ron Johnson
Communicating with USB Modem
On 10/09/2010 02:21 AM, Hal Vaughan wrote:
I have a Debian Lenny system and I've plugged in a USB 56K modem. (I know that's as outdated as a Model T, but I need it for business.) When I type "cat /proc/bus/usb/devices" I get this:
From what I can find, that means the actual device file for this modem should be at /dev/bus/usb/001/002, but I know I could be wrong on that.
I'm trying to communicate with this modem. I've used Minicom, with the device I mentioned above. There are no /dev/ttyACM0 devices, as sometimes happens with a modem. I've tried all /dev/ttySx, where x is from 0 to 4, with no results. The problem with Minicom is that it can take time and a lot of frustrating keypresses to try one device after another. Also, I'm not sure the serial port speed settings are at all appropriate in Minicom for USB modems.
Anything in dmesg or syslog when you plug it in?
--
Seek truth from facts.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org