<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi sylvain.</span></div><div><span>I have to declare i as a variable but where ?.</span></div><div><span>I told You I was a newbie !!.</span></div><div><span>Forgive Me.</span></div><div><span>Graham.</span></div><div><span><br></span></div><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> "tetra-request@lists.osmocom.org" <tetra-request@lists.osmocom.org><br><b><span style="font-weight: bold;">To:</span></b> tetra@lists.osmocom.org<br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, 25 September 2011, 11:00<br><b><span style="font-weight: bold;">Subject:</span></b> tetra Digest, Vol
 9, Issue 5<br></font><br><br><br>Send tetra mailing list submissions to<br>    <a ymailto="mailto:tetra@lists.osmocom.org" href="mailto:tetra@lists.osmocom.org">tetra@lists.osmocom.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    <a href="https://lists.osmocom.org/mailman/listinfo/tetra" target="_blank">https://lists.osmocom.org/mailman/listinfo/tetra</a><br>or, via email, send a message with subject or body 'help' to<br>    <a ymailto="mailto:tetra-request@lists.osmocom.org" href="mailto:tetra-request@lists.osmocom.org">tetra-request@lists.osmocom.org</a><br><br>You can reach the person managing the list at<br>    <a ymailto="mailto:tetra-owner@lists.osmocom.org" href="mailto:tetra-owner@lists.osmocom.org">tetra-owner@lists.osmocom.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of tetra
 digest..."<br><br>Today's Topics:<br><br>   1. Re: tetra Digest, Vol 9, Issue 3 (Sylvain Munaut)<br>On Sat, Sep 24, 2011 at 8:56 PM, Graham Palmer<br><<a ymailto="mailto:graham.palmer69@yahoo.co.uk" href="mailto:graham.palmer69@yahoo.co.uk">graham.palmer69@yahoo.co.uk</a>> wrote:<br>> Hi again.<br>> We have the etsi cdecoder and speech decoder which works fine with sample<br>> code<br>> what we need is to link it with real time bitstream from osmo tetra decode.<br>> I understood this had already been achieved with Dieter's proof of concept<br>> code. Any chance of  viewing this code even if incomplete ?.<br><br>It doesn't apply anymore because of a lot of change in the code since then.<br><br>This should save the data in the bursts :<br> 1) It's completely untested but that's where Dieters POC got the bits<br>previously<br> 2) It saves the data as '0' and '1' in a text file, you may need to<br>change the etsi codec to
 read that<br> 3) It will only give out garbage is there is multiple voice channel<br>at once since it doesn't do any meta data interpretation to isolate<br>channels and just save anything that's traffic (that was a limitation<br>of dieter's POC as well)<br> 4) I'm pretty sure it saves 'packet data' as well which obviously<br>gives garbage.<br><br>diff --git a/src/lower_mac/tetra_lower_mac.c b/src/lower_mac/tetra_lower_mac.c<br>index 7b62bb4..8a41ccb 100644<br>--- a/src/lower_mac/tetra_lower_mac.c<br>+++ b/src/lower_mac/tetra_lower_mac.c<br>@@ -184,6 +184,15 @@ void tp_sap_udata_ind(enum tp_sap_data_type type,<br>const uint8_t *bits, unsigned<br>        DEBUGP("%s %s type4: %s\n", tbp->name, time_str,<br>                osmo_ubit_dump(type4, tbp->type345_bits));<br><br>+       if (tms->cur_burst.is_traffic) {<br>+               FILE *f =
 fopen("traffic.out", "ab");<br>+<br>+               for(i = 0; i < 216*2; i++)<br>+                       fprintf(f, "%d", bits[i]);<br>+<br>+               fclose(f);<br>+       }<br>+<br>        if (tbp->interleave_a) {<br>                /* Run block deinterleaving: type-3 bits */<br>                block_deinterleave(tbp->type345_bits,<br>tbp->interleave_a, type4, type3);<br><br><br><br>_______________________________________________<br>tetra mailing list<br><a ymailto="mailto:tetra@lists.osmocom.org" href="mailto:tetra@lists.osmocom.org">tetra@lists.osmocom.org</a><br><a href="https://lists.osmocom.org/mailman/listinfo/tetra"
 target="_blank">https://lists.osmocom.org/mailman/listinfo/tetra</a><br><br><br></div></div></div></body></html>