From laforge at gnumonks.org Wed Sep 7 19:01:18 2011 From: laforge at gnumonks.org (Harald Welte) Date: Wed, 7 Sep 2011 21:01:18 +0200 Subject: [osmocom-announce] patched wireshark now on git.osmocom.org Message-ID: <20110907190118.GO6415@prithivi.gnumonks.org> Hi all, we have accumulated a number of wireshark patches, and by far not all of them have been merged into mainline wireshark so far (volunteers, anyone?) Some people have complained that it is hard to build them, as you first have to find a wireshark version to which they apply, etc. We have now created a wireshark.git repository at git.osmocom.org in which you will be able to find the latest mainline wireshark version ('trunk' branch) as well as our patches in 'master': http://cgit.osmocom.org/cgit/wireshark/ the read-onIy clone url is 'git://git.osmocom.org/wireshark' So the recommended option for everyone needing patched wireshark for one or the other reason (e.g. simtrace) now is to clone that wireshark.git repository and build from there. Like before, we will rebase our patches in irregular intervals, so you may have to do a 'pull -f' instead of 'pull' at that time. Regards, Harald -- - Harald Welte http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6) From bigsat at gmail.com Fri Sep 23 11:49:43 2011 From: bigsat at gmail.com (Bigsat) Date: Fri, 23 Sep 2011 13:49:43 +0200 Subject: play the voice signal ? Message-ID: <4E7C7257.8070804@gmail.com> hi, I am using "fcdp-tetra_demod.py" with my funcube dongle and i can decode datas. The networks in my place are unencrypted. I saw on the "Dieter Spaar's blog" : "I also implemented some proof of concept code which allows decoding speech traffic and converting it to raw audio using the TETRA reference codec. Please note that this cannot be used to listen to encrypted TETRA traffic, it only works if no encryption is used. " Is it possible to release some part of the code necessary to decode Tetra voice or give some explaination of Gsmtap usage ? thanks for answer From spaar at mirider.augusta.de Fri Sep 23 15:20:44 2011 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Fri, 23 Sep 2011 15:20:44 CEST Subject: play the voice signal ? Message-ID: <4e7ca3cc.mirider@mirider.augusta.de> Hello Bigsat, On Fri, 23 Sep 2011 13:49:43 +0200, "Bigsat" wrote: > > Is it possible to release some part of the code necessary to decode > Tetra voice or give some explaination of Gsmtap usage ? > Just in case, I have sent my "proof of concept" modification for voice decoding to the authors of Osmocom TETRA for proper integration a while ago. As far as I am aware the current source code should be able to decode voice or at least contain the instructions how to do it (the ETSI reference codec is most certainly not included for copyright reasons). Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From vandenberkhof.pepijn at gmail.com Fri Sep 23 13:49:54 2011 From: vandenberkhof.pepijn at gmail.com (Pepijn van den Berkhof) Date: Fri, 23 Sep 2011 15:49:54 +0200 Subject: play the voice signal ? In-Reply-To: <4e7ca3cc.mirider@mirider.augusta.de> References: <4e7ca3cc.mirider@mirider.augusta.de> Message-ID: <1BB7E7CA-1AB6-43F8-9BA7-C1E01E086FF8@gmail.com> Hi, The instructions to download the ETSI reference codec can be found here: http://tetra.osmocom.org/trac/wiki/Speech_Codec although I never got it working completely. There is an output stream but there is no audio data in it. Just (random?) clicks and pops. Cheers, Pepijn Op 23 sep. 2011, om 15:20 heeft Dieter Spaar het volgende geschreven: > Hello Bigsat, > > On Fri, 23 Sep 2011 13:49:43 +0200, "Bigsat" wrote: >> >> Is it possible to release some part of the code necessary to decode >> Tetra voice or give some explaination of Gsmtap usage ? >> > > Just in case, I have sent my "proof of concept" modification > for voice decoding to the authors of Osmocom TETRA for proper > integration a while ago. As far as I am aware the current > source code should be able to decode voice or at least contain > the instructions how to do it (the ETSI reference codec is most > certainly not included for copyright reasons). > > Best regards, > Dieter > -- > Dieter Spaar, Germany spaar at mirider.augusta.de > -------------- next part -------------- An HTML attachment was scrubbed... URL: From spaar at mirider.augusta.de Sat Sep 24 14:28:27 2011 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Sat, 24 Sep 2011 14:28:27 CEST Subject: play the voice signal ? Message-ID: <4e7de90b.mirider@mirider.augusta.de> Hello, Regarding questions how to use the ETSI codec: It consists of two steps, "cdecoder" and "sdecoder". The ouput of "sdecoder" is raw sound in signed 16-Bit PCM format with 8000 samples/second. For example Audacity can play it without problems. (And no, its no "magic", it just requires to read a few comment lines in the source code of the codec). Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From vandenberkhof.pepijn at gmail.com Sat Sep 24 13:49:37 2011 From: vandenberkhof.pepijn at gmail.com (Pepijn van den Berkhof) Date: Sat, 24 Sep 2011 15:49:37 +0200 Subject: play the voice signal ? In-Reply-To: <4e7de90b.mirider@mirider.augusta.de> References: <4e7de90b.mirider@mirider.augusta.de> Message-ID: <918DC8B3-41C8-4A85-968A-3CF3E37A2BE5@gmail.com> Hello, I have tried this and ran the sdecoder and cdecoder whitout any problems. But when I open the result in Audacity (8000Hz / 16-bit PCM) I just hear clicks and pops and a long beep every now and then. I have read the ETSI document regarding the codec, so no magics :) But do you actually hear output from a real life network? Because I tried the examples attached to the ETSI document regarding the testing of the codec. They work very nicely, but no luck on real life networks so far. (yes, no encryption) Regards, Pepijn Op 24 sep. 2011, om 14:28 heeft Dieter Spaar het volgende geschreven: > Hello, > > Regarding questions how to use the ETSI codec: It consists of two steps, > "cdecoder" and "sdecoder". The ouput of "sdecoder" is raw sound in signed > 16-Bit PCM format with 8000 samples/second. For example Audacity can play > it without problems. > > (And no, its no "magic", it just requires to read a few comment lines in > the source code of the codec). > > Best regards, > Dieter > -- > Dieter Spaar, Germany spaar at mirider.augusta.de > From mccauley at gmx.net Sat Sep 24 13:37:25 2011 From: mccauley at gmx.net (Mccauley) Date: Sat, 24 Sep 2011 15:37:25 +0200 Subject: play the voice signal ? In-Reply-To: <4e7ca3cc.mirider@mirider.augusta.de> References: <4e7ca3cc.mirider@mirider.augusta.de> Message-ID: <20110924153723.E89E.76C15975@gmx.net> Apart from the codec patches for ETSI codec i cant find any other voice decoding source code in osmocom-tetra trunk. Neither seems to have entered you in the AUTHORS file. FAQ on the site says: "Can your software actually play the voice signal? Currently we have no support for that. However, a yet unreleased proof-of-concept version exists." Why this secrecy for publishing source to decode unencrypted networks?. Have osmocom been threatened by the tetra manufacturers? Would damage sysmocom commercial interests > > > > Just in case, I have sent my "proof of concept" modification > for voice decoding to the authors of Osmocom TETRA for proper > integration a while ago. As far as I am aware the current > source code should be able to decode voice or at least contain > the instructions how to do it (the ETSI reference codec is most > certainly not included for copyright reasons). > > Best regards, > Dieter > -- > Dieter Spaar, Germany spaar at mirider.augusta.de -- <> From holger at freyther.de Sat Sep 24 14:24:28 2011 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sat, 24 Sep 2011 16:24:28 +0200 Subject: play the voice signal ? In-Reply-To: <20110924153723.E89E.76C15975@gmx.net> References: <4e7ca3cc.mirider@mirider.augusta.de> <20110924153723.E89E.76C15975@gmx.net> Message-ID: <4E7DE81C.7020800@freyther.de> On 09/24/2011 03:37 PM, Mccauley wrote: > Why this secrecy for publishing source to decode unencrypted networks?. > Have osmocom been threatened by the tetra manufacturers? > Would damage sysmocom commercial interests Hi, sysmocom is building a GSM BTS, right now there is no interest in doing something commercially with tetra. We can not integrate the ETSI audio code in our (A)GPL software, the result would not be freely distributable. From my side I was mostly interested in the signalling part, or if time would permit try transmitting. So if you either find a legal way to include the ETSI code at build time, or preferable write a GPL compatible audio decoder, I think we would be happy to include it in the git repository. cheers holger From spaar at mirider.augusta.de Sat Sep 24 16:44:21 2011 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Sat, 24 Sep 2011 16:44:21 CEST Subject: play the voice signal ? Message-ID: <4e7e08e5.mirider@mirider.augusta.de> Hello Pepijn, On Sat, 24 Sep 2011 15:49:37 +0200, "Pepijn van den Berkhof" wrote: > > But do you actually hear output from a real life network? Because I > tried the examples attached to the ETSI document regarding the testing > of the codec. They work very nicely, but no luck on real life networks > so far. (yes, no encryption) I know that others have used the current code to decode speech, maybe someone can confirm it. I haven't worked with the code for a while and so can't confirm it, but it has worked for me in the past. Maybe I find the time to try it within the next few weeks, if possible I will also try to provide a sample capture from a test TETRA network so everyone can try the sample. "Test TETRA Network" means from a network under our control run in a faraday cage so that there are no legal issues providing the capture. Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de From fe8769 at gmail.com Sat Sep 24 14:38:21 2011 From: fe8769 at gmail.com (fe8769) Date: Sat, 24 Sep 2011 16:38:21 +0200 Subject: tetra voice Message-ID: is that could help us for voice decoding : ? http://www.joys99.com/d-4784.html -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fe8769 at gmail.com Sat Sep 24 16:17:46 2011 From: fe8769 at gmail.com (fe8769) Date: Sat, 24 Sep 2011 18:17:46 +0200 Subject: another source for Tetra voice Message-ID: http://s.pudn.com/search_hot_en.asp?k=TETRA# -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fe8769 at gmail.com Sat Sep 24 17:06:05 2011 From: fe8769 at gmail.com (fe8769) Date: Sat, 24 Sep 2011 19:06:05 +0200 Subject: source of cdecoder.rar Message-ID: http://read.pudn.com/downloads75/sourcecode/comm/274845/cdecoder.c__.htm -- -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.palmer69 at yahoo.co.uk Sat Sep 24 18:56:05 2011 From: graham.palmer69 at yahoo.co.uk (Graham Palmer) Date: Sat, 24 Sep 2011 19:56:05 +0100 (BST) Subject: tetra Digest, Vol 9, Issue 3 In-Reply-To: References: Message-ID: <1316890565.17022.YahooMailNeo@web28410.mail.ukl.yahoo.com> Hi again. We have the etsi cdecoder and speech decoder which works fine with sample code what we need is to link it with real time bitstream from osmo tetra decode. I understood this had already been achieved with Dieter's proof of concept code. Any chance of? viewing this code even if incomplete ?. regards. graham ________________________________ From: "tetra-request at lists.osmocom.org" To: tetra at lists.osmocom.org Sent: Saturday, 24 September 2011, 16:04 Subject: tetra Digest, Vol 9, Issue 3 Send tetra mailing list submissions to ??? tetra at lists.osmocom.org To subscribe or unsubscribe via the World Wide Web, visit ??? https://lists.osmocom.org/mailman/listinfo/tetra or, via email, send a message with subject or body 'help' to ??? tetra-request at lists.osmocom.org You can reach the person managing the list at ??? tetra-owner at lists.osmocom.org When replying, please edit your Subject line so it is more specific than "Re: Contents of tetra digest..." Today's Topics: ? 1. Re: tetra Digest, Vol 9, Issue 2 (Graham Palmer) ? 2. Re: play the voice signal ? (Dieter Spaar) ? 3. Re: play the voice signal ? (Pepijn van den Berkhof) ? 4. Re[2]: play the voice signal ? (Mccauley) ? 5. Re: play the voice signal ? (Holger Hans Peter Freyther) ? 6. Re: play the voice signal ? (Dieter Spaar) ? 7. tetra voice (fe8769) Hi all I am still learning this level of coding. I am struggling to get the descrambled bitstream from the lower mac to the channel decoder of the etsi codec. My setup has no problem decoding the data and reading it with Wireshark. Any help would be appreciated. Best regards. Graham ________________________________ From: "tetra-request at lists.osmocom.org" To: tetra at lists.osmocom.org Sent: Saturday, 24 September 2011, 11:00 Subject: tetra Digest, Vol 9, Issue 2 Send tetra mailing list submissions to ??? tetra at lists.osmocom.org To subscribe or unsubscribe via the World Wide Web, visit ??? https://lists.osmocom.org/mailman/listinfo/tetra or, via email, send a message with subject or body 'help' to ??? tetra-request at lists.osmocom.org You can reach the person managing the list at ??? tetra-owner at lists.osmocom.org When replying, please edit your Subject line so it is more specific than "Re: Contents of tetra digest..." Today's Topics: ? 1. play the voice signal ? (Bigsat) ? 2. Re: play the voice signal ? (Dieter Spaar) ? 3. Re: play the voice signal ? (Pepijn van den Berkhof) hi, I am using "fcdp-tetra_demod.py" with my funcube dongle and i can decode datas. The networks in my place are unencrypted. I saw on the "Dieter Spaar's blog" : "I also implemented some proof of concept code which allows decoding speech traffic and converting it to raw audio using the TETRA reference codec. Please note that this cannot be used to listen to encrypted TETRA traffic, it only works if no encryption is used. " Is it possible to release some part of the code necessary to decode Tetra voice or give some explaination of Gsmtap usage ? thanks for answer Hello Bigsat, On Fri, 23 Sep 2011 13:49:43 +0200, "Bigsat" wrote: > > Is it possible to release some part of the code necessary to decode > Tetra voice or give some explaination of Gsmtap usage ? > Just in case, I have sent my "proof of concept" modification for voice decoding to the authors of Osmocom TETRA for proper integration a while ago. As far as I am aware the current source code should be able to decode voice or at least contain the instructions how to do it (the ETSI reference codec is most certainly not included for copyright reasons). Best regards, ? Dieter -- Dieter Spaar, Germany? ? ? ? ? ? ? ? ? ? ? ? ? spaar at mirider.augusta.de Hi, The instructions to download the ETSI reference codec can be found here: ?http://tetra.osmocom.org/trac/wiki/Speech_Codec?although I never got it working completely. There is an output stream but there is no audio data in it. Just (random?) clicks and pops. Cheers, Pepijn Op 23 sep. 2011, om 15:20 heeft Dieter Spaar het volgende geschreven: Hello Bigsat, > >On Fri, 23 Sep 2011 13:49:43 +0200, "Bigsat" wrote: > > >> >Is it possible to release some part of the code necessary to decode >> >Tetra voice or give some explaination of Gsmtap usage ? >> > >> >Just in case, I have sent my "proof of concept" modification >for voice decoding to the authors of Osmocom TETRA for proper >integration a while ago. As far as I am aware the current >source code should be able to decode voice or at least contain >the instructions how to do it (the ETSI reference codec is most >certainly not included for copyright reasons). > >Best regards, >?Dieter >-- >Dieter Spaar, Germany ??????????????????????????spaar at mirider.augusta.de > > _______________________________________________ tetra mailing list tetra at lists.osmocom.org https://lists.osmocom.org/mailman/listinfo/tetra Hello, Regarding questions how to use the ETSI codec: It consists of two steps, "cdecoder" and "sdecoder". The ouput of "sdecoder" is raw sound in signed 16-Bit PCM format with 8000 samples/second. For example Audacity can play it without problems. (And no, its no "magic", it just requires to read a few comment lines in the source code of the codec). Best regards, ? Dieter -- Dieter Spaar, Germany? ? ? ? ? ? ? ? ? ? ? ? ? spaar at mirider.augusta.de Hello, I have tried this and ran the sdecoder and cdecoder whitout any problems. But when I open the result in Audacity (8000Hz / 16-bit PCM) I just hear clicks and pops and a long beep every now and then. I have read the ETSI document regarding the codec, so no magics :) But do you actually hear output from a real life network? Because I tried the examples attached to the ETSI document regarding the testing of the codec. They work very nicely, but no luck on real life networks so far. (yes, no encryption) Regards, Pepijn Op 24 sep. 2011, om 14:28 heeft Dieter Spaar het volgende geschreven: > Hello, > > Regarding questions how to use the ETSI codec: It consists of two steps, > "cdecoder" and "sdecoder". The ouput of "sdecoder" is raw sound in signed > 16-Bit PCM format with 8000 samples/second. For example Audacity can play > it without problems. > > (And no, its no "magic", it just requires to read a few comment lines in > the source code of the codec). > > Best regards, >? Dieter > -- > Dieter Spaar, Germany? ? ? ? ? ? ? ? ? ? ? ? ? spaar at mirider.augusta.de > Apart from the codec patches for ETSI codec i cant find any other voice decoding source code in osmocom-tetra trunk. Neither seems to have entered you in the AUTHORS file. FAQ on the site says: "Can your software actually play the voice signal? Currently we have no support for that. However, a yet unreleased proof-of-concept version exists." Why this secrecy for publishing source to decode unencrypted networks?. Have osmocom been threatened by the tetra manufacturers? Would damage sysmocom commercial interests > > > > Just in case, I have sent my "proof of concept" modification > for voice decoding to the authors of Osmocom TETRA for proper > integration a while ago. As far as I am aware the current > source code should be able to decode voice or at least contain > the instructions how to do it (the ETSI reference codec is most > certainly not included for copyright reasons). > > Best regards, >? Dieter > -- > Dieter Spaar, Germany? ? ? ? ? ? ? ? ? ? ? ? ? spaar at mirider.augusta.de -- <> On 09/24/2011 03:37 PM, Mccauley wrote: > Why this secrecy for publishing source to decode unencrypted networks?. > Have osmocom been threatened by the tetra manufacturers? > Would damage sysmocom commercial interests Hi, sysmocom is building a GSM BTS, right now there is no interest in doing something commercially with tetra. We can not integrate the ETSI audio code in our (A)GPL software, the result would not be freely distributable. From my side I was mostly interested in the signalling part, or if time would permit try transmitting. So if you either find a legal way to include the ETSI code at build time, or preferable write a GPL compatible audio decoder, I think we would be happy to include it in the git repository. cheers ??? holger Hello Pepijn, On Sat, 24 Sep 2011 15:49:37 +0200, "Pepijn van den Berkhof" wrote: > > But do you actually hear output from a real life network? Because I > tried the examples attached to the ETSI document regarding the testing > of the codec. They work very nicely, but no luck on real life networks > so far. (yes, no encryption) I know that others have used the current code to decode speech, maybe someone can confirm it. I haven't worked with the code for a while and so can't confirm it, but it has worked for me in the past. Maybe I find the time to try it within the next few weeks, if possible I will also try to provide a sample capture from a test TETRA network so everyone can try the sample. "Test TETRA Network" means from a network under our control run in a faraday cage so that there are no legal issues providing the capture. Best regards, ? Dieter -- Dieter Spaar, Germany? ? ? ? ? ? ? ? ? ? ? ? ? spaar at mirider.augusta.de is that could help us for voice decoding : ? http://www.joys99.com/d-4784.html -- _______________________________________________ tetra mailing list tetra at lists.osmocom.org https://lists.osmocom.org/mailman/listinfo/tetra -------------- next part -------------- An HTML attachment was scrubbed... URL: From 246tnt at gmail.com Sat Sep 24 19:09:05 2011 From: 246tnt at gmail.com (Sylvain Munaut) Date: Sat, 24 Sep 2011 21:09:05 +0200 Subject: tetra Digest, Vol 9, Issue 3 In-Reply-To: <1316890565.17022.YahooMailNeo@web28410.mail.ukl.yahoo.com> References: <1316890565.17022.YahooMailNeo@web28410.mail.ukl.yahoo.com> Message-ID: On Sat, Sep 24, 2011 at 8:56 PM, Graham Palmer wrote: > Hi again. > We have the etsi cdecoder and speech decoder which works fine with sample > code > what we need is to link it with real time bitstream from osmo tetra decode. > I understood this had already been achieved with Dieter's proof of concept > code. Any chance of? viewing this code even if incomplete ?. It doesn't apply anymore because of a lot of change in the code since then. This should save the data in the bursts : 1) It's completely untested but that's where Dieters POC got the bits previously 2) It saves the data as '0' and '1' in a text file, you may need to change the etsi codec to read that 3) It will only give out garbage is there is multiple voice channel at once since it doesn't do any meta data interpretation to isolate channels and just save anything that's traffic (that was a limitation of dieter's POC as well) 4) I'm pretty sure it saves 'packet data' as well which obviously gives garbage. diff --git a/src/lower_mac/tetra_lower_mac.c b/src/lower_mac/tetra_lower_mac.c index 7b62bb4..8a41ccb 100644 --- a/src/lower_mac/tetra_lower_mac.c +++ b/src/lower_mac/tetra_lower_mac.c @@ -184,6 +184,15 @@ void tp_sap_udata_ind(enum tp_sap_data_type type, const uint8_t *bits, unsigned DEBUGP("%s %s type4: %s\n", tbp->name, time_str, osmo_ubit_dump(type4, tbp->type345_bits)); + if (tms->cur_burst.is_traffic) { + FILE *f = fopen("traffic.out", "ab"); + + for(i = 0; i < 216*2; i++) + fprintf(f, "%d", bits[i]); + + fclose(f); + } + if (tbp->interleave_a) { /* Run block deinterleaving: type-3 bits */ block_deinterleave(tbp->type345_bits, tbp->interleave_a, type4, type3); From graham.palmer69 at yahoo.co.uk Sun Sep 25 16:21:14 2011 From: graham.palmer69 at yahoo.co.uk (Graham Palmer) Date: Sun, 25 Sep 2011 17:21:14 +0100 (BST) Subject: tetra Digest, Vol 9, Issue 5 In-Reply-To: References: Message-ID: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> Hi sylvain. I have to declare i as a variable but where ?. I told You I was a newbie !!. Forgive Me. Graham. ________________________________ From: "tetra-request at lists.osmocom.org" To: tetra at lists.osmocom.org Sent: Sunday, 25 September 2011, 11:00 Subject: tetra Digest, Vol 9, Issue 5 Send tetra mailing list submissions to ??? tetra at lists.osmocom.org To subscribe or unsubscribe via the World Wide Web, visit ??? https://lists.osmocom.org/mailman/listinfo/tetra or, via email, send a message with subject or body 'help' to ??? tetra-request at lists.osmocom.org You can reach the person managing the list at ??? tetra-owner at lists.osmocom.org When replying, please edit your Subject line so it is more specific than "Re: Contents of tetra digest..." Today's Topics: ? 1. Re: tetra Digest, Vol 9, Issue 3 (Sylvain Munaut) On Sat, Sep 24, 2011 at 8:56 PM, Graham Palmer wrote: > Hi again. > We have the etsi cdecoder and speech decoder which works fine with sample > code > what we need is to link it with real time bitstream from osmo tetra decode. > I understood this had already been achieved with Dieter's proof of concept > code. Any chance of? viewing this code even if incomplete ?. It doesn't apply anymore because of a lot of change in the code since then. This should save the data in the bursts : 1) It's completely untested but that's where Dieters POC got the bits previously 2) It saves the data as '0' and '1' in a text file, you may need to change the etsi codec to read that 3) It will only give out garbage is there is multiple voice channel at once since it doesn't do any meta data interpretation to isolate channels and just save anything that's traffic (that was a limitation of dieter's POC as well) 4) I'm pretty sure it saves 'packet data' as well which obviously gives garbage. diff --git a/src/lower_mac/tetra_lower_mac.c b/src/lower_mac/tetra_lower_mac.c index 7b62bb4..8a41ccb 100644 --- a/src/lower_mac/tetra_lower_mac.c +++ b/src/lower_mac/tetra_lower_mac.c @@ -184,6 +184,15 @@ void tp_sap_udata_ind(enum tp_sap_data_type type, const uint8_t *bits, unsigned ? ? ? ? DEBUGP("%s %s type4: %s\n", tbp->name, time_str, ? ? ? ? ? ? ? ? osmo_ubit_dump(type4, tbp->type345_bits)); +? ? ? if (tms->cur_burst.is_traffic) { +? ? ? ? ? ? ? FILE *f = fopen("traffic.out", "ab"); + +? ? ? ? ? ? ? for(i = 0; i < 216*2; i++) +? ? ? ? ? ? ? ? ? ? ? fprintf(f, "%d", bits[i]); + +? ? ? ? ? ? ? fclose(f); +? ? ? } + ? ? ? ? if (tbp->interleave_a) { ? ? ? ? ? ? ? ? /* Run block deinterleaving: type-3 bits */ ? ? ? ? ? ? ? ? block_deinterleave(tbp->type345_bits, tbp->interleave_a, type4, type3); _______________________________________________ tetra mailing list tetra at lists.osmocom.org https://lists.osmocom.org/mailman/listinfo/tetra -------------- next part -------------- An HTML attachment was scrubbed... URL: From holger at freyther.de Sun Sep 25 16:47:04 2011 From: holger at freyther.de (Holger Hans Peter Freyther) Date: Sun, 25 Sep 2011 18:47:04 +0200 Subject: tetra Digest, Vol 9, Issue 5 In-Reply-To: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> Message-ID: <4E7F5B08.7090703@freyther.de> On 09/25/2011 06:21 PM, Graham Palmer wrote: > Hi sylvain. > I have to declare i as a variable but where ?. > I told You I was a newbie !!. try. :) From 246tnt at gmail.com Sun Sep 25 17:42:37 2011 From: 246tnt at gmail.com (Sylvain Munaut) Date: Sun, 25 Sep 2011 19:42:37 +0200 Subject: tetra Digest, Vol 9, Issue 5 In-Reply-To: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> Message-ID: Hi, > I have to declare i as a variable but where ?. > I told You I was a newbie !!. > Forgive Me. Don't bother, I wrote that code from memory mostly as just an example of where to get tap the data, not really meant as a directly working code. So if you have trouble with a non declared variable, I doubt you'll make it working. Just wait for Dieter to post the capture the mentionned earlier and I'll make sure to push something that can read those when they're available. Cheers. Sylvain From ciaby at autistici.org Tue Sep 27 11:18:17 2011 From: ciaby at autistici.org (ciaby) Date: Tue, 27 Sep 2011 13:18:17 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> Message-ID: <5686bb0ff39c02af545203e5bedf989b@autistici.org> On Sun, 25 Sep 2011 19:42:37 +0200, Sylvain Munaut wrote: > Don't bother, I wrote that code from memory mostly as just an example > of where to get tap the data, not really meant as a directly working > code. So if you have trouble with a non declared variable, I doubt > you'll make it working. > > Just wait for Dieter to post the capture the mentionned earlier and > I'll make sure to push something that can read those when they're > available. I managed to get some kind-of-working code out of your snippet, i can also chop it off in pieces based on the timeslot, but i can't properly convert the bitstream in the 16-bit samples which the speed decoder want as input of cdecoder. Is anybody in this list willing to share some sample captures which have audio in them? I'm going to release the code as soon as it produce something meaningful for the speech decoder. Cheers! Ciaby From ciaby at autistici.org Tue Sep 27 14:11:15 2011 From: ciaby at autistici.org (ciaby) Date: Tue, 27 Sep 2011 16:11:15 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> <5686bb0ff39c02af545203e5bedf989b@autistici.org> Message-ID: <2f2cf2f0949269aa8c5bbccc5727ce17@autistici.org> On Tue, 27 Sep 2011 16:09:18 +0200, Pepijn van den Berkhof wrote: > What do you need? WAV audio? Or bits? I can do some real life > recordings for you. Bits, after the conversion with float_to_bits. Unencrypted speech, of course ;-) Tnx! Ciaby From vandenberkhof.pepijn at gmail.com Tue Sep 27 14:09:18 2011 From: vandenberkhof.pepijn at gmail.com (Pepijn van den Berkhof) Date: Tue, 27 Sep 2011 16:09:18 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: <5686bb0ff39c02af545203e5bedf989b@autistici.org> References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> <5686bb0ff39c02af545203e5bedf989b@autistici.org> Message-ID: What do you need? WAV audio? Or bits? I can do some real life recordings for you. 2011/9/27, ciaby : > On Sun, 25 Sep 2011 19:42:37 +0200, Sylvain Munaut wrote: >> Don't bother, I wrote that code from memory mostly as just an example >> of where to get tap the data, not really meant as a directly working >> code. So if you have trouble with a non declared variable, I doubt >> you'll make it working. >> >> Just wait for Dieter to post the capture the mentionned earlier and >> I'll make sure to push something that can read those when they're >> available. > I managed to get some kind-of-working code out of your snippet, i can > also chop it off in pieces based on the timeslot, but i can't properly > convert the bitstream in the 16-bit samples which the speed decoder want > as input of cdecoder. > Is anybody in this list willing to share some sample captures which > have audio in them? > I'm going to release the code as soon as it produce something > meaningful for the speech decoder. > Cheers! > > Ciaby > > > -- Verzonden vanaf mijn mobiele apparaat From vandenberkhof.pepijn at gmail.com Tue Sep 27 14:16:28 2011 From: vandenberkhof.pepijn at gmail.com (Pepijn van den Berkhof) Date: Tue, 27 Sep 2011 16:16:28 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: <2f2cf2f0949269aa8c5bbccc5727ce17@autistici.org> References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> <5686bb0ff39c02af545203e5bedf989b@autistici.org> <2f2cf2f0949269aa8c5bbccc5727ce17@autistici.org> Message-ID: Ofcourse unencrypted :-) but there is a pretty active tetra network near me so I'll make some recordings of it when I get home. There are some examples with te ETSI code aswell. Maybe you can use those aswell. Regards, Pepijn 2011/9/27, ciaby : > On Tue, 27 Sep 2011 16:09:18 +0200, Pepijn van den Berkhof wrote: >> What do you need? WAV audio? Or bits? I can do some real life >> recordings for you. > Bits, after the conversion with float_to_bits. > Unencrypted speech, of course ;-) > Tnx! > > Ciaby > > -- Verzonden vanaf mijn mobiele apparaat From ciaby at autistici.org Tue Sep 27 22:56:53 2011 From: ciaby at autistici.org (ciaby) Date: Wed, 28 Sep 2011 00:56:53 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: <5686bb0ff39c02af545203e5bedf989b@autistici.org> References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> <5686bb0ff39c02af545203e5bedf989b@autistici.org> Message-ID: <8da44adc2888aa97d46609c9fe9c2a51@autistici.org> Ok, no luck in decoding the samples... I can't manage to get the bitstream out in the proper way. I compiled the fromansi and toansi utilities from the etsi samples, i can output the full frame in 16-bit format, but cdecoder never accept it as a valid input (always complaining that the frame is wrong/corrupted). What am i doing wrong? This is what i tried to so far: if (tms->cur_burst.is_traffic) { FILE *f = fopen("traffic.out", "ab"); for(i = 0; i < 432; i++) { bit=bits[i]; fwrite(&bit,sizeof(uint8_t),1,f); fwrite(&zero,sizeof(uint8_t),1,f); } fclose(f); Which should produce an output file with 16-bit samples, each containing one bit of information. Then use ./toansi to convert into a format which is compatible by the etsi codec, use cdecoder to decode the channel and sdecoder to convert the speech frame into a pcm file. However, it doesn't work. Ideas? :) Cheers! Ciaby From vladimir at suriva.sk Wed Sep 28 19:47:06 2011 From: vladimir at suriva.sk (vladimir at suriva.sk) Date: Wed, 28 Sep 2011 21:47:06 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: <2efd1b227a9930673dd6ac47f5bc7a00@autistici.org> References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> <5686bb0ff39c02af545203e5bedf989b@autistici.org> <2f2cf2f0949269aa8c5bbccc5727ce17@autistici.org> <1317140363.1585.9.camel@speque> <2efd1b227a9930673dd6ac47f5bc7a00@autistici.org> Message-ID: <1317239226.1630.20.camel@speque> Hi Ciab, here are 100MB+ samples from different channels of our motorola tetra network, hope it will help you http://www.assr.us/tetracapture/cpt.bits.tar.gz http://www.assr.us/tetracapture/cpt1.bits.tar.gz http://www.assr.us/tetracapture/cpt2.bits.tar.gz I've also tried to create the bit stream with this patch if (tms->cur_burst.is_traffic) { FILE *f = fopen("traffic.out", "ab"); fwrite(bits,sizeof(bits),216*2,f); fclose(f); } since it's not word16 it doesn't work either :( Good luck, Vlad. On Wed, 2011-09-28 at 09:40 +0200, ciaby wrote: > On Tue, 27 Sep 2011 18:19:23 +0200, vladimir at suriva.sk wrote: > > Hi Ciaby, > > > > here is sample capture of local tetra network with 2000+ terminals, > > bits > > after conversion, of course. If a longer capture is useful for you, > > let > > me know, I'll upload it on my ftp. > > > > Cheers, Vlad. > Hi Vlad, your capture is interesting, but doesn't contain any speech > frames. Can you make a longer one, compress it and upload it on the ftp? > I'm struggling since 2 days to get the code working, but i don't have a > decent sample to work with :-) > Thanks again! > > Ciaby > From 246tnt at gmail.com Wed Sep 28 20:27:48 2011 From: 246tnt at gmail.com (Sylvain Munaut) Date: Wed, 28 Sep 2011 22:27:48 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: <1317239226.1630.20.camel@speque> References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> <5686bb0ff39c02af545203e5bedf989b@autistici.org> <2f2cf2f0949269aa8c5bbccc5727ce17@autistici.org> <1317140363.1585.9.camel@speque> <2efd1b227a9930673dd6ac47f5bc7a00@autistici.org> <1317239226.1630.20.camel@speque> Message-ID: > I've also tried to create the bit stream with this patch If I said "don't bother" earlier, there was a reason, there was quite a few things wrong with what I posted and unless you tried actually reading the specs to fix it, you had no hope whatsoever of making it work. I now created a sylvain/tch branch with a version that creates multiple traffic_xx.out files based on the DL_USAGE value to try and demultiplex a bit. There are 2 other 'demux hack' commented in the code,one based on timeslot and one based tetra-rx data.bits cdecoder traffic_XX.out traffic_XX.codec sdecoder traffic_XX.codec traffic_XX.pcm aplay -fS16_LE traffic_XX.pcm Cheers, Sylvain From ciaby at autistici.org Thu Sep 29 02:14:40 2011 From: ciaby at autistici.org (ciaby) Date: Thu, 29 Sep 2011 04:14:40 +0200 Subject: tetra speech samples (was: Re: tetra Digest, Vol 9, Issue 5) In-Reply-To: References: <1316967674.92472.YahooMailNeo@web28410.mail.ukl.yahoo.com> <5686bb0ff39c02af545203e5bedf989b@autistici.org> <2f2cf2f0949269aa8c5bbccc5727ce17@autistici.org> <1317140363.1585.9.camel@speque> <2efd1b227a9930673dd6ac47f5bc7a00@autistici.org> <1317239226.1630.20.camel@speque> Message-ID: <1317262480.32726.4.camel@rat> On Wed, 2011-09-28 at 22:27 +0200, Sylvain Munaut wrote: > > I've also tried to create the bit stream with this patch > > If I said "don't bother" earlier, there was a reason, there was quite > a few things wrong with what I posted and unless you tried actually > reading the specs to fix it, you had no hope whatsoever of making it > work. Indeed... even thought i got the part about TPSAP_T_SCH_F right (in another piece of test code) :-P > > I now created a sylvain/tch branch with a version that creates > multiple traffic_xx.out files based on the DL_USAGE value to try and > demultiplex a bit. > There are 2 other 'demux hack' commented in the code,one based on > timeslot and one based > > tetra-rx data.bits > cdecoder traffic_XX.out traffic_XX.codec > sdecoder traffic_XX.codec traffic_XX.pcm > aplay -fS16_LE traffic_XX.pcm What can i say? It works perfectly! I'm still wondering what are the steps to convert two 216 frames into a 690 block, but that's probably for tomorrow morning... ;-) Thanks a lot for the hack, i'll try to convert it into something more "user-friendly", but at least i know what to look for. Cheers! Ciaby P.S. for vladimir: i tried only one of your captures, and it seems to work fine. Tried with some local captures, works as well ;-) From spaar at mirider.augusta.de Thu Sep 29 09:22:56 2011 From: spaar at mirider.augusta.de (Dieter Spaar) Date: Thu, 29 Sep 2011 09:22:56 CEST Subject: TETRA test samples Message-ID: <4e8438f0.mirider@mirider.augusta.de> Hello, there is now a test sample (bit file) with speech at http://tetra.osmocom.org/trac/wiki/Test_Samples Please only add samples to this page if you have the full agreement for publishing from all involved parties (e.g. operator of the network, people speaking during the capture). This is not the place to share captures which were made from someone else without their knowledge. Best regards, Dieter -- Dieter Spaar, Germany spaar at mirider.augusta.de