* [Bluez-users] rfcomm: permission denied
@ 2004-02-14 21:45 Zbigniew Diaczyszyn (gmx)
2004-02-15 14:34 ` Marcel Holtmann
0 siblings, 1 reply; 12+ messages in thread
From: Zbigniew Diaczyszyn (gmx) @ 2004-02-14 21:45 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
sorry, but the file is empty :-(
Zbigniew
---------------------------------------------------------------
linux:/home/dia # hcidump -w hcidump.log
HCIDump - HCI packet analyzer ver 1.5
device: hci0 snap_len: 1028 filter: 0xffffffff
linux:/home/dia # ls -l hcidump.log
-rw-rws--- 1 root root 0 Feb 13 23:32 hcidump.log
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] rfcomm: permission denied
2004-02-14 21:45 [Bluez-users] rfcomm: permission denied Zbigniew Diaczyszyn (gmx)
@ 2004-02-15 14:34 ` Marcel Holtmann
[not found] ` <000b01c3f599$04aaf520$de4bb850@ULLA>
0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-02-15 14:34 UTC (permalink / raw)
To: Zbigniew Diaczyszyn (gmx); +Cc: BlueZ Mailing List
Hi Zbigniew,
> sorry, but the file is empty :-(
>
> ---------------------------------------------------------------
>
> linux:/home/dia # hcidump -w hcidump.log
> HCIDump - HCI packet analyzer ver 1.5
> device: hci0 snap_len: 1028 filter: 0xffffffff
>
> linux:/home/dia # ls -l hcidump.log
> -rw-rws--- 1 root root 0 Feb 13 23:32 hcidump.log
if this happens then there was no traffic on the HCI layer. Check again,
because this can't be true.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] hcidump, was: rfcomm: permission denied
[not found] ` <000b01c3f599$04aaf520$de4bb850@ULLA>
@ 2004-02-17 22:54 ` Marcel Holtmann
[not found] ` <003b01c3f65e$371ef400$dc4db850@ULLA>
0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-02-17 22:54 UTC (permalink / raw)
To: Zbigniew Diaczyszyn (gmx); +Cc: BlueZ Mailing List
Hi Zbigniew,
> > > sorry, but the file is empty :-(
>
> > if this happens then there was no traffic on the HCI layer. Check again,
> > because this can't be true.
>
> well; I tried again and waited for more then 5 minutes: apparently there is no traffic...
>
> Any idea how to produce it?
you ran it as root, right?
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] hcidump, was: rfcomm: permission denied
[not found] ` <003b01c3f65e$371ef400$dc4db850@ULLA>
@ 2004-02-18 23:31 ` Marcel Holtmann
2004-02-21 22:24 ` Zbigniew Diaczyszyn (gmx)
0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-02-18 23:31 UTC (permalink / raw)
To: Zbigniew Diaczyszyn (gmx); +Cc: BlueZ Mailing List
Hi Zbigniew,
> Right. After I had started the hcid daemon. The USB dongle is placed in the notebook.
>
> Just for understanding:
> the adress I get from hciconfig is the adress from my USB dongle, and I have to bind it to rfcomm?
yes, hciconfig shows you the local address of your device. For rfcomm
you have to use the remote address.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] hcidump, was: rfcomm: permission denied
2004-02-18 23:31 ` Marcel Holtmann
@ 2004-02-21 22:24 ` Zbigniew Diaczyszyn (gmx)
2004-02-22 2:09 ` Marcel Holtmann
0 siblings, 1 reply; 12+ messages in thread
From: Zbigniew Diaczyszyn (gmx) @ 2004-02-21 22:24 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
> yes, hciconfig shows you the local address of your device. For rfcomm
> you have to use the remote address.
Well, I tried so once again, but hcidump is silent...
Perhaps the following kernel warning in /var/log/messages can show the =
way to a solution:
Feb 19 22:22:54 linux su: (to root) dia on /dev/pts/1
Feb 19 22:22:54 linux su: pam_unix2: session started for user root, =
service su
Feb 19 22:30:11 linux pppd[3070]: Plugin passwordfd.so loaded.
Feb 19 22:30:11 linux pppd[3070]: pppd 2.4.1 started by root, uid 0
Feb 19 22:30:13 linux hcid[1307]: link_key_request =
(sba=3D8C:97:A6:60:10:00, dba=3D2C:AC:29:60:10:00)
-------------------------------------------------------------------------=
------
Feb 19 22:30:13 linux kernel: Warning: null TTY for (d8:00) in =
tty_fasync
-------------------------------------------------------------------------=
------
Feb 19 22:30:13 linux pppd[3070]: Failed to open /dev/rfcomm0: =
Permission denied
Feb 19 22:30:13 linux pppd[3070]: Exit.
Feb 19 22
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] hcidump, was: rfcomm: permission denied
2004-02-21 22:24 ` Zbigniew Diaczyszyn (gmx)
@ 2004-02-22 2:09 ` Marcel Holtmann
2004-02-22 21:54 ` [Bluez-users] rfcomm socket message: function not implemented Zbigniew Diaczyszyn (gmx)
0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-02-22 2:09 UTC (permalink / raw)
To: Zbigniew Diaczyszyn (gmx); +Cc: BlueZ Mailing List
Hi Zbigniew,
> Perhaps the following kernel warning in /var/log/messages can show the way to a solution:
>
> Feb 19 22:22:54 linux su: (to root) dia on /dev/pts/1
> Feb 19 22:22:54 linux su: pam_unix2: session started for user root, service su
> Feb 19 22:30:11 linux pppd[3070]: Plugin passwordfd.so loaded.
> Feb 19 22:30:11 linux pppd[3070]: pppd 2.4.1 started by root, uid 0
> Feb 19 22:30:13 linux hcid[1307]: link_key_request (sba=8C:97:A6:60:10:00, dba=2C:AC:29:60:10:00)
if you see this, there is something on the HCI layer.
> Feb 19 22:30:13 linux pppd[3070]: Failed to open /dev/rfcomm0: Permission denied
> Feb 19 22:30:13 linux pppd[3070]: Exit.
The Bluetooth authorization failed, but I can tell you only more if you
send me the dump from hcidump.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] rfcomm socket message: function not implemented
2004-02-22 2:09 ` Marcel Holtmann
@ 2004-02-22 21:54 ` Zbigniew Diaczyszyn (gmx)
2004-02-22 21:55 ` Marcel Holtmann
0 siblings, 1 reply; 12+ messages in thread
From: Zbigniew Diaczyszyn (gmx) @ 2004-02-22 21:54 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
> > Feb 19 22:30:13 linux hcid[1307]: link_key_request =
(sba=3D8C:97:A6:60:10:00, dba=3D2C:AC:29:60:10:00)
>=20
> if you see this, there is something on the HCI layer.
Indeed. I'm now able proudly to present the hcidump-activity. Meanwhile =
I have updated to Suse 9.0 and recompiled hcidump. The error message has =
changed :-)
< HCI Command: Create Connection(0x01|0x0005) plen 13
> HCI Event: Command Status(0x0f) plen 4
> HCI Event: Link Key Request(0x17) plen 6
> HCI Event: Connect Complete(0x03) plen 11
And here is the protocol from kinternet:
------------------------------
SuSE Meta pppd (smpppd-ifcfg), Version 1.06 on linux.
...
Status is: connecting
pppd[0]: Plugin passwordfd.so loaded.
pppd[0]: Failed to open /dev/rfcomm0: Function not implemented
Status is: disconnected
pppd[0] died: Serial port open failed (exit code 7)
---------------------------------------
=20
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] rfcomm socket message: function not implemented
2004-02-22 21:54 ` [Bluez-users] rfcomm socket message: function not implemented Zbigniew Diaczyszyn (gmx)
@ 2004-02-22 21:55 ` Marcel Holtmann
2004-02-23 23:39 ` Zbigniew Diaczyszyn (gmx)
0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-02-22 21:55 UTC (permalink / raw)
To: Zbigniew Diaczyszyn (gmx); +Cc: BlueZ Mailing List
Hi Zbigniew,
> Indeed. I'm now able proudly to present the hcidump-activity. Meanwhile I have updated to Suse 9.0 and recompiled hcidump. The error message has changed :-)
>
> < HCI Command: Create Connection(0x01|0x0005) plen 13
> > HCI Event: Command Status(0x0f) plen 4
> > HCI Event: Link Key Request(0x17) plen 6
> > HCI Event: Connect Complete(0x03) plen 11
write the binary dump to a file with -w, or show us the output with -x.
> And here is the protocol from kinternet:
> ------------------------------
> SuSE Meta pppd (smpppd-ifcfg), Version 1.06 on linux.
> ...
> Status is: connecting
> pppd[0]: Plugin passwordfd.so loaded.
> pppd[0]: Failed to open /dev/rfcomm0: Function not implemented
> Status is: disconnected
> pppd[0] died: Serial port open failed (exit code 7)
> ---------------------------------------
I am pretty sure that you have the same PIN helper problem like many
others do.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] rfcomm socket message: function not implemented
2004-02-22 21:55 ` Marcel Holtmann
@ 2004-02-23 23:39 ` Zbigniew Diaczyszyn (gmx)
2004-02-23 23:59 ` Marcel Holtmann
0 siblings, 1 reply; 12+ messages in thread
From: Zbigniew Diaczyszyn (gmx) @ 2004-02-23 23:39 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: bluez-users
[-- Attachment #1: Type: text/plain, Size: 331 bytes --]
Hi Marcel,
> I am pretty sure that you have the same PIN helper problem like many
> others do.
So I will not lose hope to get working the BT interface ...
Attached you will find the binary file in hcidump.log and the files for the pinhelper-stuff: bluepin is just an cat-command.
Thanks in advance!
Zbigniew
[-- Attachment #2: hcidump.log --]
[-- Type: application/octet-stream, Size: 95 bytes --]
[-- Attachment #3: bluepin --]
[-- Type: application/octet-stream, Size: 37 bytes --]
#!/bin/bash
cat /etc/bluetooth/pin
[-- Attachment #4: hcid.conf --]
[-- Type: application/octet-stream, Size: 1447 bytes --]
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.3 2002/07/18 18:12:46 maxk Exp $
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
# security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
pin_helper /bin/bluepin;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "Typhoon (%d)";
# Local device class
class 0x100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#
#lp hold,sniff;
#
lp hold,sniff,park;
# Authentication and Encryption
#auth enable;
#encrypt enable;
}
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] rfcomm socket message: function not implemented
2004-02-23 23:39 ` Zbigniew Diaczyszyn (gmx)
@ 2004-02-23 23:59 ` Marcel Holtmann
[not found] ` <006c01c3fb29$c2b4b700$184cb850@ULLA>
0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-02-23 23:59 UTC (permalink / raw)
To: Zbigniew Diaczyszyn (gmx); +Cc: BlueZ Mailing List
Hi Zbigniew,
> So I will not lose hope to get working the BT interface ...
>
> Attached you will find the binary file in hcidump.log and the files for the pinhelper-stuff: bluepin is just an cat-command.
the /bin/bluepin script should look like this
#!/bin/sh
echo "PIN:0000"
and you must make sure that the script is executable.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] rfcomm socket message: function not implemented
[not found] ` <006c01c3fb29$c2b4b700$184cb850@ULLA>
@ 2004-02-24 23:03 ` Marcel Holtmann
2004-02-25 21:53 ` Zbigniew Diaczyszyn (gmx)
0 siblings, 1 reply; 12+ messages in thread
From: Marcel Holtmann @ 2004-02-24 23:03 UTC (permalink / raw)
To: Zbigniew Diaczyszyn (gmx); +Cc: BlueZ Mailing List
Hi Zbigniew,
> > the /bin/bluepin script should look like this
> >
> > #!/bin/sh
> > echo "PIN:0000"
> >
> > and you must make sure that the script is executable.
is the hcid running?
> I did so, but the only reaction was: function not implemented. I got the same result when I typed:
>
> echo "PIN:xxxx" > /dev/rfcomm0
This is wrong and I never said that you should do this.
Regards
Marcel
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bluez-users] rfcomm socket message: function not implemented
2004-02-24 23:03 ` Marcel Holtmann
@ 2004-02-25 21:53 ` Zbigniew Diaczyszyn (gmx)
0 siblings, 0 replies; 12+ messages in thread
From: Zbigniew Diaczyszyn (gmx) @ 2004-02-25 21:53 UTC (permalink / raw)
To: bluez-users
Hi Marcel,
> is the hcid running?
Yes. (according to ps -ax).
Regards
Zbigniew
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-02-25 21:53 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-14 21:45 [Bluez-users] rfcomm: permission denied Zbigniew Diaczyszyn (gmx)
2004-02-15 14:34 ` Marcel Holtmann
[not found] ` <000b01c3f599$04aaf520$de4bb850@ULLA>
2004-02-17 22:54 ` [Bluez-users] hcidump, was: " Marcel Holtmann
[not found] ` <003b01c3f65e$371ef400$dc4db850@ULLA>
2004-02-18 23:31 ` Marcel Holtmann
2004-02-21 22:24 ` Zbigniew Diaczyszyn (gmx)
2004-02-22 2:09 ` Marcel Holtmann
2004-02-22 21:54 ` [Bluez-users] rfcomm socket message: function not implemented Zbigniew Diaczyszyn (gmx)
2004-02-22 21:55 ` Marcel Holtmann
2004-02-23 23:39 ` Zbigniew Diaczyszyn (gmx)
2004-02-23 23:59 ` Marcel Holtmann
[not found] ` <006c01c3fb29$c2b4b700$184cb850@ULLA>
2004-02-24 23:03 ` Marcel Holtmann
2004-02-25 21:53 ` Zbigniew Diaczyszyn (gmx)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox