K8200 USB communication problems

Hello,
I just built the printer, apparently successfully so far, but i have troubles connecting to it from repetier.
When i click the connect button there is a lot going on in the log like so:
[color=#0040FF]02:34:43.985 : ok T:23.4 /0.0 B:22.5 /0.0 @:0 B@:0
02:34:43.985 : N0 M110 *3
02:34:43.985 : N1 M115 *7
02:34:43.985 : N2 M105 *5
02:34:43.985 : N3 M111 S6 *68
02:34:44.016 : ok
02:34:44.016 : FIRMWARE_NAME:Marlin V1; Sprinter/grbl mashup for gen6 FIRMWARE_URL:http://www.k8200.com/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:K8200 EXTRUDER_COUNT:1
02:34:44.016 : ok
02:34:44.016 : N4 M220 S100 *69
02:34:44.016 : ok T:23.4 /0.0 B:22.5 /0.0 @:0 B@:0
02:34:44.016 : N5 M221 S100 *69
02:34:44.016 : N6 M111 S6 *65
02:34:44.032 : Error:Line Number is not Last Line Number+1, Last Line: 2
02:34:44.032 : Resend: 3
02:34:44.063 : ok
… i took out some lines here… there where many more…
02:34:44.360 : ok
02:34:44.360 : Error:Line Number is not Last Line Number+1, Last Line: 5
02:34:44.360 : Resend: 6
02:34:44.360 : Resend: N4 M220 S100 *69
02:34:44.360 : Resend: N1 M115 *7
02:34:44.360 : Resend: N2 M105 *5
02:34:44.360 : Resend: N3 M111 S6 *68
02:34:44.376 : ok
02:34:44.376 : Error:No Line Number with checksum, Last Line: 5
02:34:44.376 : Error:Line Number is not Last Line Number+1, Last Line: 5
02:34:44.376 : Resend: 6
02:34:44.376 : Receiving only error messages. Stopped communication.
02:34:44.657 : ok
02:34:44.657 : Error:No Line Number with checksum, Last Line: 5[/color]

The communication stops, and the printer goes to disconnected state again. In some occations ist went on so long, that repetier crashed…

The FTDI driver is installed, the device shows in the manager.
The leds are lighting up and going out as they are supposed to.
While this “communicstion” is going on they are flashing…
Baud rate is at 250000.
I checked over all the settings several times, but im sure i got them right…
Tried different USB Cables, ports, etc.
Voltage from power supply is about 15V
I tried several times, did resets aso…
I didnt mess with the board in any way, just connected it…
I am using the Repetier V0.84 as specified in the manual

Can you please help me in any way?
Incompability of some sort?
Looks like they are trying to communicate but just dont understand each other???
What else could i try?

Thanks for any help!

Hi Snowbo,

The one thing you can try is to lower the communication speed to 115200 and you can change this in the configuration.h of the firmware. Change this in repetier host and in the firmware and try again. Mostly you want to keep the communication speed to 250000 so maybe first you have to check that the communication cables (USB cable) as far away as possible from the power supply cables and the power supply itself. This is a switching power supply and it always radiates much rf crap that can disturb your serial communications that happen through your USB cable.
Sometimes it is also helpfull to place a ferrite clamp at the beging and end of the USB cable.

Try this and maybe it is one of the solutions that helped in my case.

Cheers,

Walter

Hi Walter,

thanks for the reply.
I got me one of those expensive super tripple shielded, golden,… USB cables today and also separated the Power source and USB as good as possible (power cable and supply unit are behind a solid iron radiator…), but no improovement in the situation.
I would try lowering the com speed, but how can i change the setting in the firmware???

I will try reinstalling the ftdi driver and also using a newer version of repetier just to see what happens.

Greetz,
Nick

Tried both, same issues in different combinations of driver and repetier software…

I will see if i have the same issues connected to my Win 7 notebook, to see if it is pc / os related (my currently used PC runs Win 8.1 Pro…)

If that doesnt show an effect I will try to do a firmware update to see if that helps and try playing with the baud rates…

Any help would be great…

You could try to reduce the Received Cache Size in the printer settings from 127 to 63

Ok, I tried the lot…

Changing the Cache Size - no change
No matter what Computer / OS I use, same behaviour.

On two occasions I was able to connect to the printer for a short time, despite all the errors constantly coming up in the log, but only after hitting connect, and then pressing the reset button on the board. Just setting everything up and pushing connect wont work…
That allowed me to test the movement functions and heaters, and I was able to calibrate it. Never lasted longer than 10 min before the communication was lost again and I got no reaction any more, but I know now that the printer itself works.

I tired flashing the newest firmware, but it wont upload, every time it comes to uploading I get a connection timeout error. Sometimes the LED next to the micro will light up constantly, and sometimes i get one or two flashes from the green led next to the connector, but thats it… no blinking as described in the manual. ( yes, I was holding the programing pins connected the whole time I tried uploading…)

It has to be a problem with the circuit board, since i can flash my arduino uno just perfectly on the same machine with the same setup.

Please HELP me!

That happened to me, I had to set the reset on connect to disabled in repetier

Thanks for the hint ntoff.

I tried several times already, but no change in behavior at all.

What I tried today:

  • used a different power source (15V, 7A, switching…)… no change

  • tried yet another usb cable with shielding and ferite cores… no change

  • i unplugged EVERYTHING in the room including the notebook I ran repetier from except the power source for the printer… no change
    thus I will rule out interference problems!

  • I tried flashing firmware again. The progress goes on fine until actual uploading. For about 10min nothing actually seams to happen exept the LED on the micro lighting up permanently, until i finaly get the following in the logwindow:
    [color=#0000FF]avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_getsync(): timeout communicating with programmer
    avrdude: stk500v2_command(): failed miserably to execute command 0x1d
    avrdude: stk500v2_cmd(): failed to send command
    avrdude: Expected signature for ATMEGA2560 is 1E 98 01
    Double check chip, or use -F to override this check.
    avrdude: stk500v2_ReceiveMessage(): timeout
    avrdude: stk500v2_ReceiveMessage(): timeout[/color]

Flashing a program on my Arduino UNO straight afterwards (same Port, etc, only changed board type) works perfectly fine in a few seconds.

I will describe the behavior of my board more specificaly again:

  • When I start repetier SW (configured as described in the manual, printer powered and connected, leds came on and went out again) and hit connect nothing really happens. No activity on any leds, no activity in the log. After some time (8 seconds?) the connect turns to a green disconnect and i get “7 Command waiting” thats it…

  • When I push the reset button on the board now iget different reactions by chance.
    Sometimes nothing happens at all…

Sometimes something happens in the log, but there are still some commands waiting and nothing further happens…

Sometimes I get lucky and get :
[color=#BF00FF]22:08:14.931 : start
22:08:14.931 : echo: External Reset
22:08:14.931 : Marlin 1.0.0
22:08:14.931 : echo: Last Updated: Dec 26 2013 09:30:30 | Author: (Boris Landoni)
22:08:14.931 : Compiled: Dec 26 2013
22:08:14.931 : echo: Free Memory: 4300 PlannerBufferBytes: 1232
22:08:14.931 : echo:Hardcoded Default Settings Loaded
22:08:15.415 : N1 M110 *2
22:08:15.415 : N1 M110 *2
22:08:15.415 : N2 M115 *4
22:08:15.415 : N3 M111 S6 *68
22:08:15.415 : N4 M111 S6 *67
22:08:15.446 : N5 M80 *62
22:08:17.352 : echo:SD init fail
22:08:17.352 : ok
22:08:17.352 : ok
22:08:17.384 : FIRMWARE_NAME:Marlin V1; Sprinter/grbl mashup for gen6 FIRMWARE_URL:http://www.k8200.com/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:K8200 EXTRUDER_COUNT:1
22:08:17.384 : ok
22:08:17.384 : ok
22:08:17.384 : N6 M220 S100 *71
22:08:17.384 : ok
22:08:17.384 : N7 M221 S100 *71
22:08:17.384 : ok
22:08:17.384 : N8 M111 S6 *79
22:08:17.399 : ok
22:08:17.399 : ok
22:08:17.399 : ok
22:08:17.931 : ok T:25.7 /0.0 B:26.0 /0.0 @:0 B@:0
22:08:21.009 : ok T:25.6 /0.0 B:26.0 /0.0 @:0 B@:0
22:08:24.056 : Error:No Line Number with checksum, Last Line: 10
22:08:27.149 : Error:Line Number is not Last Line Number+1, Last Line: 10
22:08:27.149 : Resend: 11
22:08:27.165 : ok
22:08:27.181 : Error:No Line Number with checksum, Last Line: 10
22:08:27.181 : Error:Line Number is not Last Line Number+1, Last Line: 10
22:08:27.181 : Resend: 11
22:08:27.196 : ok
22:08:27.212 : ok T:25.6 /0.0 B:26.0 /0.0 @:0 B@:0
22:08:27.212 : ok T:25.6 /0.0 B:26.0 /0.0 @:0 B@:0
22:08:30.181 : Error:No Line Number with checksum, Last Line: 12
22:08:33.274 : Error:Line Number is not Last Line Number+1, Last Line: 12

[/color]
And I can actually move and heat the printer for a while (still always getting those resend, line number, checksum and unknown command errors all over) until for no apparent reason it will stop reacting again.

There seems to be some problem in the serial IO handling or the command buffering, but i can not simply update the firmware, because that wont work either…

Its starting to get really frustrating…
Please Velleman give me some help here!

Googling that error gets this page: stackoverflow.com/questions/1964 … ge-timeout

Looks like maybe your board is faulty?

OK, I give up!

The board is definetly not behaving as it should.

  • IO Errors all over
  • Connection errors
  • Its not possible to update firmware

I will send the board to velleman for check and replacement tomorrow morning.

Thanks everyone for the support!

Unless you already sent your board, check the solderings of the usb connector on the controllerboard.
I had similar weird problems, and it was the usb connector that had a cold solder. After i fixed it, no more problems.

Sorry to read that you experience problems.
At this time, we have no real experience with this problem, but as AndersE mentions, please check the soldering of the USB connector.
If the board has already been sent, we’ll make sure you’ll get it back asap.

Hi all,

i already sent the board, but i did checked the solderings a while into the process.

I took a good look at all the solderings of the USB connector, the FT232 converter, and the microcontroller under the microscope. All looked well soldered.

– What i did find was a little ball of solder, stuck between two pins on the micro (obviously not one that should be there…), but it easily fell off when i touched it with a watchmakers screwdriver (the board of course disconnected through the whole process), and I didnt realy pay attention which pins it might have shortened (Sorry there…). Might be that was part of the root cause of my problems, but there was no difference in behavior once it was gone. If it did have an effect, then it propably did some permanent damage…

Otherwise everything looked good and very clean.

I now hope you guys at Velleman can bring some light into the matter, I really apreciate your effort and all the help and suggestions I get here. I bought the printer for some bigger projects, that are on hold for the time being, and I realy need to continue sometime soon…

Thank you for the help,
Nic

According to online tracking the package got to you today…

I’m sure repair dept. will handle your issue asap.
Turnaround time is usually 7-10 days.
Should there be a problem, you can check back here, but please provide a name, so that we can check with repair.

Hello again,

OK, the replacement board arrived yesterday, and I put everything back together.
I can report: Problem solved!

With the new board, everything just works great.
No error messages, stable coms and good results.
Just finished printing the fan nozzle and the boardcover is about halfway through.

Thanks to all again for the support!

Happy to read that it works fine…