• AVR Freaks

Hot!WINC1500 CONNECT after ACCEPT

Author
msurmei
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2009/05/12 02:00:44
  • Location: Romania
  • Status: offline
2020/07/04 04:21:45 (permalink)
0

WINC1500 CONNECT after ACCEPT

Hello,
I am writing a small HTTP server on a PIC18 + WINC1500 using "latest" MLA (v2018_11_26).
In framework/driver/wifi/winc1500/src/wf_socket.c , function SocketInternalEventHandler, the "case SOCKET_CMD ACCEPT" does not have a break and the next case, SOCKET_CMD_CONNECT is executed as well.
I guess this is a fault. What would be the reason to run hif_receive on a  CONNECT winc event that does not exists ??
As a result the recv is rejected and strange things happens.
But then , who else is still using MLA in 2020 ....
#1

3 Replies Related Threads

    larrycook99
    Starting Member
    • Total Posts : 46
    • Reward points : 0
    • Joined: 2012/04/01 11:37:34
    • Location: Lexington, KY
    • Status: offline
    Re: WINC1500 CONNECT after ACCEPT 2020/07/28 12:06:13 (permalink)
    0
    I have an HTTP server using the MLA (v2018_11_26) code. The SocketInternalEventHandler() in my code also does not have a break at the end of the SOCKET_CMD_ACCEPT case. I have never had an issue that I am aware of.
     
    I have been using the code like that since we began using the ATWINC1500 last August in an existing design that used the MLA code for the ENC28J60.
     
    I checked the MLA (v2017_03_06) code as well and SocketInternalEventHandler() is the same there.
    #2
    larrycook99
    Starting Member
    • Total Posts : 46
    • Reward points : 0
    • Joined: 2012/04/01 11:37:34
    • Location: Lexington, KY
    • Status: offline
    Re: WINC1500 CONNECT after ACCEPT 2020/07/28 13:30:40 (permalink)
    0
    I just noticed after I answered that this was 4 weeks ago. Did you resolve this?
    #3
    aschen0866
    Super Member
    • Total Posts : 4573
    • Reward points : 0
    • Joined: 2006/01/08 22:18:32
    • Location: San Diego
    • Status: offline
    Re: WINC1500 CONNECT after ACCEPT 2020/07/28 14:18:59 (permalink)
    5 (1)
    If you are running a TCP server, there is no CONNECT event. It is only applicable if the WINC is a TCP client.
    #4
    Jump to:
    © 2020 APG vNext Commercial Version 4.5