I am working on a project with Hall Sensor in Samsung Galaxy S4. It works fine but the problem is i dont know how to use the sensors for realtime apps except smart sview. If you post the idea's then we can use my hall sensor class with the activity app to create variety of apps.
Also i want to know how much magnetic force needed to activate sensor. i dont want to damage my sensor with power full magnet while testing. and couple of ideas to get low power magnets from which toys suitable for this project.
sanris said:
I am working on a project with Hall Sensor in Samsung Galaxy S4. It works fine but the problem is i dont know how to use the sensors for realtime apps except smart sview. If you post the idea's then we can use my hall sensor class with the activity app to create variety of apps.
Also i want to know how much magnetic force needed to activate sensor. i dont want to damage my sensor with power full magnet while testing. and couple of ideas to get low power magnets from which toys suitable for this project.
Click to expand...
Click to collapse
Hi since i am seeing you working with the hall sensor, hope you can solve or suggest whats wrong in my GTi9500 India version. the S-view display comes by itself, when i am just holding the phone in my hand[ without the actual S-view cover].
Details.
My GTi9500 is just having its own back cover, nothing extra,
when i make a call and hold the phone in my hand, i can see the call screen of the s-view mode flashing for a brief and then goes back to normal. i understand that the sensor is right below the volume button, and when i am holding this area with my hand i can see this s-view display flicker.
it also happened couple of times in app drawer screen and the stock browser screen.
my phone is complete stock, i havent rooted it and changed the rom/kernel/modem.
have run the diagnostics via *#0*# Diagmode
am seeing the sensor test results are PASS>
so how can i solve this. or is this a hardware issue and do i go for a repair?
First you need to confirm whether the problem occurs when phone in a wooden table without surrounding by magnetic flux. Just find a better place with very magnetic field, etc and put in a wooden table and confirm whether it changes or not. In couple of days, i will release the hall sensor monitor. you can use it too to find it instead of looking into phone for long time.
Second, if it happens only in hand, then
if you wearing any magnet rings or other iron (may magnetized by flux), etc then remove it then operate the phone and confirm whether your problem is solved or not.
Hall Sensor, is a very sensitive sensor which is just below the volume buttons and few mm away from edge.
Hall Sensor working based on sensitive magnetic flux attraction. (not sure whether its south pole or north pole. i dont have testing magnet with pole identifications)
Hall Sensor activates automatically if the magnetic field is > xx (minimum) level. In S-View cover, its very very tiny magnet not easy to notice by novice users. so your phone may act abnormal when you using your rings, bracelets, etc.
--
if your phone works abnormally when in isolated wooden table and there is no high radiation towers near you then its hardware defect. you need to contact customer care service centre.
sanris said:
First you need to confirm whether the problem occurs when phone in a wooden table without surrounding by magnetic flux. Just find a better place with very magnetic field, etc and put in a wooden table and confirm whether it changes or not. In couple of days, i will release the hall sensor monitor. you can use it too to find it instead of looking into phone for long time.
Second, if it happens only in hand, then
if you wearing any magnet rings or other iron (may magnetized by flux), etc then remove it then operate the phone and confirm whether your problem is solved or not.
Hall Sensor, is a very sensitive sensor which is just below the volume buttons and few mm away from edge.
Hall Sensor working based on sensitive magnetic flux attraction. (not sure whether its south pole or north pole. i dont have testing magnet with pole identifications)
Hall Sensor activates automatically if the magnetic field is > xx (minimum) level. In S-View cover, its very very tiny magnet not easy to notice by novice users. so your phone may act abnormal when you using your rings, bracelets, etc.
--
if your phone works abnormally when in isolated wooden table and there is no high radiation towers near you then its hardware defect. you need to contact customer care service centre.
Click to expand...
Click to collapse
Thanks for your feedback, lemme try this and comeback...
Still issues
ksenthi5 said:
Thanks for your feedback, lemme try this and comeback...
Click to expand...
Click to collapse
Hi, the problem still persisted even when the phone is just in the wooden table, hence i went to service center and they changed the mother board.
[not sure whether the sensor gets changed with this], as the executives don't even have knowledge of sensors...
but with the new board also am facing the same problem.
note: i owned a S4 for three months prior to this, and was walking.using, working in the same environment. and with same environment am still there. but facing this issue only in the new phone...
what shall i do... force to get my phone replaced?????
Contact customer care online and submit a complaint about malfunction of Hall sensor as well as problem persist after changing motherboard. Then go to customer care with the online complaint and ask them to replace hall sensor.
Sent from my GT-I9500 using XDA Premium 4 mobile app
One doubt
sanris said:
Contact customer care online and submit a complaint about malfunction of Hall sensor as well as problem persist after changing motherboard. Then go to customer care with the online complaint and ask them to replace hall sensor.
Sent from my GT-I9500 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
As am not so novice on Hardware, when you ask me to request the service technician to change the hall sensor, even after changing the motherboard, do you mean that the Change of board doesnt constitute hall sensor change?.
is that a seperate entity
ksenthi5 said:
As am not so novice on Hardware, when you ask me to request the service technician to change the hall sensor, even after changing the motherboard, do you mean that the Change of board doesnt constitute hall sensor change?.
is that a seperate entity
Click to expand...
Click to collapse
samsung replace the phone only if problem unable to resolve after changing parts several times. thats why i told you like that.
there is only three kind of problems.
1. sensors not working properly
2. sensors working properly but sensorhub ic(u805) or corresponding ic unable to process values from sensor and fail to send further.
3. environment makes the sensor work ubnormaly.
in motherboard it has most of sensors as well as ic's u805 , u807 & u600 .
in small piece of pcb in bottom have humidity and temperature sensors which feed data to the above ic's.
few sensors may not directly in motherboard and feed data to motherboard.
i just want to know few things
1. whats your exact problem ? (screen goes blank sometimes or do you see the mini window ). screen goes blank in two situations. 1) when samsung service receive DOOR_CLOSED event from hall sensor , 2) proximity sensor detect close objects and during call (by software program) it turn off display.
2. settings > My Device > Accessory > S View Cover - make sure this setting is disabled for you.
3. how you checked your hall sensor is malfunctioning ?
----------------------------------------------
To activate hallsensor
SIMPLY USE MAGNETIC SCREW DRIVER . see the snapshots
also pls send your email id to me in PM, i will send you some reference materials and circuits. so you can understand better.
sanris said:
samsung replace the phone only if problem unable to resolve after changing parts several times. thats why i told you like that.
there is only three kind of problems.
1. sensors not working properly
2. sensors working properly but sensorhub ic(u805) or corresponding ic unable to process values from sensor and fail to send further.
3. environment makes the sensor work ubnormaly.
in motherboard it has most of sensors as well as ic's u805 , u807 & u600 .
in small piece of pcb in bottom have humidity and temperature sensors which feed data to the above ic's.
few sensors may not directly in motherboard and feed data to motherboard.
i just want to know few things
1. whats your exact problem ? (screen goes blank sometimes or do you see the mini window ). screen goes blank in two situations. 1) when samsung service receive DOOR_CLOSED event from hall sensor , 2) proximity sensor detect close objects and during call (by software program) it turn off display.
2. settings > My Device > Accessory > S View Cover - make sure this setting is disabled for you.
3. how you checked your hall sensor is malfunctioning ?
----------------------------------------------
To activate hallsensor
SIMPLY USE MAGNETIC SCREW DRIVER . see the snapshots
also pls send your email id to me in PM, i will send you some reference materials and circuits. so you can understand better.
Click to expand...
Click to collapse
see the photos to generate sviewcover door close event
sorry, i just read your first message again. your problem definetly related with hallsensor (if actually available). other wise its related to magnetic sensor. i will open my s4 and confirm you whether hall sensor is in motherboard or separated OR magnetic sensor acting as a hall sensor.
problem is only with hall sensor or sensorhub ic u805. you can also check whether the aluminium frame magnetized or not by using a iron piece. and try to turn off the S View Cover feature in my display> acc... like i mentioned in previous post.
for hall sensor testing, i almost finished my new android app, i will publish it and upload into xda soon. its running as a service+activity (b'cause. when doorcloses the activity get freezed and unable to log status. it log status again only after phone wakes. so i wrote part of sensor readings in service and display report in activity) and log the status when ever the door event raises. i mean Doorclosed/DoorOpen. and you need to open the application activity and see the report with timings and door state changes.
sanris said:
sorry, i just read your first message again. your problem definetly related with hallsensor (if actually available). other wise its related to magnetic sensor. i will open my s4 and confirm you whether hall sensor is in motherboard or separated OR magnetic sensor acting as a hall sensor.
problem is only with hall sensor or sensorhub ic u805. you can also check whether the aluminium frame magnetized or not by using a iron piece. and try to turn off the S View Cover feature in my display> acc... like i mentioned in previous post.
for hall sensor testing, i almost finished my new android app, i will publish it and upload into xda soon. its running as a service+activity (b'cause. when doorcloses the activity get freezed and unable to log status. it log status again only after phone wakes. so i wrote part of sensor readings in service and display report in activity) and log the status when ever the door event raises. i mean Doorclosed/DoorOpen. and you need to open the application activity and see the report with timings and door state changes.
Click to expand...
Click to collapse
thanks, in the idea of getting my phone replaced, again i visited the service center today, and they have taken it for service. ok
Please let me know about both senor - magnetic and Hall sensor... whether these two are separated from motherboard or attached to it.
Hi,
the app works well as far as I can say. Just one request: would it be possible to have the closed cover turn the screen off instead of locking the phone?
With the phone lock set to password, the time delay between screen off (time out or using the button) and phone lock is not respected.
Thanks!
Sent from my GT-I9505 using XDA Premium 4 mobile app
sanris said:
I am working on a project with Hall Sensor in Samsung Galaxy S4. It works fine but the problem is i dont know how to use the sensors for realtime apps except smart sview. If you post the idea's then we can use my hall sensor class with the activity app to create variety of apps.
Also i want to know how much magnetic force needed to activate sensor. i dont want to damage my sensor with power full magnet while testing. and couple of ideas to get low power magnets from which toys suitable for this project.
Click to expand...
Click to collapse
Have you released your app? I'm also curious how you receive the events from the sensor, and would be very happy if you could share the knowledge.
sanris said:
...
for hall sensor testing, i almost finished my new android app, i will publish it and upload into xda soon. its running as a service+activity (b'cause. when doorcloses the activity get freezed and unable to log status. it log status again only after phone wakes. so i wrote part of sensor readings in service and display report in activity) and log the status when ever the door event raises. i mean Doorclosed/DoorOpen. and you need to open the application activity and see the report with timings and door state changes.
Click to expand...
Click to collapse
Hi,
I just stumbled across your thread searching for Hall Sensor.
Is your app available somewhere? Also, sorry if this is a stupid question (I'm not into Android dev), but does your app depend on Samsung / TW framework / API or does it work with alternative ROMS (CM, AOSP, PA,..)?
AFAIK those ROMs do not support the S-View, so if your solution is not tied to Samsung framework / API, this would probably help a lot of people (like myself) running non-Samsung ROMs on their S4, Note 3.
As for different uses, there might be plenty but a good idea, I think, would be to develop a Tasker plugin. This would open a lot of possibilities.
Thanks.
LuMe96 said:
Hi,
I just stumbled across your thread searching for Hall Sensor.
Is your app available somewhere? Also, sorry if this is a stupid question (I'm not into Android dev), but does your app depend on Samsung / TW framework / API or does it work with alternative ROMS (CM, AOSP, PA,..)?
AFAIK those ROMs do not support the S-View, so if your solution is not tied to Samsung framework / API, this would probably help a lot of people (like myself) running non-Samsung ROMs on their S4, Note 3.
As for different uses, there might be plenty but a good idea, I think, would be to develop a Tasker plugin. This would open a lot of possibilities.
Thanks.
Click to expand...
Click to collapse
First, it's worth to mention I'm not involved in development of this app in any way.
One way to get the app is to install F-Droid, the alternate open source market. Then look for Hall Monitor.
The app doesn't depend on TW, it's developed from scratch. It definitely works on CM @ Galaxy S4 and should work on any device with magnetic sensor, but I didn't test it on any other device or ROM.
Sent from my GT-I9505 using XDA Premium 4 mobile app
Hi,
Thanks a lot for the information.
Envoyé de mon GT-N5120 en utilisant Tapatalk
Hall monitor 0.2.2 is great for use with cm11.
Just found it and it works great. I just think it has unneeded permissions. Other than that it's a great app.
sanris said:
I am working on a project with Hall Sensor in Samsung Galaxy S4. It works fine but the problem is i dont know how to use the sensors for realtime apps except smart sview. If you post the idea's then we can use my hall sensor class with the activity app to create variety of apps.
Also i want to know how much magnetic force needed to activate sensor. i dont want to damage my sensor with power full magnet while testing. and couple of ideas to get low power magnets from which toys suitable for this project.
Click to expand...
Click to collapse
Hall sensor is not for generic use. The sole purpose of this sensor is to handle S-View cover. State of this sensor monitored in framework and there is no way to use it in 3rd party apps. Well, unless you root and hack the ROM (which is completely different story).
I have a similar kind of problem, when i turn on mobile data or when i am on a call, the S view will flash through the screen for few milliseconds.
Any idea on this guys ?
Thanks
It seems to be there is no dedicated hall sensor in device. magnetic sensor seems to be acting as hall sensor. in samsung galaxy s4, the the samsung core framework update the hallsensor data file with wrong values mistakenly. for example, change the door to CLOSED state even the door is open due to tiny fluctuation in magnetic sensor reading. samsung need to change hall sensor value from OPEN to CLOSED only when strong magnetic field. may be they fix this in next update.
For now, there seems to be 5 solutions.
1. you can turn off S-VIEW in settings
2. replace your magnetic sensor
3. root the device and write-protect the file hall_data in system folder with value "CLOSED"
4. root the device and try to disable S-VIEW
5. try other non-samsung rom
Karthik
I have a XT1031 running on Boost Mobile. I'm currently running official SlimKat build 9 but switch back to stock when I am expecting alot of calls since I can't find a voicemail app that works with Boost Mobile on custom ROMs. I've searched for months for a fix that works to correct the faulty proximity sensor but haven't had any luck. Does anyone know of a way to completely disable the proximity sensor?
BaumerGXP said:
I have a XT1031 running on Boost Mobile. I'm currently running official SlimKat build 9 but switch back to stock when I am expecting alot of calls since I can't find a voicemail app that works with Boost Mobile on custom ROMs. I've searched for months for a fix that works to correct the faulty proximity sensor but haven't had any luck. Does anyone know of a way to completely disable the proximity sensor?
Click to expand...
Click to collapse
I guess it is not possible to disable it... If you want to fix the proximity sensor you must flash your phone with an stock room...
The proximity sensor has been bad since I received the phone. It was a gift and out of warranty. My issue is there no matter if the phone is stock or running a custom ROM. I was hoping a dev would have some insight to disabling it with a prop/hex editor or something.
Caution DO NOT DO THIS unless you want your proximity sensor completely disabled!!!
Also you're doing this on your own risk!
So if your proximity sensor is not working at all, you can disable it completely by chopping it off the board. The light sensor is separate, so this won't affect your auto-brightness.
Open your phone (14 torx screws), pop out the back panel.Barware not to lose your Power and Volume keys.
You don't need to detach the battery, just go ahead and lift the board carefully ( there are videos on YouTube how to do that ).
Flip the board to your right hand side, be careful, the display flex is still attached, you don't want to break that.
You can now find both sensors on the top right corner of the board, the proximity sensor is the LEFT one when you face the board straight up.
Use a small flat screwdriver and with a semi-gentle push in its base you can chop it off.
You're done!
Reassemble carefully.
Thanks for the suggestion I'll try to find some of those YouTube vids you mentioned. But from what I've been reading is that the sensor is just an ambient light sensor that can detect proximity when coupled with an IR-LED so I'm not understanding how I can just chop off the prox sensor. I can't post the link but the article is on Andrux & me blog titled CT406: proximity and light sensor on MotoG
Sent from my Moto G
BaumerGXP said:
Thanks for the suggestion I'll try to find some of those YouTube vids you mentioned. But from what I've been reading is that the sensor is just an ambient light sensor that can detect proximity when coupled with an IR-LED so I'm not understanding how I can just chop off the prox sensor. I can't post the link but the article is on Andrux & me blog titled CT406: proximity and light sensor on MotoG
Sent from my Moto G
Click to expand...
Click to collapse
Proximity and light sensors are separate, so chopping off the proximity one won't affect anything, besides proximity not working and the circuit will report "open", which means no object near, hence your screen won't turn off.
There are many types of sensors and they might differ in the way they work.I seriously don't see what y you've said is related at all.
For anyone interested, I found a module for Xposed Framework called Disable Proximity Sensor and it works flawlessly
Sent from my XT1031
Dear Experts,
first of all, I'm sorry if this is a wrong question, or if it's being posted in the wrong section.
I know what a gyro sensor is. But I'm not really sure what its use in a phone is. This question came up, when I figured out, that Samsung gave up the gyro sensor in its A-series phones.
In my thoughts, without a gyro sensor, functions like - when the phone is ringing, turn it with the display down and it'll turn off the ringer sound. Gaming - all those racing games, where you are turning left or right by slightly tilting the phone, also the game Teeter, that used to be so popular. IMHO, all this functionality of a smart phone would be lost if there isn't a gyro sensor. Am I right ? Or what is it about ?
Many thanks in advance!
darkman088 said:
Dear Experts,
first of all, I'm sorry if this is a wrong question, or if it's being posted in the wrong section.
I know what a gyro sensor is. But I'm not really sure what its use in a phone is. This question came up, when I figured out, that Samsung gave up the gyro sensor in its A-series phones.
In my thoughts, without a gyro sensor, functions like - when the phone is ringing, turn it with the display down and it'll turn off the ringer sound. Gaming - all those racing games, where you are turning left or right by slightly tilting the phone, also the game Teeter, that used to be so popular. IMHO, all this functionality of a smart phone would be lost if there isn't a gyro sensor. Am I right ? Or what is it about ?
Many thanks in advance!
Click to expand...
Click to collapse
Exactly, no gyro, no tilt detection
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS FOR EVERYONE TO SHARE
darkman088 said:
Dear Experts,
first of all, I'm sorry if this is a wrong question, or if it's being posted in the wrong section.
I know what a gyro sensor is. But I'm not really sure what its use in a phone is. This question came up, when I figured out, that Samsung gave up the gyro sensor in its A-series phones.
In my thoughts, without a gyro sensor, functions like - when the phone is ringing, turn it with the display down and it'll turn off the ringer sound. Gaming - all those racing games, where you are turning left or right by slightly tilting the phone, also the game Teeter, that used to be so popular. IMHO, all this functionality of a smart phone would be lost if there isn't a gyro sensor. Am I right ? Or what is it about ?
Many thanks in advance!
Click to expand...
Click to collapse
The tilting while playing video game is using Accelerometer sensor and not gyro sensor,
gyro sensor mainly used for vr or something like 360 videos in youtube,you got to turn around your head
and the phone will follow it,to demonstrate this,i recommend you download a sensor test on
the google play store
Thunderoar said:
The tilting while playing vjdeo game is using Accelerometer sensor and not gyro sensor,
gyro sensor mainly used for vr or something like 360 videos in youtube,you got to turn around your head
and the phone will follow it,to demonstrate this,i recommend you download a sensor test on
the google play store
Click to expand...
Click to collapse
Accelerometers measure the motion but it works together with gyro to detect things like tilt and orientation. Accelerometer by itself does not handle tilt. I could get into details but it would only cloud the question.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS FOR EVERYONE TO SHARE
Droidriven said:
Accelerometers measure the motion but it works together with gyro to detect things like tile and orientation. Accelerometer by itself does not handle tilt. I could get into details but it would only cloud the question.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS FOR EVERYONE TO SHARE
Click to expand...
Click to collapse
you mean tilt, but ok