Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread Frank Tkalcevic
It looks like a bug - introduced by garbage on the line. The 'pinmap' array has 6 entries in it, but the variable 'port' can go up to 7. It is possibly a 0xFF garbage byte - I've seen that coming from the usb device before. You need to check the value of port, and if it is invalid, throw the dat

Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread sam sokolik
so - it seems to be running pretty well now the only issue that I see is every so often it doesn't seem to create the pins correctly. (I get) http://pastebin.com/CvEBeCHg snip Waiting for component 'arduino' to become ready.. Traceback (most recent call last): File "/bin/

Re: [Emc-users] problem with genserkins

2011-12-02 Thread Viesturs Lācis
2011/12/2 andy pugh : > On 2 December 2011 17:35, Francesca Sca wrote: > >> Infact I don't want loose a DOF. I would like to find a solution for have in >> the joint mode both the rotation of the wirst and the up  and down,  setting >> in the right way stepgen and pins. There are this solution?

Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread Frank Tkalcevic
I had similar problems with an AVR32 running as a CDC device. It turned out to be another program grabbing the port - a modem manager (from memory). I used synaptic to find and uninstall it. I've also read the ACM driver is buggy. I blacklisted it and use the general serial device driver. I fo

Re: [Emc-users] problem with genserkins

2011-12-02 Thread andy pugh
On 2 December 2011 17:35, Francesca Sca wrote: > Infact I don't want loose a DOF. I would like to find a solution for have in > the joint mode both the rotation of the wirst and the up  and down,  setting > in the right way stepgen and pins. There are this solution? Or I should > create some p

Re: [Emc-users] problem with genserkins

2011-12-02 Thread Francesca Sca
Andy pugh wrote: >I still think it seems a shame not to use all the degrees of freedom though. Infact I don't want loose a DOF. I would like to find a solution for have in the joint mode both the rotation of the wirst and the up  and down,  setting in the right way stepgen and pins. There are

Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread Jon Elson
sam sokolik wrote: > This is what shows up in dmsg when I uplug/plug > > http://pastebin.com/TDCqJuMn > > How do I dell what the device driver is? > Ah, that's what I thought. This is serial over USB. Yes, USB enumeration is really MESSY, and very often when you unplug and replug the USB devic

Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread sam sokolik
ok - So the back of the arduino I have been testing with seems to have no rev. I don't have any of my other ones here so I borrowed my coworkers that he just bought which says UNO R2. It seems to work every damn time. So - is mine bad? Old? Can firmware be updated? Well that was just annoy

Re: [Emc-users] Feed rate in G-code - world mode

2011-12-02 Thread Andrew
2011/12/2 Francesca Sca > Hallo, > It is possible to modulate the feed rate when I use a G-code for move my > robot? I say this because I tried to set the feed rate ( F200 or F300 in a > line of a ngc file) but the velocity is always the max_velocity setted in > the ini file > If you use G0

Re: [Emc-users] Feed rate in G-code - world mode

2011-12-02 Thread andy pugh
On 2 December 2011 16:44, Francesca Sca wrote: > It is possible to modulate the feed rate when I use a G-code for move my > robot? I say this because I tried to set the feed rate ( F200 or F300 in a > line of a ngc file) but the velocity is always the max_velocity setted in the > ini file

Re: [Emc-users] problem with genserkins

2011-12-02 Thread andy pugh
On 2 December 2011 16:33, Francesca Sca wrote: > When I looking at stepgen-pos-cmd pins in "Show HAL config", I see only a > series of numbers. Yes. What did you expect to see? > So I can link each stepgen to only one step and one direction pin. No, you can link each stepgen to as many pa

[Emc-users] Feed rate in G-code - world mode

2011-12-02 Thread Francesca Sca
Hallo, It is possible to modulate the feed rate when I use a G-code for move my robot? I say this because I tried to set the feed rate ( F200 or F300 in a line of a ngc file) but the velocity is always the max_velocity setted in the ini file Francesca

Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread Sebastian Kuzminsky
Does anything else show up in the dmesg when you run the program and get EIO on the open? I think that's abnormal and indicates a real problem with communication to the device. Do you have another Arduino you can test with? On Dec 2, 2011, at 09:20 , sam sokolik wrote: > This is what shows up

Re: [Emc-users] problem with genserkins

2011-12-02 Thread Francesca Sca
Andy pugh wrote: >It isn't any harder than other things you have already done. The first >thing to work out is how the two stepgen positions correlate to wrist >positions. You can figure that out by jogging in joint mode while >looking at the stepgen-pos-cmd pins in Machine->Show HAL config (use

Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread sam sokolik
This is what shows up in dmsg when I uplug/plug http://pastebin.com/TDCqJuMn How do I dell what the device driver is? thanks sam On 12/2/2011 11:02 AM, Sebastian Kuzminsky wrote: > On Dec 2, 2011, at 08:47 , sam sokolik wrote: > >> Seb had me run a trace on the port 'strace hd /dev/ttyACM0' and

Re: [Emc-users] Arduino Communication issues

2011-12-02 Thread Sebastian Kuzminsky
On Dec 2, 2011, at 08:47 , sam sokolik wrote: > Seb had me run a trace on the port 'strace hd /dev/ttyACM0' and got > http://pastebin.com/SgMjTbpB EIO from open() is strange. What device driver provides the /dev/ttyACM0 device file? What does dmesg say when you plug in the device and run the

[Emc-users] Arduino Communication issues

2011-12-02 Thread sam sokolik
I thought I would post this on the list as maybe others have run into this issue. It is emc related although I don't think the problem is. I have an arduino uno that I want to use mainly as a temperature input into emc. (spindle temp) Plus it gives me some extra non realtime inputs and outp

Re: [Emc-users] problem with genserkins

2011-12-02 Thread andy pugh
On 2 December 2011 13:52, Francesca Sca wrote: > Hmm...I don't understand very well what this means. You suggest me to create > an HAL component or some maths in HAL to pass the Joints pos values > (calculated by genserkins?) to stepgen 4 and 5. Right? Yes. Genserkins rather assumes that the m

Re: [Emc-users] problem with genserkins

2011-12-02 Thread Francesca Sca
>Hmm, yes. I see the problem. >It's quite a neat mechanism, you turn both gears the same direction >for up-down and in different directions for rotate. >The solution is probably to abstract the two movements into basic >angles as far as the DH parameters go, so that you have an elevation >and a r

Re: [Emc-users] problem with genserkins

2011-12-02 Thread andy pugh
On 2 December 2011 11:21, Francesca Sca wrote: > http://mecatronicaeajm.blogspot.com/2010_05_01_archive.html > > For the roll of the wirst, the two side gears must move in opposite direction > and this is realized by the moviment of two motors. For the "pitch" just the > moviment of a motor and

Re: [Emc-users] problem with genserkins

2011-12-02 Thread Francesca Sca
Andy pugh wrote: >Do you have a picture/diagram? I can imagine designs where two motors >in parallel drive a wrist joint, in which case you do not have a >serial kinematics, but a part-serial, part-parallel one. http://mecatronicaeajm.blogspot.com/2010_05_01_archive.html For the roll of the wir

Re: [Emc-users] problem with genserkins

2011-12-02 Thread andy pugh
On 2 December 2011 10:16, Francesca Sca wrote: > I don't konw. I said that because the combination of two motors should give > the rotation of wirst: Do you have a picture/diagram? I can imagine designs where two motors in parallel drive a wrist joint, in which case you do not have a serial kin

Re: [Emc-users] problem with genserkins

2011-12-02 Thread Francesca Sca
2011/12/1 Francesca Sca : > Viesturs wrote: > > >>It is more than just simple: put 2 stepgens in the receiving end of signal. >>net J0pos-cmd axis.0.motor-pos-cmd => stepgen.0.position-cmd >>stepgen.1.position-cmd > > Ok, I can do in this way, But I should change something also > to stepgen.0.st