USRP x310 responds to ping but does not responds to uhd_find_devices or uhd_usrp_probe - gnuradio

I am having some trouble with my USRP x310. This question might seem duplicate but I have already tried all the possible solution that I was able to find but I am still not able to resolve it.
Here are some of the posts that I followed and were similar to the problem I am facing.
1. http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/2015-January/040356.html
2. https://www.ruby-forum.com/t/a-strange-problem-with-no-uhd-devices-found-when-ping-192-168-10-2-is-ok/217561
I even posted a question at the NI discussion forum here is the URL, But I haven't received any response. I also tried to make a post at discuss-gnuradio#gnu.org and usrp-users#lists.ettus.com but for some reason the question is not yet posted so now I turnig to the good old trusted stackoverflow in search of some help.
Here is problem I am facing.
I was able to run my USRP x310 without any problem till last week but when I turned it on this week to run some experiments using srsLTE, when I ran srsenb it started gaving error "no compatible rf-frontend found". So to test the connectivity of x310 with the host computer, I ran 'uhd_find_devices' and 'uhd_usrp_probe'
Here is the output of the commands.
raghav#raghav-XPS:~$ uhd_find_devices
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
No UHD Devices Found
raghav#raghav-XPS:~$ uhd_usrp_probe
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
Error: LookupError: KeyError: No devices found for ----->
Empty Device Address
Then I checked the hardware and I was able to see the sfp+ light at port 0 which is correct, so I tried to ping the x310 'ping 192.168.10.2' and the device responded to ping without any loss in packets. So I tried to run 'uhd_find_devices' and 'uhd_usrp_probe' by providing the address of the device as the argument and then I was able to see the correct output.
Here is the outputs:
raghav#raghav-XPS:~$ uhd_find_devices --args addr=192.168.10.2
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
Device Address:
serial: 31EC216
addr: 192.168.10.2
fpga: HG
name:
product: X310
type: x300
raghav#raghav-XPS:~$ uhd_usrp_probe --args addr=192.168.10.2
[INFO] [UHD] linux; GNU C++ version 7.5.0; Boost_106501; UHD_3.15.0.0-release
[INFO] [X300] X300 initialization sequence...
[INFO] [X300] Maximum frame size: 1472 bytes.
[INFO] [X300] Radio 1x clock: 200 MHz
[INFO] [GPS] No GPSDO found
[INFO] [0/DmaFIFO_0] Initializing block control (NOC ID: 0xF1F0D00000000000)
[INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1319 MB/s)
[INFO] [0/DmaFIFO_0] BIST passed (Throughput: 1314 MB/s)
[INFO] [0/Radio_0] Initializing block control (NOC ID: 0x12AD100000000001)
[INFO] [0/Radio_1] Initializing block control (NOC ID: 0x12AD100000000001)
[INFO] [0/DDC_0] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DDC_1] Initializing block control (NOC ID: 0xDDC0000000000000)
[INFO] [0/DUC_0] Initializing block control (NOC ID: 0xD0C0000000000000)
[INFO] [0/DUC_1] Initializing block control (NOC ID: 0xD0C0000000000000)
_____________________________________________________
/
| Device: X-Series Device
| _____________________________________________________
| /
| | Mboard: X310
| | revision: 11
| | revision_compat: 7
| | product: 30818
| | mac-addr0: 00:80:2f:31:49:67
| | mac-addr1: 00:80:2f:31:49:68
| | gateway: 192.168.10.1
| | ip-addr0: 192.168.10.2
| | subnet0: 255.255.255.0
| | ip-addr1: 192.168.20.2
| | subnet1: 255.255.255.0
| | ip-addr2: 192.168.30.2
| | subnet2: 255.255.255.0
| | ip-addr3: 192.168.40.2
| | subnet3: 255.255.255.0
| | serial: 31EC216
| | FW Version: 6.0
| | FPGA Version: 36.0
| | FPGA git hash: fde2a94
| | RFNoC capable: Yes
.
.
.
.
I have already tried to update the fpga of the x310, redid the network connection setup and even reinstalled uhd drivers but nothing helped so far.
I would really appreciate if someone can help me with this issue.

This is a classical case of "computer does not let through traffic from broadcast addresses" as used for device discovery.
Hence, When trying to use my USRP in GNU Radio, I get a " No devices found for ----->" error partially applies. Make sure your PC's firewall is configured to let through packets from and for broadcast addresses.

Related

How do you select an element in a dropdown who's if using it's id doesn't work?

I am using Katalon recorder(chrome extension) to automate a form filling operation on the page "stuvia.com/upload" but I can't click on a dropdown element.
Here is the execution log.
[info] Playing test case Untitled Test Suite / Stuvia upload
[info] Time: Sat Apr 09 2022 01:05:04 GMT-0700 (Pacific Daylight Time) Timestamp: 1649491504473
[info] OS: Windows Version: 10
[info] Browser: Chrome Version: 100.0
[info] If the test cannot start, please refresh the active browser tab
[info] Executing: | open | https://www.stuvia.com/en-us/upload | |
[info] Wait for the new page to be fully loaded
[info] Executing: | click | id=aggreement-basisgegevens | |
[info] Wait for the new page to be fully loaded
[info] Executing: | click | xpath=//button[#type='submit'] | |
[info] Wait for the new page to be fully loaded
I encounter the problem here. The container's element selection is not recorded.
[info] Executing: | click | id=select2-type-doc-container | |
I tried to manually add the script using the id of the element I wished to select (w598-6) but the text box remained empty after running it again.
[info] Executing: | click | id=select2-type-doc-container
[info] Wait until the element is found
[info] Cannot find element id=select2-type-doc-container-result-w598-6 after 1000ms switch to id=select2-type-doc-container
[info] Executing: | click | id=select2-type-doc-container | |
[info] Time: Sat Apr 09 2022 01:05:33 GMT-0700 (Pacific Daylight Time) Timestamp: 1649491533850
[info] Test case passed
I think I incorrectly used the id but have no idea how to do it.
A nudge in the right direction would be highly appreciated.

Hyperledger besu with permissioning enabled error

I am using the quickstart network provided by Hyperledger besu, and I want to test and see how permissioning works with the permissioning management dapp. I use this repo: https://github.com/bretthenderson/besu-quickstart
So when I run the run-permissioning.sh script to build the dapp and run the test network everything works fine and the network starts succesfully then when I run the run-permissioning-dapp.sh script it works fine and it compiles and deploys the permissioning smart contracts then restarts the network with permissioning enabled but after that the bootnode container crashes with these logs :
2021-04-02 10:25:11.294+00:00 | main | INFO | KeyPairUtil | Loaded public key 0xc1979a8a48693db804316b5acebe35e11731e1fb1c9c21ff7268ab25db6f6e03390a429b83cf0ec0865a7205f2669ec1ace652a3def11e2e01571c74939cbe22 from /opt/besu/keys/key
Setting logging level to INFO
2021-04-02 10:25:42.930+00:00 | main | INFO | AbstractAltBnPrecompiledContract | Using LibEthPairings native alt bn128
2021-04-02 10:25:55.841+00:00 | main | INFO | SECP256K1 | Using native secp256k1
2021-04-02 10:25:55.933+00:00 | main | INFO | Besu | Starting Besu version: besu/v21.1.3/linux-x86_64/oracle_openjdk-java-11
2021-04-02 10:25:59.261+00:00 | main | WARN | Besu | --min-gas-price has been ignored because --miner-enabled was not defined on the command line.
2021-04-02 10:26:00.299+00:00 | main | INFO | Besu | Static Nodes file = /opt/besu/data/static-nodes.json
2021-04-02 10:26:00.322+00:00 | main | INFO | StaticNodesParser | StaticNodes file /opt/besu/data/static-nodes.json does not exist, no static connections will be created.
2021-04-02 10:26:00.351+00:00 | main | INFO | Besu | Connecting to 0 static nodes.
2021-04-02 10:26:00.368+00:00 | main | INFO | Besu | Security Module: localfile
2021-04-02 10:26:00.661+00:00 | main | INFO | DatabaseMetadata | Lookup database metadata file in data directory: /opt/besu/data
2021-04-02 10:26:01.646+00:00 | main | INFO | RocksDBKeyValueStorageFactory | Existing database detected at /opt/besu/data. Version 1
2021-04-02 10:26:03.790+00:00 | main | INFO | KeyPairUtil | Loaded public key 0xc1979a8a48693db804316b5acebe35e11731e1fb1c9c21ff7268ab25db6f6e03390a429b83cf0ec0865a7205f2669ec1ace652a3def11e2e01571c74939cbe22 from /opt/besu/keys/key
2021-04-02 10:26:04.310+00:00 | main | INFO | ProtocolScheduleBuilder | Protocol schedule created with milestones: [Petersburg: 0]
ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8ANTLR Tool version 4.7.1 used for code generation does not match the current runtime version 4.8ANTLR Runtime version 4.7.1 used for parser compilation does not match the current runtime version 4.8
Error: node permissioning contract at address 0x0000000000000000000000000000000000009999 does not match the expected interface version 1
I can't find anything about this error anywhere as hyperledger besu have a very small community...
The fix is to the issue is to add --permissions-nodes-contract-version=2 to your besu command line.
This is because in v 2.0.0 of permissioning smart contracts repo we changed the interface as per the changelog https://github.com/ConsenSys/permissioning-smart-contracts/releases/tag/v2.0.0
It is in the besu docs here https://besu.hyperledger.org/en/stable/HowTo/Limit-Access/Specify-Perm-Version/ but I have already reported this issue and it has been fixed on the documentation of on-chain permissioning tutorial.
you can find more details here
Github issue
Besu Docs
i'm facing the same issue even with --permissions-nodes-contract-version=2 is added, check my post here : https://ethereum.stackexchange.com/questions/132573/hyperledger-besu-onchain-permissioning-error

Nexus 2 Repository Manager web failed to start

I have downloaded and installed Nexus 2 according to official guide.
Then run it. Nothing strange can't see in log files.
But when I can try to get web interface http://apphost:9990/nexus/, I see on the web page:
Directory: /nexus/
LICENSE.html 12043 bytes May 31, 2017 7:39:55 AM
WEB-INF/ 4096 bytes May 31, 2017 7:39:55 AM
favicon.ico 1150 bytes May 31, 2017 7:39:49 AM
favicon.png 1179 bytes May 31, 2017 7:39:49 AM
images/ 4096 bytes May 31, 2017 7:39:55 AM
robots.txt 86 bytes May 31, 2017 7:39:49 AM
It seems Java is not running correctly, because it shows just static content.
Screenshot
Java is installed:
[opt]$ java -version
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
Nexus home:
echo $NEXUS_HOME
/opt/nexus
Log file:
jvm 1 | 2017-06-01 05:20:43,496-0700 DEBUG [jetty-main-1] *SYSTEM org.sonatype.nexus.NxApplication - Started
jvm 1 | 2017-06-01 05:20:43,496-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.webapp.WebappBootstrap - Initialized
jvm 1 | 2017-06-01 05:20:43,552-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.InstrumentedSelectChannelConnector - Metrics enabled
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [jetty-main-1] *SYSTEM org.eclipse.jetty.server.AbstractConnector - Started InstrumentedSelectChannelConnector#0.0.0.0:9990
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Running
jvm 1 | 2017-06-01 05:20:43,570-0700 INFO [WrapperListener_start_runner] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Started
jvm 1 | 2017-06-01 05:20:47,915-0700 DEBUG [HC4x-EvictingThread] *SYSTEM org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Closing expired connections
jvm 1 | 2017-06-01 05:20:47,916-0700 DEBUG [HC4x-EvictingThread] *SYSTEM org.sonatype.nexus.apachehttpclient.Hc4ProviderImpl$ManagedClientConnectionManager - Closing connections idle longer than 30000 MILLISECONDS
Thanks for any advice
I have resolved the issue.
I guess archive was corrupted.
Nexus were successfully run after complete reinstall.

OpenNI SDK2, can't find Kinect device (Ubuntu 13.04)

I downloaded OpenNI SDK2 sources x64, compiled and tried to run Samples, but wasnt successful.
100 INFO New log started on 2013-10-27 00:03:47
130 INFO --- Filter Info --- Minimum Severity: VERBOSE
166 VERBOSE No override device in configuration file
182 VERBOSE Configuration has been read from './OpenNI.ini'
190 VERBOSE OpenNI 2.2.0 (Build 32)-Linux-x86 (Oct 26 2013 21:13:04)
197 VERBOSE Using './OpenNI2/Drivers' as driver path
208 VERBOSE Looking for drivers in drivers repository './OpenNI2/Drivers'
933 INFO New log started on 2013-10-27 00:03:47
950 INFO --- Filter Info --- Minimum Severity: VERBOSE
966 VERBOSE Initializing USB...
1074 INFO USB is initialized.
4274 INFO New log started on 2013-10-27 00:03:47
4292 INFO --- Filter Info --- Minimum Severity: VERBOSE
4304 VERBOSE Initializing USB...
4366 INFO USB is initialized.
15321 VERBOSE Trying to open device by URI '(NULL)'
15367 ERROR Can't open default device - none found
Couldn't open device
DeviceOpen using default: no devices found
lsusb gets this
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 058f:b002 Alcor Micro Corp.
Bus 001 Device 004: ID 045e:00f0 Microsoft Corp.
Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
Bus 002 Device 007: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 002 Device 004: ID 1c7a:0603 LighTuning Technology Inc.
Bus 002 Device 009: ID 045e:02ad Microsoft Corp. Xbox NUI Audio
Bus 002 Device 008: ID 045e:02b0 Microsoft Corp. Xbox NUI Motor
Bus 002 Device 010: ID 045e:02ae Microsoft Corp. Xbox NUI Camera
I also tried some libfreenect examples with kinect a it worked without any problem.
I add some line to SimpleRead main.cpp file
Array<DeviceInfo> dev_info;
OpenNI::enumerateDevices(&dev_info);
printf("Number of devices %d \n",dev_info.getSize());
which writes out 0.
Output of
lsmod | grep gspca_kinect is void
What could be possibly wrong?
I'm on Ubuntu 64bit v13.04, Kinect is "Kinect for Xbox", using USB2
I am adding this answer because #Brian Tompsett's link is broken. There is an easy workaround to this while compiling libfreenect: just ensure you turn on the flag -DBUILD_OPENNI2_DRIVER=ON when calling cmake during libfreenect's build.
After installing, head over to
/home/$(whoami)/path/to/libfreenect/build/lib/OpenNI2-FreenectDriver
and copy libFreenectDriver.so* to your downloaded OpenNI2 Bin directory, i.e.: /path/to/OpenNI2/Bin/x64-Release/
Check if your installation is okay by testing the precompiled NiViewer. Depending on the rules you configured in your udev folder, you might need to run NiViewer with root.
Good luck!
(Answered by the OP in an edit, see Question with no answers, but issue solved in the comments (or extended in chat) )
The OP wrote:
According to OpenNI forum topic
new OpenNI SDK2 doesnt support Kinect device. Anyway, there is a link to OpenKinect drivers "hacked" to work with OpenNI SDK2
#Calorified 's answer worked for me.
In addition, make sure to update the OpenNI.ini file, e.g. to run the OpenNI sample apps in OpenNI2/Samples/Bin or the NiTE sample apps in /path/to/NiTE*/Samples/Bin.
For example, I was using the 32-bit OpenNI version 2.2:
I copied the libFreenectDriver.so* to /path/to/OpenNI2/Tools (there is no bin/x64-release folder in this OpenNI version).
In OpenNI2/Samples/Bin, edit the file OpenNI.ini
Under the [Drivers] section, at the end of the file, add the line: Repository=/path/to/OpenNI2/Tools (where you put the libFreenectDriver.so file). Below is my edited OpenNI.ini file. I used a relative path, but an absolute path will also work.
#/path/to/OpenNI2/Samples/Bin/OpenNI.ini
[Log]
; 0 - Verbose; 1 - Info; 2 - Warning; 3 - Error. Default - None
Verbosity=3
LogToConsole=0
LogToFile=0
[Device]
;Override=""
[Drivers]
; Location of the drivers specified by a relative path based on OpenNI's shared library or an absolute path.
; Path separator "/" can be used to be portable for any platforms.
; Default - OpenNI2/Drivers
Repository=../../Tools
You'll have to do the same thing for the NiTE samples. The samples should run now.
Without updating the OpenNI.ini I always get the error DeviceOpen using default: no devices found
*ps. libfreenect installation will put the libFreenectDriver.so in /usr/local/lib/OpenNI2-FreenectDriver/

Error starting Sonar

I'm using SONAR for my project.
While using "StartSonar.bat" for launch of Sonar, it is throwing the following exception.
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Error occurred during initialization of VM
jvm 1 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 2 | Error occurred during initialization of VM
jvm 2 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 3 | Error occurred during initialization of VM
jvm 3 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 4 | Error occurred during initialization of VM
jvm 4 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | Launching a JVM...
jvm 5 | Error occurred during initialization of VM
jvm 5 | java/lang/NoClassDefFoundError: java/lang/Object
wrapper | JVM exited while loading the application.
wrapper | There were 5 failed launches in a row, each lasting less than 300 seconds.
Giving up.
wrapper | There may be a configuration problem: please check the logs.
wrapper | <-- Wrapper Stopped
Press any key to continue . . .
Using Java 1.7.0._09. Please help me in getting out of this.
Also, I tried configuring Sonar in IntelliJ IDEA 11 Community Edition. It fails in the startup of IDE. Are any plugins available for Community Edition to run Sonar.
what value do you have for the 'wrapper.java.command' in the wrapper.conf file? Seems like the is no JVM available
Are you sure you have installed a JDK, and not just the JRE?
Also Check JAVA_HOME is configured correctly. Make sure to set the JAVA_HOME environment variable to point to the JDK root folder.
Do one thing, go to <sonarDirectory>\conf and edit the wrapper.conf file and set these 2 lines:
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_20\bin\java
#wrapper.java.command=java