Author Topic: CH340 serial  (Read 877 times)

Igor

  • Full Member
  • ***
  • Posts: 107
  • Karma: +12/-0
    • View Profile
CH340 serial
« on: December 23, 2024, 07:27:29 pm »
Help me, please. Add support for this device to the USBCOM driver.
Code: [Select]
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x1a86 QinHeng Electronics
  idProduct          0x7523 CH340 serial converter
  bcdDevice            2.64
  iManufacturer           0
  iProduct                2 USB Serial
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               98mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      1
      bInterfaceProtocol      2
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0020  1x 32 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

ivan

  • Hero Member
  • *****
  • Posts: 1614
  • Karma: +20/-0
    • View Profile
Re: CH340 serial
« Reply #1 on: December 23, 2024, 08:16:58 pm »
Hi Igor,

What are you using that requires a com port?  I haven't used one for the last 10 years so am interested in your usage.

Igor

  • Full Member
  • ***
  • Posts: 107
  • Karma: +12/-0
    • View Profile
Re: CH340 serial
« Reply #2 on: December 23, 2024, 10:48:12 pm »
Hi Igor,

What are you using that requires a com port?  I haven't used one for the last 10 years so am interested in your usage.
62 / 5 000
I use GSM module. I also plan to use Arduino.

Doug Bissett

  • Hero Member
  • *****
  • Posts: 1605
  • Karma: +4/-2
    • View Profile
Re: CH340 serial
« Reply #3 on: December 24, 2024, 12:39:43 am »
Quote
Help me, please. Add support for this device to the USBCOM driver.

Perhaps a silly question, but have you tried USBSER,SYS?

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5079
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: CH340 serial
« Reply #4 on: December 24, 2024, 03:08:05 pm »
Hello

Just in case I had a little experience with this device: Prolifc PL2303 USB 2.0 to COM - 067b:2303
https://www.os2world.com/wiki/index.php?title=Prolifc_PL2303_USB_2.0_to_COM

I used USBCOM.SYS.
My testing was very light, I no longer have any serial device to try.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1090
  • Karma: +27/-0
    • View Profile
    • Blonde Guy
Re: CH340 serial
« Reply #5 on: December 24, 2024, 03:37:55 pm »
The usbcom driver supports a lot of devices already. What is your output of this.

Device=C:\os2\boot\usbcom.sys /v

If nothing is found, maybe you need a different USB serial port converter?

Also, even the newest desktop computers still seem to have serial ports.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Igor

  • Full Member
  • ***
  • Posts: 107
  • Karma: +12/-0
    • View Profile
Re: CH340 serial
« Reply #6 on: December 24, 2024, 07:54:41 pm »
Hello

Just in case I had a little experience with this device: Prolifc PL2303 USB 2.0 to COM - 067b:2303
https://www.os2world.com/wiki/index.php?title=Prolifc_PL2303_USB_2.0_to_COM

I used USBCOM.SYS.
My testing was very light, I no longer have any serial device to try.

Regards
I use Prolifc PL2303 USB 2.0 to COM and it works (partially). But I can’t connect this to Arduino.
Perhaps he gives out 5 volt COM and this solves the problem.
I will check it soon.

I ordered ProLIFC PL2303 converter to com-TTL and expect delivery. Perhaps this will work.

However, CН340 is much more common and affordable.

Igor

  • Full Member
  • ***
  • Posts: 107
  • Karma: +12/-0
    • View Profile
Re: CH340 serial
« Reply #7 on: December 24, 2024, 08:03:58 pm »
The usbcom driver supports a lot of devices already. What is your output of this.

Device=C:\os2\boot\usbcom.sys /v

If nothing is found, maybe you need a different USB serial port converter?

Also, even the newest desktop computers still seem to have serial ports.

Of course, the USBCOM.Sys driver is installed and launched.
And, alas, on my motherboard there is not even a detachment for serial port. And there is no chip either.
I have already ordered another converter of the outdated model. If nothing can be done, I will try with him.