Other Parts Discussed in Thread: DP83869, MSP430F5529
Hi TI,
I use a DP83869EVM which comes with a Microcontroller to access the MDIO over USB. For Windows you offer the tool MDIO-2-USB and with this tool I can communicate with the PHY.
But now I need to access the PHY's register over Linux. In this post you describe how to communicate with the microcontroller: https://e2e.ti.com/support/interface-group/interface/f/interface-forum/653516/usb-2-mdio-re-usb-2-mdio-source-of-usb-2-mdio-would-be-very-helpful
I tried this with Python, but it didn't work. I use pyserial for the communication. Here is what I have tried:
>>> import serial
>>> ser = serial.Serial("COM10", 9600, timeout=1)
>>> ser.write(b'=10000/')
7
>>> ser.read(100)
b'Error! Improper length format in basic read/write.\r\n'
>>> ser.write(b'=010000/')
8
>>> ser.read(100)
b'Error! Improper length format in basic read/write.\r\n'
>>> ser.write(b'/00001=')
7
>>> ser.read(100)
b'Error: PHY Address not valid.\r\nParse Error!\r\nError occurred for basic read!\r\n'
>>> ser.write(b'=100003200/')
11
>>> ser.read(100)
b'Error! Improper length format in basic read/write.\r\n'
>>> ser.write(b'=0100003200/')
12
>>> ser.read(100)
b'Error! Improper length format in basic read/write.\r\n'
Can you please help me here?
By the way: It would be great if you could open source the Firmware and Software for the MDIO-2-USB tool. Then I would not have to bother you with these questions ;)
Best regards,
Johannes