• AVR Freaks

A second Ethernet Port.

Author
NKurzman
A Guy on the Net
  • Total Posts : 18373
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
2020/03/23 15:52:35 (permalink)
5 (2)

A second Ethernet Port.

I am Using a PIC32MZ and Need a second Ethernet port.
One to connect to the Internet, and a second connected to a Private Network that can not connect to the Internet.
I see Microchip has SPI Ethernet chips. Has any one used them?  would they connect to the Harmony Stack?  I know there are not any drivers at this time.
Any Other suggestions?
#1

10 Replies Related Threads

    rainad
    Moderator
    • Total Posts : 1291
    • Reward points : 0
    • Joined: 2009/05/01 13:39:25
    • Location: 0
    • Status: offline
    Re: A second Ethernet Port. 2020/03/24 07:24:22 (permalink)
    5 (1)
    The external ENC24J600 and ENC28J60 are already integrated in Harmony 2.
    The next Harmony release 3 - coming public in a couple of weeks - will contain the drivers for these SPI controllers too.
     
    #2
    Jim Nickerson
    User 452
    • Total Posts : 6566
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: A second Ethernet Port. 2020/03/24 07:34:43 (permalink)
    0
    will the stack handle two simultaneous ethernet connections
     
    #3
    BillP
    Super Member
    • Total Posts : 377
    • Reward points : 0
    • Joined: 2014/09/28 07:53:35
    • Location: CA
    • Status: online
    Re: A second Ethernet Port. 2020/03/24 07:51:34 (permalink)
    0
    It appears you want to isolate the private network from the internet, so you might consider a data diode.  I  developed a prototype using 2 MZ chips connected by SPI.  Two separate stacks allows you to have different protocols on each Ethernet connection. 
    #4
    NKurzman
    A Guy on the Net
    • Total Posts : 18373
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: A second Ethernet Port. 2020/03/24 08:55:21 (permalink)
    0
    Rainad
    Thank you.

    Jim
    I am assuming so since it worked with wired and the Wi-Fi module in V1.11

    BillP
    The two net works are not related.
    One will be communication between units. And the control system.
    The second telemetry to the cloud ☁️.
    #5
    Jim Nickerson
    User 452
    • Total Posts : 6566
    • Reward points : 0
    • Joined: 2003/11/07 12:35:10
    • Location: San Diego, CA
    • Status: online
    Re: A second Ethernet Port. 2020/03/24 09:10:39 (permalink)
    0
    Neil,
    That will be great, I was not aware the Harmony Stack could handle Dual Homed
    #6
    NKurzman
    A Guy on the Net
    • Total Posts : 18373
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: A second Ethernet Port. 2020/03/24 09:55:01 (permalink)
    0
    For the Wi-Fi Module it was just like a PC.  You disconnected one, and the packets would go to the Other seamlessly.
    I am not sure this is a Plus in this case since I know what is on each network. 
     
    But is it a minus here?
     
    Rainad
    Is it possible to separate Traffic on the two networks.
    The ENC24J600 would be Azure Cloud Only.  So I would not want any connections to the Server on the Other Port.
    Is this Possible?
    #7
    RISC
    Super Member
    • Total Posts : 5392
    • Reward points : 0
    • Status: offline
    Re: A second Ethernet Port. 2020/03/24 10:21:27 (permalink)
    0
    Hi,
    I think it would be easier to use a 3 ports switch like LAN9303.
    It is supported out of the box in Harmony v3.xxx
    ENCxx devices are quite old...
    Regards
    #8
    NKurzman
    A Guy on the Net
    • Total Posts : 18373
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: A second Ethernet Port. 2020/03/24 11:42:40 (permalink)
    0
    I looked in to the 3 port switch.
    I am told it will not provide full isolation.
    Two IP Address, Two network configurations. And No Packets from the Internet can enter the Private Network.
    I was told it can not provide that.  It is the whole point of this second Port.
    The ENCxx may be old but I am sending a telemetry packet of a few K once a minute. Not very taxing.
    My Only concern is Microchip makes it for at least 10 more years. The LAN9250 is newer but is it better?
    #9
    rainad
    Moderator
    • Total Posts : 1291
    • Reward points : 0
    • Joined: 2009/05/01 13:39:25
    • Location: 0
    • Status: offline
    Re: A second Ethernet Port. 2020/03/24 14:02:29 (permalink)
    5 (2)
    You can open the server sockets by specifying the interface to listen too (by using the interface IP address).
    This works for both TCP and UDP.
    This way you'll have a server socket listening only on the interface you want it to.
    And then it's up to you what to do with the received data.
    I think this is what you're asking about.
     
    Actually you can enforce a specific interface for the client sockets too.
     
     
     
    #10
    NKurzman
    A Guy on the Net
    • Total Posts : 18373
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: A second Ethernet Port. 2020/03/24 14:20:01 (permalink)
    0
    rainad
     
    Thank You.
    It looks like it should work for what I need.
     
    #11
    Jump to:
    © 2020 APG vNext Commercial Version 4.5