GithubHelp home page GithubHelp logo

ftdriver's Introduction

FTDriver is no more supported.

We are developing a new USB Serial Driver "Physicaloid Library".

Physicaloid Library is FTDriver + Arduino Writer + CP210x Driver and has simple APIs.

https://github.com/ksksue/PhysicaloidLibrary

Android USB Serial Driver

USB Serial Driver using Android USB Host API

  • Java source code
  • no root
  • baudrate : 9600 - 230400 (be able to setting immediate baudrate number)
  • support FTDI chips (FT232RL, FT232H, FT2232C/D/HL, FT4232HL FT230X, REX-USB60F/MI(FT232BL) checked)
  • support any channels (FT2232X:2ch, FT4232X:4ch)
  • support CDC-ACM(beta)
  • like Arduino library's interface

Connection

Android [USB A port] --- [USB B port] FTDI Chip
  • requirement
  • Android : version 3.1 or upper and have an USB host port
  • Board : FTDI Chip or CDC-ACM(beta)

Projects

  • Library Project
    FTDriver : Driver for connecting an FTDI chip to Android USB host port

  • Sample Projects
    FTSampleTerminal : very simple terminal
    FTSerialCSV : serial communication with a Genet educational board (www.genet-nara.jp) in CSV format (Thanks for Heima Hayashida)
    genet
    Fig. Connecting an Android tablet to a Genet board(FT232RL) by a USB cable.(ET2011 Forum in Japan)

Interfaces

new

mSerial = new FTDriver((UsbManager)getSystemService(Context.USB_SERVICE));

open

mSerial.begin(FTDriver.BAUD9600);
  • baud rate (bps)
    BAUD9600
    BAUD14400
    BAUD19200
    BAUD38400
    BAUD57600
    BAUD115200
    BAUD230400
    and be able to setting immediate baud rate (no check).

read n bytes

byte[] rbuf = new byte[n];
len = mSerial.read(rbuf);

read n bytes from channel p

byte[] rbuf = new byte[n];
len = mSerial.read(rbuf, n, p)

write n bytes

byte[] wbuf = new byte[n];
...(set wbuf)
len = mSerial.write(wbuf,n);

write n bytes to channel p

byte[] wbuf = new byte[n];
...(set wbuf)
len = mSerial.write(wbuf,n,p);

close

mSerial.end();

About me

twitter @ksksue
画像1
Web page : Geekle Board - http://ksksue.com/wiki/

License

Copyright © 2011 @ksksue Licensed under the Apache License, Version 2.0

ftdriver's People

Contributors

ksksue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.