flutter_ymodem_lib 0.0.2
flutter_ymodem_lib: ^0.0.2 copied to clipboard
A pure Dart YModem file transfer protocol for Flutter: zero native code on Android, iOS, Windows, macOS and Linux. Perfect for BLE OTA firmware upgrades.
0.0.2 #
- Add the
crcTrailingZerosoption (engine, packet builders andCrc16.calc):0(default) uses the standard CRC-16/XMODEM as the Android reference library,2replicates theCccal_CRC16CRC variant of the iOS library YModemlib_iOS, required by the bootloader firmware of some devices. - Improve pub.flutter-io.cn metadata: add
homepage/repository, shorten the package description. - Use
package:imports inlib/(Dart file conventions).
0.0.1 #
- Initial release.
- Pure Dart YModem sender engine ported from
YModemlib_Android:
- hello handshake, package 0 (file name / size / MD5), 128 (SOH) and
1024 (STX) data packages, EOT and final package handshake,
MD5_OK/MD5_ERRsupport; - CRC-16/XMODEM (big-endian in the frame), plus an optional
crcTrailingZeros: 2variant compatible with the iOS library YModemlib_iOS (Cccal_CRC16); - automatic retransmission on
NAK/ timeout,CANhandling,stop()cancellation; - split BLE notification responses (
ACK+C, splitMD5_OK).
- hello handshake, package 0 (file name / size / MD5), 128 (SOH) and
1024 (STX) data packages, EOT and final package handshake,
- Streaming
YModemSourcewithYModemFileSourceandYModemBytesSourceimplementations. - Registered as a Dart-only plugin for Android, iOS, Windows, macOS and Linux (zero native code).
- Full example app for all five platforms with
flutter_blue_plus(2.3.12, Windows backendflutter_blue_plus_winrt0.0.20), file picking, MTU negotiation, chunked writes and a live protocol log. - Unit tests: CRC vectors, package layout, end-to-end transfers against a fake receiver, retries, timeout and cancellation.