Author Topic: HC05 standalone connected but won't send to terminal (Solved by changing OS)  (Read 1453 times)

0 Members and 1 Guest are viewing this topic.

Offline maoterkTopic starter

  • Newbie
  • Posts: 8
  • Country: at
I have successfully send data to a terminal using the HC05 board but i can't do the same with my circuit that uses the standalone board. The pc recognizes the standalone version i made but nothing turns up in the terminal although i tested with oscilloscope and the TX signal is ok. I have a com configured for the hc05.
The microcontroller controlling it is an stm32 so VCC=3.3. I just realized i use s slightly different version of the board. Does it matter?
Any ideas please?
thanks
« Last Edit: February 24, 2019, 11:19:02 am by maoterk »
 

Offline wrynczuk

  • Newbie
  • Posts: 7
  • Country: pl
Re: HC05 standalone connected but won't send to terminal
« Reply #1 on: February 21, 2019, 08:00:34 pm »
Have you verified the UART baud rate at which your HC05 is operating? You might have done it for your original setup days ago and got used to the new speed.

Orginally HC05 operates at 9600 bps. When switched to the AT command mode it works at 38400 bps. Then using AT commands it can be reconfigured to required speed.
 

Offline maoterkTopic starter

  • Newbie
  • Posts: 8
  • Country: at
Re: HC05 standalone connected but won't send to terminal
« Reply #2 on: February 22, 2019, 10:50:17 am »
It works now, but is taking a lot more time to establish connection compared to the first board i was using. There must be differences in the firmware that is creating these difficulties. I have to delete the hc05 from the pc every time to establish correct connection. That wasn't the case with the first board.

thanks for the help though and beware of these cheap boards that have many different connections from board to board.
 

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4801
  • Country: pm
  • It's important to try new things..
Re: HC05 standalone connected but won't send to terminal
« Reply #3 on: February 22, 2019, 01:50:53 pm »
The HC-05 goes into a "sleep" after 5 seconds of idle ("idle" means you do not send any data out of your MCU or you do not receive any data from air). That lowers the HC-05 current consumption from around 20mA to 2mA.
In order to wake the HC-05 up you have to send a char into the HC-05 via air (from your PC for example).
When in sleep the data from the MCU do not propagate out and the data are lost (you do not see incoming data in your terminal).

Thus to keep the HC-05 always alive you have either send the data out of you MCU within 5secs period, or, send a char out of your PC within 5secs period.
« Last Edit: February 22, 2019, 02:06:16 pm by imo »
 

Offline jackthomson41

  • Regular Contributor
  • *
  • Posts: 53
  • Country: us
Re: HC05 standalone connected but won't send to terminal
« Reply #4 on: February 22, 2019, 02:21:59 pm »
Check HC-05 pinout, I think there's something wrong with the settings coz it's response time is excellent.

If your microcontroller is on 5V then it's better to use a buffer for TX, RX pins i.e. CD4050.

Try using capacitor between Vcc & GND, may be the slow response is because of power.
« Last Edit: March 10, 2021, 01:24:06 am by jackthomson41 »
 

Offline colorado.rob

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: us
Re: HC05 standalone connected but won't send to terminal
« Reply #5 on: February 22, 2019, 07:46:27 pm »
What operating system are you using on the PC?  Microsoft recently broke Bluetooth SPP in Windows 10.  It now only supports SPP 1.2, and the HC-05 is an SPP 1.1 device.
 
The following users thanked this post: oPossum, maoterk

Offline maoterkTopic starter

  • Newbie
  • Posts: 8
  • Country: at
Re: HC05 standalone connected but won't send to terminal
« Reply #6 on: February 22, 2019, 08:18:52 pm »
Yes, i have windows 10. The first board i was using had no issues so there must be a firmware issue.

 

Offline maoterkTopic starter

  • Newbie
  • Posts: 8
  • Country: at
Re: HC05 standalone connected but won't send to terminal
« Reply #7 on: February 22, 2019, 11:31:03 pm »
I still face many connection issues. What could i do to fix this?
Would a bluetooth dongle make any difference?
 

Offline colorado.rob

  • Frequent Contributor
  • **
  • Posts: 419
  • Country: us
Re: HC05 standalone connected but won't send to terminal
« Reply #8 on: February 23, 2019, 08:48:28 pm »
Try another OS.  Does it work with Linux?  Or Android?
 
The following users thanked this post: maoterk

Offline iMo

  • Super Contributor
  • ***
  • Posts: 4801
  • Country: pm
  • It's important to try new things..
Re: HC05 standalone connected but won't send to terminal
« Reply #9 on: February 24, 2019, 10:06:10 am »
Is that picture above your "standalone board"? Is that schematics the one for your module?

Your 100pF cap there is a joke, it has to be at least 10uF tantalum or multilayer ceramic. I've been using 10uF/6V (or 10V) 0805 smd on my breakboards.

Also there is a pin on the HC-05 (pin 34 ??) which needs to be pulled to "low" (GND) via a resistor (ie. 1k) AFAIK, the "high" (3.3V) on it initiates the "AT mode", it could be it is floating on your board and creates the mess. Doublecheck.

Mind you need at least 3cm (1/4 wavelength) conductor/metal free space around the antenna for optimal antenna operation.

I got several HC-05 mounted on my breakboards with below wiring and they all work fine (different baud settings 115k2..1M34, diff access passwords), multiple modules connected to a single PC in parallel operation, under win7 (2 diff PCs).
« Last Edit: February 24, 2019, 11:09:01 am by imo »
 
The following users thanked this post: maoterk

Offline maoterkTopic starter

  • Newbie
  • Posts: 8
  • Country: at
Re: HC05 standalone connected but won't send to terminal
« Reply #10 on: February 24, 2019, 11:18:00 am »
The cap is 100pF for altium. (should stop being lazy)
It works perfectly now, i just changed computers (windows 7 from windows 10).
As colorado.rob said, there is an issue with window 10 and this particular device.
 

Online Buriedcode

  • Super Contributor
  • ***
  • Posts: 1615
  • Country: gb
Re: HC05 standalone connected but won't send to terminal
« Reply #11 on: February 24, 2019, 11:45:07 am »
The cap is 100pF for altium. (should stop being lazy)
It works perfectly now, i just changed computers (windows 7 from windows 10).
As colorado.rob said, there is an issue with window 10 and this particular device.

If you can pair it with your PC but can't get the comm port to open (and therefore, connect to) the bluetooth module:
https://www.eevblog.com/forum/projects/bluetooth-hc-05-csr-4-0-windows-10-no-dice/

It's a bug in windows 10 that can cause problems when trying to open virtual comm ports from bluetooth modules.

edit: just noticed your reply in that thread! sorry, didn't check before I posted :/
« Last Edit: February 24, 2019, 11:49:00 am by Buriedcode »
 
The following users thanked this post: maoterk


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf