Openpnp + linuxmint

208 views
Skip to first unread message

mojalovaa1

unread,
Dec 1, 2015, 5:20:59 AM12/1/15
to OpenPnP
Hi
Today I m install linux mint on new comp. and now wont install last wersion of the open pnp .
Can you write mr what is change on that proces , or explain install proces.
I use one of the first openpnp version and now install new because wont have options for nozzle change , up and down look camera , fid.look and other ...
Thanks for help .

mojalovaa1

unread,
Dec 1, 2015, 10:08:18 AM12/1/15
to OpenPnP
I think that is same for akl linux based on debian but I m not sure .
For new version open pnp now need java 8 if I m corect understand jason on one post , and now not need rxtx , correct ?

Jason von Nieda

unread,
Dec 1, 2015, 12:05:47 PM12/1/15
to ope...@googlegroups.com
Hi Moja,

You need Java 7 or Java 8. Instructions are available at https://github.com/openpnp/openpnp/wiki/User-Manual#download. The packages come with everything you need. 

Jason


On Tue, Dec 1, 2015 at 7:08 AM, mojalovaa1 <moja...@gmail.com> wrote:
I think that is same for akl linux based on debian but I m not sure .
For new version open pnp now need java 8 if I m corect understand jason on one post , and now not need rxtx , correct ?

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/d2246194-0c40-44fb-8e17-24077df419bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mojalovaa1

unread,
Dec 1, 2015, 12:37:25 PM12/1/15
to OpenPnP
I see that for linux have 4 format for download , I need download .sh or .tar.gz ?

mojalovaa1

unread,
Dec 1, 2015, 1:33:49 PM12/1/15
to OpenPnP
Yes , ok work , I m download .sh and start , now neef setup softvare .
Thanks Jason .

mojalovaa1

unread,
Dec 1, 2015, 2:53:36 PM12/1/15
to OpenPnP
Jason  , sorry for maybe stupidly question  , where start with edit machine and other staff for setup pnp?

Before I m use command : sudo leafpad / root / .openpnp / machine.xml , and positions for that file is be on: home /elektronika /openpnp  , now  openpnp is install on : home /signalgrad /openpnp , but cant call machine file  with command  :sudo leafpad / root / .openpnp / machine.xml  ?

On my old pnp machine , Cri.s is make me driver file with name MojaDriver , can I use that driver on this  software ?



Jason von Nieda

unread,
Dec 1, 2015, 3:04:13 PM12/1/15
to ope...@googlegroups.com
Moja,

The first time you start OpenPnP it will create the machine.xml. If you start it as root it will be in /root/.openpnp/machine.xml. 

Your old driver will not work with the current version of OpenPnP. It will need some minor updates, probably. If you send me the source code I can tell you what needs to be updated.

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 1, 2015, 3:16:39 PM12/1/15
to OpenPnP
Source is make Cri.s and he have source , I hope so that he will can help me that part make .
What software use for compile source to class file ?

mojalovaa1

unread,
Dec 1, 2015, 3:24:41 PM12/1/15
to OpenPnP
when wont open root file write me next messages : Error opening directory '/root': Permission denied

mojalovaa1

unread,
Dec 1, 2015, 5:08:34 PM12/1/15
to OpenPnP
I think that is same problems like on last openpnp , I have password on linux and that is problems when install openpnp because all need work on terminal and use sudo command .

Jason von Nieda

unread,
Dec 1, 2015, 5:15:36 PM12/1/15
to ope...@googlegroups.com
You will need to get the source for your driver from Cri.s. You can't work with just the .class file. You need the .java file.

In Linux it's better to install software under a user account, not root. Installing in root leaves your computer much more vulnerable to hacks. See http://askubuntu.com/questions/16178/why-is-it-bad-to-login-as-root

Jason

On Tue, Dec 1, 2015 at 2:08 PM, mojalovaa1 <moja...@gmail.com> wrote:
I think that is same problems like on last openpnp , I have password on linux and that is problems when install openpnp because all need work on terminal and use sudo command .
--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 1, 2015, 6:10:53 PM12/1/15
to OpenPnP
Sorry but Cri.s on this moment cant  answer to mail and on chat and for that I have little problems because I need start my new pnp machine for 5 day .
When we are work on old pnp machine we are have allot problems with root  and sudo command , but with this new  openpnp , where is allot staff change that is pufffffffff for me because I newer use linux befor this machine , and now use only for start openpnp .

I m download  openpnp.sh file and start like exe , and that work , install me  openpnp and make icon for start , but when I go  open root files  for machine.xml then can open it .
After that I m erase folders and make again with name openpnp , download tar.gz , convert it to zip and  unzip it  on that folder , now not have icon for start but use command : java -jar openpnp-gui*
now can open machine.xml files but is empty .

Can you please write me how you do that ?

mojalovaa1

unread,
Dec 1, 2015, 6:25:30 PM12/1/15
to OpenPnP
Now see this messages on terminal when start openpnp :

Warning: Could not get charToByteConverterClass!
Don't call wizardCompleted
Don't call wizardCompleted



Cri S

unread,
Dec 2, 2015, 3:04:56 AM12/2/15
to OpenPnP

i have send source file of driver, hovever here is copy of the file based on grbl driver.

/*
  Copyright (C) 2011 Jason von Nieda <ja...@vonnieda.org>
 
  This file is part of OpenPnP.
 
OpenPnP is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenPnP is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with OpenPnP.  If not, see <http://www.gnu.org/licenses/>.
 
  For more information about OpenPnP visit http://openpnp.org
 */

package org.openpnp.machine.reference.driver;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.TimeoutException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import javax.swing.Action;

import org.openpnp.machine.reference.ReferenceDriver;
import org.openpnp.machine.reference.ReferenceHead;
import org.openpnp.model.Configuration;
import org.openpnp.model.Part;
import org.simpleframework.xml.Attribute;
import java.util.logging.*;

import javax.swing.Action;

import org.openpnp.gui.support.PropertySheetWizardAdapter;
import org.openpnp.gui.support.Wizard;
import org.openpnp.machine.reference.ReferenceActuator;
import org.openpnp.machine.reference.ReferenceHead;
import org.openpnp.machine.reference.ReferenceHeadMountable;
import org.openpnp.machine.reference.ReferenceNozzle;
import org.openpnp.machine.reference.driver.wizards.AbstractSerialPortDriverConfigurationWizard;
import org.openpnp.model.LengthUnit;
import org.openpnp.model.Location;
import org.openpnp.spi.PropertySheetHolder;
import org.simpleframework.xml.Attribute;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

                             

/**
 * TODO: Consider adding some type of heartbeat to the firmware.  
 */
public class MojaDriver extends AbstractSerialPortDriver implements Runnable {
private static final Logger logger = LoggerFactory.getLogger( MojaDriver.class.getName() );
     

private static final double minimumRequiredVersion = 0.81;
@Attribute
private String portName;
@Attribute
private int baud;
@Attribute(required=false)
private int mm=0;
@Attribute(required=false)
private double delay=0;
@Attribute(required=false)
private int autoHeight=0;
@Attribute(required=false)
private int pickM=0x89;
private boolean vacuum;
private double x, y, z, c,f=0,ff=0;
private Thread readerThread;
private boolean disconnectRequested;
private Object commandLock = new Object();
private boolean connected;
private double connectedVersion;
private Queue<String> responseQueue = new ConcurrentLinkedQueue<String>();
        @Override
    public Location getAbsoluteLocation(ReferenceHeadMountable hm) {
        return new Location(LengthUnit.Millimeters, x, y, z, c);
    }

        @Override
    public Location getLocation(ReferenceHeadMountable hm) {
        return new Location(LengthUnit.Millimeters, x, y, z, c).add(hm
                .getHeadOffsets());
    }


@Override
public void actuate(ReferenceActuator head, boolean on)
{ actuate(head,0,on); }

@Override
public void actuate(ReferenceActuator head, double on)
{ actuate(head,0,on!=0.0); }

@Override
public void actuate(ReferenceActuator head, int index, boolean on)
throws Exception {
actuate(head,index,on);
}

@Override
public void actuate(ReferenceActuator head, int index, double on)
throws Exception {
actuate(head,index,on);
}

@Override
public void actuate(ReferenceHead head, int index, boolean on)
throws Exception {
if (index == 0) 
sendCommand(on ? "M7" : "M9");
if (index == 1) 
sendCommand(on ? "M8" : "M9");
if (index == 2) 
sendCommand(on ? "M10" : "M11");
if (index == 3) 
sendCommand(on ? "M3" : "M5");
if (index == 4) 
sendCommand(on ? "M4" : "M5");
dwell();
}
@Override
public void home(ReferenceHead head) throws Exception {
sendCommand("g28");
sendCommand("$H");
sendCommand("g21");
sendCommand("G92 X0 Y0 Z0 C0",700);
x = y = z= c = 0;
    //head.updateDuringMoveTo(this.x, this.y, this.z, this.c);

}

private void moveTo_(ReferenceHead head, double x, double y, double z, double c, double feedRateMmPerMinute)
throws Exception {

if (Double.isNaN(x)||Double.isInfinite(x))   x = this.x;
if (Double.isNaN(y)||Double.isInfinite(y))   y = this.y;
if (Double.isNaN(z)||Double.isInfinite(z))   z = this.z;
if (Double.isNaN(c)||Double.isInfinite(c))   c = this.c;
if (Double.isNaN(f)||Double.isInfinite(f))   f = this.f;
if(f<0||f>99999) feedRateMmPerMinute=this.f;
if(x<-999.9||x>999.9) x=this.x;
if(y<-999.9||y>999.9) y=this.y;
if(z<-999.9||z>999.9) z=this.z;
if(c<-999.9||c>999.9) c=this.c;

StringBuffer sb = new StringBuffer();
if (x != this.x) {
sb.append(String.format("X%2.2f ", x));
}
if (y != this.y) {
sb.append(String.format("Y%2.2f ", y));
}
if (z != this.z) {
sb.append(String.format("Z%2.2f ", z));
}
if (c != this.c) {
// TODO see above bug note, and remove this when fixed.
sb.append(String.format("C%2.2f ", c));
}
if (sb.length() > 0) {
if(feedRateMmPerMinute!=0)
sb.append(String.format("F%2.2f", feedRateMmPerMinute));
if(feedRateMmPerMinute!=0)
sendCommand("G1 " + sb.toString());
else
sendCommand("G0 " + sb.toString());
// dwell();
}
this.x = x;
this.y = y;
this.z = z;
this.c = c;
/*
if(head!=null)
   head.updateDuringMoveTo(this.x, this.y, this.z, this.c);
*/

//System.out.println("done moveTo("+head+","+this.x+","+this.y+","+this.z+","+this.c+")");

}

@Override
public void moveTo(ReferenceHeadMountable head, Location loc, double f) throws Exception {
moveTo(head,loc.getX(),loc.getY(),loc.getZ(),loc.getRotation(),f);
}

@Override
public void moveTo(ReferenceHeadMountable head, double x, double y, double z, double c, double f)
throws Exception {
moveTo(head,loc.x,y,z,c,f);
}

@Override
public void moveTo(ReferenceHead head, double x, double y, double z, double c, double f)
throws Exception {
// TODO: Due to a bug (of my creating) in Grbl, C movements are // included in the linear movements, and since they are much slower
// than X, Y movements they end up slowing the whole thing down.
// So, as a temporary hack, if there is a C move to be made we'll


//System.out.println("moveTo("+head+","+x+","+y+","+z+","+c+","+feedRateMmPerMinute+")");
if(f==-1) f=0;
if(f<0||f>99999) f=this.f;
if (Double.isNaN(x)||Double.isInfinite(x))   x = this.x;
if (Double.isNaN(y)||Double.isInfinite(y))   y = this.y;
if (Double.isNaN(z)||Double.isInfinite(z))   z = this.z;
if (Double.isNaN(c)||Double.isInfinite(c))   c = this.c;
if (Double.isNaN(f)||Double.isInfinite(f))   f = this.f;

if(x< -999.9||x>999.9) x=this.x;
if(y< -999.9||y>999.9) y=this.y;
if(z< -999.9||z>999.9) z=this.z;
if(c< -999.9||c>999.9) c=this.c;


if(f!=0)
this.f=f;

//System.out.println("MoveTo("+head+","+x+","+y+","+z+","+c+","+feedRateMmPerMinute+")");
if(!vacuum) 
if(z<autoHeight&&this.z>autoHeight)   // down
moveTo_(head,this.x,this.y,autoHeight,c,0);
else
if(z<autoHeight) ; 
else f=0;
/*
if(z>autoHeight&&this.z<autoHeight)   // up
moveTo(head,this.x,this.y,autoHeight+0.1,this.c,f),f=0;
if(z>autoHeight) f=0;
*/

// make it first. 
// Also, since C is so slow in comparison, we just increase it
// by a factor of 10.

if (c != this.c ) 
if(f!=0)
if(Math.sqrt( (x-this.x)*(x-this.x)
+(y-this.y)*(y-this.y)
+(z-this.z)*(z-this.z)
)<=Math.sqrt(
(c-this.c)*(c-this.c)
)
)
moveTo_(head, this.x, this.y, this.z, c, f*10);
moveTo_(head, x, y, z, c, f);
//System.out.println("done moveTo("+head+","+this.x+","+this.y+","+this.z+","+this.c+")");

}
@Override
public void setEnabled(boolean enabled) throws Exception {
sendCommand("\030\030\030",1000);
sendCommand("\n",500);
sendCommand("\n",1000);
sendCommand("G92 X0 Y0 Z0 C0",700);
// sendCommand("$1000=" + (enabled ? "1" : "0"));
vacuum=false;
}

@Override
public void pick(ReferenceNozzle n)  throws Exception {
pick(n,null);
}

@Override
public void pick(ReferenceHead head, Part part) throws Exception {
double dly; dly=0.3+delay; int m=(pickM>>4)&0xf; 
vacuum=true;
if(mm!=0) 
if(y>mm&&y<(mm+10)) {
moveTo(head, x, y-40, z, c, f );
sendCommand("M"+m);
moveTo(head, x, y, z-5.5, c, f );
sendCommand("G4P"+dly);
moveTo(head, x, y, z+5.5, c, f );
sendCommand("G4P0");
moveTo(head, x, y+40, z, c, f );
} else
sendCommand("M"+m); 
 else
sendCommand("M"+m); 
dwell();
}

@Override
public void place(ReferenceNozzle head) throws Exception {
int m=pickM&0xf; 
dwell();
sendCommand("M"+m); // inverted, should be M5
dwell();
vacuum=false;
}

public synchronized void connect()
throws Exception {
disconnect();
super.connect();

/**
* Connection process notes:
* On some platforms, as soon as we open the serial port it will reset
* Grbl and we'll start getting some data. On others, Grbl may already
* be running and we will get nothing on connect.
*/
List<String> responses;
synchronized (commandLock) {
// Start the reader thread with the commandLock held. This will
// keep the thread from quickly parsing any responses messages
// and notifying before we get a change to wait.
readerThread = new Thread(this);
readerThread.start();
// Wait up to 3 seconds for Grbl to say Hi
// If we get anything at this point it will have been the settings
// dump that is sent after reset.
responses = sendCommand(null, 3000);
}

processConnectionResponses(responses);

for (int i = 0; i < 5 && !connected; i++) {
responses = sendCommand("\030", 5000);
processConnectionResponses(responses);
}
if (!connected)  {
throw new Error(
String.format("Unable to receive connection response from Grbl. Check your port and baud rate, and that you are running at least version %f of Grbl", 
minimumRequiredVersion));
}
if (connectedVersion < minimumRequiredVersion) {
throw new Error(String.format("This driver requires Grbl version %.2f or higher. You are running version %.2f", minimumRequiredVersion, connectedVersion));
}
// We are connected to at least the minimum required version now
// So perform some setup
// Turn off the stepper drivers
setEnabled(false);
// Reset all axes to 0, in case the firmware was not reset on
// connect.
sendCommand("G92 X0 Y0 Z0 C0");
}
private void processConnectionResponses(List<String> responses) {
for (String response : responses) {
if(true) {
if (response.startsWith("$VERSION = ")) {
String[] versionComponents = response.split(" ");
connectedVersion = Double.parseDouble(versionComponents[2]);
connected = true;
logger.debug(String.format("Connected to Grbl Version: %.2f", connectedVersion));
}
} else {
connectedVersion = 0.9;
connected = true;
}
}
}

public synchronized void disconnect() {
disconnectRequested = true;
connected = false;
try {
if (readerThread != null && readerThread.isAlive()) {
readerThread.join();
}
}
catch (Exception e) {
logger.error("disconnect()", e);
}
super.close();
disconnectRequested = false;
}

private List<String> sendCommand(String command) throws Exception {
return sendCommand(command, -1);
}
private List<String> sendCommand(String command, long timeout) throws Exception {
synchronized (commandLock) {
if (command != null) {
logger.debug("sendCommand({}, {})", command, timeout);
//System.out.println("sendCommand("+command+","+timeout+")");
output.write(command.getBytes());
output.write("\n".getBytes());
}
if (timeout == -1) {
commandLock.wait();
}
else {
commandLock.wait(timeout);
}
}
List<String> responses = drainResponseQueue();
return responses;
}
  public void run() {
                while (!disconnectRequested) {
                        String line;
                        try {
                            line = readLine().trim();
                        }
                        catch (TimeoutException ex) {
                            continue;
                        }
                        catch (IOException e) {
                            logger.error("Read error", e);
                            return;
                        }
                        line = line.trim();
                        logger.debug("<< " + line);
                        responseQueue.offer(line);
if (line.equals("ok") || line.startsWith("error: ")
|| line.startsWith("$VERSION =")) {
// This is the end of processing for a command
//System.out.println("Line = " + line);
synchronized (commandLock) {
commandLock.notify();
}
}
}
}

    @Override
    public Wizard getConfigurationWizard() {
        return new AbstractSerialPortDriverConfigurationWizard(this);
    }


    @Override
    public PropertySheetHolder[] getChildPropertySheetHolders() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public Action[] getPropertySheetHolderActions() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public PropertySheet[] getPropertySheets() {
        return new PropertySheet[] {
                new PropertySheetWizardAdapter(getConfigurationWizard())
        };
    }

    @Override
    public String getPropertySheetHolderTitle() {
        return getClass().getSimpleName();
    }




/**
* Causes Grbl to block until all commands are complete.
* @throws Exception
*/
private void dwell() throws Exception {
sendCommand("G4 P0.01");
}

private List<String> drainResponseQueue() {
List<String> responses = new ArrayList<String>();
String response;
while ((response = responseQueue.poll()) != null) {
responses.add(response);
}
return responses;
}
}

Cri S

unread,
Dec 2, 2015, 3:09:37 AM12/2/15
to OpenPnP
hovever, don't install openpnp without installing sun jre on linux, usually the openjdk version must be disinstalled. 

mojalovaa1

unread,
Dec 2, 2015, 6:04:21 AM12/2/15
to OpenPnP
Cris , I m remove this openpnp folder and make new installation with help one my friend who say me how need work if I not wont use root  on this  solution .
He say next :
install java 7 or 8 
download openpnpn file with .deb
go to folder where is download that file  and click on file , then will run automatic installation 
when finish installation  all file will be on:  opt/openpnp/OpenPnP

I m do that and now can open machine.xml file .

That is ok now ?

mojalovaa1

unread,
Dec 2, 2015, 4:59:54 PM12/2/15
to OpenPnP
After install openpnp , what is next step ?
For camera need change on machine.xml like on old opwnpnp ?
Jason can you for sample put yours machine.xml or write what is next step after install openpnp ?

Jason von Nieda

unread,
Dec 2, 2015, 5:21:07 PM12/2/15
to ope...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 4:34:00 AM12/3/15
to OpenPnP
One question for nozzle tool change  , this is  my nozzle holder , and interest me  with this openpnp options for nozzle change is possible use for this system nozzle holder ?

Jason von Nieda

unread,
Dec 3, 2015, 11:51:22 AM12/3/15
to ope...@googlegroups.com
Hi Moja,

You will need to make a couple very small changes to make this work. In ReferenceNozzle.unloadNozzleTip and ReferenceNozzle.loadNozzleTip you'll need to add an additional move to the starting position. Currently the OpenPnP nozzle changer only makes 3 moves, and you need 4. 

Jason


On Thu, Dec 3, 2015 at 1:33 AM, mojalovaa1 <moja...@gmail.com> wrote:
One question for nozzle tool change  , this is  my nozzle holder , and interest me  with this openpnp options for nozzle change is possible use for this system nozzle holder ?

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 12:39:58 PM12/3/15
to OpenPnP
Or change nozzle holder  ?
How you are make Z home switch on yours machine , I m make head like on TM220A  but not have limit switch for home , Cri.s is suggest me that make IR sensor for home positions on Z axis ?

Jason von Nieda

unread,
Dec 3, 2015, 12:56:12 PM12/3/15
to ope...@googlegroups.com
Yes, you can also change the nozzle holder. The software is designed for a 3 position movement, like this: https://www.youtube.com/watch?v=bYfD0UUKyek

Yours is similar, but yours will need a fourth movement to make sure it is positioned above the nozzle before lowing down. So, to load, yours is: Move to position above nozzle, move down, move in, move up.

The Z home switch is just a regular microswitch riding on a flat on the shaft of the rocker. The flat allows the switch to open and as the flat rotates away from the switch the curved part of the shaft closes it. The next revision will likely use an opto interruptor with a small flag on the rocker.

The TM220A doesn't use a home switch. Instead, they have hard stops at the top of each Z axis and they've designed it so that when the two Z axes are pulled up against the hard stops with the springs they just touch both sides of the rocker. This way, when the stepper motor is powered off the axis automatically levels and centers mechanically. I think this would also be a great way to do it if you can manufacture the parts to a good enough tolerance that it works.

Jason





On Thu, Dec 3, 2015 at 9:39 AM, mojalovaa1 <moja...@gmail.com> wrote:
Or change nozzle holder  ?
How you are make Z home switch on yours machine , I m make head like on TM220A  but not have limit switch for home , Cri.s is suggest me that make IR sensor for home positions on Z axis ?

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 6:10:36 PM12/3/15
to OpenPnP
What I m mistake  or miss last 5 month , when press start on openpnp not start communications with arduino  , but when go on microcom then arduino work ok ?

On machine.xml  is bee speed 115000  but arduino work on 9600 and that I m change  , I m miss something ?

 

Jason von Nieda

unread,
Dec 3, 2015, 6:11:50 PM12/3/15
to ope...@googlegroups.com
Moja,

Please send the <driver line from your machine.xml.

Jason


On Thu, Dec 3, 2015 at 3:10 PM, mojalovaa1 <moja...@gmail.com> wrote:
What I m mistake  or miss last 5 month , when press start on openpnp not start communications with arduino  , but when go on microcom then arduino work ok ?

On machine.xml  is bee speed 115000  but arduino work on 9600 and that I m change  , I m miss something ?

 

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 6:16:17 PM12/3/15
to OpenPnP
<job-planner class="org.openpnp.planner.SimpleJobPlanner"/>
      <job-processor class="org.openpnp.machine.reference.ReferenceJobProcessor" demo-mode="false"/>
     <driver class="org.openpnp.machine.reference.driver.GrblDriver" port-name="/dev/ttyACM0" baud="9600" feed-rate-mm-per-minute="5000.0"/>
   </machine>
</openpnp-machine>

this is my machine part for driver
 

Jason von Nieda

unread,
Dec 3, 2015, 6:17:55 PM12/3/15
to ope...@googlegroups.com
That looks fine. What error are you getting? Have you checked the logs?


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 6:20:52 PM12/3/15
to OpenPnP
Port name - /dev /ttyACM0; Method name -openPort(); Exception type -Port busy 
Or sometimes nothing , like that blocking software 30 sec and then  stay  green options for start .
 

Jason von Nieda

unread,
Dec 3, 2015, 6:21:45 PM12/3/15
to ope...@googlegroups.com
It says Port busy, which usually means another program is accessing the port. Do you have microcom running? Anything else accessing the port? Only one program can access it at a time.

Jason


On Thu, Dec 3, 2015 at 3:20 PM, mojalovaa1 <moja...@gmail.com> wrote:
Port name - /dev /ttyACM0; Method name -openPort(); Exception type -Port busy 
Or sometimes nothing , like that blocking software 30 sec and then  stay  green options for start .
 

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 6:30:17 PM12/3/15
to OpenPnP
I m escape on minicom , but please say me how check  that be sure 100%?
 
Maybe I m mistake something .

Jason von Nieda

unread,
Dec 3, 2015, 6:34:05 PM12/3/15
to ope...@googlegroups.com

On Thu, Dec 3, 2015 at 3:30 PM, mojalovaa1 <moja...@gmail.com> wrote:
I m escape on minicom , but please say me how check  that be sure 100%?
 
Maybe I m mistake something .

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 6:40:28 PM12/3/15
to OpenPnP
same problems and errors

mojalovaa1

unread,
Dec 3, 2015, 7:07:10 PM12/3/15
to OpenPnP
Ok , one terminal is not turn off correct , minicom is stay work , that is now close .
Jason one question now , I tray start openpnp , click on start , then software  blocking some 30 sec and then nothing , on this moment I m add shape oko2 grbl on arduino uno and connect with comp , I have arduino mega 2560 but now is connected on new machine on work room  , can I now use arduino uno for test software or need connect original mega2560 with that grbl for openpnp ?

On Friday, December 4, 2015 at 12:40:28 AM UTC+1, mojalovaa1 wrote:
same problems and errors

Jason von Nieda

unread,
Dec 3, 2015, 7:09:43 PM12/3/15
to ope...@googlegroups.com
Shut down OpenPnP, Turn on debug logging: https://github.com/openpnp/openpnp/wiki/FAQ#how-do-i-turn-on-debug-logging

Then try again. Look at the logs. You should be able to see what commands are being sent to Grbl and what the responses are. See if there are any problems there. 

Jason


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.

mojalovaa1

unread,
Dec 3, 2015, 7:30:28 PM12/3/15
to OpenPnP
I m but same .
 
 ### change to debug to log low-level driver activity
log4j.logger.org.openpnp.machine.reference.driver=debug


Jason von Nieda

unread,
Dec 3, 2015, 7:31:35 PM12/3/15
to ope...@googlegroups.com
Send me your OpenPnP.log file, directly to my email: ja...@vonnieda.org

--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages