I have an android device acting as the usb host to a raspberry pi zero which will behave as the a slave device. I have absolutely no problem using the android api for interacting with usb slave devices.
I apparently need a driver such as Gadget Serial Driver which i load at startup with the following command on the raspberry pi.
sudo modprobe g_serial
The system should apparently create the device node /dev/ttyGS0
for the driver, but that didn't happen. What could be the reason for this?
If the driver got loaded successfully how do I write a program using it and it's node? Is it even possible or do I need to write my own driver? Are there any alternative ways of going about this? I'm fairly new to linux so answers with terminal commands will be very helpful. Thanks in advance.