developermypos/myPOS-SDK-Android

Nothing works out of the box with D200

Closed this issue · 1 comments

Hi guys,

I just got my D200 to use in MVP project of a kiosk app for our customer. The terminal itself was activated and works great - I can take payments ok.

Now I'm trying to connect the terminal to the android device to control payments from our kiosk app. So this is where the problems begins:

  1. I can't find how can I pair the terminal with the phone by Bluetooth - the only option I have is to use Bluetooth for providing internet access. But ok, we wired it with the usb cable.

  2. I compiled and run your demo app from the master branch and changed connection type to USB in order to get it work - it sees the terminal and connects. However 50/50 times it crahses somewhere inside the SDK with the NPE. When it is not crashing - I can't execute any command - getting the message "Last transaction not completed yet."

  3. I switched to your second "new features" branch - it does not crash there at all but the rest is the same - any button I press results in the same message - "Last transaction not completed yet."

Also, I constantly do see the following lines in our device logcat:

2019-06-11 21:56:25.486 21794-21833/eu.leupau.mypossdkdemo D/COMM LOG: TRY TO CONNECT 2019-06-11 21:56:25.862 21794-21833/eu.leupau.mypossdkdemo D/COMM LOG: TRY SEND DATA 2019-06-11 21:56:25.866 21794-21835/eu.leupau.mypossdkdemo D/COMM LOG: START LISTENING THREAD

Please advice?

P.S. Our company is Bulgaria based and both MyPOS.eu account and terminal were registered and purchased in BG, in case this does matter.

Thanks!

Got a reply from MyPOS support (I have asked them as well) and the issue is solved. The device must be prepared for SDK mode by the MyPOS support. You have to file a request and ask them for this.

Hello Mr. Livotov,

To use our Android SDK with the Mini, you must have our device in Slave mode - that is the integration mode. I have set a Slave version for your device with Serial Number XXXXXXXX. 

You can proceed with updating it by going to the F2 Settings menu and then Check for update. Once it updates with the slave version, you can go to the F2 Settings menu on page 3, and Change Profile to > Cash Register.

After you switch to Cash register (slave) mode, you can connect the device to your Android master device via Cable or Bluetooth.

Guys, you should really post this information to your readme.md page as otherwise this is not clear at all. There is really no information on preparing the physical device for SDK mode neither in device manual paper not on a website. Really confusing.

Have a great day,
Dmitri