android - Is there anyway I can send SERIAL-USB data thru a HDMI port? -
android - Is there anyway I can send SERIAL-USB data thru a HDMI port? -
i have been working on project our android tablet has 1 microusb port.
since must communicate via serialusb external device, became little fuzzy after noticed leaving tablet powering bus (host mode) drains it`s battery till death. moreover, still must supply plenty energy powerfulness tablet.
after lot of attempted fails, such using otg-y cable
, modifying kernel battery config
, using usb hub
, need find way perform communication , maintain tablet charging.
thought using hdmi or audio/serial. there solution can forwards solve this?
at point, i'm getting out of ideas.
you can utilize arduino, not normal one, you'll need mega, because ardiono mega arduino know of more 1 serial uart. uno illustration shares rx/tx serial pins same uart usb interface.
if have mega, can inexpensive usb serial module such this: http://www.ebay.com/sch/i.html?_from=r40&_sacat=0&_nkw=arduino+usb+to+serial&_sop=15
now, plug pc mega's normal usb powerfulness mega pc. connect tablet serial module.
all that's left create simple ino script mega transfer info serial (pc-usb) serial2 (tablet), , vice versa..
example:
void setup() { // set setup code here, run once: serial.begin(115200); // pc <--> usb serial1.begin(115200); // serial <--> tablet } void loop() { // set main code here, run repeatedly: serialcoms(); // tells loop execute serialcoms() function } // serial comunication function void serialcoms() { // read port 1 (tablet), send port 0 (pc): if (serial1.available()) { int inbyte = serial1.read(); serial.write(inbyte); } // read port 0 (pc), send port 1 (tablet): if (serial.available()) { int inbyte = serial.read(); serial1.write(inbyte); } }
note: may need add together #define entries before void setup define pins on serial usb module.
android usb battery usbserial hdmi
Comments
Post a Comment