Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1828531
  • 博文数量: 283
  • 博客积分: 10141
  • 博客等级: 上将
  • 技术积分: 2931
  • 用 户 组: 普通用户
  • 注册时间: 2005-12-21 14:33
文章分类

全部博文(283)

文章存档

2013年(2)

2012年(2)

2011年(17)

2010年(36)

2009年(17)

2008年(18)

2007年(66)

2006年(105)

2005年(20)

分类: 嵌入式

2010-09-16 11:50:25

1. Android console command
(1) 连接模拟器
启动模拟器后看标题栏,其中有端口号信息,通常第一个是5554,例如5554:
telnet localhost 5554即可连上,如下:

Trying ::1...

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

Android Console: type 'help' for a list of commands

OK


(2) 发送短信
sms send <模拟发送短信的电话号码> <短信内容>
例如:sms send 1234567 Hello

(3) 播打电话
gsm call <模拟打进的电话号码>
例如:gsm call 1234567
如果启动多个gsm call,则模拟器上会显示电话会议;

其他:
挂断电话:gsm cancel <模拟打进的电话号码>
设置其他模式:gsm voice unregistered为网络无法联通,denied为紧急呼叫模式

参考:
help gsm
allows you to change GSM-related settings, or to make a new inbound phone call

available sub-commands:
   gsm list             list current phone calls
   gsm call             create inbound phone call
   gsm busy             close waiting outbound call as busy
   gsm hold             change the state of an oubtound call to 'held'
   gsm accept           change the state of an outbound call to 'active'
   gsm cancel           disconnect an inbound or outbound phone call
   gsm data             modify data connection state
   gsm voice            modify voice connection state
   gsm status           display GSM status

2. 多个模拟器模拟播打电话
启动多个模拟器,在模拟器A中播模拟器B的端口号码,即可。


阅读(3519) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~