Bluetooth for Illumos version 0.1

Source code from opensolaris.org was taken as a basis. This version can detect adapter and devices which you can connect via Bluetooth with.

Download archive containing binaries and source code, and unpack it.

wget http://marketstate.ru/bluetooth/bluetooth130119.7z
7z x bluetooth130119.7z
cd bluetooth

If you want to compile source code, you should set correct value for UTS_DIR variable in makefile. It must point to uts directory in Illumos source tree. To run compilation use make.

Installation:
sudo make install
sudo add_drv -i ‘”usb,classe0.1.1″‘ -n ubt
Then reboot and register socket module.
sudo /sbin/soconfig 33 4 1 sockmod_rawhci

Not to run soconfig after each reboot, add appropriate line into /etc/sock2path.d/system%2Fkernel

Now you can do the following actions using btconfig:

If adapter is not connected
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig
keremet@openindiana:~/test/bluetooth/btconfig$

If adapter is connected
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig
ubt0: bdaddr 00:00:00:00:00:00 flags <>
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig ubt0
ubt0: bdaddr 00:00:00:00:00:00 flags <>
num_cmd = 0
num_acl = 0, acl_mtu = 0
num_sco = 0, sco_mtu = 0

Enabling interface
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig ubt0 up
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig
ubt0: bdaddr 11:11:11:11:11:11 flags
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig ubt0
ubt0: bdaddr 11:11:11:11:11:11 flags
num_cmd = 1
num_acl = 8, acl_mtu = 678
num_sco = 10, sco_mtu = 48

There are no devices which you can connect via Bluetooth with.
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig ubt0 inq
Device Discovery from device: ubt0 … 0 responses

There is one such device.
keremet@openindiana:~/test/bluetooth/btconfig$ ./btconfig ubt0 inq
Device Discovery from device: ubt0 …. 1 response
1: bdaddr 9c:b7:0d:80:ce:6f

The development will be continued. The purpose is to implement files tranfering between cell phone and PC.

Andrey Sokolov (keremet at solaris.kirov.ru)

HostLife - лучший платный хостинг


Systemintegra

Speak Your Mind

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Пожертвование