Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator - PC Serial Port

I need to prototype an Android application which communicates to external hardware using serial I/O. Can the emulator send and receive serial data over a PC's com port?

like image 458
Tony Avatar asked Mar 09 '11 12:03

Tony


People also ask

What port does Android Emulator use?

The default value is 5554 for the first virtual device instance running on the your machine. A virtual device normally occupies a pair of adjacent ports: a console port and an adb port. The console of the first virtual device running on a particular machine uses console port 5554 and adb port 5555.

What is Android USB serial port?

This is a driver library for communication with Arduinos and other USB serial hardware on Android, using the Android USB Host Mode (OTG) available since Android 3.1 and working reliably since Android 4.2.

What is COM port emulation?

COM Port Data Emulator is a software application that enables users to emulate an entity, such as an Ethernet device or COM port, that transmits data as a serial stream. The program takes the data stream and converts it to data packets using serial protocols like RS232, TCP/IP or UDP.

What is virtual serial port emulator?

Virtual Serial Port Emulator allows you to create an unlimited number of virtual COM ports. The software emulates serial port functionality connected by virtual null modem cable in such a way that the system does not see the difference between virtual and real hardware ports.


1 Answers

The Android emulator itself supports this feature, I see people use "emulator -qemu -serial COM1" on Windows PC

or

"emulatro -qemu -serial /dev/ttyS0" on Linux PC

I have not tried it by myself yet, but that is the way in the big picture.

like image 104
Chao Gui Avatar answered Oct 09 '22 10:10

Chao Gui