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 (137089 times)
  2. FAT32 Library (70232 times)
  3. Network Ethernet Library (56102 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42053 times)
  6. FT800 Library (41383 times)
  7. GSM click (29111 times)
  8. mikroSDK (26560 times)
  9. PID Library (26489 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: 5595 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

eFuse 2 click

0

eFuse 2 Click is a compact add-on board that contains an integrated FET hot-swap device. This board features the TPS259631, a highly integrated circuit protection and power management solution from Texas Instruments. It provides multiple protection modes against overloads, short circuits, voltage surges, and excessive inrush current.

[Learn More]

Power MUX 2 click

0

Power MUX 2 Click is a compact add-on board that contains a highly configurable power mux. This board features the TPS2120, a dual-input single-output power multiplexer with an automatic switchover feature from Texas Instruments. This Click board™ prioritizes the main supply when present and quickly switches to auxiliary supply when the main supply drops. During switchover, the voltage drop is controlled to block reverse current before it happens and provide uninterrupted power to the load with minimal hold-up capacitance. This Click board™ is suitable for applications as a backup and standby power, input source selection, and various systems having multiple power sources.

[Learn More]

AudioMUX click

0

AudioMUX click is a sound processing Click board™ with digital controls, based on the TDA7468D IC. It can be used to select one of four audio input channels, adjust its frequency response and volume, and send it to the output.

[Learn More]