Using uIP to receive UDP packets
Posted 06 June 2012 - 03:17
Posted 06 June 2012 - 08:02
Buy nILS a Beer Disclaimer: buying nILS a beer gets you absolutely nothing in return likesuchas real-time chat support, gm5x5x5 pcbs, MIDIbox troubleshooting assistance or a less grumpy german.
Posted 06 June 2012 - 20:23
Posted 06 June 2012 - 22:21
uip*: this code is required to handle UIP functions from a FreeRTOS task. The (simple) invocation of this task is demonstrated in the tutorial
uip_task mainly handles incoming and outgoing packets and links to protocol demons, such as DHCPC... and the OSC Server
There are also access functions to change IP parameters, e.g. from a MIOS terminal.
osc_server: parses incoming UDP packets which are received over given ports.
The entry point is OSC_SERVER_AppCall, which is a common uIP hook (see also the other examples in the uip directory, they are simpler but all use the same hook)
OSC_SERVER_SendPacket sends a packet via the uIP layer.
If you don't like the uIP based approach, because it means too much overhead for your application, then have a look into this directory:
network-device.c contains access functions to send/receive packets directly.
Best Regards, Thorsten.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users