Hello Everyone,
I’m nearing the final stages of a project and I can’t seem to find anything on Google to solve the latest problem. I have a bluesmirf connected to an STM32 parsing some sensor data packets. The STM32 sends one byte at a time and on my PC I can confirm that the data being sent via bluetooth is correct by viewing the bytes with Hterm and comparing those bytes to the data on the STM32. Now my application is Linux based (due to some quirks with Windows, go figure…). In C++ using Bluez with an rfcomm socket I can connect and receive data no problem, but the data is garbled… almost looks as if the bytes are shifted but I can’t confirm that. My thought is that the baudrate on the Linux side is too fast (i’m only sending data from the STM32 at a baud of 9600). Can anyone tell me how to change that rate? I’m assuming it would be something to put in the rfcomm.config file…
I’ll keep looking on Google but I figured I might get someone here who did something similar before.
Thanks and happy hacking!