Microsoft Band SDK on Windows 8,1 - windows-store-apps

Maybe I'm crazy, but how do I access a Band on a Windows 8.1 machine?
Any calls to BandClientManager return 0 paired devices, and I'm not sure how to "pair" a Band to a Windows 8.1 machine.
I can obviously get the Microsoft Band Desktop to sync easily on any Desktop, but no Bluetooth on any of my Surface devices ever even register a Band available.
The code samples obviously show connecting on Windows 8.1. What am I missing to have a Band show up?

A couple of things than can be tried and may have an effect are:
Disable Power Saving on the PC's BT Adapter
On your PC, launch Device Manager (e.g. by right clicking the Windows 8.1 Start Button and choosing "Device Manager")
In Device Manager, go to Bluetooth -> and right click and select "Properties".
Go to the "Power Management" tab of the Properties dialog, and make sure that "Allow the computer to turn off this device to save power" checkbox is NOT checked.
Re-pair the Band to the PC:
On the Band, go to the Settings tile and tap the Bluetooth icon, then change the Bluetooth state from "On" to "Pairing".
On the PC, go to the Bluetooth "Show Bluetooth Devices" and unpair the Band (if previously paired to the PC) and then start a fresh pairing.

The latest SDK does contains Windows 8.1 and Windows Phone 8.1 examples. You can find the SDK here: http://developer.microsoftband.com/

Have you already installed the Band Sync app on Windows and paired with the band?
I haven't tried this scenario on a Windows 8.1 machine yet but haven't had any issue with BandClientManager on Windows Phone 8.1 in a Windows Store app.
Windows 8.1 Band Sync App
http://www.microsoft.com/en-us/download/details.aspx?id=44579

I just did a quick test on my Windows 10 (desktop) machine. I paired my Band to the machine via Bluetooth--as it's an older machine I have a USB-based Bluetooth adapter--and created a new, Blank, Windows 8.1 Store project in Visual Studio 2013. I applied the latest Band SDK NuGet package (v1.3.10417.1). I added a Button to the MainPage and added the following click handler:
private async void Button_Click(object sender, RoutedEventArgs e)
{
var bands = await BandClientManager.Instance.GetBandsAsync();
var band = bands.FirstOrDefault();
if (band != null)
{
var client = await BandClientManager.Instance.ConnectAsync(band);
string name = await client.GetFirmwareVersionAsync();
}
}
I started the application in debugger on the local machine (not the simulator), and was able to enumerate, connect to, and retrieve the firmware version from my Band.
I only have an old Surface RT machine (which won't run Visual Studio) and am running Windows 10 on all my desktops at the moment so can't replicate your exact scenario. That said, if it works on an old machine with an external Bluetooth adaptor on a pre-release OS, I'd be surprised that it doesn't work on a much newer machine (like a Surface) with an integrated Bluetooth adaptor, on a released and stable OS.
One thing to keep in mind is that the Band will only "remember" (i.e. connect to) the last device it has been Bluetooth-paired with, regardless of whether those devices still show the Band as being paired (and vice-versa). If you're switching between testing the Band with your phone applications and your Store (desktop) applications, then you have to re-pair (not factory reset) the Band to the new device.

I've the same issue, I've running an 8.1 dell laptop and it sees the band in the Bluetooth connections etc but when I try to connect in my app it doesn't see the band. I've even tried to connect my band to a windows phone and my app falls over on the connection.
The strange thing I've noticed is when it's paired to my iPhone it connects as though it's 2 devices. There are 2 entries in my Bluetooth settings. When connecting to the laptop and windows phone it shows as 1 but occasionally the other device shows up briefly then disappears and you can't connect to it. This could be a red herring but it's just a little odd...
the code isn't doing anything special :
var pairedBands = await Microsoft.Band.BandClientManager.Instance.GetBandsAsync();
if (pairedBands.Length < 1)
{
// display some error message
return;
}
pairedBands always comes back with 0.
The windows phone dll is 8.1.0.0....help! It's driving me mad.

Related

Developer unlock Windows Phone 8 : Error Code 0x64

We need to unlock a Windows Phone 8 device in order to deploy our app that still supports this specific platform.
The process was working some months ago without any problem but now, Windows Phone Developer Registration Tool, available with SDK 8.0, returns the following error:
We have already tried with different devices (with the date set correctly: UTC +1 Rome)
HTC 8S
Lumia 720
Nokia 625
all with the same result.
We have tried to unlock our devices for an entire week, so it does not seem a temporary problem.
The devices and the pc have both a working Internet Connection and aren't running behind any firewall/proxy at all.
We have no problem at all, unlocking WP 8.1 devices with the proper Windows Phone Developer Registration Tool for WP 8.1
Do you know if there's any technical problem on the Microsoft side?
Is the Windows Phone WP 8.0 unlocking process still supported by Microsoft?
As of May 13, 2015, you can no longer developer unlock Windows Phone 8.0 devices. You have to upgrade them to Windows Phone 8.1. I don't have an article to point to, just an email I received from MS to the email address associated with my developer account:
If you have a Windows Phone 8.0 device that you use to test your apps,
please read this mail.
The Windows Phone 8.0 certificate that validates developer unlocks
will expire today May 13, 7pm, Pacific Daylight time.
We recommend that you re-unlock your Windows Phone 8.0 test devices
prior to today 7pm, to continue testing for another 24 months.
After today, no Windows Phone 8.0 device will be able to be developer
unlocked, and you will have three options to continue testing Windows
Phone 8.0 packages: – Update the phone to Windows Phone 8.1 and
unlock it for developer testing – Submit apps as beta through the
Windows Dev Center and test with Windows Phone 8.0 devices – Test
Windows Phone 8.0 apps via the Windows Phone emulator
Any Windows Phone 8.0 device currently unlocked will continue to be
unlocked and work as a test device until its certificate expires. To
maximize the time available to test with this device, please lock then
unlock the device before May 13, 2015 7pm PDT.
Note that this change has no impact on apps available in the Windows
Phone Store, has no impact on Windows Phone 8.1 devices, nor will it
impact customers with Windows Phone 8.x devices.
The Windows Store team
I tried registering my Lumia 820 using WP8 SDK Registration tool and it succeeded. So I believe there is no technical problem on Microsoft's server.
It is still possible to unlock Windows phone 8.0 devices. Only 7.x devices can't be unlocked now as mentioned in this article
As you are getting time error, Try disabling "Set Time automatically" from Settings menu as per the official documentation
Are the date and time set correctly on the phone? In SETTINGS | date + time, turn off the Set automatically setting and then retry registration. After registration succeeds, turn this setting on again.
Make sure your phone also has some internet connection, such as wifi.
I've had some problems sometimes registering some WP devices as developer devices. I've never had this particular error, but maybe this will work.
When the device is connected to the computer, in the taskbar click in the icon which shows that a device is connected (the one where you can "Safely remove" the device) and right click on it and select the show devices and printers option. When it opens, you will see all the windows phone devices you have connected to the computer. Disconnect your device and uninstall it and its drivers by selecting the appropriate option after right clicking on it.
Connect it again, it should now install its drivers again.
And just in case, if you have the correct date/time on the device, just confirm they also match the region/location set in the device. for eg- suppose you have set the time to indian standard time (IST) but the region of the device is set to that of USA or some other location.
If the WP8.0 answer or other date/time finagling does not help, another recommendation to try is to just reboot the darn thing after changing the time settings to manual.
I ran into this error with a Windows 10 Phone today. I tried adjusting the time settings from automatically set to manual, and ensured all was in sync between the Phone and PC, but I still received the 0x64 error code. I tried another PC, to no avail. By chance, I decided to reboot the phone. After rebooting and launching the PhoneReg tool, all was happy and I was able to unlock the phone and deploy my app.
Check windows phone date+time = pc date+time
date+time Set automatically turned off
unplug de phone and reconnect

Unable to register my Lumia 1020 as a testing phone for windows phone apps

I have a Nokia Lumia 1020 that I need to register as a testing device for my Windows Phone Apps. It is running Lumia Cyan thus Windows 8.1. I have Windows Phone SDK 8.1 and 8.0 installed on my machine and when I try to use the Windows Phone Developer Registration (8.1) interface or the normal one (Windows Phone Developer Registration unde Windows Phone SDK 8.0 i keep getting the same error. Unable to connect to a Phone. Make sure that the Windows Phone IP over USB Transport Service is running. I try to restart the service, switch ports, switch from Wi-Fi to 3G network on my phone. Nothing works. I have ensured that the Phone is showing as a device under File Explorer and when I connect the phone to my computer it does launch the Windows Phone app for desktop well. I am not sure what to do at this point and it's getting frustrating. I have tried to reinstall the SDKs and still nothing. I do have a developer account and developer account details intact. Please help... someone.... anyone :(
I finally figured it out. I went to device manager and found under Universal Serial Bus Devices and found device drivers of my phone on all the ports where I had connected the USB cable. I then right-clicked on one that showed that needed an update. I clicked on update device driver software where it scanned for updates and found out that the driver was up to date then I realized that it was not enabled. I enabled it and it was able to recognize the phone. However I had to keep restarting the service since the software kept going offline as well as switching from 3G to Wi-Fi. And it finally worked :)

Windows Phone Developer Registration (IpOverUsbSvc error) & mass storage mode (Lumia 735)

as for other before me, I'm getting the IpOverUsbSvc error when trying to register my Lumia 735 (os windows phone 8.1, Denim) on my notebook (os windows 8.1, updated).
I've tried to restart the service, restart the phone, restart the notebook (because "why not?"), to reinstall the Windows Phone Development tools, to change the usb port, to delete from the known devices the phone and to change the cable (with the phone there wasn't a usb-cable, so i used my old one and I also tried to use another one), but nothing seems to work. Any other idea?
Also, somehow looking for an answer for my previous question, I came up with this guide(1), where it says to connect the phone on mass storage mode to configure some debug settings. Not knowing how to connect it as a mass storage, I found this other guide(2), where the only thing it says is to press the camera button or the camera button and the volume down one. On lumia 735 there isn't a camera button, so how can I do it?
try this
If you have registered more than one phones to your Microsoft/windows development account. than remove your present phone from account and rename it to the another registered phone name.(this worked for me)
OR
if you don't have two registered phones remove your phone from developer account, rename your phone and connect(I wish it will work)

Deploy to Windows Phone 8 device from VM (RDP/RemoteFX)

I would like to move my WP8 development to a virtual machine. I know that the emulator won't run on top of a VM, so I'm wondering if I can deploy & debug directly to the device (via regular old USB). RemoteFX allegedly performs "USB redirection" which I assume is supposed to magically connect the phone up to my RDP session, and thus enable deployment. I was able to establish a RemoteFX connection with my VM, however when I try to deploy to my phone Visual Studio (within the VM) claims it cannot find a phone. (yes, I verified my phone is connected to my local machine)
tl;dr Does anyone know how to deploy to a physical Windows Phone from within a VM?
I see that this is the first link that appears in google search for this problem. I am going to present you the solution from what it is there is Nokia development articles. Please go through link.
The only important thing is to enable Intel VT-x option.

Deployment failed or Emulator is not start

I am using Windows phone 8 sdk and Visual studio 2012
deployment failed because no Windows phone 8 was detected.
Make sure a phone is connected and power is on
Tell me how can I resolve that error.
It would seem that you need to make sure that the OS thinks that the device is connected.
I've had this a few times and addressed it with the following:
- unplug and then reconnect the device
- Try a different cable
- You may also see this if you have a very low battery charge
To confirm that the OS thinks the phone is connected, make sure you can see it in Windows Explorer or the Windows Phone [app for desktop] application.
I had the same problem - the phone just stopped connecting. Turn it off completely (hold on power button and then slide down) and turn on again - Windows will notice it and you will see it in Windows Explorer under "Devices and drivers" section.