我如何从蓝牙服务器(手机)读取数据 [英] how can i read data from a bluetooth server(mobile phone)

查看:105
本文介绍了我如何从蓝牙服务器(手机)读取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个j2me应用程序,可以从手机的内部gps读取gps坐标,并且我想将这些值传输到pc的蓝牙上,所以请帮助我如何在PC

I have developed a j2me application which read the gps cordinates from the internal gps of the phone and i want to transfer the values to pc''s blue tooth so please help me how to get it using c# on PC

推荐答案

在手机和PC之间使用蓝牙的最简单方法可能是串行端口仿真.在PC端,您的代码(无论使用哪种语言)都会打开Bluetooth堆栈提供的COMx设备,并像读取其他任何串行设备一样进行读/写.
在J2ME端,您使用javax.bluetooth的方法发现并连接到支持服务0x1101(串行端口配置文件)的设备.摩托罗拉和诺基亚J2ME论坛上有很多示例.
The easiest way to use Bluetooth between a phone and a PC is probably serial port emulation. On the PC side, your code (in whatever language) would open the COMx device provided by the Bluetooth stack, and read/write just as for any other serial device.
On the J2ME side, you use the methods of javax.bluetooth to discover and connect to a device that supports service 0x1101 (Serial Port Profile). There are lots of examples on the Motorola and Nokia J2ME forums.


这篇关于我如何从蓝牙服务器(手机)读取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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