Home | pfodApps/pfodDevices | WebStringTemplates | Java/J2EE | Unix | Torches | Superannuation | | About Us
 

Forward Logo (image)      

Windows 7 Serial Bluetooth Connection
from you Mobile Phone

by Matthew Ford 1st October 2012 (originally posted 1st August 2012)
© Forward Computing and Control Pty. Ltd. NSW Australia
All rights reserved.

How to Make a Serial Bluetooth connection from your mobile phone to Window 7

The Bluetooth pfodAppTM for AndroidTM uses serial Bluetooth connections.

pfodAppTM for Android allows you to control micro-controllers, like Arduino, via bluetooth, from your Android phone. No Android programming required.

For testing purposes it is convenient to make serial Bluetooth connections between you mobile phone and a terminal session on your PC. This page describes how to connect from an Android mobile to a terminal session running on Windows 7. This is an alternative to the preferred method which used a USB Bluetooth connection. The preferred method can be used for Windows, Mac or Linux and also provides direct serial access to the bluetooth module for configuration.

Enable Bluetooth on PC
Add Bluetooth Device
Find Assigned COM Port
Check the COM port Baud Rate
Install Terminal Program
Connecting pfodApp™ to TeraTerm

Enable Bluetooth on PC

First make sure Bluetooth is enabled on your computer. On my Sony Viao this dialog pops up each time I start the computer.

Add Bluetooth Device

Press the Windows Start Button and search for “add bluetooth”


(click image for full size image)

Choose “Add a bluetooth device” Then on you Android mobile open the menu

and choose “Settings” and from there choose “Wireless & networks and then “Bluetooth settings” and click on “Discoverable”

The PC needs to scan for the mobile while it is “Discoverable”. When the PC finds the mobile, the PC displays


(click image for full size image)

Click “Next” and Windows will attempt to pair with the mobile

(click image for full size image)

The mobile will display the pairing request.

Note the number after PASSKEY is the same as that displayed by the PC.

Click Pair on the mobile and click Next on the PC to complete the pairing. The PC then displays

(click image for full size image)

Find Assigned COM Port

To find out which COM port has been allocated to the mobile, click on the Windows Start button and search for “bluetooth” and choose “Change Bluetooth settings”

(click image for full size image)

Click on the “COM Ports” tab to see which port has been allocated to your mobile.

(click image for full size image)

Check the COM port Baud Rate

Then check the baud rate that this COM port is set to. Press the Window Start button and search for “device manager”

(click image for full size image)

In the Device Manager open the COM ports and right click on the COM port Number assigned to your mobile and click on the “Port Settings” tab check or change the baud rate.

(click image for full size image)

In this case the baud rate is 9600.

Install Terminal Program

Then install a terminal program as described here.

Connecting pfodApp™ to TeraTerm

Before trying to connect from pfodApp on your mobile to the computer, first check that the computer is set to accept connections. Open the “ Change Bluetooth settings” dialog as described above under Find Assigned COM Port and click on the Option tab and tick the “Allow Bluetooth devices to connect to this computer”

(click image for full size image)

Note: The computer is NOT discoverable. So the only devices that try and connect are those that already know the computers bluetooth address.

Finally follow the steps described here to connect to your terminal session from your mobile's pfodApp. Note: the timeout for the PC connection is set to 0. You can now test various micro-page pfod messages to see how they will be displayed on the pfodApp and what command messages the pfodApp will send back when the user selects the various options.


The General Purpose Android/Arduino Control App.
pfodDevice™ and pfodApp™ are trade marks of Forward Computing and Control Pty. Ltd.


Forward home page link (image)

Contact Forward Computing and Control by
©Copyright 1996-2020 Forward Computing and Control Pty. Ltd. ACN 003 669 994