CH340 CH341 USB to Serial PC Installation

Sdílet
Vložit
  • čas přidán 25. 08. 2024

Komentáře • 55

  • @ACCautomation
    @ACCautomation  Před 3 lety +2

    Simple USB to RS485 Serial converter. This adapter is self-powered so no external power supply and is inexpensive.
    I have also tested this with the Raspberry Pi 4 B and it works flawlessly with Node-RED.
    Purchase your USB to RS-485 serial adapter from the following affiliate links.
    3 pack
    amzn.to/35KlwBb
    2 pack - Best Deal
    amzn.to/3xMooJA
    1 piece
    amzn.to/3wRF9TE
    Regards,
    Garry

  • @ekeretteekpo3004
    @ekeretteekpo3004 Před 3 měsíci

    Thank you for the video. I was actually hoping to find how to connect the cable to both ends - to the RS485 USB converter and to the RJ45 plug.

  • @ManojVenugopalSuresh
    @ManojVenugopalSuresh Před 2 měsíci

    my doubt is I have made a testbed with 4 sensors actuator with a 12 volt motor & ic as esp 32 the data generated from ide I am saving in as excel file using python to read data from COMM port & transmit data to raspberry pi SD card have connected rs 485 modbus ttl from testbed to ch 340 plugged directly to input port of raspberry pi like USB how to store the data with this wired medium setup

  • @ri5ux435
    @ri5ux435 Před rokem +1

    Cant get this specific USB to RS485 adapter working. Trying to use it with a valence lithium battery BMS and it just wont detect the modules in the software specifically with this module. Tried flipping A/B. Driver is installed, COM port is available. No use. These things are terrible.

    • @ACCautomation
      @ACCautomation  Před rokem +1

      Hi Ri5ux,
      I did a quick search for the valence lithium battery BMS communication. Here is what I found that shows communication using a USB to RS485. They used an adapter with 0 and 5-volt pins along with the communication pins, probably for reference.
      300mpg.org/2019/08/26/lithium-battery-communications/
      I have succeeded with these USB to RS485 with several models of PLCs connecting to a windows computer or Raspberry Pi.
      Regards,
      Garry

    • @ri5ux435
      @ri5ux435 Před rokem +1

      @@ACCautomation I've tried everything as far as this adapter. I already opened them up, found GND and 5V and soldered direct to them for those signals. It made no difference. They may work for you, but whatever it is about this adapter, the BMS doesn't want to communicate with it. I do appreciate your willingness to help though. It is definitely appreciated

  • @RodknockRhett
    @RodknockRhett Před 5 měsíci +1

    I'm trying to install this driver to use an OBD2 USB interface and no matter what, I get "Driver install failure".

    • @ACCautomation
      @ACCautomation  Před 5 měsíci +2

      Hi @RodknockRhett,
      This driver is for the USB to Serial (RS485) adaptor only. I would look back at the manufacturer's website for the OBD2 USB drivers for your hardware.
      Regards,
      Garry

    • @RodknockRhett
      @RodknockRhett Před 5 měsíci

      @@ACCautomation I tried all of that. I went and grabbed another system and it worked instantly… So the issue is with the system I need to use. Both systems run Windows 10. Weird.

  • @looky1987
    @looky1987 Před 6 měsíci +1

    Hi
    I have the problem that the stick works with RS232.
    I'm trying to read a battery BMS RS485 with the BMS program, I can only open and read the port but no port provider settings.
    With the Device Monitoring Studio program I see that the connection is RS232.
    Do you have an idea how to force the stick to RS485?

    • @ACCautomation
      @ACCautomation  Před 6 měsíci +2

      Hi @looky1987
      If you look at the device manager in Windows, it will show you the port number and parameters assigned. The output of this unit is RS485 and not RS232.
      Regards,
      Garry

    • @looky1987
      @looky1987 Před 6 měsíci

      @@ACCautomation Yeah i check up the device manager but idk, it dont work with this stick. I order yesterday a another one, the blue transparent with 5 line output, this one works perfekt. But thanks for ya help

  • @armandine2
    @armandine2 Před 2 lety +2

    in device manager my CH341A mini programmer comes up under Interface as USB-EPP/I2C...CH341A

    • @ACCautomation
      @ACCautomation  Před 2 lety +2

      Hi armandine2
      Is a COM port associated with the device? If there is then the adapter has been installed correctly.
      Regards,
      Garry

    • @armandine2
      @armandine2 Před 2 lety +2

      @@ACCautomation that doesn't mean anything to me - the device has a usb and I attached it to my usb port on my laptop

    • @ACCautomation
      @ACCautomation  Před 2 lety +2

      @@armandine2
      Is there a COM port associated with the USB?

    • @armandine2
      @armandine2 Před 2 lety +2

      there is an update - the programmer supplier has a download for it on github - and the manual there shows the jumper pin positiosn different to what I had it at. - so hopefully this will help

    • @armandine2
      @armandine2 Před 2 lety +2

      yes - it is now showing under in Device Manager / Ports (COM & LPT) as USB - SERIAL CH341A (COM 7)

  • @Muli1211
    @Muli1211 Před rokem +1

    I installed the driver, but when I check device manager my port stays the same at "Communications Port (COM1)". It doesn't change when I plug and unplug it?

    • @ACCautomation
      @ACCautomation  Před rokem +2

      Hi @Muli1211,
      I suggest installing the driver again using administrator privileges.
      Let me know how you make out.
      Regards,
      Garry

    • @Muli1211
      @Muli1211 Před rokem +1

      @@ACCautomation It tells me "The drive is successfully Pre-installed in advance!" and my port still stays the same?

    • @shariqshah8470
      @shariqshah8470 Před 8 měsíci

      @@Muli1211 Same issue

  • @LixTheYT
    @LixTheYT Před 6 měsíci +1

    Hello! I just bought CH341A Programmer and I want to ask that if I can use that driver for this CH341A (only). Or I need something or I can't.
    Thank you!

    • @LixTheYT
      @LixTheYT Před 6 měsíci

      It's possible to like have CH341A a COM?

    • @ACCautomation
      @ACCautomation  Před 6 měsíci +2

      The CH341A Programmer plugs directly into the USB port. This is a totally different device. Please check the manual/instructions for drive installation.
      Regards,
      Garry

  • @duyphamhoangbao7090
    @duyphamhoangbao7090 Před 2 lety +1

    Do i need any driver for rasberry when i plug usb to rs 485 to rasberry.

    • @ACCautomation
      @ACCautomation  Před 2 lety +1

      Hello,
      No driver is needed for the raspberry pi. Here is a post that will show you serial communications for the raspberry pi.
      accautomation.ca/raspberry-pi-serial-port-programming/
      Regards,
      Garry
      accautomation.ca/series/node-red-iot-enabling-software/

  • @igorjovanovi52
    @igorjovanovi52 Před 2 lety +1

    How connect cbk-401 ptz joystick whit USB RS 485

    • @ACCautomation
      @ACCautomation  Před 2 lety +1

      Hi Igor,
      Once the USB to Serial adapter is installed, you should be able to see the port assignment through the device manager.
      If the device is not working, then check the documentation of the device connected.
      Regards,
      Garry

  • @bodzio_stawski187
    @bodzio_stawski187 Před rokem +1

    I have yet another question about the converter. When you open baud rate list in Device Manager in 3:30, the max value 128000 is visible. But the datasheet of CH341 chip says the value 2000000 is max. Why Device Manager shows so "low" max baud rate?

    • @ACCautomation
      @ACCautomation  Před rokem +2

      Hi bodzio_stawski,
      The maximum baud rate is based on the serial communication chip on the computer board and not the device being attached.
      social.msdn.microsoft.com/Forums/en-US/c52e26ec-86db-43c6-878c-0506bcc00f86/serial-port-baudrate-limitation?forum=netfxbcl
      The above link will explain more.
      I hope this helps you out.
      Regards,
      Garry

    • @bodzio_stawski187
      @bodzio_stawski187 Před rokem +1

      @@ACCautomation Ok, so is there a method to achieve this mythic 2000000 b/s?:)

    • @ACCautomation
      @ACCautomation  Před rokem +1

      @@bodzio_stawski187
      So make sure that both ends can achieve the speed that you want. I have often found that the serial baud rate is just one factor to consider. You must also consider the processing time for the messages, which is usually significantly longer. Is there a reason you need to achieve this high rate?
      Regards,
      Garry

    • @bodzio_stawski187
      @bodzio_stawski187 Před rokem +1

      @@ACCautomation To be honest - no, I don't need 2 Mb/s of speed. But if chip's manufacturer says "2000000", I should be able to check this. He can say 99999999999999 :)

    • @ACCautomation
      @ACCautomation  Před rokem +1

      @@bodzio_stawski187
      OK, you will need a serial board that will go that speed.
      Regards,
      Garry

  • @DrmSeki
    @DrmSeki Před 2 lety +1

    I have a delta server power supply with RS485 input. I want to lower the voltage of this power supply. Is it possible to lower the voltage of the power supply with this converter (rs485 to usb)?

    • @ACCautomation
      @ACCautomation  Před 2 lety +1

      Hi Ozan SEKI,
      The USB to RS485 serial adapter will allow you to connect to the same RS485 of your delta server.
      You must know the protocol (communication method) to request and send information from the computer. Also a software program must be used to send the correct protocol information to the power supply.
      What is the exact model number of the Delta Server Power Supply that you have?
      Regards,
      Garry

    • @DrmSeki
      @DrmSeki Před 2 lety +1

      @@ACCautomation Thank you very much for helping. Believe me, I've been looking for a solution for a very long time and I can't find it. The exact model of the power supply I have is: Delta Electronics ESR-48/56B A rev.9 (or DPR 2900 ?? EnergE I guess as it's new). There are videos that convert this Delta branded power supply in different models into an independently adjustable power supply with various modifications. However, since it's not the same as mine, its internal hardware is different, so I can't try that method. The last method I can try is to connect it to the computer via RS485 and lower the voltage somehow :) Of course, I don't know what kind of application it uses for communication :)

    • @ACCautomation
      @ACCautomation  Před 2 lety +1

      @@DrmSeki
      Here is a website with some information on your unit.
      deltapowersolutions.co.za/deltapower-products/dpr-2900-energe-97-2/
      The facts sheet shows the following:
      Communication Interface: CAN bus
      I cannot find any particular information on this communication protocol. You may want to contact them and see if there are options like Modbus, Ethernet IP, etc that will work with this unit.
      Regards,
      Garry

    • @DrmSeki
      @DrmSeki Před 2 lety

      @@ACCautomation Thank you again for your research. Contact the company. I'll try to gather some information. I will share the information I got here with you. If it's a method you know, I'll give you some headaches again

  • @nguyenthiphuonganh7817
    @nguyenthiphuonganh7817 Před 3 lety +1

    Why Don’t you make controll VFD or Temperature controller by Vb.Net serial port ?

    • @ACCautomation
      @ACCautomation  Před 3 lety +1

      Hi Phong Nguyen,
      Here is a post on controlling a Solo process temperature controller by AdvancedHMI. (VB.Net)
      accautomation.ca/advancedhmi-to-solo-process-temperature-controller/
      The CH340 USB to RS485 can be substituted in the post/video.
      Regards,
      Garry

    • @nguyenthiphuonganh7817
      @nguyenthiphuonganh7817 Před 3 lety +1

      @@ACCautomation how to calculate CRC code
      You using library

    • @ACCautomation
      @ACCautomation  Před 3 lety +1

      @@nguyenthiphuonganh7817
      The following thread will show you how to create the CRC code. (CRC-16)
      stackoverflow.com/questions/23009036/example-for-vb-net-to-calculate-crc16-of-an-string-or-byte-array
      CRC-16 is the most common but there are differences depending on what your equipment is expecting. The following is a good list of the differences and how to calculate each one.
      en.wikipedia.org/wiki/Cyclic_redundancy_check
      The one in the video uses Modbus RTU. Here is a post that will show you the calculation of the CRC-16 for Modbus ASCII using the PLC.
      Click PLC
      accautomation.ca/click-plc-modbus-ascii-protocol/
      BRX PLC
      accautomation.ca/brx-do-more-plc-modbus-ascii-protocol/
      Productivity P1000 Controller
      accautomation.ca/productivity-1000-series-plc-modbus-ascii-protocol/
      I hope this helps you out.
      Regards,
      Garry

    • @ACCautomation
      @ACCautomation  Před 3 lety +1

      Note:
      An Omron PLC will call the CRC an FCR - The frame check sequence (FCS) is a calculated 2 character value.
      This post uses VB.Net to calculate the FCS for the Omron PLC.
      accautomation.ca/implementing-the-omron-host-link-protocol-vb-net/
      Regards,
      Garry

  • @Sadtaste
    @Sadtaste Před 3 lety +1

    Can I use CH341SER driver for pl2303 usb to serial comm port?

    • @ACCautomation
      @ACCautomation  Před 3 lety +1

      Hi Mark Joseph Olavides,
      The PL2303 is a Prolific device. You must use the specific driver for that device.
      www.prolific.com.tw/US/ShowProduct.aspx?p_id=225&pcid=41
      The driver can be downloaded from the above link.
      The CH341SER will not work.
      Regards,
      Garry

    • @Sadtaste
      @Sadtaste Před 3 lety +1

      @@ACCautomation Thank you so much❤️

  • @bodzio_stawski187
    @bodzio_stawski187 Před 2 lety +1

    Can we make own name of CH341 device instead of "USB SERIAL CH340" and save this name inside the chip?

    • @ACCautomation
      @ACCautomation  Před 2 lety +2

      Hi bodzio_stawski,
      There is no way that I know of to change this naming in windows. You can change the com port number in windows.
      www.startech.com/en-us/faq/change-com-port-number-windows
      The application that you are using will only refer to this device as a COM number. You can change the name of the device in the application that you are programming it in like Node-RED.
      Regards,
      Garry

    • @bodzio_stawski187
      @bodzio_stawski187 Před 2 lety +1

      @@ACCautomation Ok, so every converter using CH341 (no matter which brand) will have the same name "USB SERIAL..."? It's not such a "flexible" chip:(

    • @ACCautomation
      @ACCautomation  Před 2 lety +1

      @@bodzio_stawski187
      To my understanding you are correct.
      Garry

  • @jakubpalecek7239
    @jakubpalecek7239 Před rokem

    No teda rozhodně nepujdu na nezabezpečené stránky něco stahovat pro celkem drahý hračky,hodně blbej návod,šifrovaná a bezpečná stránka je základ každé firmy,at se daří.

    • @ACCautomation
      @ACCautomation  Před rokem +1

      Souhlasím s tebou. Nejlepší je zabezpečená stránka, nicméně toto je stránka výrobce. Můžete najít jiné stránky s ovladači, ale já osobně používám stránky výrobců pouze pro ovladače.
      Děkuji,
      Garry
      I agree with you. A secured site is the best, however, this is the website of the manufacturer. You can find other sites with the drivers but I personally use the manufacturers' site for drivers only.
      Thank you,
      Garry