making custom api calls from MoSync

9 posts / 0 new
Last post
getsimo
getsimo's picture
Offline
Joined: 20 Feb 2010
Posts:
making custom api calls from MoSync

Hi,

We have an application that are using lower level system calls such as bluetooth spp etc, that is not available using MoSync. I wonder if we can build ourselves the lower level functions in native for each platform, but be able to make api calls from MoSync (or others like PhoneGap etc.) so we can use it for developing the top UI layer. If there a way to do this in MoSync?

thanks for any help,

Jing

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fatalerror
fatalerror's picture
Offline
Mobile Conjurer
Joined: 2 Oct 2009
Posts:

Hi getsimo,

This is not a problem, you could write your own code and easily interface with them using something we call IOCtl calls. In fact, we're hoping that people will contribute by adding new features like this. If this is of interest we could write a tutorial on how to add a new IOCtl:s.

Regards,
Ali

getsimo
getsimo's picture
Offline
Joined: 20 Feb 2010
Posts:

Hi Ali,

Thanks for the note, and we definitely like to learn more about IOCtl calls, so we can see how to extend MoSynch. Can you email me with more information on this at my email jing at simowireless dot com

thanks
Jing

fatalerror
fatalerror's picture
Offline
Mobile Conjurer
Joined: 2 Oct 2009
Posts:

Hi getsimo,

I will write a general tutorial and make it available to everyone since this is something we need to have public anyway. So I will post a link here by the end of today or tomorow.

Regards,
Ali

getsimo
getsimo's picture
Offline
Joined: 20 Feb 2010
Posts:

Hi Ali,

Thank you, looking forward to it. It will be great if we can use it to show a quick demo. We can create a native lib in symbian for bluetooth spp, and use it as a plugin to make calls from a Mosync code creating the UI. This will demonstrate that one can use Mosync to create UI for almost all kind of applications, and make calls to custom plugins developed on the native OS.

Jing

fatalerror
fatalerror's picture
Offline
Mobile Conjurer
Joined: 2 Oct 2009
Posts:

Hi getsimo,

Sorry about the delay, there has been a few things that have come up this week, but I'm working on getting the tutorial finished.

Regards,
Ali

getsimo
getsimo's picture
Offline
Joined: 20 Feb 2010
Posts:

Great, looking forward to it Smile

fatalerror
fatalerror's picture
Offline
Mobile Conjurer
Joined: 2 Oct 2009
Posts:

Hi getsimo,

Sorry for the long delay, but the document is finally finished. You can access it here http://www.mosync.com/documentation/manualpages/writing-new-extensions-mosync, contact me if you have any further questions or think that something in the document is unclear. It is assumed that you know how to build MoRE in visual studio.

Best regards,
Ali

tejasvi
tejasvi's picture
Offline
Joined: 17 Jun 2010
Posts:

Hi Ali,

Thanks for the update on extensions. Well written article.

I have installed MoSync 2.3 BETA r767, but I could not find tools folder or idl2.exe file.

Where can I find that ?

Rgds,
Tejasvi