Skip to contentSkip to conversation

Problem with dund and LG 325 phone.

Bluez-users Eric Vaandering 3 participants 12 messages May 26, 2005 – Jun 15, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

I have an LG PM-325 which I am trying to get DUN working with. It works under Windows, but I want to use linux.

I think the two devices are paired since I can do l2ping and get responses, but I still seem to be a few steps away from being able to do DUN.

When I type this, I expect to get a success message back, right? Instead I get nothing:

[root@a122077 root]# dund -c 08:00:37:13:A1:C7 -n dund[5586]: Bluetooth DUN daemon dund[5586]: Searching for LAP on 08:00:37:13:A1:C7 [root@a122077 root]#

I don't have to do anything with rfcomm before this, right? I also don't need to run pand, right, since my device only supports DUN.

When I try to do a pppd call command, I get this in syslog:

May 26 14:43:02 a122077 kernel: PPP generic driver version 2.4.2
May 26 14:43:02 a122077 pppd[5708]: pppd 2.4.3 started by root, uid 0
May 26 14:43:03 a122077 hcid[3602]: link_key_request (sba=00:10:60:AA:5C:CE, dba=08:00:37:13:A1:C7)
May 26 14:43:03 a122077 pppd[5708]: Failed to open /dev/rfcomm0: Connection refused
May 26 14:43:03 a122077 pppd[5708]: Exit.

which isn't surprising.

Thanks for any help you can give,

Eric

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Eric,

Quoted 26 lines

I have an LG PM-325 which I am trying to get DUN working with. It works under Windows, but I want to use linux.

I think the two devices are paired since I can do l2ping and get responses, but I still seem to be a few steps away from being able to do DUN.

When I type this, I expect to get a success message back, right? Instead I get nothing:

[root@a122077 root]# dund -c 08:00:37:13:A1:C7 -n dund[5586]: Bluetooth DUN daemon dund[5586]: Searching for LAP on 08:00:37:13:A1:C7 [root@a122077 root]#

I don't have to do anything with rfcomm before this, right? I also don't need to run pand, right, since my device only supports DUN.

When I try to do a pppd call command, I get this in syslog:

May 26 14:43:02 a122077 kernel: PPP generic driver version 2.4.2
May 26 14:43:02 a122077 pppd[5708]: pppd 2.4.3 started by root, uid 0
May 26 14:43:03 a122077 hcid[3602]: link_key_request (sba=00:10:60:AA:5C:CE, 
dba=08:00:37:13:A1:C7)
May 26 14:43:03 a122077 pppd[5708]: Failed to open /dev/rfcomm0: Connection 
refused
May 26 14:43:03 a122077 pppd[5708]: Exit.
Quoted 1 line

which isn't surprising.

using dund for Dialup-Networking is the wrong way. The dund is for LAN access using PPP. And yes, I know that the name is confusing.

What you need is to find the RFCOMM channel number for Dialup-Networking with the help of

	sdptool search --bdaddr <bdaddr> dun

and then you bind a RFCOMM TTY port to that channel with

rfcomm bind 0 <bdaddr> <channel>

After that you can use any dialer (for example wvdial) to setup your dialup connection through /dev/rfcomm0.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Marcel, thanks that helped and at one point I got the phone dialing, but not anymore. I'm still getting "Connection refused" errors. The computer and phone are definitely paired since I can use kbthandsfree.

If I issue these commands:

  748  echo 1 > /proc/sys/net/ipv4/ip_forward
  749  rfcomm bind 0 08:00:37:13:A1:C7 4
  750  pppd /dev/rfcomm0 debug nocrtscts novj novjccomp defaultroute connect 

'chat -v -f /root/sprint-chat'

May 26 20:38:12 localhost pppd[4987]: pppd 2.4.3 started by root, uid 0
May 26 20:38:13 localhost hcid[3622]: link_key_request (sba=00:10:60:AA:5C:CE, dba=08:00:37:13:A1:C7)
May 26 20:38:13 localhost pppd[4987]: Failed to open /dev/rfcomm0: Connection refused
May 26 20:38:13 localhost pppd[4987]: Exit.

This is what hcidump shows (sorry for the length, but I don't know what's important)

# hcidump
HCIDump - HCI packet analyzer ver 1.12
device: hci0 snap_len: 1028 filter: 0xffffffff
< HCI Command: Create Connection (0x01|0x0005) plen 13
Quoted 2 lines

HCI Event: Command Status (0x0f) plen 4
HCI Event: Link Key Request (0x17) plen 6

< HCI Command: Link Key Request Reply (0x01|0x000b) plen 22

Quoted 2 lines

HCI Event: Command Complete (0x0e) plen 10
HCI Event: Connect Complete (0x03) plen 11

< ACL data: handle 0x0029 flags 0x02 dlen 12

    L2CAP(s): Connect req: psm 3 scid 0x0040

< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4

Quoted 4 lines

HCI Event: Command Complete (0x0e) plen 6 HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Max Slots Change (0x1b) plen 3 ACL data: handle 0x0029 flags 0x02 dlen 16

    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
< ACL data: handle 0x0029 flags 0x02 dlen 16
    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 1024
Quoted 1 line

ACL data: handle 0x0029 flags 0x02 dlen 16

    L2CAP(s): Config req: dcid 0x0040 flags 0x0000 clen 4
    MTU 675
< ACL data: handle 0x0029 flags 0x02 dlen 14
    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
Quoted 3 lines

HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 14

    L2CAP(s): Config rsp: scid 0x0040 flags 0x0000 result 0 clen 0
< ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c
Quoted 2 lines

HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 8

    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7

< ACL data: handle 0x0029 flags 0x02 dlen 18
L2CAP(d): cid 0x0040 len 14 [psm 3]
RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 dlci 8 frame_type 0 credit_flow 15 pri 7 ack_timer 0 frame_size 670 max_retrans 0 credits 7

Quoted 2 lines

HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 8

    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): DM: cr 1 dlci 8 pf 0 ilen 0 fcs 0xf6
< ACL data: handle 0x0029 flags 0x02 dlen 8
    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd
< ACL data: handle 0x0029 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
Quoted 3 lines

HCI Event: Number of Completed Packets (0x13) plen 5 HCI Event: Number of Completed Packets (0x13) plen 5 ACL data: handle 0x0029 flags 0x02 dlen 8

    L2CAP(d): cid 0x0040 len 4 [psm 3]
      RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7
Quoted 1 line

ACL data: handle 0x0029 flags 0x02 dlen 12

    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
Quoted 1 line

HCI Event: Disconn Complete (0x05) plen 4

< HCI Command: Inquiry (0x01|0x0001) plen 5

Quoted 3 lines

HCI Event: Command Status (0x0f) plen 4
HCI Event: Inquiry Result (0x02) plen 15
HCI Event: Inquiry Complete (0x01) plen 1

after this, even cat or echo to rfcomm0 gives me a connection refused error.

Thanks for any help,

Eric

Quoted 38 lines · Marcel Holtmann

Hi Eric,

Quoted 15 lines

I have an LG PM-325 which I am trying to get DUN working with. It works under Windows, but I want to use linux.

I think the two devices are paired since I can do l2ping and get responses, but I still seem to be a few steps away from being able to do DUN.

When I type this, I expect to get a success message back, right? Instead I get nothing:

[root@a122077 root]# dund -c 08:00:37:13:A1:C7 -n dund[5586]: Bluetooth DUN daemon dund[5586]: Searching for LAP on 08:00:37:13:A1:C7 [root@a122077 root]#

I don't have to do anything with rfcomm before this, right? I also don't need to run pand, right, since my device only supports DUN.

Quoted 8 lines

When I try to do a pppd call command, I get this in syslog:

May 26 14:43:02 a122077 kernel: PPP generic driver version 2.4.2
May 26 14:43:02 a122077 pppd[5708]: pppd 2.4.3 started by root, uid 0
May 26 14:43:03 a122077 hcid[3602]: link_key_request (sba=00:10:60:AA:5C:CE, dba=08:00:37:13:A1:C7)
May 26 14:43:03 a122077 pppd[5708]: Failed to open /dev/rfcomm0: Connection refused
May 26 14:43:03 a122077 pppd[5708]: Exit.

which isn't surprising.

using dund for Dialup-Networking is the wrong way. The dund is for LAN access using PPP. And yes, I know that the name is confusing.

What you need is to find the RFCOMM channel number for Dialup-Networking with the help of

	sdptool search --bdaddr <bdaddr> dun

and then you bind a RFCOMM TTY port to that channel with

Quoted 8 lines

rfcomm bind 0 <bdaddr> <channel>

After that you can use any dialer (for example wvdial) to setup your dialup connection through /dev/rfcomm0.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#3 lore raw

Hi Eric,

Quoted 18 lines

thanks that helped and at one point I got the phone dialing, but not anymore. I'm still getting "Connection refused" errors. The computer and phone are definitely paired since I can use kbthandsfree.

If I issue these commands:

   748  echo 1 > /proc/sys/net/ipv4/ip_forward
   749  rfcomm bind 0 08:00:37:13:A1:C7 4
   750  pppd /dev/rfcomm0 debug nocrtscts novj novjccomp defaultroute connect 

'chat -v -f /root/sprint-chat'

May 26 20:38:12 localhost pppd[4987]: pppd 2.4.3 started by root, uid 0
May 26 20:38:13 localhost hcid[3622]: link_key_request (sba=00:10:60:AA:5C:CE, 
dba=08:00:37:13:A1:C7)
May 26 20:38:13 localhost pppd[4987]: Failed to open /dev/rfcomm0: Connection 
refused
May 26 20:38:13 localhost pppd[4987]: Exit.
Quoted 2 lines

This is what hcidump shows (sorry for the length, but I don't know what's important)

try to reset/reboot your phone and check the RFCOMM channel number again with sdptool. It looks like that this channel is no longer accepting new connections.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Yes, that was it. I'm now happily connected with pppd on channel *5*. I thought those would be fixed in stone for the phone model.

John, as to how to pair the phone and the PC.

First, under "Setting -> Setup/Others" choose to update your software. I'm on v18. Apparently v17 and v18 have updates for BT.

Then on Settings -> Bluetooth turn visibility on and also change your BT name if you want.

Then under Bluetooth from the *Main* menu, enable BT and do "Add New." and also click "enable" for the computer, which will enable DUN. I think you can either choose to search and pair or just wait for pairing. Then some trial and error, I can't give you an exact formula, but you will have to type in the same pin on the phone and the PC (I use KDE's bluetooth pin helper and KDE's BT browsing). The phone will tell you if the pairing is sucessful.

Also, according to http://www.sprintusers.com/forum/archive/index.php/t-57061.html you may have to do several iterations of enabling and disabling a device to get the pairing to work.

The nice thing is once you have it paired, you can just leave it paired.

Good luck, e-mail me privately if you want more help.

Eric

Quoted 33 lines · Marcel Holtmann

Hi Eric,

Quoted 7 lines

thanks that helped and at one point I got the phone dialing, but not anymore. I'm still getting "Connection refused" errors. The computer and phone are definitely paired since I can use kbthandsfree.

If I issue these commands:

  748  echo 1 > /proc/sys/net/ipv4/ip_forward
  749  rfcomm bind 0 08:00:37:13:A1:C7 4
  750  pppd /dev/rfcomm0 debug nocrtscts novj novjccomp defaultroute connect 
Quoted 10 lines

'chat -v -f /root/sprint-chat'

May 26 20:38:12 localhost pppd[4987]: pppd 2.4.3 started by root, uid 0
May 26 20:38:13 localhost hcid[3622]: link_key_request (sba=00:10:60:AA:5C:CE, dba=08:00:37:13:A1:C7)
May 26 20:38:13 localhost pppd[4987]: Failed to open /dev/rfcomm0: Connection refused
May 26 20:38:13 localhost pppd[4987]: Exit.

This is what hcidump shows (sorry for the length, but I don't know what's important)

try to reset/reboot your phone and check the RFCOMM channel number again with sdptool. It looks like that this channel is no longer accepting new connections.

Regards

Marcel

Quoted 11 lines

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#5 lore raw

I thought I would reply to the list, as your experience has helped me, and mine might help others. What is the package name of the KDE bluetooth stuff you mention? I don't see "enable dun" from menu/bluetooth, but from there I can search, and it finds laptop-0. I try to pair, and it says pairing failed.

For what it's worth, I DO use my handset all the time with a headset.

thanks again

Quoted 30 lines · --- Eric Vaandering

Yes, that was it. I'm now happily connected with pppd on channel *5*. I
thought those would be fixed in stone for the phone model.

John, as to how to pair the phone and the PC.

First, under "Setting -> Setup/Others" choose to update your software.
I'm on v18. Apparently v17 and v18 have updates for BT.

Then on Settings -> Bluetooth turn visibility on and also change your BT
name if you want.

Then under Bluetooth from the *Main* menu, enable BT and do "Add New."
and also click "enable" for the computer, which will enable DUN. I think
you can either choose to search and pair or just wait for pairing. Then
some trial and error, I can't give you an exact formula, but you will
have to type in the same pin on the phone and the PC (I use KDE's
bluetooth pin helper and KDE's BT browsing). The phone will tell you if
the pairing is sucessful.

Quoted 2 lines

Also, according to

http://www.sprintusers.com/forum/archive/index.php/t-57061.html

Quoted 66 lines

you may
have to do several iterations of enabling and
disabling a device to get
the pairing to work.

The nice thing is once you have it paired, you can just leave it paired.

Good luck, e-mail me privately if you want more
help.

Eric

Quoted 5 lines · Marcel Holtmann

Hi Eric,

Quoted 1 line

thanks that helped and at one point I got the

phone dialing, but not

Quoted 1 line
Quoted 1 line

anymore. I'm still getting "Connection refused"

errors. The computer and phone

Quoted 1 line
Quoted 1 line

are definitely paired since I can use

kbthandsfree.

Quoted 6 lines
Quoted 6 lines

If I issue these commands:

  748  echo 1 > /proc/sys/net/ipv4/ip_forward
  749  rfcomm bind 0 08:00:37:13:A1:C7 4
  750  pppd /dev/rfcomm0 debug nocrtscts novj

novjccomp defaultroute connect

Quoted 3 lines
Quoted 3 lines

'chat -v -f /root/sprint-chat'

May 26 20:38:12 localhost pppd[4987]: pppd 2.4.3

started by root, uid 0

Quoted 1 line
Quoted 1 line
May 26 20:38:13 localhost hcid[3622]:

link_key_request (sba=00:10:60:AA:5C:CE,

Quoted 2 lines
Quoted 2 lines

dba=08:00:37:13:A1:C7)

May 26 20:38:13 localhost pppd[4987]: Failed to

open /dev/rfcomm0: Connection

Quoted 4 lines
Quoted 4 lines

refused

May 26 20:38:13 localhost pppd[4987]: Exit.

This is what hcidump shows (sorry for the length,

but I don't know what's

Quoted 5 lines
Quoted 3 lines

important)

try to reset/reboot your phone and check the RFCOMM

channel number again

Quoted 1 line

with sdptool. It looks like that this channel is no

longer accepting new

Quoted 9 lines

connections.

Regards

Marcel

Quoted 8 lines

-------------------------------------------------------

Quoted 2 lines

This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network -

Create apps using Yahoo!

Quoted 1 line

Search APIs Find out how you can build Yahoo!

directly into your own

Quoted 1 line

Applications - visit

http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005

Quoted 11 lines
Quoted 3 lines

_______________________________________________
Bluez-users mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 2 lines

-------------------------------------------------------

Quoted 7 lines

This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit

http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005

Quoted 4 lines

_______________________________________________
Bluez-users mailing list
[email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw

[Bluez-users] download link for bluez-pin is broken

In reply to Marcel Holtmann

bluez-pin-0.25.tar.gz

that download link on download page is broken.

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#7 lore raw

Re: [Bluez-users] download link for bluez-pin is broken

Hi John,

Quoted 3 lines

bluez-pin-0.25.tar.gz

that download link on download page is broken.

no it is not.

Regards

Marcel

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#8 lore raw

Re: [Bluez-users] download link for bluez-pin is broken

sorry, apparently the html or somethingis different for it than other links cuz it freaks out on privoxy.

Quoted 4 lines · --- Marcel Holtmann

Hi John,

Quoted 2 lines

bluez-pin-0.25.tar.gz

Quoted 12 lines
Quoted 1 line

that download link on download page is broken.

no it is not.

Regards

Marcel

-------------------------------------------------------

Quoted 12 lines

This SF.Net email is sponsored by: NEC IT Guy Games.
How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display:
http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list [email protected]

https://lists.sourceforge.net/lists/listinfo/bluez-users

Quoted 1 line

__________________________________
Discover Yahoo!
Get on-the-go sports scores, stock quotes, news and more. Check it out!
http://discover.yahoo.com/mobile.html

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#9 lore raw

[Bluez-users] hcid error on pair attempt

In reply to John H.

When I try to pair my phone, despite changing pin in /etc/bluetooth/pin to 0000 and typing that in the phone when I try to pair, it says pairing failed, and /var/log/messages says

Jun 10 00:56:33 home hcid[15309]: pin_code_request
(sba=00:02:72:81:AB:C4, dba=08:00:37:12:C4:B1)
Jun 10 00:56:33 home hcid[15309]: link_key_notify

(sba=00:02:72:81:AB:C4, dba=08:00:37:12:C4:B1)

?

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#10 lore raw

Re: [Bluez-users] Problem with dund and LG 325 phone-fixed

In reply to Marcel Holtmann

Ok, through using konqurer and kdebluetooth and telling it to do action/send file over bluetooth, it paired my phone and adapter:)

however, I now get the connection refused error. I am wanting to use btcid(bluetooth caller ID), but it gives the same error eric got, so I tried changing the channel to channel 5 in /etc/bluetooth/rfcomm.conf, still the same. what should I do? this is the output of sdptool --browse

sdptool browse
Inquiring ...
Browsing 08:00:37:12:C4:B1 ...
Service Name: WBTEXT
Service RecHandle: 0x10000
Service Class ID List:
"Error: This is UUID-128"
(0xdb1d8f12-95f3-402c-9b97-bc504c9a55c4)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Error: This is UUID-128"
(0x1cdb1d8f-1295-f340-2c9b-97bc504c9a55)

    Version: 0x0100

Service Name: LG LX325 Headset AG Service
Service RecHandle: 0x10001
Service Class ID List:
"Headset Audio Gateway" (0x1112)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Profile Descriptor List:
"Headset" (0x1108)

    Version: 0x0100

Service Name: LG LX325 Hands-Free AG Service
Service RecHandle: 0x10002
Service Class ID List:
"Handfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
Profile Descriptor List:
"Handsfree" (0x111e)

    Version: 0x0100

__________________________________
Discover Yahoo!
Find restaurants, movies, travel and more fun for the weekend. Check it out!
http://discover.yahoo.com/weekend.html

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#11 lore raw
In reply to Marcel Holtmann
Quoted 57 lines · --- Marcel Holtmann

Hi Eric,

Quoted 1 line

I have an LG PM-325 which I am trying to get DUN

working with. It works under

Quoted 3 lines

Windows, but I want to use linux.

I think the two devices are paired since I can do

l2ping and get responses,

Quoted 1 line

but I still seem to be a few steps away from being

able to do DUN.

Quoted 2 lines

When I type this, I expect to get a success

message back, right? Instead I get

Quoted 8 lines

nothing:

[root@a122077 root]# dund -c 08:00:37:13:A1:C7 -n dund[5586]: Bluetooth DUN daemon dund[5586]: Searching for LAP on 08:00:37:13:A1:C7 [root@a122077 root]#

I don't have to do anything with rfcomm before

this, right? I also don't need

Quoted 1 line

to run pand, right, since my device only supports

DUN.

Quoted 2 lines

When I try to do a pppd call command, I get this

in syslog:

Quoted 1 line
May 26 14:43:02 a122077 kernel: PPP generic driver

version 2.4.2

Quoted 1 line
May 26 14:43:02 a122077 pppd[5708]: pppd 2.4.3

started by root, uid 0

Quoted 1 line
May 26 14:43:03 a122077 hcid[3602]:

link_key_request (sba=00:10:60:AA:5C:CE,

Quoted 2 lines

dba=08:00:37:13:A1:C7)

May 26 14:43:03 a122077 pppd[5708]: Failed to open

/dev/rfcomm0: Connection

Quoted 4 lines

refused

May 26 14:43:03 a122077 pppd[5708]: Exit.

which isn't surprising.

using dund for Dialup-Networking is the wrong way. The dund is for LAN
access using PPP. And yes, I know that the name is confusing.

What you need is to find the RFCOMM channel number for Dialup-Networking
with the help of

	sdptool search --bdaddr <bdaddr> dun

and then you bind a RFCOMM TTY port to that channel with

rfcomm bind 0 <bdaddr> <channel>

Quoted 8 lines

After that you can use any dialer (for example
wvdial) to setup your
dialup connection through /dev/rfcomm0.

Regards

Marcel

This is the result of me doing that. I wanted to also use btcid, if I bind to channel 4 or 5, should I be able to use btcid on /dev/rfcomm0 when I am not using dialup? Otherwise, to use dialup, do I tell rfcomm.conf to bind to port 4 or 5? I had been getting connection refused errors.

sdptool search --bdaddr 08:00:37:12:C4:B1 dun
Searching for dun on 08:00:37:12:C4:B1 ...
Service Name: Dialup Networking
Service RecHandle: 0x10003
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 4
Profile Descriptor List:
"Dialup Networking" (0x1103)

    Version: 0x0100

Service Name: LG LX325 DUP Service
Service RecHandle: 0x10004
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 5
Profile Descriptor List:
"Dialup Networking" (0x1103)

    Version: 0x0100

__________________________________
Discover Yahoo!
Use Yahoo! to plan a weekend, have fun online and more. Check it out!
http://discover.yahoo.com/

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users