Code: Select all
sudo apt-get install -y --no-install-recommends bluetooth python-gobjectCode: Select all
hciconfigCode: Select all
hci0: Type: BR/EDR Bus: USB
BD Address: AA:BB:CC:DD:EE:FF ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:57163 acl:808 sco:0 events:1922 errors:0
TX bytes:679643 acl:3353 sco:0 commands:166 errors:0
Code: Select all
sudo hciconfig 0 piscanCode: Select all
sudo bluez-simple-agentCode: Select all
Agent registered
RequestConfirmation (/org/bluez/2683/hci0/dev_11_22_33_44_55_66, 989777)
Confirm passkey (yes/no): yes
Code: Select all
hcitool scanCode: Select all
Scanning ...
11:22:33:44:55:66 Nexus 4
Code: Select all
sdptool browse 11:22:33:44:55:66Code: Select all
Service Name: OBEX Object Push
Service RecHandle: 0x1000e
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 12
"OBEX" (0x0008)
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100
Code: Select all
sudo apt-get install -y ussp-pushCode: Select all
ussp-push <bdaddr>@<channel> </path/name/to/your.jpg> <your.jpg>Code: Select all
ussp-push 11:22:33:44:55:66@12 /home/pi/my_niece.jpg my_niece.jpg"Send a message" is not precise enough. You need to be more clear about what you want to do.vikvik wrote:Hi, is it possible to send a message from the Raspberry PI over Bluetooth to the Smartphone ?
Code: Select all
import subprocess
subprocess.call(["ussp-push", "<bdaddr>@<channel>", "</path/name/to/your.jpg>", "<your.jpg>"])