This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

TCPnet: switching between PPP and Ethernet at runtime

Hello,

I have a couple questions regarding TCPnet that I would appreciate some assistance on:

1) I am using raw TCP/IP sockets and at runtime I need to be able to dictate which communication platform the sockets open on (Ethernet vs PPP). Is it possible to do this?

2) For some reason I am not getting any DNS servers assigned through my PPP connection. My PPP device is a GPRS modem. Is there a setting that I need to enable to make this happen?

I have been reading the product manual and cannot seem to find the answers in there -- however, if they are there and I just missed them, please feel free to point me to the correct sections. Any insight would be greatly appreciated!

Thank you,
Eric

Parents
  • Yes, I agree with all of this.

    For the record -- Keil said that my little tweak ought to be safe so long as it is done BEFORE calling init_TcpNet().

    In regards to an alternative: for a while I have been wishing to use Adam Dunkel's uIP. The only catch, for me, is that I need PPP in addition to Ethernet. Well, I see these guys claim to have uIP working with PPP:
    savannah.nongnu.org/.../lwip

    I haven't had time to look into this too much yet: especially in regards to if any licensing fee may be required for commercial use. But even if there is one, I have to think it would be less than Keil's fee. Also, I don't know if anyone has ported this in to a Keil uVision project and glued it into the standard Ethernet drivers for our MCUs.

    If any of you do look into it, I would be very interested to hear what you have to say. If/when I get a chance to dig in to it, I'll be sure to post my results. It'd be great if we could share some source code for getting it going in uVision. Feel free to contact me: erics at the domain of forwardpay dot com.

Reply
  • Yes, I agree with all of this.

    For the record -- Keil said that my little tweak ought to be safe so long as it is done BEFORE calling init_TcpNet().

    In regards to an alternative: for a while I have been wishing to use Adam Dunkel's uIP. The only catch, for me, is that I need PPP in addition to Ethernet. Well, I see these guys claim to have uIP working with PPP:
    savannah.nongnu.org/.../lwip

    I haven't had time to look into this too much yet: especially in regards to if any licensing fee may be required for commercial use. But even if there is one, I have to think it would be less than Keil's fee. Also, I don't know if anyone has ported this in to a Keil uVision project and glued it into the standard Ethernet drivers for our MCUs.

    If any of you do look into it, I would be very interested to hear what you have to say. If/when I get a chance to dig in to it, I'll be sure to post my results. It'd be great if we could share some source code for getting it going in uVision. Feel free to contact me: erics at the domain of forwardpay dot com.

Children