serial-port-json-server icon indicating copy to clipboard operation
serial-port-json-server copied to clipboard

Possibility of an Android build?

Open thedrip opened this issue 9 years ago • 4 comments

I have phones and tablets sitting around with USB-OTG that can serve as a host for a TinyG/ChiliPeppr. Any possibility of an Android release?

Thank you!

thedrip avatar Jan 27 '16 21:01 thedrip

Just go and build it on Android. It’s a go app so it now compiles on Android.

From: Jove Malcolm [mailto:[email protected]] Sent: Wednesday, January 27, 2016 1:30 PM To: johnlauer/serial-port-json-server [email protected] Subject: [serial-port-json-server] Possibility of an Android build? (#37)

I have phones and tablets sitting around with USB-OTG that can serve as a host for a TinyG/ChiliPeppr Any possibility of an Android release?

Thank you!

— Reply to this email directly or view it on GitHubhttps://github.com/johnlauer/serial-port-json-server/issues/37.

johnlauer avatar Jan 27 '16 21:01 johnlauer

Sadly, android cannot open serial ports without it being built into the firmware.

It has to run code with access to /dev/ files. It most likely will not work on any devices not specifically setup for the type of serial port it is.

TemperedEnterprises avatar Feb 08 '16 01:02 TemperedEnterprises

I have a few apps on my android phone that can access USB serial devices that are access via a comport on a windows based system. Yes you phone must be USB-OTG capable, but root or anything like that is not required.

thedrip avatar Feb 08 '16 01:02 thedrip

USB-OTG just means that the phone is capable of wiring up the usb connection as a host.

What I am talking about is each Serial Port to USB chipset has different drivers and methods of communications - AKA drivers.

Your "build" of android MUST SUPPORT this driver or you must be able to implement it at the basic level using this:

http://developer.android.com/reference/android/hardware/usb/UsbDevice.html

BUT android does not support serial ports naively. At least not like linux does.

Not like they are used in GO where the code on the server basically says "serialport.open".. Did Google implement the serial port commands in go for android?

Maybe, maybe not. http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_147_Java_D2xx_for_Android.pdf

You would need this to work on go. It's not impossible. I am just saying I doubt you just compile and run this server on android to get it to work.

TemperedEnterprises avatar Feb 08 '16 02:02 TemperedEnterprises