パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.0.0

flutter_nordic_dfu

このライブラリを使用すると、Nordic Semiconductor の nrf51 または nrf52 チップのデバイスファームウェア更新 (DFU) を実行できます。現在は Android のみ対応しています。

AndroidiOS
30日間ダウンロード
76
いいね数
24
Pub ポイント
135

パッケージをインストール

flutter pub add flutter_nordic_dfu

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

flutter_nordic_dfu は、Nordic Semiconductor の nRF51 および nRF52 チップ向けにデバイスファームウェア更新(DFU)を可能にする Flutter パッケージです。Android デバイス上で Bluetooth Low Energy を介して空中経由のファームウェア更新を実現し、Nordic DFU プロトコルを利用しています。このパッケージは、Android 向けの Flutter アプリとシームレスに統合され、ファームウェアアップグレードを開始・管理するための簡単な API を提供します。現在は Android に限定されていますが、Bluetooth Low Energy を通じて安全かつ信頼性の高いファームウェア送信をサポートしています。リモートでのデバイスメンテナンスが必要な IoT アプリケーションに最適です。

用途

  • BLEデバイスのリモートファームウェア更新
  • 現場でのnRF5xベースのハードウェアの更新
  • Android環境におけるIoTデバイス管理
  • オーバーザエアデバイスメンテナンス
  • 組み込みシステムのファームウェアアップグレード

主な機能

  • nRF51およびnRF52チップをサポートしています
  • Android専用の実装
  • Bluetooth Low Energyの統合
  • セキュアなファームウェア転送
  • シンプルな Flutter API
  • ノルディックDFUプロトコル準拠

適している対象

  • nRFチップを使用するIoT開発者
  • Android向けのBLEアプリケーション
  • ファームウェア更新の自動化
  • ハードウェア製品のメンテナー
  • 埋め込みデバイス用のモバイルアプリ開発者

注意事項

  • Android プラットフォームに限定
  • 互換性のあるnRFハードウェアが必要です
  • iOS 対応なし
  • Bluetooth 権限が必要です
  • ファームウェアファイル形式は、Nordic DFU に対応している必要があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter-nordic-dfu pub package

This library allows you to do a Device Firmware Update (DFU) of your nrf51 or nrf52 chip from Nordic Semiconductor. It works for Android and iOS fine.

This is the implementation of the reference "react-native-nordic-dfu"

For more info about the DFU process, see: Resources

Run Example-->Amazing

  1. Add your dfu zip file to example/assets/file.zip

  2. Run example project

  3. Scan device

  4. Start dfu

Usage

startDFU
Examples

You can pass an absolute file path or asset file to FlutterNordicDfu

Use absolute file path
/// You can define your ProgressListenerListener
await FlutterNordicDfu.startDfu(
            'EB:75:AD:E3:CA:CF', '/file/to/zip/path/file.zip',
            progressListener: ProgressListenerListener(),
         );


class ProgressListenerListener extends DfuProgressListenerAdapter {
  @override
  void onProgressChanged(String deviceAddress, int percent, double speed,
      double avgSpeed, int currentPart, int partsTotal) {
    super.onProgressChanged(
        deviceAddress, percent, speed, avgSpeed, currentPart, partsTotal);
    print('deviceAddress: $deviceAddress, percent: $percent');
  }
}

/// Or you can use DefaultDfuProgressListenerAdapter
await FlutterNordicDfu.startDfu(
      'EB:75:AD:E3:CA:CF',
      'assets/file.zip',
      fileInAsset: true,
      progressListener:
          DefaultDfuProgressListenerAdapter(onProgressChangedHandle: (
        deviceAddress,
        percent,
        speed,
        avgSpeed,
        currentPart,
        partsTotal,
      ) {
        print('deviceAddress: $deviceAddress, percent: $percent');
      }),
    );
Use asset file path
/// just set [fileInAsset] true
await FlutterNordicDfu.startDfu(
            'EB:75:AD:E3:CA:CF', 'assets/file.zip',
            progressListener: ProgressListenerListener(),
            fileInAsset: true,
         );

class ProgressListenerListener extends DfuProgressListenerAdapter {
  @override
  void onProgressChanged(String deviceAddress, int percent, double speed,
      double avgSpeed, int currentPart, int partsTotal) {
    super.onProgressChanged(
        deviceAddress, percent, speed, avgSpeed, currentPart, partsTotal);
    print('deviceAddress: $deviceAddress, percent: $percent');
  }
}

Resources

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。