Go Down

Topic: ITEAD BT Shield command problems and questions (Read 5059 times) previous topic - next topic

xInfix

Jul 23, 2013, 02:18 pm Last Edit: Jul 23, 2013, 02:28 pm by xInfix Reason: 1
I bought the ITEAD BT Shield (Master Slave) http://imall.iteadstudio.com/development-platform/arduino/shields/im120417010.html . I can't seem to be able to send AT commands to it. I have the switch to CMD, D0-RX, D1-TX and am using AccessPort on my windows PC.
When I set up the connection(COM5, 38400) and I send a command(AT+VERSION?\r\n) nothing happens. They say that I need to solder a 1uF capacitor between PIN34 on the module and the reset arduino pin but I don't have one. I trued using a 10uF one but it didn't work. Do I need a correct cap or something else(or both:D).ftp://imall.iteadstudio.com/IM120417010_BT_Shield_v2.2/DS_IM120417010_BTShield.pdf
http://blog.iteadstudio.com/upload-program-to-arduino-with-bt-shield/

pylon

If you want to use the PC to directly send commands to the BT module, you have to swap the RX/TX lines.

xInfix

So do D0-tx and D1-RX? Tried with and without the cap. No result, sadly.

pylon

So you have the jumpers as in figure 4 on page 3 of the manual? I don't know what exactly you mean by the D0-TX description.

You don't need the capacitor, that's only necessary if you want to upload sketches using the Bluetooth connection but you're on a much earlier state, you want to the module to accept a command.

Did you read the section in the manual that defines that you have to power-switch the module when you changed the CMD switch?

xInfix

Yes. The jumpers are as in figure 4 and the switch is on the CMD side when I power it on and try to send the commands.

pylon

Have you tried a baudrate of 9600? In some documents this baudrate is described as the default after a factory reset.

BTW: what type of Arduino are you using?

xInfix

Arduino UNO Rev.3. A baudrate of 9600 didn't work :(. This is what happens http://www.youtube.com/watch?v=zW_0AZRsHWA .
Video is not mine.

pylon

On that video is an Iteaduino BT and not an Itead BT shield. To find information about the Iteaduino BT, you can have a look at my page about it:

http://www.linotux.ch/arduino/iteaduino_bt.html

If you're using the BT shield, what sketch is running on the Arduino? Is it possible that the Arduino is writing some data to the serial interface?

xInfix

#8
Jul 23, 2013, 07:12 pm Last Edit: Jul 23, 2013, 07:21 pm by xInfix Reason: 1
The video is not using the shield but the results the person is getting are the same as mine. I am using a shield and have uploaded the Blink program to the arduino.

pylon

But the guy in the video has the problem described on my page (wrong jumper settings). You might have to experiment a little bit with different jumper settings and different baud rates (that's what I had success with).

xInfix

Nothing works. This is so frustrating.Everything is as the datasheet and as other sites say. I tried other combinations, tried sending AT, AT\r\n, at, AT+VERSION?\r\n and none of them work. The LED is blinking correctly, when in DAT mode I can find it with my bluetooth from my PC. But sending AT commands seems to be impossible. Please tell me I'm doing something wrong. =( =( =(

pylon

If you see it in DAT mode, have you tried connecting to it? Does that work?

Have you tried with different jumper settings and different baudrates? If yes, which ones did you try? I don't own the shield but I have the Iteaduino BT and as you might have read on my page, the manual was wrong about jumper positions.

xInfix

I can connect to it using my PC's bluetooth but I don't know how to send commands and read them out(I probably need software on the arduino). I have tried connecting D0 to RX and D1 to TX. I have also tried connecting D0 to TX and D1 to RX. Always in CMD mode. I have tried 38400bps, 9600, 115200 and 25600. All using Parity bit: NONE; Data bit: 0; Stop bit: 1; Buffer size 8192.

pylon

According to the schematics D0->RX and D1->TX together with 38400 baud, 8 data bits, 1 stop bit, no parity should work. The datasheet states clearly that the state of the CMD switch is read only at power on (not reset). So after changing the state of that switch you have to cut power and repower it to make the change effective. If that doesn't work, I'm out of ideas.

xInfix

#14
Jul 25, 2013, 11:41 am Last Edit: Jul 25, 2013, 11:51 am by xInfix Reason: 1
Update! Downloaded TerraTerm and set COM5(from device manager) to use the settings from the manual. From TerraTerm when I connect and press Enter I get ERROR: (0) a billion times. I guess this is good but I have no idea how to write an actual command.

EDIT: Got it working!!! I just typed AT in the window and entered it! Got OK. Thank you for your help and for keeping me going.
http://www.mathias-wilhelm.de/arduino/shields/bluetooth-shield/?PHPSESSID=iuu4b974luemd815eh21dmbma2

Go Up