• AVR Freaks

Hot!Does Microchip TCP/IP stack handle more than one UDP socket at a time?

Author
E_Blue
Super Member
  • Total Posts : 370
  • Reward points : 0
  • Joined: 2009/03/02 18:02:17
  • Location: 0
  • Status: offline
2019/12/13 08:22:19 (permalink)
0

Does Microchip TCP/IP stack handle more than one UDP socket at a time?

I need to open 6 UDP sockets but I'm new on this, never do it something with TCP/IP stacks before.
I just opened Microchip TCPIP Stack folder and there's a lot of files inside.
I'm tempted to use the 18F67J60 but I need a USB CDC port so I'm thinking in to use a 18F67J50 with a ENC28J60 or a 18F67J60 and an external USB CDC.
I Also need to have DNS domain resolution.
 
I don't need high speed, the device is very basic with less than 100 bytes every 3 seconds.
I see that Microchip Code Configurator support 18F67J60 but not 18F67J50.
Should I use MLA or MCC?
There's a lot of options, I don't know where to start and my time line is very short.


Electric Blue
#1

4 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 18850
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Does Microchip TCP/IP stack handle more than one UDP socket at a time? 2019/12/13 08:52:59 (permalink)
    5 (1)
    Which Microchip TCP/IP stack?
    You usually have to configure it for how many sockets it supports and how many packet buffers.
    Remember services like DHCP will use sockets.
    #2
    E_Blue
    Super Member
    • Total Posts : 370
    • Reward points : 0
    • Joined: 2009/03/02 18:02:17
    • Location: 0
    • Status: offline
    Re: Does Microchip TCP/IP stack handle more than one UDP socket at a time? 2019/12/13 09:26:30 (permalink)
    0
    The upper folder is called "microchip_solutions_v2013-06-15", that's the MLA.
    The MCC says "Microchip Ligthweigth TCPIP Stack" I didn't saw a version, there is a "Lite" also.
    As far I understand both are different libraries.
     
    About the sockets, now you mention it, I remember that I read about that many years ago, but since never need to used I forgot where in the code I set up that.
    So, if I need 6 sockets I need more; I'm not an ethernet expert but two more, one for DHCP and DNS will be enough?
     


    Electric Blue
    #3
    NKurzman
    A Guy on the Net
    • Total Posts : 18850
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: offline
    Re: Does Microchip TCP/IP stack handle more than one UDP socket at a time? 2019/12/13 09:55:37 (permalink)
    0
    So it is an Old MLA Stack.
    MCC is different and should have setting for sockets and buffers.
    If you are using Berkeley sockets, that may requiere a setting too. that would just be 6.  The Stack does not Use Berkeley internally. 
     
    I think DNS needs 2,  UDP would be 1 per.  DNS 1, PING 1,  What ever you turn on.  Remember the More Sockets, the More Buffers you will need, unless performance does not matter.
    #4
    Chris A
    Super Member
    • Total Posts : 858
    • Reward points : 0
    • Joined: 2010/07/20 04:37:07
    • Location: 0
    • Status: offline
    Re: Does Microchip TCP/IP stack handle more than one UDP socket at a time? 2019/12/13 17:23:53 (permalink)
    5 (1)
    Note with UDP you can use one socket to send to multiple other devices.  You can also use the same socket to receive from multiple devices. 
    For Rx the UDP port is the same and you can test to find the remote sending IP, for Tx you can change the destination IP and UDP port for each UDP packet.
    #5
    Jump to:
    © 2020 APG vNext Commercial Version 4.5