Go Down

Topic: How to get the JY-MCU bt board to work (Read 96419 times) previous topic - next topic

orangeLearner

Do we have the same board? Mine says JY-MCU BT_BOARD 1.02. If it is the same board then I do not know how to proceed save for searching online.

Scratchy


Do we have the same board? Mine says JY-MCU BT_BOARD 1.02. If it is the same board then I do not know how to proceed save for searching online.

I have same board (JY-MCU BT_BOARD V1.02), but here: http://www.ebay.com/itm/150763254858 says that default baud rate is 9600 and I tried with 38400 and 9600 and it works only with 9600.
But another problem: when I type AT I get OK, but when I type AT+VERSION (or ATVERSION, like You said before) I get nothing.
Maybe You connected State or Key pins on BT board?
Thanks!

himym



Do we have the same board? Mine says JY-MCU BT_BOARD 1.02. If it is the same board then I do not know how to proceed save for searching online.

I have same board (JY-MCU BT_BOARD V1.02), but here: http://www.ebay.com/itm/150763254858 says that default baud rate is 9600 and I tried with 38400 and 9600 and it works only with 9600.
But another problem: when I type AT I get OK, but when I type AT+VERSION (or ATVERSION, like You said before) I get nothing.
Maybe You connected State or Key pins on BT board?
Thanks!

Thats exactly the problem I got to.

Claghorn


when I type AT I get OK, but when I type AT+VERSION (or ATVERSION, like You said before) I get nothing.


Are you really typing keys with your fingers? If this is the same firmware my board has,
that will never work - it uses timing to decide when it has gotten a message, and no one
can type fast enough for long messages to satisfy it. Try using cut & paste into your
terminal app.
http://home.comcast.net/~tomhorsley/hardware/arduino/arduino.html

Scratchy

#19
Jun 26, 2012, 05:21 pm Last Edit: Jun 26, 2012, 06:02 pm by Scratchy Reason: 1


when I type AT I get OK, but when I type AT+VERSION (or ATVERSION, like You said before) I get nothing.


Are you really typing keys with your fingers? If this is the same firmware my board has,
that will never work - it uses timing to decide when it has gotten a message, and no one
can type fast enough for long messages to satisfy it. Try using cut & paste into your
terminal app.


I typing commands via Arduino IDE Serial Monitor, so I think it sends whole command with minimal delay, right?

himym



when I type AT I get OK, but when I type AT+VERSION (or ATVERSION, like You said before) I get nothing.


Are you really typing keys with your fingers? If this is the same firmware my board has,
that will never work - it uses timing to decide when it has gotten a message, and no one
can type fast enough for long messages to satisfy it. Try using cut & paste into your
terminal app.


Cut and paste doesn't work either, that's the thing.

Claghorn

The serial monitor isn't a very good terminal. It may be sending a CR or LF or both at the end, my JY-MCU doesn't like those either. You need something that sends the last 'N' in version then stops sending :-). (Maybe the serial monitor can be set to no line ending? I forget).
http://home.comcast.net/~tomhorsley/hardware/arduino/arduino.html

himym


The serial monitor isn't a very good terminal. It may be sending a CR or LF or both at the end, my JY-MCU doesn't like those either. You need something that sends the last 'N' in version then stops sending :-). (Maybe the serial monitor can be set to no line ending? I forget).

Yes, my serial monitor is set to no line ending.

Scratchy

#23
Jun 27, 2012, 09:58 am Last Edit: Jun 27, 2012, 05:16 pm by Scratchy Reason: 1
Finally I changed baud rate with simple TTL to Serial cable connected to BT module. :)
And finally uploaded sketch via bluetooth: http://arduino.cc/forum/index.php/topic,110532.0.html :)

FreeBee

I have the exact same problem as the people above.

I too have an JY-MCU BT board as found here.

I use the standard SoftwareSerialExample program as found in the Arduino software. I have changed the communication between the JY-MCU and the Arduino to 9600 baud, instead of the 38400 mentioned by orangeLearner.

I then proceed to open up the standard Arduino terminal program, change the baudrate to 57600, and no line ending. I see 'Goodnight moon!'

Then I type 'AT' and press send. An 'OK' returns. All fine and dandy, but other than that AT command, no other AT commands like 'AT+VERSION' work. The module is just sitting there, flashing a red light. My iPhone also can't find any Bluetooth device, no 'Linvor' is showing up.

Can anyone shine a light on this one?

Claghorn


Then I type 'AT' and press send. An 'OK' returns. All fine and dandy, but other than that AT command, no other AT commands like 'AT+VERSION' work. The module is just sitting there, flashing a red light. My iPhone also can't find any Bluetooth device, no 'Linvor' is showing up.

Can anyone shine a light on this one?


Unfortunately yes: iOS won't talk simple serial bluetooth (RFCOMM) without you paying Apple a gazillion dollars and going through something like a Navy Seal training certification process :-). Either that or rooting your iPhone so you can install the stuff described at:

http://code.google.com/p/btstack/
http://home.comcast.net/~tomhorsley/hardware/arduino/arduino.html

FreeBee


Unfortunately yes: iOS won't talk simple serial bluetooth (RFCOMM) without you paying Apple a gazillion dollars and going through something like a Navy Seal training certification process :-). Either that or rooting your iPhone so you can install the stuff described at:

http://code.google.com/p/btstack/



So i'll need another device like an older phone with BT to check wether or not the BT module is broadcasting it's name and/or make connections?

Claghorn


So i'll need another device like an older phone with BT to check wether or not the BT module is broadcasting it's name and/or make connections?


I guess - I don't think iPhones are missing BT, they just refuses to talk RFCOMM because (for some reason) that's the way Apple wants it. My Android phone works fine talking to my JY-MCU modules as does my linux box with a cheap bluetooth dongle plugged into a USB port (mine was sold by D-link).
http://home.comcast.net/~tomhorsley/hardware/arduino/arduino.html

I have the same problem with AT commands, only have AT working, non other. Is the problem in the software serial sketch maby? I don't have a usb to ttl board, only a usb to rs232 so I really need make it work over the arduino, any Ideas?

I've already got yhe propper interface and it's working, somehow the sketch for arduino doesnt do the job.

Go Up