#santhosh-kumar-r_api

1 messages ¡ Page 1 of 1 (latest)

dense fiberBOT
#

👋 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/1425822674050875426

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

ocean robin
#

hey there! looking into your question now

#

and since you're using a USB connection, you may need to unplug it and reconnect

dense fiberBOT
blazing grail
#

how can we unplug after 5-6 hrs or if there is a issue.

blazing grail
blazing grail
calm brook
#

hi there, taking over for my colleague, give me some time to catch up

blazing grail
# blazing grail we already added this

we did this already.
but still it is not connecting.
how much time will it take ?

const params: any = {
reader,
autoReconnectOnUnexpectedDisconnect: true,
locationId,
};

const {error, reader: connected} = await connectReader(
  params,
  discoveryMethod,
);
#

We already contacted the support. They said that you can call connectReader again.
so we implemented periodic check to status of reader.
We got this error.
"USB unexpectedly disconnected during operation"

in What cases , this error will happen ?

calm brook
blazing grail
calm brook
#

that's possible but I wanted to make sure. if that's the case, it could be a faulty USB cable. also make sure that you're using a USB 2.0 type cable

blazing grail
#

This is for one cabinet but we are also facing pos disconnect issue in all cabinets even though we added auto-reconnect: true.

blazing grail
calm brook
#

it will be in onDidDisconnect callback

blazing grail
#

yes. i added too.

#

let me check if any logs

blazing grail
# blazing grail let me check if any logs

unfortunately i think it was not recorded in that.
but we are getting logs for
onDidChangeConnectionStatus "not connected"

onDidChangeConnectionStatus "connecting"
etc.

#

so if we add autoReconnect: true, we dont need to manually disconnect and reconnect.
just confirming

calm brook
#

that should be the case, yes. if you still are having problems after that, I would recommend making sure you're following the recommendations at the top of this doc for SDK version and ensuring you're using the correct type of USB cable

blazing grail
#

can we reproduce this automatic disconnect behaviour in simulate reader ?

calm brook
#

I don't believe so, no. let me see if I can find anything about that