discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] PACKET FORMAT "error"


From: zzw.1012
Subject: [Discuss-gnuradio] PACKET FORMAT "error"
Date: Mon, 10 May 2010 11:28:15 +0800 (CST)

Hi,
    I'm studying benchmark_tx.py now. I find that the packet size is not right (at least I'd like to think so) in the process of making packet, which can be seen in pkt.py and packet_utils.py. In the packet consist of 2 bytes packed_preamble, 8 bytes packed_access_code, 4 bytes header, 4 bytes outband_crc with default 1500 bytes size, padding bytes and endbyte"\x55" . I use default gmsk modulatiom. So, the packet have 2 + 8 + 4 + 1504 + 1 + 1 = 1520bytes.
    However, in the function of _npadding_bytes(pkt_bytes_len, samples_per_symbol, bits_per_symbol) , there have such description: "generate sufficient padding such that each packet ultimately ends up being a multiple of 512 bytes when sent across the USB, we send 4-byte samples across the USB (16-bit I and 16-bit Q), thus we want to pad so that after modulation the resulting packet is a multiple of 128 samples". Also , in the function "int usrp_basic_tx::write(const void *buf, int len, bool *underrun)"in the usrp_basic.cc,  there have similar code like "if (len < 0 || (len % 512) != 0){fprintf(stderr, "usrp_basic_tx::write: invalid length =  %d\n", len}".
    they both tell me that the data across the USB must be a multiple of 512 bytes .but in the example of benchmark_tx.py, the packet size is 1520 bytes.  what's wrong ?
Can anybody account for me?  thank you!
best wishes


address@hidden 写道: >Send Discuss-gnuradio mailing list submissions to > address@hidden > >To subscribe or unsubscribe via the World Wide Web, visit > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >or, via email, send a message with subject or body 'help' to > address@hidden > >You can reach the person managing the list at > address@hidden > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Discuss-gnuradio digest..." > > >Today's Topics: > >   1. perform installation by source code got from git (Arturo Rinaldi) >   2. How to install GnuRadio Notes: (William Pretty Security Inc) >   3. Re: How to install GnuRadio Notes: (Tom Rondeau) >   4. Re: perform installation by source code got from  git >      (andrea montefusco) >   5. Trouble in x86_64 land? (Marcus D. Leech) >   6. Really low sample rates for gr_sig_source_x() (Marcus D. Leech) >   7. Fedora 12 install (Patrik Tast) >   8. Ubuntu 10.04 heads up. (William Pretty Security Inc) >   9. Re: Fedora 12 install (Marcus D. Leech) >  10. Which version of UHD firmware should I be using? (Charles Brain) >  11. Re: Which version of UHD firmware should I be  using? (Tim Pearce) >  12. Re: How to install GnuRadio Notes: (Arturo Rinaldi) >  13. Re: Ubuntu 10.04 heads up. (Alexandru Csete) >  14. Re: Which version of UHD firmware should I be using? (Josh Blum) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Sat, 08 May 2010 21:47:44 +0200 >From: Arturo Rinaldi <address@hidden> >Subject: [Discuss-gnuradio] perform installation by source code got > from git >To: address@hidden >Message-ID: <address@hidden> >Content-Type: text/plain; charset=ISO-8859-15; format=flowed > >I tried to perform an installation of gnuradio from the source code got  >from git on ubuntu 10.04. So my steps are : > >./bootstrap >./configure >./make >./sudo make install > >all the processes are fine without problems, however i want to install  >gnuradio in the path: > >/usr/lib... > >not in > >/usr/local/lib..... > >Which is the file to edit to make  my desired path work in the gnuradio  >install ? Is it the "configure" or the "makefile" or both ? > >thx in advance, Arturo. > > > > > >------------------------------ > >Message: 2 >Date: Sat, 8 May 2010 16:36:31 -0700 >From: "William Pretty Security Inc" <address@hidden> >Subject: [Discuss-gnuradio] How to install GnuRadio Notes: >To: <address@hidden> >Message-ID: <address@hidden@xplornet.com> >Content-Type: text/plain; charset="us-ascii" > >Skipped content of type multipart/alternative-------------- next part -------------- >A non-text attachment was scrubbed... >Name: Installing  GNURadio From GIT Ubuntu910.odt >Type: application/vnd.oasis.opendocument.text >Size: 13311 bytes >Desc: not available >Url : http://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20100508/d002aa02/InstallingGNURadioFromGITUbuntu910.bin > >------------------------------ > >Message: 3 >Date: Sat, 8 May 2010 16:53:58 -0400 >From: Tom Rondeau <address@hidden> >Subject: Re: [Discuss-gnuradio] How to install GnuRadio Notes: >To: William Pretty Security Inc <address@hidden> >Cc: address@hidden >Message-ID: > <address@hidden> >Content-Type: text/plain; charset=windows-1252 > >On Sat, May 8, 2010 at 7:36 PM, William Pretty Security Inc ><address@hidden> wrote: >> Everyone on the list has been REALLY helpful, so here is my contribution to >> the list. >> >> While I was installing Gnuradio on Ubuntu 9.10, I took careful notes of >> everything I did. >> >> This should be complete instructions. Starting from scratch, with a new >> install of Ubuntu. >> >> Much of this document is cut and pasted from the wiki. What I have done is >> save you the trouble >> >> of searching all over for the information that you need. >> >> Hopefully this will be of help to the non-Linux Guru’s on the list. >> >> Hopefully someone will edit and add to this document to make it even better >> … >> >> Bill > >Hi Bill, > >I'm really glad you're having success with GNU Radio and you're >willingness and efforts to contribute back! > >I am curious, however, what issues you found that were not part of the >installation instructions for Ubuntu found on the GNU Radio website >(http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall)? > >If there were things that you had to do that aren't mentioned on the >website, we can make changes there, too. > >Thanks, >Tom > > > > >------------------------------ > >Message: 4 >Date: Sat, 8 May 2010 23:04:23 +0200 >From: andrea montefusco <address@hidden> >Subject: Re: [Discuss-gnuradio] perform installation by source code > got from  git >To: Arturo Rinaldi <address@hidden> >Cc: address@hidden >Message-ID: > <address@hidden> >Content-Type: text/plain; charset=ISO-8859-1 > >By default, make install will install all the files in /usr/local/bin, >/usr/local/lib,  etc. > >You can specify an installation prefix other than /usr/local using >--prefix option of configure script, for instance > >./configure --prefix=/opt > >   *am* > >--  >Andrea Montefusco IW0HDV > > > > >------------------------------ > >Message: 5 >Date: Sat, 08 May 2010 18:09:37 -0400 >From: "Marcus D. Leech" <address@hidden> >Subject: [Discuss-gnuradio] Trouble in x86_64 land? >To: GNURadio Discussion List <address@hidden> >Message-ID: <address@hidden> >Content-Type: text/plain; charset=ISO-8859-1 > >I have a recent (couple of days old) GIT of Gnu Radio, installed on an >x86_64 Quad-core QX9770. > >I have F12 installed on this, with all the updates applied. > >Any application that uses the wxGui sinks, using "gl" rendering, dumpeth >the core, without even bringing >  a window up.  Changing the rendering to "nongl" fixes the problem, but >gosh, the nongl stuff is ugly, >  and doesn't have as many working features as the "gl" stuff. > >Has anyone else seen this issue?    Anything that uses a "gl" "scope" >type window seems to fail: > >    o usrp_fft.py >    o usrp_oscope.py >    o audio_fft.py > >Etc. > > >Same GIT image on a matching F12 system in i686 (32-bit) works just fine. > >Anyone seen this? > >--  >Marcus Leech >Principal Investigator >Shirleys Bay Radio Astronomy Consortium >http://www.sbrac.org > > > > > > >------------------------------ > >Message: 6 >Date: Sat, 08 May 2010 18:13:15 -0400 >From: "Marcus D. Leech" <address@hidden> >Subject: [Discuss-gnuradio] Really low sample rates for > gr_sig_source_x() >To: GNURadio Discussion List <address@hidden> >Message-ID: <address@hidden> >Content-Type: text/plain; charset=ISO-8859-1 > >It looks like when you set low sample rates (say below 1KHz), the NCO >code doesn't seem to work right, >  *never* putting out samples. > >I haven't done exhaustive testing. > >This was prompted by Bill Pretty's issue with his flow-graph that uses a >triangle or sawtooth generator, >  at low sample rates (2Hz) and low Fc (a fraction of a Hz) to drive the >tuning variable going back into >  the USRP. > >I tested the graph he gave, and after making a few fixes, observed that >the signal source appeared to be >  never producing any output.  Hmmmm. > >So, I did up my own flow-graph, consisting of a signal source, a >throttle, and a number sink and scope. >  It only started to work when I cranked the sample rate up to about >1KHz on the signal source. > >Any ideas? > >--  >Marcus Leech >Principal Investigator >Shirleys Bay Radio Astronomy Consortium >http://www.sbrac.org > > > > > > >------------------------------ > >Message: 7 >Date: Sun, 9 May 2010 00:28:19 +0300 >From: "Patrik Tast" <address@hidden> >Subject: [Discuss-gnuradio] Fedora 12 install >To: <address@hidden> >Message-ID: <address@hidden> >Content-Type: text/plain; charset="iso-8859-1" > >Hi All, > >I just reformatted and installed Fedora 12 and did yum update, an hour later, got GnuRadio from git. >The only problem I run into was libboost. By doing yum install boost boost-devel all was sorted out in a few minutes and GnuRadio connection to USRP workin' >At the moment my boost is 3.9 (and then some) > >NOTICE: I did not have to fiddle with any paths at this point. > >The README is very helpful in the gnuradio folder > >Perhaps for GnuRadio fedora users in the wiki, yum install boost boost-devel could be added? > >Regrads, >Patrik >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20100509/966550dc/attachment.html > >------------------------------ > >Message: 8 >Date: Sat, 8 May 2010 19:28:24 -0700 >From: "William Pretty Security Inc" <address@hidden> >Subject: [Discuss-gnuradio] Ubuntu 10.04 heads up. >To: <address@hidden> >Message-ID: <address@hidden@xplornet.com> >Content-Type: text/plain; charset="us-ascii" > >If you are like me, and are running Ubuntu 9.10, you will get a message from >update manager asking if you want to upgrade to 10.04 > >Unless you own shares in a company that sells RAM, I suggest you pass on the >upgrade L > >  > >My test machine ran 9.10 perfectly. I installed 10.04 from a live disk, and >had to open the swap file to start Firefox !! > >If you want more info on my test system let me know. (Toshiba Satellite A70) > >  > >Bill > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20100508/34ba42b2/attachment.html > >------------------------------ > >Message: 9 >Date: Sat, 08 May 2010 20:05:24 -0400 >From: "Marcus D. Leech" <address@hidden> >Subject: Re: [Discuss-gnuradio] Fedora 12 install >To: Patrik Tast <address@hidden>, GNURadio Discussion List > <address@hidden> >Message-ID: <address@hidden> >Content-Type: text/plain; charset="iso-8859-1" > >On 05/08/2010 05:28 PM, Patrik Tast wrote: >> Hi All, >>   >> I just reformatted and installed Fedora 12 and did yum update, an hour >> later, got GnuRadio from git. >> The only problem I run into was libboost. By doing yum install boost >> boost-devel all was sorted out in a few minutes and GnuRadio >> connection to USRP workin' >> At the moment my boost is 3.9 (and then some) >>   >> NOTICE: I did not have to fiddle with any paths at this point. >>   >> The README is very helpful in the gnuradio folder >>   >> Perhaps for GnuRadio fedora users in the wiki, yum install boost >> boost-devel could be added? >>   >> Regrads, >> Patrik >>   >>    > >If you follow the instructions here, you should be able to do a >"./bootstrap; ./configure; make" afterwards > >http://gnuradio.org/redmine/wiki/gnuradio/FedoraInstall > > >There is one typo in those instructions:  > >yum install PyQT <http://gnuradio.org/redmine/wiki/gnuradio/PyQT>4-devel qwt-devel qwtplot3d-qt4-devel > >*should be:* > >yum install PyQt <http://gnuradio.org/redmine/wiki/gnuradio/PyQT>4-devel qwt-devel qwtplot3d-qt4-devel > >(Note the capitalization for PyQt4) > > > > >--  >Marcus Leech >Principal Investigator >Shirleys Bay Radio Astronomy Consortium >http://www.sbrac.org > >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20100508/273c78f6/attachment.html > >------------------------------ > >Message: 10 >Date: Sun, 9 May 2010 08:40:46 +0100 >From: "Charles Brain" <address@hidden> >Subject: [Discuss-gnuradio] Which version of UHD firmware should I be > using? >To: <address@hidden> >Message-ID: <address@hidden> >Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > >Hello, > >I am a bit confused, there seems to be two versions of the UHD firmware >a "Raw Ethernet version" and a "UDP version". I am about to try and move my  >USRP2 application to UHD and I was wondering which version I should be >using? I have a USRP2 and a WBX board.  > >- Charles > >http://www.g4guo.blogspot.com/ > > > > >------------------------------ > >Message: 11 >Date: Sun, 9 May 2010 12:03:13 +0100 >From: Tim Pearce <address@hidden> >Subject: Re: [Discuss-gnuradio] Which version of UHD firmware should I > be  using? >To: Charles Brain <address@hidden> >Cc: address@hidden >Message-ID: > <address@hidden> >Content-Type: text/plain; charset="iso-8859-1" > >Charles, > >If your looking to move applications to the long term solution you probably >want : UHD with UDP > >"Raw ethernet version" is what was used on previous FPGA images/firmware - >the USRP2 had to be connected directly to the PC and didnt have an IP etc. > >"UDP" implements more layers of a network protocol (Including IP) allowing >the USRP2 to be used behind various networking gear. I believe it also means >windows support is possible (not sure if this has been tried yet?) > >The caveat is that as UDP is new that part of the code is also in beta. > >Cheers, > >Tim > >On Sun, May 9, 2010 at 8:40 AM, Charles Brain <address@hidden>wrote: > >> Hello, >> >> I am a bit confused, there seems to be two versions of the UHD firmware >> a "Raw Ethernet version" and a "UDP version". I am about to try and move my >> USRP2 application to UHD and I was wondering which version I should be >> using? I have a USRP2 and a WBX board. >> - Charles >> >> http://www.g4guo.blogspot.com/ >> >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> address@hidden >> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20100509/d450ef48/attachment.html > >------------------------------ > >Message: 12 >Date: Sun, 09 May 2010 17:14:16 +0200 >From: Arturo Rinaldi <address@hidden> >Subject: Re: [Discuss-gnuradio] How to install GnuRadio Notes: >To: address@hidden >Message-ID: <address@hidden> >Content-Type: text/plain; charset="iso-8859-1" > >Il 09/05/2010 01:36, William Pretty Security Inc ha scritto: >> >> Everyone on the list has been REALLY helpful, so here is my  >> contribution to the list. >> >> While I was installing Gnuradio on Ubuntu 9.10, I took careful notes  >> of everything I did. >> >> This should be complete instructions. Starting from scratch, with a  >> new install of Ubuntu. >> >> Much of this document is cut and pasted from the wiki. What I have  >> done is save you the trouble >> >> of searching all over for the information that you need. >> >> Hopefully this will be of help to the non-Linux Guru's on the list. >> >> Hopefully someone will edit and add to this document to make it even  >> better ... >> >> Bill >> >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> address@hidden >> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio >>     >worked perfectly also on ubuntu 10.04. Obviously the requisites are the  >ones for Lucid ;). I'd also like to add a suggestion. Install *checkinstall* > >*sudo apt-get install checkinstall* > >and at the end run > >*sudo checkinstall* > >instead of > >*sudo make install* > >a deb package will be created to uninstall it easily if desired ;) >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.gnu.org/archive/html/discuss-gnuradio/attachments/20100509/e0f922e1/attachment.html > >------------------------------ > >Message: 13 >Date: Sun, 9 May 2010 17:15:56 +0200 >From: Alexandru Csete <address@hidden> >Subject: Re: [Discuss-gnuradio] Ubuntu 10.04 heads up. >To: address@hidden >Message-ID: > <address@hidden> >Content-Type: text/plain; charset=ISO-8859-1 > >Hi Bill, > >Sorry to hear you have this problem but you should not consider this >normal for Ubuntu 10.04. >I have already upgraded 4 computers to 10.04 and none of them showed >such behavior. My latest upgrade was an old laptop with only 512MB of >ram. After login 123 MB is used. If I then start firefox and load a >page memory consumption goes up to 154 MB (but this would also depend >what kind of page). > >I suggest you try the Ubuntu forums and bug tracker to see if others >had similar problems. > >Alex > >On 9 May 2010 04:28, William Pretty Security Inc ><address@hidden> wrote: >> If you are like me, and are running Ubuntu 9.10, you will get a message from >> update manager asking if you want to upgrade to 10.04 >> >> Unless you own shares in a company that sells RAM, I suggest you pass on the >> upgrade L >> >> My test machine ran 9.10 perfectly. I installed 10.04 from a live disk, and >> had to open the swap file to start Firefox !! >> >> If you want more info on my test system let me know. (Toshiba Satellite A70) >> >> Bill >> > > > > >------------------------------ > >Message: 14 >Date: Sun, 09 May 2010 08:52:22 -0700 >From: Josh Blum <address@hidden> >Subject: Re: [Discuss-gnuradio] Which version of UHD firmware should I > be using? >To: address@hidden >Message-ID: <address@hidden> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >I should have added some notes when I put up the download link. > >For FPGA, get the UDP FPGA image. >For firmware, get the UHD image (there is only one). > > >-Josh > >On 05/09/2010 12:40 AM, Charles Brain wrote: >> Hello, >> >> I am a bit confused, there seems to be two versions of the UHD firmware >> a "Raw Ethernet version" and a "UDP version". I am about to try and move >> my USRP2 application to UHD and I was wondering which version I should be >> using? I have a USRP2 and a WBX board. >> - Charles >> >> http://www.g4guo.blogspot.com/ >> >> >> _______________________________________________ >> Discuss-gnuradio mailing list >> address@hidden >> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > > > >------------------------------ > >_______________________________________________ >Discuss-gnuradio mailing list >address@hidden >http://lists.gnu.org/mailman/listinfo/discuss-gnuradio > > >End of Discuss-gnuradio Digest, Vol 90, Issue 9 >***********************************************



网易为中小企业免费提供企业邮箱(自主域名)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]