Senin, 23 Maret 2009

How to transfer files from pc to cellphone using bluetooth via console.

1. Make sure that you’ve installed :
- bluez, bluez-hcidump, bluez3-test, bluez3-utils.

2. Scan your bluetooth’s cellphone
syahal@redarix:~> hcitool scan
Scanning …
00:1F:E4:4E:41:A7 RedK630i

Then, you can get mac address and name of your cellphone.

3. Login as root, and use ‘l2ping‘ to make sure that your cellphone get connected to your pc.
And get reply from your cellphone

redarix:/home/syahal # l2ping 00:1F:E4:4E:41:A7
Ping: 00:1F:E4:4E:41:A7 from 00:10:60:A8:C9:4D (data size 44) …
44 bytes from 00:1F:E4:4E:41:A7 id 0 time 27.37ms
44 bytes from 00:1F:E4:4E:41:A7 id 1 time 43.81ms
44 bytes from 00:1F:E4:4E:41:A7 id 2 time 37.88ms
44 bytes from 00:1F:E4:4E:41:A7 id 3 time 40.85ms

4. Scan your cellphone memory.

redarix:/home/syahal # obexftp -l 00:1F:E4:4E:41:A7
Scanning for (null) …
Found: 00:1F:E4:4E:41:A7
Browsing 00:1F:E4:4E:41:A7 …
Connecting…done
Receiving "00:1F:E4:4E:41:A7"…
done
Disconnecting…done

Thereis two memmory on your cellphone ( ‘Phone memory‘ and ‘Memory card‘ ).

5. Use obexftp to get path listing of your directory cellphone.

redarix:/home/syahal # obexftp -l 00:1F:E4:4E:41:A7 "Memory card"/Music/
Scanning for (null) …
Found: 00:1F:E4:4E:41:A7
Browsing 00:1F:E4:4E:41:A7 …
Connecting…done
Receiving "00:1F:E4:4E:41:A7"…
done
Receiving "Memory card/Music/"… Sending "Memory card"… Sending "Music"… done

6. Now, we try to put file mp3 from pc to your cellphone. Use this command :
Scanning for (null) …
Found: 00:1F:E4:4E:41:A7
Browsing 00:1F:E4:4E:41:A7 …
Connecting…done
Sending "Matchbox Twenty - Cold.mp3"…/done
Sending "00:1F:E4:4E:41:A7"… failed: 00:1F:E4:4E:41:A7
Sending "Memory card/Music/"… failed: Memory card/Music/
Disconnecting…done

7. That’s All.

0 comments:

Posting Komentar