Bluetooth connection using L476RG and Velleman VMA302 module
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:
- TX/RX connections (crossed correctly)
- Baud rate (9600 on both sides)
- 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:
- Is there something specific to configure on macOS for Bluetooth serial communication?
- 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 :)
