[an error occurred while processing this directive]

Setting OpPanel To operation, Debug Interface

 

This Page is under Construction

 

GBM / opPanel- Debug interface


    OpPanel has a host interface for updating the firmware and for easy configuration. The PC is connected via a FTDI USB cable 3V3(important) to the ATXMEGA serial port. A virtual COM port is initialized

Configuration interface


    In normal operation, a control interface (API) is implemented on the USB port through which you can send commands to OpPanel. For this purpose, a terminal emulator as hterm.exe may be used.
    The API works with a serial protocol at 115200 baud, 8 bits, no parity, 1 stop bit (8N1). API transmits 8-bit ASCII. The commands are not case sensitive. The commands sent are terminated with <CR> or <CR-LF> The response contains <CR-LF> as the end marker. An unknown command responds with "unknown command".

API Command


    Common API commands

  • help or ? or H
    parameters:None
    answer: help text that briefly describes the commands of the API.
  • Info
    parameters:None
    answer: "OpenDCC PANEL hw 1.0, sw 02, 01 api Clock=Crystal, A1, bl no " (example)
    The response consists of a chain, starting with the hardware identifier ("OpenDCC PANEL) followed by version numbers. Then the Key words, each followed by a numerical value.
    hw Hardware version
    sw software version
    api This is the version of the API parser; based on this number the supported instruction set can be defined.
    Clock Internal or Crystal.
    xmega_type A1U (with USB) or A1.
    bl: macro_flash_save Yes or No.
  • C
    C <cmd>: simulates a command // non implémenté .
  • CV
    CV ADDR [DATA]
    parameters:
    ADDR CV Address to be read or written.
    DATA write if this parameter is specified, else read.
    answer:CV:5:0(=0x00)
  • REBOOT
    parameters:None
    answer: no
    OpPanel performs a reset (e.g. required after changing the profiles of modes / CVs).
  • Controls for log ("trace")

  • L
    Show present state.
    answer :sequence of letters, each followed by + or -.
    Example: Logging: K- C+ Host: alive

    Nom Log activé
    K Show if a key has been pressed
    C show the CV
    Host status alive or stalled

  • LK [0|1]: show keystrokes
    indicates which keys have been pressed, including keys simulated by the software.

  • Test commands

  • TL
      Test software Led.
      Parameters: TL led (0..4), color (0..3), brightness (0..100)
      Values:
    • Software LED from 0 to 4
    • Color ref from 0 to 3 suivant le tableau ci-après:
    • Valeur Commande Couleur
        0x00
        LED_COLOR_OFF
        off
        0x01
        LED_COLOR_RED
        red
        0x02
        LED_COLOR_GREEN
        green
        0x03
        LED_COLOR_ORANGE
        orange
    • Luminosité de 0 éteint à 100 luminosité maximale.
  • TB
    Test the backlight brightness.
    parameters: brightness from 0 (off) to 100 (maximum brightness).

  • Simulation Commands

    (X for hack-commands XE for enter and XD for delete)
  • XEB: enter_Bootster_Status
  • XEC: enter_Command_Status
  • XEU: enter_CU
  • XEL: enter_LOCO give trackproc, alive, track, all addresses on track (even if zero)
  • XES: enter_LOCO speed
  • XDL: delete_LOCO give address
  • XDG: delete_LOCO on a GBM