HC-05 comm port is laggy

Hi forum members,

I have added the HC-05 to my project.
Simply adding the device to 5v, GND and tx/Rx

The device when paired added 2 comm ports to my PC and I have successfully able to wirelessly transmit data from my program to the Arduino board.

My issue is the comm port when in use slows my app to a crawl, whereas the comm port that shows up when Arduino USB is plugged in works fine. The app just simply slows down which I never seen before.

I have tried adjusting port configuration in device manager, speed, and buffers other settings to.

It seems the Bluetooth commport appears to be very heavy is some way.

Has anyone experienced similar issues? Would the HM-10 perform better.

Curious about this one!

An HM-10 is more likely to compound your problem than fix it. I think this is all to do with the Bluetooth installation on th PC.

That could be simply wrong for common Arduinos like the Uno/Nano.
The RX/TX pins of an Uno are already used by the USB<>Serial chip.
Connecting the BT module with SoftwareSerial to two different pins is preferred,
as is a 1k:2k voltage divider on the RX pin (the BT module is using 3.3volt logic).

More info needed.
Please post a diagram and code according to the forum guidelines.
Leo..

Please accept my apologies regarding code but it is a licenced code.

I am unable to share it in its whole.

The code is not suppose to be used wirelessly and am trying to figure out on my own.

Is there a way to tell if it's because the sharing of tx/Rx
I have disconnected tx /Rx pins and the commport is still performing slow.

I might look at reinstalling Bluetooth or maybe running on another machine as a test.

Any clues to code changes required if setting up software serial?

Then please post an MRE, Minimal Reproducible Example.

I doubt it has anything to do with the Rx Tx pins, or anything else to do with Arduino. You might start proving that by connecting with a laptop that has Bluetooth built in, or a phone. I say that because I am betting that the PC has an aftermarket Bluetooth installation, which you might like to confirm.

I am going to try.

The platform is an and ryzen ITX motherboard with built-in Intel wifi and Intel Bluetooth.

I will as suggested try another PC.

I tried on another computer and same issue.

That is a relative term. Do you mean on the motherboard, or merely plugged into it. The latter does not qualify as "built in" for this matter any more than plugging in a cheapo USB dongle, and you may be simply moving the problem rather than fixing it - hence my previous about a laptop. How about Android?

The program that communicates to Arduino is PC based.

Amd itx mobo is a AX210 Intel card plugged directly into the M.2 NGFF slot on the board, looks similar to where SSD m.2 plug in but is same as the slots laptops use for their wifi card

My laptop is a 8750H 1060 GPU with a AC9560, this is also an Intel card.

The program exhibits the exact same thing the program slows down when communicating through the Bluetooth commport.

If I select the commport that the Arduino USB plugs in, the issue is not occuring.

It's possible it's the Bluetooth card.
I didn't do any setup changes for the code except the baud rate changes and all that does is give me more accurate control over servos.

Not sure to be honest.

I might look at grabbing a different board. This might be a knock off cheap version of the HC-05

I will continue to see if there is alternative ways to wire it into the project. Otherwise might be worthwhile to see if there is any more powerful Bluetooth cards.

I read the HC-05 is only Bluetooth V2 and V4 alternative might be avil.
I know V2 is like 2-3mbps where
V4 would be heaps higher.
Might be related

I'm not sure about any of that, but you might find something on the Martyn Currey website. You haven't mentioned a need for low energy, or greater range, so I doubt there is any advantage in moving to BLE, although a exception to that is that maybe the PC module isn't too good at running in "classic" mode. In that event, please studiously ignore my post #2.....

I think this is the Bluetooth device alone.

Interestingly as a test I removed tx and Rx pins and just power the Bluetooth.
The PC connects. My app sees comm5 and instantly slow.. without transmitting info to and from the Arduino.
No code nothing.. the commport slows my application

I will see if there is anything I can do to just change the way the hc-05 works.
Maybe it's a speed thing not sure

I have resolved the main issue, I needed to go into AT Mode which was really difficult, I think this is a Clone Board or something, I have changed the baud rate to 115200, YAY

The program on my PC must of not liked the Bluetooth device link at 9600/38400 or whatever the default is.

Either way I will also continue to experiment with that RF boards I ordered to see what ends up happening.

Absolutely STOKED!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.