I did try my code using a direct UDP connection to 192.168.0.206 and it works fine. So it really does appear that my problems are in trying to use a multicast address.
I tried setting
Code: Select all
SPI_Ethernet_Enable(_SPI_Ethernet_MULTICAST);
Here's my codebase so far...
Code: Select all
unsigned char myMacAddr[6] = {0x00, 0x14, 0xA5, 0x76, 0x19, 0x3f} ; // my MAC address
unsigned char myIpAddr[4] = {192, 168, 0, 160} ; // my IP address
unsigned char IpAddr[4] = {224, 0, 100, 100 }; // remote IP address
char ipMask[4] = {255, 255, 255, 0 }; // network mask (for example : 255.255.255.0)
char gwIpAddr[4] = {192, 168, 0, 1 }; // gateway (router) IP address
char dnsIpAddr[4] = {192, 168, 0, 1 }; // DNS server IP address
SPI1_Init();
SPI_Ethernet_Init(myMacAddr, myIpAddr, Spi_Ethernet_FULLDUPLEX) ;
SPI_Ethernet_confNetwork(ipMask, gwIpAddr, dnsIpAddr); // set network configuration parameters
SPI_Ethernet_Enable(_SPI_Ethernet_MULTICAST);
...
stat = SPI_Ethernet_sendUDP(IpAddr, 10001, 10001, output, lenc);