简体   繁体   中英

Send Bar code from android app to C# desktop application via usb cable

Is it Possible that I can send bar code value from android application to my C# desktop application via Usb Cable. I just want to link my two applications via usb cable .. I have searched a lot but still failed..

You should try to use those libraries:

SharpUSBLib
LibUsbDotNet

They allow to communicate with USB port via C#, and you will be able to read data from USB port in your C# application. Then you need to implement the sending part in your Android application. There is a package android.hardware.usb on Android side which contains functionalities for communicating with USB ports. You can use classes from this package to handle the communication.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM