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

MultiConf Port to Android TabletWifi

Post by copterrichie »

Here is the problem that I am having trying to port the MultiConf over to Android. I have the Android SDK, Processing and everything working correctly however, I have getting an error when trying to compile the code because of the usage of size() in the MultiConf code. Is there a work around for this?

Thank you.

Code: Select all

size(windowsX,windowsY,OPENGL);
Attachments
ErrorMessage.jpg
(23.8 KiB) Not downloaded yet
Last edited by copterrichie on Fri Feb 07, 2014 1:21 pm, edited 2 times in total.

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

Re: MultiConf Port to Andriod

Post by copterrichie »

I did it again. :oops:

Changed that line to: size(800,400);

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

Re: MultiConf Port to Andriod

Post by Hamburger »

the controlP5 library has been ported to Android?

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

Re: MultiConf Port to Andriod

Post by copterrichie »

Hamburger wrote:the controlP5 library has been ported to Android?


I installed the newer version of controlP5 however I am now having problems with "List<Byte>". If I can get pass this one, maybe it will error when it comes to the controlP stuff.

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

Re: MultiConf Port to Andriod

Post by Sebbi »

Are you sure this is a good thing? The GUI code is horrible. Better support a native Android project that is also open source https://github.com/eziosoft/MultiWii_EZ_GUI ... just saying ;-)

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

Re: MultiConf Port to Andriod

Post by copterrichie »

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

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

Re: MultiConf Port to Andriod

Post by Sebbi »

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?

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

Re: MultiConf Port to Andriod

Post by copterrichie »

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.

User avatar
IceWind
Posts: 115
Joined: Fri Mar 25, 2011 2:11 am
Contact:

Re: MultiConf Port to Andriod

Post by IceWind »

You should be able to install the APK's directly, if you don't know where to get them just ask and someone will get them for you.
(If needed i can compile it if that is the case)

IMHO trying to use a ported version of Processing and other libs that already suck in a PC doesn't seem good idea.
If you do have the time to dedicate to such project It would be better applied to further improving the existing desktop app
preferably moving it away from Processing.
Helping the guys that made the desktop app and that were able to still make something good out of Processing.

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

Re: MultiConf Port to Andriod

Post by copterrichie »

Thank you for your Input.

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 227 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 188 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

Post Reply