通过蓝牙进行通信 [英] Communication via bluetooth
问题描述
我想开发可以从任何蓝牙设备接收数据的WPF应用程序。任何人都可以帮助我吗?
i want to develop WPF app which can receive data from any Bluetooth device . can anyone help me ??
我没有蓝牙编程的经验。基本上我想从任何蓝牙设备接收数据,然后发送到数据库。我对WPF和数据库有所了解。如果有人帮助我,那么我将非常感谢他/她。
i have no experience about Bluetooth programming. basically i want to receive data from any Bluetooth device and then sent in to database. i have knowledge about WPF and database. if anyone help me then i will be very thankful to him/her.
推荐答案
多年的分析设计和开发使我非常注重文字。
Years of analysis design and development have made me very literal minded.
我读过任何我认为的"他是否真的意味着......"他们要去的是什么 要做什么???"。
I read any I think "does he really mean any... and what are they going to do???".
。
任何蓝牙设备。
你刚才是指通过蓝牙使用鼠标或键盘吗?
Do you just mean use a mouse or keyboard via Bluetooth?
因为你什么都不做,所以你只需要作为输入设备连接,就像键盘或鼠标一样。
Because you don't do anything, you just connect as an input device and it works like a keyboard or mouse.
。
如果这就像手机那么它将需要运行一些特定的软件并与wpf应用程序通话。
If this is like a phone then it's going to have to run some specific software and talk to the wpf app.
一种方法是套接字。
这与任何旧的套接字实现非常相似。
And that works pretty similar to any old sockets implementation.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa362928%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
https://msdn.microsoft.com/en-us/library/windows/desktop/aa362928%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
两个设备都有相互通信的软件。
Both devices have software which will talk to each other.
还有像32feet这样的库:
And there's libraries like 32feet:
https://channel9.msdn.com/coding4fun/blog/WPF-Bluetooth-data-transfer-with-32feetNET
https://channel9.msdn.com/coding4fun/blog/WPF-Bluetooth-data-transfer-with-32feetNET
这篇关于通过蓝牙进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!