LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-04-2002, 12:34 PM   #1
yoshi273
LQ Newbie
 
Registered: Jul 2002
Distribution: RedHat7.3
Posts: 6

Rep: Reputation: 0
Simple USB-Linux issue...


Ok, I have a cellphone with a USB cable capable of being used as a regular modem to dialup to the net. It works perfectly fine in windows, and I read a small document that some guy said all cell-phone modems will respond to normal AT commands. Im currently running RedHat 7.3 and there is an internet configuration tool. I tell it that I want to add a modem and it asks me for the /dev location of it - and I dont know it. After some research, I found that it should be something like /dev/usb/TTYACM0 or something like that. So anyways, after some looking I found that I could do a mknod command and create a character device or something in there. I did the command:

mknod /dev/usb/ttyACM0 c 166 0

And it made that entry in /dev/usb, but it didnt seem to work. I also wasnt totally sure what the numbers 166 and 0 represent. Anywho, I basically need some guidance about how to create some working entry in the /dev are that connects w/ that USB cellphone cable.

Here is some data pulled from usbview:
KWC USB to Phone Cable
Manufacturer: KWC
Serial Number: 00000000
Speed: 12Mb/s (full)
USB Version: 1.00
Device Class: ff(vend.)
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 0c88
Product Id: a226
Revision Number: 1.09

Config Number: 1
Number of Interfaces: 1
Attributes: 80
MaxPower Needed: 94mA

Interface Number: 0
Name: (none)
Alternate Number: 0
Class: ff(vend.)
Sub Class: 0
Protocol: 4
Number of Endpoints: 3

Endpoint Address: 81
Direction: in
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms

Endpoint Address: 02
Direction: out
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms

Endpoint Address: 83
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 8
Interval: 1ms


Thanks guys!
 
Old 07-04-2002, 08:32 PM   #2
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
hehe...may I remind you that USB was afterall made for Windows...and perhaps Macintosh....I mean people have enough problems as it is with something way more popular than a cell phone USB...such as USB DSL modems... usb is no good man...
you should get the number of that guy you heard that made it run...heh...and call'im.
 
Old 07-04-2002, 09:13 PM   #3
yoshi273
LQ Newbie
 
Registered: Jul 2002
Distribution: RedHat7.3
Posts: 6

Original Poster
Rep: Reputation: 0
well, thats what people told me about my internal software-based 56k modem - but then i got it working =)
 
Old 07-04-2002, 09:26 PM   #4
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
oh, I didn't say it was impossible...but however I know not 1 person that uses his usb cell phone connector to access the net using windows...so I think there will be a lot less people using this setup with Linux,
 
Old 07-04-2002, 11:22 PM   #5
mlp68
Member
 
Registered: Jun 2002
Location: NY
Distribution: Gentoo,RH
Posts: 333

Rep: Reputation: 40
Although I don't have a USB-enabled phone, I have seen my European friends using their cell phones as modems via the IrDA port, so at least it's conceivable that it can work. Instead of usbview, do a
cat /proc/bus/usb/devices
(and post what you get, I'd like to see it). If anything about a "Driver=acm" shows up, you may be in business. I presume that you enabled the ACM drivers in the kernel - just making the device files is not enough.

I could also imagine that the phone presents itself as a serial device. Let's see what that proc entry says.

BTW, I came to like USB devices - Microsoft or not, fact is that USB support has come a long way on Linux. I connect to a camera, a floppy drive, and my Sharp Zaurus through USB, and it works just fine.

Martin
 
Old 07-04-2002, 11:33 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I connect to a mouse, Dig Cam/Camcorder, Printer, and memory card reader through USB all on Linux. Works great. In fact, when I first started using some of these, all I had to do was plug them in before boot up, then run Harddrake to configure em. Not too shabby either.

Besides the /proc/bus/usb/devices you may also want to do an lsmod and list the results of that as well.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
simple problem to a big issue avimd Linux - Laptop and Netbook 1 06-25-2005 06:33 AM
BASH - simple script issue - syntax? tw1ggy5 Programming 11 05-21-2004 09:09 AM
probably simple, gateway issue? jfranks214 Linux - Networking 3 05-11-2004 10:51 AM
Simple Samba issue cockblocker Linux - Software 3 07-06-2003 10:49 PM
kde 2.0 development/simple toolbar issue vance Programming 0 12-20-2001 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration