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.
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.
getting the correct USB device for attached mobile phone
Hello,
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)
Code:
...
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.
Code:
lsusb
cat /dev/usbdev*
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
Most of the links are dead or link to dead software, but I wanted to mention that I got synced my Nokia 9300, 9500 and 9300i with Kitchensync.
It wa sa bit triky, but after you paired the laptop and the mobile over bluetooth, you can add a new sync group to kitchensync.
I took KDE-PIM and syncml over bluetooth.
Than you have to enter the bluetooth MAC Address and change the paths to the desired adressbook and calendar events, and there you go!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.