Skip to content
MLTK 0.20.0 documentation logo
Machine Learning Toolkit J-Link Stream
Type to start searching
    MLTK Github Repository
    • Gecko SDK Documentation
    • Tensorflow-Lite Micro Repository
    • Tensorflow Documentation
    • API Reference
    • Utilities
    MLTK Github Repository
    • Basics
    • Overview
    • Why MLTK?
    • Installation
    • Command-Line
    • Modeling Guides
    • Usage
    • Tutorials
    • API Examples
    • API Reference
      • Model Operations
      • MLTK Model
      • Tensorflow-Lite Micro Model
      • Tensorflow-Lite Model
      • Keras Model
      • Data Preprocessing
      • Utilities
    • Reference Models
    • Reference Datasets
    • C++ Development
    • C++ Examples
    • Audio Related
    • Keyword Spotting Overview
    • Audio Feature Generator
    • Audio Utilities
    • Other Information
    • Frequently Asked Questions
    • Quick Reference
    • Supported Hardware
    • Notebook Examples Guide
    • Settings File
    • Environment Variables
    • J-Link Stream
      • Example Usage
      • API Reference
    • home
    • API Reference
    • Utilities
    • J-Link Stream

    J-Link Stream¶

    This allows for transferring binary data between a Python script and a JLink-enabled embedded device via the debug interface.

    NOTE: The embedded device must be running the jlink_stream C++ library for this Python package to work.

    Example Usage¶

    The following is a snippet taken from classify_audio_mltk_cli.py

    from mltk.utils.jlink_stream import (JlinkStream, JLinkDataStream)
    
    with JlinkStream() as jlink_stream:
       audio_stream = jlink_stream.open('audio', mode='r')
       chunk_data = audio_stream.read_all(audio_stream.read_data_available)
    
    

    API Reference¶

    mltk.utils.jlink_stream.JlinkStream

    This allows for transferring binary data between a Python script and a JLink-enabled embedded device via the debug interface

    mltk.utils.jlink_stream.JLinkDataStream

    JLink data stream

    mltk.utils.jlink_stream.JlinkCommandStream

    Helper class for issuing a command/response to embedded device via J-Link

    mltk.utils.jlink_stream.JlinkStreamOptions

    JLinkStream configuration options

    arrow_upwardBack to Top
    Previous mltk.utils.uart_stream.UartStream
    Next mltk.utils.jlink_stream.JlinkStream
    © Copyright 2025, Silicon Labs.
    Last updated on Mar 24, 2025.
    Created using Sphinx 5.3.0. and Material for Sphinx

    Important: We use cookies only for functional and traffic analytics.
    We DO NOT use cookies for any marketing purposes. By using our site you acknowledge you have read and understood our Cookie Policy.

    Got it