I have ordered and received a MOD-BT (Uext bluetooth device) to use with my Duinomite Mega from Dontronics. I run the following basic program below and it seems to work but my MOD-BT is not being discovered. I only see the LED on for a second when I plug in me MOD-BT but at no other time does the LED light up. Does the LED of the MOD-BT suppose to light up at any other time other than when being powered up?
QuoteThe following example code sets up the MOD-BT as a serial SPP Bluetooth profile device via a Serial
115200 bps link between DuinoMite and another Bluetooth enabled device e.g. a computer or even a
mobile phone.
10 OPEN "COM3:115200" AS #1
20 PRINT #1, "ATZ": PAUSE 250 'ATZ MOD-BT
30 PRINT #1, "AT+BTAUT=1,0": PAUSE 250 'set auto connect mode
40 PRINT #1, "AT+BTSRV=1" : PAUSE 250 'start SPP service now
41 'other devices can
42 'discover MOD-BT as
43 '"BGB203-1SPP" bluetooth
44 'device and pair with it
50 CLOSE #1 'now MOD-BT make serial
51 'bridge to COM3:
60 OPEN "COM3:115200" AS CONSOLE 'lets use this serial
65 'bridge as console then
After this code is executed you can pair to BGB203-1SPP with any bluetooth device and work with
DuinoMite in console mode.
When I run the above basic code the MOD-BT cannot be discovered by either my lap-top computer using windows7 or Ipad1 which have discovered each other but not my MOD-BT. I did a google search and I found this
https://www.olimex.com/Products/Duino/Duinomite/DUINOMITE-eMEGA/resources/MOD-BT_DUINOMITE_connection_fix.pdf (https://www.olimex.com/Products/Duino/Duinomite/DUINOMITE-eMEGA/resources/MOD-BT_DUINOMITE_connection_fix.pdf)
The MOD_BT PCB is dated 2009 which is three years before the connection fix was discovered on september 2012 which means I may need to do the MOD-BT_DUINOMITE_connection fix.
Anyhow I have followed the connection fix several times by shorting out pin 2 and 7 on the Uext, reconfigure MOD-BT and flash the change to the MOD-BT etc. But still the MOD-BT cannot be discovered.
Anyhow I was hoping that maybe someone on this forum has some experience using a MOD-BT with a Duinomite Mega and have some tips for me.
I am thinking that maybe I received a dud MOD-BT.
Thanks in advance
John Lopez
I have to correct my last message a little bit, but I think I have a stable solution now for the combination of the Duinomite with the BlueTooth UEXT module.
Two Handshake signals of the BT module have influence on the Duinomite pinning on the UEXT connector. It is the CTS on pin 7, but also the DSR on pin 9. With the command "AT+BTURT=115200,8,0,1,0" you can disable those handshake signals, but this does not cure the problem. The BT module is working if DSR and CTS are connected to ground, but then you cannot use the SD card.
If DSR and CTS are connected to the UEXT pins on the Duinomite with an SD card in it, the BlueTooth Console cannot be connected by another BlueTooth device.
I have made some hardware modifications to the BT module. I cut the the connection of pin 7 and pin 9 on the BT module near the UEXT connector and connected the other sides of the wires to ground. So now the CTS and DSR of the BT module are really connected to ground and the SD card signals have no influence on the module anymore. If someone likes to see how it is done, I can send a picture.