Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 56173
Alias:
Product:
Component:
Status: VERIFIED
Resolution: FIXED
Assigned To: Alastair Tse (RETIRED) <liquidx@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ioannis Aslanidis <deathwing00@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 56173 depends on: Show dependency tree
Bug 56173 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.





View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-07-05 14:05 0000
I have been testing the host-to-host bluetooth system and it might be correct
to have the following /etc/bluetooth/pin for external devices:

-----

#!/bin/sh
echo "PIN:123456"

-----

But in the case of interconnecting two computers through bluetooth, this file
*MUST* be like the original version, that is:

-----

123456

-----

I have tested it and you can check it here:
http://forums.gentoo.org/viewtopic.php?t=194183

I hope you can bring a solution that satisfies both parts :)

-- Just in case, can someone test that indeed the provided /etc/bluetooth/pin
works correctly for non-host bluetooth devices like PDAs, mobile phones and so
on?

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From Alastair Tse (RETIRED) 2004-07-06 05:28:37 0000 -------
what do you mean by "two interconnecting computers"? are you using ppp to
connect through them?

------- Comment #2 From Ioannis Aslanidis 2004-07-06 06:01:35 0000 -------
I made no connection yet. The rfcomm part comes later... first I need pin
synchronization. With interconnecting two computers I mean:

HOST1--BTadapter ))))))) BTadapter--HOST2
HOST1--BTadapter ((((((( BTadapter--HOST2

Two bluetooth adapters, one on each computer. With that, you can use hcitools
and scan and detect them, but nothing else. In order to do a simple l2ping, you
need to have paired the 2 adapters with the pin which is read from file
/etc/bluetooth/pin.

------- Comment #3 From Alastair Tse (RETIRED) 2004-07-06 09:47:39 0000 -------
ok, i think i know what you mean. let me see what we can do with it.

------- Comment #4 From Ioannis Aslanidis 2004-07-06 12:34:58 0000 -------
Alright, forget it! I've found a workaround.

This workaround also helps on bug 56157.

alright, there is a nice problem here:

hcid.conf:

        # PIN helper
        #pin_helper /usr/bin/bluepin;
        pin_helper /etc/bluetooth/pin;

Alright, if we use the default pin helper, /usr/bin/bluepin, it doesn't work. If  we use /etc/bluetooth/pin, it does work for out-going connections. Nice! But unfortunately not enough.

The sdpd daemon, still reads /etc/bluetooth/pin and needs the raw pin number in there.

So my suggestion to solve this is the following:

-----
/etc/bluetooth/pin:
---
123456
-----
-----
/etc/bluetooth/pin-helper:
---
#!/bin/sh
echo "PIN:123456"
-----

That is, to let sdpd have it's pin file there, while still allowing hcid.conf use the text mode pin helper.

------- Comment #5 From Ioannis Aslanidis 2004-07-06 12:37:11 0000 -------
Sorry for writting so many times 'alright'

It would perhaps be better to have the following pin-helper:

#!/bin/sh
echo -n "PIN:"
cat /etc/bluetooth/pin


------- Comment #6 From Ioannis Aslanidis 2004-07-06 12:46:33 0000 -------
Additional remark:

sdpd is used for incoming connections and needs a /etc/bluetooth/pin like:

123456

hcid is used for outgoing connections and, if using the /etc/bluetooth/pin helper (which I renamed to /etc/bluetooth/pin-helper), should be the bash-script one.


I have tested this right now so I can confirm this behaviour... it is also logical, sdpd is the service discovery protocol daemon, so it is expected that it recieves incomming connections.

------- Comment #7 From Alastair Tse (RETIRED) 2004-07-24 12:56:50 0000 -------
reassigning to myself before i forget about this

------- Comment #8 From Ioannis Aslanidis 2004-07-24 13:07:42 0000 -------
I know yiu are with the 2004.2 release so... could I know when you could check
this? The HOWTO is still waiting... :P

------- Comment #9 From Ioannis Aslanidis 2004-08-13 05:29:34 0000 -------
I'm interested in having this checked and fixed asap. Time estimation please...
the fix is pretty simple.

------- Comment #10 From Alastair Tse (RETIRED) 2004-09-21 16:12:02 0000 -------
sorry for the delay. i was waiting for the other changes associated with -r1 as
well. it is now changed in 2.10-r1.

------- Comment #11 From Ioannis Aslanidis 2004-10-17 04:15:33 0000 -------
Verified.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug