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.

USB-2-MDIO: Syntax for read/write register via serial communication

Part Number: USB-2-MDIO
Other Parts Discussed in Thread: MSP430F5529, DP83849I,

Dear All,

I want to set up a serial communication (LabView) via MSP430F5529 to the PHYTER Demo II Board with DP83849i.

Is there a possibility to replace the usb-2-mdio program with a serial terminal program, like hyperterminal or labview?

With the recommended syntax below for reading a register '=' 'PHY_ID[2]' 'REG_ADD[4]' '/'   I got the answer-string: >Error! Improper length format in basic read/write<

I tried the following:

=010001/

=,0,1,0,0,0,1,/

'=','0','1','0','0','0','1','/'

Where is the mistake?

The UART-setup seems to be ok, I noticed a respond on the MSP430-Board when sending the command (red and green leds were on a short low level).

 

Thank You

Stefan

  • Hi,

    Firmware on MSP430F5529 is designed to work with USB2MDIO GUI commands. You will need to update the firmware on MSP430F5529 to understand the serial commands sent from your Command line tool.

    Regards,
    Geet
  • Dear Geet,

    Which Firmware do I need?

    I already flashed the device with MSP430 Firmware\FLash_MSP430_F5.bat and the flashing-tool (description USB-2-MDIO Software Tool, User´s Guide).

    Best regards,
    Stefan
  • Yes, you are using the correct firwmare. Ensure your connections from MSP430 to your board are correct ( MDIO, MDC and Gnd).

    What is the VIO voltage level on your board ? Default it works for 3V3.

    Regards,
    Geet
  • The jumpers are on default-setting. 3.3V and 5V are jumped.

    I am not sure if you got me right:

    The task is to read/write register on the Demo-Board with DP83849i (Phy). At this stage I use the MSP430F5529 and the GUI usb-2-mdio. That works propper well.

    Next step is to replace the Texas Instruments GUI with hyperterminal or LabView on the host with a serial com-port.

    When sending a command '= 0000 / ' the response is Error! Improper length format in basic read/write

    When sending a command '* 0000 / ' the response is Error! Improper length format in extended read/write

     

    So, the basic communication seems to be possible, because I got an answer from MSP430.

    But the aprobriate command syntax is needed!

    >> Which command is to be sent for reading a register?

  • Understand now. You are looking to develop your own PC program to read/write over MDC/MDIO using MSP430 firmware.

    Unfortunately, we don't offer that API document for this. You need to develop your own firmware to integrate with labview or hyperterminal.


    Regards,
    Geet