-
Application Looking Glass sur HackRF Portapack
L’un des gros avantages d’avoir un écran sur le HackRF, c’est de pouvoir afficher en direct le spectre sur une très large gamme de fréquences. Aujourd’hui, je vais vous présenter l’une des applications les plus utiles, Looking Glass.
Basics
Lançons cette application depuis l’écran d’accueil pour voir apparaître le joli spectre sur la droite.
Plusieurs options s’offrent à nous dont notament le P pour Presets. Ça nous permet de sélectionner des plages de fréquences pré-enregistrées sur la carte SD.
Par exemple, sur la capture, on est sur le preset AVIATION 108 qui a pour range 108MHz et 118MHz représentés par le MIN et MAX affichés en haut.
La valeur RANGE indique la taille du spectre qu’on reçoit, donc là 10MHz (118-108).
Options
Voyons les 2 options en bas collées, le F- pour Fast (Scan plus rapide mais moins précis). On peut le passer en S- pour Slow, le scan sera plus lent mais plus précis.
Et juste à côté de ce paramètre, le SPCTR-V qui permet de changer de type de vue. Donc là, c’est le spectre défilant par défaut. Mais on peut aussi choisir LEVEL-V pour voir le niveau de puissances des fréquences et la vue PEAK-V pour avoir une vue avec les pics de fréquences.
Comme sur la plupart des applications du HackRF, on peut modifier les options de Gain en jouant avec le LNA, VGA et AMP.
L’option FILTER permet de changer l’affichage du spectre, donc on peut sélectionner celui qui permet d’avoir le meilleur contraste pour faire apparaître les signaux.
Après, on a d’autres options mais pas si importantes que ça (à mon niveau).
Audio
Mettons-nous sur une range qu’on connaît qu’on peut écouter comme FM BROADCAST USA qui a plus ou moins la même range de stations radio qu’en France.
Une fois sélectionnée, on peut aller sur l’option MARKER, ça permet de bouger le p’tit curseur rouge en haut du spectre. Ainsi, on peut à peu près voir la fréquence de chaque pixel, on peut faire tourner la molette pour sélectionner précisément la fréquence qui nous intéresse. Par exemple, sur la capture du haut à droite, je sélectionne la fréquence 102.8MHz qui correspond à SkyRock.
En cliquant dessus, ça nous redirige vers l’application Audio où l’on peut continuer notre analyse.
Là où y a SPEC, on peut changer le décodeur, mettons WFM qui est la modulation utilisée pour les stations radios. Cette option devra être ajusté en fonction du signal, pour écouter les échanges entre les pilotes et les tours de contrôles, on mettra AM par exemple.
Une fois le bon décodeur choisi, on peut directement écouter notre signal radio depuis le HackRF. On peut aussi régler le volume en haut à droite (où y a le 89 sur ma capture).
Exemples
L’application Looking Glass permet plein de choses que vous pourrez découvrir par vous même mais j’aimerais en profiter pour vous présenter le site sigidwiki qui va nous permettre d’identifier le type de signal auquel on a à faire. En effet, ce dernier contient une énorme base de données de signaux connues que l’on peut rechercher à l’aide des nombreux filtres.
Par exemple, on peut choisir la catégorie Military, repérer un signal qui nous intéresse, au pif le RSDN-20 et voir à quoi ressemble son spectre.
On peut alors comparer avec notre HackRF voir si les 2 signaux coïncident. On a pleins d’infos dessus, dont sa modulation. On peut même écouter le signal !
En espérant que vous n’ayez pas de ce type de signaux dans votre entourage 😄.
-
Transmission SSTV avec le HackRF Portapack
La SSTV (Slow Scan Television) est une méthode de transmission d’images avec des ondes radios. Ça existe depuis 1950 et ce n’est plus du tout utilisé aujourd’hui parce qu’envoyer une image, c’est quand même plus facile avec Internet. Néanmoins, pour les amateurs radios, c’est sympa à expérimenter.
Pour rentrer en détail dans son mode de fonctionnement, il y a ce pdf qui est pas mal.
Transmission
Depuis notre HackRF, on se rend dans l’onglet Transmit, puis SSTV. Cette dernière va nous permettre d’envoyer des images stockées sur notre carte SD. (2 images sont déjà présentes avec le firmware).
Sur le HackRF, il y a 6 différents mode de transmission à notre disposition. Sans trop rentrer dans les détails, on va dire que la principale différence se joue sur le temps de transmission :
Scottie 1 (110s), le plus utilisé avec une bonne qualité.
Scottie 2 (71s), avec une transmission plus rapide au détriment d’une qualité légèrement inférieure.
Scottie DX (270s), utilisé pour les longues distances, haute qualité mais transmission très lente.
Martin 1 (114s), bon rapport qualité/temps
Martin 2 (58s), avec une transmission rapide mais pareil, une moins bonne qualité. Il a surtout l’avantage de “mieux” se propager.
SC2-180 (180s), la meilleure qualité 😎.
Si non, peu importe le mode, ce sera toujours une résolution en 320x256 pixels. Le HackRF ne prendra en charge que des images au format .bmp avec une taille de 320x256 donc.
Ensuite, on peut choisir la fréquence sur laquelle on veut émettre. On va choisir la 144.500MHz qui est utilisée par les radio amateurs pour la SSTV.
Et on peut appuyer sur le bouton Start pour commencer à émettre.
Réception
Afin de recevoir ses signaux, on va utiliser le logiciel MMSTV. C’est lui qui va récupérer en entrée un signal pour pouvoir le décoder en une image.
Par contre, il ne peut pas écouter le signal comme le ferait un logiciel SDR donc on va devoir écouter le signal avec par exemple SDR++, et renvoyer ce signal vers MMSTV. Pour ce faire, on va utiliser un câble audio virtuel en installant VB-Audio. Suffit juste d’installer les drivers et de redémarrer le PC pour s’en servir.
Lançons SDR++ pour déjà voir si on a bien un signal
Ok, on voit bien notre pic sur la fréquence qu’on avait choisi. Ça, c’est nickel, on en profite aussi pour changer l’output de l’audio à gauche en sélectionnant notre câble audio virtuel.
À présent, lançons MMSTV, et changeons d’input. Pour cela, on va dans Option -> setup MMSTV -> Misc et on remplace le In avec notre câble audio virtuel
Ok, à présent tout est prêt. Y a pleins d’autres paramètres à potentiellement explorer sur ce tool mais ça va au delà de mes connaissances et ça ne sera pas nécessaire pour ce qu’on veut faire de toute façon.
Rien n’est à démarrer côté MMSTV, si les entrées et sorties sont configurées sur les deux logiciels et que le HackRF est bien en train d’émettre, l’image apparaîtra petit à petit.
Voilà mon résultat :
Comme vous pouvez le constater, mon image est penchée, j’ignore encore pourquoi mais dans l’idée, voilà comment fonctionne la SSTV :)
-
Présentation du HackRF Portapack avec firmware Mayhem
Aujourd’hui, je vais vous présenter un kit custom HackRF que je me suis procuré sur Aliexpress.
On peut trouver la version originale du HackRF juste ici.
Pour des raisons budgétaires, je voulais tester ses versions custom qui se vendent bien moins chère sur Aliexpress et qui pour le moment, feront parfaitement l’affaire.
C’est quoi le HackRF ?
Le HackRF ou HackRF One, a été inventé et fabriqué par la société Great Scott Gadgets.
C’est à la fois un émetteur et un récepteur SDR qui possède une bande de fréquence super large de 1MHz à 6GHz (6000MHz).
Donc on peut écouter et émettre sur tout pleins de fréquences, intercepter et rejouer des signaux. Il est half-duplex, ça veut dire qu’il ne peut pas recevoir et transmettre en même temps.
Mais ⚠️ATTENTION⚠️, pour ce qui est d’émettre, c’est illégal sur la plupart des fréquences (En France comme ailleurs).
Maintenant, le HackRF a une puissance d’émission faible, ce qui ne devrait pas poser de soucis. Il vaut quand même mieux de se renseigner sur ce qui a autour de soit pour être sur de pas faire de bêtises.
Portapack
Ce qu’on appelle le HackRF Portapack, c’est un boitier avec un écran LCD, des touches pour se déplacer dans un menu, et surtout une batterie. Ainsi, on peut se servir de son HackRF sans avoir besoin de le relier à un ordinateur ce qui le rend complètement autonome. Pour ce qui est du kit que je vous présente, le firmware utilisé pour faire tourner tous les tools sur le HackRF Portapack se nomme Mayhem (qui est un fork d’un ancien plus maintenu nommé Havoc).
Présentation
Voilà notre HackRF Portapack :
On ne va pas s’attarder sur le menu puisque que je ferais des articles dédiés pour tout ça.
L’avant du boitier se présente ainsi :
On y retrouve :
Un endroit où y mettre une carte MicroSD (Il n’y en a pas de fourni dans le kit mais c’est important d’en mettre une pour accéder à + de fonctionnalités).
Un bouton reset qui permet comme son nom l’indique de reset.
Un bouton DFU (Device Firmware Upgrade) qui permet de modifier des trucs en cas de soucis.
Des LEDs 3v3, 1V8, RF qui allumées signifient juste que le HackRF est alimenté.
Une LED USB qui allumée, signifie que le HackRF est bien branché en USB à un PC.
Une LED RX qui allumée veut dire que le HackRF est en train de recevoir des signaux.
Une LED TX qui allumée veut dire que le HackRF est en train de transmettre des signaux.
Enfin, ANT (Antenna), un connecteur de type SMA femelle pour y connecter notre antenne.
Pour ce qui est de l’arrière du boitier :
On a :
Le port USB pour connecter le HackRF à un PC et le recharger aussi.
Un port HEADSET pour y brancher un casque audio. (Pas essayé si ça marche avec un micro)
Deux ports SMA femelle qui en tant que débutant ne risque pas de nous servir. Ils servent à la synchronisation d’horloge :
Un CLKIN (Clock Input) pour recevoir et se synchroniser avec une horloge externe
Un CLKOUT (Clock Output) pour fournir son propre signal d’horloge à d’autres appareils
Premier pas
Avant de commencer, si vous avez un modèle différent du mien, identifier bien quel type de PortaPack vous avez grâce à ce site . Ça pourrait avoir un impact sur la manière dont vous le mettrez à jour.
⚠️ Avant de l’allumer, mettez votre antenne, c’est pas bon du tout de la mettre ou de la changer quand le HackRF est allumé, ça risque de l’endommager.
Bref, pour l’allumer, un clic sur le gros bouton, 2 clics pour l’éteindre.
Normalement, le HackRF arrive flashé avec le dernier firmware mais vous pouvez quand même le faire manuellement en vous rendant sur le site hackrf.app. Branchez votre HackRF, le site devrait le reconnaître et tout en bas, vous avez le bouton Manage Firmware.
Vous avez la possibilité de choisir la dernière version la plus stable, la version beta ou même un autre firmware custom.
À noter que depuis ce site, vous allez pouvoir aussi gérer les fichiers de votre HackRF et même le contrôler.
Voilà. À présent, vous pouvez commencer à vous amuser avec votre HackRF Portapack :)
Touch background to close