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 (137083 times)
  2. FAT32 Library (70224 times)
  3. Network Ethernet Library (56097 times)
  4. USB Device Library (46424 times)
  5. Network WiFi Library (42040 times)
  6. FT800 Library (41381 times)
  7. GSM click (29109 times)
  8. mikroSDK (26558 times)
  9. PID Library (26487 times)
  10. microSD click (25486 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

BroadR Reach click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-13

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Ethernet

Downloaded: 5594 times

Not followed.

License: MIT license  

BroadR-Reach click brings the industry grade communication standard to the mikroBUSâ„¢, which is built to be used in an Ethernet-based open network.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "BroadR Reach click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "BroadR Reach click" changes.

Do you want to report abuse regarding "BroadR Reach click".

  • Information
  • 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

 BroadR-Reach Click

BroadR-Reach Click

Native view of the BroadR-Reach Click board.

View full image
BroadR-Reach Click

BroadR-Reach Click

Front and back view of the BroadR-Reach click.

View full image

Library Description 

BroadR-Reach click library contains basic functions for controlling the click board, but also the advanced functions, which abstract basic operations to a simple send or receive functions. 

Key functions:

uint8_t broadr_socketOpen(uint8_t socket, uint8_t mode, uint16_t settings)- Opens a socket in the selected mode, enabling its operation

uint8_t broadr_sendData(uint8_t socket, uint8_t * pSendData, uint16_t bytesCount)- Ends data from the selected socket

uint8_t broadr_receiveData(uint8_t socket, uint8_t mode, uint8_t * pReceiveData, uint8_t * headerInformation)- Reads received data from the selected socket

Examples Description

The application is composed of three sections :

  • System Initialization - Initializes pin, SPI peripheral, and logger functions.
  • Application Initialization - Initializes the click driver, sets the required network parameters (Addresses), opens socket 0 in UDP mode, and sets the destination address and port for that socket.
  • Application Task - Sends data contained in the sendData array and checks if any data has been received. If so, the received data is printed on UART. Contents of the sendData array are automatically changed in each iteration, so that each sent packet is different from the previous.
     * Sends sendData
     */
    broadr_sendData(_BROADR_SOCKET0, &sendData, 18);

    /*
     * Checks if data is received, and writes received data if so.
     */
    if (broadr_getReceivedSize(_BROADR_SOCKET0))
    {
        mikrobus_logWrite("Received data:", _LOG_LINE);
        broadr_receiveData(_BROADR_SOCKET0, _BROADR_MODE_UDP, &receivedData, &receiveHeader);
        mikrobus_logWrite(receivedData, _LOG_LINE);
    }
    else
    {
        mikrobus_logWrite("No data received.", _LOG_LINE);
    }

    /*
     * Increments packet number in send data text, resets after 99.
     */
    sendData[16] = sendData[16] + 1;
    if (sendData[16] > '9')
    {
        sendData[16] = '0';
        sendData[15] = sendData[15] + 1;
    }
    if (sendData[15] > '9')
    {
        sendData[15] = '0';
    }

    Delay_ms(1000);


Other mikroE Libraries used in the example:

  • UART

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 clickor 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

Single Cell click

5

The Single Cell click is a Click board which features MCP16251 synchronous boost regulator with true load disconnect and MCP1811A low-dropout (LDO) linear regulator that provide an ultra low quiescent current during device operation of about 250nA and can be shut down for 5nA (typical) supply current draw.

[Learn More]

Illuminance click

0

Illuminance Click is a compact add-on board that mimics how humans perceive light. This board features ams AG’s TSL2583, a very-high sensitivity light-to-digital converter that transforms light intensity to a digital signal output capable of the direct I2C interface. It combines one broadband photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS integrated circuit capable of providing a near-photopic response over an effective 16-bit dynamic range (16-bit resolution).

[Learn More]

Secure 3 click

1

Secure 3 click carries the ATSHA204A, a cryptographic coprocessor with secure hardware-based key storage from Microchip. The click is designed to run on either 3.3V or 5V power supply. Secure 3 click communicates with the target microcontroller over an I2C interface.

[Learn More]