Welcome! Log In Create A New Profile

Advanced

On start Reprap shows text and GUI never opens

Posted by Joe 'Volg' Greene 
On start Reprap shows text and GUI never opens
August 23, 2011 12:47AM
I run reprap.bat or similar (Unix guy so I have also tried running it with vars set at a bash cygwin prompt and line by line from the Vista Command line prompt.. same results... ) once the java starts I see:

DEBUG: The distribution preferences file and yours match.  This is good. [0.009s/-1314070375946ms]
DEBUG: GCode opening port COM1 [0.174s/165ms]
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
DEBUG: Attempting to initialize Arduino/Sanguino [1.568s/1394ms]
comms: G-code: N0 M110 *3 dequeued and sent [3.611s/2043ms]

and it hangs...

so, details...
MB v1.2 Techzone remix. Blinks as normal. (2Hz)
Firmware: FiveD
Powers off USB ok.
all wiring checked.. 3x Stepper V2.3
Extruder board v2.2

Fixed SLOW_Z_FEEDRATE from 20 to SLOW_Z_FEEDRATE 20.0
Fixed RS485_BUF_LEN from 20 to 40

Use serial monitor to get:
Rcvd:start
Sent: N0 M110 *3
Rcvd:
 DEBUG:LineNr set
ok

So the board is talking.. but the app never starts. Any clues?

Edited 2 time(s). Last edit at 08/24/2011 10:32AM by Joe 'Volg' Greene.
Re: On start Reprap shows text and GUI never opens
August 24, 2011 10:24AM
Further data. confirmed software, Vista com port and Sanguino are all set for 19200 comms.
Serial console works to send commands and make it move.
Yes reprap refuses to load beyond sending the initial line number reset sent to the com port.
I also get the same interesting behavior - I hit reprap.bat , get text ending with:

C:\Program Files\Reprap>java -cp ".\reprap.jar;.\RXTXcomm.jar;.\j3dcore.jar;.\j3
d-org-java3d-all.jar;.\j3dutils.jar;.\swing-layout-1.0.3.jar;.\vecmath.jar;." -X
mx1024M org/reprap/Main
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7

and then...nada.
WinXP, Java 6 build 1.6.0_26-b03.

When I run the .bat again I get the reprap program but there's some errors to the tune of:

Error 0x5 at /home/bob/foo/rxtx-devel/build/../src/termios.c(860): Access is denied.
ERROR: Port 'COM8' is already in use. [0.015s/-1314208737235ms]


any clues on how one actually gets this @#$ running?
Re: On start Reprap shows text and GUI never opens
August 24, 2011 09:21PM
Ok, your error looks to be a bit different and maybe I can help with it..
Double check your serial driver make sure it is reporting the device ok. (in Control Panel -> Device Manager)
If you aren't getting to the
DEBUG: Attempting to initialize Arduino/Sanguino [1.568s/1394ms]
comms: G-code: N0 M110 *3 dequeued and sent [3.611s/2043ms]
as your message indicates, then it looks like the Java IO module is hanging attempting to open the serial port.. The next attempt (which throws the termios error) indicates the driver is hung up still trying to resolve the prior attempt to open the port. Which is why I suspect a bad device driver for the USB to serial....

Edited 1 time(s). Last edit at 08/24/2011 09:22PM by Joe 'Volg' Greene.
How did you guys go with this?

I get the same issue as חקרקצט. That is when I run the program it hangs on start up, opening a second instance I get the same error as mentioned.

ERROR: Port 'COM3' is already in use. [0.015s/-1314208737235ms]

Which makes absolute sense - The first instance already has the port open.

If I unplug my board BEFORE running the batch file the application starts.

I do not have debug output enabled, is there an environment variable I can set in order to enable it?

I have a Sanguino and am Running Windows 7 64bit.

Cheers

Sean
Update: it turns out my baud setting on the host was incorrect I have some communication occurring but am having other errors

comms: G-code: N1 M113 *1 dequeued and sent [94.622s/10ms]
ERROR: GCodeWriter.waitForResponse() - dud response from RepRapconfused smileyerial Error: Line Number is not Last Line Number+1, Last Line:1 (hex: 53657269616c204572726f723a204c696e65204e756d626572206973206e6f74204c617374204c696e65204e756d6265722b312c204c617374204c696e653a31) [94.626s/4ms]
comms: Response: Serial Error: Line Number is not Last Line Number+1, Last Line:1 [94.628s/2ms]
comms: G-code: N1 M113 *1 dequeued and sent [94.638s/10ms]
ERROR: GCodeWriter.waitForResponse() - dud response from RepRap:Resend:2 (hex: 526573656e643a32) [94.640s/2ms]
comms: Response: Resend:2 [94.642s/2ms]
comms: G-code: N1 M113 *1 dequeued and sent [94.653s/11ms]
comms: Response: ok [94.655s/2ms]

There was another thread where someone reported a similar error. I might check that.
Sorry, only registered users may post in this forum.

Click here to login