HC-05 bluetooth module and RTS pin

Hi,

I am trying to manually set and reset the RTS pin on an HC-05 Bluetooth module. The module connects to my laptop without a problem and shows up as a serial com port. Using a c++ program on the laptop I open the com port and connect to the module without a problem and I can send and receive data. However, when I change the RTS state of the module using c++ program, nothing happens. RTS is always low level. I've tried multiple Bluetooth modules with the same result.

To verify that the C++ program can change the RTS pin and is working correctly I used the same program to open a USB-to-Serial com port. It works perfectly and the rts pin is toggled.

Can anyone help with the problem?

Best wishes

hossein1234:
I am trying to manually set and reset the RTS pin on an HC-05 Bluetooth module.

Why do you want to do this?
What code are you using to do this?
What is the wiring layout that you are using to do this?

Nick_Pyner:
Why do you want to do this?
What code are you using to do this?
What is the wiring layout that you are using to do this?

I use the rts pin to differentiate between command and data packets coming from the PC. I’m using c++ code.

Wiring layout is attached.

hossein1234:
I use the rts pin to differentiate between command and data packets coming from the PC. I'

Is that "use", or "trying to use"? I assume that, by command packets, you mean AT mode configuration commands. As I understand it you can only configure HC-05 by cable after you have put it in AT mode, i.e. you cannot have it in AT made and communications mode at the same time.