lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] problem with TCP connect Calback


From: Sergio R. Caprile
Subject: Re: [lwip-users] problem with TCP connect Calback
Date: Mon, 30 Oct 2017 10:15:36 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Erh... the other end not accepting ?
Do you have a traffic capture you can post ?
I guess you are using the RAW API.
Have you properly registered your callback ?
(1)The error callback will eventually be called when the connection attempt times out, is it ? Are you able to debug ? In case you see there is a SYN+ACK from the other end, that frame will arrive to your hardware, be read by your driver, delivered to lwIP and eventually to your application (Don't know for sure if the SYN+ACK by itself will generate that immediately). You can (at least for a start) enable debugging and trace it. If there is no SYN+ACK... then (1)

I see in another post of yours that you say that it works when you configure your device as master. Do you actually know what you are doing, right ? You do know that it takes a client (connects) and a server (waits for connections) for a connection to take place, do you ? That is... You do have a proper server on the other end, do you ?

Then there is the possibility that either your driver or your port are not doing things right. You should have validated both by running known-to-work applications from the app dir or the contrib tree. And please let us know which API you are using, your NO_SYS, your version, etc.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]