How to use various bluetooth services of a smartphone through python?
My smartphone supports the following bluetooth services -
- SDP Server
- AVRCP Target
- Dial-Up Networking
- OBEX Object Push [known]
- Imaging
- Phonebook access PSE
- Hands-Free Audio Gateway
- Headse开发者_StackOverflow中文版t Audio Gateway
- SyncMLClient
- Audio Source
- AVRCP Controller
- OBEX File Transfer [known]
- Nokia OBEX PC Suite Services
- Data Transfer [known]
- Nokia SyncML Server
I want to use these services from python, but I don`t know to use any other than OBEX Object Push, Data Transfer and OBEX File Transfer. How do I use the remaining services?
Do you want to connect from a PC to the smartphone? Or do you have python installed on a smartphone?
By default PyBluez should help you use SDP as well. Have a look here for an example.
For imaging you could also use the RFCOMM (or SPP) to serialize the image and transfer it...
For the rest you might have to find something more solid than Python I think. Or wrap some native libraries to Python yourself.
精彩评论