g0315dzh 发表于 2011-3-3 22:22:39

[转鸟语贴并翻译]如何用android手机控制ar-drone

此贴是我有生一来第一次翻译鸟语贴``请大家忍忍小弟的翻译水平吧。。

android手机的用户可以去搜索并下载一个叫做ARDroid的apk软件,安装了之后只要你的手机能连到ardrone应该就能操作了。
但是android并不原生支持ad-hoc点对点wifi连接而ar恰好又只提供这样的连接,所以你就需要一台无线路由器做中介并且按照下面的贴子去操作才能玩。
当然你也可以上网搜索还是有办法开启android的adhoc的不过不太稳定。
那就八仙过海各显神通了,各家手机的办法都不同。

顺便把这个ardroid控制软件发出来,因为确实不好找
点击此处下载 ourdev_619847VPO8GO.rar(文件大小:643K) (原文件名:ARDroid.rar)




首先声明```我这个鸟语水平是四级没有毕业的,所以肯定和原文有出入,大致意思如此.
http://www.ardrone-fHimems.com/forum/viewtopic.php?f=8&t=807这是原贴地址.




How to extend ar drone wifi range using wifi router (b/g)
怎样将ArDrone的wifi远程控制扩展至802.11 b/g 无线路由器上

NOTE :
引言

this thread idea come from one of our expert member MAPGPS & his/her friend kapejod , one of his/her post in http://www.ardrone-
这个鸟主意来自一个牛人MAPGPS(就是咱论坛里的MAPGPS,现在他已经是国际名人了 。。)和他的朋友kapejod,他的贴在这里 http://www.ardrone-
fHimems.com/forum/viewtopic.php?f=8&t=374,


fHimems.com/forum/viewtopic.php?f=8&t=374 , MAPGPS explain how to connect ar drone as a wifi client to your access point, you can also see
MAPGPS解释了怎样把你的ardrone当作客户端连入你的无线接入点(ap),你也可以在下面这个地址里面看看kapejod的博客 http://www.kapejod.org/2010/08/parrot-ar-drone-linux-internals/#comments



kapejod blog in http://www.kapejod.org/2010/08/parrot-ar-drone-linux-internals/#comments
All the Credit goes to MAPGPS & kapejod
所有的版权都归这俩家伙所有(貌似是这个意思?)


my tutorial is using mac as a base, if you using windows try to find application / program that can do "telnet"
我家的内个啥用的mac操作系统,如果你用windows那么你可以试试去找个可以telnet的程序,(译者注:貌似这个家伙不是很懂windows一般都自带telnet的?)

what im gonna do is, explain briefly how to extend your ar drone wifi range using an Access Point (AP) or AP Router , as you know the AR
咱等会要用到它(指telnet),简单的说下怎样将你的ar扩展到无线ap,就像你们都知道的那样

Drone wifi range is limited to 50 meters which caused people cannot play hide & seek in large area or fly as high as possible, its also usefull to
ar的wifi遥控距离限制在50米内导致人们不能和它在大场地内玩躲猫猫或者尽可能飞高,

prevent your AR Drone to fly away uncontrollable, as we know there are many people lost their Ar Drone when playing outdoor
它也可以保护你的ar不至于飞远了而导致失控,像我们都知道的那样(译者注:我了个去这发贴的什么文化程度啊?就不会用稍微先进一点的表达方式么老是这么一句)很多人出去外场玩ar就把它飞丢了(真的有"很多人"吗?)

with the use of AP you can extend the range up to 150 - 200 meters depends on you AP power
如果用上无线ap这个距离起码可以扩展到150到200米,基于你无线ap的发射功率决定.


DISCLAIMER :
免责声明:

Please do at your own risk, im not responsible if you brick your AR Drone because you do the step not carefully, im just a member who like to share
请自己承担操作风险,你要不是特别小心的按照步骤来把你的ar搞成砖了我可不负责.
我只是个愿意和大家分享知识的玩家.

some KNOWLEDGE


what you need :
你需要神马

1 unit AR drone
1个ar drone(我了个去这不废话么?)


1 unit AP (access Point) / AP Router with B/G capabilities
1个无线ap或者无线路由器要支持802.11b/g协议的(市售的都支持)

1 unit pc or mac to program the ar drone using telnet
一台电脑来配置ar drone(译者注:他没有注明,但必须是带无线网卡的电脑因为ar并没有网线接口,台式机用户可能会要买个简单的无线网卡)

how to program AR Drone
怎样搞你的ardrone

1. make sure turn off the wifi of your iPad/iPod/iPod touch
1。确定你关掉了你ipad ipoditouch的wifi


2. unpair the ar drone by push the button below the ar drone
2。捅一下ar的菊花——里面那个umpair按钮

3. open your mac/pc and search ar drone using your wifi tools, and make sure you connected to ar drone
3。打开你的电脑用wifi工具找到ardrone的无线网然后确定你连接上了。

4. open terminal aplication and type "telnet 192.168.1.1" without quote
4.打开命令行程序 输入“telnet 192.168.1.1” 不带引号

5. type this command below
5。输一下下面这条命令(很重要!!!一定不能换行要一次性搞进去要不你的ar就变砖)

Code:
命令代码:

iwconfig ath0 mode managed essid YOUR SSID; ifconfig ath0 192.168.1.1 netmask 255.255.255.0 up; route add default gw 192.168.1.254
(上面这个是命令,翻译不出来)


NOTE :
注:

change YOUR SSID with your AP SSID (case sensitive)
192.168.1.1 is your ar drone ip address, DO NOT change it because the
上面命令里面的YOUR SSID部分用你的无线ap ssid代替,要格外小心。192.168.1.1是你ardrone的ip地址,千万不要改它因为


current AR Drone apps in the Appstore doesn't support other ip address
192.168.1.254 is your default gateway or your ip address of your AP ,
现在在手机程序商场的ardrone程序不支持其他ip地址。192.168.1.254是你的默认网关也就是路由器地址。

ATTENTION some of wifi router default ip address are also 192.168.1.1 (linksys, ddwrt, tp-link etc) you will need to change it to 192.168.1.254 &
注意!有些无线路由器的默认ip 就是192.168.1.1像是思科,ddwrt,还有tplink这类的,你必须先把它改成192.168.1.254并且

turn off the DHCP Settings, please check the router user manual to do it correctly
关掉dhcp服务,请仔细查看路由器配置并修改它。

6. after completed step no 5, please disconnect your pc/mac from your ar drone wifi & connect your pc/mac to your AP network
6。在你完成步骤5之后请断开你电脑到ardrone到wifi的连接然后用电脑连上无线ap

7. to test the new ip of AR Drone is already work properly you can open new Terminal window on your mac/pc and type "ping 192.168.1.1" without quote or
7。你可打开电脑里的命令行输入"ping 192.168.1.1"不带引号试下ardrone的新ip已经工作了

"ping YOUR AR DRONE IP ADDRESS" if you see something like this
64 bytes from 192.168.1.1: icmp_seq=4329 ttl=64 time=7.379 ms that's mean
或者ping 你ar的ip地址也行。如果你看到像64 bytes from 192.168.1.1: icmp_seq=4329 ttl=64 time=7.379 ms这样的东西就代表

you're already success connected your ar drone to your AP network
你已经成功的把你的ar连上了ap的网络


8. now turn on wifi on your iPad/iPod/iPhone and connect to your AP Router & CHANGE the ip address to use static ip 192.168.1.2 netmask : 255.255.255.0
8。现在打开手机的wifi去连你的ap吧,但是要设置成固定的ip地址192.168.1.2 子网掩码255。255。255。0


9. open your favourite AR Drone Apps , my favourite is Drone Control, you should already connected to your AR Drone using your AP network
9。打开你最喜欢的ar控制程序,我最喜欢的是drone control你已经可以用ap的网络来玩ar了


10. congratulation, you've just extended your AR Drone range upto 200 meter =)
10.康格瑞吐雷神,你已经把你ardrone的遥控距离增加到了200米

ADD ON :
再加点儿:

how to save the config file on your AR Drone
怎样把这个配置保存在ar drone

A simple way to create file /data/ap.sh directly on AR.Drone:
Inside the Telnet window:
一个简单的办法就是通过telnet窗口在ardrone里创建一个文件/data/ap.sh

# cat > /data/ap.sh
(这是创建文件的命令)


Then type 3 command lines below, and end with Ctrl-D (press key "Ctrl" with letter "D")
输入下面三行命令以ctrl+d结束(原作者把我们都当sb了,他告诉我们ctrl+d就是先按下ctrl然后再按下d键)

Code:
代码:

iwconfig ath0 mode managed essid YOUR SSID
ifconfig ath0 192.168.1.1 netmask 255.255.255.0 up
route add default gw 192.168.1.254
(以上是命令)

You can check the contents in file /data/ap.sh:
你可以用这个命令检查下这个文件

# cat /data/ap.sh
(命令)

Change the file runable:
更改文件运行权限

# chmod 755 /data/ap.sh
(命令)

to run it:
运行它:

# /data/ap.sh
(命令)

FAQ :
问和答:

Q : i want to play AR Pursuit can i use only 1 AP for 2 AR Drone?
提问:我想用一个ap 玩两台ar drone可以伐?

A : No, you must use 2 AP, because the ip address of your drone is always 192.168.1.1 , if you connect 2 AR Drone into 1 AP it will crash the network
回答:想的美,你必须用两个ap,因为你的ardrone总是192,168。1。1这个ip,在一个ap网里边儿会ip地址冲突的!(译者注,其实有多种方式可以实现1个ap玩两个ar不过比较复杂)

Q : what type of AP should i use ?
提问:我该用哪样的ap?

A : you can use any AP or AP Router as long as support b/g wireless
回答:你可以用无线接入点ap 或者 无线路由器只要它支持802.11 b/g就行了(废话,就是都行)

Q : have you tried this before?
提问:你之前试过吗?


A : No, i only tried to connect my AR Drone to my AP but cannot control the Drone, because i changed my AR Drone ip address, that's why i didn't
回答:么有,我只试了连接我的ardrone到我的ap但是没有控制它因为我更改了ardrone的地址,所以我没有

succeed, but believe me if you do the step one by one carefully this method will WORK
成功,但是我相信如果你按照我说的一步一步来这个方法是ok的。(译者注:我了个去,他自己都没有试过他好意思发教程```我想说我也没有试过因为我的ar还没有发货)

Q : why i should trust you?
提问:我为什么要相信你(问的好!)

A : is up to you to trust me or not, but actually im experienced with the wireless network because, i own an internet cafe & we connect the internet using wifi network
回答:随你信不信我,但是事实上因为我对无线网很有经验,(废话,言下之意是所以你还是应该相信我要不你都看到这儿来了)我有一家网咖(译者:我了个去,打_倒资产阶级),我店里就是用无线网的。

Q : why you didn't try it first
提问:你怎么不先试下啊?

A : now its 1:32 AM in the morning and its a new year eve, i just have this idea instantly, maybe i will try it tomorrow
回答:现在都凌晨1点半了而且是新年夜,我只是有这么个主意灵光一闪,可能我明天会去试一下。

Q : how to reset default to original ar drone setting?
提问:我怎么去搞回ardrone原来的设置?

A : just plug off the battery for 1 minute and plug it in again , you will reset the setting to original ar drone factory default
回答:拔了电池1分钟再插上,你就会把ar搞成出厂默认设置了。

Q : i want to play my ar drone outdoor, but the AP Router need AC Power to power it on, do you have any aolution
提问:我想出去玩ardrone,但是ap需要交流电源,你有什么办法解决么?

A : actually you can buy power inverter in your local electrical store, it will convert DC to AC Current, plug the power inverter to your car
回答:实际上你可以买个反用换流器给你的电池用,它会把直流电搞成交流电,插在你车上

cigarette lighter & plug the AP adaptor in to it, place the AP Router on your car hood & you're ready to play
的点烟器插头你就可以把无线ap 接上去了。然后你就可以爽飞了。(在电子开发网说这个?好像不太好。。)

MAPGPS 发表于 2011-3-3 23:59:42

不用WiFi无线路由器做中介也可以.
你的Android2.2手机可以置成WiFi AP模式(Hotspot), 让AR.Drone 以WiFi Managed模式反连到你的Android手机:
https://sites.google.com/site/androflight

我要用这个翻_墙过去看:
http://proxyie.cn/

g0315dzh 发表于 2011-3-4 02:16:40

确实可以哦,用ap 会得到更加远的遥控距离和更流畅的画面吧

ap模式要2.2的系统

另外请问下,这个即使用配置文件也不能永久保存至闪存么?

supercctv 发表于 2011-3-7 14:58:48

这个软件太难找了,刚好入手ardrone,谢谢!

zhengrob 发表于 2011-3-8 13:39:13

回复【1楼】MAPGPS
-----------------------------------------------------------------------

给的那个连接连不上。

g0315dzh 发表于 2011-3-8 20:45:49

刚才首次用u8500 连接了ar
容易掉线

只起飞了,暂时不知道如何控制它

MAPGPS 发表于 2011-3-8 21:00:45

回复【4楼】zhengrob
回复【1楼】mapgps
-----------------------------------------------------------------------
给的那个连接连不上。
-----------------------------------------------------------------------

原连接是这个
https://sites.google.com/site/androflight

我要用这个翻_墙过去看:
http://proxyie.cn/
页: [1]
查看完整版本: [转鸟语贴并翻译]如何用android手机控制ar-drone