AccelerometerDll and AccManager : Эльфы : Форум

Страница 1 из 3: [1] 2 3 »

 nkls:
10.08.10, 00:49
 AccelerometerDll:

This dll gives elfs access to your phone's accelerometer. Necessary for all elfs attached to this post to work.

You need: a supported phone with an elfpack that supports dlls.
How to install: put accelerometer.dll in [phone memory]/.../ZBin/DLL.

Supported models:
All phones with built in 3-axis accelerometers. You also need to have SWI 3C8 (CoCreateInstance) present in your library.


changelog:
v2.00
Changed dll structure, removed some unnecessary members and added more freedom to developers.
Optimized code.
No backward compatibility with AccManager v1.0.
v1.03
Using CoCreateInstance instead of f/w specific addresses. Update your library or you will get a "not supported" message!
v1.02
Added support for C901_R1GA028, C905_R1FA035 and W705_R1GA026 (thanks to blacklizard for the addresses! =) )
v1.01
Added support for W995_R1HA035



AccManager v1.1:



Can be used to calibrate the sensor and explore how the accelerometer works. The calibration will only apply to elfs that are using the accelerometer.dll, so other applications like java or flash will not be affected.

Most of it should be self-explanatory, but there are some additional shortcuts:

Graph view:
C - clear graph
1 - toggle X graph
2 - toggle Y graph
3 - toggle Z graph
5 - pause

Calibration info:
C - Reset calibration

Sensor info:
C - Reset the accelerometer's max/min values
1 - Toggle detection scale (+-2G or +-8G)

changelog:
v1.2
No more missing arrow icons
v1.1
Added Sensor info page
Added C shortcut in the Calibration info page
No more missing arrow icons
Using acelerometer.dll v.2


HelloAccelerometer:

A simple helloworld elf + source that explains how to use the accelerometer dll.
For developers. =)



Use at your own risk. I take no responsibility if this breaks your phone or causes any other damage.

Enjoy! 8-)

[ Edited by nkls в 9.8.10 22:53 ]

[ Edited by nkls в 10.8.10 01:59 ]

[ Edited by nkls в 10.8.10 13:02 ]

[ Edited by nkls в 10.8.10 15:38 ]

[ Edited by nkls в 11.8.10 22:29 ]

[ Edited by nkls в 13.8.10 15:53 ]

Прикрепленный к сообщению файл:

HelloAccelerometer.zip HelloAccelerometer.zip (3.64 kb; 293 hits) Скачать файл
AccManager_v1.2.zip AccManager_v1.2.zip (11.27 kb; 311 hits) Скачать файл
AccelerometerDll_v1.03.zip AccelerometerDll_v1.03.zip (5.67 kb; 188 hits) Скачать файл
AccelerometerDll_v2.00.zip AccelerometerDll_v2.00.zip (8.31 kb; 739 hits) Скачать файл
AccManager_v1.1.zip AccManager_v1.1.zip (10.97 kb; 160 hits) Скачать файл

 IronMaster:
10.08.10, 01:15
 DLL is a tool to simplify a code of other elfs. It must be common for all phones (LibraryDLL is particular case, it is a part of Elfpack).
You need to add a basic functions to the library and use them in your DLL.
In your case, i think, the basic function is get_coords. Add it to the lib_clara and make functions you want using it in DLL.

 nkls:
10.08.10, 01:57
 IronMaster

Well, then I would like to request that:
Код:
#pragma swi_number=0x8XXX
__swi __arm IAccelerometerFactory ** GetIAccelerometerFactory();

should be added to the library. =)

In A2 phones it's not as simple as just calling a get_coords() function, you need to open two different interfaces (one for open/close and one for reading) to be able to read the accelerometer data, so this dll does simplify the code of the elfs that are using it. And in addition to that it also provides an easy way to use a user-set calibration that is shared between all the elfs that are using it.

I would make it common to all phones if I could, but as I can't add functions to lib_clara the simplest way for me to do it was to use an internal library that I update per request.

 Cr@cShoT:
10.08.10, 06:04
 nkls,

HelloAccelerometer.elf works perfectly in my w705 031, but AccManager not works :S, I have the lastes Elfpack Rev 3437

 Rizalmx:
10.08.10, 08:59
 hey man...can you make that suport in J105 R1HA035 ;-)

 IronMaster:
10.08.10, 10:40
 nkls,
in library will be CoCreateInstance function soon.

 slavkkka:
10.08.10, 15:36
 Add support for w760 r3EF001, please.

 nkls:
10.08.10, 15:37
 Rizalmx
The J105 doesn't have an accelerometer.

IronMaster
That will do it. =)

 IronMaster:
10.08.10, 15:46
 nkls,
Function added.
And take this files with interface desription.

Прикрепленный к сообщению файл:

Accelerometr.zip Accelerometr.zip (4.67 kb; 157 hits) Скачать файл

 nkls:
10.08.10, 17:57
 
IronMaster пишет:
nkls,
Function added.
And take this files with interface desription.

Where did you get those files from? :-o

Thanks! ;-)
Much better than my own reverse-engineered interfaces
my_accelerometer.h: 

Страница 1 из 3: [1] 2 3 »

URL этой темы:
https://mobilefree.justdanpo.ru/newbb_plus/viewtopic.php?topic_id=4968

© 2005-2018 supertrubka.org