Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Andrew
2013-12-29 Charles Steinkuehler char...@steinkuehler.net

 On 12/29/2013 1:22 PM, Andrew wrote: The whole control is not quite
 stable, it freezes time by time. And
  something's wrong with the axes limits, I have to figure it out yet.

 What happens when it freezes?  Are there any error messages on the
 serial console port?

 Older BeagleBone kernels had an mmc bug that would cause a hung-task
 timeout and then the system would pretty much halt (since the root
 filesystem is on the MMC which can't be read from anymore).  If this is
 the problem you're having, it should be fixed in the -bone28 and newer
 kernels.  I also just released a new image that uses the latest -bone33
 kernel if you need to upgrade.


I recently upgraded to Machinekit 12-28 and installed ubc3-joints_axes4.
The very first start of hexapod config caused severe crash. I moved joints
then switched to world mode and back, moved some joint again and in just
could not stop. LCNC froze, then the screen went black. I had to reset the
power.
I have to check my PSU but I don't expect it to solve a problem.

Andrew
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Andrew
2014-01-26 Andrew pkm...@gmail.com

 I recently upgraded to Machinekit 12-28 and installed ubc3-joints_axes4.
 The very first start of hexapod config caused severe crash. I moved joints
 then switched to world mode and back, moved some joint again and in just
 could not stop. LCNC froze, then the screen went black. I had to reset the
 power.
 I have to check my PSU but I don't expect it to solve a problem.


I replaced the PSU and tried again. The same problem. Jerky moves in joint
or world mode then 14: Unexpected realtime delay on RT thread 1. The next
joint move just did not stop, I saw EMCMOT did not respond (or something)
and the BBB froze to a blank screen.
Now the whole thing is just not usable.

Andrew
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Charles Steinkuehler
On 1/26/2014 11:52 AM, Andrew wrote:
 2014-01-26 Andrew pkm...@gmail.com
 
 I recently upgraded to Machinekit 12-28 and installed ubc3-joints_axes4.
 The very first start of hexapod config caused severe crash. I moved joints
 then switched to world mode and back, moved some joint again and in just
 could not stop. LCNC froze, then the screen went black. I had to reset the
 power.
 I have to check my PSU but I don't expect it to solve a problem.
 
 I replaced the PSU and tried again. The same problem. Jerky moves in joint
 or world mode then 14: Unexpected realtime delay on RT thread 1. The next
 joint move just did not stop, I saw EMCMOT did not respond (or something)
 and the BBB froze to a blank screen.
 Now the whole thing is just not usable.

The combined ubc3-joints_axes4 branch is relatively untested.  Can you
try using the latest ubc3 branch and see if it behaves any better?

If things don't work better with UBC3, you may be running out of
resources.  If you're using axis, please switch to the DRO tab
immediately after power-on, and do not go back to the gremlin back-plot
display.  You might also try dramatically lowering the thread rate to
see if that's the problem.

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Andrew
2014-01-26 Charles Steinkuehler char...@steinkuehler.net

 The combined ubc3-joints_axes4 branch is relatively untested.  Can you
 try using the latest ubc3 branch and see if it behaves any better?

 I used the same branch and config with the prevoius Machinekit 09-02 and
it was better, I even managed to shoot a video :)
But I'll try ubc3 too. I just have to convert my config from ja4 to normal.
BTW what branch is pre-installed on Machinekit?


 If things don't work better with UBC3, you may be running out of
 resources.  If you're using axis, please switch to the DRO tab
 immediately after power-on, and do not go back to the gremlin back-plot
 display.


I did that. Otherwise the machine is not quite responsive in world mode.


 You might also try dramatically lowering the thread rate to
 see if that's the problem.


I did that too. Servo period is 2ms, cycle_time is 0.020s. I'll try larger
values.

I also have a few questions regarding Machinekit:
1. How do I copy/paste from terminal window?
2. Is auto-login possible?
 3. Pre-installed text editor would be useful. I installed scite, there are
probably better options.

Thanks,
Andrew
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Viesturs Lācis
2014-01-26 Andrew pkm...@gmail.com

 1. How do I copy/paste from terminal window?


In terminal it should be ctrl+shift+c and ctrl+shift+v or shift+insert

Viesturs
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Andrew
2014-01-26 Viesturs Lācis
viesturs.la...@gmail.comhttps://mail.google.com/mail/u/0/?view=cmfs=1tf=1to=viesturs.la...@gmail.com


 In terminal it should be ctrl+shift+c and ctrl+shift+v or shift+insert


Hi Viesturs! Thanks, but it won't work in Machinekit. It has some nasty
terminal, I could not find a combination...

Andrew
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Charles Steinkuehler
On 1/26/2014 12:29 PM, Andrew wrote:
 2014-01-26 Charles Steinkuehler char...@steinkuehler.net
 
 The combined ubc3-joints_axes4 branch is relatively untested.  Can you
 try using the latest ubc3 branch and see if it behaves any better?

 I used the same branch and config with the prevoius Machinekit 09-02 and
 it was better, I even managed to shoot a video :)
 But I'll try ubc3 too. I just have to convert my config from ja4 to normal.
 BTW what branch is pre-installed on Machinekit?

It's the MachineKit branch, which is a snapshot of UBC3 that I have
verified actually works.  The branch doesn't get updated often
(generally, only when I'm making new images), so if you want to track
development, you should use UBC3, typically from Michael Haberler's
github repository.

 I also have a few questions regarding Machinekit:
 1. How do I copy/paste from terminal window?
 2. Is auto-login possible?

Yes, but I'm not 100% sure how.  I'm a command-line guy, and the fact
that the GUI comes up at all on the BeagleBone is mostly a testament to
the Debian developers and the LinuxCNC crew.  :)

  3. Pre-installed text editor would be useful. I installed scite, there are
 probably better options.

If it makes you feel any better, I didn't install vim by default and
curse the system every time I start with a new image, go to edit a file,
and find half the key commands I'm used to don't do the right thing!

I have mostly tried to make the pre-built image the minimal required to
actually get LinuxCNC running, but yes, a text editor would be a good
addition.  I'm open to suggestions for a light-weight editor, or I could
just confuse all the new users and install gvim!  :)

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Charles Steinkuehler
On 1/26/2014 12:39 PM, Andrew wrote:
 2014-01-26 Viesturs Lācis
 viesturs.la...@gmail.comhttps://mail.google.com/mail/u/0/?view=cmfs=1tf=1to=viesturs.la...@gmail.com
 
 In terminal it should be ctrl+shift+c and ctrl+shift+v or shift+insert
 
 Hi Viesturs! Thanks, but it won't work in Machinekit. It has some nasty
 terminal, I could not find a combination...

It's just a plain xterm...no need to go calling it names!  ;-)

Standard X rules apply, since it's a standard X program.  Select via
left button.  Insert via shiftinsert or the middle mouse button if
you have one (my mice don't and the click both left-and-right for middle
doesn't seem to be working).

You can also use ctrl(left|right)-click to bring up some
configuration options for the xterm.  I need to do this on some of my
smaller screens to get text big enough for my old eyes to read.

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Andrew
-01-26 Charles Steinkuehler char...@steinkuehler.net

 It's just a plain xterm...no need to go calling it names!  ;-)

 Standard X rules apply, since it's a standard X program.  Select via
 left button.  Insert via shiftinsert or the middle mouse button if
 you have one (my mice don't and the click both left-and-right for middle
 doesn't seem to be working).

 You can also use ctrl(left|right)-click to bring up some
 configuration options for the xterm.  I need to do this on some of my
 smaller screens to get text big enough for my old eyes to read.


That's incredible, Charles!
I'm no LInux guy, so it's a revelation. Thanks!
It also copies to a text editor with mouse clicks... X magic :)

Andrew
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2014-01-26 Thread Jon Elson
On 01/26/2014 02:04 PM, Andrew wrote:

 Standard X rules apply, since it's a standard X program.  Select via
 left button.  Insert via shiftinsert or the middle mouse button if
 you have one (my mice don't and the click both left-and-right for middle
 doesn't seem to be working).


That's called chord and is an option you need to enable in
the pointer options menu.  Or, at least it USED to be there,
no idea where it has been moved.

Jon

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-29 Thread Andrew
Hello!

Here's my toy to move with ubc3-ja4 on BBB.
http://youtu.be/ouyx65C7L-o
 Charles and Michael, thanks a lot for your help!

The whole control is not quite stable, it freezes time by time. And
something's wrong with the axes limits, I have to figure it out yet.

Andrew
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-29 Thread Charles Steinkuehler
On 12/29/2013 1:22 PM, Andrew wrote:
 Hello!
 
 Here's my toy to move with ubc3-ja4 on BBB.
 http://youtu.be/ouyx65C7L-o
  Charles and Michael, thanks a lot for your help!

Now that's cool!!!

 The whole control is not quite stable, it freezes time by time. And
 something's wrong with the axes limits, I have to figure it out yet.

What happens when it freezes?  Are there any error messages on the
serial console port?

Older BeagleBone kernels had an mmc bug that would cause a hung-task
timeout and then the system would pretty much halt (since the root
filesystem is on the MMC which can't be read from anymore).  If this is
the problem you're having, it should be fixed in the -bone28 and newer
kernels.  I also just released a new image that uses the latest -bone33
kernel if you need to upgrade.

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-29 Thread Andrew
2013/12/29 Charles Steinkuehler char...@steinkuehler.net

 Now that's cool!!!

 Thanks!


 What happens when it freezes?  Are there any error messages on the
 serial console port?

 I haven't paid much attention... Sometimes it just froze and the mouse did
not move (but that could be a power surge). Sometimes it happened when I
moved the joint, it slowed down but did not stop when I was pressing Esc or
whatever, then the BBB rebooted. And so on. It usually froze under load.
Actually genhexkins takes more CPU resourses, so Axis preview is very slow,
I mostly switch to DRO tab.
I use standalone BBB, by the way.


 Older BeagleBone kernels had an mmc bug that would cause a hung-task
 timeout and then the system would pretty much halt (since the root
 filesystem is on the MMC which can't be read from anymore).  If this is
 the problem you're having, it should be fixed in the -bone28 and newer
 kernels.  I also just released a new image that uses the latest -bone33
 kernel if you need to upgrade.


Great! I use the image from 09-02, but I will update it asap.

Andrew
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-29 Thread Michael Haberler
congratulations! that's quite an achievement!

cheers

- Michael

Am 29.12.2013 um 20:22 schrieb Andrew pkm...@gmail.com:

 Hello!
 
 Here's my toy to move with ubc3-ja4 on BBB.
 http://youtu.be/ouyx65C7L-o
 Charles and Michael, thanks a lot for your help!
 
 The whole control is not quite stable, it freezes time by time. And
 something's wrong with the axes limits, I have to figure it out yet.
 
 Andrew
 --
 Rapidly troubleshoot problems before they affect your business. Most IT 
 organizations don't have a clear picture of how application performance 
 affects their revenue. With AppDynamics, you get 100% visibility into your 
 Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
 http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
 ___
 Emc-users mailing list
 Emc-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/emc-users


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-23 Thread Charles Steinkuehler
On 12/22/2013 11:07 AM, Andrew wrote:
 Thank you! I chose other pins and added them to sh script, now it works.
 BTW it seems strange that pins numbering scheme in setup script is
 different from pru stepgen. That can misguide a novice.

Yes, I would rather not have three different pin numbering schemes (even
more if you count how the bb_gpio module names the exported pin
signals).  Feel free to clean this up and submit a patch!  :)

 Also, what is BB-LCNC-BEBOPRBR-00A0.dts file?

This is the source file for the device tree overlay (dtbo) file.

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-22 Thread Andrew
2013/12/21 Charles Steinkuehler char...@steinkuehler.net

 Yes, you can run stepgens on both PRUs...you'll just have to tweak the
 HAL module to support this.  It's on my list of things to do some day,
 but it's not real urgent.

 The good news is you almost certainly don't need to run code on both
 PRUs to do what you want.  If you are not seeing step/dir signals on the
 newly added I/O pins, you probably have something simple wrong.

 Some things to check:

 * You are using the pins assigned to the on-board HDMI/LCD output.  You
 have to make sure you disable *BOTH* of the HDMI capes (BB-BONELT-HDMI
 and BB-BONELT-HDMIN) or you won't be able to use these pins.

 * You need to make sure the pins are setup for GPIO output.  This is
 done in the setup.sh script called at the start of the hal file.  Edit
 as appropriate to add your pins to the list and make sure the direction
 is out.

 * To test, before you run LinuxCNC, manually run the setup.sh file and
 then see if you can toggle the GPIO pin values normally.  Note you need
 to use the kernel pin numbers in setup.sh (above) and for gpioN (below):

   echo 1  /sys/class/gpio/gpioN/value
   echo 0  /sys/class/gpio/gpioN/value

 ...if the I/O pin doesn't 'twiddle', you don't have the BeagleBone setup
 properly.  If it does, LinuxCNC and the PRU code should be able to talk
 to it.  If it's still not working, double-check the pin setting in HAL
 (which you can change at runtime with halcmd).  The HAL pin setting
 should be the kernel number (from above) + 32.

 Thank you! I chose other pins and added them to sh script, now it works.
BTW it seems strange that pins numbering scheme in setup script is
different from pru stepgen. That can misguide a novice.
Also, what is BB-LCNC-BEBOPRBR-00A0.dts file?

Andrew
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-21 Thread Andrew
2013/8/9 Charles Steinkuehler char...@steinkuehler.net

 Any I/O pins that are not already used by something else.  The PRU code
 is capable of driving any pin in the 4 32-bit banks of GPIO, as well as
 the 16 directly-connected low-latency PRU output pins.

 To calculate a pin number to use for the GPIO banks:

 Pin# = ((gpio_bank + 1) * 32) + pin_number

 ...this is the same as the kernel pin numbering scheme, except one is
 added to the GPIO bank so that zero results in an invalid pin number and
 means don't drive any pin.  This is to keep things safe since all pin
 numbers default to zero the way HAL shared memory gets initialized, you
 have to explicitly set a pin number before the PRU actually tries to
 twiddle something.


Hello!

I'm figuring out 6-axis config based on BeBoPr-Bridge.
Say I would like to use 6 pairs of PRU pins on P8:
46 to 39 for step0, dir0 step3, dir3
16, 15, 12, 11 for step4, dir4, step5, dir5

I try calculating the pin numbers. For instance
43(PRU1.out2) is gpio2.8, thus

Pin# = ((gpio_bank + 1) * 32) + pin_number
Pin#=(2+1)*32 + 8 = 104 = *0x68*

comparing to BeBoPr config
# P8.43 PRU1.out2
setp [PRUCONF](DRIVER).stepgen.00.steppin *0x4C*

I can not figure out how you get 0x4C, something doesn't add up.
Where do I go wrong?

Thanks,
Andrew
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-21 Thread Charles Steinkuehler
On 12/21/2013 9:12 AM, Andrew wrote:
 2013/8/9 Charles Steinkuehler char...@steinkuehler.net
 
 Any I/O pins that are not already used by something else.  The PRU code
 is capable of driving any pin in the 4 32-bit banks of GPIO, as well as
 the 16 directly-connected low-latency PRU output pins.

 To calculate a pin number to use for the GPIO banks:

 Pin# = ((gpio_bank + 1) * 32) + pin_number

 ...this is the same as the kernel pin numbering scheme, except one is
 added to the GPIO bank so that zero results in an invalid pin number and
 means don't drive any pin.  This is to keep things safe since all pin
 numbers default to zero the way HAL shared memory gets initialized, you
 have to explicitly set a pin number before the PRU actually tries to
 twiddle something.

 
 Hello!
 
 I'm figuring out 6-axis config based on BeBoPr-Bridge.
 Say I would like to use 6 pairs of PRU pins on P8:
 46 to 39 for step0, dir0 step3, dir3
 16, 15, 12, 11 for step4, dir4, step5, dir5
 
 I try calculating the pin numbers. For instance
 43(PRU1.out2) is gpio2.8, thus
 
 Pin# = ((gpio_bank + 1) * 32) + pin_number
 Pin#=(2+1)*32 + 8 = 104 = *0x68*
 
 comparing to BeBoPr config
 # P8.43 PRU1.out2
 setp [PRUCONF](DRIVER).stepgen.00.steppin *0x4C*
 
 I can not figure out how you get 0x4C, something doesn't add up.
 Where do I go wrong?

Sorry, the comments are out of date.

0x4C is GPIO bank 1, pin 12, which is on connector P8 pin 12 and is used
for the x-step signal on the Bridge version of the BeBoPr.  The comment
refers to connector P8 pin 43, which is GPIO Bank 2 pin 8, or 0x68,
which is where the x-step signal *USED* to be on the non-bridge version
of the BeBoPr.

Sorry for the confusion.

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-21 Thread Andrew
2013/12/21 Charles Steinkuehler
char...@steinkuehler.nethttps://mail.google.com/mail/u/0/?view=cmfs=1tf=1to=char...@steinkuehler.net


 Sorry, the comments are out of date.

 0x4C is GPIO bank 1, pin 12, which is on connector P8 pin 12 and is used
 for the x-step signal on the Bridge version of the BeBoPr.  The comment
 refers to connector P8 pin 43, which is GPIO Bank 2 pin 8, or 0x68,
 which is where the x-step signal *USED* to be on the non-bridge version
 of the BeBoPr.

 Sorry for the confusion.


Oh, thanks!
That's no problem, at least I learned the numbering scheme )

Can I use dec numbers instead of hex?
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-21 Thread Charles Steinkuehler
On 12/21/2013 10:54 AM, Andrew wrote:
 2013/12/21 Charles Steinkuehler
 char...@steinkuehler.nethttps://mail.google.com/mail/u/0/?view=cmfs=1tf=1to=char...@steinkuehler.net

 
 Sorry, the comments are out of date.

 0x4C is GPIO bank 1, pin 12, which is on connector P8 pin 12 and is used
 for the x-step signal on the Bridge version of the BeBoPr.  The comment
 refers to connector P8 pin 43, which is GPIO Bank 2 pin 8, or 0x68,
 which is where the x-step signal *USED* to be on the non-bridge version
 of the BeBoPr.

 Sorry for the confusion.
 
 Oh, thanks!
 That's no problem, at least I learned the numbering scheme )
 
 Can I use dec numbers instead of hex?

You ought to be able to use anything the C input routines recognize as a
number, so decimal, octal, hex, or whatever.  I'm a hardware guy and the
hex values make the most sense to me (also because there are 32 pins in
each I/O bank, so the pin numbers line up well in hex).

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-21 Thread Andrew
2013/12/21 Charles Steinkuehler char...@steinkuehler.net

 You ought to be able to use anything the C input routines recognize as a
 number, so decimal, octal, hex, or whatever.  I'm a hardware guy and the
 hex values make the most sense to me (also because there are 32 pins in
 each I/O bank, so the pin numbers line up well in hex).


Thanks for your help!
I used decimal numbers and it seems to work (though hex are more convenient
as you say). But there's another problem.
I configured 6 joints (ub3-ja4) to the following pins on P8:
joint 0 to 11 (step) and 12 (dir)
joint 1 to 15, 16
joints 3..5 to 39...46
Checking with the O-scope while jogging the corresponding axis I see step
signals on pins 11 and 15 but other step pins always output some kind of
noise.
I suspect that the pins should also be configured somewhere else besides
.hal file?
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-21 Thread Andrew
2013/12/21 Andrew

 Thanks for your help!
 I used decimal numbers and it seems to work (though hex are more
 convenient as you say). But there's another problem.
 I configured 6 joints (ub3-ja4) to the following pins on P8:
 joint 0 to 11 (step) and 12 (dir)
 joint 1 to 15, 16
 joints 3..5 to 39...46
 Checking with the O-scope while jogging the corresponding axis I see step
 signals on pins 11 and 15 but other step pins always output some kind of
 noise.
 I suspect that the pins should also be configured somewhere else besides
 .hal file?


OK, I see the string

CONFIG=prucode=/home/linuxcnc/linuxcnc/rtlib/xenomai/pru_generic.bin pru=1
num_stepgens=6

I guess pins 11 and 15 belong to PRU0 and others to PRU1.
Is it possible to run stepgens on both PRU0 and PRU1?
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-12-21 Thread Charles Steinkuehler
On 12/21/2013 2:46 PM, Andrew wrote:
 2013/12/21 Andrew
 
 Thanks for your help!
 I used decimal numbers and it seems to work (though hex are more
 convenient as you say). But there's another problem.
 I configured 6 joints (ub3-ja4) to the following pins on P8:
 joint 0 to 11 (step) and 12 (dir)
 joint 1 to 15, 16
 joints 3..5 to 39...46
 Checking with the O-scope while jogging the corresponding axis I see step
 signals on pins 11 and 15 but other step pins always output some kind of
 noise.
 I suspect that the pins should also be configured somewhere else besides
 .hal file?

 
 OK, I see the string
 
 CONFIG=prucode=/home/linuxcnc/linuxcnc/rtlib/xenomai/pru_generic.bin pru=1
 num_stepgens=6
 
 I guess pins 11 and 15 belong to PRU0 and others to PRU1.
 Is it possible to run stepgens on both PRU0 and PRU1?

Yes, you can run stepgens on both PRUs...you'll just have to tweak the
HAL module to support this.  It's on my list of things to do some day,
but it's not real urgent.

The good news is you almost certainly don't need to run code on both
PRUs to do what you want.  If you are not seeing step/dir signals on the
newly added I/O pins, you probably have something simple wrong.

Some things to check:

* You are using the pins assigned to the on-board HDMI/LCD output.  You
have to make sure you disable *BOTH* of the HDMI capes (BB-BONELT-HDMI
and BB-BONELT-HDMIN) or you won't be able to use these pins.

* You need to make sure the pins are setup for GPIO output.  This is
done in the setup.sh script called at the start of the hal file.  Edit
as appropriate to add your pins to the list and make sure the direction
is out.

* To test, before you run LinuxCNC, manually run the setup.sh file and
then see if you can toggle the GPIO pin values normally.  Note you need
to use the kernel pin numbers in setup.sh (above) and for gpioN (below):

  echo 1  /sys/class/gpio/gpioN/value
  echo 0  /sys/class/gpio/gpioN/value

...if the I/O pin doesn't 'twiddle', you don't have the BeagleBone setup
properly.  If it does, LinuxCNC and the PRU code should be able to talk
to it.  If it's still not working, double-check the pin setting in HAL
(which you can change at runtime with halcmd).  The HAL pin setting
should be the kernel number (from above) + 32.

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


[Emc-users] More stepgens with BeagleBone

2013-08-09 Thread Andrew
Hello,

I'm trying to set up BeagleBone using Charles' image (with HDMI display).
As I do not have any cape board I simply connect A4988 drivers to BBB's
output pins.
K9.HDMI config has 4 stepgens, but I'd like to have 6 or 7. It loads with
num_stepgens=6 but the question is which output pins can I use for two or
three extra stepgens?

Andrew
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] More stepgens with BeagleBone

2013-08-09 Thread Charles Steinkuehler
On 8/9/2013 8:08 AM, Andrew wrote:
 Hello,
 
 I'm trying to set up BeagleBone using Charles' image (with HDMI display).
 As I do not have any cape board I simply connect A4988 drivers to BBB's
 output pins.
 K9.HDMI config has 4 stepgens, but I'd like to have 6 or 7. It loads with
 num_stepgens=6 but the question is which output pins can I use for two or
 three extra stepgens?

Any I/O pins that are not already used by something else.  The PRU code
is capable of driving any pin in the 4 32-bit banks of GPIO, as well as
the 16 directly-connected low-latency PRU output pins.

To calculate a pin number to use for the GPIO banks:

Pin# = ((gpio_bank + 1) * 32) + pin_number

...this is the same as the kernel pin numbering scheme, except one is
added to the GPIO bank so that zero results in an invalid pin number and
means don't drive any pin.  This is to keep things safe since all pin
numbers default to zero the way HAL shared memory gets initialized, you
have to explicitly set a pin number before the PRU actually tries to
twiddle something.

-- 
Charles Steinkuehler
char...@steinkuehler.net



signature.asc
Description: OpenPGP digital signature
--
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with 2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users