Change uart speed of bluetooth

i change my Bluetooth module's uart speed with AT command . But now i dont change uart speed. i did 115200,1,2 speed of uart. But i want to do 9600. Pls help me. i dont acces AT command now (hc06 bu it play like hc05)

No code. Serial or SoftwareSerial? Serial.begin(9600)? SoftwareSerial.begin(9600)?

Serial begin but my problem is not that

Still no code.

I assume English is a second language but the post is completely incoherent.

Irrespective of what you have done, or think you have done, all you need do now is ensure that HC-06 and Arduino are at the same rate.

IF you have succeeded in configuring HC-06 to 115200, use Serial.begin(115200); in Arduino Setup

IF you have succeeded in configuring HC-06 to 115200, and really do not want that, change it back to 9600.

Since you most probably don't know what you have done, you can safely conclude that HC-06 can be only one of two speeds:
9600 (no you didn't do what you thought you did do) or
115200 (yes, you did)
and you can simply change and test Arduino's code by trial and error, which shouldn't be too hard. If its the latter, you might as well leave it that way and write your programmes to suit.

İ did 115200,1,2 . İ didint do 115200,0,0. My problem is how to use bits and event in arduino ide. i try it but...

Please see and deeply understand reply #3

Serial.begin(115200);
None of that other stuff.
If you need more than that, something else is going on that I don't know about. As things are, what you have really done, compared with what you think you have done, is far from clear. This is also clouded by what you really needed to do, which is probably not what you say you did.
Did Bluetooth respond with OK to all this stuff when you configured it?

You also need to be forthcoming with code you used and hardware, and procedure. HC-06 does not "play like an HC-05" in this arena.

#include <SoftwareSerial.h> // Seri Haberleşme kütüphanesini ekledik
SoftwareSerial BTSerial(10, 11); // RX, TX // BT için ayrıca bir Seri Haberleşme pini tanımladık
void setup() {
Serial.begin(9600);
Serial.println("Enter AT commands:");
BTSerial.begin(9600); //BT Seri haberleşmesini 9600 ile başlattık*
}
void loop()
{
if (BTSerial.available())
Serial.write(BTSerial.read());
if (Serial.available())
BTSerial.write(Serial.read());
}

Using AT commands on the HC05/06 requires that it be put into Command Mode (normal/default operation is data mode). The KEY pin on the module must be at logic HIGH during power up to enter Command Mode.

Go to this page for detailed information.

OK.That code is for configuration of an HC-0x, but it's use is no guarantee that you have actually done anything, and I suspect you have not.
Here is an order of battle:

  1. Check out whatever compelling reason there is for changing the baud rate. You probably don't have one and, even if you do, it might pay to put this exercise off until you are more familiar with Bluetooth.

  2. Check that you really have an HC-06. This should show on a phone scan as LINVOR. Also, it has only four pins. If you do have an HC-06, note that it doesn't doesn't play like an HC-05, and you have used the wrong code for changing the baud rate. The correct HC-06 code for 115200 is
    AT+BAUD8

  3. In the light of the above, you might try communicating with HC-06 at 9600. Any success thereat will confirm my suspicion that you haven't actually done anything, and now will be a rather good time to read item 1 again.

  4. If you indeed have an HC-06. LINVOR, four pins, you should ignore reply #9. The HC-06 is in AT mode by default, which goes quite some way to explain the absence of a KEY pin.

Are you understand me??
9600 baund doesnt work. i did 115200,1,2 . i change pity ,even and baud rate. My question is how to use 115200,1,2 to Arduino without Serial_8E2(because i dont write bt.serial(115200,Serial_8E2

No, I haven't the faintest idea of what you are talking about, but I suspect you don't either. I recognise that English is a second language, but the above is just incoherent nonsense. The best I can suggest is that you read reply #10 again, particularly item 2, and Arduino baud hızı ve HC-06 baud hızının aynı olduğundan emin olun.

Serial.begin(115200);

AT+BAUD8

You might possibly find the following background notes useful, but probably not until you have some idea of what you have, and what you want to do - neither of which are clear at the moment.

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

You might also check the wiring is correct, as shown in the notes. It would not surprise me if that is where your problems start.

My Bluetooth uart speed is 115200,1(pity),2(event)

How do you know that?
What instructions did you use to configure it?
and why would you want to use anything other than the default 8,N,1?
Did HC-06 confirm the configuration?
If so what did it say?

If you want to run Arduino at 115200, you just write
Serial.begin(115200);
in setup.