Pour éditer le wiki, il faut demander un compte à un Lapin !

Femtocell

From Le L∞p's Wiki
Jump to: navigation, search
FemtoCell avec sa station d'accueil.
On peut voir ici la modification ajoutant un port USB B afin de pouvoir l'alimenter et la brancher sur un ordinateur en même temps.

Qu'est-ce que c'est ?

Une FemtoCell est une BTS. La Femtocell qui est au Loop est la deuxième version commercialisée par SFR.

À quoi ça sert ?

Cela permet d'étendre la couverture réseau pour les téléphones portables dotés d'une carte SIM attribuée par l'opérateur. Cela est donc réservé aux clients SFR Mobile ayant leur numéro autorisé pour une borne donnée, dans la limite de 5 par borne. La FemtoCell doit être raccordé au Net, peu importe le FAI. Il semble qu'il y ait un GPS à l'intérieur afin d'éviter qu'elle soit installée hors de France.

On peut imaginer en faire une BTS complètement ouverte, permettant d'appeler en utilisant des comptes SIP, d'autre portable sur la même BTS ou sur une autre, ouverte elle aussi et liée à la première.

Côté hardware

Quelques chips divers et variés dont certains de marque "Percello". Des photos devraient être publiées.

La prise USB

Une fois branché en USB, on voit apparaître avec lsusb (voir usbutils) :

Bus 002 Device 005: ID 0b95:172a ASIX Electronics Corp.

Mais dans dmesg on s’aperçoit que le driver n'a pas ce qu'il faut pour se servir du périphérique :

[56138523.572139] usb 2-1: new high-speed USB device number 5 using ehci-pci
[56138523.722128] usb 2-1: New USB device found, idVendor=0b95, idProduct=172a
[56138523.722134] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[56138523.722138] usb 2-1: Product: AX88x72A
[56138523.722141] usb 2-1: Manufacturer: ASIX Elec. Corp.
[56138523.722144] usb 2-1: SerialNumber: 000068
[56138523.937728] asix 2-1:1.0 (unregistered net_device): Interface mode not supported by driver
[56138523.937740] asix: probe of 2-1:1.0 failed with error -524
[56138523.938387] usbcore: registered new interface driver asix

Ce n'est pas grave, on va récupérer le driver ASIX qui-va-bien (merci à Rhaamo pour la piste) :

wget -c http://www.asix.com.tw/FrootAttach/driver/AX88172A_Linux_3.8.0_Driver_v1.4.0_Source.tar.bz2

et le compiler :

$ tar jxvf AX88172A_Linux_3.8.0_Driver_v1.4.0_Source.tar.bz2
$ cd AX88172A_Linux_3.8.0_Driver_v1.4.0_Source
$ make

Le driver est compilé, mais le générique est présent, donc :

$ sudo modprobe -r asix

puis on charge le driver que l'on vient de compiler :

$ sudo insmod ./ax88172a.ko

Et dans dmesg :

[ 6314.840314] ehci-pci 0000:00:1d.7: power state changed by ACPI to D3cold
[ 6315.206510] ehci-pci 0000:00:1a.7: power state changed by ACPI to D0
[ 6315.308438] ehci-pci 0000:00:1a.7: setting latency timer to 64
[ 6315.308621] ehci-pci 0000:00:1d.7: power state changed by ACPI to D0
[ 6315.324323] ehci-pci 0000:00:1a.7: power state changed by ACPI to D3cold
[ 6315.412414] ehci-pci 0000:00:1d.7: setting latency timer to 64
[ 6315.628156] usb 2-2: new high-speed USB device number 4 using ehci-pci
[ 6315.775652] usb 2-2: New USB device found, idVendor=0b95, idProduct=172a
[ 6315.775663] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 6315.775670] usb 2-2: Product: AX88x72A
[ 6315.775676] usb 2-2: Manufacturer: ASIX Elec. Corp.
[ 6315.775682] usb 2-2: SerialNumber: 000068
[ 6315.777584] ASIX AX88172A USB To Ethernet Adapter:v1.4.0 21:44:29 Jul 31 2013
[ 6315.777584] \x016    http://www.asix.com.twforce link
[ 6315.789930] eth1: register 'ASIX AX88172A USB2.0 to Ethernet Adapter' at usb-0000:00:1d.7-2, 00:c0:02:12:35:88

et dans ifconfig eth1

eth1      Link encap:Ethernet  HWaddr 00:c0:02:12:35:88  
          adr inet6: fe80::2c0:2ff:fe12:3588/64 Scope:Lien
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:8 erreurs:0 :0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000 
          Octets reçus:4608 (4.6 KB) Octets transmis:4199 (4.1 KB)

Et hop, on a une interface réseau, son adresse MAC est 00:c0:02:12:35:88.

Mais ça pompe ça, non ?

Tout est relatif, mais oui, quand même un peu : une alim' 5V à 2A est fournie avec.