Results 1 to 9 of 9

Thread: CH340-USB/RS232 Driver

  1. #1
    Join Date
    Jan 2009
    Location
    Yuma, AZ
    Posts
    1,550
    Post Thanks / Like

    Default CH340-USB/RS232 Driver

    Hi:
    FYI: I purchased 3 USB to RS232 adapters and found that the supplied driver disc does not have the correct drivers on it.

    The chip used in the converter is the CH340 and trying to find the correct driver for this thing is like trying to walk through a brick wall. The RS232 plug housing has 340 on it and is dark green in color. It is from China (where else?).

    Most of the sites that said they had the driver for it wanted bucks for it or register or some other obstacle to get it.

    Finally, deep down in a thread on another forum, I found the driver for this thing. It is from the manufacturer and is on their website. It is actually for the CH341 but works perfectly.

    http://www.winchiphead.com/download/CH341/CH341SER.ZIP

    Once the driver is installed, the computer recognizes it as the CH340.

    Hope this helps anyone else who has had this problem.
    Idun



    Lotsa' Patience! (Some days you can't win, the others you lose, and forget about the rest)

    Some mornings I wake up GRUMPY and other days I let her sleep!

  2. #2
    Join Date
    Dec 2009
    Location
    Boones Mill,VA
    Posts
    407
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    same thing happen to me
    2 (Renard 64) done
    3 (Renard 24 HV) done
    1 (Renard 48) done
    6 (Renard 16 SS) done
    1 (Renard 64) to build
    16 (SSR EZ) to build
    2 (mighty mini)done
    408 channels

  3. #3
    Join Date
    Dec 2007
    Location
    Treasure Valley, Idaho
    Posts
    2,621
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    Sold

    Great news! I bought one of those a couple of years ago, and couldn't ever get it to work. So........

    F/S - Chineese USB to RS 232 converter $5.00 + mailing (no PP chg.). Use the driver in the link below.
    Please PM if interested.
    USB to RS232 Converter.jpg++
    Last edited by rstehle; 01-10-2011 at 03:34 PM.

  4. #4
    Join Date
    May 2011
    Posts
    2
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    Hi,
    My USB does not talk to the PC. I think I don't have the right settings on the com port. I am using com3. What should the settings on the com like, such as stop value, error bit value, etc. ? Thanks for any help.

    MJYip

  5. #5
    Join Date
    Apr 2009
    Location
    Denmak, 4700 Næstved
    Posts
    1,038
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    Quote Originally Posted by MJYip View Post
    Hi,
    My USB does not talk to the PC. I think I don't have the right settings on the com port. I am using com3. What should the settings on the com like, such as stop value, error bit value, etc. ? Thanks for any help.

    MJYip
    Can your pc see the com port ?

    or is it vixen there is not talking to your controller ?
    [I]Christmas - Light[/I]

    [COLOR="Red"]2011:[/COLOR]
    [FONT="Courier New"][SIZE="2"]6 x Renard 24 DC (My own design)[/SIZE][/FONT]
    [FONT="Courier New"][SIZE="2"]2 x Renard 24 V3.3[/SIZE][/FONT]
    [FONT="Courier New"][SIZE="2"]2 x Renard 48 LSD[/SIZE][/FONT]
    [FONT="Courier New"][SIZE="2"]1 x Renard 64[/SIZE][/FONT]

    [COLOR="Red"]100 % led lights[/COLOR]
    Thanks to all there is helping me ;)
    [URL="http://www.pcjulelys.dk"]http://www.pcjulelys.dk[/URL]

  6. #6
    Join Date
    May 2011
    Posts
    2
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    I should say my LED sign board using USB/SERIAL PORT does not talk o my PC. Window XP device manager recognize the USB/Com port, but the USB sign software (i.e., the PC) can not communicate with the sign controller via the usb port. Thanks.

  7. #7
    Join Date
    Sep 2009
    Location
    Champlin MN
    Posts
    210
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    Helped me with a unrelated Volkswagen issue.....

    Thanks,
    Tom

  8. #8
    Join Date
    Jun 2014
    Posts
    1
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    There are more 'up-to-date' CH340 Drivers now on the manufacture's site. See http://www.wch.cn/downloads.php?name=pro&proid=178. Although it states it is for the CH341 it also works with the CH340. I have only tested the Windows drivers. There are drivers also for Linix and Mac.

  9. #9
    Join Date
    Jan 2015
    Location
    Redmond, WA
    Posts
    1
    Post Thanks / Like

    Default Re: CH340-USB/RS232 Driver

    Wanted to simply get this shared out after getting this thing to work. I bought a USB2Relay controller using the same chipset above and found scatterings of information on it's use - so I figured I would locate a relevant and post example BASH code in case anyone else needed to get one of these USB Relays working... (The Mfg site is very sparse on code support)

    I didn't see any "Code Block" controls for this forum - so forgive the lack of that...

    Hope this helps others using this little Arduino 'compatible' Relay Controller knock off from China?

    B04-LCUS-1-type-USB-intelligent-control-switch-USB-relay-module.jpg

    #!/bin/bash
    # Sends a open/close param command to a USB relay controller
    # via its virtual serial port enumerated as Linux /dev/ttyUSB{x}
    # Usage: bash_relay.sh COMMAND TARGET
    # bash_relay.sh open /dev/ttyUSB1
    # bash_relay.sh close /dev/ttyUSB1
    #
    # Mfg Style: bash_relay.sh TARGET START_ID SWITCH OP_DATA CHECK
    # Open:
    # bash_relay.sh /dev/ttyUSB1 A0 01 01 A2
    # Close:
    # bash_relay.sh /dev/ttyUSB1 A0 01 00 A1

    # If you have multiple TARGET plugged into a USB hub (or different OS types):
    # Linux Mint14 : /dev/ttyUSB0
    # Linux Mint14 : /dev/ttyUSB1
    # Linux Mint14 : /dev/ttyUSB2 . . . etc
    # Mac OS X : /dev/tty.usbmodem00007011
    # BeagleBone Black: /dev/cu.usbmodem00007011
    # Windows CYGWIN : '\\.\USBSER000'

    # Mfg's Command Example:
    # Open the USB switch: A0 0101 A2
    # Close the USB switch: A0 0100 A1

    COMMAND=$1
    TARGET=$2
    byte() {
    printf "\\x$(printf "%x" $1)"
    }

    if [ $COMMAND = "open" ]
    then
    echo "Simple OPEN . . ."
    {
    byte 0xA0
    byte 0X01
    byte 0x01
    byte 0xA2
    } > $TARGET
    fi

    if [ $COMMAND = "close" ]
    then
    echo "Simple CLOSE . . ."
    {
    byte 0xA0
    byte 0X01
    byte 0x00
    byte 0xA1
    } > $TARGET
    fi

    if [[ $COMMAND != "close" && $COMMAND != "open" ]]
    then
    TARGET=$1
    START_ID=$2
    SWITCH=$3
    OP_DATA=$4
    CHECK=$5
    echo "Mfg style $START_ID $SWITCH $OP_DATA $CHECK > $TARGET . . ."
    {
    byte 0x$START_ID
    byte 0X$SWITCH
    byte 0x$OP_DATA
    byte 0x$CHECK
    } > $TARGET
    fi

    # ################
    # MORE INFORMATION
    # ################
    # USB Relay Module USB intelligent control switch.
    # http://www.aliexpress.com/item/CH340...906532134.html

    # Information
    # 1, onboard high performance micro controller chip
    # 2, onboard CH340 USB control chip
    # 3, onboard power LED indicator and relay status LED indicator
    # 4, onboard 5V, 10A/250VAC, 10A/30VDC relay, relay’s life is so long, continuous pull 100000 times
    # 5, module and relay with overcurrent protection diode freewheeling protection function
    # 6, PCB size: 43.6 (mm) x16.4 (mm)

    # USB switch default baud rate for the communication: 9600BPS
    # USB switch protocol

    # Data (1) - start ID (default is 0xA0)
    # Data (2) --- switch address code (the default is 0x01, marking the first switch)
    # Data (3) - operating data (0x00 is "off", 0x01 is "open")
    # Data (4) - check code

    # #############################################
    # MFG ARDUINO CLONG KERNEL PATCHING INFORMATION
    # #############################################
    # NOTE: This is not needed, but is included if you are wanting to directly hack the code and
    # change the CH340 as any ATMEL chip using the Arduino IDE. You will need to patch the Linux
    # kernel to do so...

    # LINUX CH340 KERNEL PATCH (for programming as an Arduino - but not needed for this example script.)
    # Linux patch and driver talked about here :
    # http://stackoverflow.com/questions/2...works-in-linux

    # #############################################
    # KERNEL PATCH FOR LINUX 2.6.25 to 3.13.x (Required for programming only and NOT required for use AS IS from Mfg...)
    # #############################################
    # See: if anyone have problems with ch341 drivers on Ubuntu 14.04 I have a patched driver and it works with 3.13.X kernel:
    # https://www.mediafire.com/?3ph5x6ttc7ddde4
    # thanks to:
    # http://stackoverflow.com/questions/2...works-in-linux

    # Also PATCH from (This is one I have used with success on Mint 14):
    # if you want to install the patched driver, you have to run the ins.sh in the follow file:
    # https://www.mediafire.com/?61hpz0c59mqlf6a

    # --OpenSource 2015 All rights reserved. (USE AS IT - NO GUARANTEE)
    # bash_relay.sh : Example power relay command script...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •