Trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda) on Ubuntu.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Jan
Reply | Threaded
Open this post in threaded view
|

Trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda) on Ubuntu.

Jan
Hi,

I'm trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda) on Ubuntu 12.04.4.
The computer can see the phone:

ubuntu@ubuntu:~$ irattach /dev/ttyS1 -s
ubuntu@ubuntu:~$ cat /proc/net/irda/discovery
IrLMP: Discovery log:

nickname: Timeport, hint: 0xb104, saddr: 0x8fa0f1ce, daddr: 0x4ff854e6

But gnokii can't start:

ubuntu@ubuntu:~$ gnokii --config /home/ubuntu/Desktop/gnokii-0.6.31/gnokiirc2 --getphonebook phone -r
GNOKII Version 0.6.30
Couldn't open ATBUS device: Resource temporarily unavailable
Telephone interface init failed: Command failed.
Quitting.
Command failed.

Configuration file gnokiirc2:
[global]
port = /dev/ttyS1
#port = /dev/ircomm0
#port = irda0
model = AT
initlength = default
connection = irda
bindir = /home/ubuntu/Desktop/gnokii-0.6.31/
use_locking = no
#smsc_timeout = 10
irda_string = 'Timeport'

#[connect_script]
#TELEPHONE = 12345678
#[disconnect_script]

I've checked in vi there are no additional signs at the and of lines.

Irattach is working:
ubuntu@ubuntu:~$ ps aux | grep ir
root 5984 0.0 0.0 2144 448 ? S 15:24 0:00 irattach /dev/ttyS1 -s

Irda is a Fast Infrared Port:
ubuntu@ubuntu:~$ lspnp -v
00:0a SMCf010 SMC Fast Infrared Port
state = active
irq 3
io 0x2f8-0x2ff
io 0x280-0x287
dma 3

Please help, how to make it work?

Best Regards,
Jan


_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda) on Ubuntu.

Daniele Forsi-2
2014-03-31 13:33 GMT+02:00 Jan:

> I'm trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda)

> Couldn't open ATBUS device: Resource temporarily unavailable

> port = /dev/ttyS1

> model = AT

> connection = irda

use connection=serial

serial will work with AT and will use the port parameter, irda works
only with FBUS on Linux and ignores the port parameter

we need documentation about valid port/model/connection values

--
Daniele Forsi

_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Jan
Reply | Threaded
Open this post in threaded view
|

Re: Trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda) on Ubuntu.

Jan
In reply to this post by Jan
Using confguration:
[global]
port = /dev/ttyS1
model = AT
initlength = default
connection = serial
use_locking = no

I get: Inappropriate ioctl for device

ubuntu@ubuntu:~$ sudo gnokii --config /home/ubuntu/Desktop/gnokii-0.6.31/gnokiirc3 --identify
GNOKII Version 0.6.30
Gnokii serial_opendevice: tcflush: Inappropriate ioctl for device
Couldn't open ATBUS device: Inappropriate ioctl for device
Telephone interface init failed: Command failed.
Quitting.
Command failed.

Port seems to by OK:
ubuntu@ubuntu:~$ ps aux | grep ir
root 2987 0.0 0.0 2144 456 ? S 13:52 0:00 /usr/sbin/irattach /dev/ttyS1 none -s

ubuntu@ubuntu:~$ dmesg |grep tty
[ 0.000000] console [tty0] enabled
[ 6.408263] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A

And the phone is there:
ubuntu@ubuntu:~$ cat /proc/net/irda/discovery
IrLMP: Discovery log:
nickname: Timeport, hint: 0xb104, saddr: 0x21d3fe77, daddr: 0x10f0690b


2014-03-31 21:04 GMT+02:00 Daniele Forsi <[hidden email]>:
2014-03-31 13:33 GMT+02:00 Jan:

> I'm trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda)

> Couldn't open ATBUS device: Resource temporarily unavailable

> port = /dev/ttyS1

> model = AT

> connection = irda

use connection=serial

serial will work with AT and will use the port parameter, irda works
only with FBUS on Linux and ignores the port parameter

we need documentation about valid port/model/connection values

--
Daniele Forsi

_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users


_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Reply | Threaded
Open this post in threaded view
|

Re: Trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda) on Ubuntu.

Daniele Forsi-2
2014-04-01 13:06 GMT+02:00 Jan :

> port = /dev/ttyS1

my bad, when the port used by irattach it isn't available for applications

I hooked up my motherboard IrDA adapter to get a configuration similar to yours

there are two typical configurations that can be used with gnokii
(depending on operating system and phone model you can use other
combinations)

for completeness I'll mention also the configuration that can be used
only with Nokias handled by model = 6510, this won't work for you but
it's what you have configured so far, it only needs a suitable
irattach command:

# irattach /dev/ttyS1 -s
this only loads the kernel modules needed for irda networking
# lsmod | grep ir
irtty_sir              12761  2
sir_dev                17141  1 irtty_sir
irda                   90261  1 sir_dev
crc_ccitt              12331  1 irda

this works with:
connection = irda
port = ignored
model = series40

in this case you can use irda_string

the other typical configuration can be used only with model=AT, after
irattach you must create a /dev/ircomm* device using modprobe
ircomm_tty

# irattach /dev/ttyS1 -s
# modprobe ircomm_tty
this creates the /dev/ircomm* devices
# lsmod | grep ir
ircomm_tty             22943  0
ircomm                 14110  1 ircomm_tty
irtty_sir              12761  2
sir_dev                17141  1 irtty_sir
irda                   90261  3 sir_dev,ircomm_tty,ircomm
crc_ccitt              12331  1 irda

this works with:
connection = serial
port = /dev/ircomm0
model = AT

irda_string is ignored in this case

I tested those two configurations with my Nokia 5300, the second
configuration should work for you too after you run modprobe
ircomm_tty, can you confirm it?

--
Daniele Forsi

_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users
Jan
Reply | Threaded
Open this post in threaded view
|

Re: Trying to connect over Irda Timeport P7389i to Dell D620 (built-in Irda) on Ubuntu.

Jan
The second configuration
 worked
 and I got phone numbers from an 17 years old phone:)
 
Thank's a lot!
Jan


2014-04-04 14:45 GMT+02:00 Daniele Forsi <[hidden email]>:
2014-04-01 13:06 GMT+02:00 Jan :

> port = /dev/ttyS1

my bad, when the port used by irattach it isn't available for applications

I hooked up my motherboard IrDA adapter to get a configuration similar to yours

there are two typical configurations that can be used with gnokii
(depending on operating system and phone model you can use other
combinations)

for completeness I'll mention also the configuration that can be used
only with Nokias handled by model = 6510, this won't work for you but
it's what you have configured so far, it only needs a suitable
irattach command:

# irattach /dev/ttyS1 -s
this only loads the kernel modules needed for irda networking
# lsmod | grep ir
irtty_sir              12761  2
sir_dev                17141  1 irtty_sir
irda                   90261  1 sir_dev
crc_ccitt              12331  1 irda

this works with:
connection = irda
port = ignored
model = series40

in this case you can use irda_string

the other typical configuration can be used only with model=AT, after
irattach you must create a /dev/ircomm* device using modprobe
ircomm_tty

# irattach /dev/ttyS1 -s
# modprobe ircomm_tty
this creates the /dev/ircomm* devices
# lsmod | grep ir
ircomm_tty             22943  0
ircomm                 14110  1 ircomm_tty
irtty_sir              12761  2
sir_dev                17141  1 irtty_sir
irda                   90261  3 sir_dev,ircomm_tty,ircomm
crc_ccitt              12331  1 irda

this works with:
connection = serial
port = /dev/ircomm0
model = AT

irda_string is ignored in this case

I tested those two configurations with my Nokia 5300, the second
configuration should work for you too after you run modprobe
ircomm_tty, can you confirm it?

--
Daniele Forsi

_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users


_______________________________________________
gnokii-users mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/gnokii-users