¿ªÔÆÌåÓý

Re: #direwolf #direwolf


 

¿ªÔÆÌåÓý


Hi, would anyone know how I would save the frame that is decoded with atest? Currently atest -B 9600 -h only prints out the frames, I was wondering if there is a simple way to save the decoded frames? Thanks!

If you read the man page on "atest", if gives you an example of how to generate a test file and later decode that test file.? Are you looking to save the decoded text like shown below into a file?? If so, you could just use:

?? atest -B 9600 -h test9.wav > test9-wav-decoded.txt


Maybe you're wanting something like saving to a pcap file (readable by tcpdump, wireshark, etc?)

--David
KI6ZHD


?? gen_packets -B 9600 -o test9.wav
?? --
?? Data rate set to 9600 bits / second.
?? Using scrambled baseband signal rather than AFSK.
?? Output file set to test9.wav
?? built in message...
?? --

?? atest -B 9600 -h test9.wav
?? --
?? 44100 samples per second.? 16 bits per sample.? 1 audio channels.
?? 32576 audio bytes in file.? Duration = 0.4 seconds.
?? Fix Bits level = 0
?? Channel 0: 9600 baud, K9NG/G3RUH,? , 44100 sample rate x 3.
?? The ratio of audio samples per sec (44100) to data rate in baud (9600) is 4.6
?? This is on the low side for best performance.? Can you use a higher sample rate?
?? For example, can you use 48000 rather than 44100?

?? DECODED[1] 0:00.091 WB2OSZ-15 audio level = 50(+33/-33)????
?? [0] WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog!? 1 of 4
?? ------
?? U frame UI: p/f=0, No layer 3 protocol implemented., length = 69
? ? dest??? TEST??? 0 c/r=1 res=3 last=0
? ? source? WB2OSZ 15 c/r=1 res=3 last=1
? ?? 000:? a8 8a a6 a8 40 40 e0 ae 84 64 9e a6 b4 ff 03 f0? ....@@...d......
? ?? 010:? 2c 54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e? ,The quick brown
? ?? 020:? 20 66 6f 78 20 6a 75 6d 70 73 20 6f 76 65 72 20?? fox jumps over
? ?? 030:? 74 68 65 20 6c 61 7a 79 20 64 6f 67 21 20 20 31? the lazy dog!? 1
? ?? 040:? 20 6f 66 20 34??????????????????????????????????? of 4
?? ------

?? DECODED[2] 0:00.183 WB2OSZ-15 audio level = 50(+33/-33)????
?? [0] WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog!? 2 of 4
?? ------
?? U frame UI: p/f=0, No layer 3 protocol implemented., length = 69
? ? dest??? TEST??? 0 c/r=1 res=3 last=0
? ? source? WB2OSZ 15 c/r=1 res=3 last=1
? ?? 000:? a8 8a a6 a8 40 40 e0 ae 84 64 9e a6 b4 ff 03 f0? ....@@...d......
? ?? 010:? 2c 54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e? ,The quick brown
? ?? 020:? 20 66 6f 78 20 6a 75 6d 70 73 20 6f 76 65 72 20?? fox jumps over
? ?? 030:? 74 68 65 20 6c 61 7a 79 20 64 6f 67 21 20 20 32? the lazy dog!? 2
? ?? 040:? 20 6f 66 20 34??????????????????????????????????? of 4
?? ------

?? DECODED[3] 0:00.275 WB2OSZ-15 audio level = 50(+33/-33)????
?? [0] WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog!? 3 of 4
?? ------
?? U frame UI: p/f=0, No layer 3 protocol implemented., length = 69
? ? dest??? TEST??? 0 c/r=1 res=3 last=0
? ? source? WB2OSZ 15 c/r=1 res=3 last=1
? ?? 000:? a8 8a a6 a8 40 40 e0 ae 84 64 9e a6 b4 ff 03 f0? ....@@...d......
? ?? 010:? 2c 54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e? ,The quick brown
? ?? 020:? 20 66 6f 78 20 6a 75 6d 70 73 20 6f 76 65 72 20?? fox jumps over
? ?? 030:? 74 68 65 20 6c 61 7a 79 20 64 6f 67 21 20 20 33? the lazy dog!? 3
? ?? 040:? 20 6f 66 20 34??????????????????????????????????? of 4
?? ------

?? DECODED[4] 0:00.368 WB2OSZ-15 audio level = 50(+33/-33)????
?? [0] WB2OSZ-15>TEST:,The quick brown fox jumps over the lazy dog!? 4 of 4
??? ------
?? U frame UI: p/f=0, No layer 3 protocol implemented., length = 69
? ? dest??? TEST??? 0 c/r=1 res=3 last=0
? ? source? WB2OSZ 15 c/r=1 res=3 last=1
? ?? 000:? a8 8a a6 a8 40 40 e0 ae 84 64 9e a6 b4 ff 03 f0? ....@@...d......
? ?? 010:? 2c 54 68 65 20 71 75 69 63 6b 20 62 72 6f 77 6e? ,The quick brown
? ?? 020:? 20 66 6f 78 20 6a 75 6d 70 73 20 6f 76 65 72 20?? fox jumps over
? ?? 030:? 74 68 65 20 6c 61 7a 79 20 64 6f 67 21 20 20 34? the lazy dog!? 4
? ?? 040:? 20 6f 66 20 34??????????????????????????????????? of 4
?? ------


?? 4 from test9.wav
?? 4 packets decoded in 0.010 seconds.? 36.5 x realtime
?? --



--David
KI6ZHD

Join [email protected] to automatically receive all group messages.