Forum Discussion
Altera_Forum
Honored Contributor
17 years agoVideostream packets
Hi there, I have a simple question for you all (I think:)) At this point I have a simple HDL design for Cyclone III Video Kit. Getting a PAL input on the clocked video input -> some clippi...
Altera_Forum
Honored Contributor
15 years agoI have the same problem with bewerian, can anybody post SW code to initialize and start up the UDP payload inserter. Maybe there are some mistakes for me to start up the UDP payload inserter.
My host IP is 192.168.0.100. My code is posted as follows: int main() { int i; UDP_INS_STATS *insert_stat; UDP_INS_STATS *getinsert_stat; insert_stat->mac_dst_hi = lwip_htonl(0x001AA02A); insert_stat->mac_dst_lo = lwip_htons(0xACF0); insert_stat->mac_src_hi = lwip_htonl(0x00112233); insert_stat->mac_src_lo = lwip_htons(0x4455); insert_stat->ip_src = lwip_htonl(0xC0A80064); insert_stat->ip_dst = lwip_htonl(0xC0A80065); insert_stat->udp_src = lwip_htons(0x07D0);//port: insert_stat->udp_dst = lwip_htons(0x07D0); if(start_packet_generator(GENERATOR_0_BASE, 1472, 0x33557799)==0x00) { printf("start_packet_generator\n"); if(start_udp_payload_inserter(UDP_INSERTER_0_BASE, &insert_stat)==0x00) { printf("start udp payload inserter %d times \n",i); get_udp_payload_inserter_stats(UDP_INSERTER_0_BASE, &getinsert_stat); } } }