Sending files and programs from PC to Phone
From MoDe
We've found it easiest to use send programs to the phone via bluetooth.
| Table of contents |
[edit]
Windows
This should be pretty straightforward. Use the wizards to pair with your phone and then drag and drop files around.
[edit]
Linux
Currently, you can use obextool to send files via bluetooth. You can download the ORG mirror at http://org.csail.mit.edu/misc/obextool.tar.gz
[edit]
requirements
- bluez-utils and bluez-libs
- openobex (libopenobex-1.0-0-dev in debian)
[edit]
build instructions
# wget http://org.csail.mit.edu/misc/obextool.tar.gz -O - | tar xzvf - # cd obextool # make # cp obextool /usr/local/bin
[edit]
usage
To send a file helloworld.sis to my phone
figure out the phone's bluetooth address
Scan for nearby bluetooth devices and then figure out which one is your phone.
# hcitool scan
Scanning ...
00:0F:3D:38:EE:AB org3-2
00:0F:3D:05:75:39 org3-1
00:0F:3D:38:D0:04 org3-3
00:0E:ED:3D:18:29 ash
Use obextool to upload the file
My phone is named ash, so I use the bluetooth address found by hcitool scan.
# obextool push helloworld.sis 00:0E:ED:3D:18:29 9
- the 9 at the end specifies the RFCOMM channel to use. Nokia phones listen on channel 9. Other phones may be different.
- typing in 00:0E:ED:3D:18:29 every time I want to upload a file is tedious. Easier if you define an alias or something in your .bashrc Here's what I put in mine:
function toash
{
if [ "$1" == "" ] ; then echo "usage: toash <file>" ; return ; fi
for i in $* ; do
echo obextool push $i 00:0E:ED:3D:18:29 9
obextool push $i 00:0E:ED:3D:18:29 9
sleep 1
done
}
Now I can just use the command "toash helloworld.sis"
[edit]
OS X
anyone?
