MultiConf Port to Android TabletWifi

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

FYI, I got it to compile, now I need to do lots of clean up. Ha.

Thanks for the positivity input.

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Re: MultiConf Port to Andriod

Post by ezio »

copterrichie wrote:
Sebbi wrote:
copterrichie wrote:It only support Bluetooth and I am unable to install it from Google Play. :(


Unsupported device or because of your region? Well ... there is always compiling the source for yourself. No more difficult than porting the GUI code ;-)

Regarding bluetooth, what kind of Android device do you have and what is the technology you plan to use with it? Wifi Direct?


Google Play claims it is an unsupported device however, I was able to install many of the same apps from 1Mobile Market as listed on Google Play but eziosoft is not listed on that app server. I downloaded the source for MultiWii_EZ_GUI but it is a little more than I want to tackle at this moment. Really, the MWC Gui is not that bad, I made it pass the "List <Byte>" with ArraryList. So we are making some progress and yes, I do want to use the Wifi.



try this link:
https://dl.dropbox.com/u/80566205/MultiWiiEZGUI.apk

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »



Thank you soooooo very much, This is greatly appreciated. I hope to get up to speed with java soon because as I was playing with this port, there is android.hardware.wifi.p2p that I REALLY Really would like to try.

Thank you again.

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Re: MultiConf Port to Andriod

Post by ezio »

copterrichie wrote:


Thank you soooooo very much, This is greatly appreciated. I hope to get up to speed with java soon because as I was playing with this port, there is android.hardware.wifi.p2p that I REALLY Really would like to try.

Thank you again.



btw what device do you have ? I will check why my app is not compatibile.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

ezio wrote:btw what device do you have ? I will check why my app is not compatibile.


I do not believe anything is wrong with your app, I think it a royality issue between Ematic and Google. Anyway, I have an Ematic EGS005

http://www.ematic.us/tablets/egs005

Cheat but Really good based upon the apps I have ran on it so far.

weisseruebe
Posts: 15
Joined: Fri Oct 12, 2012 1:13 am

Re: MultiConf Port to Andriod

Post by weisseruebe »

Hi,
what kind of Hardware are you using to communicate with the Android device? Is there anything like a wifi2uart adapter?

That would be interesting for ezgui, too.

Regards
Andreas

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

weisseruebe wrote:Hi,
what kind of Hardware are you using to communicate with the Android device? Is there anything like a wifi2uart adapter?

That would be interesting for ezgui, too.

Regards
Andreas


I have one of these Serial to Wifi and later may move to a Raspberry.

http://www.ebay.com/itm/330874510519?ss ... 1438.l2649

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

Here is a copy of the .pde file updated to work with Processing 2.0b

Had to make the following Changes:

Code: Select all

import processing.serial.Serial; // serial library
import controlP5.*; // controlP5 library
//import processing.opengl.*;
import java.lang.StringBuffer; // for efficient String concatemation
import javax.swing.SwingUtilities; // required for swing and EDT
import javax.swing.JFileChooser; // Saving dialogue
import javax.swing.filechooser.FileFilter; // for our configuration file filter "*.mwi"
import javax.swing.JOptionPane; // for message dialogue
import javax.media.opengl.*;
import java.util.*;
import java.io.*;
Attachments
MultiWiiConfProssing2.0.zip
Updated to work with Processing 2.0b
(18.05 KiB) Downloaded 272 times

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

More work to do but we are making process and learning also. :mrgreen:


Image

User avatar
Gartenflieger
Posts: 65
Joined: Sat Oct 01, 2011 10:07 pm
Location: Dortmund, Germany

Re: MultiConf Port to Andriod

Post by Gartenflieger »

Kudos!
Are you going to link using Bluetooth or Wifi?

Regards
Christoph

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

Gartenflieger wrote:Kudos!
Are you going to link using Bluetooth or Wifi?

Regards
Christoph


Wifi, that is all this device have. :)

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

P.S. I am not competing with anyone here, just making the best usage of the resources I have or can afford.

User avatar
Gartenflieger
Posts: 65
Joined: Sat Oct 01, 2011 10:07 pm
Location: Dortmund, Germany

Re: MultiConf Port to Andriod

Post by Gartenflieger »

Yeah I have a similar one made by Odys. What will you be using on the MWC side for Wifi?

P.S. I fully understand why you are doing this; Because you can! And it's fun! That's what we are here for, after all. Some time ago I started a UI for Android using the "App Inventor", but it became a monster quickly and I abandoned it.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Andriod

Post by copterrichie »

Gartenflieger wrote:Yeah I have a similar one made by Odys. What will you be using on the MWC side for Wifi?

P.S. I fully understand why you are doing this; Because you can! And it's fun! That's what we are here for, after all. Some time ago I started a UI for Android using the "App Inventor", but it became a monster quickly and I abandoned it.


I have one of these Serial-to-Wifi Devices, there are many more on ebay and cheaper now.

http://www.ebay.com/itm/330874510519?ss ... 1438.l2649

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

If anyone is interested, here are the links to the required files.

Android SDK (USE AN EXISTING IDE)
http://developer.android.com/sdk/index.html

Processing 2.0b
http://www.processing.org/download/

ControlP5
http://www.sojamo.de/libraries/controlP5/

And the Install Instructions:
http://wiki.processing.org/w/Android

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »


mahowik
Posts: 332
Joined: Sun Apr 10, 2011 6:26 pm

Re: MultiConf Port to Android

Post by mahowik »

copterrichie wrote:If anyone is interested, here are the links to the required files.


I installed fresh software but got the same issue as one year ago :) "No library found for processing.serial"... as i remember it's an exception for android...

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

But I am not using serial but there is a serial driver, just not processing.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

On the Android, there is android.hardware.usb

juanquy
Posts: 30
Joined: Sat Jan 05, 2013 9:58 pm

Re: MultiConf Port to Android

Post by juanquy »

Read Ezio posts here (Forums/Software/Multiwii EZ GUI) and you will find a direct link to the apk... good look porting from Processing to Android.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

juanquy wrote:Read Ezio posts here (Forums/Software/Multiwii EZ GUI) and you will find a direct link to the apk... good look porting from Processing to Android.


At first, I was not going to reply to this but it is just too funny, the port is already done. I just need to get the Wifi working which is nothing to do with the WiiConfig. :lol:

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Odp: MultiConf Port to Android

Post by ezio »

copterrichie wrote:If anyone is interested, here are the links to the required files.

Android SDK (USE AN EXISTING IDE)
http://developer.android.com/sdk/index.html

Processing 2.0b
http://www.processing.org/download/

ControlP5
http://www.sojamo.de/libraries/controlP5/

And the Install Instructions:
http://wiki.processing.org/w/Android

Does it compile to apk? If yes could you post somewhere compiled app?

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Odp: MultiConf Port to Android

Post by copterrichie »

ezio wrote:Does it compile to apk? If yes could you post somewhere compiled app?

No, the 2.0b is still beta and the making an apk is not fully implement yet however, the project can be exported, then imported into Eclipse where a apk can be generated. I am still learning, so it will be awhile before I can do that. I can zip up the export if that will help.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

I just located the following and will give it a try tomorrow.

http://developer.android.com/tools/publ ... gning.html

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Well, my curiosity got the better of me and I just had to try it. This apk is untested. Beware!!! The serial is disable awaiting the WiFi code. So, all it will do at this point is start and display the screen formatted to 800x480.

https://dl.dropbox.com/u/266727/WiiCopt ... signed.apk

mahowik
Posts: 332
Joined: Sun Apr 10, 2011 6:26 pm

Re: MultiConf Port to Android

Post by mahowik »

Could you share *.pde file also which could be compiled in processing (for android ofcourse). I have not success to install this *.apk on ASUS Prime tab with Android 4.1.1.

This one from link below is not prepared for android, i.e. only header changed there...
viewtopic.php?f=8&t=3228&start=10#p32895

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

It is a work in process as stated.
Attachments
MultiWiiConf_Android.zip
(18.02 KiB) Downloaded 236 times

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

mahowik wrote:Could you share *.pde file also which could be compiled in processing (for android ofcourse). I have not success to install this *.apk on ASUS Prime tab with Android 4.1.1.

This one from link below is not prepared for android, i.e. only header changed there...
viewtopic.php?f=8&t=3228&start=10#p32895


The reason it failed to install is, "Note: The .apk file is unsigned at this point and can't be installed until signed with your private key." http://developer.android.com/tools/buil ... eleaseMode

I am not going to concern myself with trying to do this right now because this is not something people seems to want and I am just do it for myself. I have an obligation to release any improvements done to the code for which I will do.

tj_style
Posts: 12
Joined: Mon Aug 27, 2012 5:31 pm

Re: MultiConf Port to Android

Post by tj_style »

copterrichie wrote:
mahowik wrote:Could you share *.pde file also which could be compiled in processing (for android ofcourse). I have not success to install this *.apk on ASUS Prime tab with Android 4.1.1.

This one from link below is not prepared for android, i.e. only header changed there...
viewtopic.php?f=8&t=3228&start=10#p32895


The reason it failed to install is, "Note: The .apk file is unsigned at this point and can't be installed until signed with your private key." http://developer.android.com/tools/buil ... eleaseMode

I am not going to concern myself with trying to do this right now because this is not something people seems to want and I am just do it for myself. I have an obligation to release any improvements done to the code for which I will do.


Just tested to install on my tablet with google test key, if anyone want to try here is the signed apk:
https://docs.google.com/file/d/0B-NS5io ... edit?pli=1

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

tj_style wrote:
Just tested to install on my tablet with google test key, if anyone want to try here is the signed apk:
https://docs.google.com/file/d/0B-NS5io ... edit?pli=1


Bless you.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Worked for me. Hooray!!!

Now onward to getting the Wifi Working.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

If anyone is interested, there are a many Serial to Wifi devices now on ebay like the following:

serial ttl rs232 to 802.11 b/g/n converter Embedded WiFi Module with antenna B

http://www.ebay.com/itm/serial-ttl-rs23 ... 460bbbdad8

Just search for Serial Wifi

mahowik
Posts: 332
Joined: Sun Apr 10, 2011 6:26 pm

Re: MultiConf Port to Android

Post by mahowik »

tj_style wrote:Just tested to install on my tablet with google test key, if anyone want to try here is the signed apk:
https://docs.google.com/file/d/0B-NS5io ... edit?pli=1

Cool! ))
Works on ASUS Prime (android 4.1.1)

upd: BTW I think it will be nice to run this with bluetooth as good start!

Some useful links on this:
https://github.com/arduino/BtSerial#readme
https://github.com/4ntoine/Firmata/wiki

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: MultiConf Port to Android

Post by Sebbi »

Just had to post a Nexus 10 screenshot ... it's small, but looks complete and sliders seem to work ;-)

Screenshot Nexus 10
Screenshot Nexus 10

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Sebbi wrote:Just had to post a Nexus 10 screenshot ... it's small, but looks complete and sliders seem to work ;-)

Screenshot_2013-03-16-01-49-14.png



LOL, who said, bigger was better. Ha.. But seriously, what is the screen resolution of your tablet? The App is formatted for 800x480.

Sebbi
Posts: 478
Joined: Sun Jul 08, 2012 1:08 am
Location: Germany
Contact:

Re: MultiConf Port to Android

Post by Sebbi »

2560 x 1600 ...

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Sebbi wrote:2560 x 1600 ...


Awe!! That is not a Tablet, that is an IMAX. Ha.

Just last night, I found a way to have it adjust the screen based upon the information provide by the system. However, it would require a rewrite of the code to adjust. At this time, I am not sure it would be worth the effect seeing there is little interest in this project. ;)

Code: Select all

size(displayWidth, displayHeight);
  orientation(LANDSCAPE);

User avatar
ezio
Posts: 827
Joined: Sun Apr 01, 2012 11:03 pm
Location: Paris
Contact:

Odp: MultiConf Port to Android

Post by ezio »

So now I can end my app developement....
Bart
Attachments
uploadfromtaptalk1363440673809.jpg

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: Odp: MultiConf Port to Android

Post by copterrichie »

ezio wrote:So now I can end my app developement....
Bart


NO NO NO!!! at the very minimum, lets combine them.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Found this code that should resolve the issue with various screen sizes.


Code: Select all

  // Place this at the top of your sketch
  import android.util.DisplayMetrics;
 
  // Place this inside your setup() method
  DisplayMetrics dm = new DisplayMetrics();
  getWindowManager().getDefaultDisplay().getMetrics(dm);
  float density = dm.density;
  int densityDpi = dm.densityDpi;
  println("density is " + density);
  println("densityDpi is " + densityDpi);
http://wiki.processing.org/w/Android

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Hooray!!

I have the WiFi Socket working in with the WiiConfig. I now need to get a simulation program (Thanks to my friend Kataventos) or get the wifi device working with one of the ProMinis I have sitting.


Image

tj_style
Posts: 12
Joined: Mon Aug 27, 2012 5:31 pm

Re: MultiConf Port to Android

Post by tj_style »

copterrichie wrote:Hooray!!

I have the WiFi Socket working in with the WiiConfig. I now need to get a simulation program (Thanks to my friend Kataventos) or get the wifi device working with one of the ProMinis I have sitting.


Image


Great.. can you share the latest code? for the working wifi socket

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

tj_style wrote:
Great.. can you share the latest code? for the working wifi socket


When it is farther along I will. Maybe you can help me test or code?

tj_style
Posts: 12
Joined: Mon Aug 27, 2012 5:31 pm

Re: MultiConf Port to Android

Post by tj_style »

copterrichie wrote:
tj_style wrote:
Great.. can you share the latest code? for the working wifi socket


When it is farther along I will. Maybe you can help me test or code?


I don't have the wifi serial module. but i think i can test using router + openwrt + ser2net.
the problem is processing for android is still don't have "processing.net" support.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

tj_style wrote:
I don't have the wifi serial module. but i think i can test using router + openwrt + ser2net.
the problem is processing for android is still don't have "processing.net" support.


Yea, I got around that by using android.net. If you like, we can chat more and share techniques, I would prefer over chat or email for now.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

I should mention also, android.net.wifi.p2p is not available at level 10 Damn! But we are till talking about Processing 2.0b so there is till hope it will be included.

juanquy
Posts: 30
Joined: Sat Jan 05, 2013 9:58 pm

Re: MultiConf Port to Android

Post by juanquy »

WOW you did it!!! I have your app running in 4 Android devices of course with a magnifying glass so congratulation but still loving Ezio App.
salutos, saludos
JC
copterrichie wrote:
juanquy wrote:Read Ezio posts here (Forums/Software/Multiwii EZ GUI) and you will find a direct link to the apk... good look porting from Processing to Android.


At first, I was not going to reply to this but it is just too funny, the port is already done. I just need to get the Wifi working which is nothing to do with the WiiConfig. :lol:

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiConf Port to Android

Post by Hamburger »

Those wifi-serial adapters do some kind of encapsulaton of the serial stream for pushing it over a wifi connection? The receiving end (PC, tablet, phone) has to extract the serial data from the wifi connection itself, right? The receiving end sees a working IP connection?

So for this to work with more than just one vendor's wifi-serial adapter, do all those wifi-serial adapters share the same protocol for encapsulation?

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Hamburger wrote:Those wifi-serial adapters do some kind of encapsulaton of the serial stream for pushing it over a wifi connection? The receiving end (PC, tablet, phone) has to extract the serial data from the wifi connection itself, right? The receiving end sees a working IP connection?

So for this to work with more than just one vendor's wifi-serial adapter, do all those wifi-serial adapters share the same protocol for encapsulation?


If using a normal PC or laptop with wifi, all that is required is a Virtual Serial Port: http://www.hw-group.com/products/hw_vsp/hw_vsp2_en.html

If an access point is not being used, then the wifi will have to be configured as adhoc.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiConf Port to Android

Post by copterrichie »

Hey there, good news, I have the TCP working on my Tablet to a virtual com on another PC.
Now going to make a cable for the Wifi-To-Serial device. :D

Post Reply