Skip to main content
y.rr
Associate II
September 17, 2019
Question

Using KSZ8863 als Sniffer

  • September 17, 2019
  • 2 replies
  • 1016 views

Hello everyone,

I'm trying to use a KSZ8863 to monitor ethernet traffic.

the KSZ8863 is connected to a STM32F767 via RMII.

Im using the STMcubeIDE lwIP stack.

I have no problem getting a ip-adress and ping the STM32. Also the SMI interface to the KSZ seems to work - so I can read and write all Registers.

What does not work:

I have normal data transferns between Port1 and Port2 but its not mirrored to Port3 (STM32).

So I want that all the data send from Port1 to Port2 is also send to the STM.

With my understanding of the KSZ datasheet I set Port3 as Sniffer Port (register 49 bit 7 = 1)

and Port 2 as Transmit Sniff (Register 33 bit 5 = 1)

But that has no effect.

I looked with a network analyzer onto the RMII interface and there is nothing on the Rx lines. Only Broadcast messages (and the ones adressed to the STMs IP) are received by the STM.

Any Ideas what I'm doing wrong? Or what is missing?

Any help is welcome :)

Cheers

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    September 17, 2019

    Set Port 1 to Receive Sniff so data visible there gets to Port 3

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    y.rr
    y.rrAuthor
    Associate II
    September 18, 2019

    ok I got it. I Enabled only the Receive Sniff for port 1 and now it is working.

    Wondering why with enabled Transmit Sniff on Port 2 it was not. Also enabling both Tx and Rx sniff didn't work.

    so thank you :)