PocketMagic

PocketMagic

Where Technology meets magic


Android
45 Posts
BlackBerry
4 Posts
Electronics
68 Posts
Hardware
120 Posts
High Voltage
49 Posts
iPhone
4 Posts
Linux
2 Posts
Nuclear
20 Posts
Optics
11 Posts
Photography
7 Posts
Photoshop
3 Posts
Research
19 Posts
Reviews
18 Posts
Robotics
8 Posts
Security
7 Posts
Software
73 Posts
Symbian
2 Posts
Tubes
18 Posts
Windows
3 Posts
Windows Mobile
11 Posts

Top Articles!       See PocketMagic on Facebook


uRADMonitor - Online Radiation monitoring station | 14967 Views | Rate 70.27
uRADMonitor - Online Radiation monitoring station
Bluetooth and iOS - Use Bluetooth in your iPhone apps | 18321 Views | Rate 59.1
Bluetooth and iOS - Use Bluetooth in your iPhone apps
NMEA GPS Library for AVR Microcontrollers | 4845 Views | Rate 56.34
NMEA GPS Library for AVR Microcontrollers
Programmatically Injecting Events on Android - Part 2 | 5063 Views | Rate 44.81
Programmatically Injecting Events on Android - Part 2
Building a robot – Part 2 | 4648 Views | Rate 44.27
Building a robot – Part 2
Simple Switched power Supplies | 16206 Views | Rate 41.98
Simple Switched power Supplies
Capacitor Discharge Microspot Welder / Cutter | 11396 Views | Rate 36.53
Capacitor Discharge Microspot Welder / Cutter
Atmega8 and Nokia 5110 LCD  | 1556 Views | Rate 34.58
Atmega8 and Nokia 5110 LCD

 
  

WinCE Bluetooth Broadcom stack ‘Not a valid Pocket PC application’ Error


By Radu Motisan Posted on July 22nd, 2010 , 576 Views (Rate 0.56)



  




The current Windows Mobile Bluetooth Broadcom stack SDK comes with two libs that can be used:
BtSdkCE50.lib and BtSdkCE30.lib

The BtSdkCE50 is compiled for THUMB while BtSdkCE30 is for ARM.

You'll need BtSdkCE50 if you're planning to use:
GetBTWCEVersionInfo, AddServiceName, SetSecurityLevel and other APIs.

So because of the need to use these functions it is almost compulsory to link your Bluetooth application with parameter machine:THUMB . Unless you can go with what BtSdkCE30 has to offer, only.

An even bigger issue is with a set of functions, out of which I've identified: IsDeviceConnectable and IsStackServerUp. Simply calling any of these , results in "Not a valid Pocket PC application" critical error message, before the application has any chance to start:
Wince Broadcom Stack error 1

It makes no difference if only BtSdkCE30 or BtSdkCE50 or both are included. For some reason the resulting linked code is invalid. This behavior has been tested on several Windows Mobile devices, ranging from WM4.0 to WM6.5.

The code that results in this error is plain simple:
Wince Broadcom Stack error 2

Not sure how to fix this, and unfortunately despite the high popularity of the Broadcom stack among newer devices, there is little documentation available to developers.






  

More on PocketMagic:

How to set the AVR Fusebits | 1723 Views | Rate 23.6
How to set the AVR Fusebits
Repairing a Victoreen CDV-700 6B Dosimeter  | 165 Views | Rate 23.57
Repairing a Victoreen CDV-700 6B Dosimeter
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164 | 2067 Views | Rate 22.71
ATMega128 and HD44780 LCD using 3 Wires with the 74HC164
Developing for Blackberry 10 | 90 Views | Rate 22.5
Developing for Blackberry 10
Dual H-Bridge for controlling two motors | 1216 Views | Rate 21.33
Dual H-Bridge for controlling two motors
USBAsp -  AVR USB Programmer  | 8131 Views | Rate 21.06
USBAsp - AVR USB Programmer

Thank you for commenting. Your comment won't show until approved, which can take some time.

Please copy the string kYAycm to the field below: