Multiple xscopes

More
12 years 11 months ago #737 by mlindeblom
Multiple xscopes was created by mlindeblom
Is there any intention to access multiple xscopes and synchronize them?
?

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #738 by mlindeblom
Replied by mlindeblom on topic Re:Multiple xscopes
Below is my lsusb results. ?Currently I have to get first one going with the PC Interface and then look at the second via scope probes.
It would be conveinient to control multiple xscopes.
?
Murray
?
mur@mur-lin:~$ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 003: ID 16d0:06f9 MCS?
Bus 007 Device 002: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 04f2:a142 Chicony Electronics Co., Ltd?
Bus 001 Device 010: ID 16d0:06f9 MCS?
Bus 001 Device 002: ID 0424:2513 Standard Microsystems Corp. 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 002: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #739 by mlindeblom
mur@mur-lin:~/xscopes-qt$ git diff
diff --git a/libusbdevice.cpp b/libusbdevice.cpp
index 831a3df..1888a4e 100644
--- a/libusbdevice.cpp
+++ b/libusbdevice.cpp
@@ -1,4 +1,5 @@
#include "libusbdevice.h"
+#include "libusbdeviceinfo.h"

LibUsbDevice::LibUsbDevice(QObject *parent) :
QObject(parent)
@@ -97,8 +98,43 @@ void LibUsbDevice::initializeDevice()

void LibUsbDevice::openDevice()
{
+ size_t i = 0;
+ int deviceStatus;
+ deviceStatus = libusb_get_device_list(context, &devs);
+ if (deviceStatus
+ cstatus = tr("Cannot open device!");
+ qDebug() }
+ else
+ {
+ qDebug()}
+ }
+ }
+ libusb_free_device_list(devs, 1);
+
int status;
- deviceHandle = libusb_open_device_with_vid_pid(context, VENDOR_ID, PRODUCT_
+// deviceHandle = libusb_open_device_with_vid_pid(context, VENDOR_ID, PRODUC
if(deviceHandle == NULL)
{
cstatus = tr("Cannot open device!");
diff --git a/libusbdevice.h b/libusbdevice.h
index 32ac83f..c22017e 100644
--- a/libusbdevice.h
+++ b/libusbdevice.h
@@ -43,7 +43,11 @@ public:
public:
bool isDeviceConnected,isInitialiazed;
QString cstatus;
- libusb_device_handle *deviceHandle;
+ libusb_device **devs;
+ libusb_device *deviceFound = NULL;
+ libusb_device *dev;
+ libusb_device_descriptor deviceDesc;
+ libusb_device_handle *deviceHandle = NULL;
libusb_context *context;
libusb_hotplug_callback_handle hotplugHandle[2];
struct libusb_transfer *pcToUsbDeviceTransfer;

Please Log in or Create an account to join the conversation.

More
12 years 10 months ago #740 by ganzziani
Replied by ganzziani on topic Re:Multiple xscopes
I'll try to get your suggestions implemented for the next release.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #774 by adnan
Replied by adnan on topic Re:Multiple xscopes
Currently, libusb does not support more than one device to be connected, so feature can't be implemented till the support is added for the same in libusb

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago - 12 years 9 months ago #776 by mlindeblom
Replied by mlindeblom on topic Re:Multiple xscopes
Each xscope is a separate device./\r\n/I have had 2 xscopes running on Ubuntu 13.10 Linux with my patch.
Last edit: 12 years 9 months ago by mlindeblom.

Please Log in or Create an account to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum