TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136950 times)
  2. FAT32 Library (70063 times)
  3. Network Ethernet Library (56015 times)
  4. USB Device Library (46333 times)
  5. Network WiFi Library (41953 times)
  6. FT800 Library (41264 times)
  7. GSM click (29050 times)
  8. mikroSDK (26473 times)
  9. PID Library (26445 times)
  10. microSD click (25408 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: 2743 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

RTC 12 click

0

RTC 12 Click is a compact add-on board that measures the passage of time. This board features the DS1343, a low-current SPI-configurable real-time clock (RTC) from Maxim Integrated. This timekeeping device provides an extremely low standby current permitting longer life from a backup supply source. Its clock/calendar feature provides seconds, minutes, hours, day, date, month, and year information.

[Learn More]

BLE 3 click

0

BLE 3 click is a Bluetooth Low Energy radio module which carries u-blox's NINA-B1 radio. The click can communicate with a target MCU through UART, SPI or I2C.

[Learn More]

Altitude 5 click

0

Altitude 5 Click is a compact add-on board allowing high-resolution barometric pressure measurement. This board features the KP236, an analog barometric air pressure sensor based on a capacitive principle from Infineon Technologies. The KP236 is primarily developed for measuring barometric air pressure but can also be used in other application fields. It is surface micro-machined with a monolithic integrated signal conditioning circuit implemented in BiCMOS technology. The calibrated transfer function converts pressure into an analog output signal in a range of 40kPa to 115kPa. However, the choice of signal processing is up to the user; more precisely, the user can process the output signal in analog or digital form. The high accuracy and the high sensitivity of the KP236 make this Click board™ suitable for advanced automotive applications and industrial and consumer applications.

[Learn More]