Accessing Bluetooth Profiles

asked 2014-11-20 12:05:17 +0200

kuzeyron gravatar image

updated 2015-03-06 09:34:47 +0200

eric gravatar image

Hi, I've been searching and searching and I'm still learning about the Bluetooth how it works and so on. If anyone who is an expert on Bluetooth and could help me I'd preciate it.

Language I'm using is Python.

I want the script/code to get the information about who's calling, sending me a text message and what music I'm playing.


By now I'm using PyBluez 0.20 and here are the outputs i get that it is connected:

connecting to "Headset Audio Gateway" on 50:56:A8:00:24:EA
connected.

All the profiles I can find on my Jolla:

found 9 services on all

Service Name: Nokia OBEX PC Suite Services
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    RFCOMM
    channel/PSM: 24
    svc classes: ['00005005-0000-1000-8000-0002EE000001'] 
    profiles:    [('00005005-0000-1000-8000-0002EE000001', 256)] 
    service id:  None 

Service Name: Object Push server
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    RFCOMM
    channel/PSM: 9
    svc classes: ['1105'] 
    profiles:    [('1105', 256)] 
    service id:  None 

Service Name: Phonebook Access server
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    RFCOMM
    channel/PSM: 15
    svc classes: ['112F'] 
    profiles:    [('1130', 256)] 
    service id:  None 

Service Name: Headset Audio Gateway
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    RFCOMM
    channel/PSM: 12
    svc classes: ['1112', '1203'] 
    profiles:    [('1108', 258)] 
    service id:  None 

Service Name: Hands-Free Audio Gateway
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    RFCOMM
    channel/PSM: 13
    svc classes: ['111F', '1203'] 
    profiles:    [('111E', 261)] 
    service id:  None 

Service Name: AVRCP TG
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    L2CAP
    channel/PSM: 23
    svc classes: ['110C'] 
    profiles:    [('110E', 256)] 
    service id:  None 

Service Name: Audio Source
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    L2CAP
    channel/PSM: 25
    svc classes: ['110A'] 
    profiles:    [('110D', 258)] 
    service id:  None 

Service Name: SyncML Client
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    RFCOMM
    channel/PSM: 25
    svc classes: ['00000002-0000-1000-8000-0002EE000002'] 
    profiles:    [('00000002-0000-1000-8000-0002EE000002', 256)] 
    service id:  None 

Service Name: SyncML Server
    Host:        50:56:A8:00:24:EA
    Description: None
    Provided By: None
    Protocol:    RFCOMM
    channel/PSM: 26
    svc classes: ['00000001-0000-1000-8000-0002EE000001'] 
    profiles:    [('00000001-0000-1000-8000-0002EE000001', 256)] 
    service id:  None

How I get the data/respons from it are the main problem I've got right now. And I hope someone on this planet can help me!

edit retag flag offensive close delete