amorenew / uhf_c72_plugin

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

Can't connect to uhf reader from flutter app. #13

Open dvamvakas-cyberheroes opened 11 months ago

dvamvakas-cyberheroes commented 11 months ago

Hi, i need to read RFID/ UHF codes. I have tried this plugin with the sample code, but i looks like i cant open the serial connection as far as i see the logs. trace: Installing build/app/outputs/flutter-apk/app-debug.apk... Debug service listening on ws://127.0.0.1:56251/fGm8wAMJTkw=/ws Syncing files to device C72... I/DeviceAPI_DeviceCon(22763): getDeviceInfoFromFile configPath=/storage/emulated/0/PDAConfig.txt D/DeviceAPI_DeviceCon(22763): cw.model2: D/DeviceAPI_DeviceCon(22763): cw.model:mtk.6765.c72 D/DeviceAPI_DeviceCon(22763): 最终cw.model:mtk.6765.c72 I/DeviceAPI_DeviceCon(22763): model=C72,uartPath=/dev/ttyMT3,uartPath_Fingerprint=/dev/ttyMT0,uartPath_RFID= I/DeviceAPI_DeviceCon(22763): getModel() model=C72 D/DeviceAPI(22763): UHF device = C72 D/DeviceAPI(22763): UHF_Init----------->DevIsOpen = 1 D/DeviceAPI(22763): UHF uart = /dev/ttyMT3 D/DeviceAPI_SerialPort(22763): [SerialPort_Open] [2]: No such file or directory D/DeviceAPI(22763): UHF uhf_uart_fd = -1 I/DeviceAPI_UHF(22763): init() Uart = /dev/ttyMT3 E/DeviceAPI_UHF(22763): init() err UHFOpenAndConnect result:-1 E/DeviceAPI_UHF(22763): setFrequencyMode() err :-1

I assume this is important D/DeviceAPI_SerialPort(22763): [SerialPort_Open] [2]: No such file or directory maybe some path problems?

Thank you for answer. David

amorenew commented 11 months ago

@dvamvakas-cyberheroes Try this plugin it supports Android 11 https://github.com/Justin-roy/Rfid_c72_plugin