Terdy56
Posts: 7
Joined: Mon Apr 30, 2018 7:41 am

Communicate BLE module with Inbuilt Bluetooth in Raspberry Pi

Fri Aug 17, 2018 11:14 am

Hi, as raspberry pi 3 model b has already inbuilt Bluetooth device available and I am using an accelerometer sensor which is connected with BLE module via I2C connection and given specified power also,
But I am trying to connect BLE module through inbuilt Bluetooth of raspberry pi but not able to find,
I think there is something wrong I am doing and if anyone worked out on this module please give your expert advice to make it possible.
The main motive is to receive the accelerometer reading wirelessly using BLE module as the transmitter.

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Communicate BLE module with Inbuilt Bluetooth in Raspberry Pi

Fri Aug 17, 2018 9:29 pm

You didn't happen to mention the programming language you would like to use, which makes it difficult to provide a useful response. I've used Ian Harvey's bluepy Python library to communicate with a BLE device. I've heard good things about Sandeep Mistry's modules for node.js. There's some sample C code in the BlueZ github.

Terdy56
Posts: 7
Joined: Mon Apr 30, 2018 7:41 am

Re: Communicate BLE module with Inbuilt Bluetooth in Raspberry Pi

Mon Aug 20, 2018 11:47 am

Hello, The programming language I wish to use is python only to communicate this kind of BLE module with Raspberry Pi Bluetooth I was going through BLuez but the main suggestion I need to know :
- To receive the data from the sensor to the BLE module using an I2C connection
- Send the data wirelessly to Raspberry Pi using the Bluetooth connection.

Or you can say I need to make wireless sensor network using BLE module to communicate wireless with inbuilt Bluetooth available in Raspberry pi 3 model B.

User avatar
Douglas6
Posts: 4860
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: Communicate BLE module with Inbuilt Bluetooth in Raspberry Pi

Tue Aug 21, 2018 12:48 am

Ok, that's pretty much everything.

1: Connecting a sensor to a BLE module via I2C. You've given no information regarding the sensor or the BLE module. I won't speculate. You'll need a microcontroller of some sort to provide I2C; whether or not that exists on your BLE module is anybody's guess. Can't help.

2: Communicating with a Pi via BLE. Using Python, I recommend PyBluez. You'll need some knowledge of BLE, as well as detailed information of the BLE device, and how it is communicating. It's not something that can be communicated in a single post. Can't help.

If you have specific questions, I'll try to answer them. "I want to use BLE to connect a sensor to the Pi" is just too vague.

Return to “General discussion”