2019-09-17 07:07 AM
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
2019-09-17 08:19 AM
Set Port 1 to Receive Sniff so data visible there gets to Port 3
2019-09-17 10:48 PM
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 :)