Post by dabs on Feb 18, 2023 14:36:30 GMT
Hi,
I have a very specific problem regarding the Zebra RS5100 Bluetooth scanners, particularly when working against the WT6300 devices.
My setup is that I have a regular Rho application, created a few years ago, and it uses the EMDK to operate the scanners. For the pages where the user should be able to use the scanner, I will try to connect the scanner as late as possible in the page lifecycle, and disconnect it as soon as possible. We are using JQuery Mobile, the scanners are enabled inside pagecontainerchange, and are then disabled during pagecontainerbeforeload.
For reference, after some debugging, I believe that the order of events is as follows, for a single page change from page A to page B:
pagecontainerbeforechange
pagecontainerbeforeload
pagecontainerload
pagecreate
pagecontainerbeforechange
pagecontainerbeforetransition
pagecontainerbeforehide
pagecontainerbeforeshow
pagecontainerhide
pagecontainershow
pagecontainertransition
pagecontainerchange
(I'm not sure if the pagecontainerbeforechange event is actually fired twice, or if this is just due to me logging it twice, but I chose not to use this event just in case it is really fired twice).
And this works great; at least when using the built-in scanner, and maybe also when connecting the RS5100 scanner to a device such as TC52.
But when the combination is RS5100 and WT6300, something goes wrong.
What happens, is that occasionally, when the user enters a page where (s)he should be able to use the scanner, it doesn't get enabled, and it won't work at all. The user must leave that page, go to a page which doesn't use the scanner, and then reenter. Usually, that will fix this.
What I do see inside my logs are entries like the following:
EMDK3Scanner| onStatus Scanner ERROR, cannot initiate Bluetooth scanner read Already scanning. Wait for current scanning to complete.
or:
EMDK3Scanner| onStatus Scanner ERROR, cannot initiate Bluetooth scanner read The scanner device is not enabled.
Usually, the former happens first, and then the latter happens later.
I've found the code which throws this error:
searchcode.com/total-file/115662158/
(line 1506)
Has anyone experienced anything similar? Any idea what I could try to debug this or fix?
Regards,
DanĂel
I have a very specific problem regarding the Zebra RS5100 Bluetooth scanners, particularly when working against the WT6300 devices.
My setup is that I have a regular Rho application, created a few years ago, and it uses the EMDK to operate the scanners. For the pages where the user should be able to use the scanner, I will try to connect the scanner as late as possible in the page lifecycle, and disconnect it as soon as possible. We are using JQuery Mobile, the scanners are enabled inside pagecontainerchange, and are then disabled during pagecontainerbeforeload.
For reference, after some debugging, I believe that the order of events is as follows, for a single page change from page A to page B:
pagecontainerbeforechange
pagecontainerbeforeload
pagecontainerload
pagecreate
pagecontainerbeforechange
pagecontainerbeforetransition
pagecontainerbeforehide
pagecontainerbeforeshow
pagecontainerhide
pagecontainershow
pagecontainertransition
pagecontainerchange
(I'm not sure if the pagecontainerbeforechange event is actually fired twice, or if this is just due to me logging it twice, but I chose not to use this event just in case it is really fired twice).
And this works great; at least when using the built-in scanner, and maybe also when connecting the RS5100 scanner to a device such as TC52.
But when the combination is RS5100 and WT6300, something goes wrong.
What happens, is that occasionally, when the user enters a page where (s)he should be able to use the scanner, it doesn't get enabled, and it won't work at all. The user must leave that page, go to a page which doesn't use the scanner, and then reenter. Usually, that will fix this.
What I do see inside my logs are entries like the following:
EMDK3Scanner| onStatus Scanner ERROR, cannot initiate Bluetooth scanner read Already scanning. Wait for current scanning to complete.
or:
EMDK3Scanner| onStatus Scanner ERROR, cannot initiate Bluetooth scanner read The scanner device is not enabled.
Usually, the former happens first, and then the latter happens later.
I've found the code which throws this error:
searchcode.com/total-file/115662158/
(line 1506)
Has anyone experienced anything similar? Any idea what I could try to debug this or fix?
Regards,
DanĂel