0 like 0 dislike
125 views
in M1 by Q&A Freshman (102 points)

import 'package:flutter_bluetooth_printer/flutter_bluetooth_printer_library.dart';
import 'package:esc_pos_utils_plus/esc_pos_utils_plus.dart';


I am using this two packages for printing image and I can't get it done. Printer just prints two empty lines and finishes. I saw you gave example for other question where you showed how to use flutter_simple_bluetooth_printer package. Is there somekind of example for printing images?
 

  final img.Image imgImage = img.decodeImage(imgBytes)!;
    bytes += generator.image(imgImage, align: escpos.PosAlign.left);
    var data = Uint8List.fromList([
      ...bytes,
      ...reset,
    ]);
    await FlutterBluetoothPrinter.printBytes(
      address: printerAddress,
      data: data,
      keepConnected: false,
    );

Please log in or register to answer this question.

1 Answer

0 like 0 dislike
by Q&A Engineer (5.5k points)
Hello, regarding this Bluetooth printing ESC/POS command, what is the command that you call to print pictures? What is the firmware version of the equipment you tested? I want to check whether there is any corresponding update. Thank you.
by Q&A Freshman (102 points)
0 0
Thanks for reply,

I am using mentioned package (esc_pos_utils_plus) and this is source code of function (https://raw.githubusercontent.com/kechankrisna/esc_pos_utils_plus/refs/heads/nullable/lib/src/generator.dart#:~:text=///%20Print%20an%20image,50%5D%3B%0A%20%20%20%20return%20bytes%3B%0A%20%20%7D) that creates command.
firmware version: V1.3.2_20240315.090523
by Q&A Engineer (5.5k points)
0 0
This M1K firmware version is too old,
please try to download this OTA to update and test this ESC/POS command.
1. The 1.ota package is placed in the device root directory (sdcard) and renamed as update.zip.
2. Send a broadcast to M1K to trigger OTA upgrade. Broadcasting code: com.telpo.syh.upgradeservice.broadcast.
OTA package download link:
https://drive.google.com/file/d/1CLp1aGZosg7t0r5tUkW6QeHoDZGcQjrN/view?usp=drive_link

Related questions

0 like 0 dislike
1 answer 821 views
0 like 0 dislike
1 answer 368 views
0 like 0 dislike
1 answer 251 views
asked in M10 by Juan Mamani Ajata Q&A Freshman (102 points)
0 like 0 dislike
1 answer 590 views
asked in K8 by Sthing Q&A Freshman (105 points)
0 like 0 dislike
1 answer 270 views
0 like 0 dislike
2 answers 553 views
asked in TPS320 by Hasan Q&A Freshman (102 points)
0 like 0 dislike
1 answer 533 views
0 like 0 dislike
1 answer 117 views
0 like 0 dislike
1 answer 136 views
asked in K10 by JohnP Q&A Freshman (102 points)
Welcome to Telpo Q&A,

If you have a technical question ,please ask here, in English.

If you have faulty devices need be repaired,please create a issue ticket.

Please inquiry your ticket.

Notice :If you have an urgent question or cannot register account of Q&A, you can contact the online support in below jivochat .

Categories

...