Active5 years, 10 months ago
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?
Feb 26, 2016 It can send the serial I/O to a location or wait for a connection from a location. By default the TCP Net Console is sent to host at the port. If you use the server option QEMU will wait for a client socket application to connect to the port before continuing, unless the nowait option was specified. Using the serial port Writing logfiles with QEMU. QEMU allows you to redirect everything that you send to COM1 port to a file on your host computer. To enable this feature, you have to add the following flag when launching QEMU: -serial file:serial.log. While 'serial.log' is the path to the output file. Any time QEMU writes something to that port it will appear in the netconsole session. If you plan to send characters back via netconsole or you want to stop and start QEMU a lot of times, you should have QEMU use the same source port each time by using something like -serial udp::4555@:4556 to QEMU. Another approach is to use a patched version.
TonyTony
2 Answers
The Android emulator itself supports this feature, I see people use'emulator -qemu -serial COM1' on Windows PC
Service manual download honda. https://newvietnam342.weebly.com/blog/mario-sprites-download. 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.
![Qemu serial portable Qemu serial portable](/uploads/1/3/3/8/133889772/132277699.png)
Chao GuiChao Gui
I came across this:http://code.google.com/p/android-serialport-api/
Hp driver manager software windows 10. this library will let you use Java to access the serial port on your Android device
Someone SomewhereKvm Serial Port
Someone Somewhere19.3k1010 gold badges9898 silver badges145145 bronze badges