Terima Kasih Semuanya, Terutama buat teman-temanku di POINT 428.
Ini adalah artikel pertama ku. Tips men-set up koneksi bluetooth di Linux. atau menghubungkan hp ke Laptop / komputer anda via bluetooth untuk akses internet ini tidak dijamin 100% aman, tapi berjalan dengan baik?
Oke pertama konfigurasi bluetooth anda yang terletak di :
/etc/bluetooth
-
edit rfcomm.conf and main.conf
/etc/bluetooth/rfcomm.conf
#
# RFCOMM configuration file.
#
rfcomm0 {
# # Automatically bind the device at startup
bind yes;
#
# # Bluetooth address of the device
device 00:26:CC:8A:24:59; #MAC aslinya unknows...
#
# # RFCOMM channel for the connection
# run sdptool browse to get the DUN chan
channel 1; #S40 DUN
#
# # Description of the connection
comment ?Dial-Up Networking?;
}
/etc/bluetooth/main.conf
[General]
# List of plugins that should not be loaded on bluetoothd startup
#DisablePlugins = network,input
# Default adaper name
# %h ? substituted for hostname
# %d ? substituted for adapter id
#Name = %h-%d
Name = BT4_BOX_AndA
# Default device class.
#Class = 0×000100
Class = 0×0a010c # run ?hciconfig hci0 class?
# How long to stay discoverable
# The value is in seconds. Default is 180, i.e. 3 minutes.
# 0 = disable timer, i.e. stay discoverable forever
DiscoverableTimeout = 0
# Use other page timeout than the controller default one
# (16384 = 10 seconds)
PageTimeout = 8192
# Behaviour for Adapter.SetProperty(?mode?, ?off?)
# Possible values: ?DevDown?, ?NoScan? (default)
OffMode = NoScan
# Discover scheduler interval used in Adapter.DiscoverDevices
# The value is in seconds.
# Defaults is 0 to use controller scheduler
DiscoverSchedulerInterval = 0
/etc/ppp/peers
-
Buat file ?BluetoothDialup?
/etc/ppp/peers/BluetoothDialup
debug
noauth
connect ?/usr/sbin/chat -v -f /etc/chatscripts/BluetoothDialup?
usepeerdns
/dev/rfcomm0 115200
defaultroute
crtscts
lcp-echo-failure 0
/etc/chatscripts
-
Buat file ?BluetoothDialup? ( ya, nama yang sama seperti diatas : contoh unknowns)
/etc/chatscripts/BluetoothDialup
TIMEOUT 35
ECHO ON
ABORT ?\nBUSY\r?
ABORT ?\nERROR\r?
ABORT ?\nNO ANSWER\r?
ABORT ?\nNO CARRIER\r?
ABORT ?\nNO DIALTONE\r?
ABORT ?\nRINGING\r\n\r\nRINGING\r?
? \rAT
OK ?AT+CGDCONT=1, ?IP?, ?INTERNET??
OK ATD*99#
CONNECT ??
note: Di baris
OK ATD*99# ini adalah dial-up nomor anda (default),
note: Di baris
OK ?AT+CGDCONT=1, ?IP?, ?INTERNET??
bagian ini sangat penting terutama pada entry ?INTERNET? ,
ini harus sesuai dengan layanan ponsel anda
tapi info yang benar untuk skrip adalah ?INTERNET? .
jika anda mendapatkan error dan dibutuhkan untuk berlangganan,
anda mendapatkan suatu kesalahan.
/var/lib/MAC_BT4_BLUETOOTHDEVICE_ANDA/
-
Buatlah sebuah file dengan nama ?pincodes?
Masukkan dalam satu baris?
/var/lib/MAC_BT4_BLUETOOTHDEVICE_Anda/pincodes
YOUR_PHONES_MAC PIN
contoh:
00:11:22:33:44:55 1234
-
restart bt daemon?
user@bt~#/etc/init.d/bluetooth restart
untuk menghubungkan gunakan perintah?
user@bt~#pon BluetoothDialup
untuk disconnect gunakan perintah?
user@bt~#poff BluetoothDialup
==================================================================
Sekian. thanks a lot
Postingan