Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: stan_w_gifford on Aug 17, 2014, 01:30 am

Title: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: stan_w_gifford on Aug 17, 2014, 01:30 am
Hi,
I have beating my head against the wall all weekend over this.

The board is a DccEle - DCcduino Mega 2560

My environment is MAC OSX 10.9.4

When I connect the board, blink (I assume preloaded) does the flashy thing at 1 second intervals - so the basic board functionality works.

In the IDE there is no serial port.

Looking at System information, I can see the following;

USB2.0-Serial:

 Product ID:   0x7523
 Vendor ID:   0x1a86
 Version:    2.54
 Speed:   Up to 12 Mb/sec
 Location ID:   0xfd130000 / 5
 Current Available (mA):   500
 Current Required (mA):   Unknown (Device has not been configured)

My research says it is a HL-340 which is based on the prolific pl2303 chipset.

I have put in pl2303 drivers (in /system/Library/Extensions - after configuring the .plist to add the vender/device (6790,29987) but still and enormous amount of nothing.

The system log shows

pcscd[644] <Notice>: Non-smartcard device launched pcscd [Vendor: 0X1A86, Product: 0X7523]
whenever the board gets plugged in.

Questions.

1. Does a 'real' mega 2560 use the same chipset for the serial port.

2. Is it possible that the pcscd daemon sees the card but can't configure it (as a smart card) and it does not allow the pl2303 extension to have a go?

I can return the card but after a couple of days on and off trying to get this to work I am starting to get belligerent :-)

Note: Something good did happen with all my screwing around. My Due still works ok and the uno now actually says 'Arduino Uno' in the IDE for the port - which is good when I am developing for both at once.

I will break out a windows 7 laptop and see if I have better success - if nothing else I can have a look at the MEGA windows.inf and see if any clues are in there.

Stan
Title: Re: Clone arduino Mega 2560 - no serial port DccEle - DCcduino Mega 2560
Post by: Peter_n on Aug 17, 2014, 01:55 am
Next time, please add a link to your product.

That clone was cheap ! wasn't it ? If you paid more than 14 dollars, you paid to much.
Search on Ebay for : ch340g mega

It uses the CH340 or CH340G or CH341 chip for the usb-serial.
In linux you don't have to do anything, it works right away.
For Windows 7, you need a driver from http://www.wch-ic.com
The zip file or the exe file.
http://www.wch-ic.com/download/list.asp?id=127

For the mac, you have bad luck.
Perhaps this driver is compatible with the CH340: http://casbi.nl/

The official Arduino Mega 2560 needs drivers that are included in the download of the Arduino software.
The CH340G chip is no where near the official Arduino usb-serial chips. I have seen them only in the last few weeks and bought a board with it myself.
Title: Re: Clone arduino Mega 2560 - no serial port DccEle - DCcduino Mega 2560
Post by: stan_w_gifford on Aug 17, 2014, 02:59 am
Thanks for the hint - after careful examination it is a ch340G

(I would have put a link in  but the only one I had was ebay)

At least more is now known!

Stan
Title: Re: Clone arduino Mega 2560 - no serial port DccEle - DCcduino Mega 2560
Post by: Peter_n on Aug 17, 2014, 03:23 am
More bad luck, I just noticed that the website is asking money for the driver. Without knowing if it will work with the CH340G. I have been searching for other drivers, but didn't find it.

Title: Re: Clone arduino Mega 2560 - no serial port DccEle - DCcduino Mega 2560
Post by: stan_w_gifford on Aug 17, 2014, 04:07 am
Yes - I am like you - reluctant to toss money at someone without even knowing if it is going to work.

Have downloaded the prolific drivers and added an entry to the plist - however it seems the security daemon launches pcsd daemon when it is detected - and I am having 'issues' with my mac when I try to update the securityd plist (to tell it to "Stop doing that!"

Stan
Title: Re: Clone arduino Mega 2560 - no serial port DccEle - DCcduino Mega 2560
Post by: stan_w_gifford on Aug 17, 2014, 05:02 am
Okdeki - progress (of sorts).

Installed ide on windows-7 laptop.

Plugged in card and the drivers configured without me having to do anything - downloaded modified blink and all worked perfectly.

Went back to ebay and notice that some of the clone boards are UNO's - with the ch340 chip. They give a link to two sites one of which has OSX drivers - (It is is Russia and I had a little twitchiness.......)

Installed that driver (from: http://www.5v.ru/ch340g.htm) and had a port configured.

Still have one issue in that I get the following when I send a sketch to the board - but serious progress is being made.

BTW - as A test I ran the serial monitor - when I type random crud and send it to the Mega clone, I get the serial lights to flash - so basic comms is occurring!

Actually looking at the messages, I think the issue is that because the device name has an imbedded space, AVRdude goes nuts!

The actual device is: /dev/tty.wch ch341 USB=>RS232 fa1240





Stan




Arduino: 1.5.7 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 1,518 bytes (0%) of program storage space. Maximum is 258,048 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8,183 bytes for local variables. Maximum is 8,192 bytes.
avrdude: ser_open(): can't open device "/dev/tty.wch": No such file or directory
ioctl("TIOCMGET"): Inappropriate ioctl for device
ioctl("TIOCMGET"): Inappropriate ioctl for device
avrdude: ser_send(): write error: Bad file descriptor

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Title: Re: Clone arduino Mega 2560 - no serial port DccEle - DCcduino Mega 2560
Post by: stan_w_gifford on Aug 17, 2014, 06:26 am
OK Confirmed it is the command line executed for AVRdude

Captured a verbose output and modified the AVRdude line and put rabbit ears around the port e.g

/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P"/dev/tty.wch ch341 USB=>RS232 fa1240" -b115200 -D -Uflash:w:/var/folders/g7/cb6lb6l107j81ql0bzjzhjf40000gn/T/build2502707317549238769.tmp/Blink.cpp.hex:i

Downloaded Blink, reset the mega and all is good.

So.........................

Now to see if I can request a change in the IDE to rabbit ears the AVRdude port line if the port contains imbedded spaces.

Stan
Title: Re: [Semi-Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Peter_n on Aug 17, 2014, 12:02 pm
Okay, drivers for mac do exist.
I always see www.wch-ic.com for the driver, but now I searched for "ch341ser_mac.zip" and found www.wch.cn
The mac driver is here : http://www.wch.cn/downloads.php?name=pro&proid=178
The version is from wch.cn is a newer, you should try that one.
Title: Re: [Semi-Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: stan_w_gifford on Aug 17, 2014, 10:59 pm
Hi Peter,

Thanks for your guidance over the weekend which enabled me to get the board up and running.

I have had a look at the source on github and it would be fairly easy to make the change for OSX  to encapsulate the device name in double quotes (Rabbit ears) for either all cases or when there is an imbedded space in the device name.

I have raised an issue for this however am contemplating pulling master and making the change on my own system and see if it works - if it does I can investigate feeding the changed module back to github - never done anything with github so a lot of 'learning' required. Also, I am hoping that the OSX project will build in x-code - like I say I havn't done this before!

For the moment however I have a number of workarounds being;

1. Back out the Russian drivers I loaded yesterday - that will be fun!
2. Load the drivers you pointed me to - What device did it create on your system BTW?

Another alternative is to make a script up that will rename the device once I have connected and before I load the IDE - don't know if this will work?

Yet another alternative is to make a small shell script up that is specific to the MEGA and points to the existing device and does the AVRDude download.

Finally, on the basis that the card mis-represented itself on ebay is to start a fight and return the card and get a refund of the card and the priority paid postage....... And then get a real mega!

Anyway, once again many thanks for your advice over the weekend.

Stan
Title: Re: [Semi-Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Peter_n on Aug 17, 2014, 11:44 pm
In Windows 7 the driver for the CH340G creates : USB-SERIAL CH340 (COM3)
Manufacturer : www.winchiphead.com
and sometimes: Manufacturer : wch.cn
File : 3.30 built by: WinDDK
Name of fysical device: \Device\USBPD0-14

I don't know if you can return the board. Does the description say something with CH340G ?
You bought a very cheap fake/clone board, and that is what you got.
Title: Re: [Semi-Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: stan_w_gifford on Aug 20, 2014, 04:42 am
Final Update.

The drivers at  http://www.wch.cn/downloads.php?name=pro&proid=178 (http://www.wch.cn/downloads.php?name=pro&proid=178) work well.

In addition some nano's I had ordered arrived and they use the same chipset - the above drivers work with these as well.

FWIW, it appears a lot of the Chinese clone boards are using this chipset for the USB comms - suspect it is a cheap chip.

Also,

I ordered a genuine mega which arrived - and the original seller of the 'dodgy' mega had sent a new board plus a couple of packets of jumper leads to make me happier.

Got to stop this obsession - I now have.....

1 Uno (Genuine)
3 Nano's (as above)
3 Mega's - one real and two clones
1 Due

(and I confess I also have three itsy witsy tiny ones (plug direct into USB and only have a few pins) coming)

Stan
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Dreamkiller on Oct 18, 2014, 11:32 pm
This problem has resurfaced today. I updated the MAC to yosmite os,.... Now the driver above does not work anymore. Anyone with advice??
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Peter_n on Oct 19, 2014, 01:04 am
The website www.wch-ic.com was down, now it is up, but the drivers are still old drivers.
As far as I remember, there were newer Windows drivers, but not newer Mac drivers.

I think you should use linux or Windows. In linux you don't need drivers at all (until they decide to remove it from the kernel because it is almost not used).

I think the CH340G is a good hardware development, but the manufacturer lacks support with good drivers. So I can only conclude one thing: it is a bad product.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Dreamkiller on Oct 19, 2014, 10:37 am
It would be better to double the prize and go get en genuine arduino.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: dmatyukhin on Oct 20, 2014, 02:31 am
Had a problem on OS X Yosemite with CH340G chip. Installed the official driver first - http://www.wch.cn/downloads.php?name=pro&proid=178. This didn't work, so I tried to manually load the installed kext and noticed this error in the console:

20/10/2014 00:43:28.492 com.apple.kextd[19]: ERROR: invalid signature for wch.usb.usb, will not load

After a big of googling found this article - http://www.cindori.org/enabling-trim-on-os-x-yosemite/

Just to summarise. On Yosemite:
1. install the driver
2. Run this:
Code: [Select]
sudo nvram boot-args="kext-dev-mode=1"
3. Restart
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: mafkaan on Oct 20, 2014, 07:09 pm
@dmatyukhin

Thanks for your effort. That did the trick.

mafkaan
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Dreamkiller on Oct 24, 2014, 09:53 pm
Thanks dmatyukhin!!!!!! :)

That worked for me YAY
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Mat13 on Oct 27, 2014, 10:46 pm
Installed that driver (from: http://www.5v.ru/ch340g.htm) and had a port configured.
Thanks Stan
it works for me as well on Win7 64bits

yours
Mat
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Koepi on Oct 28, 2014, 07:21 pm
http://www.wch.cn/downloads.php?name=pro&proid=178.

http://www.cindori.org/enabling-trim-on-os-x-yosemite/

Just to summarise. On Yosemite:
1. install the driver
2. Run this:
Code: [Select]
sudo nvram boot-args="kext-dev-mode=1"
3. Restart
Well - that works only half way through for me. It's highly instable. Though the current driver significantly improves handling as the name is now without spaces. Need to wait for a more stable driver version, though. Thanks for this summary! :)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Oct 28, 2014, 08:07 pm
Drivers are available from the 340 chip manufacturer here:
http://www.wch.cn/downloads.php?name=pro&proid=65

They are also built into Linux.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: spicetraders on Oct 30, 2014, 12:13 am
GREAT SHARE.
I had been doing OK with my NANOs working till yesterday.  Still not clear why after working for days/weeks when others did not my NANO stayed enabled.  But in tearing down one circuit to make something new, the port did not come up.

So after making sure of my driver install and still no working port,  I read and looked at the entry.
But with caution opened the terminal and made the change and yes the Nano is back and running.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: harmvb on Nov 01, 2014, 11:24 pm
@dmatyukhin,

Thanks for the tip, it works!
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: rich1812 on Nov 24, 2014, 09:07 pm
I bought two of these Mega 2560 from China, the seller provided this driver which works well on the 32-it Macs (Up to OS X 10.7 Lion.) if you use the 64-bit Mac for Arduino development, hate to say you might be out of luck :(

For everyone's convenience, I uploaded it here as a zip file. Beware, the read me file is all in Chinese! :)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Hands0n on Nov 26, 2014, 10:49 pm
Well that was a very interesting few days!  :smiley-yell:   For a little while I thought that I was going quietly insane.   :smiley-eek:   :smiley-razz:   But its all fixed now...

I received from an EBay seller a small batch of Arduino Nano ATMega328 boards and ran into this problem immediately.  All of the symptoms described by other posters in this thread I experienced.  Nothing worked.  I must have installed the FTDI drivers dozens of times, but the Arduino Nano would not be seen by my system, a Macbook Air with OS X Mavericks 10.9.5.

It was another thread that gave me the clue - perhaps the Nano doesn't use an FTDI chip at all. And sure enough, it does not.

Etched on the chip are the details; WCH CH340G 2026850406 - so I searched Google for "CH340G" and located this thread at the top of the search.

The Chinese website is very slow and the download of the WCH drivers failed.  But thanks to @rich1812 (above) the file he links to downloads very quickly and installs okay in OS X Mavericks.

Be sure to reboot the Mac after installing the drivers. 

When plugging the Nano in to the Mac's USB port you can check if the driver has loaded by opening up a terminal and entering the command

ls /Dev/tty.wchusb*

My own device shows up as tty.wchusbserial410

So now I can get on with making use of these cheap Chinese Arduino Nano.   Woo hoo!
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: andypugh on Dec 04, 2014, 01:17 am
I am wondering if Yosemite rejects the driver for good reasons. I have found that if you unplug my Nano-clone with this USB-serial converter then the Mac instantly reboots.
(This feature does not meet with my approval)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: andypugh on Dec 04, 2014, 01:27 am
Actually, I was too quick assigning blame. It was nothing to do with the USB-serial at all, and everything to do with the capacitor on the Arduino power supply. (presumably a large current surge when plugging-in caused a rather serious problem. But it shouldn't crash the Mac surely?)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Dec 04, 2014, 01:30 am
The CH340 driver for Windows is fully signed, and built into Windows 8. It is also standard in Linux, so no, Yosemity has no good reason for not liking it. It may be that the manufacturer hasn't paid a fee to Apple but that is it.

I use Linux where the CH340 works like a charm.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: spicetraders on Dec 04, 2014, 04:42 am
Actually, I was too quick assigning blame. It was nothing to do with the USB-serial at all, and everything to do with the capacitor on the Arduino power supply. (presumably a large current surge when plugging-in caused a rather serious problem. But it shouldn't crash the Mac surely?)
self protect mode.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: GaelJ on Dec 05, 2014, 11:14 pm
Thank you rich1812 and all other contributors. I got my first arduino nano today, a clone with the CH342 and was able to compile and upload in a few minutes after quickly find this thread !

I was about to update my Mac to Yosemite, but it looks like I should wait a little bit ...
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: spicetraders on Dec 06, 2014, 12:08 am
The problem is not Yosemite!  Folks report issue with Lion, Tiger, etc.
It is not OSX itself.  Nor is the MACs by themselves the issue.  I have 5 MACs and ten boards all work nicely.
I have more issues occur on my Panasonic and Motorola Toughbooks with the IDE.

I do know and have seen the MACBooks and one MAC desktop shutdown from current overload on USB port.  As I stated a self protect function.

I suspect it is add-on apps or hardware,  or configuration changes.

With that stated Yosemite does affect older apps that have not been upgraded in a few years (third party app support from vendors) but the same thing occurred with lion.  But both versions of the current post IDE function well.



Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: sedatm on Dec 10, 2014, 04:41 pm
SIMPLY FOLLOW THESE ON WINDOWS-7
-> Download http://www.wch.cn/downloads.php?name=pro&proid=5 and unrar (CH341SER\)
-> DISCONNECT USB CABLE OF BOARD
-> RUN \CH341SER\setup.exe
-> CONNECT USB CABLE
Here You Go...
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Dec 10, 2014, 09:34 pm
On Windows 8 and Linux the drivers are built in, so just plug and go...
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: CORBELmanu on Dec 15, 2014, 12:18 pm
I hope not to be off topic, but here's what I found:

On forum below, I found the driver for my arduino nano V3  card with a chip CH340g for USB-serial link (not a FTDI chip, apparently Chinese clone chips are automatiqement blocked by last updated windows and FTDI, but hey I'm not the right place to mention here)

http://club.dx.com/forums/forums.dx/threadid.635690

Fenchurch Thursday, December 02, 2010 4:43 PM Reply
Found this to work on Win7 64bit probably works with other os's as well.

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

Thank you Fenchurch !!!!!!!

I said that this driver works under Windows 7 64 bit.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: howard2k7 on Dec 20, 2014, 08:48 pm
I got an Ardunino Nano clone realy cheap off ebay and hadn't done any research before.

On my Dell/W8.1 Laptop the driver didn't install properly. Had a "USB2.0-Serial" unknown hardware thing when i plugged in the board. It got an 340G Chip on it so after trying out the drivers from the Arduino IDE and another FTDI-whatever driver which both did not work finally


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



this one worked like a charm. Plug in the board, fire up the setup.exe and click "Install" and you got yourself a new COM Port for communicating with your new toy.

Thanks for the help in this thread, even if it talked about Mac OS in the first place   :smiley-mr-green:
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: kigster on Jan 01, 2015, 04:11 am
I put up a blog post summarizing findings in this thread and several others:

http://kiguino.moos.io/2014/12/31/how-to-use-arduino-nano-mini-pro-with-CH340G-on-mac-osx-yosemite.html (http://kiguino.moos.io/2014/12/31/how-to-use-arduino-nano-mini-pro-with-CH340G-on-mac-osx-yosemite.html)

Hopefully someone will save time, and not waste an hour like I did :)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Jan 01, 2015, 12:42 pm
Well, when I sell Arduino compatibles with CH340 chips on them I just put a link in the listing for them.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: dizzwold on Jan 05, 2015, 02:16 pm
 I have one of these cheep 2560 clones with the CH340 chip set. I installed the driver CH341SER_MAC, but sometimes i plug the board in i get the following message and have to manually shutdown my Imac;

 "You need to restart your computer. Hold down the power button until it turns off, then press the power button again".

 I've googled this, and apparently it's called a "kernal panic", and related to quote below;

Actually, I was too quick assigning blame. It was nothing to do with the USB-serial at all, and everything to do with the capacitor on the Arduino power supply. (presumably a large current surge when plugging-in caused a rather serious problem. But it shouldn't crash the Mac surely?)
How can i get around this / what is the solution to the above?

 Use an external power supply, so not using the USB power, or could i hack a USB cable with resistors on the power lines?

 Any input welcome.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: paulsvang on Jan 10, 2015, 07:02 am
I ran into the same problem with this on my iMac Yosemite.  I just opted to not use it.  My Imac keeps shutting off when plugged in.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: GiuCan on Jan 16, 2015, 12:44 pm
Hi Everybody,

I just got a arduino nano clone with chip ch430. I installed the driver as in

http://kiguino.moos.io/2014/12/31/how-to-use-arduino-nano-mini-pro-with-CH340G-on-mac-osx-yosemite.html

and it worked nicely with the blink script. I connected a gyroscope gy521 and it was still working when suddenly the serial port had disappeared from the serial port menu. I closed and opened arduino again and the port was no longer there. I rebooted and still no port.

I reinstalled the driver few times and rebooted few times. No chances to get it back.

Has anyone ended up in the same problem?

Thanks for sharing,

G
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Jan 16, 2015, 03:16 pm
Check the last few lines of output for dmesg when the device is plugged in. (Open terminal, run dmesg, plug it in and leave for 1 minute and run dmesg again. See what is new)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: mikofan on Jan 16, 2015, 07:14 pm
try downloading this driver

http://mysolution.me/video1/cutting%20plotter/Cutter%20Plotter%20Instruction/Cutter%20Plotter/5-USB%20Connection/CH341SER.rar

Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: GiuCan on Jan 16, 2015, 07:22 pm
try downloading this driver

http://mysolution.me/video1/cutting%20plotter/Cutter%20Plotter%20Instruction/Cutter%20Plotter/5-USB%20Connection/CH341SER.rar


Erm I have Mac... ;(
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: fejodor on Jan 19, 2015, 11:57 am
I've just tested a cheap Nano-clone with a CH340G-chip (this one (http://www.ebay.ch/itm/191452455413)). Works out of the box like a charm with Arduino IDE 1:1.0.5 on Ubuntu 14.04. For all those who still have problems with the chip: Why don't you create a Linux live system on an old usb flash drive, possibly based on Lubuntu (http://lubuntu.net/), to upload the code. This might sound like a long shot but it's actually not that much work. And it would keep you from hassling with those strange third-party drivers...
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Jan 19, 2015, 07:54 pm
I don't use Linux live stuff... I have Linux installed by default... :) And your right it just works.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: evanhu on Jan 26, 2015, 08:02 pm
Thank you so much! dmatyukhin

I just got several cheap DCcduino boards from China and it works on my mac.

Just to summarise. On Yosemite:

1. Install the driver http://www.wch.cn/downloads.php?name=pro&proid=178

2. Run this(Terminal):

Code: [Select]

sudo nvram boot-args="kext-dev-mode=1"

3. Restart
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: zasf on Jan 27, 2015, 09:29 pm
Had a problem on OS X Yosemite with CH340G chip. Installed the official driver first - http://www.wch.cn/downloads.php?name=pro&proid=178. This didn't work, so I tried to manually load the installed kext and noticed this error in the console:

20/10/2014 00:43:28.492 com.apple.kextd[19]: ERROR: invalid signature for wch.usb.usb, will not load

After a big of googling found this article - http://www.cindori.org/enabling-trim-on-os-x-yosemite/

Just to summarise. On Yosemite:
1. install the driver
2. Run this:
Code: [Select]
sudo nvram boot-args="kext-dev-mode=1"
3. Restart
thanks, after following your advice, it shows up under /dev/tty.wchusbserial410
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: RobvdVeer on Feb 07, 2015, 06:27 pm
Another thank you for this fix. I can confirm it works on Yosemite 10.10.3 beta.  8)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: spondootre on Feb 08, 2015, 11:24 pm
I realise that this is an older post but thank you!!  Driver and code works fine with Yosemite, bought x3 "disposable" uno from eBay as didn't fancy experimenting with my original and they wouldn't work with mac and the CH340g chip but this worked a treat, thanks for sharing.

Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: dominate on Feb 09, 2015, 06:13 pm
Hi,

Do you have usb chip driver files? From the link below i cant reach it i think link is broken :(.

http://www.wch.cn/downloads.php?name=pro&proid=178
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Patbar on Feb 26, 2015, 12:36 am
SIMPLY FOLLOW THESE ON WINDOWS-7
-> Download http://www.wch.cn/downloads.php?name=pro&proid=5 and unrar (CH341SER\)
-> DISCONNECT USB CABLE OF BOARD
-> RUN \CH341SER\setup.exe
-> CONNECT USB CABLE
Here You Go...
DCcduino MEGA 2560 with WIN7_64 ... I tried installing CH341SER.EXE but still does not recognize the device ...
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Feb 26, 2015, 01:38 am


DCcduino MEGA 2560 with WIN7_64 ... I tried installing CH341SER.EXE but still does not recognize the device ...
Where did you get the download from?
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Patbar on Feb 26, 2015, 10:57 pm
Where did you get the download from?
From Here http://www.wch.cn/downloads.php?name=pro&proid=5
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Feb 26, 2015, 11:58 pm
Well that is the correct place though you can also change the end of the link to 65 for a slightly different package.

What happens in device manager when you connect the device?
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Patbar on Feb 27, 2015, 12:14 am
Well that is the correct place though you can also change the end of the link to 65 for a slightly different package.

What happens in device manager when you connect the device?
USB Device not recognized.
From the Device panel :"Unknown device"   :(
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Feb 27, 2015, 01:23 am
Ok, and presumably it goes away when it is unplugged?

Download the zip file version of the driver, unzip and then update the driver, point it at the extracted zip file and see if that helps.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Patbar on Feb 27, 2015, 10:52 am
Ok, and presumably it goes away when it is unplugged?

Download the zip file version of the driver, unzip and then update the driver, point it at the extracted zip file and see if that helps.
I downloaded the .zip files and reinstalled the driver but the problem remains . when I remove the DCcduino the unknown device shown in the device panel disappears
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Patbar on Feb 27, 2015, 11:21 am
the same port with the same cable works well with the arduino UNO ( Sunfounderclone ).
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Patbar on Feb 27, 2015, 12:28 pm
It Works! but really do not know how I did it ... I have installed and uninstalled several times CH341SER ... then changing input usb win7 has recognized the device as  " USB -serial CH340 "!

Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ArduinoCC_Guy on Mar 01, 2015, 08:13 pm
Thank you Stan and Peter. I hated the thought of booting to Windows every time I wanted to program the Arduino.

Take care,
Pete
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: rich4321 on Mar 02, 2015, 02:48 pm
Had a problem on OS X Yosemite with CH340G chip. Installed the official driver first - http://www.wch.cn/downloads.php?name=pro&proid=178. This didn't work, so I tried to manually load the installed kext and noticed this error in the console:

20/10/2014 00:43:28.492 com.apple.kextd[19]: ERROR: invalid signature for wch.usb.usb, will not load

After a big of googling found this article - http://www.cindori.org/enabling-trim-on-os-x-yosemite/

Just to summarise. On Yosemite:
1. install the driver
2. Run this:
Code: [Select]
sudo nvram boot-args="kext-dev-mode=1"
3. Restart
Hi dmatyukhin, this cheap Chinese imitation is driving me crazy. I have the same problem getting the stupid USB driver to work on the Mac. The driver works fine on OS X Lion, but not the 4-bit OS X Yosemite,
I followed your method and it still doesn't work. I am wondering when you said yours works, do you have the app Trim installed? Is it necessary to have Trim prior to apply your method?

Thanks in advance.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Akku21 on Mar 04, 2015, 03:48 pm
Hi,

may I ask for help? I have DCcEle MEGA 2560 board, i downloaded and installed the given driver for win7. My Hardware manager shows: USB-Serial CH340 (COM10)
I set Tools-> Port to COM10

still i cant upload anything to my board.

This is what i get: not in sync: resp=0x01 avrdude: stk500_recv(): programmer is not responding

Thanks in advance

regards Akku
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Mar 04, 2015, 09:58 pm
Reboot the machine, then try running the IDE on its own and see if that works.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Akku21 on Mar 04, 2015, 10:14 pm
Using the IDE I will get that timeout-error message I posted. Also rebooting does not help.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Mar 04, 2015, 10:48 pm
Have you tried the loop back test? It is at the top of the forum.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Akku21 on Mar 04, 2015, 11:46 pm
Mhh just tried it, and my input is not echoed.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Mar 04, 2015, 11:49 pm
I suspect that either you have a driver issue, (Not using the right com port possibly) or a USB cable issue...

Try a different cable, and double check which ports are available under tools->port with the board unplugged and see what is there with one plugged in. It is the new port that you should be testing.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Akku21 on Mar 05, 2015, 10:04 am
Hi I tried another usb cable/port still did not work. Although the same cable and port works for programming other µc using USBTinyISP. My Device manager tells me: USB-Serrial CH340 (COM10) and i choose COM10 in the dropdownmenu from the arduino IDE.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Mar 05, 2015, 11:55 pm
It is odd that the loopback test doesn't work.

Try contacting the vendor.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: simiae on Mar 16, 2015, 01:39 pm
HI,

is there anybody with win7 and arduino uno ch340, who is able to use it as ISP? I had original uno, fried it (obviously), bought the clone. It worked right out of the box, no problem to upload blink. But I am unable to make it work as ISP to program attiny45. Tried CH341SER drivers, 1.6.1 version, no hlep.

...
avrdude: Version 6.0.1, compiled on Jan 15 2015 at 16:58:43
        Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
        Copyright (c) 2007-2009 Joerg Wunsch

        System wide configuration file is "C:\Program Files\Arduino/hardware/tools/avr/etc/avrdude.conf"

        Using Port                    : COM7
        Using Programmer              : stk500v1
        Overriding Baud Rate          : 19200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x03
avrdude: stk500_recv(): programmer is not responding

....etc

please help :)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: milky3456 on Mar 24, 2015, 10:39 pm
Hi guys... i really need help, i'm struggling with this... i bought arduino nano clone from e-bay and FTDI chip is CH340G. I cannot install drivers on my computer, i tried everything but still it says error code 10. I tried to disable driver enforsment, i tried 3 different drivers nothing... sometimes it installs drivers and asks me to restart my computer and i restart it and nothing.. sometimes it wont even install it, always says eroor code 10 "Device wont start" or something like that, if someone please could help me pleeeaseee :( i used this guys tutorial and drivers that are in the description.
https://www.youtube.com/watch?v=SPdSKT6KdF8
P.S. sorry for bad english i'm from Europe 
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: milky3456 on Mar 24, 2015, 10:39 pm
Hi guys... i really need help, i'm struggling with this... i bought arduino nano clone from e-bay and FTDI chip is CH340G. I cannot install drivers on my computer, i tried everything but still it says error code 10. I tried to disable driver enforsment, i tried 3 different drivers nothing... sometimes it installs drivers and asks me to restart my computer and i restart it and nothing.. sometimes it wont even install it, always says eroor code 10 "Device wont start" or something like that, if someone please could help me pleeeaseee :( i used this guys tutorial and drivers that are in the description.
https://www.youtube.com/watch?v=SPdSKT6KdF8
P.S. sorry for bad english i'm from Europe  
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: ChilliTronix on Mar 25, 2015, 12:47 am
You may have noticed that your Nano is not in fact a Mega 2560.

You need to load the CH340 drivers. They are available here (http://www.wch.cn/download/CH341SER_EXE.html).
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: polymorph on Mar 25, 2015, 12:54 am
milky3645, you should start your own thread. You'll get a lot more help that way, help relevant to your problem.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: kelvinmead on Apr 02, 2015, 01:29 am
Thank you so much! dmatyukhin

I just got several cheap DCcduino boards from China and it works on my mac.

Just to summarise. On Yosemite:

1. Install the driver http://www.wch.cn/downloads.php?name=pro&proid=178

2. Run this(Terminal):

Code: [Select]

sudo nvram boot-args="kext-dev-mode=1"

3. Restart
This is a perfect summary of what everyone else is saying, but for some reason its just not playing properly on my system.

i have a netbook with xp on it, have installed the ch340 drivers, and all is good, but on my yosemite machine 10.10.2 the system is just plain refusing to acknowledge the drivers. i can see the unit on the system information tab, so it has power (plus the lights shine and all)...

i think the only difference is that my 340g is a separate board plugged into my 'duino.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: dizzwold on Apr 03, 2015, 03:03 pm
Actually, I was too quick assigning blame. It was nothing to do with the USB-serial at all, and everything to do with the capacitor on the Arduino power supply. (presumably a large current surge when plugging-in caused a rather serious problem. But it shouldn't crash the Mac surely?)
Hi. What was your fix for this problem?

Dizzwold.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: andypugh on Apr 03, 2015, 07:21 pm
Hi. What was your fix for this problem.
The fix for _my_ problem was to remove the capacitor from the power supply pins.

(I should stress that this was an external capacitor to try to mask a problem with HF noise on a 5V PSU.)
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: dizzwold on Apr 06, 2015, 10:23 pm
Hi,

 So this was not a cap on the Arduino?

 Every time i plug this 'Arduino clone, with the win chip head', it crashes my imac?

 I previously wrote, that having an external power source solved the problem, but it doesn't.

 Any thoughts?

Dizzwold.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: andypugh on Apr 07, 2015, 04:15 pm
I have no good suggestions.
You could try hibernating the iMac, then plugging in the Arduino, then waking it back up again. That might at least prevent uncontrolled shut-downs.

As I said, no _good_ suggestions.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: markyin on Apr 15, 2015, 10:38 am
I gave the manufacturer a call just now. They are dealing with this problem now but Apple did not reply them.(For signature). But they reply me an email about a solution. In the email they said a website CodeBender.cc has resolved this problem and don't need to reboot. 

https://codebender.cc/

It seems like a web browser based IDE but I will test it tomorrow.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: markyin on Apr 16, 2015, 12:30 am
It really works on https://codebender.cc/. I am using Mac Yosemite 10.10.2 and DCcEle Dccduino UNO. It works fine in codebender's web IDE.

The driver seems cant work out of CodeBender.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: migrral on May 12, 2015, 08:04 pm
It really works on https://codebender.cc/. I am using Mac Yosemite 10.10.2 and DCcEle Dccduino UNO. It works fine in codebender's web IDE.

The driver seems cant work out of CodeBender.
Did you previously install the manufacturer's drivers ( ie ch340 driver?), then installed codebender drivers, and then codebender uploaded successfully the test project?
If not, what did you do? I have yet to find a way to program a cloned arduino nano without my mac's touchpad freezing or erratically stopping communication with the arduino.
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: fiepii on Sep 04, 2015, 12:34 pm
I gave the manufacturer a call just now. They are dealing with this problem now but Apple did not reply them.(For signature). But they reply me an email about a solution. In the email they said a website CodeBender.cc has resolved this problem and don't need to reboot. 

https://codebender.cc/

It seems like a web browser based IDE but I will test it tomorrow.
Thank you soooo much markyin!

I know it's an old thread but apparently people are still reading this.
For everyone still struggling after hours installing drivers and stuff -> codebender somehow did all the work for me!
I have no idea how but somehow they got my china 340 up and running on OSX Yosemite El Capitan beta (OSX 10.11)
I'm really doing my best with my english skills ;)

I don't even need codebender anymore, all of a sudden Arduino 1.6.5 recognized my Board as "/dev/cu./wchusbserial410" Yeah!
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Hiiek on Sep 08, 2015, 06:28 pm
The codebender.cc CH340X drivers worked for me. Now my OSX (10.11b - El Capitan) recognizes Chinaduino MEGA2560 (CH340G) and assigns a serial port! Wahoo!
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Kim-Holland on Sep 27, 2015, 04:39 pm
I'm a real newbie to all this, so when I purchased some nano clones I also read the comments stating that additional drivers were required.

My very sincere thanks to rich1812 and HandsOn and their conversation of 2014 and sourcing the way through. I installed the drivers for the CH340 from the link given and presto, after a re-boot the new comms port was there (along with a warning re the software etc). It worked first time, great work.

[I'm only using the cheap boards to flash LEDs on model buoys, nothing complicated at all, but the sequences have to be spot on with timings. I wanted to enable each as an individual, I've already managed to run them all from one Mega unit but that entailed lots of wires. At £4 per nano board it is possible for each buoy (13 in a set) to have its own unit.]

Reading on through this thread it appears that more people are using this to solve the clone programming. I'm on a mac with OS X 10.9.5  so thanks for the heads up on the latest Mac ops systems (Yosemite etc). I will encounter them soon.

A quick question - how stable are these clone boards and what user life is expected?

Aye, Kim.   [Isle of Man]
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: imbatronics on Oct 04, 2015, 09:29 pm
Hi all!

I am using osx 10.10.2 and have a custom board with atmega256 on it. I have burnt the arduino bootloader onto the chip. Attempting to program it through PL2303 USB to UART converter.

I have had problems doing so, avrdude says problem communicating with programmer etc. etc. as everyone has experienced.

I was able to program the chip nicely using the codebender.cc site (thanks very much for the suggestion!)

I noticed that I was able to program the chip once using the Arduino IDE, but then never again, which lead me to the following.

I think I may have found the problem though: When I enabled verbose output from avrdude for uploading, I noticed that the received data would not be the expected data from the bootloader, but it would read in data that the previous code was printing to the serial port. This would confuse avrdude.

What I then did was use codebender to upload a blank sketch (without any Serial.print() ). I was then able to program the atmega256 using the PL2303 chipset USB to USART converter.

While not ideal, this will allow the use of the arduino ide to be used
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: shooking on Oct 25, 2015, 08:57 pm
Hi Imbatronics

I got two of these CH346g MEGA2560s off eBay recently. I am not on Mac but I think something similar to what you suggest. Windows7 has problems with these devices, as does my KALI Linux and Windows XP. But suprisingly the 1.01 Arduino IDE on Raspberry Pi 2 recognised as a /dev/ttyUSBn. However, attempts to load code resulting in the sync from avr_dude.

Anyhow, after finding this thread, and some more digging, I found I could use my 1280 to check and program a boatloader for these chips.

See http://www.gammon.com.au/forum/?id=11635 for Nick's brilliant programs.

git clone onto your box
Run his "fixup" shell script
Wire up the 6 pin ICSP, recalling to put pin 5 on target ICSP to pin 10 on the mega1280.
Run his boot verification
Complete rubbish on the chip.

Load his bootloader onto it (this verifies the bootloader). And then one can load a sketch onto the Mega 2560 using IDE and it works!!!

But, and I think this is related to your observations, only once!
Try to load another program and it fails with the sync.

I reattached to the 1280 and used Nick's program to verify. Bootloader is good!
But wont sync.

Reloading the 2560 will work again -- then stop.

So I have a potential workaround.

1 - keep the 1280 as the "rescue me" for the 2560s
2 - develop my code on the 1280 until I am ready to commit
3 - using the rescued 2560, load the 1280 code onto it - hoping it loads first time.

goto 1 if I want to load another sketch on it.

I have written to the eBay folks I bought it from. Depending on their answer (and more research based on your hints) either I will get it to work better, or accept my workaround, learn that cheap is not always best, given them a poor survey, expect the rant this will entail, and move on -- RPi is probably where I want to be anyhow,

Regards
Steve H
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: Khalid on Nov 26, 2015, 02:00 pm
OMG..Thanks You guys saved my arss..I am up and running with cheap ATMEGA2560...
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: karlboll on Mar 03, 2016, 11:55 am
Had this issue and saw the download link for the CH341SER.exe was gone. Here they are at waybackmachine if anyone needs them https://web.archive.org/web/20140703181238/http://wch-ic.com/download/list.asp?id=126
Title: Re: [Solved] Clone arduino Mega 2560 - no serial port DCcduino Mega 2560
Post by: bryonb on Jul 23, 2017, 10:57 am
Hi,
This is an old thread, but for those like me that are not keen on installing Russian, Chinese driver (or any driver not from a reputable source for that matter) I have an alternate solution I stumbled across today.

I use a USB isolator I use to protect my PC when I am working with high-voltages on the Arduino. It prevents accidentally damaging your PC through high-voltages injected into the USB port.

I discovered today that putting the USB isolator in line with communicating with the Mega 2560 worked without the need for the CH346G driver.

My isolator is based on the Analog Devices iCoupler Technology ADuM4160. You can pick them up for about $10 on eBay.