introduction
BroadR-Reach click brings the industry grade communication standard to the mikroBUS™, which is built to be used in an Ethernet-based open network. The click board is equipped with the BCM54811 Transceiver from Broadcom Limited, which is used to provide the hardware PHY layer for the network, and the W3150A+ from WizNet, a hardware LSI protocol stack, that provides an easy and low-cost solution for high-speed Internet connectivity for digital devices by allowing simple installation of TCP/IP stack in the hardware.
features
Type | Ethernet |
Applications | It can be used for realizing network in the industrial environment, and other places that require a good and reliable Ethernet-based open network. |
On-board modules | BCM54811 BroadR-Reach capable Ethernet PHY IC from Broadcom, W3150A+ hardware LSI protocol stack by WizNet, PIC16F18313 controller from Microchip. |
Key Features | Robust and reliable interface, designed to be used in industrial and noisy environments, only one twisted pair required for the full duplex communication. |
Interface | GPIO,SPI |
Click board size | L (57.15 x 25.4 mm) |
Input Voltage | 3.3V |
technical details
how to use
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
Example 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.
COMMENTS