DEMO: C

Requirements

  • Operating System: Windows, macOS and Linux

Compilation

  • Prepare the curl sdk for the Windows/macOS/Linux Operating System
  • Download DEMO: ultra-stream-api-demo-c.zip
  • Compile "ultra_stream_curl.c", and link to "libcurl"
  • Build the ultra_stream_curl file

Example

  • Navigate and copy the firmware file into the bin directory, and run the ultra_stream_curl.
cd ultra-stream-api/demo/c/bin
cp ultra_stream_hdmi_rev_c_1_2_123.mwf linux
cd linux
./ultra_stream_curl <hostip:port>
  • Sample response

***** 1. login *****
login response data:
{
        "result": 0
}

***** 2. get info *****
get info response data:
{
        "result": 0,
        "mac-addr": {
                "eth": "70:b3:d5:75:d0:4c",
                "wifi": "70:b3:d5:75:d0:4d",
                "blue": "70:b3:d5:75:d0:4e"
        },
        "snapshot": "/tmp/sbox-snapshot/sbox-quarter.jpg",
        "product": {
                "sn": "C301171116015",
                "product-id": 769,
                "hardware-ver": "C",
                "firmware-id": 1,
                "firmware-ver-s": "1.2.122",
                "factory-firmware-ver-s": "1.2.116",
                "product-name": "Ultra Stream",
                "module-name": "Ultra Stream HDMI",
                "manu-name": "MAGEWELL",
                "features": 1,
                "max-lock-count": 2
        },
        "audio-range": {
                "hdmi": {
                        "max": 6.00,
                        "min": -100.00,
                        "def": 0.00
                },
                "mic": {
                        "max": 55.25,
                        "min": -12.00,
                        "def": 0.00
                },
                "phone": {
                        "max": 6.00,
                        "min": -57.00,
                        "def": 0.00
                }
        },
        "codec-cap": {}
}

***** 3. upload firmware *****
upload firmware response data:
{
        "result": 0,
        "up-to-date": true,
        "version": "1.2.123",
        "size": 12494463
}

results matching ""

    No results matching ""

    results matching ""

      No results matching ""