You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
After a few PoC project on Raspberry Pi. Now I start a new one. And this one was my main that running on desktop and I target it to publish on Windows Store.
The question is how can I access ANT_Device from it? In this case I have to use normal driver (not a libusb version in this beta). Can I use the normal Windows library with it? I tried and it cause System.DllNotFoundException with ANT_WrappedLib.dll even I make sure it was there. Or I have to wait for a new release of ANT UWP SDK that support normal driver? Will it support in the future?
After a few PoC project on Raspberry Pi. Now I start a new one. And this one was my main that running on desktop and I target it to publish on Windows Store.
The question is how can I access ANT_Device from it? In this case I have to use normal driver (not a libusb version in this beta). Can I use the normal Windows library with it? I tried and it cause System.DllNotFoundException with ANT_WrappedLib.dll even I make sure it was there. Or I have to wait for a new release of ANT UWP SDK that support normal driver? Will it support in the future?
The libs should run as long as the version of Windows conform to the requirements for UWP:
https://msdn.microsoft.com/en-us/windows/uwp/get-started/universal-application-platform-guide
Perhaps you can try changing the build target for the platform you're shipping?
The DLL not found exception may have been caused by missing metadata file (winmd) from the UWP library. Can you check that ANT.UWPWrappedLib.dll, ANT.UWPWrappedLib.winmd and ANT_NET_UWP.dll are all in the same directory?
Dynastream Developer
Hello,
I am trying to run the Demo_ANTFS project on my RPI3. I have tried two different ANT adapters but I get the same exception. I have tried changing the target version to 10586, I can see the device if I do use the USB Devices c# library. I have also tried a separate project but cannot seem to figure out why the library cannot see my device. Any help would be greatly appreciated.
Exception:
Message = "ANTLibrary Exception: No ANT devices detected: ensure an ANT device is connected to your system and try again"
Devcon:
USB\VID_0FCF&PID;_1008\123 : ANT USBStick2
USB\VID_0FCF&PID;_1008\5&3753427A;&0&4 : ANT USBStick2
USB\VID_0FCF&PID;_1008\123
Name: ANT USBStick2
Driver is running.
USB\VID_0FCF&PID;_1008\5&3753427A;&0&4
Name: ANT USBStick2
Driver is running.
Hello,
I am trying to run the Demo_ANTFS project on my RPI3. I have tried two different ANT adapters but I get the same exception. I have tried changing the target version to 10586, I can see the device if I do use the USB Devices c# library. I have also tried a separate project but cannot seem to figure out why the library cannot see my device. Any help would be greatly appreciated.
Exception:
Message = "ANTLibrary Exception: No ANT devices detected: ensure an ANT device is connected to your system and try again"
Devcon:
USB\VID_0FCF&PID;_1008\123 : ANT USBStick2
USB\VID_0FCF&PID;_1008\5&3753427A;&0&4 : ANT USBStick2
USB\VID_0FCF&PID;_1008\123
Name: ANT USBStick2
Driver is running.
USB\VID_0FCF&PID;_1008\5&3753427A;&0&4
Name: ANT USBStick2
Driver is running.
How did you run C# library on RPi ?
I am opening the DEMO_ANTFS solution in visual studio 2017 and have selected arm as the solution target and selected my rpi as the remote machine. My rpi3 running Windows IOT Core 16229. I either deploy the solution or remote debug but either way i get the exception.
I can see the device if I do use the USB Devices c# library. Now I'm not sure the device you mean the VS see RPi or the app on RPi see ANT adapter device?
Sorry I mean when you sayI can see the device if I do use the USB Devices c# library. Now I'm not sure the device you mean the VS see RPi or the app on RPi see ANT adapter device?
Oh I see. I Created a new UWP app to test if it was an issue with the conversion from the earlier win iot target. This is the code that I ran and was able to access the ANT Adapter. Although I wasn't able to do anything useful with it.
UInt32 vid = 0x0FCF;
UInt32 pid = 0x1008;
//Selector is created
string aqs = UsbDevice.GetDeviceSelector(vid, pid);
//Device is available to use
var myDevices = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(aqs, null);
UsbSetupPacket initSetupPacket = new UsbSetupPacket()
{
// Request = initRequest,
RequestType = new UsbControlRequestType()
{
Recipient = UsbControlRecipient.DefaultInterface,
ControlTransferType = UsbControlTransferType.Vendor
}
};
await device.SendControlOutTransferAsync(initSetupPacket);
Yes I did but the name of the inf was different that the instructions provided. Without the driver the ANT device isn't recognized in the devcon utility.
<DeviceCapability Name="usb">
<Device Id="vidpid:0FCF 1008">
<!--<Function Type="classId:ff * *"/>-->
<Function Type="name:vendorspecific" />
<!--<Function Type="winUsbId:B8619067-F6EB-4F73-A0D6-405D080544F0"/>-->
</Device>
</DeviceCapability>
What was the name of the inf file that you installed?
Are you using the ANT mini or the ANT2 ?
<Capabilities>
<Capability Name="internetClient" />
<Capability Name="internetClientServer" />
<Capability Name="allJoyn" />
<Capability Name="privateNetworkClientServer" />
<!-- ANT USB-m Stick-->
<DeviceCapability Name="usb">
<Device Id="vidpid:0FCF 1008">
<Function Type="name:vendorSpecific" />
</Device>
<Device Id="vidpid:0FCF 1009">
<Function Type="name:vendorSpecific" />
</Device>
</DeviceCapability>
</Capabilities>