Bonjour zipe31,
@disedorgue : oui, c'est normal les deux espaces avant "Function:".
Suite à ta demande, voici les réponses à tes questions :
1 - Commande :
rtl_fm -N -f XXX.XXXM -s 22.05k - | ./multimonNG -a SCOPE -a POCSAG1200 -f alpha -t raw /dev/stdin
1 - Réponse :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| Found 1 device(s):
multimonNG (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
(C) 2012 by Elias Oenal
available demodulators: POCSAG512 POCSAG1200 POCSAG2400 EAS UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI SCOPE
Enabled demodulators: POCSAG1200 SCOPE
0: Realtek, RTL2838UHIDIR, SN: 00000008
Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Rafael Micro R820T tuner
Oversampling input by: 46x.
Oversampling output by: 1x.
Buffer size: 8.08ms
Tuned to 000000000 Hz.
Sampling at 1014300 Hz.
Output at 22050 Hz.
Exact sample rate is: 1014300.020041 Hz
Tuner gain set to automatic.
POCSAG1200+: Address: 0000000 Function: 3
POCSAG1200+: Alpha: 9999999989 TEST PHILIPPE<EOT><EOT><NUL>
POCSAG1200-: Address: 000000 Function: 3
POCSAG1200-: Alpha: s March Re INTRUSION site PRESENT<EOT><EOT><NUL>
POCSAG1200+: Address: 00000 Function: 3
POCSAG1200+: Alpha: m+)1S: 90$('&SB-DS:NWCUm(ES)LZA?!(p<EOT><EOT><NUL>
POCSAG1200+: Address: 00000 Function: 3
POCSAG1200+: Alpha: 1+!.85$!& &88%-'&05'6I5E!'6p$!&=5U%' P-'&?<EOT><EOT><NUL><NUL>
POCSAG1200+: Address: 00000 Function: 3
POCSAG1200+: Alpha: XH<"H*Hl)*IRJ"J*J:K/<EOT><EOT>
POCSAG1200+: Address: 00000 Function: 3
POCSAG1200+: Alpha: XH<"H*Hl)*IRJ"J*J:K/<EOT><EOT> |
2 - Commande :
rtl_fm -N -f XXX.XXXM -s 22.05k - | ./multimonNG -a SCOPE -a POCSAG1200 -f alpha -t raw /dev/stdin | sed -r "s/^POCSAG1200[+-]{1}: Address: ([ [:digit:]]{7}) Function: [[:digit:]]{1}$/$(date +'%Y-%m-%d %H:%M:%S');\1;/" | sed -r "s/^POCSAG1200[+-]{1}: Alpha: (.*)$/\1/"
2 - Réponse :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Found 1 device(s):
multimonNG (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
(C) 2012 by Elias Oenal
available demodulators: POCSAG512 POCSAG1200 POCSAG2400 EAS UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI SCOPE
0: Realtek, RTL2838UHIDIR, SN: 00000008
Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Rafael Micro R820T tuner
Oversampling input by: 46x.
Oversampling output by: 1x.
Buffer size: 8.08ms
Tuned to 000000000 Hz.
Sampling at 1014300 Hz.
Output at 22050 Hz.
Exact sample rate is: 1014300.020041 Hz
Tuner gain set to automatic. |
Ma fenêtre reste désespérément vide, aucune erreur ne s'affiche...
3 - Ce que je veux au final :
Constituer un fichier CSV (horaire;numero;message) :
1 2 3 4 5 6
| 2013-05-07 14:20:00;0000000;9999999989 TEST PHILIPPE<EOT><EOT><NUL>
2013-05-07 14:20:01; 000000;s March Re INTRUSION site PRESENT<EOT><EOT><NUL>
2013-05-07 14:20:02; 00000;m+)1S: 90$('&SB-DS:NWCUm(ES)LZA?!(p<EOT><EOT><NUL>
2013-05-07 14:20:03; 00000;1+!.85$!& &88%-'&05'6I5E!'6p$!&=5U%' P-'&?<EOT><EOT><NUL><NUL>
2013-05-07 14:20:07; 00000;XH<"H*Hl)*IRJ"J*J:K/<EOT><EOT>
2013-05-07 14:20:10; 00000;XH<"H*Hl)*IRJ"J*J:K/<EOT><EOT> |
Si je ne mets qu'un seul sed (l'un ou l'autre) dans ma ligne de commande, là, ça fonctionne.
4 - Commande premier sed :
rtl_fm -N -f XXX.XXXM -s 22.05k - | ./multimonNG -a SCOPE -a POCSAG1200 -f alpha -t raw /dev/stdin | sed -r "s/^POCSAG1200[+-]{1}: Address: ([ [:digit:]]{7}) Function: [[:digit:]]{1}$/$(date +'%Y-%m-%d %H:%M:%S');\1;/"
4 - Réponse premier sed :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Found 1 device(s):
multimonNG (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
(C) 2012 by Elias Oenal
available demodulators: POCSAG512 POCSAG1200 POCSAG2400 EAS UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI SCOPE
0: Realtek, RTL2838UHIDIR, SN: 00000008
Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Rafael Micro R820T tuner
Oversampling input by: 46x.
Oversampling output by: 1x.
Buffer size: 8.08ms
Tuned to 000000000 Hz.
Sampling at 1014300 Hz.
Output at 22050 Hz.
Exact sample rate is: 1014300.020041 Hz
Tuner gain set to automatic.
Enabled demodulators: POCSAG1200 SCOPE
2013-05-07 14:33:36; 12;
POCSAG1200-: Alpha: Temp. Haute xxxxxxxxx,Alarmes xxxxxxx xxx<EOT><EOT><NUL><NUL> |
5 - Commande second sed :
rtl_fm -N -f XXX.XXXM -s 22.05k - | ./multimonNG -a SCOPE -a POCSAG1200 -f alpha -t raw /dev/stdin | sed -r "s/^POCSAG1200[+-]{1}: Alpha: (.*)$/\1/"
5 - Réponse second sed :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| Found 1 device(s):
multimonNG (C) 1996/1997 by Tom Sailer HB9JNX/AE4WA
(C) 2012 by Elias Oenal
available demodulators: POCSAG512 POCSAG1200 POCSAG2400 EAS UFSK1200 CLIPFSK AFSK1200 AFSK2400 AFSK2400_2 AFSK2400_3 HAPN4800 FSK9600 DTMF ZVEI SCOPE
0: Realtek, RTL2838UHIDIR, SN: 00000008
Using device 0: ezcap USB 2.0 DVB-T/DAB/FM dongle
Found Rafael Micro R820T tuner
Oversampling input by: 46x.
Oversampling output by: 1x.
Buffer size: 8.08ms
Tuned to 000000000 Hz.
Sampling at 1014300 Hz.
Output at 22050 Hz.
Exact sample rate is: 1014300.020041 Hz
Tuner gain set to automatic.
Enabled demodulators: POCSAG1200 SCOPE
POCSAG1200+: Address: 0000000 Function: 3
UV DEFAUT MAJEUR LAMPE UV BANK 2A<EOT><EOT><NUL><NUL>
POCSAG1200+: Address: 00000 Function: 3
!(!'85%s&4,"&865-'&p5'6B54p"F0("&?5TE' P,!&<5DA'&0$!6D5T='6D='6M)62TKCM+8-2k&SRRTm<=XP<EOT><EOT>
POCSAG1200+: Address: 000000 Function: 0
POCSAG1200+: Numeric: 3 .U [ 9]2[ 146 918.83 0288856378U]470133-1]4[ [-]60131.02569-- ]07.--40200
Xxxxxxx XX XXX Defaut Liaison LP Xxxxxxx<EOT><EOT> |
Voilà, j'espère avoir été assez précis cette fois-ci ![;)](https://www.developpez.net/forums/images/smilies/icon_wink.gif)
Merci,
ZiP
Partager