Chris E | 7 Jun 08:28 2016
Picon
Gravatar

Porting libusbK software to Linux/Mac

Hi guys.
As the title suggests, I need to port some libusbK code to a different library in order to make it cross-platform.

The software uses both control requests handled by UsbK, and isochronous requests handled by StmK.

I've looked into libusb-1.0, and it looks like it will be simple to port the UsbK code.  However, I couldn't see any immediate equivalent to StmK.

Is there a way to set up something similar to StmK in libusb-1.0?  Alternatively, is there another library with cross-platform support and an StmK-like module?

Thanks,
~Chris


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Louis LaBrunda | 10 May 21:14 2016

Device Driver Client Installer

Hi All,

I need it to install a USB driver (on Windows) for the X10 CM19a Transceiver.  I have things
setup to do so with a copy of InstallDriver.exe that seem to work just fine.  However,
InstallDriver.exe is about 3.5MB in size which seem very large to me.  Have I done something
wrong?  Exactly what do I need to distribute with my program to have the X10 CM19a Transceiver
driver get installed at a user site?

Many thanks in advance.

Lou
--

-- 
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
Chris E | 7 May 05:16 2016
Picon
Gravatar

Extremely odd behaviour when debugging libusbK with CDB

Hi guys.
Looks like I've managed to stumble across some kind of reverse Heisenbug, and it's been doing my head in for days.

I am developing a program using the Qt Library and LibusbK (precompiled .dll/.lib).
When I compile and run, it works great - in debug or release mode.  I can even deploy it on other machines and there are no immediate issues.
However, when I try to debug using CDB (the Qt/Visual Studio debugger), UsbK_Init will always fail. 

This is, of course, a little bit problematic.  Is there a way to get around it?
If it helps, UsbK_Init returns error code 0x03 if compiled with Visual C++ 2013 (x86 and x64), and 0xCE if compiled with MinGW x86. 

Is this a known issue?  Do desktop debuggers do this often?  (If you haven't guessed already, I have fairly minimal experience developing Desktop software; I'm mainly used to microcontrollers and even there I'm no expert.)

Thanks,
~Chris
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
y.salnikov | 20 Mar 12:05 2016
Picon

Bulk IN transfer rate issue with FX2LP on Windows

Hi.
I have some problem with transfer rate with asynchronous bulk transfers on
windows.
I wrote a simple test program based on sigrok. It constantly streams data
through bulk endpoint. The firmware for FX2LP is also  based on sigrok.
It works perfectly on linux with transfer rate up to 24MB/s. But on windows
it can work only up to 4 MB/s.
FX2LP have internal FIFO and when it overflow, device stops streaming data,
so it can be latency problem.
I also try to use different USB-controller on PCI card with same result.
Interesting thing is that sigrok Pulseview works fine on windows with
transfer rate up to 24 MB/s.
The code is there: https://github.com/y-salnikov/usb_tst/tree/bulk
Sorry for my english. 

--
View this message in context: http://libusb.6.n5.nabble.com/Bulk-IN-transfer-rate-issue-with-FX2LP-on-Windows-tp5715721.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231&iu=/4140
ouled omar ilyes | 6 Mar 14:27 2016
Picon

libusb_win32

Hello,
First, congratulation for your excellence. I've read this site (https://sourceforge.net/p/libusb-win32/mailman/message/29925266/) and i'm really interressant in using the same logic behind it.
I'm developing an application on C# in order to communicate  with STM32.
So, i need the STlink library to use in my application.
Do you know where can i get a copy from it, or can you help me with some documents to develop one.
I hope that i get an answer from you.
Thanks.
Best regards
------------------------------------------------------------------------------
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Xiaofan Chen | 26 Feb 06:33 2016
Picon

Re: Alternatives for libusbK.dll and libusbK.sys

On Fri, Feb 26, 2016 at 12:57 PM, Børge Strand-Bergesen
<borge.strand <at> gmail.com> wrote:
> I use it! The ASIO driver at www.henryaudio.com depends on it.
> I don't know if I have the skill to port this system to another library.
>

If you are happy with libusbK API or libusbK kernel driver, both of
them will still work.

--

-- 
Xiaofan

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Xiaofan Chen | 26 Feb 05:38 2016
Picon

Alternatives for libusbK.dll and libusbK.sys

Just wondering how many users are using the libusbK API (libusbK.dll)?
How many are using the libusbK driver (libusbk.sys)?

libusbK API is Windows only and it supports libusbk.sys, libusb0.sys
and WinUSB. It is quite unique. The only alternative I can think of is
probably the original WinUSB API. Travis mentioned before he wanted
to add the WinUSB ISO support in libusbK.dll but I am not so sure when
that will happen.

Of course users can switch to libusb-1.0 API as well.

As for libusbk.sys, I think the usage is probably pretty low since WinUSB
will be a better alternative.

-- 
Xiaofan

On Mon, Aug 10, 2015 at 10:58 PM, Travis <libusbdotnet <at> gmail.com> wrote:
> Greetings,
>
> LibusbK is already signed with a DigiCert High Assurance EV Root CA.
>
> At some point, I would like to add the WinUSB ISO support to the libusbK
> library and let it become our "primary" driver.  There is little
> advantage to using libusbK.sys compares to the newer WinUsb.sys with ISO
> support.
>
> That said, nothing is going to stop working.  Even if we support WinUSB
> ISO, we will not throw libusbK.sys away.  I would expect most all users
> to WANT to transition to the winusb driver.  There are some big
> advantage because it is essentially a built-in windows driver for custom
> usb devices.  You can even add things to you USB descriptor which
> identifies it as a "winusb" device and eliminate the need for a driver
> installer all-together.
>
> Regards,
> Travis
>

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
若水 | 26 Feb 04:05 2016
Picon

libusbk filter driver on win7 x64bit

Hello,
      I have an USB Audio device (win7 x64bit system). It uses system internal driver (usbaudio.sys) and works well.
      Now, I need to add some new functions. I tried to install libusbk driver and run my new functions program. The new functions work well. But there is a problem, after I installed libusbk driver, the device will NOT be an USB Audio device. In order to solve the problem, I have to uninstall the libusbk driver and install libusbk FILTER driver. At that time, the USB Audio device works well. However, the new functions program cannot work. I debugged new functions program and found that UsbK_IsoWritePipe failed. The error code is 1168 (Element not found). Could you give me some instructions to solve the problems? Thanks.

Best Regards,
Shang Jing
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Karsten Schulz | 23 Nov 21:35 2015
Picon

WinUSB LibUSB

Hello togheter,
 
we have an Microcontroller on the USB Port, and write/read em succseed with LibUSB .
Now we try to read/write with WinUSB.
 
An Problem is the content of   :  WINUSB_SETUP_PACKET
 
LibUsb use : usb_control_msg(usb_dev_handle *dev, int requesttype, int request,int value, int index, char *bytes, int size,int timeout)
to send/recieve data , in this case WinUSB need to form out an SetupPacket:

WINUSB_SETUP_PACKET setup;
SetupPacket.RequestType = (1<<5) | 0x80; //try use type from LibUSB
SetupPacket.Request = 0;
SetupPacket.Value = 0;
SetupPacket.Index = 0;
SetupPacket.Length = sizeof(UCHAR);
WinUsb_ControlTransfer(WinusbHandle, SetupPacket, &bars, sizeof(UCHAR), &cbSent, 0);
 
Command ends Succsesfull! But the part got no data.
 
Hav any one Information to form out the setup packed correctly so we can use alternat WinUSB ?
 
We use it for Digispark Atiny85 Microcontrollerboard with arduino : http://digistump.com/wiki/digispark/tutorials/connecting
 
Thanks much for any Help
Karsten from Berlin
 
 
 
 
 
------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Xiaofan Chen | 23 Nov 14:28 2015
Picon

libusb-win32, libusbK and libusbdotnet under Windows 10

I just got time to carry out some simple tests under Windows 10 Professional
(upgraded from Windows 7 Ultimate) on a 5 year old PC (only 2GB RAM
with Pentium Dual Core E5500 Intel G41 chipset).

It seems to me that libusb-win32, libusbK and libusbdotnet all work fine
under Windows 10.

I use the libusbK inf-wizard GUI and Zadig for the installation of the drivers
(libusb0.sys, libusbK.sys and WinUSB).

I'd like to get your feedback on Windows 10. It seems to be more stringent
on the digital signature but Zadig and libusbK inf-wizard's self-signing method
seem to work fine.

--

-- 
Xiaofan

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
mabdallah | 22 Oct 14:18 2015

Win7 speed issue

I'm trying to use libUSb-Win32 with USB-to-TTl serial converter to send raw
data just to test making usb driver on windows, the problem is that data
rate monitored on the bus using USBLyzer is 6.6msec per bit ! how can i
increase the speed to maximum available speed ? 

N.B. Data is send correctly with no problem in data itself, the problem is
with speed. 

Here is my code: 
=========== 

    usb_init(); 
    usb_set_debug(255) ; 
    usb_find_busses(); 
    num = usb_find_devices() ; 

    printf("Devices: %d\n", num) ; 

    busses = usb_get_busses(); 

        for (bus = busses; bus; bus = bus->next) { 
                struct usb_device *dev; 

                for (dev = bus->devices; dev; dev = dev->next) { 
                        if ((dev->descriptor.idVendor == 0x067B) &&
(dev->descriptor.idProduct == 0x2303)) { 
                                mydev = usb_open(dev) ; 

                                if (mydev == NULL) 
                                { 
                                        printf("Error: usb_open\n") ; 
                                } 
                                else 
                                { 
                                        printf("Device opened\n") ; 

                                        mreturn =
usb_set_configuration(mydev, 1) ; 

                                        if (mreturn != 0) 
                                        { 
                                                printf("Error:
usb_set_configuration\n") ; 
                                        } 
                                        else 
                                        { 
                                                printf("Config. set\n") ; 

                                                mreturn =
usb_claim_interface(mydev, 0) ; 

                                                if (mreturn != 0) 
                                                { 
                                                        printf("Error:
usb_claim_interface\n") ; 
                                                } 
                                                else 
                                                { 
                                                        printf("Interface
claimed\n") ; 

                                                        mreturn =
usb_bulk_write(mydev, 2, data, 1000, 0) ; 

                                                        if (mreturn < 0) 
                                                        { 

printf("Error: usb_bulk_write\n") ; 
                                                        } 
                                                        else 
                                                        { 
                                                                printf("Data
sent\n") ; 
                                                        } 

                                                       
usb_release_interface(mydev, 0) ; 
                                                } 
                                        } 
                                } 
                        } 
                } 
        } 

and here is USB info by testlibusb-win: 
========================= 

bus/device  idVendor/idProduct 
bus-0/\\.\libusb0-0001--0x067b-0x2303     067B/2303 
- Manufacturer : Prolific Technology Inc. 
- Product      : USB-Serial Controller 
bLength:             18 
bDescriptorType:     01h 
bcdUSB:              0110h 
bDeviceClass:        00h 
bDeviceSubClass:     00h 
bDeviceProtocol:     00h 
bMaxPacketSize0:     40h 
idVendor:            067Bh 
idProduct:           2303h 
bcdDevice:           0300h 
iManufacturer:       1 
iProduct:            2 
iSerialNumber:       0 
bNumConfigurations:  1 
  wTotalLength:         39 
  bNumInterfaces:       1 
  bConfigurationValue:  1 
  iConfiguration:       0 
  bmAttributes:         a0h 
  MaxPower:             50 
    bInterfaceNumber:   0 
    bAlternateSetting:  0 
    bNumEndpoints:      3 
    bInterfaceClass:    255 
    bInterfaceSubClass: 0 
    bInterfaceProtocol: 0 
    iInterface:         0 
      bEndpointAddress: 81h 
      bmAttributes:     03h 
      wMaxPacketSize:   10 
      bInterval:        1 
      bRefresh:         0 
      bSynchAddress:    0 
      bEndpointAddress: 02h 
      bmAttributes:     02h 
      wMaxPacketSize:   64 
      bInterval:        0 
      bRefresh:         0 
      bSynchAddress:    0 
      bEndpointAddress: 83h 
      bmAttributes:     02h 
      wMaxPacketSize:   64 
      bInterval:        0 
      bRefresh:         0 
      bSynchAddress:    0 

Thanks

--
View this message in context: http://libusb.6.n5.nabble.com/Win7-speed-issue-tp5715261.html
Sent from the LibUSB Dev - Win32 mailing list archive at Nabble.com.

------------------------------------------------------------------------------

Gmane