xuxingliu922 / SmartDeviceSDK

android device SDK
2 stars 0 forks source link

Service never stop #1

Open Beckerlionel opened 2 years ago

Beckerlionel commented 2 years ago

Dear,

I have a huge problem with SmartDeviceSDK. In fact this service never stop afer all unbind() actions. In this, we have some callBack, and it's the same. At each registerCallBack, system creates a new thread whih never stop despiste the unRegisterCallBack. An d finally the service took more than 85 % of CPU ressource (see with Profiler in android-studio). What's the problem ? Thanks a lot for your anwers.

Best regards.

xuxingliu922 commented 2 years ago

What is the SDK version number you are using here? The attachment I sent you is the latest version, you can verify whether the problem still exists, if you still have problems, you can continue to contact me

------------------ 原始邮件 ------------------ 发件人: "xuxingliu922/SmartDeviceSDK" @.>; 发送时间: 2021年10月25日(星期一) 晚上10:43 @.>; @.***>; 主题: [xuxingliu922/SmartDeviceSDK] Service never stop (Issue #1)

Dear,

I have a huge problem with SmartDeviceSDK. In fact this service never stop afer all unbind() actions. In this, we have some callBack, and it's the same. At each registerCallBack, system creates a new thread whih never stop despiste the unRegisterCallBack. An d finally the service took more than 85 % of CPU ressource (see with Profiler in android-studio). What's the problem ? Thanks a lot for your anwers.

Best regards.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Beckerlionel commented 2 years ago

Thanks a lot for your quick reply. Sorry but I can't fnd any attachment, nor in the @mail, nor on Github web site.

For the version, in ICallBack.aidl it's wrote 1.0, and for the IZKCService.aidl, I have no information. But this 2 files come from ZKC web site , the name file is SDK-ZKC-ALL. I'm using ZKC 3503 devices.

Best regards.

xuxingliu922 commented 2 years ago

Since you are using a 3503 device, you don’t need to use this SDK. 3503 is the same as an Android phone. The standard Android SDK is developed. The difference between it and a mobile phone is that it has an additional scan code. You can refer to this development document for scan code development. https://translate.google.com/translate?sl=auto&tl=en&u=http://doc.szzkc.com/web/%23/3?page_id%3D34 Complete scan code development through broadcast message Please uninstall AIDL SDK before use

------------------ 原始邮件 ------------------ 发件人: "xuxingliu922/SmartDeviceSDK" @.>; 发送时间: 2021年10月26日(星期二) 下午3:48 @.>; @.**@.>; 主题: Re: [xuxingliu922/SmartDeviceSDK] Service never stop (Issue #1)

Thanks a lot for your quick reply. Sorry but I can't fnd any attachment, nor in the @mail, nor on Github web site.

For the version, in ICallBack.aidl it's wrote 1.0, and for the IZKCService.aidl, I have no information. But this 2 files come from ZKC web site , the name file is SDK-ZKC-ALL. I'm using ZKC 3503 devices.

Best regards.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Beckerlionel commented 2 years ago

Sorry, but this link doesn't work !?

xuxingliu922 commented 2 years ago

sorry,i send you our source link:http://doc.szzkc.com/web/#/3?page_id=34 but,the page is chinese

------------------ 原始邮件 ------------------ 发件人: "xuxingliu922/SmartDeviceSDK" @.>; 发送时间: 2021年10月26日(星期二) 下午4:43 @.>; @.**@.>; 主题: Re: [xuxingliu922/SmartDeviceSDK] Service never stop (Issue #1)

Sorry, but this link doesn't work !?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Beckerlionel commented 2 years ago

Thanks a lot. I try with this code, and come foward you if I'm facing issues !

See you soon !

Beckerlionel commented 2 years ago

Sorry, it's still me ! I translate the doc, all it's fine for this side. But I can't succced to use the scanner of my 3503 device. I try the ScanSdkDemo that i found on your web side but no soccess. I upload the app BarcodeScanner which has the same icon that one you have on your docuement, but this application use the camera instead of the front scanner?

Where did I made wrong ?

Regards.

xuxingliu922 commented 2 years ago

Sorry for not being able to solve your problem quickly Let us first confirm whether the scanning software installed in the 3503 device can scan codes normally, and press the scan button of the device to complete the scan code. Then follow the above document to access the custom broadcast message, or use the scan code source code in the document to verify the custom broadcast scan code function

Beckerlionel commented 2 years ago

Dear,

I succed to use your docuement to implented BroadcastReceiver instand of using SDK SmartDeviceAIDL. I found the right application Scanner Settings (V1.8.1). But I'm facing still some issu.... The first one, is that the scan is on 'continue Scan' despite the option on Scanner Settings is on off. The second point is that the scanner doesn't respond correctly on SCAN buttom press (on physical keyboard) The third point is that the intentBroadcast.putExtra("scan_power", False); work well, the 'laser' scan closed. But the intentBroadcast.putExtra("scan_power", true); doesn't work. I'm able to switch on throughout Scanner Settings app.

I have different version of ZKC 3503: some on Android 5.1.1 version and with 3.10.4 kernel some on Android 7.1.2 version and with 3.10.49 kernel and final, i presume Android 5.1.1 and with 3.10.49 kernel !!!!

That the reason with I post a request on ZKC web site to know how to dump one configuration on the over. I try with abd, but the system seems to be plocked.

Than a lot for your help. May be you can understand why it's so difficult but with 3 differents configuration....

Best regards.

xuxingliu922 commented 2 years ago

You can install the latest version of scan code software, https://share.weiyun.com/hhi0gsNp The broadcast message provides an interface for scanning code triggering and obtaining scanning results, but the scanning function switch is not fully opened. The main purpose of the device is to scan codes. We recommend that the scanning function stay on

Beckerlionel commented 2 years ago

Thanks, I'll test. I saw that to upload apk thrroughout the link above I need credential, no ?

xuxingliu922 commented 2 years ago

Yes, the above link is a link to share on my personal network disk, and you need to register an account to use it

Beckerlionel commented 2 years ago

Dear Leo,

Is it possible for you to share me the laster version of apk BarCodeScan_2.1.8 with WeTransfer for example, because it's to difficult for me to understand how QQ application works without any translator !! My @mail adress is lionel.becker@gcatrans.com. Best regards.

Beckerlionel commented 2 years ago

Thnaks a lot for your mail with the Apk. The issue that I'm facing now, is that when I switch off the device with the "stop" button, when I switch on with the same button, the scan is on continus Scan "option". Why that ? Have I to put some code in my "android.intent.action.SCREEN_OFF" intent ?

Best regards.

xuxingliu922 commented 2 years ago

You need to check the setting options of the scan code app, whether the continuous scan code switch is turned on

Beckerlionel commented 2 years ago

Sorry Leo to be insistent on this subject. The issue isn't at this level. The continous switch is well on position off. The problem is whenyou switch OFF the device with the button on the side, and after a few seconds you switch it ON (with the same button), when the device "wakes up", the scan is on continus mode, despite the fact that on the BarCodeScan app, on settings page, the switch off continous scan is well on OFF position !! It's really stange !! Is a special code executing when the device "wake up" ? Maybe at the android.intent.action.SCREEN_ON ? Thanks for you help.

Regards.

xuxingliu922 commented 2 years ago

I don’t know what type of scan code module your device uses. You can ask the salesperson to get the manual corresponding to the scan code module. Follow the instructions in the manual to turn off the continuous scan code function. Normally, you can scan the setting code. Set, or send hexadecimal commands through the input box at the bottom of the scan code app settings. For specific setting codes and setting instructions, please refer to the manual of the scan code module

Beckerlionel commented 2 years ago

Yes, good idea. I'll investigate in this way.

Best regards.