New Bluetooth click board released!
We are expanding our collection of mikroBUS-compatible click boards with a new BLUETOOTH click board.
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
New Bluetooth click board released!
New Bluetooth click board released!
Web Department Manager
Re: New Bluetooth click board released!
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.
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.
- uros.cvetinovic
- mikroElektronika team
- Posts: 803
- Joined: 14 Dec 2015 09:24
Re: New Bluetooth click board released!
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
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
Re: New Bluetooth click board released!
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);
}
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);
}
- uros.cvetinovic
- mikroElektronika team
- Posts: 803
- Joined: 14 Dec 2015 09:24
Re: New Bluetooth click board released!
Hi,
Can you please zip and send your whole project?
Best regards,
Uros
Can you please zip and send your whole project?
Best regards,
Uros
Re: New Bluetooth click board released!
Hi,
You can find attached the zip of the project.
Best regards.
You can find attached the zip of the project.
Best regards.
- Attachments
-
- bluetoothCom.zip
- (27.71 KiB) Downloaded 267 times
- uros.cvetinovic
- mikroElektronika team
- Posts: 803
- Joined: 14 Dec 2015 09:24
Re: New Bluetooth click board released!
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
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