User Tools

Site Tools


doc:appunti:hardware:xiaomi_yi

This is an old revision of the document!


Action Camera Xiaomi Yi

Xiaomi Yi

Problema di formattazione microSD

Il software della telecamera non è molto flessibile con il tipo di formattazione della scheda microSD, una formattazione con GNU/Linux e i parametri predefiniti ha reso la telecamera non funzionante:

  • All'accensione la telecamera emette tre beep lunghi (invece di due beep brevi).
  • Premendo il pulsante di registrazione la telecamera emette tre beep lunghi e non inizia la ripresa.
  • Le cartelle DCIM e MISC vengono create, come pure il file MISC/itm.bin.

Nessun problema invece se si partiziona e formatta la microSD con uno smartphone Android.

Il problema riguarda il parametro settori/cluster del filesystem vfat, pare che la Xiaomi Yi non accetti il valore 16 mentre funziona correttamente con 64. Per ottenere una formattazione valida è quindi sufficiente usare il comando:

mkfs.vfat -F 32 -s 64 -n "YI_CAM" /dev/sdc1

Per vedere come è formattata una microSD provare con:

fsck.vfat -v -n /dev/sdc1

Problema WiFi non funzionante

A seguito del problema di formattazione della microSD si è notato che il WiFi aveva smesso di funzionare, questi i sintomi del problema:

  • Alla pressione del pulsante il LED WiFi si illumina di blu fisso.
  • L'app sullo smartphone non è in grado di rilevare né di collegarsi alla telecamera.
  • Premendo nuovamente il pulsante WiFi il LED non si spenge.

Per risolvere il problema è stato necessario eseguire l'operazione di reset, seguendo le indicazioni del post How to Reset Your Xiaomi Xiaoyi Action Camera if WiFi not Working:

  1. Togliere la microSD
  2. Accendere la telecamera e attendere che il LED circolare blu smetta di lampeggiare. In realtà nel nostro caso non ha smesso di lampeggiare neanche dopo 5 minuti.
  3. Premere contemporaneamente i pulsanti Power e WiFi per 5 secondi.
  4. La telecamera dovrebbe emettere 5 beep e quindi spengersi. Nel nostro caso ha fatto i beep come per un normale spengimento, ma il LED circolare ha lampeggiato viola, quindi è diventato blu fisso. È stato necessario premere nuovamente il pulsante Power per lo spengimento.

Il normale funzionamento del pulsante WiFi è il seguente:

  • Premere il pulsante WiFi, il relativo LED blu si accende fisso.
  • Dopo circa 10 secondi il LED blu inzia a lampeggiare, in questo momento il WiFi è attivo.
  • Premere nuovamente il pulsante WiFi, il LED lampeggia velocemente alcune volte e poi si spenge.

Filesystem VFAT e timestamp

La telecamera formatta la scheda microSD con un filesystem VFAT, per definizione i timestamp su tale filesystem sono in localtime.

Se si monta la microSD su un sistema GNU/Linux è possibile utilizzare il parametro di montaggio tz=UTC, in tal modo i timestamp vengono considerati in UTC e opportunamente convertiti in localtime. In alternativa esiste il parametro time_offset.

FIXME: Cosa fare di preciso per avere i timestamp corretti? La telecamera dove prende l'ora? Dal telefono? Se ci troviamo all'estero che succede? Quale parametro usare per il montaggio su GNU/Linux?

Video Format

Format AVC
Profile Main@L4
GOP M=1, N=8
FPS 29.970 (30000/1001)
Size 1920 x 1080 pixels
Bit rate 12.0 Mb/s (Variable)
Video Size
1 secondo 1.45 Mb
1 minuto 87.83 Mb
1 ora 5.09 Gb

Model Z23L vs Z25L

I purchased a second camera after some months, it turned out that the new model, which serial number is starting with Z25L, is a bit different from the older one, with serial number starting with Z23L:

Xiaomi Yi Model Z23L, bottom with notch Xiaomi Yi Model Z23L, with 8 mm battery

Xiaomi Yi Model Z25L, bottom without notch Xiaomi Yi Model Z25L, with 9 mm battery

As you can see, the bottom of the camera is changed a little: the alignment notch is not longer present. But the most important change is in the battery cover. The new cover is reinforced with a metal plate and its thickness is decreased by 1 mm, this means that the the battery depth is increased by 1 mm!

Model Battery Size Current Rating
Z23L 36.5 x 32.5 x 8 mm 1010 mAh
Z25L 36.5 x 32.5 x 9 mm 990/1020 mAh (minimum/typical)

Model Z23L battery 8 mm depth Model Z25L battery 9 mm depth

This means that a new battery does not fit into an older camera, instead an old battery requires a thickness of 1 mm to stay into the new camera. The only change in sizes are about battery and battery cover, it seems that sizes of the camera body is unchanged.

Web References

Lens Distortion Correction

The Yi camera features an ultra-wide angle lens, capable of an angle of view of 155°. However this leads to a strong image distortion at the edges of the frame. You can enable the Lens Distortion Correction into the camera settings, this will stretch the image, reducing the angle of view and thus loosing a portion at the edges, but it will correct the aspect of the image, reducing the barrel effect. The correction is performed by software, this means that a smaller portion of the native image captured by the sensor will be enlarged to became a full resolution image, effectively creating missing pixels by software interpolation.

In the following images you can se the difference between LDC (Lens Distortion Correction) option set to OFF and ON. The third image shows roughly how much of the frame is lost when LDC is on.

Yi Action Camera - Lens Distortion Correction Off Yi Action Camera - Lens Distortion Correction On

Yi Action Camera - Lens Distortion Correction Off-On Comparison

The Android App

We installed the Android application YI Action version 3.9.3, it required access to media files, camera and location, we revoked the access to contacts and phone.

As reported by several users, if you have trouble connecting to the Yi camera WiFi, try to disable data connecton, leaving only WiFi active.

Firmware

  • Model Z23L factory firmare 1.2.13
  • Model Z25L factory firmare 1.5.6, upgraded to 1.5.12

Use the SD card to update the firmware version by placing “firmware.bin” on the SD card and powering on the device.

Web References

doc/appunti/hardware/xiaomi_yi.1617644534.txt.gz · Last modified: 2021/04/05 17:42 by niccolo