Binho Customer Support
  • Customer Support Portal
  • User Guide
    • Binho Nova
    • Binho Supernova
    • Hardware Comparison Table
    • Safety Notice
    • Compliance & Legal
    • System Requirements
    • Updating Firmware
    • Protocols and Interfaces
      • I3C Common Command Codes
      • Bridge 1.1 API
        • Bridge 1.1 API - Basic I3C Commands
        • Bridge 1.1 API - I3C Common Command Codes
        • Bridge 1.1 API - I2C Commands
        • Bridge 1.1 API - SPI Commands
        • Bridge 1.1 API - UART Commands
        • Bridge 1.1 API - GPIO Commands
  • Getting Started
    • Hardware Setup
      • Binho Nova
      • Binho Supernova
    • Binho Mission Control
      • Overview
      • Download & Installation
      • Interactive Tour
        • App Layout
        • Protocol Activation
        • Command Panel
        • Transaction Log View
      • Updating Binho Mission Control Software
      • Simulators
      • Communication Protocols
        • SPI
        • UART
        • I2C
        • I3C
        • 1-WIRE
        • GPIO
      • Settings
    • Python SDKs
      • SupernovaController
      • Nova SDK
    • C++ SDK
      • Installation
      • Environment Setup
      • Building the C++ SDK Library
      • Building a Project Using the SDK
      • Example Applications
      • Using the Library
    • Software Releases
  • Examples
    • SupernovaController
    • Other Examples
  • Troubleshooting
    • Solving USB Connection Issues on Linux
  • FAQ
    • What is a host adapter?
    • What protocols are supported?
    • Can multiple devices be used at the same time?
    • Where can I find the product datasheet?
    • Is there a GUI available?
    • Is the ADC calibrated?
    • Is the DAC calibrated?
  • Returns & Warranty
    • 90-Day Return Policy
    • 2-Year Warranty
  • Dropping Legacy Terminology
  • Contact Us
  • Orders & Shipping
    • Place an Order
    • Requesting a Quotation
    • Placing a Purchase Order
    • Shipping Policy
    • International Shipping
    • Tax Exemption
    • Discounts
    • Distributors
Powered by GitBook
On this page
  • Set Voltage
  • UART Initialization
  • UART Configuration
  • UART Send
  • UART Interruption Notification Message
  1. User Guide
  2. Protocols and Interfaces
  3. Bridge 1.1 API

Bridge 1.1 API - UART Commands

PreviousBridge 1.1 API - SPI CommandsNextBridge 1.1 API - GPIO Commands

Last updated 4 days ago

Set Voltage

See .

UART Initialization

  • Command Request:

    {
      "transaction_id": "1",
      "command": "uart_init",
      "params": {
        "baudRate": "<600|1200|2400|4800|9600|14400|19200|38400|56000|57600|115200>",
        "hardwareHandShake": <Boolean>,
        "parity": "<0|1|2>",
        "dataSize": "<0|1>",
        "stopBit": "1"
      }
    }
    • Field Descriptions:

      • parity Sets the UART parity mode: 0 = No parity, 1 = Even parity, 2 = Odd parity.

        • dataSize Defines the number of data bits per frame: 0 = 7-bit, 1 = 8-bit.

        • stopBit Selects the number of stop bits: 0 = 1 stop bit, 1 = 2 stop bits.

  • Responses:

    • Immediate Promise Response:

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": true,
        "data": {
          "command": "uart_init"
        }
      }
    • Final Response:

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "uart_init",
          "status": "success"
        }
      }

UART Configuration

  • Command Request:

    {
      "transaction_id": "1",
      "command": "uart_config",
      "params": {
        "baudRate": "<600|1200|2400|4800|9600|14400|19200|38400|56000|57600|115200>",
        "hardwareHandShake": <Boolean>,
        "parity": "<0|1|2>",
        "dataSize": "<0|1>",
        "stopBit": "1"
      }
    }
    • Field Descriptions:

      • parity Sets the UART parity mode: 0 = No parity, 1 = Even parity, 2 = Odd parity.

        • dataSize Defines the number of data bits per frame: 0 = 7-bit, 1 = 8-bit.

        • stopBit Selects the number of stop bits: 0 = 1 stop bit, 1 = 2 stop bits.

  • Responses:

    • Immediate Promise Response:

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": true,
        "data": {
          "command": "uart_config"
        }
      }
    • Final Response:

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "uart_config",
          "status": "success"
        }
      }

UART Send

  • Command Request:

    {
      "transaction_id": "1",
      "command": "uart_send",
      "params": {
        "writeBuffer": "<Hex String (e.g. DEADBEEF)>"
      }
    }
  • Responses:

    • Immediate Promise Response:

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": true,
        "data": {
          "command": "uart_send"
        }
      }
    • Final Response:

      {
        "transaction_id": "1",
        "status": "success",
        "type": "command_response",
        "is_promise": false,
        "data": {
          "is_response_to": "uart_send",
          "status": "success"
        }
      }

UART Interruption Notification Message

{
  "transaction_id": "0",
  "status": "success",
  "type": "notification",
  "is_promise": false,
  "data": {
    "type": "UART_MESSAGE_RECEIVED",
    "payload": <Array of 2-Byte Hex String (e.g. ["DE", "AD", "BE", "EF"])>,
    "payload_length": 4
  }
}
Set Bus Voltage