Page 1 of 1

EB024 bluetooth Issue?

Posted: Tue Aug 27, 2013 11:12 am
by kmanng21
I'm using both flowcode V4.0 and V5.2-V5.4 for PIC micro, I download example 1 on home page and download to my EB006 16F877A
the program idea: send string "Start up:" to LCD -> send script 1 to PC -> send string "done" to LCD -> wait for string send from my computer and display on LCD
script 1 from example:
ATS0=1
ATS536=1
ATS512=4
AT+BTK="1234"
AT&W
ATZ

In flowcode V4, it's OK, very fast and smooth, I use "Hercules Setup utility" to manage COM port, and it receive+show all script 1 and I can send string from PC to my LCD very good
In flowcode v5, it's stucked when send script 1, Hercules Setup utility only receive ATS0=1 and my LCD only show "Start up:" and i wait for 5 minutes but it didn't send lines from script 1 to my PC like V4.
Please help me! thank you very much, sorry for my bad english

Re: EB024 bluetooth Issue?

Posted: Fri Aug 30, 2013 11:12 pm
by Spanish_dude
Is there any difference between your v4 code and v5 ?
Could you post both of them on the forum so we can have a look ?

- Nicolas

Re: EB024 bluetooth Issue?

Posted: Sat Aug 31, 2013 3:05 am
by kmanng21
Dear Niclolas,
Here is a page for an e-block EB024:
http://www.matrixmultimedia.com/product ... PHPSESSID=
I downloaded this file
EB024 - Bluetooth Board - Examples Flowcode v4
I opened file: BT_EX1_Node_A-fc4.fcf by flowcode V4 and downloaded to my 16F877A, I connected my laptop to eb024 successfully and I can send text to eblock-LCD
when my 16F877A+EB024 start or reset, it send all words of script 1 to my laptop( I saw it by "Terminal V1.9b")

after that I used flowcode V5 to open+download program to that 16F877A, i connected my laptop to eb024 successfully but the program stuck at LCD only show "start up" and I wait for 10 minute, it only send "ATS0=1" to my laptop
thanks again!!!

Re: EB024 bluetooth Issue?

Posted: Mon Sep 02, 2013 9:14 am
by Benj
Hello,

Please can you update your v5 to version 5.5 and see if that helps with the issue at all.

If not then I will investigate the problem for you.

Re: EB024 bluetooth Issue?

Posted: Tue Sep 03, 2013 3:31 am
by kmanng21
Hello Benj,
I updated my flowcode V5 to version v5.5.2.1 (30.1.2013) but nothing change.
I installed flowcode v5 on both Win XP and Win 7
Thank Benj very much.

Re: EB024 bluetooth Issue?

Posted: Tue Sep 03, 2013 9:52 am
by Benj
Hello,

I have made a minor modification to the Bluetooth code behind the scenes in the attached file. Please can you have a quick go using v5.5 and see if it helps the problem. If it does then I will roll out the mod to the component C file so the mod will be loaded into any project that uses Bluetooth.
BT_EX1_Node_A-fc5mod.fcf
(19.36 KiB) Downloaded 416 times

Re: EB024 bluetooth Issue?

Posted: Tue Oct 15, 2013 7:18 pm
by lavrukhin
Hello, Benj!

I've got the same trouble with EB-024. Your modification doesn't correct the problem in FC 5.5
Could you help with any other solution?

If I don't use a script it works perfectly. I use Create command and Send command macro and the example works.
But I can't understand how to use these macro with AT+BTK="1234" command. I can't create this command because I need to use quote sign (") four times in Create command macro attributes. So I'd like to use script with EB-024 e-block.

Re: EB024 bluetooth Issue?

Posted: Wed Oct 16, 2013 11:58 am
by Benj
Hello,

You can add the quote to a string using this syntax.

"AT+BTK=\"1234\""

I'll have a look at the script code compared to the command code and see if I can spot what's going wrong.

Re: EB024 bluetooth Issue?

Posted: Sat Oct 19, 2013 7:50 am
by sundgau
Hello,

I have the same problem. It's OK without script...
I look forward to the feedback...this still does not work with the solution: "AT + BTK = \" 1234 \ ""
My version is not Free edition

Bruno

Re: EB024 bluetooth Issue?

Posted: Tue May 27, 2014 3:00 pm
by MOMO
Hello,
I use the EB024 for Bluetooth communication.
My program worked fine under Flowcode 4. Since I use Flowcode V5.5 it does not work because the program stuck in the macro "sendscript".
Do you have the solution to debug this problem?
Regards,
Momo

Re: EB024 bluetooth Issue?

Posted: Tue May 27, 2014 3:39 pm
by LeighM
Hi

If you are using sendscript, try this in the script, and ensure it has a carriage return (Ctrl+Enter) at the end

Code: Select all

AT+BTK="1234"

Regards,
Leigh

Re: EB024 bluetooth Issue?

Posted: Wed May 28, 2014 11:17 am
by MOMO
Thank you for your reply, here is my script and I've done a carriage return (Ctrl + Enter) at the end.
ATS0=1
ATS512=4
AT+BTK="1234"
AT&W
ATZ
When I look in a hyperterminal there is only the first line of the script is sent!
Momo

Re: EB024 bluetooth Issue?

Posted: Wed May 28, 2014 1:32 pm
by LeighM
Is there any reply from the Bluetooth device?

If you have connected hyper terminal in place of the Bluetooth, what happens if you reply: OK<return>

Re: EB024 bluetooth Issue?

Posted: Wed May 28, 2014 1:50 pm
by MOMO
Hello,
I finally arrived to set up the bluetooth module sending the AT command as the "senscript" function does not work under FLOWCODE 5.5.
I get to communicate with the module, against when I use the command "STRINGRECEIVE" to know the length of the character string it returns me random values.
Do you have a solution?
sincerely,
Momo