Introduction / How-To

Quelques tests en vrac avec mon nouveau téléphone bluetooth SFR LG L660V, version de firmware : L660V_10b

(en cours de rédaction)

- paramètres bluetooth sur mon mac mini intel


$ hciconfig
hci0:        Type: USB
        BD Address: 00:16:BB:10:AA:FF ACL MTU: 384:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:11715 acl:251 sco:0 events:486 errors:0
        TX bytes:7112 acl:207 sco:0 commands:142 errors:0

- découverte du téléphone bluetooth


$ hcitool scan
Scanning ...
        00:19:AA:10:BB:3D        Thus0

- tester la liaison bluetooth avec le téléphone


# l2ping 00:19:AA:10:BB:3D
Ping: 00:19:AA:10:BB:3D from 00:16:BB:10:AA:FF (data size 44) ...
4 bytes from 00:19:AA:10:BB:3D id 0 time 35.56ms
4 bytes from 00:19:AA:10:BB:3D id 1 time 34.05ms

- découverte des services du téléphone bluetooth


$ sdptool browse 00:19:AA:10:BB:3D
Browsing 00:19:AA:10:BB:3D ...
Service Name: OBEX Object Push
Service RecHandle: 0x10000
Service Class ID List:
 "OBEX Object Push" (0x1105)
Protocol Descriptor List:
 "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
   Channel: 6
 "OBEX" (0x0008)
Language Base Attr List:
 code_ISO639: 0x656e
 encoding:    0x6a
 base_offset: 0x100
Profile Descriptor List:
 "OBEX Object Push" (0x1105)
   Version: 0x0100

Service Name: OBEX File Transfer
Service RecHandle: 0x10001
Service Class ID List:
 "OBEX File Transfer" (0x1106)
Protocol Descriptor List:
 "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
   Channel: 7
 "OBEX" (0x0008)
Language Base Attr List:
 code_ISO639: 0x656e
 encoding:    0x6a
 base_offset: 0x100
Profile Descriptor List:
 "OBEX File Transfer" (0x1106)
   Version: 0x0100

Service Name: LG Sync SPP
Service RecHandle: 0x10002
Service Class ID List:
 "Serial Port" (0x1101)
Protocol Descriptor List:
 "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
   Channel: 16
Language Base Attr List:
 code_ISO639: 0x656e
 encoding:    0x6a
 base_offset: 0x100
Profile Descriptor List:
 "Serial Port" (0x1101)
   Version: 0x0100

Service Name: Audio Gateway
Service RecHandle: 0x10003
Service Class ID List:
 "Headset Audio Gateway" (0x1112)
 "Generic Audio" (0x1203)
Protocol Descriptor List:
 "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
   Channel: 3
Language Base Attr List:
 code_ISO639: 0x656e
 encoding:    0x6a
 base_offset: 0x100
Profile Descriptor List:
 "Headset" (0x1108)
   Version: 0x0100

Service Name: Audio Gateway
Service RecHandle: 0x10004
Service Class ID List:
 "Handfree Audio Gateway" (0x111f)
 "Generic Audio" (0x1203)
Protocol Descriptor List:
 "L2CAP" (0x0100)
 "RFCOMM" (0x0003)
   Channel: 4
Language Base Attr List:
 code_ISO639: 0x656e
 encoding:    0x6a
 base_offset: 0x100
Profile Descriptor List:
 "Handsfree" (0x111e)
   Version: 0x0101

Transfert de fichier

- obexftp: lister les fichiers du téléphone


$  obexftp -b 00:19:AA:10:BB:3D -l
Browsing 00:19:AA:10:BB:3D ...
Channel: 7
Connecting...done
Receiving "(null)"... <?xml version="1.0"?>
<!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd">
<folder-listing version="1.0">
<parent-folder/>
</folder-listing>
done
Disconnecting...done

- obexftp: uploader (PUT) un fichier sur le téléphone


$ obexftp -b 00:19:AA:10:BB:3D -p foobar.txt
Browsing 00:19:AA:10:BB:3D ...
Channel: 7
Connecting...done
Sending "foobar.txt"...|done
Disconnecting...done

- obexftp: downloader (GET) un fichier depuis le téléphone

obexftp -b 00:19:AA:10:BB:3D -g foobar.txt
Browsing 00:19:AA:10:BB:3D ...
Channel: 7
Connecting...done
Receiving "foobar.txt"...|done
Disconnecting...done

Documentation