Pages: 1 [2] 3 4 ... 6   Go Down
Author Topic: How to get the JY-MCU bt board to work  (Read 78459 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Full Member
***
Karma: 2
Posts: 125
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Delray Beach, FL USA
Offline Offline
Full Member
***
Karma: 0
Posts: 113
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
« Last Edit: June 26, 2012, 11:02:26 am by Scratchy » Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Delray Beach, FL USA
Offline Offline
Full Member
***
Karma: 0
Posts: 113
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged


Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Finally I changed baud rate with simple TTL to Serial cable connected to BT module. smiley
And finally uploaded sketch via bluetooth: http://arduino.cc/forum/index.php/topic,110532.0.html smiley
« Last Edit: June 27, 2012, 10:16:31 am by Scratchy » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Delray Beach, FL USA
Offline Offline
Full Member
***
Karma: 0
Posts: 113
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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/
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Delray Beach, FL USA
Offline Offline
Full Member
***
Karma: 0
Posts: 113
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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).
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: 1 [2] 3 4 ... 6   Go Up
Jump to: