Customer units include RAW, STREAM and SAM. They start in STREAM with acquisition stopped.
| Task | Application and operation | Device API |
|---|---|---|
| Preserve original headerless packets | RAW | RAW API |
| Choose an IQ profile and channel group, then record | STREAM | STREAM API |
| Read spectra and snapshots, control supported outputs | SAM | SAM API |
ULMUS · Device SDK · DAQ Server
| Task | Endpoint | Your program handles |
|---|---|---|
| Read status, set NCO or start and stop capture | Management network, POST http://DEVICE_IP:8081/rpc |
Authentication, response validation, and state readback |
| Discover the current application's methods and parameters | Management network, GET http://DEVICE_IP:8080/api/v1/manifest |
Select methods for the active application and revision |
| Receive capture data | The R508 sends UDP over the 100G data network | Bind the receiver address and port, decode and save according to the application protocol |
| Goal | Option | Your remaining responsibilities |
|---|---|---|
| Query, configure, start or stop the device | A standard HTTP/JSON-RPC client on the R508 management link | Authentication, application/version matching, units, errors and exclusive control. A reachable API does not establish saved IQ. |
| Use an existing service for tasks and files | Call the deployed DAQ Web/API | The client machine needs no SDK; DAQ on the receiver still depends on the matched SDK. This is not a system with no SDK dependency. |
| Receive and process IQ yourself | Implement UDP reception, decoding and saving against the public application protocol | Receive resources, flow ordering, channels/IQ rate/header, stop/drain, valid lengths, continuity and storage budget. |
The direct-RPC and first-packet exercises below are introductory. A small standard-socket capture is not sustained full-rate qualification. Do not mix application-specific headers or headerless IQ contracts, and do not invent source sequence numbers for headerless data. For several devices, plan management/data addresses and separate DAQ instances first; duplicating a configuration or changing one port does not establish DPDK isolation.
r508_direct.py. Run python3 r508_direct.py R508_MANAGEMENT_IP, replacing R508_MANAGEMENT_IP with your device's actual management IP. Paste the device token when prompted. The example uses the native HTTP endpoint over a trusted management network.state returned by system.status. Reuse call() with a method and named parameters from the active manifest. For example, when the manifest lists adc.frequency.get, pass {"channels":[0]} to read the NCO frequency of logical CH0.For a browser-based application, have your backend hold the device token, call RPC and receive UDP. The browser requests status and results from your backend.
Management or receiving host · Prepare networking for the stated device contract. Substitute addresses, credential files and receiver settings.
"""Copyright (C) LogicRF Technologies (Chengdu) Co., Ltd. All Rights Reserved.
@file r508_direct.py
@brief Query R508 identity over JSON-RPC.
@details This standard-library example is the shared source for both languages
of the public developer guide. It runs on the customer's host.
@author LogicRF Technologies
@architect LogicRF
@email info@logicrf.com
@website https://www.logicrf.com
@version 1.0.0
@date 2026-11-18
"""
import argparse
import getpass
import http.client
import json
import uuid
def call(device_ip, token, method, params=None):
"""Send one request and return its matched result, without automatic retries."""
request_id = uuid.uuid4().hex
request = {"jsonrpc": "2.0", "id": request_id, "method": method,
"params": {} if params is None else params}
connection = http.client.HTTPConnection(device_ip, 8081, timeout=15)
try:
connection.request("POST", "/rpc", json.dumps(request), {
"Content-Type": "application/json",
"Authorization": f"Bearer {token}",
})
response = connection.getresponse()
if response.status != 200:
raise RuntimeError(f"{method}: HTTP {response.status}")
reply = json.loads(response.read(1024 * 1024))
finally:
connection.close()
if reply.get("jsonrpc") != "2.0" or reply.get("id") != request_id:
raise RuntimeError(f"{method}: unexpected JSON-RPC response")
if "error" in reply:
raise RuntimeError(f"{method}: JSON-RPC error {reply['error']['code']}")
return reply["result"]
def main():
"""Query the current device identity from the management host."""
parser = argparse.ArgumentParser()
parser.add_argument("device_ip")
args = parser.parse_args()
token = getpass.getpass("Device token: ")
status = call(args.device_ip, token, "system.status", {})
print(json.dumps(status, ensure_ascii=False, indent=2))
if __name__ == "__main__":
main()
Save the preceding r508_direct.py and the code below as stream_first_packet.py in the same directory. In ULMUS, confirm that eagle_r508_stream250 is active. Reserve exclusive control, finish any DAQ or Workbench capture and stop DAC outputs affected by shared clock changes. Check the provisioned receiver address and UDP port.
On the receiver run python3 stream_first_packet.py DEVICE_IP LOCAL_DATA_IP UDP_PORT with the actual management IP, local data NIC address and configured destination port. Enter a device token with capture permissions at the prompt. The example prints the sequence and one I/Q pair per ADC1–8, then stops the sender. After a timeout or loss of connectivity, read the actual device state before retrying. Profile and packet format
Management or receiving host · Prepare networking for the stated device contract. Substitute addresses, credential files and receiver settings.
"""Copyright (C) LogicRF Technologies (Chengdu) Co., Ltd. All Rights Reserved.
@file stream_first_packet.py
@brief Receive one STREAM V1 IQ datagram on an exclusively owned R508.
@details Uses call() from r508_direct.py in the developer guide.
@author LogicRF Technologies
@version 1.0
"""
import argparse
import getpass
import socket
import struct
from r508_direct import call
def decode(packet):
"""Validate the eight-channel example profile and return sequence and first IQ pairs."""
if len(packet) != 8192:
raise ValueError("Expected one complete 8192-byte UDP payload")
magic, version, words, station, kind, mask, flags, sequence = struct.unpack_from("<IBBBBHHQ", packet)
if (magic, version, words, kind, mask) != (0x53594E43, 1, 1, 1, 255):
raise ValueError("Expected eight-channel V1 ADC IQ")
if struct.unpack_from("<QH", packet, 36) != (500_000_000, 1):
raise ValueError("Unexpected NCO or sample-rate ID")
if struct.unpack_from("<4H", packet, 48) != (127, 8128, 1, 127):
raise ValueError("Unexpected IQ payload layout")
return sequence, list(struct.iter_unpack("<hh", packet[64:96]))
def capture(rpc, local_ip, udp_port):
"""Bind first, configure the idle sender, verify its response and stop our acquisition."""
status = rpc("system.status")
if (status.get("device_id"), status.get("state"), status.get("udp_running")) != (
"eagle-r508-stream250", "ready", False
) or rpc("clock.status").get("locked") is not True:
raise RuntimeError("Check app identity, readiness, idle sender and clock lock")
profile = {"profile": "BW8M_10MSPS", "channel_mask": 255, "flow_count": 1,
"header_enabled": True, "center_frequency_hz": 500_000_000}
choices = rpc("stream.profile.list")["profiles"]
if not any(p["profile"] == profile["profile"] and 255 in p["channel_masks"] for p in choices):
raise RuntimeError("This profile and channel group are unavailable")
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as receiver:
receiver.bind((local_ip, udp_port))
receiver.settimeout(8)
rpc("stream.profile.set", profile)
current = rpc("stream.profile.get")
target = current["target"]
if current.get("ready_to_start") is not True or any(
target.get("name" if key == "profile" else key) != value for key, value in profile.items()
):
raise RuntimeError("Readback does not match the requested profile")
rpc("udp.configure")
try:
rpc("udp.start")
packet, peer = receiver.recvfrom(65535)
sequence, samples = decode(packet)
print("Peer:", peer, "sequence:", sequence, "ADC1–8 (I,Q):", samples)
finally:
# We established exclusive control and an idle sender before starting.
if rpc("system.status")["udp_running"]:
rpc("udp.stop")
if rpc("system.status")["udp_running"]:
raise RuntimeError("Sender still active; check the device")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
parser.add_argument("device", help="R508 management address")
parser.add_argument("local_ip", help="provisioned receiver NIC address")
parser.add_argument("udp_port", type=int, help="provisioned destination UDP port")
args = parser.parse_args()
token = getpass.getpass("Named device token: ")
capture(lambda method, params=None: call(args.device, token, method, params), args.local_ip, args.udp_port)
DAQ task ownership, drain and valid file length · SDK buffer ownership and release · IQ calibration reference
Check the reference channel, test frequencies and data format before applying coefficients. ADC1–7