简体   繁体   English

将android模拟器作为服务器运行

[英]Running android emulator as server

I want to receive the AT command from android emulator and send the reply back from TCP client program which is written in C. 我想从Android模拟器接收AT命令,并从用C编写的TCP客户端程序中发送回答复。

I am running Android ICS emulator on ubuntu-10.4 system as server by giving command " emulator -shell-serial tcp::4444,server " and in another terminal I am running TCP client written in C trying to connect to the same port. 我通过给命令“ emulator -shell-serial tcp::4444,server ”命令在ubuntu-10.4系统上作为服务器运行Android ICS模拟器emulator -shell-serial tcp::4444,server并且在另一个终端中,我正在运行用C编写的TCP客户端,尝试连接到同一端口。

I am able to see the emulator GUI coming up but I am not receiving any AT command in client. 我能够看到仿真器GUI,但是我在客户端没有收到任何AT命令。

I got the answer, in the emulator command i need to pass -radio instead -shell-serial. 我得到了答案,在仿真器命令中,我需要传递-radio而不是-shell-serial。 now I am able to receive all the AT commands in my client program 现在我可以在客户端程序中接收所有AT命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM