电脑和手机之间的蓝牙客户端/服务器通信 [英] Bluetooth client/server communication between computer and mobile phone
问题描述
我只需要一个基本的例子或进行手机与电脑通过沟通教程的蓝牙的
I need just a basic example or tutorial of making a mobile phone and a computer communicate via Bluetooth.
一个很好的链接/网站从开始也是AP preciated。
A good link/website to start from is also appreciated.
服务器部分(计算机部分),可以在多种编程语言进行(的的Java 的 C ++ 的的Python 的甚至是别的东西)。
Server part (computer part) can be made on many programming languages (Java, C++, Python or even something else).
客户端部分(移动电话)必须是一个的的Java微型版的MIDlet的。
Client part (mobile phone) must be a Java Micro Edition MIDlet.
推荐答案
在研究多天,我设法让发送(实时)周围的鼠标光标区域的截图在计算机上,以手机应用程序客户端。
After many days of research, I managed to make an application that sends (in real time) screenshots of area around the mouse cursor on a computer to a mobile phone client.
客户端和服务器都用Java编写的。
我用 BlueCove 使桌面的一部分。这是一个JSR-82实现(相同的协议,在MIDP),因此桌面和移动部分分享了很多code的。
Both client and server are written in Java. I used BlueCove to make the desktop part. It is a JSR-82 implementation (the same protocol as in MIDP), so desktop and mobile parts share a lot of code.
在万一有人需要它,我发布应用程序作为公共领域,没有任何责任。
In case someone needs it, I release the application as public domain, without any responsibilities.
<一个href=\"http://dl.dropbox.com/u/3146321/web/dl/files/stack/stackoverflow-3198306/BluetoothClientServer.zip\"相对=nofollow> 下载code
我真的不骄傲。毕竟,我是15,当我写的。在code是在一些地方可怕,但我喜欢使抽象为code重用。
I'm not really proud of it. After all, I was 15 when I wrote it. The code is horrible in some places, but I enjoyed making the abstraction for code reuse.
这篇关于电脑和手机之间的蓝牙客户端/服务器通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!