domingo, 2 de octubre de 2011

How to solve 90% of the problems with your Foxconn DH910, aka TCom TC300, aka Pirelli DP-L10, ...

I was going to write this in spanish as Ya.com (Deustche Telecom spanish ISP) sold a lot of these devices around here, but it has always frustrated me a bit that almost all the info one finds about this device is found in German, so I'll write it in english (if anybody wants to ask something in spanish I'll answer trying to clarify it).

Anyway... this used to be a really valuable phone I have three and each costed me 20€, the phone was sold unlocked and it has SIP capabilities, so the uses can be quite a lot, besides, the hardware seems to be hard to break, unless you think it is really broken and start to botch inside with the help of your 1 year old son, which is what I did when I thought one of them was badly broken as it didn't keep any settings when it was turned off.

Most of the problems you find on this phone like the problem with the settings I had, the problem with the screen presenting just one ç or other weird performances are solved by flashing the phone again with a good firmware, that's it.

So, I'll try to write here all I know about flashing this devices, mostly cause I tend to forgive what I learn, but for others to learn as well.

There are several ways to flash this device:

  • The most common is by using the windows programs to manage the device, each of the rebranders has its own utility, like the first link here, the spanish tc300 tools and firmware, and you must use the one for the firmware you have flashed, that one will flash any firmware you want, so you can install the pirelli one with the TCom soft, but then you'll need the pirelli tools to access the phone or to reflash it.

  • One of the best ways to flash a firmware (the one that has never failed to me) is by using a windows program specifically designed for that and that does the job while the phone is turned off, I have only seen this tool with Pirelli's 3.99d firmware or sipgate's modified version of it.

  • The next best way is by doing a web download directly from the phone, this involves two things, setting up a webserver from where to download it, and also entering engineering mode, for the first part you can find an example here even though they have it disabled, and for the second, you must type ###800#, then you'll have a provision entry under the settings menu where you can point your phone to the IP or the name of the web server where you have the T60N925.00_FOX-general.cfg file pointing to the firmware file. I'll explain this in more detail later.

  • I've said that only one of the methods has never failed to me, the others have failed a lot of times, not on flashing but when it downloads the firmware, to the phone before flashing it. You can find a lot of people with errors when downloading the firmware, most of them saying that memory is full or that there are not enough resources on the phone for this. I have developped a theory on this and a way to workaround these errors that seems to work ok whether you are flashing from the net or if you are flashing via USB. I believe that the problem is that the phone enters some kind of power saving mode and this causes the download to fail, so if you are pressing a key (for example, then hangup key) in order to avoid the screen to go black, the phone won't enter that mode and thus the download will finish ok, as easy as that. I have never read this tip anywhere, which seems quite weird to me as it was quite easy for me to find this out, don't know if the logic behind it is correct or not, but it works.

    That said, I'd like to get deeper on this on the next part of this entry, so if you have enough just stop reading and if not... there we go.

    ###000# shows a screen with a lot of options you can use, here you can find them in spanish among them ###800# (enter engineering mode) and ###810# (clear all user settings).

    There are a couple of programs that will allow you to change a firmware to include your stuff there or change defaults to those you want, they are tc300ex and mobilecustomizer (a front end for tc300ex), you can read about how to use them here.

    I'll add my own notes about changing the firmware images, as I tried to find info on this and had to guess it all by myself:

    On data_service.ini I used this settings:

    WallpaperId=3
    W1_STARTPAGE=http://www.google.com/m
    W1_BEARER=1

    To set the wallpaper to the sun image, set the startpage on wap browser to google for mobile and, more important, to set the wap to work over wifi and not gprs.

    On wifi_voip.ini I had to fight a bit to guess this:

    P1_WIFI_PROFILETYPE=2
    P1_DHCP=1
    P1_TFTP_OPT=0
    P1_SSIDTYPE=1
    P1_SSID=Your_SSID
    P1_WIFI_AUTHTYPE=3
    P1_WIFI_ENCRYPTTYPE=2
    P1_WIFI_WPAPSKTKIPKEYFORMAT=1
    P1_WIFI_WPAPSKAESKEYFORMAT=1
    P1_WIFI_WPAPSKTKIPASCIIKEY=XXXX
    P1_WIFI_WPAPSKAESASCIIKEY=XXXX

    Which are the normal settings for wpa2 (aes) the important thing here is the tkipkeyformat and the aeskeyformat which if set to 1 means that it will be given in ascii (using the values I stated above). I know those values are for aes, and don't know about tkip, even tough people on the forums recommend tkip over aes, I still use aes, tkip is supposed to be substracting 1 from the value of either authtype or encrypttype (I'd bet for this one, but maybe it is both).

    By default all the wifi profiles are active, I tried to set it so that only one was active, but there were problems, so better leave it like that and change it by hand if we just want one.

    Downloading a firmware over the wifi is really slow, around 3 or 4 Kb/s on my tests, so it takes longer than doing it over usb, but you don't need the damm windows around, you don't even need a computer if somebody sets things up on a server for you, so I'm going to comment on how to do it.

    You need a web server serving the file T60N925.00_FOX-general.cfg with something like this on it:

    [Provision]
    SERVER=twintel-fw.arcor.de
    BACKUP_SERVER=twintel-fw.arcor.de
    FIRMWARE_FILENAME=PU_D910.0.3.91_ACR.img

    Of course you can point to whatever firmware image you want, even the one you have just set up with the tools I commented before.

    The phone must be plugged and you must enter engineering mode (typing ###800#) and then on the setting meny go to provision and set the server-address to the address/name of your web server, then go to settings and choose to update once, exit to the main screen and wait for a while for the phone to ask you to download, while downloading you'll see an arrow moving down (remember to not allow to enter energy saving by pressing the hangup key while the arrow shows downloading), when it finishes the arrow points to the small phone. After that you have to enter again the provision menu and select to upgrade now.

    I guess that's all at least all the important things are there and pointers to where to find more info, beware that most of it is on german, so good luck with that, but I hope the info I have written here will be enough for almost anybody.

    martes, 20 de septiembre de 2011

    El kernel de OpenWRT para la Fonera crece de nuevo

    El año pasado ya comenté algo de que el kernel de OpenWRT (era la versión kamikaze y pesaba 786432 bytes) no entraba en la Fonera, al menos no con las instrucciones iniciales que había dado en la DudesConf 2 en la charla sobre la liberación de la Fonera, pues bien, me he puesto a jugar con la versión backfire (10.03.1-rc5) y me he encontrado con un kernel de 917504 bytes.

    Así pues hay que volver a corregir la primera linea de "fis create" que indicaba en la charla, usando esta en la que se deja menos espacio para el root con lo que queda más espacio para el kernel (lo justo para que entre el actual):

    fis create -b 0x80041000 -f 0xA8030000 -l 0x006D0000 -e 0x00000000 rootfs

    Por lo demás he notado esta versión bastante lenta en la fonera, al menos la parte web, pero bueno, como no suelo tenerla corriendo tampoco hay problema, por cierto, si vais a deshabilitar la interfaz web (borrar /etc/rc.d/S50uhttpd) quizás también deberíais de deshabilitar el colector de datos (/etc/rc.d/S95luci_bwc).

    (Editado ya que los tamaños de los kernels en bytes estaban mal aunque las cuentas y comandos si estaban bien, por cierto, los tamaños se respetan en la 10.03.1 final, así que eso sigue siendo válido)

    jueves, 14 de julio de 2011

    ipad, simple? NO

    Aunque siempre me ha gustado el diseño de Apple, nunca he tenido ninguno (ni lo tengo, tranquilos, no me he comprado un ipad) aunque en algún momento si pensé en comprar algún portátil de segunda mano, claro que eso era cuando los Macs no eran PCs.

    En fin, siempre he visto a los Macs como máquinas bellas, simples, sencillas de manejar, ... claro que todo esto era porque los usuarios de Mac (corporativos donde los haya) me habían comido el coco con su publicidad subliminal o directa, se ve que no lo suficiente porque nunca entendí ese empeño en que los botones tuvieran que tener un único botón. El caso es que sigo con esa imagen a pesar de que la única vez que intenté acercarme a un OS/X instalando una máquina virtual con ese operativo dije que pasaba de tener que aprender de nuevo a manejar un ordenador sólo porque a los de Apple se les daba por hacer todo a su manera.

    Pues bien, hoy he tenido que enfrentarme a un iPad en el trabajo y no me ha gustado la experiencia. ¿Por qué? Pues partamos de que yo entiendo que un tablet es algo que debe de poder utilizar practicamente cualquiera y por otro lado que me gusta leer las instrucciones y encontrar en estas al menos lo mínimo para poder utilizar básicamente el cacharro, teniendo esto en cuenta podemos concluir conque me he tropezado con todo lo que me podía tropezar, y las advertencias de estos obstáculos fueron inexistentes o muy tenues. Veamos que pasó...

    En cuanto abrí la caja inspeccioné el material contenido, todo muy bonito, todo muy apple. Me gustó la aparente simplicidad de todo, digo aparente porque si el manual son unas paginillas de seguridad del uso del aparato y una página en la que se explican los botones y como sincronizar con el ordenador mediante itunes, te da una idea de que eso va a ser coser y cantar.

    Me gustó la fuente de alimentación con conectores intercambiables según el tipo de enchufe, odio que metan en una caja 6 enchufes diferentes, yo sólo quiero uno, el europeo, gracias, justo lo que traía el ipad, sin embargo no me gustó la longitud del cable usb a ipad que se usa para cargarlo, porque seguro que se queda corto.

    Una vez terminé la inspección y leidas las páginas acompañantes, me dije... pues nada, a enchufar y encender, ¿no? Así lo hice, pero la respuesta es NO, al encenderlo me encontré con una pantalla que me decía que lo enchufara al ordenata y le metiera a este el itunes (el invento este de hacer dinero de Apple), y me dije... tate, que no le has metido la tarjeta micro SIM (que a ver porque narices tiene que ser micro, pijos de m...) en fin... digo yo, en cuanto se la meta tendrá conectividad a Internet, por lo tanto al itunes o lo que necesite y ya me dejará en paz y podré usar el cacharro. De nuevo... NO y de nuevo otro tropiezo... porque me vi buscando un clip para abrir el "portaSIM" cuando... ya venía uno acompañando la documentación, y la verdad, al verlo la primera vez dije yo, que chorrada más rara han puesto aquí estos de Apple, pero no reparé en que narices era y tampoco ví el dibujillo en gris claro que estaba impreso en el cartón en el que estaba el "clip" y que como envolvía la documentación, pensé que era lo que parecía, el envoltorio de la documentación, sin percatarme del dibujo ni del "clip".

    Una vez mi jefe me dijo que ya venía uno dentro por fin lo vi, y me puse a meter la microSIM, y de nuevo tropiezo, resulta que me sale un mensaje que me dice que lo que hace falta es una SIM sin bloquear y debajo aparece un botón que pone desbloquear, y a mi lo que se ocurre si el soft me dice que tengo que insertar una SIM sin bloquear es insertar una SIM sin bloquear, no que al darle al botón de desbloquear se vaya a arrancar un programa que me va a permitir desbloquearla, así que ya me ves a mi microSIM en mano preguntando si tenemos algún móvil en el que ponerla para desbloquearla (con cara de... estos de Apple están tontos y admitiendo que yo estaba algo tonto, los de Apple algo también) pero de nuevo mi jefe me dice que él no había tenido ese problema, así que la meto de nuevo y leo de nuevo el mensaje y me fijo en el botón de desbloquear. Sí, ya sé que desbloquear es desbloquear, no ha lugar a dudas, pero el texto de arriba sí que está mal redactado, acaso no sería más claro poner que la SIM que has introducido está bloqueada con un PIN y que introduzcas el PIN para desbloquearla?

    Una vez metida la SIM y el PIN para desbloquearla pensaba yo, iluso de mi, que ya tendría un cacharro operativo, pero no, el puñetero seguía pidiendo que lo conectara al ordenata para así poderse conectar a itunes, que digo yo... si uno no tiene ordenador... no puede tener un ipad? y si uno no quiere usar itunes? no puede usar un ipad? en algún lado de avisa de esto?

    En fin... que de vuelta a mi jefe, que ya tenía el itunes instalado, conectamos el ipad, lo detectó, lo actualizó y le sugirió que lo registrase, con lo que lo dejé a él peleandose con la parte burocrática y mañana me tocará pelearme yo con la parte del software, sólo pido una cosa, por favor, que sea más intuitivo que el arranque!

    miércoles, 13 de julio de 2011

    virtualbox notes

    Para los que no conozcáis virtualbox, es un software libre de virtualización que puede correr máquinas virtuales en windows, linux, Mac OS/X, ... puedes informarte sobre él o descargarlo en su página web. Yo lo suelo utilizar cuando me veo forzado a correr Windows y normalmente lo uso localmente, pero hoy he tenido que explorar su parte remota, accediendo a él desde otra máquina por escritorio remoto, estas son simplemente unas notas que he tomado.

    For those of you who don't know virtualbox, it is a free(libre) virtualization software which can run virtual machines on windows, linux, Mac OS/X, ... you can learn about it or even download it on its home page. I typically use it when I'm forced to run Windows and I usually do it locally but today I had to explore its remote side, accessing to it via remote desktop, this are simply a couple of notes I took.

    Start, headless, poweroff or save the virtual machine:

    vboxmanage startvm vMachineName
    vboxheadless -s vMachineName
    vboxmanage controlvm vMachineName acpipowerbutton
    vboxmanage controlvm vMachineName savestate


    Control the rdp server (activate/deactivate/bind to localhost):

    vboxmanage controlvm vMachineName vrde on
    vboxmanage controlvm vMachineName vrde off
    vboxmanage modifyvm vMachineName --vrdeaddress 127.0.0.1


    Connect usb devices (list/connect):

    vboxmanage list usbhost
    vboxmanage controlvm vMachineName usbattach e13dc60f-4f3d-4e82-8a80-c05fca2e8


    Connect through ssh to the server exporting the rdp port and then connect to the remote desktop:

    ssh -X -L 3389:localhost:3389 RemoteHostName
    rdesktop -k es localhost

    martes, 5 de julio de 2011

    TDT Canal 63 810MHz + WiFi = Sin Señal

    En Galicia el Canal 63 de televisión, que corresponde a la frecuencia 810 Mhz (usa un ancho de banda de 8MHz) está desgraciadamente asignado y emite los siguientes canales:

    0x0000 0x01fe: pmt_pid 0x0000 RTVE -- La 1 (running)
    0x0000 0x01ff: pmt_pid 0x0000 RTVE -- La 2 (running)
    0x0000 0x0200: pmt_pid 0x0000 RTVE -- 24h (running)
    0x0000 0x0201: pmt_pid 0x0000 RTVE -- Clan (running)
    0x0000 0x0203: pmt_pid 0x0000 RNE -- RNE1 (running)
    0x0000 0x0204: pmt_pid 0x0000 RNE -- RNEC (running)
    0x0000 0x0205: pmt_pid 0x0000 RNE -- RNE3 (running)
    Network Name 'RGE GALICIA'

    Resulta que las WiFi trabajan en el rango de los 2.4 Ghz, o sea, 2400 Mhz, que curiosamente viene siendo el triple de la frecuencia del canal 63, de hecho como el canal 63 tiene un ancho de banda de 8Mhz podíamos decir que va desde los 806 Mhz a los 814 Mhz, estas frecuencias multiplicadas por 3 nos dan 806*3=2418 Y 814*3=2442. El canal 2 de WiFi está en los 2417 Mhz y el canal 7 en los 2442, con lo que en ciertos TDTs cuyos sintonizadores no vienen bien aislados del exterior, si tienen una señal wifi, entre los canales 2 y 7, cercana (como el router wifi que tienes en el salón al lado del TDT) pueden no recibir correctamente estos canales mostrando el típico Sin Señal (No Signal) que me ha llevado a probar varios TDT HD de los baratillos y devolverlos mientras que la tele que tiene TDT MPEG2 integrado recibe sin problema estos canales y está justo entre dos puntos de acceso WiFi. En ambos casos la señal de TV viene por cable coaxial desde la antena colectiva.

    De hecho en mis pruebas si el TDT estaba al lado justo del punto de acceso, daba igual el canal del punto de acceso elegido, que el canal 63 quedaba interferido siempre.

    En fin... que si queréis juntar WiFi y la TDT en el canal 63 juntos... mejor que os pilleis un TDT bueno.

    martes, 10 de mayo de 2011

    Skype comprada por Microsoft

    Hasta ahora sólo tenía dos programas que no fueran software libre en mis ordenadores, los dos corren en un chroot y los dos corren con un usuario diferente al mío, son programas de los que no he sido capaz de deshacerme, por un lado el plugin de flash de Adobe y por otro Skype.

    Ahora Microsoft ha comprado Skype, que dicen que les ha salido caro, yo viendo la posición de Skype y sus últimos movimientos hacia las televisiones y todo tipo de aparatos, diría que no, pero bueno, a lo que íbamos, esto sólo puede significar que desde ahora sólo haya un programa que no sea software libre en mis ordenadores, y esperemos que con html5 y los codecs abiertos de video y demás ayuda, no dure demasiado.

    Así que si me tenéis en Skype, pero no me tenéis en GoogleTalk o en alguna de las otras alternativas que uso, en breve ya no me veréis conectado a no ser que me añadáis en algo que no sea Skype.

    Gracias M$ por ayudarme a dejar el software propietario :-)

    jueves, 10 de marzo de 2011

    sugarsync vs dropbox

    No me va lo de hacer publicidad, pero esto me parecía interesante, así que...

    Recientemente me han hablado de sugarsync, ya conocía dropbox y creía que tenía de todo, pues bien sugarsync va más allá, primero porque de entrada te da 5 Gigas, que se aumentan cada vez que un amigo se da de alta usando tu referencia e instala el cliente (te dan 500 megas a ti y otros tantos al amigo) y segundo por todas las funcionalidades que tiene, bastantes más que dropbox, así que me llamasen la atención el compartir cosas mandando enlaces por correo electrónico, compartir y sincronizar entre cacharros de diferentes usuarios, subir cosas vía e-mail, ...

    En fin, la única pega que le veo es que aunque tiene clientes para más plataformas que dropbox (incluyen varios móviles), todavía no tiene cliente para Linux, pero ya hay quién está trabajando en eso, que es la parte que me interesa a mí claro.

    En fin, si lo quieres probar pincha en este enlace e instala el cliente y así de paso nos dan a cada uno 500 megas extra de espacio en su nube.