New Bluetooth click board released!

Here you can find latest news on mikroElektronika products.
Post Reply
Author
Message
User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

New Bluetooth click board released!

#1 Post by anikolic » 15 Dec 2011 13:28

New Bluetooth click board released!

We are expanding our collection of mikroBUS-compatible click boards with a new BLUETOOTH click board.

Image

Enrich your device with bluetooth capability with up to 100m range. Board offers low power, highly economic
Bluetooth radio for adding wireless capability to your products. On-board RN-41 module with UART interface
is easy and simple to use. Board is designed to use 3.3V power supply only.

Throw an eye on the board webpage to get more information and browse through photo gallery.

Yours sincerely,
mikroElektronika
Web Department Manager

erij
Posts: 4
Joined: 27 Oct 2016 15:56

Re: New Bluetooth click board released!

#2 Post by erij » 17 Nov 2016 15:44

Hi,
I am working with stm32f407vg, mikroBUS Shield for mikromedia and Bluetooth click running with mikroc prog arm. I already find a program that uses EasyMX PRO v7.
I downloaded the code from this link : http://libstock.mikroe.com/projects/vie ... ck-example
how can I change the program in order to adapt it to my conditions : stm32f407vg, mikroBUS Shield for mikromedia and Bluetooth click ?
Please note that I got the diplay of text on the lcd but the code stop at : BT_Configure();

Best regards,
erij.

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: New Bluetooth click board released!

#3 Post by uros.cvetinovic » 18 Nov 2016 12:46

Hi,

I am not sure if you noticed that at mikromedia for STM32 in combination with mikroBUS shield,
UART pins that are conducted to mikroBUS are PD5 and PD6 (UART2 pins).

So you need to change from UART3 (the one that is in the example) to UART2.
You would initialize it like:
UART2_Init_Advanced(115200, _UART_8_BIT_DATA, _UART_NOPARITY, _UART_ONE_STOPBIT, &_GPIO_MODULE_USART2_PD56);

And use UART2 functions instead of all UART3 functions in the example.

Best regards,

Uros

erij
Posts: 4
Joined: 27 Oct 2016 15:56

Re: New Bluetooth click board released!

#4 Post by erij » 18 Nov 2016 15:43

Hi,
Thank for your help.
I have changed UART like you mentioned and the pairing is now successful with the smartphone.
But the first loop in BT_Configure() is running infinitely.
so the first number 1 of the code 1234 is not accepted.

I want to know also why the function interrupt() is not used in the main? "void interrupt() iv IVT_INT_USART3 ics ICS_AUTO"



// responses to parse
extern const BT_CMD;
extern const BT_AOK;
extern const BT_CONN;
extern const BT_END;
extern char BT_Get_Response();

void BT_Configure() {

do {
UART2_Write_Text("$$$"); // Enter command mode
Delay_ms(500);
} while (BT_Get_Response() != BT_CMD);

do {
UART2_Write_Text("SN,BlueTooth-Click"); // Name of device
UART2_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_AOK);

do {
UART2_Write_Text("SO,Slave"); // Extended status string
UART2_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_AOK);

do {
UART2_Write_Text("SM,0"); // Set mode (0 = slave, 1 = master, 2 = trigger, 3 = auto, 4 = DTR, 5 = ANY)
UART2_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_AOK);

do {
UART2_Write_Text("SA,1"); // Authentication (1 to enable, 0 to disable)
UART2_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_AOK);

do {
UART2_Write_Text("SP,1234"); // Security pin code (mikroe)
UART2_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_AOK);

do {
UART2_Write_Text("---"); // Security pin code (mikroe)
UART2_Write(13); // CR
Delay_ms(500);
} while (BT_Get_Response() != BT_END);
}

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: New Bluetooth click board released!

#5 Post by uros.cvetinovic » 21 Nov 2016 14:20

Hi,

Can you please zip and send your whole project?

Best regards,

Uros

erij
Posts: 4
Joined: 27 Oct 2016 15:56

Re: New Bluetooth click board released!

#6 Post by erij » 21 Nov 2016 23:37

Hi,
You can find attached the zip of the project.
Best regards.
Attachments
bluetoothCom.zip
(27.71 KiB) Downloaded 255 times

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: New Bluetooth click board released!

#7 Post by uros.cvetinovic » 22 Nov 2016 17:45

Hi,

Please check and test this:
http://forum.mikroe.com/viewtopic.php?f ... 40#p276866

My colleague Lana has tested project with same hardware as you are using, and it works.

Best regards,

Uros

Post Reply

Return to “Product Announcements”