getting the correct USB device for attached mobile phone
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
getting the correct USB device for attached mobile phone
I just got a new cell phone and am trying to mount it to my linux box with a USB cable. I haven't yet had a lot of experience with USB devices and was needing some info on how to figure out which device I should use to access it. From what I found on the net, I am either supposed to use dmesg or 'tail /var/log/messages' to determine the correct device name, however this did not explicitly provide the device name. Is there a way to figure out the correct device form this info?
dmesg ('tail /var/log/messages' provides same info)
usb 2-2: new full speed USB device using uhci_hcd and address 3
usb 2-2: configuration #1 chosen from 1 choice
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 0421:0415 Nokia Mobile Phones 9300 GSM Smartphone
Bus 002 Device 002: ID 04e8:323a Samsung Electronics Co., Ltd
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
note: samsung is my printer. I did not need to know the device file since cups localadmin did the configuration for me.
I am not above trial and error, but I'm not sure of the best way to test each device to see if I get a "hit". Any info on this would also be apprecieated.
Also, my USB device fails to be detected at all unless it is plugged into the next available usb port. Is this a sign of a hardware problem or just normal behavior?
Not all phones are able to be "mounted" per se, so unless you're seeing the usual mass storage device detected-style messages in dmesg you're out of luck in that department. I use Bluetooth + Openobex to talk to my phone which works great but apps like gnokii and gammu will allow you to play with your phone over USB. Google those two for more info
My phone uses the EPOC file system and is supported in Linux with p3nfs. The filesystem is mounted with a command such as 'p3nfsd -series80 -tty <usb device> -dir <mnt DIR>' The documentation only gives an example of mounting over a serial connection so I am still trying to taylor it to my needs. Unfortunately, I can not figure out the correct device the command is looking for, and I'm pretty sure I will need to change '-tty' to something else.
Am I to understand you correctly that only USB storage devices are assigned a device file such as sda1/sda2/..etc? I would like to get p3nfs working since I should theoretically be able to mount my Linux drives on my phone as well, but I will also look into gnokii and gammu and see if my hardware is supported.
Am I to understand you correctly that only USB storage devices are assigned a device file such as sda1/sda2/..etc?
Yes, as far as I understand it that is correct.
Have a look in /dev, when you phone is plugged in and after dmesg has settled down, do you have a /dev/ttyUSBn? In a perfect world udev should create it and then you can use that as value for -tty and all should be sweet. Check that out and see if you run into a win
It appears to have created a device for each of my USB ports. I would like to be able to test the device prior to using it in the command (for debugging reasons). Is there a good way to test a device to see if something is plugged into it?
Not 100% of how to test the device but with that naming scheme it's easy to find which device is your phone.
Notice some of the numbers matching? The format is usbdevBUS.DEVICE. Maybe you could plug it in and see if there is a way on the phone to test the USB connection or maybe force something through the link? Then cat /dev/usbdev1.1 and see if anything gets dumped to your console. I know when I create an RFCOMM connection to my phone I can cat /dev/rfcomm and then send a file over Bluetooth and see the file get dumped.
What you need to do is enable 'USB Modem (CDC ACM) support' as a module in the kernel. The device it would then create for your phone would be '/dev/ttyACM0' (at least this is what udev created for it). You would then use this device to establish a TCP connection outlined in doc/usb.linux in the p3nfs source directory. These instructions are written for a different type of phone so you will need to modify them to the technical specifications of the 9300. Support for this is very small and is quite buggy. Personally, I just spent the $30 to get a bluetooh dongle since it is much easier to talk to the device though this protocol.
serial port=>ttyS0 ; usb port => what? for fedora 8
Hi, i am new to linux and i use fedora 8 (and i'm loving it).
i am trying to send sms using minicom & AT commands, so i need to know what is the file in /dev used for usb port connection.
serial port=>ttyS0 ; usb port => what? for fedora 8.
i didnt find ttyUSB but i did find usbdev 1.1 , 2.1... and also usbmon1,2,3.4. PLZ HELP THANX