Subscribe: RSS feed Twitter Facebook

Ads 468x60px

Wednesday, January 16, 2026

How to send data to a bluetooth module from a Linux machine

Hi Guys

    This is a quick tutorial for sending data from a linux pc to a bluetooth module.

I purchased a bluetooth module from sunrom. 

Connect this bluetooth module to an arduino or any interfacing board.
Bluetooth module connected to Arduino

When we power this module, it will start blinking  a red led showing its not connected to any device yet.

On PC side:

Install the following packages


Installing bluetooth packages


Type the following commands

Terminal commands for bluetooth setup


After this command, if everything goes fine the red led will stop blinking and it will always be ON.


Open /dev/rfcomm4 using python-serial module

Python serial code for bluetooth


Done !!

0 comments: