cancel
Showing results for 
Search instead for 
Did you mean: 

Using KSZ8863 als Sniffer

y.rr
Associate II

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

2 REPLIES 2

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

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
y.rr
Associate II

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 🙂