Re: USB communication

2020-10-04 Thread Marcus D. Leech

On 10/04/2020 01:06 PM, David Winter wrote:

Hey,

in case you were referring to the "Universal Serial Bus":

The short answer: As far as I know, there is no _direct_ way of using "USB 
communication in gnuradio".
Just as there is no direct way of, I dunno, manipulating the wires in a 
SCSI or SATA or DRAM bus from

  within Gnu Radio.  Because:

(A) It's not really relevant to what Gnu Radio does
(B) There's no system interface that would allow you to do it, and doing 
it would be dicey-as-fark.






Re: USB communication

2020-10-04 Thread David Winter
Hey,

in case you were referring to the "Universal Serial Bus":

The short answer: As far as I know, there is no _direct_ way of using "USB 
communication in gnuradio".

The long answer: Using  "USB communication" might not be what you think it is, 
and there are
good reasons why GNURadio might not want to implement a "generic usb interface 
block" of some sort:

The USB protocol is rather complicated, and goes far beyond just serially 
moving data down single pipe, like what
you'd get with simpler interfaces like UART. USB supports many different 
transfer modes, each with
different latency, throughput and reliability guarantees on possibly many 
"pipes" in parallel. Oh, and interface
configurations can change at runtime. Trying to support all this in a block 
would probably result in a huge mess.
See the excellent "USB in a NutShell" [0] for more information on the USB 
protocol.

Additionally, supporting application protocols directly in GNURadio would be 
yet another mess, because
who knows what information an SDR and its driver on your host are actually 
exchanging - keep in mind that
your host has to communicate some kind of control information with your device. 
If you're lucky, that's
just a separate endpoint, but it could also be embedded in your sample stream 
...

That's why we leave USB communications to the vendor of an SDR (e.g. libuhd), 
and then just
build a block that interfaces with that driver lib. Obviously you could also 
use libusb to interface with
a USB device in an OOT module block, but that's the closest that you'll get to 
USB in GNURadio.

[0] https://www.beyondlogic.org/usbnutshell/usb1.shtml

--

Datum: Sonntag, 4. Oktober 2020 um 17:12
An: 
Betreff: USB communication

Simple question: How do I use USB communication in gnuradio?
 
I can’t find any blocks that implement USB. I can’t find any reference to USB. 
I can’t find any discussion about USB on forums.
 
There must be a way to implement one of the most common means of communication 
in the computer world. 
 
What am I missing?
 
Thanks.





Re: USB communication

2020-10-04 Thread Fons Adriaensen
On Sun, Oct 04, 2020 at 11:11:33AM -0400, Elmore's wrote:

> Simple question: How do I use USB communication in gnuradio?
> I can’t find any blocks that implement USB. I can’t find any reference to USB.
> I can’t find any discussion about USB on forums.
> There must be a way to implement one of the most common means of
> communication in the computer world.
 
> What am I missing?

A basic understanding of what USB actually is.

The low level USB protocol is never used by applications.

It is used by people who write drivers for a particular USB device,
or for standard classes of USB devices like serial ports, keyboards,
sound cards, external disks, etc. The latter are actually part of
the operating system.

Applications only interface to the driver layer, not to the USB
hardware directly. For example if an app wants to send or receive
data on a serial interface, it will use e.g. COM1 (on Windows) or
/dev/ttyS1 (on Linux). The app doesn't even know nor need to know
if this is a USB device or not. Same for all other USB devices.

Ciao,

-- 
FA




Re: USB communication

2020-10-04 Thread David Hagood

On 10/4/20 11:26 AM, Barry Duggan wrote:
> Hi,
>
> Yes, there are blocks to implement SSB transmit and receive using
> either the phasing method or filters.


I don't thing OP was referring to Upper Side Band...


> There must be a way to implement one of the most common means of
> communication in the computer world.
>
Upper Side Band isn't used in the computer world, but Universal Serial
Bus is.


OP: GnuRadio wouldn't have blocks for Universal Serial Bus, as it
focuses on radio work. If you are indeed talking about Universal Serial
Bus, you would need to go down to either the libusb level, or down to
the kernel level.


If you are indeed talking about Upper Side Band modulation, then please
accept my apologies for misunderstanding you.





signature.asc
Description: OpenPGP digital signature


Re: USB communication

2020-10-04 Thread Barry Duggan

Hi,

Yes, there are blocks to implement SSB transmit and receive using either 
the phasing method or filters. One of the next things on my list is to 
write a simulation example for SSB similar to 
https://wiki.gnuradio.org/index.php/Simulation_example:_AM_transmitter_and_receiver


73,
---
Barry Duggan KV4FV
https://github.com/duggabe

On Sun, 4 Oct 2020 11:11:33 -0400, "Elmore's" wrote:

Simple question: How do I use USB communication in gnuradio?

I can’t find any blocks that implement USB. I can’t find any reference 
to USB. I can’t find any discussion about USB on forums.


There must be a way to implement one of the most common means of 
communication in the computer world.


What am I missing?

Thanks.



USB communication

2020-10-04 Thread Elmore's
Simple question: How do I use USB communication in gnuradio?

I can’t find any blocks that implement USB. I can’t find any reference to USB. 
I can’t find any discussion about USB on forums.

There must be a way to implement one of the most common means of communication 
in the computer world.

What am I missing?

Thanks.


--
This email has been checked for viruses by AVG.
https://www.avg.com


Re: How to plot BER vs SNR in GNU Radio

2020-10-04 Thread farhan pishe
Thank you for your reply.

That is not the point! Because the BER should decrease by increasing the
SNR value for any modulation scheme, but it doesn't happen (even by
omitting the CRC).

Regards,
Farhan

On Sun, Oct 4, 2020 at 4:27 PM Tim Huggins 
wrote:

> The OFDM simulations as written in the examples contain CRCs. I’ve
> tinkered with the OFDM examples a bit lately and while I may be completely
> mistaken I. believe the examples as written will only pass data that passes
> CRC so you may not actually ever see but errors.
>
> Tim
>
> On Oct 3, 2020, at 9:57 AM, farhan pishe  wrote:
>
> 
> Barry, thank you so much for your time, but unfortunately, it wasn't
> helpful for me and still, I am seeking a way to plot the BER vs SNR. I
> don't know what is wrong with GNU Radio! Even it doesn't have complete
> documentation so that I can understand how to do things like this. I hope
> that someone guides me in a clear way. I want to plot a BER vs SNR for the
> OFDM simulation which already exists as one of the examples of GNU Radio,
> but it gives me constant line.
>
> On Tue, Sep 29, 2020 at 3:50 PM Barry Duggan  wrote:
>
>> Farhan,
>>
>> I don't know much about BER curves, but this example may help you some:
>>
>> https://github.com/gnuradio/gnuradio/blob/master/gr-fec/examples/ber_curve_gen.grc
>>
>> Also search the archives of this newsletter. IIRC, there is a discussion
>> about the bus inputs.
>>
>> Remember to CC discuss-gnuradio in your reply. I forgot on the first
>> time for this!
>>
>> ---
>> Barry Duggan KV4FV
>> https://github.com/duggabe
>>
>> On Tue, 29 Sep 2020 00:00:51 +0330, farhan pishe wrote:
>>
>> Hello,
>>
>> I am trying to plot the BER vs Es/N0 using QT Bercurve Sink which has 16
>> inputs. But the result is always a constant line and I don't know the
>> reason and it is blowing my mind. Also, I don't know whether there is an
>> alternative way to plot BER vs SNR. I would really appreciate it if
>> anyone could help me in this regard. I just want to plot a simple bit
>> error rate curve.
>>
>> Regards,
>> Farhan
>>
>