[c#][HELP] Developing a G-Sensor tool - Touch Diamond2, Pure Q&A, Help & Troubleshooting

Hello,
I'm going to develop a utility that uses Topaz'ez G-Sensor feature but since i'm totally new on mobile developing, i will need a little help for where to start.
The question is that if is there a API documentation for Topaz G-Sensor, where can i get it?
Or do i need to install a SDK or something first?
Thanks in advance.

G sensor specs?
opensea said:
Hello,
I'm going to develop a utility that uses Topaz'ez G-Sensor feature but since i'm totally new on mobile developing, i will need a little help for where to start.
The question is that if is there a API documentation for Topaz G-Sensor, where can i get it?
Or do i need to install a SDK or something first?
Thanks in advance.
Click to expand...
Click to collapse
I'm interested in developing a g sensor tool as well but I need to know specs on it.
1) is the sensor 3d or 2d?
2) sample rate
3) max G reading on each axis (will need it to read over 1G for this app)
Of course info on the API would be really helpful.

Related

Linux on Trinity

Who are interested to see Linux also on this device?
The process should be very similar to Hermes implementation, so we can follow their steps.
Interesting
is it possible to do dual boot ? how will phone functionality etc work?
kimusan said:
is it possible to do dual boot ? how will phone functionality etc work?
Click to expand...
Click to collapse
answering myself: yes it is, which means that I am in! I would love to help with the investigation for getting linux on this device. Looks like the new haret (01/01/2007) works well on trinity. I have successfully telnetted to it and executed several different commands.
kimusan said:
Looks like the new haret (01/01/2007) works well on trinity. I have successfully telnetted to it and executed several different commands.
Click to expand...
Click to collapse
Register a machine number for it.
Are the trinity internals known as good as the Hermes ?
cr2 said:
Register a machine number for it.
Are the trinity internals known as good as the Hermes ?
Click to expand...
Click to collapse
What do you mean by Register a machine number? where do I do this? As far as I know, the internals are pretty well known. We have pictures that identifies all the relevant chips, and schematics for a lot of the chipset.
kimusan said:
What do you mean by Register a machine number? where do I do this?
Click to expand...
Click to collapse
http://www.arm.linux.org.uk/developer/machines/
As far as I know, the internals are pretty well known. We have pictures that identifies all the relevant chips, and schematics for a lot of the chipset.
Click to expand...
Click to collapse
Do you have a link ?
cr2 said:
http://www.arm.linux.org.uk/developer/machines/
Do you have a link ?
Click to expand...
Click to collapse
It is in one (or more) of the threads in the trinity forum here at xdadevelopers. I do not have the direct links here, but have seen them recently. it is most likely in oone of the "GPS or not GPS" threads.
I have now registered the HTC Trinity/P3600
Very
interesting
cr2 said:
Do you have a link ?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=285090
See first attachment, Mainboard.zip contains front and back pictures of Trinity's mainboard, with all chipsets.
Look here for the schemes:
http://www.solopalmari.com/content/view/2471/38/
page 2 and 3.
How is the state of art in porting linux on this device?
And on Hermes? Does the kernel boot?
With wm6 do you have to hard reset every time you try to boot the kernel?
Maybe Pof can answer these questions.
Thanks
@renatostore: cr2 and Kevin2 are the guys working on it, come into #htc-linux at freenode irc network.
On hermes the kernel boots, and we can load a minimal initrd using haret. On trinity i haven't checked lastly.
You don't need to hard reset afer booting linux, that was only on WM2003
Hi
How about linux on trinity? i've been on the irc channel but didn't get any answer... a few months passed... i'm in hope!
I don't have high hope on that. Heard it's very difficult to debug stuff in Linux due to the lack of a hardware kb....
why do you want linux on this phone? you are not going to be able to cross-compile apps over and I don't see a useful app in linux that wm6 doesn't have already for a phone.
Hi...
Still interested...
Had someexperience with h36xx and h38xx/h39xx series HP/Compaq PDA's and familiar linux, and it would be very cool to have some of this running on the HTC hardware too...
Anyone already had a ROM cooked up with kernel/basic apps?
Any idea what will/does work and what won't/doesn't? like phone, camera, wifi, gprs, bluetooth, ...
Thanks!
bkortleven said:
Any idea what will/does work and what won't/doesn't? like phone, camera, wifi, gprs, bluetooth, ...
Click to expand...
Click to collapse
Check the hermes wiki.
trinity is the hermes without keyboard, minor differences are unimportant
The future of Linux on PDAs is Andromeda. Don't expect this to be implemented on existing devices - Andromeda will be a means to deliver new devices to the market.
While you will most likely need a new phone for Andromeda, you will gain a complete platform with stylish and working applications, so you will be able to actually use the device right from the start.
Have fun!

HTC Hero/Dream/Mgic ROM on X1

Sorry, maybe a stupid question.
Is it not possible to flash one of the HTC ROM's onto X1?
Nope, it will not work.
I figured that much, but can someone on here maybe explain? From what I could see it has the same processor as X1 etc.
LFCFredda said:
Nope, it will not work.
Click to expand...
Click to collapse
Hero/Dream/Magic are running android, not windows mobile....they are working on making an android version for the X1.
Regards,
WC
HTC said Sense UI will be avail on windows mobile as well...but in the meantime theres quite a few tread people porting linux android over to windows and xperia u should read up on that
jtoyz2 said:
HTC said Sense UI will be avail on windows mobile as well...but in the meantime theres quite a few tread people porting linux android over to windows and xperia u should read up on that
Click to expand...
Click to collapse
I know people are trying to get android onto X1 and hence my question. Why is it not possible to just use the android rom (with some mods) from the HTC phones as most of the hardware seems similar?
stevenvm said:
I know people are trying to get android onto X1 and hence my question. Why is it not possible to just use the android rom (with some mods) from the HTC phones as most of the hardware seems similar?
Click to expand...
Click to collapse
I guess we just have to wait to see what the amazing cooks come up with!
stevenvm said:
I figured that much, but can someone on here maybe explain? From what I could see it has the same processor as X1 etc.
Click to expand...
Click to collapse
it's basicly misc Hardware stuff.
CPU might be the same same jeah, but evyerthing else is not. neither the chipsets for the keyboard are, nor is the chipset for making phonecalls, nor the memory and so on.
it's liek trying to fit a Mazda Elektronics into a ford ka. maybe u can squeeze it in but im sure it wont work since the electronic doesnt know any part of the new car.
achmed20 said:
it's basicly misc Hardware stuff.
CPU might be the same same jeah, but evyerthing else is not. neither the chipsets for the keyboard are, nor is the chipset for making phonecalls, nor the memory and so on.
it's liek trying to fit a Mazda Elektronics into a ford ka. maybe u can squeeze it in but im sure it wont work since the electronic doesnt know any part of the new car.
Click to expand...
Click to collapse
i notice some fatal mistakes in your setence
achmed20 said:
it's basicly misc Hardware stuff.
CPU might be the same same jeah, but evyerthing else is not. neither the chipsets for the keyboard are, nor is the chipset for making phonecalls, nor the memory and so on.
it's liek trying to fit a Mazda Elektronics into a ford ka. maybe u can squeeze it in but im sure it wont work since the electronic doesnt know any part of the new car.
Click to expand...
Click to collapse
electronic doesn't need to know the car. because in computer systems, there exist another layer between the electronic and the car.
it's called the kernel. hardware abstraction layer.
it'll work... just need someone free enough to make it work.
no further explanations please! lets pretend it is magic
/me swings the magic wand
ps: jeah i know .. im king of typos and abstract examples ^^
Is there anybody working on this right now?
Would love a Hero/etc android ROM on my X1, definitely. Just got a Hero and I'm loving it to bits.
http://wiki.xda-developers.com/index.php?pagename=Kovsky Linux
i think so.such as a computer with Windows or linux or sth. else ..

[PRJ][OS]Linux and Android on SE Xperia X1

This thread is here for information and discussion about the Linux kernel (and Linux based userspaces like Ångström distribution or google android.
If you have no clue what this is all about, click the above links and read a bit about it.
The xperia(kovsky) research information vital to porting the linux kernel is available at htc-linux.org
The kovsky is very similar to raphael, diamond and the other htc phones that are based on the QCT msm7xxxA chip. This is why the raphael/diamond development kernel code from the htc-linux project runs well on it.
Kovsky has its own machine type in the htc-msm-2.6.27 (see link above) branch now.
im kinda excited about this! if linux (& android) is able to run on the X1 smoothly, I'm definitely donating!
New thread = very good news.
If you need someone for testing then let me know.
I would be willing to donate as well.
Keep working hard everyone!
somehow i feel like setting up an X1 android version for it. since im more the "script" guy im rather useless for u if it comes to kernel development ^^
how stable and functional is the kernel so far?
and especialy, is the Wifi running allready?
hey decordes,
there is the question where to get the [email protected] files 0.8 and 1.0... (i have them. but dont know if i may provide these files while they are not from my self!)
a simple yes or no and they are available for the next years or not
--
cyberdesigner.net
achmed20 said:
how stable and functional is the kernel so far?
and especialy, is the Wifi running allready?
Click to expand...
Click to collapse
afaik the wifi doesnt work. only usb0 which is laggy. (but works! you could ssh to the x1 per default.)
i am a little bit bussy at the moment (have to provide some sap-python-mysql-interface for productive use.)
but if i get spare time i will take a closer look at wifi...
--
cyberdesigner.net
kk thx.
as long i can use ssh, i'm all set up i guess
time for some android theory
NSRocket said:
Ooops (forgot to strike key), yes I mean TNETW12511.
Click to expand...
Click to collapse
isnt that the same wifichip as the kaiser has?
but why is wifi needed to boot android?
Reversedhex said:
isnt that the same wifichip as the kaiser has?
but why is wifi needed to boot android?
Click to expand...
Click to collapse
I don't know many things on Kaiser device but if you read somewhere that it use a TI 1251 WLAN then... yes, it's the same.
I don't understand why do you correlate wifi and android booting
We're talking about this wifi chip just because it isn't supported in the linux-htc-kovsky package at the moment.
NSRocket said:
I don't know many things on Kaiser device but if you read somewhere that it use a TI 1251 WLAN then... yes, it's the same.
I don't understand why do you correlate wifi and android booting
We're talking about this wifi chip just because it isn't supported in the linux-htc-kovsky package at the moment.
Click to expand...
Click to collapse
i was reading a combination of things,
-wifi not working and usb0 laggy.
-log readout over usb0
so i thought maybe for the log or something, nevermind
---------------------------------------------------------
wifi not working on kaiser either so we cannot take the driver from there, but i dont think wifi has high priority...
http://www.androidonhtc.com/kaiser:port_status
NSRocket said:
I don't know many things on Kaiser device but if you read somewhere that it use a TI 1251 WLAN then... yes, it's the same.
I don't understand why do you correlate wifi and android booting
We're talking about this wifi chip just because it isn't supported in the linux-htc-kovsky package at the moment.
Click to expand...
Click to collapse
its not related. i jsut read that the USB connection was kind of laggy so once i set up a working wifi connection i can continue working with SSH over wifi. that was the only reason.
ah... ok i think this was my intention.
most of the time i am waiting for usb0 to get any response! i cant read on the display them self... so the next needed feature for _me_ was to get a stable/responsible connection (like wifi
achmed20: you got it!
--
cyberdesigner.net
Hi,
very nice project. Maybe i could help out a bit
At least i may help testing and do some hardware discoveries, because i'm not a good kernel hacker.
Anyway i'm used to digg the kernel source and all the other stuff.
There are some questions though:
Those are introduced in the git repository of Mariusz "Aiv" Dalewski. Among other changes, it has the fully working xperia keyboard.
Click to expand...
Click to collapse
Is the git already accessible?
Maybe someone could create a patch to get started more easily
afaik the wifi doesnt work. only usb0 which is laggy. (but works! you could ssh to the x1 per default.)
Click to expand...
Click to collapse
What's the exact state of USB connection right now?
Does it work on Raphael?
Concerning debugging:
Anything known about JTAG on Kovksy?
As you might know i'm addicted to this interface
Best regards,
scholbert
scholbert said:
Hi,
very nice project. Maybe i could help out a bit
At least i may help testing and do some hardware discoveries, because i'm not a good kernel hacker.
Anyway i'm used to digg the kernel source and all the other stuff.
There are some questions though:
Is the git already accessible?
Maybe someone could create a patch to get started more easily
What's the exact state of USB connection right now?
Does it work on Raphael?
Concerning debugging:
Anything known about JTAG on Kovksy?
As you might know i'm addicted to this interface
Best regards,
scholbert
Click to expand...
Click to collapse
http://www.htc-linux.org/wiki/index.php?title=Kernel#Kernel_for_QCT_MSM7xxxA_based_devices
The aiv code is htc-msm-2.6.27 branch plus xperia changes. I think he doesn't want to make it available publicly yet. I'm waiting for it too so I can push it to linuxtogo. You can pull the htc-msm-2.6.27 either way.
usbnet is same driver as used for raphael.
drivers/usb/msm_usb
For jtag, I think you need to wire it to the board manually.
For the raphael you can get a serial connection by making a cable that plugs in the usb port. Ask dreamkill about it. I don't know if it is wired the same way in xperia.
Hope this makes sense I have horrbile hangover
http://www.phonewreck.com/wiki/index.php?title=Sony_Ericsson_XPERIA_X1
So what has to be done is get the linux drivers for al these hardware components and compile them to a kernel to make it fully working?
that probably ist going to be easy
---------------------------------------------------------
btw about wifi cant the driver from g1 be extracted?
same hardware G1/X1
-Power Management PMIC: Qualcomm PM7540
-WLAN Texas Instruments WL1251B/WL1251FE
-UMTS: 2100MHz avago ACPM-7381
-USB SMSC USB3316
Hi dcordes,
thanks for your reply.
http://www.htc-linux.org/wiki/index.php?title=Kernel#Kernel_for_QCT_MSM7xxxA_based_devices
The aiv code is htc-msm-2.6.27 branch plus xperia changes. I think he doesn't want to make it available publicly yet. I'm waiting for it too so I can push it to linuxtogo. You can pull the htc-msm-2.6.27 either way.
Click to expand...
Click to collapse
Yeah did that already.
Unfortunately right now i got no X1 for testing. Should arive the next days i suppose
usbnet is same driver as used for raphael.
drivers/usb/msm_usb
Click to expand...
Click to collapse
O.K., i see so we will also use the config for raphael, i suppose..
For jtag, I think you need to wire it to the board manually.
Click to expand...
Click to collapse
Sure, that's essential
I just wanted to know if there's anyone apart from Sony and HTC engineers who got some info about these testpoints ?
For the raphael you can get a serial connection by making a cable that plugs in the usb port. Ask dreamkill about it. I don't know if it is wired the same way in xperia.
Click to expand...
Click to collapse
That's cool!
Hope this makes sense I have horrbile hangover
Click to expand...
Click to collapse
Does make sense to me
BTW anyone tried this patch to get WIFI support on X1?
http://linuxtogo.org/~lgorris/diffs/git-diff_htc-msm-2.6.27_add-ti1251.diff
Best regards,
scholbert
BTW anyone tried this patch to get WIFI support on X1?
http://linuxtogo.org/~lgorris/diffs/git-diff_htc-msm-2.6.27_add-ti1251.diff
Click to expand...
Click to collapse
Have to quote myself
The patch applies fine but after having a short glimpse, this one has been extracted from the SDK. No proper Kconfigs or Makefiles
So i don't think this huge patch is intended to go into kernel tree again.
AFAIK, there's also a lot of stuff for userland inside.
Insider may know more about it!
Perhaps for WIFI on the X1 it's better to start with a more clean driver.
You make have a look here:
http://osdir.com/ml/linux-wireless/2009-02/msg00390.html
I will try to integrate the patch to current 2.6.27-msm.
There's work to do of course, e.g. SDIO support and PM.
Best regards,
scholbert
I have no idea what you guys are saying.
But Android on the Xperia is f*****g awesome!
could any1 just quickly recap how close we are on a ROM with Android?
D4113R said:
I have no idea what you guys are saying.
But Android on the Xperia is f*****g awesome!
could any1 just quickly recap how close we are on a ROM with Android?
Click to expand...
Click to collapse
though i understand just a little, id like to qoute myself on this
So what has to be done is get the linux drivers for al these hardware components and compile them to a kernel to make it fully working?
that probably ist going to be easy
Click to expand...
Click to collapse
yes with htcraphael_defconfig xperia boots.
I will ask some people about 7xxxA jtag pins and let you know if I have any information.
scholbert said:
Have to quote myself
The patch applies fine but after having a short glimpse, this one has been extracted from the SDK. No proper Kconfigs or Makefiles
So i don't think this huge patch is intended to go into kernel tree again.
AFAIK, there's also a lot of stuff for userland inside.
Insider may know more about it!
Click to expand...
Click to collapse
Right, It copies some revision (see date of file upload) of the android git ti1251. It should enable you to build the kernel module.
lgorris=dcordes
scholbert said:
Perhaps for WIFI on the X1 it's better to start with a more clean driver.
You make have a look here:
http://osdir.com/ml/linux-wireless/2009-02/msg00390.html
Click to expand...
Click to collapse
It's no big secret the 10M google ti1251 driver is crap and it might really be better to use that wl12xx as soon as they have the SDIO.
scholbert said:
I will try to integrate the patch to current 2.6.27-msm.
There's work to do of course, e.g. SDIO support and PM.
Click to expand...
Click to collapse
That will be nice. Let me know when you tried.

[REQUEST] Global G-Sensor calibration app/hack

Hi, I am sorry if this has been posted before else where on XDA but i cant find anything on the development thread.
Is it possible for someone to make a G-Sensor calibration app that works globally for all apps on the phone?
I have the problem where if you say, use the layar app, the horizon is not level and driving games always go to the left for example.
I have rooted my phone now so cant send back for warranty. Surley a global calibration app for rooted users would be quite simple lol? not that i am a developer haha.. i have no idea, but surley its just a case of adding a number to part of the code for the g-sensor driver heh heh
Hope someone can help!
p.s Who else has this issue?
P.s. I just read on this this thread that Modaco's alpha 14 ROM contains g-sensor calibration in 'settings, sound and display and @ the bottom G sensor calibration'??
Is is possible for someone to get the bits requred to enable this on any rom that we can just flash an update.zip to get working?
sorry for putting this post in the development forum, i saw some other requests and assumed that was the place for it
so, Bump, any devs have any idea if its possible?
Bump
Calling all devs! :O) Does anyone know if its possible?
not one single person has anything to say about this? sigh...
bump from me too...
lastes cyan has issues after laying on a table.
It won't go to portrait mode.
i'll see if i can find a way to pull that little tidbit from their code. i found this while trying to find a way to unscrew my compass. i thought there was a way to calibrate it.
does anyone know where the g sensor or compass physicly is in the phone? i'm guessing in the gps box, but i dont know. in the early days of my G1, it sailed across the room a plenty due to the lightsaber/sword/fishing/gun apps. some call it Wii syndrome. i may have broken the damned thing.
Sent from my HTC Dream using the XDA mobile application powered by Tapatalk
theomajigga said:
bump from me too...
lastes cyan has issues after laying on a table.
It won't go to portrait mode.
Click to expand...
Click to collapse
Woah, I thought I was the only one with this problem.
Setting the phone on a table pretty much guarantees it going into landscape and I have to tilt it back up and forward to get it back into portrait before laying it down again.

[Q] How about a new camera?

Hi there,
I don't know if this is possible, so the first part of this thread is a question. The second part is an idea, that only works if the answer is yes.
1. Is it possible to dismount the current camera in the Tattoo and replace it with a different camera?
2. If so, we should try to find a camera which has accessible drivers, a low price tag, autofocus and maybe even flash(which would require a bit of casemodding). That way we could have new ROMs with working cameras and the crappy original camera would be replaced. That way we could kill two birds with one stone.
We could find several possible candidates, have a poll in the forum and then add tutorials for new users, so they know where to get the camera and how to put it in the device.
What do you think? And more importantly - Would it even work?
4 said:
Hi there,
I don't know if this is possible, so the first part of this thread is a question. The second part is an idea, that only works if the answer is yes.
1. Is it possible to dismount the current camera in the Tattoo and replace it with a different camera?
2. If so, we should try to find a camera which has accessible drivers, a low price tag, autofocus and maybe even flash(which would require a bit of casemodding). That way we could have new ROMs with working cameras and the crappy original camera would be replaced. That way we could kill two birds with one stone.
We could find several possible candidates, have a poll in the forum and then add tutorials for new users, so they know where to get the camera and how to put it in the device.
What do you think? And more importantly - Would it even work?
Click to expand...
Click to collapse
Nah, near impossible.
Actually a nice idea but VERY difficult. Only a small number of users would be possible to actually mod there devices, if this is possible in the first place...
Sent from my Tattoo using Tapatalk
And what about copy the stock camera app and driver for rooted android phons
Sent from my Tattoo using XDA App
mlkabdullah said:
And what about copy the stock camera app and driver for rooted android phons
Sent from my Tattoo using XDA App
Click to expand...
Click to collapse
Lol you think nobody tried?
Anyway its a cool idea but its hard for a regular user to do something like that...
Maybe rather a USB connected camera. The built-in will not work, so when we need a camera, we pull this mini-camera out of our pocket and connect it to the USB-port.
Someone who want starting a new firm? It's gonna sell!!
Ihaveatattoo said:
Maybe rather a USB connected camera. The built-in will not work, so when we need a camera, we pull this mini-camera out of our pocket and connect it to the USB-port.
Someone who want starting a new firm? It's gonna sell!!
Click to expand...
Click to collapse
yeea but nothing bellow 12mp
It is interesting idea, but i don't believe a lot of people would spend money on tattoo - i'd rather buy a new android phone with better camera
Anyway, we now have almost fully workable camera, thanks to all developers!

Categories

Resources