device_protocols

FY3200S Series DDS Function Generator - PC Serial Protocol

Based on existing documentation and reverse engineering

Overview

This document covers the ASCII command protocol for controlling the function generator. For uploading custom waveforms, see the “Arbitrary Waveform Upload Protocol” section.

The control command line has a fixed communication baud rate of 9600bps. Commands are issued by the PC, analyzed and executed by the machine, and the results are returned to the PC.

Command Parsing & Error Handling

a command (Read Model)

Channel Parameter Commands (b: Main, d: Deputy)

w command: Set Waveform

Main Channel (bwx) Waveform IDs

Deputy Channel (dwx) Waveform IDs

f command: Set Frequency

a command: Set Amplitude

o command: Set DC Offset

d command: Set Duty Cycle

dp command: Set Deputy Wave Phase (Deputy Only)

bu command: Set Pulse Width (Main Only)

Sweep Commands

br command: Control Sweep Operation

bb command: Set Sweep Beginning Frequency

be command: Set Sweep End Frequency

bt command: Set Sweep Time

Sweep Setup Procedure (Correct Method)

This procedure replaces the incorrect method observed in the OEM software traces.

  1. Set Start Frequency: Set the sweep’s start point using the bb command.

    • bb00010000 (Sets start frequency to 100Hz)
  2. Set Stop Frequency: Set the sweep’s stop point using the be command.

    • be00020000 (Sets stop frequency to 200Hz)
  3. Set Sweep Time: Set the duration of the sweep using the bt command.

    • bt05 (Sets sweep time to 5 seconds)
  4. Set Sweep Mode: Select either Linear or Logarithmic mode.

    • bm0 (Selects Linear mode)

    • …or bm1 (Selects Logarithmic mode)

  5. Start Sweep: Begin the sweep operation.

    • br1
  6. Stop Sweep: To stop the sweep at any time, send:

    • br0

Trigger Commands

tn command: Set Trigger Cycles

tt command: Set Trigger Source

Counter Commands

bc command: Clear Counter

ce command: Read Counter Frequency

cc command: Read Counter Count

Miscellaneous Commands

cw command (Unknown)

Save/Load Commands

bs command: Save Settings

bl command: Load Settings

c command (Read Settings)

cf command: Read Main Channel Frequency

cd command: Read Main Channel Duty Cycle

ct command: Read Sweep Time

Arbitrary Waveform Upload Protocol

This is a separate, binary protocol used for uploading custom waveform data.