barry
New Member
Posts: 3
|
Post by barry on Apr 24, 2019 9:17:53 GMT
Hi,
STM32F411RE & HC-05
My Bluetooth was working with v1.7, but now with v2.0 I cannot connect.
Tera Term commands don't give feedback under either light flashing mode.
I have tried swapping tx and rx without success. I'm using pins CN10 - 12 & 14
Has anything changed between v1.7 and v2.0 ?
|
|
|
Post by LC-DCC Designer on Apr 24, 2019 16:46:00 GMT
There has been no change to this interface between 1.7 and 2.0. Check you are using the latest M4 software and the latest Windows/Android software.
|
|
|
Post by joanne99 on May 3, 2019 19:47:52 GMT
Here's a conundrum. I've now split the 3v and earth feed to power up the INA the ADS1115 and a single potentiometer from the same two pins on the M4. There's no response with the potentiometer when assigned to a locomotive. There's also no read or write taking place in service mode when using the android application though the locos move and obey motor commands. Both the operation mode and service mode are working from the PC (but not the potentiometer). I'm pretty sure all connections are as they should be and the new software correctly installed and programmed using the link utility.
|
|
|
Post by flyingalan on May 3, 2019 21:34:09 GMT
Joanne99 See posts in the STM32103 Bluepill part of this forum. There are some difficulties with getting the Analogue pot to work which the designer is working on. The conversations in that thread may give you some help to see why your pot is not working. Cannot help with your Bluetooth service mode issue, have not used mine yet in service mode. regards Alan
|
|
|
Post by joanne99 on May 3, 2019 23:00:35 GMT
Thanks Alan, that's given me a thing or two to chew over. Could be a problem with pot one then that is being rectified. Seems to me that the service mode over blue tooth is a separate problem.
|
|
|
Post by LC-DCC Designer on May 4, 2019 17:08:56 GMT
I can confirm blue-tooth service mode is working correctly in 2.0. Things to check: INA219 is measuring current (displayed bottom right on display). You have correct track powered A or B. Use the "read maker" button to check connections are ok, it will either return 0,0 for a bad track/loco connection or something sensible if the connection is ok.
I can confirm there is a bug with POT1 which I am fixing at the moment. Also Alan has observed some problems when there is a voltage drop from the 3.3V supply to the POTs.
There will be a release soon to fix the POT issues.
Regards John
|
|
|
Post by joanne99 on May 4, 2019 22:43:25 GMT
Hi John. Service mode works when connected to PC with the windows version. I now have the M4 controller connected to an isolated section of track, on track feed A. I have a Pannier Tank loco on this section of track which moves as expected over bluetooth with the Android app, other locos behave the same. It's coded as CV1=4 but in service mode returns a zero value for both CV7 and for CV1. INA is operational showing around 50mA which of course increases as loco is set in motion, it shows a lower value in service mode about 35mA. I have board powered by a good USB supply and have soldered the wires to the track to ensure a good connection. Version 2 software all round. Any suggestions?
|
|
|
Post by LC-DCC Designer on May 5, 2019 7:44:35 GMT
Do you have a DVM ? Can you measure the AC voltage across the track when you are in service mode.
Regards John
|
|
|
Post by joanne99 on May 5, 2019 18:54:50 GMT
Yep. Now this must be significant. 15.14v AC in operating mode, 0.006V in service mode.
|
|
|
Post by LC-DCC Designer on May 5, 2019 19:40:04 GMT
So service mode defaults to enabling track B not track A, if you want track A powered you need to hold down the "A" button on the service mode screen. When the button is green that track is powered. Is this your problem ? Try changing the powered track and use the DVM to see if the track becomes powered.
Regards John
|
|
|
Post by joanne99 on May 6, 2019 17:27:24 GMT
Ah thanks John, that's sorted the problem. Sorry I didn't spot that!
|
|
johnh
New Member
Posts: 9
|
Post by johnh on May 8, 2019 8:46:26 GMT
There has been no change to this interface between 1.7 and 2.0. Check you are using the latest M4 software and the latest Windows/Android software.
|
|
johnh
New Member
Posts: 9
|
Post by johnh on May 8, 2019 9:01:38 GMT
Hi, I'm having the same problem trying to configure a HC-05 board. I'm running the latest software but cannot get the OK response to the return key on Tera terminal. When I initially connect to the board I do not get The Bluetooth HC-05 Terminal message or the select UART message described in the documentation but I do get select BAUD RATE message and if I input "D" I get Enter HC-05 commands followed by ENTER/RETURN. I can then type in commands but do not get an OK response when I hit return, the cursor just goes to a new line.
Update. I have spotted my error I hadn't moved the rxd and txd from PA11 &. PA12 to PA9 & PA10
|
|
pouya
New Member
Posts: 3
|
Post by pouya on Jul 23, 2021 8:50:27 GMT
Hello Forum,
My question concerns the Bluetooth connection using the STM32F103C8T6 WiFi board. I did following steps:
1- flash STM board with bt_terminal_m3.bin firmware and connect bluetooth module TX/RX to pin A9/A10 (3.3V and GND for last two pins as well) 2- since my bluetooth module is JDY-31, by sending AT+VERSION command i can receive Module Version Ack message on TeraTerm terminal. 3- I reflashed STM32 board with lc_dcc_wifi_m3_9p6.bin then connect wifi and bluetooth module. 4- on my mobile phone bluetooth module has been detected but Lc-dcc application always fails with message "can not connect to controller board" and after that "bluetooth connection fails" version 2.2
I succeed to connect to windows application via WiFi module, I'm wondering if there is a step I forgot before the Android app connects to the controller via bluetooth?
thanks in advance for your help.
|
|
|
Post by LCDCC Designer on Jul 25, 2021 12:12:33 GMT
Did you program the BT interface to use 38400 baud ?
|
|