Recent Posts

Pages: 1 [2] 3 4 ... 10
11
USB / WinUsb_Initialize Fails
« Last post by giuse on April 28, 2023, 03:58:49 am »
Good morning
I have a question to understand if ultimately it's really possible to do what I'm trying to do:
i have a brother pt900w printer from which i need to read 32 bytes back to which the printer writes its status.
We are able to send an ECP/P command to the printer via API "DllImport("winspool.Drv"..." to which it responds correctly and we are able to intercept the response via program (Usb Monitor Pro) (image 03_)  .
We fail to read through the same mechanism, so we are trying with "WinUsb_cs 3.1":
i found the "device interface Guid" and i can get the handle with "GetDeviceHandle" but "WinUsb_Initialize" fails the function (image 02_).

The question is:
can I read the data from the USB on a device that uses "usbprint.sys" (image 00_) ?
13
USB / Publishing WinUSB
« Last post by tinayetsina on April 18, 2023, 05:17:35 am »
I recently finished using the WinUSB C# application and everything works fine on my machine, however whenever I try and export the Release .exe file to another machine, all of a sudden, the bulk/control/interrupt transfer functions no longer work. The device can still be found and WMI reports the device has been located, but apparently, no transfer function works anymore. Almost like all the WinUSB functions have been nullified.

Any help as to how I can make sure all the external functions and DLL files get included in the packaging of the release app will be really helpful. When running the BulkTransfer function, it only shows two empty lines on every other machine.
14
USB / Re: Windows/Thesycon error codes?
« Last post by Renate on April 05, 2023, 07:35:16 am »
The error messages are right in the message table in usbaudio2.sys

Code: [Select]
40440010  An audio format implemented by device %1 is not supported by the driver. The format was ignored.
80440020  A feedback endpoint implemented by device %1 is unusable because its bInterval value is not supported. Audio glitches might occur.
80440021  An IN endpoint with adaptive synchronization implemented by device %1 will be handled like asynchronous synchronization.
c0440010  A system call failed. The specific status code is contained in this event.
c0440011  The device %1 does not implement any audio format supported by the driver.
c0440020  Device %1 is operating at a USB speed that is not supported by the driver.
c0440021  A USB descriptor reported by device %1 has an invalid length.
c0440022  A USB descriptor reported by device %1 is not compliant with the specification, or is not supported by the driver.
c0440023  The audio function topology implemented by device %1 is not compliant with the specification, or is not supported by the driver.
c0440024  The channel count of at least one path in the audio function topology of device %1 cannot be determined.
c0440025  The driver could not find a feedback endpoint for an asynchronous data OUT endpoint on device %1.
c0440026  A control request sent to device %1 has failed.
c0440027  A control request sent to device %1 has timed out. The device took too long to respond.
c0440028  In response to a control request, the device %1 returned an invalid value or an invalid length.

Still, I haven't figured out why the c0440010 is citing c00000bb
15
USB / Windows/Thesycon error codes?
« Last post by Renate on April 04, 2023, 10:24:59 am »
Microsoft was very slow off the mark to support USB Audio 2.0
They finally "adopted" the Windows driver from Thesycon.
But apparently it's remained a poor relation.

I'm running into a problem implementing a USB Audio 2.0 device.
It works fine on Android or Linux (I don't have any MacOS here), but not on Windows 10.
Yeah, it's probably my fault and bad descriptors.

Still, what I'm complaining about is that the errors issued by audio2.sys are not published anywhere.
They seem to have the facility code of 0x44 of which I can't find a reference either.
c0440010
c0440023
16
Parallel Port / Re: ParallelPort.DLL has bad format
« Last post by Renate on April 03, 2023, 03:29:50 pm »
I'm still a bit unclear.
Are you looking to have a TS2068 (Timex Sinclair 2068 home computer) "print" to a modern computer?
There was a RS232 interface for that, but that's serial.

About a zillion years ago I wrote a serial/parallel converter for printers.
I programmed that with an EEPROM programmer that only had toggle switches.
17
Parallel Port / Re: ParallelPort.DLL has bad format
« Last post by SpiritualMadMan on April 03, 2023, 02:50:27 pm »
Renate,

I really need parallel I/O for a project on legacy computers, specifically the TS2068 doing DMA. To do so I will need, at a minimum, 3 8 bit 3/S latches, a 3/s 8 bit counter and the glue logic.

The parallel port on an old XP machine would get me started. But, I balked at not seeing anything hinting at using the modern PCI-e cards or USB adapters.

Using the parallel port would have allowed all the intelligence to be in my C# code on the PC. Without a Parallel Port I will need to add a USB or Serial bridge and not only write for the PC side but also learn a completely new language to program an Arduino or PIC.

So, yeah, this 70 year old tinkerer is a bit disappointed.

Have a great day.
18
Parallel Port / Re: ParallelPort.DLL has bad format
« Last post by Renate on April 02, 2023, 06:42:56 pm »
... can't get it to work.
Sorry, the parallel port is pretty much a dead end these days.
You won't find it on most computers and Windows doesn't support directly playing with it.

Depending on what you want to do a serial port (or a serial port over USB) is much easier.
If you only want to turn off/on one or two things you could use the serial port DTR and RTS.
On the other hand, since these are used for communications purposes it's a bit insecure to use something that Windows itself toggles.
I ran a bread baker on that once.

If you really need multiple control lines may I suggest a Cypress FX2LP module?
Ok, that needs firmware downloaded.
You can do the same sort of thing with most small USB microcontrollers.

In the final analysis, the question is: what do you actually want to do?
19
Parallel Port / Re: ParallelPort.DLL has bad format
« Last post by SpiritualMadMan on April 01, 2023, 07:49:27 am »
Jan, I downloaded the Parallel Port Master Control and can't get it to work.

I finally noticed that NET 2.0 is called out on the web page. Which OS and Which Visual Studio is this designed to work in?

And, finally, can you give a 70 year old out of practice tinkerer any direction on how to research doing this in more modern environments.

Thanks.
20
Parallel Port / Re: ParallelPort.DLL has bad format
« Last post by Jan Axelson on March 30, 2023, 02:47:52 pm »
I'm not aware of any direct port access dlls for current OSes.
Pages: 1 [2] 3 4 ... 10