Closed abelatar closed 1 year ago
We've clarified profile creation in the doc, and to further make things easier we now create a profile. See the doc for more info
The scanning issue arises when the app is placed in the background with profile0 desabled. Upon return, the scan works the first time but deactivates on the second attempt. I've imported this dependency : implementation 'com.enioka.scanner:provider-cs-zebra-dw:2.3.8'.
Steps to reproduce:
1 - Open any screen in the app that supports laser scanning. 2 - Activate the laser scanning feature. 3 - Confirm that the laser scanning functions correctly. 4 - Place the app in the background (don't fully close it). 5 - Return to the app. 6 - Attempt a laser scan. 7 - Note whether the scan works or not (in my case, it doesn't). 8 - Repeat from step 4
D Scanner activity is starting 207974906
I Scanner activity is resuming 207974906
I Resuming scanner activity - scanners will be (re)connected
ZebraD...vider D Sending intent to scanner to enable the trigger
ScannerService D Registering new client: com.geodis.mobicop.ScanDriverCodeActivity@c6571fa 207974906
D Notifying late clients that providers are already discovered
D Notifying late clients that scanners are already connected
Scanne...ivity I Activity can now use all received scanners (1)
ZebraDwScanner D Received data from DW service
I PROFILE_SWITCH: profileName: Profile0 (default), profileEnabled: false
D Sending DW action. DW command ID: 29539A793B954065A8E8B438D1E95E68 Intent action: com.symbol.datawedge.api.ACTION
com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS=Bundle[{decoder_ean8=false, decoder_upca=false, decoder_aztec=false, decoder_upce0=false, decoder_mailmark=false, decoder_maxicode=false, decoder_codabar=false, decoder_datamatrix=false, decoder_code39=false, decoder_pdf417=false, decoder_qrcode=false}]
SEND_RESULT=true
COMMAND_IDENTIFIER=29539A793B954065A8E8B438D1E95E68
D Received data from DW service
D Received result for datawedge command com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS - FAILURE - 29539A793B954065A8E8B438D1E95E68
E Zebra DataWedge command failure: PROFILE_NAME = Profile0 (default)
RESULT_CODE = [Ljava.lang.String;@af65da6
#Intent;action=com.symbol.datawedge.api.RESULT_ACTION;category=android.intent.category.DEFAULT;launchFlags=0x10;S.RESULT=FAILURE;S.COMMAND_IDENTIFIER=29539A793B954065A8E8B438D1E95E68;S.COMMAND=com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS;end
Scanne...ivity I Scanner activity is being paused 207974906
ZebraD...vider D Sending intent to scanner to disable the trigger
Scanne...ivity I Scanner activity is being stopped 207974906
D Scanner activity is starting 207974906
I Scanner activity is resuming 207974906
I Resuming scanner activity - scanners will be (re)connected
ZebraD...vider D Sending intent to scanner to enable the trigger
ZebraDwScanner D Sending DW action. DW command ID: 449AB912310F48C58D76EAF8EB34D360 Intent action: com.symbol.datawedge.api.ACTION
com.symbol.datawedge.api.SWITCH_TO_PROFILE=com.geodis.mobicop
SEND_RESULT=true
COMMAND_IDENTIFIER=449AB912310F48C58D76EAF8EB34D360
ScannerService D Registering new client: com.geodis.mobicop.ScanDriverCodeActivity@c6571fa 207974906
D Notifying late clients that providers are already discovered
D Notifying late clients that scanners are already connected
Scanne...ivity I Activity can now use all received scanners (1)
ZebraDwScanner D Received data from DW service
D Received result for datawedge command com.symbol.datawedge.api.SWITCH_TO_PROFILE - SUCCESS - 449AB912310F48C58D76EAF8EB34D360
D Profile switch done with success
D Received data from DW service
I PROFILE_SWITCH: profileName: com.geodis.mobicop, profileEnabled: true
D Sending DW action. DW command ID: E08031B23190416A8A58CC9D526A761D Intent action: com.symbol.datawedge.api.ACTION
com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS=Bundle[{decoder_ean8=false, decoder_upca=false, decoder_aztec=false, decoder_upce0=false, decoder_mailmark=false, decoder_maxicode=false, decoder_codabar=false, decoder_datamatrix=false, decoder_code39=false, decoder_pdf417=false, decoder_qrcode=false}]
SEND_RESULT=true
COMMAND_IDENTIFIER=E08031B23190416A8A58CC9D526A761D
D Received data from DW service
D Received result for datawedge command com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS - SUCCESS - E08031B23190416A8A58CC9D526A761D
I DW action is done - configured {decoder_upca=false, decoder_pdf417=false, decoder_aztec=false, decoder_codabar=false, decoder_datamatrix=false, decoder_ean8=false, decoder_qrcode=false, decoder_mailmark=false, decoder_maxicode=false, decoder_code39=false, decoder_upce0=false}
D Received data from DW service
D SCANNER_STATUS: status: IDLE, profileName: com.geodis.mobicop
ScannerService D Status changed: INITIALIZING --- Scanner is in the process of initializing
Scanne...ivity D Status changed: INITIALIZING --- Scanner is in the process of initializing
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: WAITING, profileName: com.geodis.mobicop
ScannerService D Status changed: READY --- Scanner is ready to scan and waiting to be used
Scanne...ivity D Status changed: READY --- Scanner is ready to scan and waiting to be used
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: SCANNING, profileName: com.geodis.mobicop
ScannerService D Status changed: SCANNING --- Scanner is in the process of scanning
Scanne...ivity D Status changed: SCANNING --- Scanner is in the process of scanning
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: WAITING, profileName: com.geodis.mobicop
ScannerService D Status changed: READY --- Scanner is ready to scan and waiting to be used
Scanne...ivity D Status changed: READY --- Scanner is ready to scan and waiting to be used
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: SCANNING, profileName: com.geodis.mobicop
ScannerService D Status changed: SCANNING --- Scanner is in the process of scanning
Scanne...ivity D Status changed: SCANNING --- Scanner is in the process of scanning
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: WAITING, profileName: com.geodis.mobicop
ScannerService D Status changed: READY --- Scanner is ready to scan and waiting to be used
Scanne...ivity D Status changed: READY --- Scanner is ready to scan and waiting to be used
I Scanner activity is being paused 207974906
ZebraD...vider D Sending intent to scanner to disable the trigger
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: DISABLED, profileName: com.geodis.mobicop
ScannerService D Status changed: DISABLED --- Scanner has been disabled and cannot be used
Scanne...ivity D Status changed: DISABLED --- Scanner has been disabled and cannot be used
I Scanner activity is being stopped 207974906
D Scanner activity is starting 207974906
I Scanner activity is resuming 207974906
I Resuming scanner activity - scanners will be (re)connected
ZebraD...vider D Sending intent to scanner to enable the trigger
ScannerService D Registering new client: com.geodis.mobicop.ScanDriverCodeActivity@c6571fa 207974906
D Notifying late clients that providers are already discovered
D Notifying late clients that scanners are already connected
Scanne...ivity I Activity can now use all received scanners (1)
ZebraDwScanner D Received data from DW service
I PROFILE_SWITCH: profileName: Profile0 (default), profileEnabled: false
D Sending DW action. DW command ID: 412E2C99C79345EAB15312A69771F288 Intent action: com.symbol.datawedge.api.ACTION
com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS=Bundle[{decoder_ean8=false, decoder_upca=false, decoder_aztec=false, decoder_upce0=false, decoder_mailmark=false, decoder_maxicode=false, decoder_codabar=false, decoder_datamatrix=false, decoder_code39=false, decoder_pdf417=false, decoder_qrcode=false}]
SEND_RESULT=true
COMMAND_IDENTIFIER=412E2C99C79345EAB15312A69771F288
D Received data from DW service
D Received result for datawedge command com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS - FAILURE - 412E2C99C79345EAB15312A69771F288
E Zebra DataWedge command failure: PROFILE_NAME = Profile0 (default)
RESULT_CODE = [Ljava.lang.String;@f616773
#Intent;action=com.symbol.datawedge.api.RESULT_ACTION;category=android.intent.category.DEFAULT;launchFlags=0x10;S.RESULT=FAILURE;S.COMMAND_IDENTIFIER=412E2C99C79345EAB15312A69771F288;S.COMMAND=com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS;end
Scanne...ivity I Scanner activity is being paused 207974906
ZebraD...vider D Sending intent to scanner to disable the trigger
Scanne...ivity I Scanner activity is being stopped 207974906
D Scanner activity is starting 207974906
I Scanner activity is resuming 207974906
I Resuming scanner activity - scanners will be (re)connected
ZebraD...vider D Sending intent to scanner to enable the trigger
ZebraDwScanner D Sending DW action. DW command ID: EE5FE13A74024643A975DC8DE8F2BEDD Intent action: com.symbol.datawedge.api.ACTION
com.symbol.datawedge.api.SWITCH_TO_PROFILE=com.geodis.mobicop
SEND_RESULT=true
COMMAND_IDENTIFIER=EE5FE13A74024643A975DC8DE8F2BEDD
ScannerService D Registering new client: com.geodis.mobicop.ScanDriverCodeActivity@c6571fa 207974906
D Notifying late clients that providers are already discovered
D Notifying late clients that scanners are already connected
Scanne...ivity I Activity can now use all received scanners (1)
ZebraDwScanner D Received data from DW service
D Received result for datawedge command com.symbol.datawedge.api.SWITCH_TO_PROFILE - SUCCESS - EE5FE13A74024643A975DC8DE8F2BEDD
D Profile switch done with success
D Received data from DW service
I PROFILE_SWITCH: profileName: com.geodis.mobicop, profileEnabled: true
D Sending DW action. DW command ID: DD959406A41A493AAED3E653BFEA7164 Intent action: com.symbol.datawedge.api.ACTION
com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS=Bundle[{decoder_ean8=false, decoder_upca=false, decoder_aztec=false, decoder_upce0=false, decoder_mailmark=false, decoder_maxicode=false, decoder_codabar=false, decoder_datamatrix=false, decoder_code39=false, decoder_pdf417=false, decoder_qrcode=false}]
SEND_RESULT=true
COMMAND_IDENTIFIER=DD959406A41A493AAED3E653BFEA7164
D Received data from DW service
D Received result for datawedge command com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS - SUCCESS - DD959406A41A493AAED3E653BFEA7164
I DW action is done - configured {decoder_upca=false, decoder_pdf417=false, decoder_aztec=false, decoder_codabar=false, decoder_datamatrix=false, decoder_ean8=false, decoder_qrcode=false, decoder_mailmark=false, decoder_maxicode=false, decoder_code39=false, decoder_upce0=false}
D Received data from DW service
D SCANNER_STATUS: status: IDLE, profileName: com.geodis.mobicop
ScannerService D Status changed: INITIALIZING --- Scanner is in the process of initializing
Scanne...ivity D Status changed: INITIALIZING --- Scanner is in the process of initializing
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: WAITING, profileName: com.geodis.mobicop
ScannerService D Status changed: READY --- Scanner is ready to scan and waiting to be used
Scanne...ivity D Status changed: READY --- Scanner is ready to scan and waiting to be used
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: SCANNING, profileName: com.geodis.mobicop
ScannerService D Status changed: SCANNING --- Scanner is in the process of scanning
Scanne...ivity D Status changed: SCANNING --- Scanner is in the process of scanning
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: WAITING, profileName: com.geodis.mobicop
ScannerService D Status changed: READY --- Scanner is ready to scan and waiting to be used
Scanne...ivity D Status changed: READY --- Scanner is ready to scan and waiting to be used
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: SCANNING, profileName: com.geodis.mobicop
ScannerService D Status changed: SCANNING --- Scanner is in the process of scanning
Scanne...ivity D Status changed: SCANNING --- Scanner is in the process of scanning
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: WAITING, profileName: com.geodis.mobicop
ScannerService D Status changed: READY --- Scanner is ready to scan and waiting to be used
Scanne...ivity D Status changed: READY --- Scanner is ready to scan and waiting to be used
I Scanner activity is being paused 207974906
ZebraD...vider D Sending intent to scanner to disable the trigger
ZebraDwScanner D Received data from DW service
D SCANNER_STATUS: status: DISABLED, profileName: com.geodis.mobicop
ScannerService D Status changed: DISABLED --- Scanner has been disabled and cannot be used
Scanne...ivity D Status changed: DISABLED --- Scanner has been disabled and cannot be used
I Scanner activity is being stopped 207974906
D Scanner activity is starting 207974906
I Scanner activity is resuming 207974906
I Resuming scanner activity - scanners will be (re)connected
ZebraD...vider D Sending intent to scanner to enable the trigger
ScannerService D Registering new client: com.geodis.mobicop.ScanDriverCodeActivity@c6571fa 207974906
D Notifying late clients that providers are already discovered
D Notifying late clients that scanners are already connected
Scanne...ivity I Activity can now use all received scanners (1)
ZebraDwScanner D Received data from DW service
I PROFILE_SWITCH: profileName: Profile0 (default), profileEnabled: false
D Sending DW action. DW command ID: E26388872F56471BAB9F852AC500986F Intent action: com.symbol.datawedge.api.ACTION
com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS=Bundle[{decoder_ean8=false, decoder_upca=false, decoder_aztec=false, decoder_upce0=false, decoder_mailmark=false, decoder_maxicode=false, decoder_codabar=false, decoder_datamatrix=false, decoder_code39=false, decoder_pdf417=false, decoder_qrcode=false}]
SEND_RESULT=true
COMMAND_IDENTIFIER=E26388872F56471BAB9F852AC500986F
D Received data from DW service
D Received result for datawedge command com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS - FAILURE - E26388872F56471BAB9F852AC500986F
E Zebra DataWedge command failure: PROFILE_NAME = Profile0 (default)
RESULT_CODE = [Ljava.lang.String;@fb79cd5
#Intent;action=com.symbol.datawedge.api.RESULT_ACTION;category=android.intent.category.DEFAULT;launchFlags=0x10;S.RESULT=FAILURE;S.COMMAND_IDENTIFIER=E26388872F56471BAB9F852AC500986F;S.COMMAND=com.symbol.datawedge.api.SWITCH_SCANNER_PARAMS;end
@marcanpilami : le sujet et toujours d'actualité. Peut-on le rouvrir ?
Hello @marcanpilami Après avoir mis à jour à la version 2.3.7, je constate un souci avec la configuration des profils DataWedge. Seul le Profile0 semble fonctionner correctement. Les autres profils configurés ne sont pas reconnus ou ne fonctionnent pas comme prévu.
De plus, si je configure un profil nommé "geodis" et que je désactive les autres profils, le système semble toujours rechercher Profile0 plutôt que mon profil "geodis". En conséquence, le scan ne se déclenche pas lorsque Profile0 est désactivé il faut revoir qlqchose côté lib ?