2015-12-02, 21:09
if you plug it in you should be good to go, /dev/ttyUSB0 should be automatically created but you will have to "chmod 666" it by telnetting to the device (that gives you a root prompt).
If you keep it plugged in all the time you can add the chmod entry to one of the scripts that are executed at every boot, like /system/xbin/kodi-permissions that is a script I put to set writable the paths that Kodi needs.
Android's kodi uses python, I don't know if you need any special library for serial (I see the import), but if it's something included in the core package of python you are good to go
edit:
if not, it can be easily done in Java with JSSC library: https://code.google.com/p/java-simple-se...C_examples
If you keep it plugged in all the time you can add the chmod entry to one of the scripts that are executed at every boot, like /system/xbin/kodi-permissions that is a script I put to set writable the paths that Kodi needs.
Android's kodi uses python, I don't know if you need any special library for serial (I see the import), but if it's something included in the core package of python you are good to go
edit:
if not, it can be easily done in Java with JSSC library: https://code.google.com/p/java-simple-se...C_examples