fabpalma Member Licensed User Longtime User May 24, 2011 #1 Hi everyone, I bought Basic4Android and I'm very happy how it's easy to build apps... Now I need to connect an external device that have a FTDI chip (serial to usb adaptator) to my Android tablet with 2.2 version. I'm able to open the port tty and get data coming from my device using the terminal. Now I need to build my app ... but I don't find any way to open the port and the serial library open the bluetooth port .... Does someone know how to open and get (and send) data over a tty port ? Best regards ... Fabrizio
Hi everyone, I bought Basic4Android and I'm very happy how it's easy to build apps... Now I need to connect an external device that have a FTDI chip (serial to usb adaptator) to my Android tablet with 2.2 version. I'm able to open the port tty and get data coming from my device using the terminal. Now I need to build my app ... but I don't find any way to open the port and the serial library open the bluetooth port .... Does someone know how to open and get (and send) data over a tty port ? Best regards ... Fabrizio
D diego Member Licensed User Longtime User Oct 26, 2011 #2 FTDI has developed a driver for Android, I guess it can be converted to a B4A library, but I don't know how... http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf Upvote 0
FTDI has developed a driver for Android, I guess it can be converted to a B4A library, but I don't know how... http://www.ftdichip.com/Support/Documents/TechnicalNotes/TN_134_FTDI_Android_D2XX_Driver.pdf
Erel B4X founder Staff member Licensed User Longtime User Oct 26, 2011 #3 The driver above requires Android 3.0. I'm able to open the port tty and get data coming from my device using the terminal. Click to expand... Which terminal? You can try opening the port like you open a file. See this for an example: AsyncStream: ttyS0 as java.io.InputStream / OutputStream ? Upvote 0
The driver above requires Android 3.0. I'm able to open the port tty and get data coming from my device using the terminal. Click to expand... Which terminal? You can try opening the port like you open a file. See this for an example: AsyncStream: ttyS0 as java.io.InputStream / OutputStream ?