TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 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 (136613 times)
  2. FAT32 Library (69812 times)
  3. Network Ethernet Library (55881 times)
  4. USB Device Library (46217 times)
  5. Network WiFi Library (41858 times)
  6. FT800 Library (41073 times)
  7. GSM click (28942 times)
  8. PID Library (26401 times)
  9. mikroSDK (26312 times)
  10. microSD click (25327 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: 2975 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

AudioAmp click

0

AudioAmp Click is a compact add-on board that can add a mono audio amplifier function to your application. This board features the LM48100Q-Q1, a Boomer™ mono 1.3W audio power amplifier with output fault detection and volume control from Texas Instruments. The AudioAmp Click has one dual 3.5mm audio input jack and, next to it, a screw terminal for connecting output wires to a 1.3W, 8 Ohm passive speaker. Each input has its own independent 32-step volume control.

[Learn More]

NeoMesh 868MHz click

0

NeoMesh Click - 868MHz is a compact add-on board with a low-power, long-range transceiver, ideal for Mesh wireless networking. This board features the NC1000C-8, a wireless Mesh network module from NeoCortec. With an additional antenna that MikroE offers connected to the module’s u.Fl connector, you can create a fully functional wireless Mesh network node that will work in the Sub-GHz frequency band of 868MHz. The module has a generic application layer that can configured to suit applications.

[Learn More]

BATT-MAN click

0

BATT-MAN click is a very versatile battery operated power manager. When powered via mikroBUS™, it will charge the connected Li-Ion/Li-Po 3.7V battery, while providing the output voltage on all its outputs at the same time. The interesting feature of this device is that it can provide additional current to the connected load if the current provided from the mikroBUS™ socket is not enough.

[Learn More]