0
Offline
Full Member
Karma: 2
Posts: 120
Arduino rocks
|
 |
« Reply #15 on: June 25, 2012, 04:48:29 pm » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #16 on: June 26, 2012, 07:15:59 am » |
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
Jr. Member
Karma: 0
Posts: 50
|
 |
« Reply #17 on: June 26, 2012, 09:00:16 am » |
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
Full Member
Karma: 0
Posts: 113
|
 |
« Reply #18 on: June 26, 2012, 10:07:39 am » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #19 on: June 26, 2012, 10:21:52 am » |
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
Jr. Member
Karma: 0
Posts: 50
|
 |
« Reply #20 on: June 26, 2012, 11:12:50 am » |
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
Full Member
Karma: 0
Posts: 113
|
 |
« Reply #21 on: June 26, 2012, 12:04:32 pm » |
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
Jr. Member
Karma: 0
Posts: 50
|
 |
« Reply #22 on: June 26, 2012, 12:46:21 pm » |
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
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #23 on: June 27, 2012, 02:58:01 am » |
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 
|
|
|
|
« Last Edit: June 27, 2012, 10:16:31 am by Scratchy »
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #24 on: July 04, 2012, 05:00:55 pm » |
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
Full Member
Karma: 0
Posts: 113
|
 |
« Reply #25 on: July 04, 2012, 08:16:33 pm » |
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
Newbie
Karma: 0
Posts: 3
|
 |
« Reply #26 on: July 05, 2012, 07:46:03 am » |
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
Full Member
Karma: 0
Posts: 113
|
 |
« Reply #27 on: July 05, 2012, 08:39:11 am » |
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
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #28 on: July 05, 2012, 05:57:02 pm » |
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
Newbie
Karma: 0
Posts: 16
|
 |
« Reply #29 on: July 05, 2012, 08:57:57 pm » |
I've already got yhe propper interface and it's working, somehow the sketch for arduino doesnt do the job.
|
|
|
|
|
Logged
|
|
|
|
|
|