android - Is there anyway I can send SERIAL-USB data thru a HDMI port? -


I am working on a project where there are only 1 micro USB port in our Android tablet.

Enter image details here

Because we have an external device You have to communicate through the serialUSB, it became a bit we saw that the tablet giving power to the bus (host mode) leaves the battery drains till the time of death. Apart from this, we still have to supply enough energy to power the tablet.

After a lot of effort, such as using an OTG-Y cable , kernel code config and USB hub , I have to find a way to communicate and charge the tablet.

HDMI or audio / serial.

At this point, I'm getting out of ideas.

You can use an arduino, but not normal, you will need mega, i Say because ardiono mega is the only arduino which I know from more than one serial UART. For example, Yoon shares the RX / Texas serial pin with the same UART as the USB interface.

If you have mega, you can get cheap USB like serial module:

Now, you can plug your PC into the normal USB mega mega mega Will give power to your PC then you connect your tablet to the serial module.

All who have been left to do, have created a simple INO script for transferring data from serial (PC-USB) to serial 2 (tablets) for their mega, and vice versa.

Example:

  zero setup () {// Put your setup code here, run once: serial.begin (115200); // pc & lt; - & gt; USB serial 1.Bijin (115200); // serial & lt; - & gt; Tablet} zero loop () {// repeat your main code here: to run sequential: serialComs (); // indicates that the serial com () function} / serial communication function, from zeros serial com () {// port 1 (tablet), send port to (pc): if (serial 1. unavailable ()) {int InByte = Serial1.read (); Serial.write (inByte); } // read from port 0 (pc), send port 1 (tablet): if (serial.available ()) {int inByte = serial.read (); Serial1.write (inByte); }}  

Note: You may need to add #DEFINE entries before zero mode, to determine that the USB modules on your serial


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -