Dear all Moreover,
as I mentioned before no data is transmitted in the following case 1- $ mkfifo in 2-: $ cat > in 3- gnuradio : file source (in) --> stream to tagged stream --> throttle --> tagged stream to pdu --> message debug till I press ctrl c, where in file source repeat in no. if repeat is yes then I have the following error [/build/gnuradio-BBYmSv/gnuradio-3.7.11/gr-blocks/lib/file_source_impl.cc] fseek failed can anyone inform me what is the problem? Best regards On Tue, Oct 8, 2019 at 8:00 AM ali mokdad <aa.mokdad...@gmail.com> wrote: > Dear > > thx for your reply > > even by using stdbuf the problem remains the same > $ stdbuf -i 0 -o 0 cat > in > > I think the problem must be solved from gnuradio because if I run two > terminals in > first terminal: $ cat > in > second terminal: $ cat in > then whatever I write in the first terminal is sent to the second terminal > after pressing enter. > > while > if instead of the second terminal I used gnuradio with the following > flowgraph > in gnuradio : file source (in) --> stream to tagged stream --> throttle > --> > tagged stream to pdu --> message debug > > the data are not sent till I press ctrl c. > > thanks again for your help, but my problem is not solved if there is any > one can help me > > Best regards > > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> > Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> > <#m_6056736687892377648_m_1211741247935538308_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > On Mon, Oct 7, 2019 at 7:06 PM <discuss-gnuradio-requ...@gnu.org> wrote: > >> Send Discuss-gnuradio mailing list submissions to >> discuss-gnuradio@gnu.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> or, via email, send a message with subject or body 'help' to >> discuss-gnuradio-requ...@gnu.org >> >> You can reach the person managing the list at >> discuss-gnuradio-ow...@gnu.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Discuss-gnuradio digest..." >> >> >> Today's Topics: >> >> 1. fifo / file source (ali mokdad) >> 2. Re: fifo / file source (Müller) >> 3. Re: fifo / file source (ali mokdad) >> 4. Re: fifo / file source (N. Benes) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Mon, 7 Oct 2019 13:41:47 +0300 >> From: ali mokdad <aa.mokdad...@gmail.com> >> To: discuss-gnuradio@gnu.org >> Subject: [Discuss-gnuradio] fifo / file source >> Message-ID: >> < >> cacn2bhndhnwhkddjfojnm1pgps+nrhdudm7zyeaa6abptke...@mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Dear all >> >> I tested the following >> >> 1- in terminal, I created a fifo file by: mkfifo in >> 2- in terminal, I run: cat > in >> 3- in gnuradio i run : file source (in) --> stream to tagged stream --> >> tagged stream to pdu --> message debug >> 4- in terminal, I write and press enter nothing is sent, only if I press >> ctrl c the all the data written in the terminal are sent to the message >> debug. >> >> How can I solve this problem? >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20191007/c17ad733/attachment.html >> > >> >> ------------------------------ >> >> Message: 2 >> Date: Mon, 7 Oct 2019 11:11:52 +0000 >> From: Müller, Marcus (CEL) <muel...@kit.edu> >> To: "discuss-gnuradio@gnu.org" <discuss-gnuradio@gnu.org>, >> "aa.mokdad...@gmail.com" <aa.mokdad...@gmail.com> >> Subject: Re: [Discuss-gnuradio] fifo / file source >> Message-ID: <5878b0c98107f9bf6ef01c5853d135ab80888ef5.ca...@kit.edu> >> Content-Type: text/plain; charset="utf-8" >> >> Hi Ali, >> >> it's not quite certain which program you run in that terminal, but: >> File I/O is usually buffered, and this sounds like the data is never >> written to your FIFO before you exit your terminal program. >> >> Solution: Use a terminal program that doesn't buffer or flushes >> regularly. >> >> Best regards, >> Marcus >> >> On Mon, 2019-10-07 at 13:41 +0300, ali mokdad wrote: >> > Dear all >> > >> > I tested the following >> > >> > 1- in terminal, I created a fifo file by: mkfifo in >> > 2- in terminal, I run: cat > in >> > 3- in gnuradio i run : file source (in) --> stream to tagged stream >> --> tagged stream to pdu --> message debug >> > 4- in terminal, I write and press enter nothing is sent, only if I >> press ctrl c the all the data written in the terminal are sent to the >> message debug. >> > >> > How can I solve this problem? >> > >> > >> > >> > _______________________________________________ >> > Discuss-gnuradio mailing list >> > Discuss-gnuradio@gnu.org >> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: smime.p7s >> Type: application/x-pkcs7-signature >> Size: 6582 bytes >> Desc: not available >> URL: < >> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20191007/5f1b0f0b/attachment.bin >> > >> >> ------------------------------ >> >> Message: 3 >> Date: Mon, 7 Oct 2019 14:34:49 +0300 >> From: ali mokdad <aa.mokdad...@gmail.com> >> To: Müller, Marcus (CEL) <muel...@kit.edu>, discuss-gnuradio@gnu.org >> Subject: Re: [Discuss-gnuradio] fifo / file source >> Message-ID: >> <CACn2bH= >> 4ejotfeztrft+prmezezlew0kwh8-rdigy3ou83k...@mail.gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Thx for your reply >> >> "it's not quite certain which program you run in that terminal" >> I just wrote cat > in >> even I run a .c file in the .c file I opened a file and the data are not >> sent only when I close the file. >> do you know a special program I can test? >> >> >> On Mon, Oct 7, 2019 at 2:11 PM Müller, Marcus (CEL) <muel...@kit.edu> >> wrote: >> >> > Hi Ali, >> > >> > it's not quite certain which program you run in that terminal, but: >> > File I/O is usually buffered, and this sounds like the data is never >> > written to your FIFO before you exit your terminal program. >> > >> > Solution: Use a terminal program that doesn't buffer or flushes >> > regularly. >> > >> > Best regards, >> > Marcus >> > >> > On Mon, 2019-10-07 at 13:41 +0300, ali mokdad wrote: >> > > Dear all >> > > >> > > I tested the following >> > > >> > > 1- in terminal, I created a fifo file by: mkfifo in >> > > 2- in terminal, I run: cat > in >> > > 3- in gnuradio i run : file source (in) --> stream to tagged stream >> --> >> > tagged stream to pdu --> message debug >> > > 4- in terminal, I write and press enter nothing is sent, only if I >> press >> > ctrl c the all the data written in the terminal are sent to the message >> > debug. >> > > >> > > How can I solve this problem? >> > > >> > > >> > > >> > > _______________________________________________ >> > > Discuss-gnuradio mailing list >> > > Discuss-gnuradio@gnu.org >> > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> https://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20191007/52fa06fc/attachment.html >> > >> >> ------------------------------ >> >> Message: 4 >> Date: Mon, 07 Oct 2019 13:18:00 +0000 >> From: "N. Benes" <nbe...@eso.org> >> To: discuss-gnuradio@gnu.org >> Subject: Re: [Discuss-gnuradio] fifo / file source >> Message-ID: <ec024940-c0ad-7cc4-0636-179b61ba5...@eso.org> >> Content-Type: text/plain; charset=utf-8 >> >> ali mokdad: >> > do you know a special program I can test? >> >> "stdbuf" could be of help here. But beware that the input stream into >> "cat" may still be (line) buffered because of bash. >> >> Example: >> $ stdbuf -i 0 -o 0 cat > in >> >> Cheers! >> >> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> Discuss-gnuradio@gnu.org >> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> >> >> ------------------------------ >> >> End of Discuss-gnuradio Digest, Vol 204, Issue 6 >> ************************************************ >> > > > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> > Virus-free. > www.avast.com > <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> > <#m_6056736687892377648_m_1211741247935538308_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio