2004-12-12 07:33:54

by Dave Mielke

[permalink] [raw]
Subject: [Bluez-devel] Text-mode Bluetooth PIN helper script.

The PIN helper script which is currently being distributed, a python script
named bluepin, uses an X dialog to prompt the user for a PIN. This poses a
two-fold problem for blind users. Firstly, it's essentially unusable since X
support for both speech and braille isn't yet at the point where blind users
use the X environment on anything more than an experimental basis. Secondly,
those using braille displays which connect via Bluetooth can't "see" the screen
in order to respond to the prompt so that their braille displays can become
connected.

I've written a script (attached to this message as "bluepin") which resolves
both of these problems, and which, I think, is still a good solution for
sighted users as well. It first searches the file /etc/bluetooth/pins for a
line matching the Bluetooth address of the device. Each line in this file
consists of the address and the PIN separated from one another by space. If a
matching line is found then the script responds automatically. If one can't be
found then a text-mode dialog is presented on a free virtual terminal. As soon
as the PIN is entered, the console returns to the virtual terminal which was
previously being used.

Would you people please have a look at the attached script and let me know what
you think of it and if you'd consider it for inclusion within the base
Bluetooth software? I'll be glad to make any further enhancements to it which
you feel would improve its functionality.

--
Dave Mielke | 2213 Fox Crescent | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario | Word of God. Please contact me
EMail: [email protected] | Canada K2A 1H7 | if you're concerned about Hell.
http://familyradio.com/ | http://mielke.cc/bible/


Attachments:
(No filename) (1.72 kB)
bluepin (1.87 kB)
Download all attachments