Author Topic: Getting Device Information  (Read 6026 times)

Offline AnupamVarghese

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Getting Device Information
« on: March 22, 2007, 03:17:29 PM »
Hi Mike,

I now use Microsoft bt stack and have installed frameworkx 5.1.5

I really need to know the actual handset model name and manufacturer (I don't require any other information right now).

When I try the DeviceInformation demo program, it returns the following error in a message box:

"System Error. Code: 10110.
No more results can be returned by WSALookupServiceNext."


The handsets being used are Nokia 6600 and Nokia 6021.

(ps: Earlier, with the Widcomm stack, the app used to hang.)

Thanks.
AV.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Getting Device Information
« Reply #1 on: March 22, 2007, 03:29:32 PM »
Good time of the day!

Use BFGSMModemClient. It gives you model and manufacturer for ANY mobile phone. But notes: not all devices allows make several BT connections at the same time. So you need connect using GSMModel, disconnect it and then connect with other component.
Also, note that other devices could have not suppoorts for that feature.

P.S. I found one interesting way to retrive device information, will play with it and if it will useful then add it to library It should be universal method.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline AnupamVarghese

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Re: Getting Device Information
« Reply #2 on: March 22, 2007, 03:54:39 PM »
Cool! Will try that out.

It would be great if you are trying to make something work like 'blueprinting' http://trifinite.org/trifinite_stuff_blueprinting.html (or better that that) which would save us quite a few steps in knowing the target device.

Thanks.
AV.


Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Getting Device Information
« Reply #3 on: March 22, 2007, 04:01:29 PM »
OK. I got it. Start working on it You can test it very soon :)
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline AnupamVarghese

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Re: Getting Device Information
« Reply #4 on: March 23, 2007, 07:19:22 AM »
Hi Mike,

BFGSMModemClientX works fine BUT
there is some problem with the activeX control -
I cannot save a form on which BFGSMModemClientX has been put!
VB throws an error "Unexpected error" and the form/code cannot be saved. Tried with both 5.1.3 and 5.1.5.

Also,
I tried without putting the object on the form, through code only, by creating a new instance of BFGSMModemClientX

Private Sub Form_Load()
Dim a As BFGSMModemClientX
Set a = New BFGSMModemClientX
End Sub

Even that does not seem to be working. If I run, it gives "Invalid use of new keyword" error.

Thanks. Best of luck with your 'other' method!

Regards,
AV

Offline AnupamVarghese

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Re: Getting Device Information
« Reply #5 on: March 23, 2007, 07:26:47 AM »
Some screenshots, in case it helps ;-)

Offline Hussain

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: Getting Device Information
« Reply #6 on: March 23, 2007, 07:47:19 AM »
I am also having problems with the BFGSMModem ActiveX control.

If I put it on a VB6 form, everything works fine. I save the project. Close VB. Open VB and open the project and get an error loading the form.

Looking at the .frm file in Notepad shows that there is a BEGIN statement for the BFGSMModem control, 2 or 3 lines of properties and then the VB  code. All, and I mean each and every control including texboxes, labels and so on, are gone from the .frm file.

I tried this many time and each time the controls dissappeared.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Getting Device Information
« Reply #7 on: March 23, 2007, 07:50:53 AM »
Will fix it ASAP today
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Hussain

  • Newbie
  • *
  • Posts: 43
  • Karma: 0
Re: Getting Device Information
« Reply #8 on: March 23, 2007, 08:33:41 AM »
Mike

Thanks

Just to test it, I downloaded the latest version today. Now when I add a BFGSMModem, I get a popup: Unexpected error. No other details. I didn't get this before I downloaded the latest version today.

I can no longer save the form if this control is added.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Getting Device Information
« Reply #9 on: March 23, 2007, 08:49:04 AM »
I see. I am working on it. I have change OCX and somwhere lost several properties. Will fix it today ASAP.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline AnupamVarghese

  • Newbie
  • *
  • Posts: 46
  • Karma: 0
Re: Getting Device Information
« Reply #10 on: March 24, 2007, 08:08:12 AM »
Hi Mike,

Does the 5.2 alpha posted by you solve the problem?

AV

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Getting Device Information
« Reply #11 on: March 24, 2007, 09:03:20 AM »
5.2 alpha posted this day fix this problem
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Fireangel

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Getting Device Information
« Reply #12 on: March 24, 2007, 01:57:17 PM »
MIKE, I also can't place gsmmodem control and I have only 5.1.5 release. How can I test it functionality? I don't find place where I can download prevoius version of your library and I'm not registered user (may be yet :)) to download new version. Is this bug fixed in current (today) release 5.1.5?

Tnx

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2467
  • Karma: 1000
    • Wireless Communication Library
Re: Getting Device Information
« Reply #13 on: March 24, 2007, 04:11:37 PM »
This problem already fixed. I'll upload public beta this night.
I am really sorry for that inconsistence. It is my mistake with testing here.
WCL - Wireless Communication Library
TextBlue - Bluetooth Proximity Marketing Software
WCL Phone Explorer - Free Phone Content Manager

Offline Fireangel

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Getting Device Information
« Reply #14 on: March 25, 2007, 02:23:33 PM »
Thanks for updates. But now I can't find my mobile at all :) ("Please wait while searching for devices" for 20 minutes)
It can't find it when I press browse (with and without fast search).
When enter it address manualy (from bluesoleil) I get a system message: Access violation at address 03FF0d16 in module BluetoothFrameworkX.ocx

Device: mpx220
Drivers: BlueSoleil 2.3.0.0 (device in unpair status)
Visual Studio 2005

P.S. I start unreg ocx from 5.1.5 release and reg for new downloaded 5.2b and there is no GSMModem in COM controls. But I see it in demo source and have no troubles with compilation.
Koroche eto tupik kakoy-to :)