TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137081 times)
  2. FAT32 Library (70222 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46409 times)
  5. Network WiFi Library (42029 times)
  6. FT800 Library (41375 times)
  7. GSM click (29109 times)
  8. mikroSDK (26555 times)
  9. PID Library (26487 times)
  10. microSD click (25483 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

BLE 8 click

Rating:

5

Author: MIKROE

Last Updated: 2019-07-16

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: BT/BLE

Downloaded: 2769 times

Not followed.

License: MIT license  

BLE 8 Click is fully embedded stand-alone Bluetooth Low Energy connectivity module, equipped with the ANNA-B112, an ultra-small, high-performing, standalone Bluetooth low energy module for easy integration of Bluetooth low energy connectivity (BLE) into various electronic devices.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "BLE 8 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "BLE 8 click" changes.

Do you want to report abuse regarding "BLE 8 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

BLE 8 click

BLE 8 click

Native view of the BLE 8 click board.

View full image
BLE 8 click

BLE 8 click

Front and back view of the BLE 8 click board.

View full image

Library Description

This library allows user to perform a full control of the ANNA-B112 module. With this library user can send a commands to the module to perform the desired module configurations, connection with the other device, data transferring, and also can check the response from the module. User also can check the all necessary information about module. This library consists of the some predefined commands witch can be helpful to user to configure the module. For more details check full documentation.

Key functions:

  • void ble8_uartDriverInit( T_BLE8_P gpioObj, T_BLE8_P uartObj )- This function initializes UART driver.
  • void ble8_response_handler_set( void ( *handler )( uint8_t* ) )- This function sets handler on the function which should be performed, for example function for the results logging.
  • void ble8_uart_isr( void )- This function reads response bytes from the module and sets flag after each received byte.
  • void ble8_send( uint8_t *tx_data, uint8_t term_char )- This function allows user to transmit data and send commands to the module.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes UART serial interface, UART interrupt, and executes a module reset. Allows user to enter command mode.
  • Application Task - (code snippet) - This function has two segments. First segment allows user to enter a commands, module configuration, data which will be transmitted, also to check all module and connection status by using the serial terminal. Press 'Enter' when you want to send the entered command (data). Press 'Backspace' to delete the wrong entered character before you send the command. Press 'Up-Down' or 'Left-Right' to see and enter a 3 last sent commands. Press 'Esc' and then 'r' or 'R' to execute a module reset. Press 'Esc' and then 't' or 'T' to enter command mode. Second segment allows user to check and get response from the ANNA-B112 module when response was ready. Note : The all possible commands, module configuration and specification can be found in the related documents: [1] ANNA-B112 System Integration Manual, document number UBX-18009821 [2] u-blox Short Range AT Commands Manual, document number UBX-14044127 [3] ANNA-B112 Getting Started Guide, document number UBX-18020387 [4] ANNA-B112 Declaration of Conformity, document number UBX-18058993.
void applicationTask()
{
    rx_data = UART_Rdy_Ptr();

    if (rx_data != _RX_NOT_READY)
    {
        rx_data = UART_Rd_Ptr();

        checkRX();
    }
    
    if (start_timer == 1)
    {
        timer_cnt++;
    }

    logRsp();
    
    Delay_us( 1 );
}

Additional Functions :

  • _strcpy - Allows user to copy content of one string to another string, starting from the first place.
  • _strncmp - Allows user to compare a content of two strings.
  • prevCmd - Checks which character (Up, Down, Left, Right, Esc) was entered by the user.
  • checkPrevCmd - Determines which of 3 previous commands will be entered again.
  • addCmdLine - Adds new command line for entering new data/command.
  • enterLocalAddr - Allows user to enter a 12 digits of target local address in hex format from the serial terminal.
  • cmdCmp - Checks did user enter one of the predefined commands, that are defined for this demo example.
  • checkRX - Allows user to enter a desired characters and to send the commands from the serial terminal.
  • getRsp - Catches the response bytes and sets flag when the response was ready.
  • logRsp - Allows user to see and check the response on the serial terminal.
  • interrupt - Calls a uart isr function when new byte was received from the module.

Other mikroE Libraries used in the example:

  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

MCP2003B Click library

3

MCP2003B click is a mikroBUS add-on board with a bi-directional LIN transceiver. The click has three onboard screw terminals for connecting the transceiver to a LIN network (three wires: LIN, VBB and GND). MCP2003B click communicates with the target board MCU through the mikroBUS UART interface (RXD, TXD).

[Learn More]

Gyro 2 click

6

The Gyro 2 click is a three-axis digital angular rate sensor which can sense the angular movement and velocity in three perpendicular axes. The Click board is equipped with the FXAS21002C, a three-axis integrated angular rate gyroscope.

[Learn More]

Color 15 click

0

Color 15 Click is a compact add-on board representing an accurate color sensing solution. This board features the CLS-16D24-44-DF8/TR8, a low power, high sensitivity, color light sensor from Everlight Electronics. This Click boardâ„¢, with an I2C configurable color sensor, senses red, green, blue, white (RGBW), and infrared light and converts them to digital values. The RGBW sensor is designed to reject IR in light sources allowing the device to operate in environments from sunlight to dark rooms. The integrating ADC rejects 50Hz and 60Hz flickers caused by artificial light sources.

[Learn More]