Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3222286
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:58:25+00:00 2026-05-17T15:58:25+00:00

Yesterday, I had programmed a simple Bluetooth network for my iPhone application. This morning,

  • 0

Yesterday, I had programmed a simple Bluetooth network for my iPhone application. This morning, when I tried to continue development, it suddenly wasn’t working on my iPod Touch 2G at all. It works just fine on the iPAD however. The problem arises when I try and set the availability of my GKSession object to YES on the iPod, having created a Server session. The console receives the following:

2010-10-05 14:28:55.762 Clusters[67:307] BTM: attaching to BTServer
2010-10-05 14:28:55.786 Clusters[67:307] <<< Session >>> +[GKBluetoothSupport _determineBluetoothStatus]: BT not available - try again later.
2010-10-05 14:28:55.862 Clusters[67:307] BTM: posting notification BluetoothAvailabilityChangedNotification

Now, I know that Bluetooth is turned on, and I know that it’s working because I downloaded a free Bluetooth transfer app to test that out. I’ve reset my iPod, cleaned my targets, poked and prodded at various parts of the code, but I just can’t find out why the app can’t create a Bluetooth server. It can create a Bluetooth client just fine, since the app can receive data sent by my iPad perfectly well.

Can anyone make any suggestions as to what might be happening here? I’m at my wit’s end.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:58:25+00:00Added an answer on May 17, 2026 at 3:58 pm

    Right, after working away at this all damn day with a million and one dead ends, I finally discovered the culprit. My ‘ping’ routine. As I guess most people will know, a network session needs to receive regular data or it will timeout and close itself. To prevent this from happening, I set up a simple routine to send a small packet of data (4 bytes) once every ten seconds to all peers. The problem? Using the [GKSession SendDataToAllPeers: withDataMode: error:] method will cause your server to bugger up right royally if there are no peers connected. For some reason, the vital check to see if anyone was connected at all was omitted. I solved the problem by placing a simple predicate in my ping routine like so:

    if ([[network peersWithConnectionState:GKPeerStateConnected] count] > 0) {ping code here}
    

    And once again it’s working. I can’t for the life of me remember this problem happening before, or why it shouldn’t happen on the iPad running on an earlier OS. I can only guess that some later update caused the issue. Anyway, all fixed now, and while my program is far from watertight I can at least now concentrate on getting the rest of it working.

    -Ash

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Yesterday I had to parse a very simple binary data file - the rule
Ok guys, So I was watching inception yesterday and I had this idea. I
I had this code working yesterday, but it seems like I edited it a
Had this question in the interview yesterday. Which is better to use? Infix(with parenthesis)
Yesterday I had a failing darcs install with cabal, today I get this when
I had this working fine yesterday, made some changes and I have no idea
I had this one problem yesterday and both solutions are here at the js
So yesterday my mate and myself had this duscussion about the architecture of this
This is a followup to a question I asked yesterday: Have you ever had
I got a big problem this morning. My SQL Server had a HUGE bug

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.