LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-25-2004, 05:53 AM   #1
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Rep: Reputation: 15
gnokii can't find my T39


I'm trying to connect my Ericsson T39 through IrDA. It works from Windows with sw I got with the phone, but not from linux and gnokii. On http://www.gnokii.org/faq.shtml#models it says T39 works as AT mode compatible phone. My ~/.gnokiirc:
Code:
[global]

port = /dev/ircomm0
model = AT
initlength = default
connection = irda
bindir = /usr/sbin/
use_locking = yes
serial_baudrate = 115200
handshake = software
smsc_timeout = 10

[connect_script]
TELEPHONE = 12345678
[disconnect_script]

[logging]

debug = off
rlpdebug = off
xdebug = off
I put the phone near my irda module, then issue "irattach irda0 -s 1", change permissions for /dev/ircomm*, and whatever device I try I get the same output as when there is no phone near irda module:
Code:
bash-2.05b$ ls -ld /usr/sbin/mgnokiidev /dev/ircomm0 /var/lock/
crwxrwxrwx  1 root root 161, 0 2004-03-25 12:24 /dev/ircomm0
-rwsr-xr-x  1 root root   4760 2004-02-24 22:11 /usr/sbin/mgnokiidev
drwxrwxrwx  2 root root     48 2004-03-25 12:25 /var/lock/
bash-2.05b$ xgnokii
write: [ATZ<cr>]
write: [ATE1<cr>]
write: [AT+CGMM<cr>]
GSM/FBUS init failed!
What am I doing wrong? Do I need to change the device, am I making a mistake with irattach ... ?
 
Old 04-02-2004, 05:37 PM   #2
zokik
Member
 
Registered: Dec 2002
Distribution: SuSE 8.2
Posts: 58

Original Poster
Rep: Reputation: 15
I changed port to /dev/ttyS1. As root I type:

irattach /dev/ttyS1 -s
irdadump

and I get among other lines also this line:
23:21:34.055346 xid:rsp 5bad29ea < 5234237e S=6 s=0 T39 hint=9124 [ PnP Modem IrCOMM IrOBEX ] (20)

And cat /proc/net/irda/discovery gives:
Code:
IrLMP: Discovery log:

nickname: T39, hint: 0x9124, saddr: 0x5bad29ea, daddr: 0x5234237e
Now when I run "gnokii --monitor" as a normal user I get:
Code:
GNOKII Version 0.6.0
Gnokii serial_open: open: Device or resource busy
Couldn't open ATBUS device: Device or resource busy
Telephone interface init failed: Command failed.
Quitting.
and as root:
Code:
GNOKII Version 0.6.0
Gnokii serial_opendevice: tcflush: Invalid argument
Couldn't open ATBUS device: Invalid argument
Telephone interface init failed: Command failed.
Quitting.
Anybody knows what's wrong here?
 
Old 03-08-2005, 05:10 PM   #3
or1onas
Member
 
Registered: Mar 2004
Location: Athens,Greece
Distribution: Mint
Posts: 181

Rep: Reputation: 32
try:
'port = irda0'
in ~/.gnokiirc.
that's how i made it to work.
i don't know why, i'm still working on it, but it works fine for me...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 03:07 AM
Gnokii Command timed out smaakage Linux - Software 1 09-11-2005 03:41 PM
gnokii and irda marekjs Linux - Software 0 09-09-2005 03:13 PM
Gnokii any good davholla Linux - Software 5 08-23-2005 07:11 AM
Gnokii and Nokia 6510 christo_lc Linux - Newbie 0 02-02-2005 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:11 AM.

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