Все для Sony Ericsson, патчи, эльфы, моддинг, прошивка
  
Логин: Пароль: Запомнить: Привет гость! Зарегистрируйся или авторизируйся для получения доп. возможностей!
Разделы
PDA версия сайта
TrackIDentify
Новости
Статьи
Файлы
Патчи
Патчи A2
Патчи db2020
Эльфы
Исходники эльфов
Wiki
Форум
Опросы
Обратная связь
Развернуть/Свернуть
 
Развернуть/Свернуть

AccelerometerDll and AccManager : Эльфы : Форум : Для Sony Ericsson патчи эльфы моддинг прошивка
/  Список форумов
   /  Эльфы
/  AccelerometerDll and AccManager
На печать 
Правила 
Страница 1 из 3: [1] 2 3 »

nkls


Вникающий


Регистрация: 15.9.07
Сообщений: 36
Репутация: 167





 
  #1 [10.08.10, 00:49] AccelerometerDll and AccManager   

 
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; 292 hits) Скачать файл
AccManager_v1.2.zip AccManager_v1.2.zip (11.27 kb; 309 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; 737 hits) Скачать файл
AccManager_v1.1.zip AccManager_v1.1.zip (10.97 kb; 160 hits) Скачать файл
Спасибо сказали: vile, AlexuS, SoLiDuS_91, KIDLIF, DuMOHsmol, albertnet3, Rizalmx, Diman6267, CleverUser, slavkkka, -DeJaVu-, Rc, KIBER-DEMON, Corman, EdsonOrdaz, g00fy

IronMaster


VIP Developer


Регистрация: 16.5.06
Сообщений: 1135
Репутация: 8514
Откуда: Пермь




 
  #2 [10.08.10, 01:15] Re: AccelerometerDll and AccManager   

 
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.




K700->W810->W850->W705 & W995 (cid81)
==========
WMZ307721639637
WMR675285842893
Спасибо за пожертвования:
Resp, ploik, BanditNN, AlexTin, polza, romanchenko, Ryabchik, Ax, [b]Desp

nkls


Вникающий


Регистрация: 15.9.07
Сообщений: 36
Репутация: 167





 
  #3 [10.08.10, 01:57] Re: AccelerometerDll and AccManager   

 
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


Patcher


Регистрация: 24.12.08
Сообщений: 120
Репутация: 260





 
  #4 [10.08.10, 06:04] Re: AccelerometerDll and AccManager   

 
nkls,

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



Rizalmx


Patcher


Регистрация: 29.4.10
Сообщений: 67
Репутация: 405
Откуда: Batik City, Indonesia




 
  #5 [10.08.10, 08:59] Re: AccelerometerDll and AccManager   

 
hey man...can you make that suport in J105 R1HA035 ;-)



IronMaster


VIP Developer


Регистрация: 16.5.06
Сообщений: 1135
Репутация: 8514
Откуда: Пермь




 
  #6 [10.08.10, 10:40] Re: AccelerometerDll and AccManager   

 
nkls,
in library will be CoCreateInstance function soon.




K700->W810->W850->W705 & W995 (cid81)
==========
WMZ307721639637
WMR675285842893
Спасибо за пожертвования:
Resp, ploik, BanditNN, AlexTin, polza, romanchenko, Ryabchik, Ax, [b]Desp
Спасибо сказали: KrasH

slavkkka


Вникающий


Регистрация: 12.6.08
Сообщений: 31
Репутация: -27





 
  #7 [10.08.10, 15:36] Re: AccelerometerDll and AccManager   

 
Add support for w760 r3EF001, please.



nkls


Вникающий


Регистрация: 15.9.07
Сообщений: 36
Репутация: 167





 
  #8 [10.08.10, 15:37] Re: AccelerometerDll and AccManager   

 
Rizalmx
The J105 doesn't have an accelerometer.

IronMaster
That will do it. =)



IronMaster


VIP Developer


Регистрация: 16.5.06
Сообщений: 1135
Репутация: 8514
Откуда: Пермь




 
  #9 [10.08.10, 15:46] Re: AccelerometerDll and AccManager   

 
nkls,
Function added.
And take this files with interface desription.



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

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


K700->W810->W850->W705 & W995 (cid81)
==========
WMZ307721639637
WMR675285842893
Спасибо за пожертвования:
Resp, ploik, BanditNN, AlexTin, polza, romanchenko, Ryabchik, Ax, [b]Desp
Спасибо сказали: zhero, nkls

nkls


Вникающий


Регистрация: 15.9.07
Сообщений: 36
Репутация: 167





 
  #10 [10.08.10, 17:57] Re: AccelerometerDll and AccManager   

 
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 »


Похожие темы
 ТемаОтветыАвторПросмотрыОбновление
  RaANdOoM, с днём рождения!15Therion1494219.06.23, 17:23
  Всё о Android update-script2SEVENI1266427.09.13, 22:55
  AdFree Android 0.8.440Alex1992380724.06.12, 19:25
  Android Wear0Joker XT306410.04.15, 21:28
  AndroidInfo6java-virys770004.01.17, 19:30
  Прошивка Android OS. Общие вопросы3Therion642301.11.15, 18:20
  Android dev libraries3Therion529422.04.15, 11:28

  • Поиск
  • Права
Вы не можете начинать темы.
Вы не можете редактировать свои сообщения.
Вы не можете создавать опросы.
Вы не можете вкладывать файлы в сообщения.
Вы не можете отвечать на сообщения.
Вы не можете удалять свои сообщения.
Вы не можете голосовать.

Главная Новости Статьи Файлы Патчи Форум Опросы PDA
- Генерация страницы: 0.16 секунд | 11 Запросов | HTML: 48.74 КБ -