Any questions you have before you begin buying, building and installing.
#68877
Hi All:
Sorry for the newby questions, but I don't know what else to do. When using a USB cable everything seems to work fine, am able to test sensors, connect to speedysim, and use Andrustim. However, and you can probably seen this coming, I cannot get my HC-06 Bluetooth module to stay connected. Both my phone and my laptop find the HC-06 and are able to connect, momentarily. After connecting it almost immediately disconnects and cannot reconnect again until I remove the current configuration and start a new search. What am I doing wrong (see my HC-06 configuration below? Thank you for trying to point me in the right direction. :oops:

I have configured my HC-06 with:
AT+BAUD8 (115200 baud)
AT+PN
AT+NAMEspeeduino (have also tried, HC06, and spduino)
AT+PIN0000
#68879
Two suggestions - only program the BT with the commands in the Wiki here. Be sure the baud rate command is last or the other commands will not be accepted. You may have to send a restore command (AT+ORGL) before you re-program at the slow baud rate.

Second, do not 'search' (Test or Detect) in TS. Open Communications > Settings. Enter the correct BT, port and speed info, and click Accept only.

Note that commands may change if it is not a true HC-06 (BC417). Clones (HC emulators) often use other command sets, which can be aggravating. Check your command list to interrogate after each command to confirm again that it is accepted.
#68880
PSIG wrote: Sun Jul 14, 2024 6:35 am Two suggestions - only program the BT with the commands in the Wiki here. Be sure the baud rate command is last or the other commands will not be accepted. You may have to send a restore command (AT+ORGL) before you re-program at the slow baud rate.

Second, do not 'search' (Test or Detect) in TS. Open Communications > Settings. Enter the correct BT, port and speed info, and click Accept only.

Note that commands may change if it is not a true HC-06 (BC417). Clones (HC emulators) often use other command sets, which can be aggravating. Check your command list to interrogate after each command to confirm again that it is accepted.
Thanks for the reply. I did use the commands as the Wiki page says, with the addition of the AT+PN which is supposed to be the default 'no parity' command.

I change the baud rate of the terminal after I change the baud rate with AT+BAUD8. The allows for testing at the correct baud rate.

I am pretty sure the AT+ORGL command is for the HC-05 and does not work for the HC-06. The commands for the HC-06 is an abridged version than used on the HC-05.

After each command I received the correct response from the HC-06.

The part I am using does have the BC417 chip.

I have tried multiply different methods/devices to connect to the HC-06. My mobile phone and laptop gives the same result where it connects momentarily, but then immediately disconnects. How can TS connect if the device it is running on cannot stay connected to the BT module? The BT port does not show in the TS menu since my laptop won't stay connected.

Thanks again for the reply, but I have done everything you mentioned and I am still having trouble.s
#68881
NP, and we have to start with the simple stuff. And I assume you have no USB or other comm's connected? Any BT/USB/serial switches or jumpers (Load•Run or similar) on the board in proper position? HC-06 communicates wireless BT with IDE or serial terminal? Can the bare HC respond two-way on BT to your phone or other device (not just acknowledge existence)?

The BT works the same for any Arduino project, but steps up a level with TS. HC-06 BC417 has worked fine for me and many others, but I have not used all code variants. TS is working fine on most recent update AFAIK (only one module tested). There have been a few BT issues in recent months, but developers need to know where to look and clues to use. Which Speeduino code are you running, on what PCB, which TS version, and which Mega board (maker), using which UART chip?
#68882
Hi PSIG. I really appreciate the help.

I have no other USB connected to the Speeduino. I am only powering the board with a 12 VDC transformer.

I am not sure, but I am not aware of any "BT/USB/serial switches or jumpers" on the Speeduino. Are there jumpers related to board communications on version 0.4.3d? If so, what are the designators (Jx, JPx)?

I have not been able to do any communications with the HC-06 since both my phone and laptop only connect momentarily before the BT disconnects.

As far as the other details with my board, I will need to check the version numbers of everything and reply to this thread later. Sorry I don't have those right now.

Thanks.
#68885
Firmware version 202402.1 using SpeedyLoader.AppImage version 1.6.0.

The ArduinoMega2560 is from Elegoo, but no version on the board. When I "Get Board Info" from the Arduino environment (version 1.8.19) the returned information is:

BN: Arduino Mega or Mega 2560
VID: 2341
PID: 0042
SN: 2433331393035161F120

When I start TunerStudio using the Linux command ./TunerStudio.sh in the directory where the TunerStudio files are located (~/Downloads/TunerStudioMS). The gzip file I downloaded for TunerStudio is TunerStudioMS_v3.2.03.tar.gz.

Hopefully this gives you some insight to my working environment. Please let me know if there is anything else you need. Thanks again for the help.
#68895
I did some more experimenting, but this time used an Arduino Mega2560 from Arduino. Couldn't get HC-06 bluetooth to work using that board either. I also tried Speeduino versions 202402, 202310, and 202207. The results were the same, phone and laptop are able to momentarily connect to the HC-06, but then they disconnect. Not sure what else to try. I did order a HC-05 module and will try that when I receive it. Let me know if there is anything else you think I should try/test.
#68899
carjunky62 wrote: Tue Jul 16, 2024 2:03 am I did some more experimenting, but this time used an Arduino Mega2560 from Arduino. Couldn't get HC-06 bluetooth to work using that board either. I also tried Speeduino versions 202402, 202310, and 202207. The results were the same, phone and laptop are able to momentarily connect to the HC-06, but then they disconnect. Not sure what else to try. I did order a HC-05 module and will try that when I receive it. Let me know if there is anything else you think I should try/test.
Hi there, this is unfortunate! Before building my own board I've tried HC-05 both the 2 chips and one chip version and both worked fine on any Os used! I just dropped it in 5v and GND connected TX to RX and RX to Tx respectively to a cheap Chinese Arduino Mega clone , searched for new device, and voila! Works with Tuner Studio flawlessly! As you can see on the photo (can't send video) the connected light from the HC-05 is on, no resistor for its RX because it is 5 V tolerant! To my knowledge though the HC-06 seems to be half duplexe communication where the 05 is full duplex! You should try a HC-05
#68926
La Team Prep wrote: Tue Jul 16, 2024 10:35 am… As you can see on the photo (can't send video) the connected light from the HC-05 is on, …
Hmm. Where did you get that one? That is a BC417, but only 4 pins and no AT Mode reset button. I have HC-06 like that photo, but have not seen an HC-05 like that, as they usually have 5 or 6 pins and the missing button. Are you sure the photo is HC-05, and how did you get it into AT mode with no reset, and no State pin to program the correct baud to talk with TunerStudio? Perhaps this could be a plug 'n play option for Speeduino users?

Also, I think there is a different issue the OP is having, as I have tried several types of HC-06, including the one he has, and all have connected without fail. This is why I am asking him for info, in order to either diagnose the trouble, or find hardware combinations that are not usable for other users here to avoid.
#68945
PSIG wrote: Wed Jul 17, 2024 3:22 am
La Team Prep wrote: Tue Jul 16, 2024 10:35 am… As you can see on the photo (can't send video) the connected light from the HC-05 is on, …
Hmm. Where did you get that one? That is a BC417, but only 4 pins and no AT Mode reset button. I have HC-06 like that photo, but have not seen an HC-05 like that, as they usually have 5 or 6 pins and the missing button. Are you sure the photo is HC-05, and how did you get it into AT mode with no reset, and no State pin to program the correct baud to talk with TunerStudio? Perhaps this could be a plug 'n play option for Speeduino users?

Also, I think there is a different issue the OP is having, as I have tried several types of HC-06, including the one he has, and all have connected without fail. This is why I am asking him for info, in order to either diagnose the trouble, or find hardware combinations that are not usable for other users here to avoid.
You are right It has many name indeed, I use a simple USB to serial adapter for configuration with AT commands, baud rate, name, pin etc before I plugged it in, so no state pin what so ever needed, just plug n Play as you said!
All of them available on Amazon, in red is the adapter I use!
This is why in my "Stage X" design I only use the daughter board directly on my PCB, you can have a look viewtopic.php?p=68900#p68900.

Hope it helps!
93 Ford ranger 4.6l swap

All the unconnected bits are ground wires. I just […]

Hi All, I have just finished replaci[…]

Exactly what stops working? Do logs show 'normal'[…]

There ya go. 8-) The requirement to force minim[…]

Still can't find what you're looking for?