Showing posts with label guide. Show all posts
Showing posts with label guide. Show all posts

Workaround for failed Als_ps calibration

Workaround for failed Als_ps calibration
If your Android phone keeps the screen off when taking it away from your hear, the proximity sensor doesn't do its job properly.
The following solution worked consistently for me.


I've seen this recently with Mediatek-based phones produced by Alps (Elephone, Ulefone, ...) and it seems that many other phones are affected by a bug with the proximity sensor.

The symptom:
After a time of normal operation (phone turns the screen off during a call and restores it once away from your face) , the proximity sensor suddenly stops working and the screen remains off.

The normal corrective operation is to go to Display setting, and run the "Proximity Sensor Calibration". In many cases, the calibration fails with an error like "als ps calibration failed"

In most cases, the proximity sensor hardware is fine but somehow, the calibration values gets messed up at some stage, obviously because a software bug.

Note: the solution below does not prevent the problem from re-occurring ut provides a temporary solution until Mediatek comes up with a real bug fix.

First think to do: Verify that the Proximity Sensor works
This can be done via the the Engineering mode.
The right code to dial varies within the models. The one below is for the MTK 6752 phones:
*#*#3646633#*#*



Once in  the Engineer Mode screen, go to Hardware Testing > Sensor > Light/Proximity Sensor > PS Calibration.

Although this different calibration screen would seem like a alternative to the main one, it didn't fix any problem back in Android. At least you can see the "PS" value changing is real time by waving your hand over it: that means the sensor is ok.

Now try this workaround:
The method below basically consist in ... doing the opposite of the on-screen instructions!

You may need to re-try a few times, but I now manage to have it working consistently within maximum 3 attempts.


First of all, go to the Proximity Sensor Calibration in the Display settings:



Step #1, "Retrieving effective parameters":
What the instructions say: "remove objects in front of distance sensor"
What you should do: Keep it well covered during that phase (while it counts from 1 to 3).
Covering and uncovering the screen a few times during that phase may also work.



Step #2, Calibrating...
What the instructions say: "place objects in  front of the distance sensor"
What you should do: Don't cover it.




If all goes well, the screen should show a countdown from 3 to 1, which indicates that the calibration process succeeded.


The last screen allows to test the brightness varying with proximity.
Further sensor tests can be done with apps like CPU X or Phone Tester.


The phone screen should now behave normally during phone calls...at least for a while...






Read More

Android calendar nightmare...

Android calendar nightmare...
A recent strange incident with my Android calendar synchronization almost drove me insane.

It appears to be a very popular issue that has many causes and solutions.




Here is my 2 cents with a solution that worked for me...
First, the symptoms of my situation:

Calendar sync stopped working, everything else still gets sync'ed

- The calendar stopped synchronizing any new entry and just showed the cached existing items up to a recent date.
- Any new item added on the phone would not be saved. Any new item added from a PC would not be sync'ed into the phone.
- "Calendar" had disappeared from the Sync list in the Android settings, all the other apps were still listed and working. 
- There was no calendar listed under my account in the Calendar settings
- Trying to add a calendar would bring a prompt for Sign-in a New or Existing Account which would consistently fail with the "couldn't sign in" error.

My working resolution (root needed):

- Removed the calendar.apk from system/app folder
- Restarted the phone
- In Settings>Accounts> Google>account name> Removed the account using the menu and added it again
- From Play, located the Calendar app from Google and installed it.
From this moment, the Calendar should be back in the Sync list
- (Optional but recommended) moved the new com.google.android.calendar.apk from /data/app to /system/app and restarted the phone.  This turns the new Calendar into a system app.

Remark:

This replaces the stock/AOSP calendar.apk with the much bigger (20MB vs 2.6MB) but nicer one from the Play Store. In my case, this was a necessary part of the solution because, doing the same procedure as above with this stock apk did not help at all.

One problem, many possible causes and solutions:

I can only speculate on the causes as this happened after no obvious configuration change or application installation. I suspect the stock calendar.apk (4.4.4-1227136) in my official Android 4.4.4 from THL to have some kind of bug.

Other people have resolved a similar problem by either updating/re-installing Google Play service, 
clearing the cache and data for Google Play Framework, disabling the 2-step authentication (not used in my case), removing the Google account and re-adding it, replacing the Calendar Sync Adapter apk, ...


Read More

Outdoor IP Camera Amovision AM-Q6320-WIFI

Outdoor IP Camera Amovision AM-Q6320-WIFI

For roughly 70€, the AM-Q6320-WIFI is the cheapest Wireless and HD outdoor camera I could find, and yet, it does the job...





After 3 years in the cold, my old ES-IP611W started giving signs of giving-up-soon, reminding me that it was never meant to be an outdoor camera anyway.
At the time, it was a good compromise as I needed something compact and real outdoor bullet cameras had prohibitive dimensions for my set up.

Now there are some low-cost IPC bundling significant advantages over this old dome camera: IP66 rating (dust-tight and strong water jet-proof), HD 720P with H264 compression, IR-Cut, WDR (Wide Dymamic Range), Wifi-n and ONVIF compliance.


The AM-Q6320-WIFI comes with the bracket, the fixing screws, wall plugs, and Allen key for adjusting the position, a brief "starting guide" leaflet, and a mini-CDR that should not be overlooked: beside the usual camera finder utility, it contains important information in a mess of documents, like he ONVIF ports and RTSP urls.



The camera came with the firmware V2.0.6.10-M20-Build:20131116T. At time of writing, the latest version at time of writing is V2.1.8.22-M20-Build:20140425T.


Specs:
Image Sensor:1/4" Progressive Scan CMOS OV9712
Effective Pixels: 1280(H)x720(V)
Min. Illumination:Color: 0. 1Lux, B/W: 0.01Lux ; 0Lux(IR on)
Max. IR LEDs Length:Φ5 36pcs IR Led , IR Range 15m
Day/Night:Auto(ICR) / Color / B/W
White Balance:Auto
Gain Control:Auto/Manual
Focal Length:6mm 
Max Aperture:F1.6
Angle of View:39.8
Mount Type:MTV mount (Interchangeable Lens)
Compression:H.264 
Main Stream:HD 720P (1280*720) 25fps 
Sub Stream:VGA 640*360 25FPS 

Video streaming options:
Camera's own CMS:


The most straightforward way to watch the video from the camera is through its own CMS.
Under IE, the AX controls can be downloaded from the camera 
Under Chrome/Mozilla/..., VLC will be used if available.
The interface is basic and clear with a good repartition of the features. 

As for many IPC in that range, the Audio and PTZ options are present even though not available on this model.

RTSP stream:
Tracing the network stream is a quick way to reveal the right rtsp syntax to use. But some documents under the "Third-party compatible" folder in the Mini-CD also contain that information.
With RTSP compatible viewers, such as VLC, there are 3 modes possible:

rtsp://<ip address>:554/11 -> 720P resolution or "MainFlow"
rtsp://<ip address>:554/12 -> VGA or "MinorFlow"
rtsp://<ip address>:554/13 -> the lowest "mobile phone" QVGA resolution


ONVIF:
Unlike many IPC using port 80 for Onvif, the default port is 1018.






This information is missing from the printed leaflet and you need to look at the "Third-party compatible" folder  on the mini-CD.  The ONVIF port is fixed in the early version of the firmware, but eventually can be changed in the LAN settings with the April 2014 firmware (that can be downloaded below).













SDK
Since it is based on the widespread HiSilicon Hi3510, the technical documentation can be found in Foscam and Dericam web sites and forums, like this precious SDK!

It contains all the commands that can be used to set/get configuration data and control the camera.

An example of its use is given later on.

There is also a telnet service but the login is kept secret by the manufacturer so far. 
However, visiting some .js scripts in the page sources reveals some file locations like:

http://<ip address>/tmpfs/accesslog.txt,  or /tmpfs/syslog.txt


Upgrading the firmware:
I received the latest firmware from Amovision.
That firmware image is valid for several models but the upgrade routine makes the distinction between single-board and double-board models and by default rejects the file.











The trick is to log in using this particular URL:
http://<ip address>/web/index.html?&-nochkupg
...and then load the following file from the Update section:
UPG_ipc3309a-w7-M20-hi3518-20140426_152644.ov (*)

When the IPC is done with updating, submitting the following URL:
http://<ip address>/cgi-bin/hi3510/param.cgi?cmd=getserverinfo

...should returns the following software version:
var softVersion="V2.1.8.22-M20-Build:20140425T"

(*) The firmware provided here has been tested only with the AM-Q6320. While I suspect it will work on other similar models such as Sinocam IPC-7004A, IPCC-B10, Vanxse V-B811/Sinocam IPC-6409 , I do not recommend to try it before a confirmation from the manufacturer.


In conclusion, this is a honest device for the price. It is easy to install and of compact dimensions.
Only grief I have is about the short power cord: once plugged to the camera cable, it gives no more than 1.6 meters in length, which is a bit short for going through the outside wall to the nearest power socket.



Special thanks to the reseller Smart918 on Amazon.co.uk marketplace who quickly replied to my technical queries and also to Amovision technical support for their reactivity in providing me so quickly with the latest firmware and a solution to apply it.







Read More

Setting your Android device to your Language

Setting your Android device to your Language

If your brand new Android device was not set in your own language, finding the right settings can sometimes be challenging without visual clues.


This very short illustrated guide can be used for Android smartphones version 4.x onward.







Press the "menu" button

In the menu appearing, select the last option (goes to system settings)

Scroll down until you see the icon with "A..." (goes to languages & input)

Select the first option... 

Find and select your language in the scrolling list.

Read More

THL W100: The noLED workaround

THL W100: The noLED workaround
The THL W100 phone does not have any notification LED for missed phone calls and text messages.

A simple software solution exists if your phone is rooted.




This solution for smartphones without notification LED was  released some time ago on forum.xda-developers.com and consist in a small app that hacks either the power LED or the back-light of the soft buttons to give a visual indication of missed calls.

It works perfectly on the THL W100.

After the installation of the noLED.apk app, the setup will try to locate the files to tweak.


Off the 3 locations detected, two are actually usable:


The first one, will hack the power LED for notifications...





... and the third option will use the back-light of the soft buttons.


Once tested from the app, the ButtonLED feature can be enabled from the Accessibility section of the system menu.





Read More

Connecting IP Camera Viewer to Synology Surveillance Station

Connecting IP Camera Viewer to Synology Surveillance Station
HitMob's IP Camera Viewer for Android and iOS can be configured to access the IP Cameras through Synology Surveillance Station, with the distinctive advantage that such connection can be encrypted.

The process is not over-complicated but deserves to be properly documented.






While IP Cameras claim to be security devices, most of them are completely insecure when it comes to access them: their clear text login is easy to intercept. Only high-end models support SSL encryption,

This is the reason I recently invested into 5 additional Synology camera licenses (CLP4 + CLP1, which means an extra 200€ in total!!

The Smartphone app DS Cam from Synology is far from perfect and only supports MJPEG cameras under a unique multi-view.
HitMob's IP Camera Viewer supports Synology but does not give much information on how to make this work.

The very first requirement, at least since DSM 4.x, is to have a non-admin user with nothing else than the Surveillance Station permission.
If the user presented by IP Camera Viewer has any sort of administrator privilege, it will be rejected by the NAS.







The next thing is to confirm an HTTPS port for the Surveillance Station via the Syno's Application Portal (here 9901) and to ensure that the router will forward external requests to that port (9901) to the NAS internal IP address.
click for bigger view










From there it is just a matter of creating cameras in IP Camera Viewer, using Synology as Make and Synology Surveillance Station as Model, with the right DDNS address, HTTPS port, and login. You must create one entry per camera. Each camera is identified by the field Ch.#
To speed things up, the first camera can be cloned via the application menu and the channel field (Ch.#) will be automatically incremented for each new clone.



Gaining in security requires a trade with functionalities, and you may loose the PTZ control and Audio. At least that's my case with Foscam FI8918W, Tenvis JPT3815W, Tenvis IPRobot3 and Dericam H502W.




See also: Security and IP Cameras
Read More

Adding DIY drivers for Maygion H.264 to Synology Surveillance Station

Adding DIY drivers for Maygion H.264 to Synology Surveillance Station
The current ONVIF implementation in Dericam H502W/Cybernova WIP604MW IP Cameras does not allow High Resolution and Pan & Tilt control in Synology Surveillance Station.

This method initialy published on the Polish web site, webcam4.eu, will  bring some improvement on that regard.
In short:
The Synology Surveillance Station stores a list of IP Cameras in the camera_model.conf (PTZ configuration) file located under
/volume1/@appstore/SurveillanceStation/conf

This files contains references to camera definition files (drivers) located in /volume1/@appstore/SurveillanceStation/conf/camera_support/

I've grouped the necessary files in this archive: MaygionHD4Synology.zip
Content:
- BTICAM.conf, BTI_camera_model.conf (to rename camera_model.conf)
- Maygion.conf, camera_model.conf (just uses the more generic Maygion name instead of BTICAM)
- camera_model - Backup.conf (the original Synology file unchanged)
- commands.txt (sample of commands to use for copying files from a Telnet/SSH terminal)

With the files placed in a folder of the NAS (here ExternalShare for the example), the commands to copy the files in the right locations would look like this:
cp -f /volume1/ExternalShare/camera_model.conf /volume1/@appstore/SurveillanceStation/conf
cp -f /volume1/ExternalShare/Maygion.conf /volume1/@appstore/SurveillanceStation/conf/camera_support/

I recommend that you always backup the original camera_model.conf file first.



April 2014 Update: The latest device pack for Surveillance Station (6.3-3309) includes the H502W model under the Dericam brand, so no more need to use the method above.


Read More

Probox 2: Smartify your TV

Probox 2: Smartify your TV
Android sticks are a great way to convert a normal TV into a "Smart" one,  with some of them available from ~40€. However it is worth reading the forums to avoid those many with antenna, power and overheating issues...



I was looking at the Rikomagic MK802 III as a potential candidate for a while, and was waiting for a version with a soft power off function (most entry-level Android stick must be unplugged physically). In the meantime, I read horror stories about antenna that needed to be relocated outside the box to work and other such experiences that put me off this model.

Within the huge choice of devices, one seemed to stand out:
The Probox2 (aka U2host) is a Rockchip RK3066-based device with 1GB RAM and 4GB Flash (of which 2GB for internal storage) and comes with a Air Mouse. 

Its most appealing features of this box are:
- Decent overal specs with modest but sufficient storage (a microSD card reader is included)
- Device shutdown can be done from the remote, no need to unplug.
- No overheating, gets warm, not hot! (proper graphite heat sink)

- Good Wi-Fi range

- Gets enough power from standard TV USB port (a USB Power adaptor is also provided but I don't use it).
- RF Air Mouse, just fine to use in the darkness of a bedroom.

- Can be controlled from another Android with the Probox2 Ultimate Remote app available.
- 2 full size OTG USB ports, 1 micro-USB for power and memory access, 1 microSD slot, HDMI.
- No crapware, just the essential, and seems to have unrestricted access to Play store.


- Bluetooth



I won't repeat the already complete review by liliputing.com, but rather go through the troubles I had and how I eventually solved them. 

My unit arrived with a slight problem: after the normal ProBox2 splash screen, and next only show a small portion of the screen height was used showing just the title "Air Mouse Manager".

This turned out later to be a badly flashed unit that  needed to be re-installed properly with the Rockship Batch Tool. And that's were the fun begins...especially if you have a Windows 8 PC!

Probox2.com provides instructions for a 4.1.1 upgrade.
Their upgrade tool package contains all the drivers needed to install the "RK30" device.

Windows 8 won't accept the drivers unless you "Disable the Driver Signature Enforcement" by rebooting into the Advanced Startup Menu (click on the power icon, hold Shift + click on Restart) and going to Troubleshoot > Advanced options > Startup Settings, then click "Restart", and hit F7 or type "7" in the next screen.

From that point, the Windows Device Manager will let you include the unsigned drivers manually (Browse my computer for driver>Show all devices>let me pick from a list of device drivers... as shown in the upgrade instructions). The only detail not explained in the document is which device to choose on the pop-up list, but just remember that ProBox2 is based on RK3066 chip.










The device icon next will not be very engaging with its exclamation mark, but from that point, you've done all right.

The more tricky part for me was to get the Probox2 recognized by the Rockship Batch Tool. The theory is simple: maintain the little button marked with "U" pressed while plugging the microUSB cable, with the other end in the computer USB port.


The USB port on which I initially performed the driver installation never wanted to work with the Probox2.


I had to use another USB port (using a secondary USB controller) before the Rockship Batch Tool eventually recognized the device by showing a green square under Connected Devices. 

So it may take some perseverance until you see it working. Only then, you will be able to load the firmware and hit the Upgrade button.


The above upgrade is based on the official Probox2 4.1.1 firmware. There's is also a custom one,rooted, provided by w2comp.com and using a different flashing method. Beside the supposed improvements to streaming, codec and overall performance, I found it less stable (a few "Wait/Close"), but I could make the Bluetooth work (official build wouldn't pair anything for me).


The custom launcher is well designed for a SmartTV context and I'll give it a chance for a while before trying something else. The set of pre-installed application is minimal, and that's fine by me, no crapware! The eHomeMedia app seems a good DLNA client/server solution but the Synology DSVideo app provides a better experience if your movie collection is on a DiskStation  NAS. I confess I also didn't give it's chance to the included player and immediately installed MX Player. The decent Explorer app would be enough to browse the local and remote files, but again, I'm used to ES File Explorer...I'm filling in my own crapware it seems... :-)




The Air Mouse,

This little 2.4 GHz RF remote lets you point and click and allows to access all the necessary functions with just 9 buttons. It includes a microphone if the Android speech recognition works for you.

For my use (accessing the movies on my Synology NAS from the bedroom TV), this is ideal to use in the darkness. I get a functional range of about 4 meters which is just enough.


The Probox2 Ultimate Remote app is a free alternative which allows you to control the Probox2 from another Android phone or tablet.

In general I cannot fault this little gem, the Wi-Fi range is absolutely honorable  compared to my phone and tablet. The fact that a USB port is enough to power the device is a great plus. At no time the box was more than just warm, no overheating whatsoever. USB Accesories are easy to plug thanks to the 2 full sized USB ports (tried wireless mouse and keyboard so far). No fuss, it works as designed, end of story!

The Probox2 is sold by w2comp.com for ~65€ and so far seems to be a very good choice to smartify any TV equipped with HDMI .

I could also appreciate the fast response from w2comp on some technical after-sale queries, another good point!







Read More