getodk / collect

ODK Collect is an Android app for filling out forms. It's been used to collect billions of data points in challenging environments around the world. Contribute and make the world a better place! ✨📋✨
https://docs.getodk.org/collect-intro
Other
716 stars 1.37k forks source link

Problem with printing from the Zebra iMZ220 printer #1800

Closed mmarciniak90 closed 6 years ago

mmarciniak90 commented 6 years ago

Software and hardware versions

Collect v1.12.2

Problem description

Zebra iMZ220 printer do not print

Steps to reproduce the problem

  1. ODK Zebra Printed is installed on device
  2. ODK Sensors is installed on device
  3. Zebra iMZ220 is correctly connected with device
  4. User uses 'All widgets' form and tries to print
  5. User clicks on 'Print' button on ODK Zebra Printer
  6. The printer is not responding

Expected behavior

The printer prints

Other information

Useful links: https://play.google.com/store/apps/details?id=org.opendatakit.sensors&hl=en https://play.google.com/store/apps/details?id=org.opendatakit.sensors.drivers.zebra.bt&hl=en https://opendatakit.org/use/sensors/zebra-printer-driver/ I checked also on this form: print.xml.txt

grzesiek2010 commented 6 years ago

@lognaturel I can take a look at it since we have this device (but when I'm free not now).

lognaturel commented 6 years ago

Very cool that you could try this @mmarciniak90 and that you will be able to look into it @grzesiek2010! It will be interesting to find out whether this issue happens with all Android versions or just some.

lognaturel commented 6 years ago

FYI, The code for the Zebra Printer app is at https://github.com/opendatakit/sensordrivers/tree/ce9cb29262c51beeebd96d045fbf6410d9953046/ZebraMzSeriesPrinter

grzesiek2010 commented 6 years ago

@lognaturel

Printing works, the form was wrong. Here is an example: pinting.xlsx (You need to add all answers otherwise Zebra Printer crashes).

I also updated https://docs.google.com/spreadsheets/d/1af_Sl8A_L8_EULbhRLHVl8OclCfco09Hq2tqb9CslwQ/edit#gid=0

@yanokwa As I said it works but I also noticed some crashes additionally both apps (Zebra Printer and Sensors) look a bit old-fashioned since the last version was released in 2013. I would like to review those repositories and refresh them / solve problems. Let me know if it's a good idea. I think it's worth taking a look since we have a printer and maybe in we can work on printing itself too (add something etc).

grzesiek2010 commented 6 years ago

@mmarciniak90 Please close the issue.

yanokwa commented 6 years ago

@grzesiek2010 This isn't a huge priority, but I agree that we should leverage the fact that you the printer and perhaps modernize the app. Some quick questions I have:

  1. Are there turnkey Zebra printer drivers that we can use or does this really have to be custom?
  2. If it does have to be custom, does it make sense to strip it out sensors and put it in a smaller standalone app that is easier to maintain?
  3. DId you know about https://github.com/dimagi/zebra-print-android?