Topic locked

TargetFinder doesn't work on Glass

February 20, 2014 - 2:59am #1

Hi everybody,

I am developing a Glass app using Vuforia. The Glass is connected to the internet using 3G on a Nexus (over Bluetooth), but the target finder can't seem to use this connection. Is there a solution to this?

 

Here's the code that's giving the problem:

       // Initialize target finder:

        TargetFinder targetFinder = imageTracker.getTargetFinder();

        

        // Start initialization:

        if (targetFinder.startInit(Config.ACCESS_KEY, Config.SECRET_KEY))

        {

            targetFinder.waitUntilInitFinished();

        }

        

        int resultCode = targetFinder.getInitState();

        if (resultCode != TargetFinder.INIT_SUCCESS)

        {

            if(resultCode == TargetFinder.INIT_ERROR_NO_NETWORK_CONNECTION)

            {

                mInitErrorCode = UPDATE_ERROR_NO_NETWORK_CONNECTION;

            }

            else

            {

                mInitErrorCode = UPDATE_ERROR_SERVICE_NOT_AVAILABLE;

            }

                

            Log.e(LOGTAG, "Failed to initialize target finder.");

            return false;

        }

TargetFinder doesn't work on Glass

February 24, 2014 - 9:45am #10

Thanks for looking into this.

TargetFinder doesn't work on Glass

February 24, 2014 - 9:20am #9

Update: 

just got confirmation from the team that Bluetooth is not supported at present by Vuforia (current version being 2.8.7); 

you need to have direct connection via either 2G/3G or WiFi.

You may want to post the request for Bluetooth connection in our Wish List, for consideration for future versions of the SDK:

https://developer.vuforia.com/forum/general-discussion/wish-list

 

TargetFinder doesn't work on Glass

February 24, 2014 - 7:03am #8

Not yet;  waiting for feedback from my team.

 

TargetFinder doesn't work on Glass

February 24, 2014 - 6:32am #7

Any word?

TargetFinder doesn't work on Glass

February 20, 2014 - 11:34am #6

Ok, I will check this and get back to you, although not sure this is a supported use case; but if I find any hints I will sharewith you.

 

 

TargetFinder doesn't work on Glass

February 20, 2014 - 7:43am #5

The Bluetooth permission doesn't solve anything. The bandwidth seems okay, it loads YouTube videos etc. very fast. No way to quantify this though.

TargetFinder doesn't work on Glass

February 20, 2014 - 5:32am #4

Ok. So, basically you are tethering bluetooth with the internet connection of another device, and this allows the device to access the internet.

Now, on the Vuforia side, to my knwoledge there should not be any reason that prevents the TargetFinder client to connect to the Cloud, as in the end this is just some kind of internet connection too.

However, you probably need to also add the Bluetooth access permission to your AndroidManifest.xml, i.e.:

 <uses-permission android:name="android.permission.BLUETOOTH" />

That would be a first thing to try (and hopefully it could be sufficient).

If that still does not work, this may just indicate that the bandwidth is not sufficiently high for Cloud Reco to work. We have observed Cloud Reco connection issues even on a "regular" network (i.e. without Bluetooth bridge), simply due to the very low bandwidth of the network. And so, there is a chance that your Bluetooth connectivity in your case is not  enough to enable the TargetFinder.

 

 

TargetFinder doesn't work on Glass

February 20, 2014 - 5:02am #3

Yes, that permission was added to the manifest. Like I said, it works perfectly fine over WiFi. If we disconnect the Wifi and connect to the internet via Bluetooth the Glass has internet, but the TargetFinder can't use it (so it appears).

TargetFinder doesn't work on Glass

February 20, 2014 - 4:31am #2

Have you added INTERNET permission in your AndroidManifest.xml ?

Can you verify that the glass actually has internet access through the bluetooth+ 3G chain ?

 

Topic locked