Tiny Core Extensions > TCE Q&A Forum
bluetooth
Roberto A. Foglietta:
Tinycore 1.2 shows this issue, I do not tested later versions:
--- Code: ---root@box:/opt# mkdir -p /mnt/roblue
root@box:/opt# obexfs -b 00:21:AB:A1:85:6F /mnt/roblue
root@box:/opt# dmesg | tail -n1
obexfs[7776]: segfault at 8491000 ip b7de1f77 sp b752b0a0 error 6 in libc-2.3.6.so[b7d7c000+10a000]
--- End code ---
Please insert this to bt.tc* as /etc/init.d/bluez:
--- Code: ---#!/bin/sh
start() {
if [ ! -e /var/lib/dbus/machine-id ]; then
mkdir -p /var/lib/dbus
dbus-uuidgen --ensure
fi
if ! pidof dbus-daemon >/dev/null; then
mkdir -p /var/run/dbus
dbus-daemon --system
fi
if ! pidof bluetoothd >/dev/null; then
mkdir -p /etc/dbus-1/session.d
bluetoothd
fi
}
stop() {
killall bluetoothd 2>/dev/null
}
status() {
if pidof bluetoothd >/dev/null; then
echo -e "\nbluetoothd is running.\n"
else
echo -e "\nbluetoothd is not running.\n"
fi
}
case $1 in
start) start
;;
stop) stop
;;
status) status
;;
restart) stop; start
;;
*) echo -e "\n$0 [start|stop|restart|status]\n"
;;
esac
--- End code ---
Juanito:
hey - thanks for the script, I'll look to upgrade bluez to the latest version and add a menu item/icon to launch the script.
I looked through my notes on obexfs and, whereas the "obex folks" thought the problem with mounting a file system over bt was with my se p1i, I found from the bt address that I had managed to mount it, but only when I'd compiled obex against libiconv by mistake.
'More investigation required methinks...
Juanito:
So I did some checking in my archives and, sure enough, the version of openobex compiled against libiconv mounts my se p1i - after starting dbus/bt with "/etc/init.d/bluez" (thanks)
I'll replace the current version of obex with the earlier version.
--- Code: ---$ sudo mkdir /mnt/p1i
$ sudo obexfs -b 00:1E:45:8B:2A:33 /mnt/p1i
$ sudo ls /mnt/p1i
External D Internal
$ sudo ls /mnt/p1i/Internal
Music Picture Video document other
$ sudo ls /mnt/p1i/Internal/Picture
Blue orbit.jpg Clipart Frames Night flower.jpg Skyline.jpg Traffic.jpg
Bridge.jpg Dotted line.jpg Green light.jpg Red line.jpg Sony Ericsson.gif dcim
Chip.jpg Firefly.jpg Horizon.jpg Reflection.gif Thread.jpg
--- End code ---
..and you can navigate through the file structure quite effectively with emelfm started as root.
After unmounting the phone (or not mounting it in the first place), obexftp also works:
--- Code: ---$ sudo obexftp -b 00:1E:45:8B:2A:33 -c Internal/Picture -l
Browsing 00:1E:45:8B:2A:33 ...
Connecting..\done
etc, etc
--- End code ---
..so, probably easier with emelfm then...
[edited to remove very long line]
Roberto A. Foglietta:
your post into code section contains such a long line which makes this thread difficult to visualize and aswer,
Please edit your post and wrap the last code line, thanks.
eclectic-os:
Found that gui again:
http://sourceforge.net/projects/obexftpfrontend/
But first will have to to use tcl in a persistent way to be able to use bluetooth ::)
Navigation
[0] Message Index
[*] Previous page
Go to full version