[英]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. 是否可以通过Usb电缆将条形码值从android应用程序发送到C#桌面应用程序。 I just want to link my two applications via usb cable .. I have searched a lot but still failed.. 我只想通过USB电缆链接两个应用程序。我进行了很多搜索,但仍然失败。
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. 它们允许通过C#与USB端口通信,并且您将能够在C#应用程序中从USB端口读取数据。 Then you need to implement the sending part in your Android application. 然后,您需要在Android应用程序中实现发送部分。 There is a package android.hardware.usb
on Android side which contains functionalities for communicating with USB ports. Android方面有一个android.hardware.usb
软件包,其中包含用于与USB端口通信的功能。 You can use classes from this package to handle the communication. 您可以使用此包中的类来处理通信。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.