电脑与手机蓝牙客户端/服务器通信 [英] Bluetooth client/server communication between computer and mobile phone

查看:24
本文介绍了电脑与手机蓝牙客户端/服务器通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只需要一个通过蓝牙使手机和计算机进行通信的基本示例或教程.

I need just a basic example or tutorial of making a mobile phone and a computer communicate via Bluetooth.

一个好的链接/网站也值得赞赏.

A good link/website to start from is also appreciated.

服务器部分(计算机部分)可以使用多种编程语言(JavaC++Python 甚至其他语言)制作.

Server part (computer part) can be made on many programming languages (Java, C++, Python or even something else).

客户端部分(手机)必须是 Java Micro Edition 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 中的协议相同),因此桌面和移动部分共享大量代码.

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.

下载代码

我并不为此感到自豪.毕竟,我写这本书的时候才 15 岁.有些地方的代码很糟糕,但我喜欢为代码重用做抽象.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆