How to use/connect Bluetooth in Python (From Scratch)to BOSCH GLM 50 C in Window?

Panisetti prudhviraj
Analytics Vidhya
Published in
5 min readOct 16, 2020

--

I got a new challenge at my job: Connecting a laser distance measurement Bluetooth device() to my PC/Computer and receive the data into Python script through Bluetooth. I’ve never dealt with Bluetooth and during my research I’ve found many resources but unfortunately many were incomplete snippets or tutorials that only explain only a piece of the puzzle. It was exhausting!

After tons of sleepless hours, I’ve conquered the challenge! I actually got the device specifications and address from the booklet provided! Believe me, it was a very exciting moment to get those bytes of data. So, I decided to sum up my conclusions and the way I handled it to help out others who might be struggling with this. In this post you can find a brief overview of the key components and how to use them to establish a connection and read data from the device and display them on the screen.

Tutorial Specification

Before going to the main topics, here are the few basic requirements that I used for setting up the system.

Windows 8.1 Laptop with 4GB RAM with Bluetooth drivers installed (In-built, if not download required drivers from official website)

Python 2.7 with IDLE — PATH added to the system variables

— Here are the steps to download and set the PATH

  1. From https://www.python.org/download/releases/2.7.6 download appropriate Python 2.7.6 Windows…

--

--

Panisetti prudhviraj
Analytics Vidhya

Passionate Full Stack Developer based in Germany with a strong advocacy for Python, Go. Let's connect on LinkedIn for a tech-centric journey!