This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Basic LWIP Usage

Hi All - 

Does anyone have any suggestions for simple LWIP usage?  I've built and used the examples, but now that I'm trying to modify them for my own needs I seem to be missing the basics.

What I would like to do is set the BeagleBone up as a simple TCP server so that I can pass commands from a TCP client to control GPIO, I2C devices, etc.

I've tried modifying the echod example as this uses sockets in a way I'm familiar with, but what I see is an interrupt passing control to CPSWCore0RxISR, then into sitaraif_rx_inthandler, and then somewhere it gets hung up on an exception.

Is this the way it's supposed to work?  CPSWCore0RxISR -> sitaraif_rx_inthandler -> ..... -> echo_recv?  Perhaps I've missed something in the setup?

Thanks,

Joe.

  • Hi Joe,

                Can you check the "demo" example? . This one would be more closer to what you are trying to achieve. The "demo" example is the out-of-box demo, on executing it gives prints an IP address in the serial port. This IP can be used to browse the HTTP pages hosted in the target. Through the web page you can control the demo.

    Regards

    Baskaran

  • Just  a follow up on this...

    I was finally able to get things running.  I ended up starting over with the demo example - carefully removing the web page items and adding the I2C code.  I have no idea what the issue was with my previous attempt.

    Thanks for the suggestion,

    Joe.