#it-dev_code

1 messages · Page 1 of 1 (latest)

chilly sailBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1369653542318506084

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

pastel dirge
#

👋 happy to help

#

what's your question exactly?

low fox
#

Trouble Discovering WisePAD3

Hello all,

I’m working on an Android app on a Sunmi V2 device and can’t get the Stripe WisePAD 3 reader to show up in discovery. I can connect Sunmi’s native card reader no problem, but when I switch to the WisePAD 3 it never appears.

My setup:

Android: compileSdk 33 / minSdk 26 / targetSdk 33

Stripe Terminal SDK: 2.23.4

Reader: WisePAD 3 (WPC32, S/N WPC323127003826)

Discovery code (USB):
Callback disconnectCallback = new Callback() {
@Override
public void onSuccess() {
String connectLocationId = Define.STRIPE_LOCATION_ID; //test_mode
DiscoveryConfiguration config = new DiscoveryConfiguration(30,DiscoveryMethod.USB,false,connectLocationId);
viewModel.discoveryTask = Terminal.getInstance().discoverReaders(config, new DiscoveryListener() {
@Override
public void onUpdateDiscoveredReaders(@NonNull List<Reader> readers) {
if (readers.size() > 0) {
cancelDiscovery();
connectUsbReader(readers.get(0));
}
}
}, new Callback() {
@Override
public void onSuccess() {
viewModel.discoveryTask = null;
}
@Override
public void onFailure(@NotNull TerminalException e) {
showErrorMessage("Discovery failed: " + e.getErrorMessage());
}
});
}
@Override
public void onFailure(@NotNull TerminalException e) {
showErrorMessage("Failed to disconnect reader: " + e.getErrorMessage());
}
};
Terminal.getInstance().disconnectReader(disconnectCallback);

Questions for the community:

  1. Has anyone integrated WisePAD 3 on a Sunmi V2 (or similar industrial Android device)?
  2. Are extra Android permissions or USB host flags required?
  3. Any hidden config steps for locating readers on non-standard Android builds?
    Thanks.
pastel dirge
#

I'm not sure they're compatible to be honest

#

Questions for the community:
this channel is staffed by Stripe engineers

#

have you tried connecting through BLE?

low fox
#

of course, I tried.

#

I also tried Stripe Terminal SDK: 3.5.0, but same result, not discovered the WisePAD 3 Card Reader.

chilly sailBOT
odd tinsel
#

hey there, i am confused by the question here. You've mentiuned two different reader devices: Wisepad 3 and Sunmi v2.

#

What exactly are you trying to do?

low fox
#

My purpose is to "Discover WisePad3 and Connect it on Android App of Sunmi v2 Device".

#

By using Bluetooth or USB Cable.

odd tinsel
#

Ahh, you're trying to connect to the WP3 from the Sunmi device. Gotcha.

low fox
#

Yes, You are right.

odd tinsel
#

SO all we say is that you need to use a power+data cable (not charging only) and that your android device needs to have permission to communicate with the reader.
https://docs.stripe.com/terminal/payments/connect-reader?terminal-sdk-platform=android&reader-type=usb#discover-readers

You must use a USB cable that supports both data and charging, like the USB 2.0 cable that’s included with the Stripe Reader M2 and BBPOS WisePad 3. If the cable included with your Terminal reader is charge-only, use a third-party USB 2.0 cable that can also transfer data.

Make sure the reader is powered on and connected with a USB 2.0 cable to the device running your app, and permission has been granted to access the USB-connected reader.

#

I'm not aware of any specific limitations beyond that

low fox
#

My USB Cable is new power+data cable, And How can I check the permission on my device?

odd tinsel
#

I'm not sure -- in my experience plugging in a USB device creates a notification to give permission, but often this is to allow a computer ot read from the device

low fox
#

Yes, I saw the notification and already gave the permission to the Android App.

odd tinsel
#

Ok, but the discovery is not including the WP3? Have you tried another reader on that mobile device, or the same WP3 on another mobile device?

#

and what happens when you unplug USB and try bluetooth discovery?

low fox
#

with bluetooth discovery, I found discovering started, but no results.

#

And when I tried to discover the reader in 'Settings'/'Bluetooth' on the Main System, I found the device(it was phone icon).

#

I don't have any other devices.

odd tinsel
#

The reader should not be paired via bluetooth settings on the POS device, only using discovery

low fox
#

ok, I will unpair the device and try again.

#

okay?