cancel
Showing results for 
Search instead for 
Did you mean: 

Bluetooth connection using L476RG and Velleman VMA302 module

charlotteJOUR
Associate

Hi everyone,

I’m currently working on a project using an STM32 Nucleo L476RG and a Velleman VMA302 Bluetooth module (HC-05 type), and I’m trying to send data over Bluetooth to my Mac.

I configured USART1 at 9600 baud in STM32CubeIDE, and my code is continuously sending a simple message like "Hello". The module is powered and appears to be working (LED is blinking, pairing works with my Mac).

On macOS, I can see the Bluetooth device and pair with it successfully. I also see the serial port (e.g. /dev/tty.HC-05-xxxx), but when I try to read data using the terminal command:

screen /dev/tty.HC-05-xxxx 9600

I don’t receive anything.

I’ve already checked:

  1. TX/RX connections (crossed correctly)
  2. Baud rate (9600 on both sides)
  3.  Bluetooth pairing (successful)

What I’m trying to achieve:
Send data from the STM32 to my Mac via Bluetooth and read it as a serial stream.

My questions:

  1. Is there something specific to configure on macOS for Bluetooth serial communication?
  2. Could the issue come from the STM32 configuration or the Bluetooth module settings?

Any help or debugging suggestions would be greatly appreciated!

Thanks in advance :)

1 REPLY 1
Andrew Neil
Super User

The Bluetooth module neither knows nor cares what microcontroller you use.

 

Connecting HC-05/HC-06 Bluetooth Module to X-NUCLEO-53L7A1 with NUCLEO-F401RE - you can read "Mac" wherever it says "PC"

 

PS

See also: tips on Debugging Serial Comms

PPS:

See also: https://www.velleman.eu/support/ for specific support with their product.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.