Mac Bluetooth MAP profile

陌路散爱 提交于 2020-01-01 03:47:10

问题


Having heard that Apple has included the Bluetooth MAP profile in iOS 6 I was wondering how I could implement the client side of that on a Mac.

I have spent a while Goggling but I haven't found any documentation on how to use it. Is it built into the OS or will I have to use an external library. (I know there is a Bluetooth API in Mac OS but I don't know if it supports the MAP profile)

Are there any code samples or documentation that I could use?


回答1:


Apple does not support Bluetooth MAP natively in OSX. See http://support.apple.com/kb/PH10549 for a list of supported profiles in Mountain Lion. You can create new profiles for OSX, though, within some bounds. See https://developer.apple.com/library/mac/#documentation/devicedrivers/conceptual/bluetooth/BT_Develop_BT_Apps/BT_Develop_BT_Apps.html for details.

Since MAP is on top of SPP/RFCOMM (see http://developer.bluetooth.org/KnowledgeCenter/TechnologyOverview/Pages/MAP.aspx), you should be able to implement this profile on OSX.




回答2:


I have implemented Bluetooth MAP on Mac OS X in Phone Amego (allowing users to get on-screen SMS). MAP is built on OBEX which Mac OS X supports. The Bluetooth MAP spec is quite good but takes a while to grok.

You basically create two OBEX sessions: A Message Access Service (MAS) which then registers with the device to receive notifications using the Message Notification Service (MNS). Once you register, the device will open a MNS session with you and notify you of incoming messages. You'll also need to advertise your MNS service using Bluetooth SDP.

Enjoy! http://www.sustworks.com/pa_guide/sms.html



来源:https://stackoverflow.com/questions/11593433/mac-bluetooth-map-profile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!