Author Topic: Touch Orbiter for WinCE 5.0 - Why not port it to your favourite Device/OS?  (Read 44545 times)

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
We'd like to see what devices/platforms you can port the Touch Orbiter too. Touch Orbiter is a simple front-end app that leaves all of the LinuxMCE complexity running on the Core and requires a very minimal understanding of the LinuxMCE architeture to implement it on a fresh platform. Porting Touch Orbiter to you favourite client device or OS only requires knowledge of that devices Dev requirements - making the port really simple to achieve. We have a fully implemented reference implementation with complete source code available on the Wiki page below;

http://wiki.linuxmce.org/index.php/Touch_Orbiter_-_for_the_CUWIN3500_in-wall_Touch_Panel

So if you have a favourite platform or OS then why not try a port of Touch Orbiter as your next project :-)

All the best


Andrew

PS **** Please put you code into the svn even at an early stage in its development...doing so will help others thinking of starting a port and also it gives people & opportunity to help if you hit a problem...share your code 'early n often' !
« Last Edit: October 02, 2010, 04:00:36 pm by totallymaxed »
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

mihajzm

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
I work on Mini2440 port runing on Linux. But have run to several problems.
All over the code are Windows includes. Thats a problem. I must rewrite and replacle this includes.
can somebody help with this.

PS: You can say, put WinCE on Mini2440 and run the TouchOrbiter, but I love Linux :)

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
I work on Mini2440 port runing on Linux. But have run to several problems.
All over the code are Windows includes. Thats a problem. I must rewrite and replacle this includes.
can somebody help with this.

PS: You can say, put WinCE on Mini2440 and run the TouchOrbiter, but I love Linux :)

Hi mihajzm,

The purpose of the reference source code for WinCE 5.0 was not so much that you would literally port it by changing a few lines here or there but that you could look at the code and understand how the Touch Orbiter was designed and could then re-impliment it for the OS your device has available. Clearly you could also take the approach of literally porting the WinCE code over but as you have seen it was not architected with that in mind.

We would love to see Touch Orbiter running on Linux on the Mini2440 by the way so stick with it!

If you have any specific questions then post them here or look out for Uplink (he works here with me...and actually wrote the code) in the irc channel #linuxmce-devel and ask him any questions there.

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

mihajzm

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
OK. I must study the code to understand it.The communications section is no problem. The biggest thing is to rewrite the image handling. But I thing it's doable.
When I have question, I write to IRC.

thanks.

mihajzm

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
I have a preliminary version of the TouchOrbiter for Mini2440 7" LCD done.
I have used buildroot 2010-02 to create a build enviroment.
For graphics&touchscreen I use DirectFB + SDL + TSLIB.

I have one little problem.I need to have 800x480 resolution to be selectable in Orbiter page.How can I do this.

Orbiter screens were generated with 720X480 Resolution.
Recorded with Nokia E51. Tomorow I use a better camera.

http://www.youtube.com/watch?v=aDnQ62b7hrw
« Last Edit: August 18, 2010, 05:46:52 pm by mihajzm »

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
I have a preliminary version of the TouchOrbiter for Mini2440 7" LCD done.
I have used buildroot 2010-02 to create a build enviroment.
For graphics&touchscreen I use DirectFB + SDL + TSLIB.

I have one little problem.I need to have 800x480 resolution to be selectable in Orbiter page.How can I do this.

Orbiter screens were generated with 720X480 Resolution.
Recorded with Nokia E51. Tomorow I use a better camera.

http://www.youtube.com/watch?v=aDnQ62b7hrw



That is really fantastic!!!

Congratulations your the first person to complete a port :-). By the look of your video the performance looks pretty snappy too.

As to resolution - try the Nokia N770/800/810 resolution which is actually 800x480 as that should work perfectly.

Its great to see that you were able to port to the Mini-2440 in less than a week. Great work.

Lets document your work in the Wiki - add a page for the Mini-2440 or add a section to the existing page. Describe what you did and any little tips to make the process for others easier etc and importantly get your code into the svn and link to that from the wiki page.

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

mihajzm

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
The code is now ugly, I must clean it up. I need one week to complete this.
I can do it only in my spare time (1-2 hours a day).
When it's really ready I make a page in Wiki.


Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Please create a trac ticket, and attach the code, so we can move it into svn. Thanks

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
The code is now ugly, I must clean it up. I need one week to complete this.
I can do it only in my spare time (1-2 hours a day).
When it's really ready I make a page in Wiki.

Don't be worried about how the code looks etc. As possy says create the trac ticket & attach the current code so that we can get the initial source into svn. Then you can update it as you progress and also possibly others can contribute to it too ;-)

All the best


Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

mihajzm

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
I have cerated a ticket in trac:
http://svn.linuxmce.org/trac.cgi/ticket/797

Made some changes to the code. Response is now much more faster.
Video of working sample with booting:

http://www.youtube.com/watch?v=OYiw3zV7Mzo



totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
I have cerated a ticket in trac:
http://svn.linuxmce.org/trac.cgi/ticket/797

Made some changes to the code. Response is now much more faster.
Video of working sample with booting:

http://www.youtube.com/watch?v=OYiw3zV7Mzo

Wow the performance is much better than the previous version. What did you change to get the performance gain?

Nice splash :-)

All the best

Andrew
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

mihajzm

  • Regular Poster
  • **
  • Posts: 43
    • View Profile
The "anynews" command and also screen refresh was called to often. I have also separated several processes to threads.

- "anynews" is now called every 100ms
- threads are waiting on each other and execute only when somethnig changes
- screen is refreshed only when something is changed,

mihajzm

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Nice job!
 Br hari
rock your home - http://www.agocontrol.com home automation

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4660
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
The "anynews" command and also screen refresh was called to often. I have also separated several processes to threads.

- "anynews" is now called every 100ms
- threads are waiting on each other and execute only when somethnig changes
- screen is refreshed only when something is changed,

mihajzm

Nice :-)

...however in the 3500 code we only call 'anynews' every 1000ms

Andrew
« Last Edit: August 19, 2010, 09:38:17 pm by totallymaxed »
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses http://forum.linuxmce.org/index.php?topic=14026.0

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

darrenmason

  • Addicted
  • *
  • Posts: 529
    • View Profile
Hi Andrew,

I started on a version yesterday for Android and have a couple of questions for you.

1. What changes have been made to Proxy_Orbiter? Is it just the 'ANYNEWS?' command support. The reason I ask is that me server is still 7.10 so has the old version. This should still be usable, correct?

2. I am having problems with the Image returned. It currently will not decode. I am also getting problems if I try to open the PNG file generated by Proxy Orbiter  (mine is 64_web.png) on my dev machine. It complains that it is an invalid PNG file (when opened by Ubuntu 10.04) however seems to open in Firefox OK. Any suggestions?

regards
Darren