Re: [lwip-users] Losing connection with router

2016-02-24 Thread Mike He
I will order a hub and set up a capture. But in the meantime, I'm trying to narrow down whether the problem stems from my device running lwip, or the router. If the device can still be pinged, then it clearly should still be in ARP table. However, the router management interface lists no recor

[lwip-users] Losing connection with router

2016-02-24 Thread Mike He
Hello, I am having some connectivity issues running lwip, and hoping someone may have an idea of where to debug. I have a microcontroller running lwip, off the master branch, commit affc6d61ca7915c1dfe8a4421251875428ad5e0a. The microcontroller is wired to a 4G LTE router, but it is losing its

Re: [lwip-users] LWIP and Websockets

2015-10-26 Thread Mike He
Hi Leonardo, I have written a Websocket server on top of lwip, and can try to help you directly. Just briefly looking at the code you posted though, a lot seems to be missing though. Certainly, there is no way to tell if you are properly returning a Websocket handshake given the code provide

Re: [lwip-users] Sending with thread safety

2015-07-06 Thread Mike He
I am running with NO_SYS=1. Ok, thanks for your help. I misunderstood and thought that I could only call lwIP functions from inside the ethernet interrupt handler context, since that is where the lwip timers are serviced. If I can call from the main loop, then that is easy. Thanks for your h

[lwip-users] Sending with thread safety

2015-07-06 Thread Mike He
Hello, I am looking for some help understanding the proper way to send packets with lwIP while maintaining thread safety. As I understand from the documentation, using raw API, I have to call lwIP functions from inside lwIP's execution context. For operating in server mode, this is easy to u

Re: [lwip-users] Missing ACKs in Websocket echo server

2014-06-19 Thread Mike He
I've also attached a successful echo session with the server at echo.websocket.org for reference. Thanks, Mike On 6/19/2014 9:22 AM, Mike He wrote: Hello, I am trying to write up a simple Websocket echo server on an embedded device with lwip. Looking at the Wireshark traces, it ap

[lwip-users] Missing ACKs in Websocket echo server

2014-06-19 Thread Mike He
Hello, I am trying to write up a simple Websocket echo server on an embedded device with lwip. Looking at the Wireshark traces, it appears that I am missing ACKs from the server, but the Websocket handshake and packets themselves seem to be well-formed. I think this is leading to failed beha

[lwip-users] Encoding problem for received packet?

2014-06-17 Thread Mike He
I have a small Websocket server running on lwip on an embedded system. In this example, I send a simple Websocket text frame to the server, containing only the word "test". When I inspect the payload on the server, however, I get something like the following: "\201\204\331\271\206\201\255\334\

[lwip-users] Pbuf chain

2014-05-31 Thread Mike He
If my understanding is correct, the pbuf that is passed to our recv callback is only the first in a chain, where we must traverse the chain to obtain the full packet? Thanks, Mike ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu

Re: [lwip-users] lwip recv callback questions

2014-05-30 Thread Mike He
Thanks so much for your help Simon. I'd like to upgrade to the latest version. To your knowledge, have there been major changes since 1.3.2 with respect to how to write driver code to interface with our hardware? Thanks, Mike On 5/30/2014 12:53 PM, Simon Goldschmidt wrote: Mike He

Re: [lwip-users] lwip recv callback questions

2014-05-30 Thread Mike He
Thanks Sergio, 1. Can you point me to a description of how to use the different error codes, then? 3. I just located the httpserver_raw in vendor's lwip package. It also doesn't call tcp_accepted. Perhaps the problem is that my vendor is using an outdated version, 1.3.2? On 5/30/2014 10

Re: [lwip-users] lwip recv callback questions

2014-05-30 Thread Mike He
Thanks Sergio, 1. Can you point me to a description of how to use the different error codes, then? 3. I just located the httpserver_raw in vendor's lwip package. It also doesn't call tcp_accepted. Perhaps the problem is that my vendor is using an outdated version, 1.3.2? On 5/30/2014 10

[lwip-users] Pbuf chain

2014-05-29 Thread Mike He
If my understanding is correct, the pbuf that is passed to our recv callback is only the first in a chain, where we must traverse the chain to obtain the full packet? I am confused by this line in the documentation: "The last pbuf of a packet has a ->tot_len field that equals the ->len field.

[lwip-users] lwip recv callback questions

2014-05-29 Thread Mike He
Hello, I am a new user to lwip with some questions on behavior of the callback function that receives data, i.e. the one specified by calling tcp_recv. I have tried looking on the wiki but was not able to find answers to my question specifically. 1. What do the different error codes that the