Welcome! Log In Create A New Profile

Advanced

Connection Problem

Posted by Flyer2 
Connection Problem
May 10, 2012 01:10PM
Hi

First, my set up:
Latest versions of Repetier Host (50) and Firmware (61)
Mega 2560 R3
Ramps 1.4
Arduino 0023
Board= Arduino Mega 2560
Com 7
baud 115200
Win XP

I'm new to this so I'm sure I've made many mistakes. I was having issues with the host program freezing and when I would do a dry run it would be fine on some files but the print speed would slow down on others. I've uninstalled and reinstalled everything a number of times. Latest issue was getting red lights on the ramps board whenever I tried to run a sketch. Sometimes 1 light, sometimes 2. Ramps reset button only worked at times. At the end I would reset, try to run the job, reset, job, etc over and over. Uninstalled and reinstalled host, firmware and drivers again and found my driver had been set to 115200 while my firmware was 250000. I'm confused because I could swear that my driver supported 250000 in the past. Now all I get is 115200.
I have noticed that when I installed the driver I was given a choice of 2 versions. Everything in the description was the same except the very end. One ended in 94.inf and the other 95.inf. Needless to say I've tried both.

Here's my latest problem. I can't make a connection to my printer. When I try to connect it will make a connection for a second and disconnect. Also, when I had my #define EEPROM_MODE set to 1 I was able to make configuration changes via the eeprom. After reinstalling Arduino 0023 and trying 1 I am no longer able to get into the eeprom setting within the Host. I tried setting it to 2 and was able to enter through the Host one and only one time. Tried setting it to 3 with same result. Went back to 0.
So I'm currently with eeprom_mode 0 and still can't make a connection.
Any help would be greatly appreciated. I just want to be able to print some stuff.

Thanks in advance,
Rick
Re: Connection Problem
May 10, 2012 01:29PM
Version 0.61 was only a short time online, because it had a serious bug with extruder control. Please use the lastes 0.62 instead!

If you reenable eeprom make sure to use different number then the last time. This should also override the stored connection speed to the value in Configuration.h.
I prefer 250000 as baudrate and have no problems connecting it to the same RAMPS/Arduino combination. Nut sure how much depends on the errors in the firmware, but you should install that first and test if it gets better.

Once you have enabled eeprom you need to change the baudrate there.

Did you get any messages in the log? Often it helps to see, why the connection gets closed.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Connection Problem
May 10, 2012 02:02PM
I just checked the readme file and it is 0.62 17.04.2012. Is that shown in the firmware files as well? Where?
I want to use a 250000 baud but can't find a driver that will give me that option. The driver I have installed only goes up to 158000. Any ideas there? I know I was able to have a higher baud rate but now I can't get it after all the install/uninstalls. And I don't know why I get this choice of 94.inf or 95.inf.
So if I last tried EEPROM 3, now I should try 4? Once you use a number you can't use it again, right? The only successful numbers I've had are 1 and than briefly 2.
Rick
Re: Connection Problem
May 10, 2012 03:00PM
Are you changing the baud rate in the driver configuration? That is abslutely unneeded. The host will override this with his own settings anyway. So don't bother with that.

With the eeprom settings you can reuse values. The rule is simply to overwrite the eeprom data if the mode is different from the last upload.

When your changelog shows 0.62 then you have the latest version. There is no special version string in the. configuration. The ui.h file contains one, if you want to check that.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Connection Problem
May 10, 2012 03:25PM
No, I'm not changing the baud rate in the driver configuration, only firmware. Just trying to clarify that the highest rate listed is 158000. I would think it would have to show it was capable of 250000 in order to operate at that rate.
Is ther any way to do a totally clean uninstall of host and firmware? Could that be part of my issue?
Thanks
Re: Connection Problem
May 10, 2012 04:23PM
Ever installition of a firmlware overwrites the old installation. Only eeprom is not overwritten, thats why the eeprom mode trick exists, to do that too.

The host can be uninstalled in windows software, but will not delete registry settings. So this will change nothing.

As a test it is not .net related (do you have the latest service pack for .net?) you can use the arduino serial monitor to connect. There you can send simple commands like M115 to see if the connection is working.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Connection Problem
May 11, 2012 05:10PM
I tried reinstalling everything and still have the same problems. Host connects for a split second and disconnects. I'm also still unable to open the EEPROM from the drop down. Is there a way to save the log file to post online?
Re: Connection Problem
May 12, 2012 02:04AM
Two methods to copy the log. In the work directory you have a complete log including hidden messages.

To copy only some visible messages mark them and click on the copy button in the log toolbar.

Perhaps this helps. I have set the wrong baudrate and got the following:
19:07:27.529 : FIRMWARE_NAME:RepetierVirtualPrinter FIRMWARE_URL:[github.com] PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:1
07:59:00.298 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:00.476 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:01.303 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:03.307 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:05.310 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:06.312 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:07.313 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:08.315 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:11.319 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
07:59:15.328 : Serial com errorconfused smileyystem.IO.Ports.SerialErrorReceivedEventArgs
This message indicates a connection wrong hardware setting. Then I switched back and tried to connect. The OS said ok, but I had the x commands waiting, so I wasn't getting any feedback from the printer. After hitting the printer reset and waiting 5 seconds the connections was established.

Only to be sure, you need 1 stopbit and parity none in case you changed the defaults.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Connection Problem
May 12, 2012 02:34PM
Ok, thanks. Will try Monday (race weekend).
Re: Connection Problem
May 14, 2012 11:50AM
I was able to remain connected this morning. Went into my device manager and reset port setting to defaults. Changed the printer setting back to 250000.
1 stopbit; parity none (never changed them)
Can't get any movement out of any axis.
Tried resetting ramps board.
No red lights today.
Attached is my latest log.

< 10:25:45.466 : OpenGL version:1.4.0 - Build 4.14.10.4332
< 10:25:45.466 : OpenGL extensions:GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_cull_vertex GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_EXT_texture3D GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_WIN_swap_hint
< 10:25:45.466 : OpenGL renderer:Intel 915GM
< 10:25:45.466 : Using fast VBOs for rendering is possible
> 10:29:21.657 : Resend:1
< 10:29:21.667 : Receiving only error messages. Stopped communication.
> 10:29:21.867 : ok
> 10:29:36.208 : Resend:1
< 10:29:36.208 : Receiving only error messages. Stopped communication.
> 10:29:36.328 : ok
> 10:34:29.139 : Resend:1
< 10:34:29.139 : Receiving only error messages. Stopped communication.
> 10:34:29.259 : ok
> 10:36:00.230 : ok
< 10:36:00.290 : N1 N0 M110 *92
< 10:36:00.350 : N2 M115 *4
< 10:36:00.350 : N3 M105 *4
< 10:36:00.350 : N4 M111 S6 *67
< 10:36:00.360 : N5 M80 *62
< 10:36:00.360 : N6 G28 X0 *125
< 10:36:00.360 : N7 G28 X0 *124
< 10:36:04.006 : N8 M111 S14 *124
< 10:36:06.059 : N9 G28 X0 Y0 Z0 *113

Could one of my boards be defective?
Thanks
Re: Connection Problem
May 14, 2012 12:01PM
In a follow up attempt it tells me than an attached device is not working properly,

10:51:24.639 : OpenGL version:1.4.0 - Build 4.14.10.4332
10:51:24.639 : OpenGL extensions:GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_cull_vertex GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_EXT_texture3D GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_WIN_swap_hint
10:51:24.639 : OpenGL renderer:Intel 915GM
10:51:24.639 : Using fast VBOs for rendering is possible
10:51:27.914 : A device attached to the system is not functioning.

10:51:31.419 : A device attached to the system is not functioning.

Edited 1 time(s). Last edit at 05/14/2012 12:04PM by Flyer2.
Re: Connection Problem
May 14, 2012 12:34PM
I don't think it is defect but it has communication problems for some reasons. The first post today shows clearly that you configuration is ok but very error prone. The firmware requested 3 times a send line until it got it without errors. So something is disturbing communication. The errors may have caused the os to give the replay for the second post. I now that message is not from my host, so it must be an error message from com error.

Possible reasons are a bad usb cable, electrical noise and an unsteady power supply. There may be more I don't know.

You didn't say what supply you use. Many ATX supplies are not stable, when there is no basic load on 5V. You should also try without motors/extruder/power supply - connected only to usb without external supply.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Connection Problem
May 14, 2012 04:20PM
The power supply was one that was recommended in a BOM somewhere. It's a SunPower FDPS-350A, 12V 30A. I've also tried several usb cables.

What's really frustrating is that since I last posted I got it working again. Was able to do a dry run, get the EEPROM settings from the drop down, use manual control. Worked fine until it finished the program. Now I'm back to one of my original problems- the host program freezes. Can't do anything- not even close the program. After forcing a close and reopening I can no longer connect, run anything manually or use the EEPROM drop down.

Only way I can get the program to work is to unplug the usb cable and replug it.

Beginning:
< 14:25:18.712 : OpenGL version:1.4.0 - Build 4.14.10.4332
< 14:25:18.712 : OpenGL extensions:GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_multitexture GL_ARB_point_parameters GL_ARB_shadow GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_env_crossbar GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_window_pos GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_clip_volume_hint GL_EXT_compiled_vertex_array GL_EXT_cull_vertex GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_filter_anisotropic GL_EXT_texture3D GL_3DFX_texture_compression_FXT1 GL_IBM_texture_mirrored_repeat GL_NV_blend_square GL_NV_texgen_reflection GL_SGIS_generate_mipmap GL_WIN_swap_hint
< 14:25:18.712 : OpenGL renderer:Intel 915GM
< 14:25:18.712 : Using fast VBOs for rendering is possible
> 14:25:33.883 : ok 0
> 14:25:33.883 : T:22 B:0 @:0
< 14:25:33.923 : N1 N0 M110 *92
> 14:25:33.933 : ok
< 14:25:33.963 : N2 M115 *4
< 14:25:33.963 : N3 M105 *4
> 14:25:33.963 : ok 2
< 14:25:33.963 : N4 M111 S6 *67
> 14:25:33.973 : FIRMWARE_NAME:Repetier FIRMWARE_URL:[github.com] PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:1 REPETIER_PROTOCOL:1
> 14:25:33.973 : ok 3
> 14:25:33.973 : T:22 B:0 @:0
> 14:25:33.973 : ok 4
< 14:25:33.973 : N5 M220 S100 *68
> 14:25:33.983 : ok 5
> 14:25:33.983 : SpeedMultiply:100
< 14:25:33.983 : N6 M80 *61
> 14:25:33.983 : ok 6
> 14:25:34.985 : wait

End:
> 14:38:49.067 : ok 24699
< 14:38:49.067 : N24705 G1 X98.375 Y111.34 F6000 *107
> 14:38:49.077 : ok 24700
< 14:38:49.077 : N24706 G1 X95.498 Y108.463 E3.19667 F1800 *23
> 14:38:49.167 : ok 24701
> 14:38:49.167 : ok 24702
> 14:38:49.167 : ok 24703
< 14:38:49.167 : N24707 G1 X95.047 Y108.915 F6000 *84
< 14:38:49.177 : N24708 G1 X97.924 Y111.792 E3.29501 F1800 *20
> 14:38:49.177 : ok 24704
> 14:38:49.177 : ok 24705
< 14:38:49.177 : N24709 G1 X97.472 Y112.243 F6000 *89
< 14:38:49.177 : N24710 G1 X94
Sorry, only registered users may post in this forum.

Click here to login