This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3352: CPSW switch mode question

Part Number: AM3352

Tool/software: Linux

Hi SIr 

We set the CPSW as switch mode and below is the example.

1. Is it possible that switch has its mac and IP address? 

2. in the same network, is it available to send/receive LAN1 or LAN2 packet ? 

please advise

BR

Yimin

  • Hi,

    In this configuration the switch does not have its own mac and ip address. The addressing is per your diagram.

    I am not sure if I understand your question concerning traffic. In the switch mode configuration shown, PLC ...101 and PLC ...102 will be able to communicate directly through the switch without involving the HMI device. The HMI should be able to communicate directly with both PLC ...101 and PLC ...102.

    To verify the switch configuration you will to make sure that the dual_emac flag in the DTS for the board is removed.

    Best Regards,
    Schuyler
  • Hi Sir

    thanks for your reply.

    It is correct that AM335x is set in switch mode to connect PLC devices
    PLC ...101 and PLC ...102 will be able to communicate directly through the switch without involving the HMI device.

    What we want to do is to capture the data while PLC 101 and PLC 102 are communicating with each other.
    Do you know how to do it in AM335x HMI site?

    please advise

    BR
    Yimin.

  • Hi,

    Could provide an example of the network traffic that you want to capture? Is it select portions or the entire stream? What is the bit rate of traffic between the two PLCs?

    Best Regards,
    Schuyler
  • HI SIr

    The question is that can AM3352 Switch device receive/send ethernet packet from/to two PLC devices ?

    If yes, do you know how to do it ?


    BR
    Yimin
  • Hi,

    If you are wanting to make a "sniffer" which is to capture all packets in the switch it is probably possible though this is not a use case that has been tried by TI. You may be able to append rules in the switch with the switch config utility to direct packets as you need. TI does not have an example on how to do this. Have you tried putting the HMI Ethernet port in promiscuous mode ?

    Best Regards,
    Schuyler