Hi, I do not recommend to use BT4502 (too tricky and undocumented), BlueSMiRF is also depreciated now.
Please consider using arduino with integrated Bluetooth
(Arduino Nano BLE or Arduino RP2040Connect).
Programming in the Arduino side is much easier than serial communication.