I currently have a setup using the LPC2148 and the Keil TCPnet library and an ENC28J60. I have posted here before with related issues previously.
After issuing the TCPnet function to send an email (smtp_connect) the SMTP client times out and/or I get a debug errors at different times. In Wireshark whenever it times out, I see a TCP Retransmission multiple times from the devices IP to the server IP but no response ever shows up. I tried this with multiple servers and all failed after resetting the device so I think the issue is not with any servers but rather with the way the device is sending out packets or something of that nature.
Are there any other command I might use to try and analyze why and where the connection to the smtp server is failing only sometimes. I have used the debug library but it only every says timeout and if I put TCP to full debug it shows the TCP socket is stuck in SYN_SENT state.
Any help is appreciated, thank you very much in advance!