TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137038 times)
  2. FAT32 Library (70167 times)
  3. Network Ethernet Library (56039 times)
  4. USB Device Library (46364 times)
  5. Network WiFi Library (41980 times)
  6. FT800 Library (41310 times)
  7. GSM click (29079 times)
  8. mikroSDK (26519 times)
  9. PID Library (26453 times)
  10. microSD click (25449 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 7 click

Rating:

5

Author: MIKROE

Last Updated: 2019-12-06

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Bluetooth®

Downloaded: 3013 times

Not followed.

License: MIT license  

The BLE 7 click is a Click boardâ„¢ witch provide BT/BLE connectivity for any embedded application. BLE 7 click based on the BGX13S22GA-V31, a module from Silicon Labs.

No Abuse Reported

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

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

Do you want to report abuse regarding "BLE 7 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 7 click

BLE 7 click

Native view of the BLE 7 click board.

View full image
BLE 7 click

BLE 7 click

Front and back view of the BLE 7 click board.

View full image

Library Description

This library offers a choice to communicate with the BLE 7 Click board (BGX 13P22GAV21 module). Library can send commands, configurations, status request, pairing request or any other data. Also can receive any response from the BGX module, including confirmed or unconfirmed response (answer), module status, connection status, and any transferred data from the other BGX module. Any BLE 7 click can be configured to work as central (server, master) device or as peripheral (client, slave) device. For more details check documentation.

Key functions:

  • void ble7_uart_isr( void ) - This function reads response bytes from the BGX module and sets flag after each received byte
  • uint8_t ble7_response_ready( void ) - This function checks does response ready or not.
  • void ble7_send( uint8_t *tx_data ) - This function allows user to transmit data to the BGX 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 the module reset.
  • 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 the 3 last sent commands. Second segment allows user to check and get response from the module when response was ready. Note : The all possible commands and module configurations can be found on the next link: https://docs.silabs.com/gecko-os/1/bgx/latest/commands
void applicationTask()
{
    rx_data = UART_Rdy_Ptr();
    
    if (rx_data != _RX_NOT_READY)
    {
        rx_data = UART_Rd_Ptr();
        
        checkRX();
    }
    
    logRsp();
}


Additional Functions :

  • _strcpy - Allows user to copy content of one string to another string, starting from the first place.
  • prevCmd - Checks which character (up, down, left, right) was entered by the user.
  • checkPrevCmd - Determines which of the 3 previous commands will be entered again.
  • checkRX - Checks which character was entered by the user and executes a operation which is determined with the entered character.
  • 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 - Checks does any 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

Expand click

0

Example for Expand click board in mikroBUS form factor. This is code writes data to expander's PortB and reads it from expander's PortA. Result is shown on PortB LEDs on development board.

[Learn More]

SQI FLASH click

0

SQI FLASH click is based on the SST26VF064B, a 64 Mbit Serial Quad I/O flash device from Microchip. The chip utilizes 4-bit multiplexed I/O serial interface to boost the performance. The click is a very fast solid-state, non-volatile data storage medium, that can be electrically erased and reprogrammed.

[Learn More]

ProxFusion 2 click

5

ProxFusion 2 Click is an ambient lighting, capacitive, Hall-effect, and inductive sensing Click board which features a single multifunctional sensor IC.

[Learn More]