简体   繁体   English

通过USB电缆将条形码从android应用发送到C#桌面应用

[英]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.

相关问题 通过避雷线将C#应用程序连接到iOS设备 - Connecting C# application to iOS device via lightning cable 有没有办法通过PC编程通过USB电缆将Noraml键盘命令发送到xbox - Is there any way to send noraml keyboard commands to xbox via a usb cable from pc throught programming 如何从php向台式机应用程序发送消息(C#) - HOW to send message from php to desktop app (c#) Windows CE 6.0通过USB串行电缆发送数据 - Windows CE 6.0 send data via USB-Serial Cable 如何使用Winform C#应用程序通过USB电缆将数据传输到Hololens设备? - How to use Winform C# app to transfer data to Hololens device with USB cable? 如何从C#WinForm应用程序自动登录到桌面应用程序? - How to automatically log into a desktop application from a C# WinForm App? 如何使用 USB 电缆 C#.net 将文件从 Windows 表格申请传输到 Xamarin Forms - How to transfer the file from Windows Form Application to Xamarin Forms using USB cable C#.net c# 使用 usb 电缆从打印机打印,不使用 ip 地址或共享打印机 - c# Print from the printer using usb Cable, without using ip address or shared printer 如何通过蓝牙从Unity C#android应用程序向Arduino发送字符串? - How to send a string via bluetooth from a Unity C# android app to Arduino? 从USB条形码设备C#读取数据的标准方法 - Standard Way to Read Data from USB Bar code Devices C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM