[Machinekit] Re: Rpi3, Beagleboard X15, And Avnet Ultra96

2018-08-07 Thread Claudio Lorini
Nice and compact board, but i cannot understand the choice of removing 
wired Ethernet. 
Also missing CAN bus comms, so for 'usual' control applications a 
daughter-board is required 
and the somewhat limited IOs gets plundered even more...

 

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


[Machinekit] mklauncher "Can not find -sec DISPLAY -var INTRO_GRAPHIC"

2018-08-07 Thread Cameron McQuinn
Hi everyone,

I am trying to run a qtquickvcp-based config on my Snickerdoodle, but the 
launch fails. The linuxcnc_debug.txt file records the error "Can not find 
-sec DISPLAY -var INTRO_GRAPHIC". The config I am using is based of the 
ones created by MIchael Brown, and can be found in this 
 repo. I am trying to run the HAL 
Snickerdoodle config using the run.py python script. I am using the latest 
version of machinekit from the repo, and the latest version of QtQuickVcp 
compiled from source for armhf.

I was able to successfully start the config several months ago, but I had 
to set the project aside for a while. When I returned, I upgraded the 
kernel from 4.9 to 4.14, and upgraded machinekit and QtQuickVcp to the 
latest versions, but didnt' change anything else.

I have attached relevant log files, and am happy to provide more detail if 
necessary.

Thanks,
Cameron

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.
Aug  8 02:01:22 socfpga msgd:0: startup pid=1885 flavor=rt-preempt rtlevel=5 
usrlevel=5 halsize=524288 shm=Posix cc=gcc 6.3.0 20170516  
version=v0.1~-~5d86a7e
Aug  8 02:01:22 socfpga msgd:0: ØMQ=4.2.1 czmq=4.0.2 protobuf=3.0.0 atomics=gcc 
intrinsicslibwebsockets=2.0.3
Aug  8 02:01:22 socfpga msgd:0: configured: sha=5d86a7e
Aug  8 02:01:22 socfpga msgd:0: built:  Jul 24 2018 16:00:52 sha=5d86a7e
Aug  8 02:01:22 socfpga msgd:0: register_stuff: actual hostname as announced by 
avahi='socfpga.local'
Aug  8 02:01:22 socfpga msgd:0: zeroconf: registering: 'Log service on 
socfpga.local pid 1885'
Aug  8 02:01:22 socfpga rtapi:0: 2:rtapi_app:1890:user rtapi:0: cannot create 
core dumps - /proc/sys/fs/suid_dumpable contains 0
Aug  8 02:01:22 socfpga rtapi:0: 2:rtapi_app:1890:user you might have to run 
'echo 1 > /proc/sys/fs/suid_dumpable' as root to enable rtapi_app core dumps
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user rtapi.so default iparms: 
''
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user RTAPI:0  rt-preempt 
v0.1~-~5d86a7e init
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user rtapi: loaded from 
rtapi.so
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user hal_lib.so default 
iparms: ''
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user rtapi_app_main:195 HAL: 
initializing RT hal_lib support
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user halg_xinitfv:90 HAL: 
initializing component 'hal_lib' type=4 arg1=0 arg2=0/0x0
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user hal_heap_addmem:58 HAL: 
extending arena by 262144 bytes
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user halg_export_xfunctfv:85 
HAL: exporting function 'newinst' type 2 fp=0 owner=66
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user halg_export_xfunctfv:85 
HAL: exporting function 'delinst' type 2 fp=0 owner=66
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user halg_xinitfv:271 HAL: 
singleton component 'hal_lib' id=66 initialized
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user rtapi_app_main:199 HAL: 
RT hal_lib support initialized rc=66
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user hal_lib: loaded from 
hal_lib.so
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user accepting commands at 
ipc:///tmp/0.rtapi.a42c8c6b-4025-4f83-ba28-dad21114744a
Aug  8 02:01:23 socfpga rtapi:0: 3:rtapi_app:1890:user rtapi_app:0 ready 
flavor=rt-preempt gcc=6.3.0 20170516 git=v0.1~-~5d86a7e
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user pid=1890 
flavor=rt-preempt gcc=6.3.0 20170516 git=v0.1~-~5d86a7e
Aug  8 02:01:23 socfpga rtapi:0: 4:rtapi_app:1890:user pid=1890 
flavor=rt-preempt gcc=6.3.0 20170516 git=v0.1~-~5d86a7e
Aug  8 02:01:23 socfpga msgd:0: zeroconf: registered 'Log service on 
socfpga.local pid 1885' _machinekit._tcp 49152 TXT 
"uuid=a42c8c6b-4025-4f83-ba28-dad21114744a" 
"instance=f2f28674-9aae-11e8-9c8a-c8fd19920861" "service=log" 
"dsn=tcp://socfpga.local:49152"
Aug  8 02:01:23 socfpga msgd:0: ulapi:1891:user _ulapi_init(): ulapi rt-preempt 
v0.1~-~5d86a7e loaded
Aug  8 02:01:23 socfpga msgd:0: ulapi:1891:user halg_xinitfv:271 HAL: singleton 
component 'hal_lib1891' id=70 initialized
Aug  8 02:01:23 socfpga msgd:0: hal_lib:1891:user --halcmd ping
Aug  8 02:01:23 socfpga msgd:0: hal_lib:1891:user halg_exit:293 HAL: removing 
component 72 'halcmd1891'
Aug  8 02:01:23 socfpga msgd:0: hal_lib:1891:user ulapi_hal_lib_cleanup:235 
HAL: lib_module_id=70
Aug  8 02:01:23 socfpga msgd:0: hal_lib:1891:user halg_exit:293 HAL: removing 
component 70 'hal_lib1891'
Aug  8 02:01:23 so

[Machinekit] Re: Need help on pin mapping (BBB)

2018-08-07 Thread Jeff Pollard
Hi,

  There is a table here:

https://github.com/cdsteinkuehler/beaglebone-black-pinmux/blob/hal_pru_generic/pinmux.ods

  that shows how various pins can be assigned.

   The pin's drive capability seems to vary from pin to pin on the BBB, so 
you should probably check that to make sure it can drive your led in the 
opto.  Or just use a logic buffer to drive the opto.

Jeff


On Tuesday, August 7, 2018 at 1:45:43 AM UTC-7, Lang Gu wrote:
>
>
> 
> Hello machinekit team and everyone 
>
> I come from China,my english is very poor.So try to say as simple as 
> possible. 
> In China  It's no cnc cape available.So i try to make a 5 axis cnc cape 
> for BBB.
>
> Someone can tell me if this pin assignment is possible, or if there are 
> any problems?
>
> P8 SIGNAL 
> 1 GND 
> 2 GND 
> 3 A_ 
> 4 B_ 
> 5 X_1 
> 6 X_10 
> 7 X_100 
> 8 X-AXIS 
> 9 Y-AXIS 
> 10 Z-AXIS 
> 11 4-AXIS 
> 12 5-AXIS 
> 13 PWM-0 
> 14 X-MIN 
> 15 X-MAX 
> 16 Y-MIN 
> 17 Y-MAX 
> 18 Z-MIN 
> 19 Z-MAX 
> 20 A-MIN 
> 21 A-HOME 
> 22 B-HOME 
> 23 E-STOP 
> 24 SPINDLE-SPEED 
> 25 Z-PROBE 
> 26 TOOL-SENSOR 
> 27 HDMI 
> 28 HDMI 
> 29 HDMI 
> 30 HDMI 
> 31 HDMI 
> 32 HDMI 
> 33 HDMI 
> 34 HDMI 
> 35 HDMI 
> 36 HDMI 
> 37 HDMI 
> 38 HDMI 
> 39 HDMI 
> 40 HDMI 
> 41 HDMI 
> 42 HDMI 
> 43 HDMI 
> 44 HDMI 
> 45 HDMI 
> 46 HDMI 
>
>
>
> P9 SIGNAL 
> 1 GND 
> 2 GND 
> 3 3.3V 
> 4 3.3V 
> 5 5V 
> 6 5V 
> 7 SYS-5V 
> 8 SYS-5V 
> 9 PWR_BUT 
> 10 SYS_RESETn 
> 11 X-STEP 
> 12 X-DIR 
> 13 Y-STEP 
> 14 PWM-2 
> 15 Y-DIR 
> 16 Z-STEP 
> 17 Z-DIR 
> 18 A-STEP 
> 19 I2C2_SCL 
> 20 I2C2_SDA 
> 21 A-DIR 
> 22 B-STEP 
> 23 B-DIR 
> 24 6-STEP 
> 25 6-DIR 
> 26 SPINDLE-ON 
> 27 COOLANT 
> 28 OUT3 
> 29 OUT4 
> 30 OUT5 
> 31 OUT6 
> 32 
> 33 
> 34 
> 35 
> 36 
> 37 
> 38 
> 39 
> 40 
> 41 OUT7 
> 42 OUT8 
> 43 GND 
> 44 GND 
> 45 GND 
> 46 GND 
> INPUT & OUTPUT SCH 
>
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


[Machinekit] Re: Need help on pin mapping (BBB)

2018-08-07 Thread Lang Gu


在 2018年8月7日星期二 UTC+8下午4:45:43,Lang Gu写道:
>
>
> 
> Hello machinekit team and everyone 
>
> I come from China,my english is very poor.So try to say as simple as 
> possible. 
> In China  It's no cnc cape available.So i try to make a 5 axis cnc cape 
> for BBB.
>
> Someone can tell me if this pin assignment is possible, or if there are 
> any problems?  
>
>   I WILL DISSABLE EMMC


 

> P8 SIGNAL 
> 1 GND 
> 2 GND 
> 3 A_ 
> 4 B_ 
> 5 X_1 
> 6 X_10 
> 7 X_100 
> 8 X-AXIS 
> 9 Y-AXIS 
> 10 Z-AXIS 
> 11 4-AXIS 
> 12 5-AXIS 
> 13 PWM-0 
> 14 X-MIN 
> 15 X-MAX 
> 16 Y-MIN 
> 17 Y-MAX 
> 18 Z-MIN 
> 19 Z-MAX 
> 20 A-MIN 
> 21 A-HOME 
> 22 B-HOME 
> 23 E-STOP 
> 24 SPINDLE-SPEED 
> 25 Z-PROBE 
> 26 TOOL-SENSOR 
> 27 HDMI 
> 28 HDMI 
> 29 HDMI 
> 30 HDMI 
> 31 HDMI 
> 32 HDMI 
> 33 HDMI 
> 34 HDMI 
> 35 HDMI 
> 36 HDMI 
> 37 HDMI 
> 38 HDMI 
> 39 HDMI 
> 40 HDMI 
> 41 HDMI 
> 42 HDMI 
> 43 HDMI 
> 44 HDMI 
> 45 HDMI 
> 46 HDMI 
>
>
>
> P9 SIGNAL 
> 1 GND 
> 2 GND 
> 3 3.3V 
> 4 3.3V 
> 5 5V 
> 6 5V 
> 7 SYS-5V 
> 8 SYS-5V 
> 9 PWR_BUT 
> 10 SYS_RESETn 
> 11 X-STEP 
> 12 X-DIR 
> 13 Y-STEP 
> 14 PWM-2 
> 15 Y-DIR 
> 16 Z-STEP 
> 17 Z-DIR 
> 18 A-STEP 
> 19 I2C2_SCL 
> 20 I2C2_SDA 
> 21 A-DIR 
> 22 B-STEP 
> 23 B-DIR 
> 24 6-STEP 
> 25 6-DIR 
> 26 SPINDLE-ON 
> 27 COOLANT 
> 28 OUT3 
> 29 OUT4 
> 30 OUT5 
> 31 OUT6 
> 32 
> 33 
> 34 
> 35 
> 36 
> 37 
> 38 
> 39 
> 40 
> 41 OUT7 
> 42 OUT8 
> 43 GND 
> 44 GND 
> 45 GND 
> 46 GND 
> INPUT & OUTPUT SCH 
>
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


[Machinekit] Re: RPI gipo help

2018-08-07 Thread KL Chin
Hi Tim, 

I think the pin layout not correct as compare to the pins in hal_gpio.c

#rpi2_gpios[] = {2, 3, 4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 
17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 };
#rpi2_pins[] =  {3, 5, 7, 29, 31, 26, 24, 21, 19, 23, 32, 33,  8, 10, 36, 
11, 12, 35, 38, 40, 15, 16, 18, 22, 37, 13 };

Can you verify it

  rpi2_pins   38, 40, 15, 16  should be  38, 15, 40, 16

Regards,
KL Chin

On Monday, 18 June 2018 00:06:02 UTC+8, Timothy March wrote:
>
> Having trouble getting gipo's to work can get all to show up as outputs 
> but when I load comp no pins are available output or input. The following 
> is my work sheet for what I am trying to achieve
>
> BOBSIGNAL GIPOIN or OUT   RPI PINBINARY
>
> P2 =XPUL= GIPO2  =   OUT  =   3=1
> P3 =XDIR = GIPO3  =   OUT  =   5=1
> P4 =YPUL= GIPO4  =   OUT  =   7=1
> P5 =YDIR = GIPO5  =   OUT  =  29   =1
> P6 =UPUL= GIPO6  =   OUT  =  31   =1
> P7 =UDIR = GIPO7  =   OUT  =  26=1
> P8 =VPUL= GIP08  =   OUT   =  24=1
> P9 =VDIR= GIPO9  =   OUT   =  21=1
> P10=   ESTOP = GIPO10 =   IN =  19=0
> P11=X AXIS LIMIT= GIPO11 =   IN=  23=0
> P12=Y AXIS LIMIT= GIPO12 =   IN=  32=0
> P13=U AXIS LIMIT= GIPO13 =   IN=  33=0
> P14=ENABLE= GIPO14 = OUT  =   8=1
> P15=V AXIS LIMIT= GIPO15 =   IN=  10=0
> P16=BPUL= GIPO16 =OUT=  36=1
> P17=  BDIR/RELAY= GIPO17 =OUT   =  11=1
> P1 =PWM  = GIPO18 =OUT   =  12=1
> GND=   PC GROUND=   ~  =~=   9=~
> PCGND= PC GROUND=   ~=~   =  14=~
> PC5V=  PC 5 VOLT=   ~=~=   2=~
> PC5V=  PC 5 VOLT=   ~   =~ =   4=~
> --
> loadrt hal_gpio dir=0x??
> 1 means output
> 0 means input
>
> you can exclude pins that you will not use
>
> loadrt hal_gpio dir=0x exclude=0x???
> 1 means don't use this pin
> 0 means use this pin
>
> or you can directly write binary numbers in loading hal_gpio comp
> 
>
> #rpi2_gpios[] = {2, 3, 4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, 16, 
> 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 };
> #rpi2_pins[] =  {3, 5, 7, 29, 31, 26, 24, 21, 19, 23, 32, 33,  8, 10, 36, 
> 11, 12, 35, 38, 40, 15, 16, 18, 22, 37, 13 };
>
>  dir=0x  1  1  1   1   1   1   1   1   0   0   0   0   1   0   1   
> 1   1   0   0   0   0   0   0   0   0   0  
>  exclude=0  0  0   0   0   0   0   0   0   0   0   0   0   0   0   
> 0   0   1   1   1   1   1   1   1   1   
> 1
> 
> #commandline
> echo 'ibase=2;A;101110' | bc
> 10
> 66858496
>
> echo 'ibase=2;A;01' | bc
> 10
> 511
> --
> #For my BOB
> loadrt hal_gpio dir=0x101110 
> exclude=0x01
> or
> loadrt hal_gpio dir=66858496 exclude=511
>
> --
>
> To get pins to show as all outputs I use:
> loadrt hal_gipo
>
> I am running Raspbian Jessie this is a new install of OS the output for 
> dmesg is as follows
>
> pi@raspberrypi:~ $ machinekit
> MACHINEKIT - 0.1
> Machine configuration directory is '/home/pi/machinekit/configs/my-foam'
> Machine configuration file is 'my-foam.ini'
> Starting Machinekit...
> rtapi_msgd command:  /usr/libexec/linuxcnc/rtapi_msgd --instance=0 
> --rtmsglevel=1 --usrmsglevel=1 --halsize=524288
> rtapi_app command:  /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0
> io started
> halcmd loadusr io started
> standard_pinout.hal:25: Pin 'hal_gpio.pin-03-out' does not exist
> Shutting down and cleaning up Machinekit...
> Cleanup done
> Machinekit terminated with an error.  You can find more information in the 
> log:
> /home/pi/linuxcnc_debug.txt
> and
> /home/pi/linuxcnc_print.txt
> as well as in the output of the shell command 'dmesg' and in the terminal
> pi@raspberrypi:~ $ dmesg
> [0.00] Booting Linux on physical CPU 0x0
> [0.00] Linux version 4.14.43-rt31-rc1-v7+ (pi@raspberrypi) (gcc 
> version 4.9.2 (Raspbian 4.9.2-10+deb8u1)) #1 SMP PREEMPT RT Mon Jun 11 
> 01:27:42 EDT 2018
> [0.00] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), 
> cr=10c5383d
> [0.00] CPU: div instructions available: patching division code
> [0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
> instruction cache
> [0.00] OF: fdt: Machine model:

[Machinekit] Need help on pin mapping (BBB)

2018-08-07 Thread Lang Gu



Hello machinekit team and everyone 

I come from China,my english is very poor.So try to say as simple as 
possible. 
In China  It's no cnc cape available.So i try to make a 5 axis cnc cape for 
BBB.

Someone can tell me if this pin assignment is possible, or if there are any 
problems?

P8 SIGNAL 
1 GND 
2 GND 
3 A_ 
4 B_ 
5 X_1 
6 X_10 
7 X_100 
8 X-AXIS 
9 Y-AXIS 
10 Z-AXIS 
11 4-AXIS 
12 5-AXIS 
13 PWM-0 
14 X-MIN 
15 X-MAX 
16 Y-MIN 
17 Y-MAX 
18 Z-MIN 
19 Z-MAX 
20 A-MIN 
21 A-HOME 
22 B-HOME 
23 E-STOP 
24 SPINDLE-SPEED 
25 Z-PROBE 
26 TOOL-SENSOR 
27 HDMI 
28 HDMI 
29 HDMI 
30 HDMI 
31 HDMI 
32 HDMI 
33 HDMI 
34 HDMI 
35 HDMI 
36 HDMI 
37 HDMI 
38 HDMI 
39 HDMI 
40 HDMI 
41 HDMI 
42 HDMI 
43 HDMI 
44 HDMI 
45 HDMI 
46 HDMI 



P9 SIGNAL 
1 GND 
2 GND 
3 3.3V 
4 3.3V 
5 5V 
6 5V 
7 SYS-5V 
8 SYS-5V 
9 PWR_BUT 
10 SYS_RESETn 
11 X-STEP 
12 X-DIR 
13 Y-STEP 
14 PWM-2 
15 Y-DIR 
16 Z-STEP 
17 Z-DIR 
18 A-STEP 
19 I2C2_SCL 
20 I2C2_SDA 
21 A-DIR 
22 B-STEP 
23 B-DIR 
24 6-STEP 
25 6-DIR 
26 SPINDLE-ON 
27 COOLANT 
28 OUT3 
29 OUT4 
30 OUT5 
31 OUT6 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 OUT7 
42 OUT8 
43 GND 
44 GND 
45 GND 
46 GND 
INPUT & OUTPUT SCH 

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.