amorenew / uhf_c72_plugin

BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

my UHF_C72 Device not connecting can someone help me #12

Closed abdulrehmananwar closed 1 year ago

abdulrehmananwar commented 1 year ago

i am using this source code and run the apk on my uhf_c72 device butt its not connecting
WhatsApp Image 2023-10-04 at 10 23 01_31c608f7 WhatsApp Image 2023-10-04 at 10 10 11_f77cc2f7

amorenew commented 1 year ago

@abdulrehmananwar Not all devices have the same hardware try this plugin instead android 11 support in Rfid C72 [https://github.com/Justin-roy/Rfid_c72_plugin

abdulrehmananwar commented 1 year ago

i have downloaded from above link and build apk from sample butt still its not responding. WhatsApp Image 2023-10-06 at 10 25 06_9f155003

amorenew commented 1 year ago

@abdulrehmananwar Did you got any error?

abdulrehmananwar commented 1 year ago

no it not respond any error. when i tap on above green buttons.

abdulrehmananwar commented 1 year ago

do i neeed any configration to turn on WhatsApp Image 2023-10-03 at 20 04 54_8ca2f913

amorenew commented 1 year ago

@abdulrehmananwar maybe a different hardware if my plugin and Justin-roy/Rfid_c72_plugin not working then you need to check the SDK from the Chinese provider and make a plugin for it

abdulrehmananwar commented 1 year ago

they provide us this sdk butt i dont know how to make plugin from this sdk can you please guide me C72 SDK.zip

amorenew commented 1 year ago

@abdulrehmananwar It would be best if you read about making a native Flutter plugin

The steps I used to convert the Native SDK to the Plugin:

1- Make a helper class to separate the SDK logic into simple and clean functions like read cards function, write data, etc

2- Map the helper to functions in the Java plugin

3- Listeners I used channels and RXJava for publishing to the channel.

4- Map the Enum of states to the same dart enums if needed

so the most important step is cleaning the native code to one helper class like the following class https://github.com/amorenew/uhf_c72_plugin/blob/master/android/src/main/java/com/amorenew/c72/uhf_plugin/helper/UHFHelper.java

amorenew commented 1 year ago

@abdulrehmananwar when you used Justin-roy/Rfid_c72_plugin plugin did you play with the working area? Set Work area Area Values { "1", "2" 4", "8", "22", "50", "51", "52", "128"} await UhfPlugin.setWorkArea;

try each area maybe it is the issue

abdulrehmananwar commented 12 months ago

its working now Thanks

omarsawalhah commented 12 months ago

its working now Thanks

@abdulrehmananwar What WorkArea worked for you? @amorenew What is the difference and how this affects the scanning operation? Thanks all.

amorenew commented 12 months ago

@abdulrehmananwar @omarsawalhah Work Area is like a writing standards, each number is stand for USA, China, Europe, and other types which I don’t remember right now It depend on the machine which you used to write the data on the card

abdulrehmananwar commented 12 months ago

there is a one issue its not making sound while scaning