Ok so, I have arduino connected to an HC-05 bluetooth module which I use to program the arduino wirelessly at a rate of 56700bps.
The only thing that I cant understand is the following..
My bluetooth setting are changed to a default 57600bps.
I have a code that receives a byte: W A S D, on an aopen serial Port at 56700.
So far so good.
When I open serial monitor i choose the baud rate 57600 and I get an error that I cant connect to the COM Port.
But if I choose 9600 it works like a charm...
But why ? Shouldnt it be working at 57600 ?
Is the connection between PC - HC-05 9600 and then the other one between arduino and HC 57600 ? How do I change the connection PC to HC from 9600 to 57600 ???
Presuming you mean the regular Arduino IDE serial monitor connecting to an Arduino through usb; the serial monitor is a separate connection and has a separate baud rate. The baud rate is set when you open the connection.
Serial.begin(9600); // Start serial communication at 9600bps.
I am using arduino IDE Serial monitor.
I connect via COM Port ( not by USB, By Bluetooth)
My PC has bluetooth and arduino has a bluetooth.
The bluetooth on the arduino is conected to tx rx.
PC --->COM port ---> Bluetooth ............Air........Air............ Bluetooth --->tx rx---- arduino
So when my PC bluetooth connects to arduino bluetooth its like pluging an USB cable.
arduino bluetooth is programmed at 57600 so I can upload sketches wireless, 57600 is the baudrate required by the arduino mini pro bootloader.
In my arduino programs I open a Serial Port with Serial.begin(57600) and I read and write bluetooth data that I send via my computer at that rate.
The only thing I dont get is when I open arduino serial monitor, I can only send that at 9600...
I need someone to explain me that.. I don't get it, and when I do get it I would like to change it to make it faster.
Maybe the connection between bluetooths is 9600 ?
and 57600 is the speed between the arduino tx rx and the arduino bluetooth hc-05 tx rx, am I right ?
It does seem strange if you can use the IDE with the regular unmodified boards.txt setting to communicate with the Pro Mini at 57600, and uploading works but communicating with a sketch using Serial Monitor at 57600 does not work.
Do I understand correctly you have another HC-05 programmed for 9600 baud connected to your computer with a USB-to-serial adapter or a native serial port, and you paired that with the HC-05 connected to the Arduino?
If the Arduino side BT module is set to 57600 then that is what you should need to use when opening the serial communication. If you are able to, I would confirm the baud rate the module is using, just to be sure. And if you have a second module at the PC side check that one as well.
The baud rates do not need to be the same. You could have PC --->COM port ---> Bluetooth at 9600, and Bluetooth --->tx rx---- Arduino at 57600.
The wireless speed between the 2 Bluetooth modules is automatic and depends on things like the version of Bluetooth and how noisy the environment is.
There is no baud rate between the computer's built-in Bluetooth and the HC-05, the wireless protocol determines speed based on protocol version and wireless conditions as MartynC describes. So if your baud rate settings on the PC impact the connection, it is because the way your built-in Bluetooth adapter is connected to your computer internally. You would have to explore and research whether that setting in your computer is flexible or just pre-set at 9600. I have a Mac and its built-in Bluetooth does not seem to be depending on a baud rate or affected by a baud rate setting. Time to upgrade to a Mac! Just kidding, but now that I think about it you may also try setting up a dual boot for your PC and run Linux on it, and see if you notice something different about the Bluetooth. It could be a hardware limitation, or a limitation with the Windows driver for the Bluetooth port. Or if 9600 works like a charm, just leave it alone. This is a more complex subject matter than a wired plain USB-to-serial adapter.
I've just checked on my Win8.1 laptop with built in Bluetooth. Cannot find anyway to specify a baud rate between windows the the BT module. I don't have anything to connect to with me though and the settings may not be available without a connection. Google hasn't helped either.
Just tried on my home PC that has a Bluetooth dongle. Same, no options to select the baud rate.
In VB though, when opening a connection you can select the baud rate to use so I presume there has to be a setting somewhere.