question

Devendra avatar image
Devendra asked ·

Remote Pay Java SDK - Clover Disconnecting Frequently

Hi,
We are getting frequent disconnection while working on Clover mini. In between of any transaction Clover mini gets disconnected even though everything is on same network.
What could be causing this problem? If this happens in production then that would be big problem.
Please assist.
Thanks,
Devendra
SaleRemote Pay Cloud
2 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi @Devendra,

Can you tell me what you are seeing on the Clover mini during a transaction that points to a disconnection?

Is this happening across multiple devices or just one? Please provide serial numbers of any affected devices.

Best,

Keith

0 Likes 0 · ·
Hi Keith,
We are checking this on our device with serial number- C030UQ71040160 and C030UQ71050037.

We are getting frequent disconnection with Clover Mini device and attached is the log for two type of different behavior. Sometimes connection is broken and Network payapp is still open and after that getting Timeout exception. Otherwise connection is broken and after that when we close Network payapp then getting Handshake exception.

We are not able to understand this behavior as this not certain. Can you please let us know the root cause for these kind of issues?

Thanks in advance!!
Regards,
Devendra
0 Likes 0 · ·

1 Answer

keithryanwong avatar image
keithryanwong answered ·
Hi @Devendra,

After fiddling around for a bit with an ethernet connection while in SNPD, I was able to reproduce the timeout error message you were seeing by:

1. Having Secure Network Pay Display app (SNPD) open and started
2. Disconnecting the Clover from the network by pulling the ethernet cord
3. Starting the connection process on the POS and leaving it running
4. Reconnecting ethernet while POS is still trying to connect

Based on this, my assumption is that your Clover Device is losing network connectivity, which is causing the disconnection you're experiencing between your POS and the device. My recommendation would be A) if your Clover is on wifi, switch it to ethernet; B) if you're on ethernet already, switch out the cord; C) if wifi is necessary, make sure that your Clover is getting a strong signal.

As for how to re-establish connection to a device that has been disconnected in this way:
SNPD relies on an internal Device Server to handle incoming requests generated by your POS through the Remote-pay SDKs, and if you re-open SNPD you'll most likely see a message along the lines of:
EADDRINUSE (Address already in use)
This requires you to go into SNPD's settings and hit 'Configure and Restart Server'. This kills and restarts the Device Server. There isn't a way to do that programatically.

I don't think the handshake exception is related to the disconnection. That exception is thrown when trying to connect through Secure Network Pay Display app (SNPD) without the SNPD being open on the device. I'm assuming that after closing SNPD, you are trying to reconnect to it without starting it again. SNPD needs to be open and running before trying to connect to it, just like when you connect for the first time.

Best,
Keith
Share
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community