developermypos / myPOS-SDK-Android

myPOS SDK Android enabling to integrate Apps with myPOS Card Terminals for Card Payments processing
45 stars 22 forks source link

Can't print ticket #8

Closed neone35 closed 3 years ago

neone35 commented 3 years ago

This is my app logcat output:

POS waiting until not busy
onPOSInfoReceived command 0 (COMMAND_NONE)
onPOSInfoReceived status 4 (POS_STATUS_TERMINAL_BUSY)
onPOSInfoReceived description Last transaction not completed yet.

Pressing retry:

POS is not busy
Going to print com.mypos.slavesdk.ReceiptData@52aa1b1...
onPOSInfoReceived command 8 (COMMAND_PRINT_RECEIPT)
onPOSInfoReceived status 80 (POS_STATUS_UNKNOWN)
onPOSInfoReceived description Something went wrong.

Pressing retry: -> repeats last block

Tried both stable 2.0.2 and now beta 2.0.7. Tried demo app also, which doesn't even connect to the terminal after being updated with latest dependencies and beta sdk. Device used is Combo.

neone35 commented 3 years ago

I also see that data is being sent to terminal: D/MPOS REQUEST: **PROTOCOL=IPP**VERSION=202**LANG=LT**METHOD=PRINT*EXT**SID=d08afb45*bf28*4bab*844d*5749693ef28a**PRINT*DATA=**022*013*014PINIG* PRI*MIMO***022*013*014KVITA...

neone35 commented 3 years ago

I've created new app to test out, here's source code: https://github.com/neone35/SlaveTest

Same output in logcat. Connecting but not printing, Android 10, slavesdk 2.0.7 beta (latest) as I can see here https://mvnrepository.com/artifact/com.mypos/slavesdk-beta?repo=jcenter

neone35 commented 3 years ago

Tried on Android 7.1.2 Nougat. Doesn't print anyway on SlaveTest app

neone35 commented 3 years ago

Contacted support on Feb 8. They asked me about serial and to send logs from terminal to them. Done that. After this they asked me about some "slave mode" which I don't have option to enable on device. On amazon D210 device page I found this answer that only myPOS can enable this function of connecting through multiple interfaces (Bluetooth and SIM), but they're very slow on doing this. Still waiting.

The process after receiving the device is as follows: After placing order for slave version for your terminal. Now you have to update it and then switch it to slave mode. To do so you can follow these steps:

  1. From the home screen press the FUNC button
  2. Press 5. Check for update and update the device
  3. After the update is done it will restart
  4. When it restarts and goes to the home screen press the FUNC button again and go to Settings menu 3
  5. Choose 6. Change profile and choose 2.Cash Register
  6. The devices will restart and will ask you what connection type you want to use – USB/Bluetooth to the master
  7. After you pick the connection type, you choose how to connect the device to the Internet – receive internet from the master (USB/Bluetooth), Wi-fi, SIM.
  8. When you connect the device in slave mode, try to initiate the printing command again from our demo app and from your own app.

If you have more questions we will answer them

Best regards, myPOS Team link

neone35 commented 3 years ago

Problem has been resolved after support has updated Combo terminal software to version 3.44. Then option to change profile appeared on Settings page 3.