Skip to content

9hm2/AnotherTerm_SerialDriver_ttyLike

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The program works in the AnotherTerm application on the Android platform. The program creates a virtual serial port in the /port folder, which can be referenced by programs capable of handling serial ports available in the proot system. The program is under development, so errors may occur. Currently, these devices are supported:

FTDI (Tested and working)

PL2303 (Tested and working)

CH341 (Tested and working)

CP210X (Tested and working)

CDC-ACM (Tested and working)

https://green-green-avk.github.io/AnotherTerm-docs/installing-linux-under-proot.html#main_content

The program was developed on the Kali Linux distribution, so it is most reliably run on this system.

The modified libusb is essential for operation:

https://green-green-avk.github.io/AnotherTerm-docs/installing-libusb-for-nonrooted-android.html#main_content

Two files were created: one is vserial, and the other is serial_ioctl_wrapper.so.

The vserial works on its own, for example, with screen or minicom programs.

The serial_ioctl_wrapper.so is necessary if we want to use programs that attempt to write or read serial port settings via ioctl, for example, any program written with the pyserial module.

Copy the vserial program to the /usr/bin folder. Copy the serial_ioctl_wrapper.so file to the /usr/lib folder.

For easier operation, modify the ~/.bashrc file by adding this line:

export LD_PRELOAD=/usr/lib/serial_ioctl_wrapper.so

If we start the vserial program with the "vserial &" command, we can still use the given terminal window, and we can also manage the ttyUSB0 created in the /port folder from other terminal windows while the program is running. To stop the program, use the "killall vserial" command or in the terminal window where it is running, press CTRL+C after the "fg" command.

The pogram in action:

Screen_Recording_20240614_101903_Another.Term_.mp4

I am developing the program for my own use. I welcome feedback and suggestions, but I have minimal time for development.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published