How to make a bluetooth-connection between iOS and Mac/PC?

Discussion in 'iOS Programming' started by Hexero, Feb 19, 2011.

  1. Hexero macrumors regular

    Joined:
    Feb 2, 2010
    #1
    The topic says it all. Is there a tutorial for this?
    Thanks in advance!
     
  2. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #2
    iOS is very limited in the BT profiles it supports.

    http://theiphonewiki.com/wiki/index.php?title=Increased_Bluetooth_Profile_Support

    If you jailbreak, you can do more see the link I provided.

    B
     
  3. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    You might be able to find a way to make the Mac imitate one of the BT profiles which the iPhone supports. For instance, you might be able to make the Mac pretend to be a BT keyboard, etc.
     
  4. Hexero thread starter macrumors regular

    Joined:
    Feb 2, 2010
    #4
    Thanks for the fast replies and sorry for my late one. I'm planning to make a simple remote mouse, with a leftmouse-button function. Pretty simple.
    Any easy way to make this? I'm pretty new to xCode you see, so if you have some good beginner guides, be my guest to share those. :)
     
  5. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #5
    I don't think you can over BT without a jailbreak.

    are you thinking something along the lines of the Logitech Touch Mouse app?

    That one actually works over WiFi and requires a separate server to be installed.

    B
     
  6. Hexero thread starter macrumors regular

    Joined:
    Feb 2, 2010
    #6
    More like a presentation remote.
    WiFi may also be a possibility.
     
  7. ulbador macrumors 68000

    ulbador

    Joined:
    Feb 11, 2010
    #7
    This has to be relatively open. The Chopper 2 app allows you to control the app on your iPad via your iPhone over bluetooth (and it actually works slick). I don't know what official "profile" they would have used, but I think this demonstrates you can do effectively whatever you can think of with it.


    You can do this very easily with WiFi. A few lines of Bonjour code and you can have a server up and going (with the Mac side program doing whatever you want).
     
  8. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #8
    GameKit:
    http://developer.apple.com/library/.../GameKit_Guide/Introduction/Introduction.html
     
  9. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #9
    Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5)

    GameKit is only for iOS to iOS, right?

    B
     

Share This Page