USRP2 Overflow problem - gnuradio

I am trying to capture the wlan samples from gnuradio-companion. I have configured the USRP Soource with the following :
Ch0 Gain = 50dB
device addr : 192.168.10.3
Center Frequency : 2.437GHz
Sample Rate : 11M
But , when I execute the model, I receive the Overflow message at the console. Any hints whether the configuration is proper for collecting the samples ?
Here is the attached model:

An 'overflow' indicates that your computer is receiving data faster than it is capable of processing it.
I realize this is an old question, but for anyone else that looks at this question hoping to find something useful, remember that your computer must process the samples. Here, you are dumping the samples into two graphical sinks, and also writing to your hard disk at 11 MSps (11e6 * 32bits = 352 MBits / sec).
If you are on a machine that can't keep up with that, the overflows would be expected!

You do not state if you run as root or not, but for me running as root solved the problem for me. Running as root gives you more privelegies and so you can use more features of the processor.

Related

Existing data in Peers is not getting synced

I tried setting up the gun.js server code in two machines and set up up 2 browser clients in each machine which contains code for registering both the machines as peers.The server code for both machines has put statements for 2 different nodes
Scneario 1
Started both servers:Existing Data not syncing
Scenario 2
Statred both Servers and both Clients:Existing Data not syncing
Scenario 3
Put a new data item(distinct) from each browser console.The newly put data gets synced in both machines.
Please guide in resolving this issue.
Thanks
FirstTry
#FirstTrial I did not downvote the question (I am not sure why or who did).
I'm not able to replicate the issue from your explanation, here is a way that can test what is going on:
https://github.com/gundb/panic-server
We created a distributed testing tool to simulate failures and stress test the system.
Here is an extremely well documented example in less than 300 lines: https://github.com/amark/gun/blob/master/test/panic/load.js
There is a very similar PANIC test to what you describe, and it passes OK without any errors, you can check it out here: https://github.com/amark/gun/blob/master/test/panic/b2s2s2b.js
Let me know!

Flow Monitor Result is not showing in ns3 simulation

Currently i m using ns-3.19 for my simulation
I have code of PMIPV6. It is running on my friend system perfectly and showing me Flow Monitor output on the terminal. But when i m running on my system code is running perfectly fine but it is not showing me output of Flow Monitor just like it is showing me on my friend's system. Please help me what i have to do to see the output.
Code file is attached.
Note: Both systems are using same version of ns and ubuntu. Even files are also same. Output of my friend system
Code i have here it is https://drive.google.com/file/d/1LEMfjUXLj4r7W3wLTBsc99PfyAtouEVX/view?usp=sharing
Try to use it in NS-3.20. It may be a compatibility with NS-3 version.
Follow the below link for more information. Thank you.
https://www.nsnam.org/doxygen/

Error running NI-DAQmx ANSI C example in Windows 7 virtual machine

I am running a Windows 7 guest system with an Ubuntu 14 host, using VirtualBox, and have run into a problem running even the simplest examples provided by National Instruments, using the ANSI C API for NI-DAQmx.
The first time the DAQ Device is powered on, I can run a single measurement, and after that, any other measurement displays the following error message:
Attempted to read samples that are no longer available.
The requested sample was previously available, but has since been overwritten.
Increasing the buffer size, reading the data more frequently, or specifying
a fixed number of samples to read instead of reading all available samples
might correct the problem.
Property: DAQmx_Read_RelativeTo
Corresponding Value: DAQmx_Val_CurrReadPos
Property: DAQmx_Read_Offset
Corresponding Value: 0
Task Name: _unamedTask(0)
Status Code: -200279
In order to be able to start a new measurement, I have to restart the DAQ device, probably in order to clear any internal buffers that are being overridden.
I am interested in running a basic continuous voltage measurement using a callback function. (The ContAcq_IntClk example provided by NI)
The exact same configuration, same version of NI-DAQmx(9.7.5), and running on Visual Studio 2012, runs smoothly on a machine running Windows 7 directly.
I suspect the problem is with the internal buffer being somehow messed up because of the connection with the Virtual Machine, but can't figure out an elegant solution to fix it.
The device I am using is NI USB-6289.
FIXED:
VirtualBox seems to have compatibility issues with NI USB devices. It appears to work, but it's unpredictable.
VMWare works much better. Switched to VMWare Player and now works flawless.

Reading /dev/ttyUSB0 gives corrupted data

I'm trying to read on /dev/ttyUSB0 but I'm receiving corrupted data, I already tried cat, dd and libusb bindings for Node.js, all have the same result.
The device attached to that USB port sends a constant flow of data and I think that the OS might be the problem.
I'm using the data flow to build charts. I can see that corrupted data in the charts as a regular and sequential errors.
I'm using Raspbian, is there anything that I can do to tell the OS to execute just my program and nothing more?
I presume you have verified the port is configured to the correct baud/ flow/ etc settings?
stty -F /dev/ttyUSB0 -a
The solution we pick is to use libusb instead. Yes it involves developing user land applications to cope with. We also see some issues with /dev/ttyUSBx. The driver path is too long, it involves too many individual drivers, any problem in any of those drivers would cause a problem.
I had a very similar problem and neither minicom nor kermit worked and I'm almost sure that it was because of non printable chars.
Using pyserial in python everything worked like a charm.
It's extremely easy to use. As an example:
ser = serial.Serial('/dev/ttyUSB0', 9600, timeout=1)
x= ser.read() # read one byte
s = ser.read(10) # read up to ten bytes (timeout)
line = ser.readline() # read a '\n' terminated line
ser.close()
You can find more examples on the documentation.

Ubuntu + PBS + Apache? How can I show a list of running jobs as a website?

Is there a plugin/package to display status information for a PBS queue? I am currently running an apache webserver on the login-node of my PBS cluster. I would like to display status info and have the ability to perform minimal queries without writing it from scratch (or modifying an age old python script, ala jobmonarch). Note, the accepted/bountied solution must work with Ubuntu.
Update: In addition to ganglia as noted below, I also looked that the Rocks Cluster Toolkit, but I firmly want to stay with Ubuntu. So I've updated the question to reflect that.
Update 2: I've also looked at PBSWeb as well as MyPBS neither one appears to suit my needs. The first is too out-of-date with the current system and the second is more focused on cost estimation and project budgeting. They're both nice, but I'm more interested in resource availability, job completion, and general status updates. So I'm probably just going to write my own from scratch -- starting Aug 15th.
Have you tried Ganglia?
I have no personal experience but few sysadmin I know are using it.
Following pages may help,
http://taos.groups.wuyasea.com/articles/how-to-setup-ganglia-to-monitor-server-stats/3
http://coe04.ucalgary.ca/rocks-documentation/2.3.2/monitoring-pbs.html
my two cents
Have you tried using nagios: http://www.nagios.org/ ?