-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No printing with Sunmi V2s #20
Comments
Hi @tscharly thanks for the bug report.
|
After succesfull payment, when i press the printersymbol, the pdf is shown but printing doesn't start. Same behaviour when i choose an old transaction from the list. |
We aren't able to start automatic printing unfortunately. Does it work if you then press print on the PDF? |
@tscharly I've added printer support now for Ciontek and Bitcoinize POS machines. There is a chance the Sunmi just works as well. Are you able to test and let me know? Thanks |
Sunmi printer SDK here https://github.com/AhmedElsayed94/SunmiPrinterSdk |
@tscharly |
Sorry, but doesn't work. Fails with message "The service has been disconnected!" |
Did you set the printer to sunmiv2 in the settings? Can you please take a
screenshot of the error message?
Thanks
…On Wed, 13 Dec 2023, 08:53 tscharly, ***@***.***> wrote:
Sorry, but doesn't work. Fails with message "The service has been
disconnected!"
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5GEPRIKJ6XEMJCMG26D63YJCY5DAVCNFSM6AAAAAA5ZKFZIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSG4YDQNJSGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I sat down with @tscharly and I suspect that the issue is that the SDK you use only supports older devices. The manufacturer links to AIDL interface definitions in https://github.com/shangmisunmi/SunmiPrinterDemo (direct link: http://sunmi-ota.oss-cn-hangzhou.aliyuncs.com/DOC/resource/re_cn/AIDL%E6%96%87%E4%BB%B6/aidl.zip), some of which are quite different from the ones pasted into https://github.com/AhmedElsayed94/SunmiPrinterSdk. It's probably necessary to modify the SDK so that it checks which device it's running on and uses the correct interface. Alternatively the official Sunmi SDK could be used, but I don't know whether it's open source. |
You could be right. Unfortunately we don't have a newer model so unable to
test.
…On Thu, 22 Feb 2024, 08:32 Davids Paskevics, ***@***.***> wrote:
I sat down with @tscharly <https://github.com/tscharly> and I suspect
that the issue is that the SDK you use only supports older devices.
The manufacturer links to AIDL interface definitions in
https://github.com/shangmisunmi/SunmiPrinterDemo (direct link:
http://sunmi-ota.oss-cn-hangzhou.aliyuncs.com/DOC/resource/re_cn/AIDL%E6%96%87%E4%BB%B6/aidl.zip),
some of which are quite different from the ones pasted into
https://github.com/AhmedElsayed94/SunmiPrinterSdk. It's probably
necessary to modify the SDK so that it checks which device it's running on
and uses the correct interface.
Alternatively the official Sunmi SDK could be used, but I don't know
whether it's open source.
—
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5GEPTTFQNNAEXHDAAXVATYUZDVXAVCNFSM6AAAAAA5ZKFZIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJXG43DANZVGY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@casept and me will booze up with some mates and have a look at this @ our spaceship... |
excellent. i think this sounds like how I code as well. Its certainly how i do tech support |
We took a look at this tonight. The main issue is not that the printer is not supported, but that you are targeting an Android API version > 30, which is not properly supported by the library. This means that printing is broken on all Android 11+ terminals, but yours is probably so old that you didn't notice. We've managed to upgrade the library to support recent targetSdk versions (see AhmedElsayed94/SunmiPrinterSdk#12). However, until that PR is merged and a new release is cut there's no way to properly depend on the fixed library. We've managed to build a version locally that has the changes integrated, but only as a debug APK that requires tethering to a PC running the dev server to run. We tried running npx react-native build-android --mode=release, but that just seems to spin forever and do nothing. If you could tell us how you build a release of the app, that'd be appreciated. |
To build an APK
|
Alright, after fighting the build system some more we managed to generate a release build and it seems to work fine. Because we can't get Jitpack working with our fork, building the app currently requires building the printer driver as a JAR and copying it into the root of our fork at https://github.com/tscharly/bolt-card-pos. |
Appversion: 1.2.2
The text was updated successfully, but these errors were encountered: