Re: TCP/IP over Bluetooth
Hi.
On Fri, 22 Apr 2016 20:27:38 -0700
peter@easthope.ca wrote:
> According to https://en.wikipedia.org/wiki/Bluetooth ,
> Bluetooth was "... originally conceived as a wireless alternative
> to RS-232 data cables." Therefore TCP/IP inside PPP on a
> Bluetooth connection is hypthetically possible.
>
> Has anyone tried it with a debian system on one end at least?
I have to use the thing on a regular basis. Connection speed is
turtle-slow by today's standards, but it works, and aside from the
bluez package it only requires wvdial one.
A sample implementation is:
# cat /etc/network/if-pre-up.ppp0
/usr/bin/rfcomm connect /dev/rfcomm0 xx:xx:xx:xx:xx:xx &
while [ ! -r /dev/rfcomm0 ]; do
/bin/echo "Waiting for /dev/rfcomm0 ..."
/bin/sleep 1
done
# cat /etc/network/if-post-down.ppp0
pkill -9 rfcomm
# grep -A1 ppp0 /etc/network/interfaces
iface ppp0 inet wvdial
pre-up /etc/network/if-pre-up.ppp0
metric 1
post-down /etc/network/if-post-down.ppp0
# cat /etc/wvdial.conf
[Dialer Defaults]
Baud = 460800
Dial Command = ATD
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","my.cellphone.carrier.gateway"
Modem = /dev/rfcomm0
Modem Type = Analog Modem
New PPD = yes
Password = xxx
Phone = *99#
Username = xxx
ISDN = false
Idle Seconds = 300
Reco
Reply to: