Motooth returns -1 when I run discovery on emulator and Blackberry Curve

2 posts / 0 new
Last post
CDN
CDN's picture
Offline
Joined: 4 Nov 2011
Posts:
Motooth returns -1 when I run discovery on emulator and Blackberry Curve

Hi everyone,

I'm running Motooth example on a laptop with Bluetooth enabled and when I run discovery on emulator it returns -1.

When I run "Scan for Bluetooth devices" in MoSync I get the devices which I have in range so I would have expected that I'll get those devices when I run discovery on emulator.

I'm running the application on a Dell laptop under Windows XP. Internal Bluetooth module (Dell wireless 365 Bluetooth module) is running Widcomm drivers.

I've also load Motooth on a BlackBerry 8520 with software V4.6.1.259 (Plaform V4.2.0.116) and I get the same result (-1) when I run discovery.

Any idea what could be the problem?

What does a return value of -1 means?

Thank you,

Cristian

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fredrik Eldh
Fredrik's picture
Offline
Mobile Sorcerer
Joined: 16 Feb 2009
Posts:

-1 is the code IOCTL_UNAVAILABLE. It means the function is not available on your platform.

For your laptop, this is because MoRE (the MoSync Emulator) requires the Microsoft Bluetooth stack. The IDE, being based on Eclipse, does not have that limitation.

We do not have device profiles for the Blackberry 8500 series, so it's hard to tell for sure what happened on your phone. However, it is likely that you used a profile without Bluetooth support. If you have MoSync 2.7 or later, you should be able to use our Blackberry/4.6 profile, which has Bluetooth support.

Let us know how it goes.