|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.|
|Click board size||L (57.15 x 25.4 mm)|
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.
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
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.