LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 05-10-2006, 09:26 PM   #1
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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
...
'cat /proc/bus/usb/devices'
Code:
...
T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=02 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0421 ProdID=0415 Rev= 0.00
S:  Manufacturer=Nokia
S:  Product=Nokia 9300
...
lsusb
Code:
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?

thanks for the help!
...drkstr
 
Old 05-10-2006, 09:35 PM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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
 
Old 05-10-2006, 11:02 PM   #3
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
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.

thanks for the reply!
...drkstr
 
Old 05-11-2006, 09:07 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Quote:
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
 
Old 05-11-2006, 09:33 AM   #5
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
I have never actually used udev so I decided to give it a try. It seems to make the /dev directory much easier to read. Thanks for the advice!

While I didn't see any device with the name ttyUSB*, I did see a few that seemed promising, such as:

usbdev1.1
usbdev2.1
usbdev2.2
usbdev2.3
usbdev3.1
usbdev4.1
usbdev5.1

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?

thanks for the help!
...drkstr
 
Old 05-11-2006, 10:10 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
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.
 
Old 05-11-2006, 11:36 AM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
Brilliant! It appears usbdev2.3 is the device I am looking for according to 'lsusb'. I will play around with this more once I get home.

thanks you sir!
...drkstr
 
Old 05-26-2006, 02:08 AM   #8
Mr.Gosh
Member
 
Registered: Sep 2004
Location: Germany
Distribution: openSuSE 11.2 64 bit
Posts: 48

Rep: Reputation: 15
Did you get it to work in any way?
I want to sync my Nokia 9300 too...
 
Old 05-26-2006, 08:28 AM   #9
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Original Poster
Rep: Reputation: 45
Sort of.

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.

Sorry I couldn't be of more help.

regards,
...drkstr
 
Old 05-27-2006, 07:08 AM   #10
Mr.Gosh
Member
 
Registered: Sep 2004
Location: Germany
Distribution: openSuSE 11.2 64 bit
Posts: 48

Rep: Reputation: 15
I have a Bluetooth dongle too, but how do you sync with your linux box over that?
 
Old 05-27-2006, 07:09 AM   #11
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Quote:
Originally Posted by Mr.Gosh
I have a Bluetooth dongle too, but how do you sync with your linux box over that?
Sync what? Files, contacts? Google for it, there are plenty of ways
 
Old 05-27-2006, 07:18 AM   #12
Mr.Gosh
Member
 
Registered: Sep 2004
Location: Germany
Distribution: openSuSE 11.2 64 bit
Posts: 48

Rep: Reputation: 15
but none for linux, it can only be synced over the syncml protokoll, but i dont have an syncml server...
but i will continue my search :/
 
Old 05-27-2006, 07:34 AM   #13
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
http://nicolas.bougues.net/syncml/
http://multisync.sourceforge.net/
http://www.borowka.net/~maciek/ksyncml/index.html
http://handhelds.org/~florian/multisync/

None of those are any good for you?
 
Old 02-17-2008, 11:44 AM   #14
den8286
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
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
 
Old 02-19-2008, 04:14 AM   #15
Mr.Gosh
Member
 
Registered: Sep 2004
Location: Germany
Distribution: openSuSE 11.2 64 bit
Posts: 48

Rep: Reputation: 15
Exclamation

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!

I takes much longer than in OSX but it works!

This thread is cloesd, I think!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobile Phone Sync USB Oxyacetylene Linux - Software 6 08-19-2006 06:59 PM
dm does not load if usb device attached grey man Mandriva 1 03-17-2006 10:48 AM
usb port mobile phone Ipolit Linux - Hardware 1 10-14-2005 08:08 AM
Using Mobile phone as USB Modem in linux RRolleston Debian 1 05-19-2005 08:27 PM
Charlotte Church's mobile phone Oops! Topless photo jumps through mobile phones in UK furfurdemon666 General 3 05-03-2005 08:03 AM


All times are GMT -5. The time now is 09:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration