You Are Here:

Community: Developer Discussion Boards

#1 Old Programming Environment on PC for bluetooth - 2003-05-10, 19:39

Join Date: May 2003
Posts: 2
PhilipT
Offline
Registered User
Hi,

I have MS development environment setup on my PC and my Nokia 3650 can talk with my PC through Bluetooth connection.

While I was trying to play with some ideas on PC to talk with my cell phone through Bluetooth, I found out that I need files like ws2bth.h in order to programming under MS WinSock2, by which I realized that I don't have Bluetooth programming environment setup for my PC (to develop software for Windows with Bluetooth capability).

I assume that Microsoft should provide such environment, but haven't found out where to get it.

Could anyone point me to the right direction?

Thanks,

Philip
Reply With Quote

#2 Old 2003-05-12, 13:41

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
Alternative 1: If your application is a typical serial port application, you can create the application so that it just connects to a specific virtual COM port. After that the Bluetooth solution takes care of connection establishment. Some brands allow you to choose a default remote device in advance, and the connection establishment takes place automatically without user interaction. With some brands you need to connect manually to a Bluetooth serial port.

Alternative 2: If you need to do Bluetooth specific things in the application (device/service discovery, filtering, automated inquiries and connection, etc.), then you need to use Bluetooth development kits. In this case the problem is that Bluetooth APIs are Bluetooth stack specific.

Therefore the first alternative is more generic and interoperable with almost every existing Bluetooth solution on the market.

Seppo
Forum Nokia
Reply With Quote

#3 Old 2003-05-12, 18:18

Join Date: May 2003
Posts: 2
PhilipT
Offline
Registered User
Seppo:

Thank you for your reply.

Right now, my immediate need is to get a test program running on the PC side in order for my cell phone to talk to the PC through bluetooth.

The urgent thing for me is to use the MSVC 6 programming environment to build a test program immediately. The MS Winsock2 can handle bluetooth protocol. But I simply cannot find the bluetooth support part, such as ws2bth.h and etc. I need someone to help me on how and where to find out info to set up this.
In this sense, this is also a pure PC programming environment question. Once I set it up, I can build bluetooth enabled products on PC to talk to bluetooth devices such as cell phones. Or I can build products to simply communicate PC to PC through bluetooth.

For more general progamming environment, I'll think that later on.

Thanks,

Philip
Reply With Quote

#4 Old 2003-05-14, 12:16

Join Date: Mar 2003
Posts: 1,200
seppo_fn's Avatar
seppo_fn
Offline
Forum Nokia Expert
You can create the PC side application with your development environment. This allows PC-PC applications. With your PC application you can also connect to phones in use cases where you don't need a specific counter application on the phone (for example, using the phone as modem via AT commands or just inquiring the profiles of the phone).

By using the Series 60 SDK you can create applications for the Series 60 phones. You can use MSVC6, or Metrowerks or Borland tools to create the application. This way you can connect from your phone application to PC and remotely control your PC, for example.

Seppo
Forum Nokia
Reply With Quote

#5 Old 2003-05-15, 20:37

Join Date: Mar 2003
Posts: 37
kmkumar
Offline
Registered User
TPhilipT

he necessary header files and lib files for MT BT stack
are included in Platform SDK for XP. I'm not sure whether
you can download the SDK from their MSDN site. Check
with them. You might be able to order a CD.

The MS BT stack provides socket interface to its SDP and RFCOMM
layers. You can use the same interface for device discovery too.

No obex support is provided. You could download openobex
from sourceforge and add MS RFCOMM support. Its pretty
straight forward.

/kmk
Reply With Quote

#6 Old serial port application - 2003-08-13, 12:41

Join Date: Jul 2003
Posts: 100
ja_calulot
Offline
Regular Contributor
Hi Seppo!

This is regarding alternative 1 that you describe in this thread.

Can you tell me exactly how can i do serial port application that connects to a virtual COM port? Do i need to use sockets programming here?

Thanks in advance.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia