OS X蓝牙编程 [英] OS X Bluetooth programming

查看:349
本文介绍了OS X蓝牙编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建OS X应用程序通过蓝牙与LEGO MINDSTORMS工作NXT 2.0。

I want to create OS X app to work with Lego Mindstorms NXT 2.0 via Bluetooth.

我试着用目标C和Python,使之,但也有一些问题,两者兼而有之。

I tried to make it with Objective C and Python, but there are some problems with both.

关于目标C:

我只找到<一href=\"https://developer.apple.com/library/mac/#documentation/DeviceDrivers/Conceptual/Bluetooth/BT_Intro/BT_Intro.html\"相对=nofollow>这个文档。有讲述用的plist文件配置,但不提供例如这样plist文件的,在图中仅一些数据。在哪里得到它?也许我做错了什么?此外,还有到/ Developer目录,不存在一些参考。

I only found this documentation. There is told about configuration with plist-file, but example of such plist file is not provided, only some data on figure. Where to get it? Maybe I'm doing something wrong? Also, there are some references to /Developer directory, which does not exist.

关于Python的:

我发现 NXT-蟒蛇,但它不能很好地工作10.7。我试图安装 lightblue ,并指示尽一切10.6,它运行setup.py时候才停止
输出:

I found nxt-python, but it does not work well with 10.7. I tried to install lightblue, doing everything with instructions for 10.6, it just stops when running setup.py Output:

running install
running build
running build_py
running install_lib
running install_egg_info
Removing /Library/Python/2.7/site-packages/lightblue-0.4-py2.7.egg-info
Writing /Library/Python/2.7/site-packages/lightblue-0.4-py2.7.egg-info

同样的事情PyBluez。

Same thing with PyBluez.

还有什么建议?

推荐答案

我发现(不记得在哪里)一些有用的code的范例。这是解决我的问题。

I found(don't remember where) some useful code examples. This is solution to my problem.

这篇关于OS X蓝牙编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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