安卓虚拟机设定串口设备

1 设定虚拟机"18_1024_600"为Windows系统(或DOS系统)串口为"COM1"。命令为 emulator @虚拟机名称-qemu -serial 串口号

 

   查看串行端口对应的设备名称。

   命令为:

   adb shell 回车

   cd dev

   ls

 

 

2 给串口赋读写权限

   chmod 777 ttyS2

 

 

3 在程序代码中 设定好

 

 

4 实际测试

 

posted @ 2014-11-03 11:55  杨斌_济南  阅读(960)  评论(0编辑  收藏  举报