Pcmcia parallel card
- unbekannt 0815
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
27 Jul 2013 22:13 #37098
by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
I am trying to configure emc2 to work with that PCMCIA Card mentioned from the thread starter. I read that its important to switch on EPP so that it will work with that.
I replaced the io port to d020 when configuring emc2 with sherline pinout. I didnt get any connection yet. I didnt figure out yet if i have to put hand on my linux or on emc2.
I replaced the io port to d020 when configuring emc2 with sherline pinout. I didnt get any connection yet. I didnt figure out yet if i have to put hand on my linux or on emc2.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23460
- Thank you received: 4992
28 Jul 2013 09:24 #37126
by andypugh
Replied by andypugh on topic Pcmcia parallel card
You do not need EPP for your Sherline. Any mode ought to work.
You might want to consider checking the p-port manually.
This widget should show a change when you short an input pin to a GND pin if you have the correct port address.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester
You might want to consider checking the p-port manually.
This widget should show a change when you short an input pin to a GND pin if you have the correct port address.
wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Tester
Please Log in or Create an account to join the conversation.
- unbekannt 0815
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
28 Jul 2013 17:47 #37140
by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
I tried this but i get no reaction on the widget. Only when i Push on the Buttons the Signal went green as long as i push it. The Input Signals are green except one.
lspci -v give me this information
10:00.0 Parallel controller: Oxford Semiconductor Ltd OX9162 Mode 0 (parallel port) (prog-if 03)
Subsystem: Oxford Semiconductor Ltd Device 0000
Flags: medium devsel, IRQ 22
I/O ports at 5020
I/O ports at 5028
I/O ports at 5000
Memory at a8000000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: parport_pc
Kernel modules: parport_pc
So i think the Paralell Port should be working. Did i miss something?
lspci -v give me this information
10:00.0 Parallel controller: Oxford Semiconductor Ltd OX9162 Mode 0 (parallel port) (prog-if 03)
Subsystem: Oxford Semiconductor Ltd Device 0000
Flags: medium devsel, IRQ 22
I/O ports at 5020
I/O ports at 5028
I/O ports at 5000
Memory at a8000000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: parport_pc
Kernel modules: parport_pc
So i think the Paralell Port should be working. Did i miss something?
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23460
- Thank you received: 4992
28 Jul 2013 18:02 #37142
by andypugh
What address are you using in the HAL "loadrt" command?
Replied by andypugh on topic Pcmcia parallel card
I/O ports at 5020
I/O ports at 5028
I/O ports at 5000
What address are you using in the HAL "loadrt" command?
Please Log in or Create an account to join the conversation.
- unbekannt 0815
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
28 Jul 2013 18:22 #37145
by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
I am using 5020 as port adress. i allready tried all three adresses given me from lspci. Using 5028 let emc2 crash when starting.
You mean the HAL commando in my Config i created?
You mean the HAL commando in my Config i created?
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23460
- Thank you received: 4992
28 Jul 2013 19:16 #37151
by andypugh
"5020" or "0x5020" ?
The port addresses are in Hexadecimal. (but you can't tell in that case)
Replied by andypugh on topic Pcmcia parallel card
I am using 5020 as port adress.
"5020" or "0x5020" ?
The port addresses are in Hexadecimal. (but you can't tell in that case)
Please Log in or Create an account to join the conversation.
- unbekannt 0815
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
28 Jul 2013 19:19 #37152
by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
0x5020 i am using.
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23460
- Thank you received: 4992
28 Jul 2013 19:23 #37153
by andypugh
Replied by andypugh on topic Pcmcia parallel card
An earlier message showed that parport_pc was using the card.
If you start LinuxCNC (or the parport tester) then what does lsmod show? It may be that parport_pc is grabbing the card and not giving it to LinuxCNC.
When you said "EMC2 crashed when starting" what was the error message?
(We need more clues than you are giving)
If you start LinuxCNC (or the parport tester) then what does lsmod show? It may be that parport_pc is grabbing the card and not giving it to LinuxCNC.
When you said "EMC2 crashed when starting" what was the error message?
(We need more clues than you are giving)
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23460
- Thank you received: 4992
28 Jul 2013 19:24 #37154
by andypugh
Replied by andypugh on topic Pcmcia parallel card
Also, when using the parallel port tester program, did you change the port address in that HAL file too?
Please Log in or Create an account to join the conversation.
- unbekannt 0815
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 0
28 Jul 2013 19:43 - 28 Jul 2013 19:58 #37157
by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
I corrected the port adress on the Port Tester. Now all Input pins 10-15 are green. Pushing another Pin with the mouse makes them green as long as i am pusing the mouse button.
How can i free the Card for emc2?
This is the error log on Port 0x5028
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.0
Machine configuration directory is '/home/klaus/linuxcnc/configs/Stepcraft'
Machine configuration file is 'Stepcraft.ini'
INIFILE=/home/klaus/linuxcnc/configs/Stepcraft/Stepcraft.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1760
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 File exists
1760
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
ERROR: Removing 'hal_parport': No such file or directory
<commandline>:0: exit value: 1
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
ERROR: Module hal_lib does not exist in /proc/modules
ERROR: Module rtapi does not exist in /proc/modules
ERROR: Module rtai_math does not exist in /proc/modules
ERROR: Module rtai_sem does not exist in /proc/modules
ERROR: Module rtai_fifos does not exist in /proc/modules
ERROR: Removing 'rtai_sched': Device or resource busy
ERROR: Module rtai_hal is in use by rtai_sched
Kernel message information:
[ 4433.654260] I-pipe: Domain RTAI registered.
[ 4433.654268] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 4433.654271] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 4433.654277] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 4433.654280] PIPELINE layers:
[ 4433.654283] fbb41e20 9ac15d93 RTAI 200
[ 4433.654286] c085cb20 0 Linux 100
[ 4433.680174] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 4433.680339] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 4433.680345] RTAI[sched]: hard timer type/freq = APIC/8312470(Hz); default timing: periodic; linear timed lists.
[ 4433.680348] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1728786000 hz.
[ 4433.680351] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 4433.680454] RTAI[usi]: enabled.
[ 4433.753985] RTAI[math]: loaded.
[ 4433.832088] config string '0x5020 out'
[ 5180.587507] RTAI[math]: unloaded.
[ 5180.644073] SCHED releases registered named ALIEN RTGLBH
[ 5180.660294] RTAI[malloc]: unloaded.
[ 5180.760023] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 5180.768100] I-pipe: Domain RTAI unregistered.
[ 5180.768110] RTAI[hal]: unmounted.
Starting the parport tester with that port it crashes with
klaus@klaus-desktop:~/Downloads$ halrun -I -f ptest.hal
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_parport.ko': -1 Device or resource busy
ptest.hal:1: exit value: 1
ptest.hal:1: insmod failed, returned -1
See the output of 'dmesg' for more information.
How can i free the Card for emc2?
This is the error log on Port 0x5028
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.5.0
Machine configuration directory is '/home/klaus/linuxcnc/configs/Stepcraft'
Machine configuration file is 'Stepcraft.ini'
INIFILE=/home/klaus/linuxcnc/configs/Stepcraft/Stepcraft.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1760
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
Can not find -sec LINUXCNC -var NML_FILE -num 1
Can not find -sec EMC -var NML_FILE -num 1
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/rtai_hal.ko': -1 File exists
1760
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
ERROR: Removing 'hal_parport': No such file or directory
<commandline>:0: exit value: 1
<commandline>:0: rmmod failed, returned -1
<commandline>:0: unloadrt failed
ERROR: Module hal_lib does not exist in /proc/modules
ERROR: Module rtapi does not exist in /proc/modules
ERROR: Module rtai_math does not exist in /proc/modules
ERROR: Module rtai_sem does not exist in /proc/modules
ERROR: Module rtai_fifos does not exist in /proc/modules
ERROR: Removing 'rtai_sched': Device or resource busy
ERROR: Module rtai_hal is in use by rtai_sched
Kernel message information:
[ 4433.654260] I-pipe: Domain RTAI registered.
[ 4433.654268] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 4433.654271] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 4433.654277] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 4433.654280] PIPELINE layers:
[ 4433.654283] fbb41e20 9ac15d93 RTAI 200
[ 4433.654286] c085cb20 0 Linux 100
[ 4433.680174] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 4433.680339] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 4433.680345] RTAI[sched]: hard timer type/freq = APIC/8312470(Hz); default timing: periodic; linear timed lists.
[ 4433.680348] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1728786000 hz.
[ 4433.680351] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 4433.680454] RTAI[usi]: enabled.
[ 4433.753985] RTAI[math]: loaded.
[ 4433.832088] config string '0x5020 out'
[ 5180.587507] RTAI[math]: unloaded.
[ 5180.644073] SCHED releases registered named ALIEN RTGLBH
[ 5180.660294] RTAI[malloc]: unloaded.
[ 5180.760023] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 5180.768100] I-pipe: Domain RTAI unregistered.
[ 5180.768110] RTAI[hal]: unmounted.
Starting the parport tester with that port it crashes with
klaus@klaus-desktop:~/Downloads$ halrun -I -f ptest.hal
insmod: error inserting '/usr/realtime-2.6.32-122-rtai/modules/linuxcnc/hal_parport.ko': -1 Device or resource busy
ptest.hal:1: exit value: 1
ptest.hal:1: insmod failed, returned -1
See the output of 'dmesg' for more information.
Last edit: 28 Jul 2013 19:58 by unbekannt 0815.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.174 seconds