Pcmcia parallel card

More
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.

More
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.
Last edit: 28 Jul 2013 19:58 by unbekannt 0815.

Please Log in or Create an account to join the conversation.

More
28 Jul 2013 23:15 #37170 by andypugh
Replied by andypugh 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.

That is probably just a user-interface thing.
The important question is whether the input pins change state when you connect them to a ground pin.

How can i free the Card for emc2?

wiki.linuxcnc.org/cgi-bin/wiki.pl?Troubl...ice_or_resource_busy

Please Log in or Create an account to join the conversation.

More
29 Jul 2013 17:06 #37201 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
The Troubleshooting guide did not help. I am still getting the busy error message. Are you sure this must be the right port cause it is busy?

Please Log in or Create an account to join the conversation.

More
29 Jul 2013 17:15 #37202 by andypugh
Replied by andypugh on topic Pcmcia parallel card

The Troubleshooting guide did not help. I am still getting the busy error message. Are you sure this must be the right port cause it is busy?


I think the 0x5020 address is the most likely.

You still haven't actually said if the 0x5020 address works for input.

Please Log in or Create an account to join the conversation.

More
29 Jul 2013 17:44 #37203 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
I tried all ports now with the result that i get on 0x5020 and 0x5000 no reaction when groundin the Input Pins.

On 5028 i get the Busy error Message, even with the troubleshooting guide.

Please Log in or Create an account to join the conversation.

More
29 Jul 2013 18:07 #37205 by andypugh
Replied by andypugh on topic Pcmcia parallel card

I tried all ports now with the result that i get on 0x5020 and 0x5000 no reaction when groundin the Input Pins.

On 5028 i get the Busy error Message, even with the troubleshooting guide.


What does
cat /proc/ioports
say?

Please Log in or Create an account to join the conversation.

More
29 Jul 2013 18:14 #37207 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
5000-5fff : PCI Bus 0000:0f
5000-50ff : PCI CardBus 0000:10
5000-501f : 0000:10:00.0
5020-5027 : 0000:10:00.0
5028-502b : 0000:10:00.0
5400-54ff : PCI CardBus 0000:10
fe00-fe00 : pnp 00:08

Means to me the Ports are available.

Please Log in or Create an account to join the conversation.

More
29 Jul 2013 18:19 #37208 by andypugh
Replied by andypugh on topic Pcmcia parallel card

5000-5fff : PCI Bus 0000:0f
5000-50ff : PCI CardBus 0000:10
5000-501f : 0000:10:00.0
5020-5027 : 0000:10:00.0
5028-502b : 0000:10:00.0
5400-54ff : PCI CardBus 0000:10
fe00-fe00 : pnp 00:08

Means to me the Ports are available.


I was expecting to see the ports listed as parallel ports, though.
lsmod
?

Please Log in or Create an account to join the conversation.

More
29 Jul 2013 18:22 #37209 by unbekannt 0815
Replied by unbekannt 0815 on topic Pcmcia parallel card
Here we go:


Module Size Used by
michael_mic 1732 8
arc4 1153 4
nls_utf8 1069 1
isofs 29250 1
dm_crypt 11363 0
binfmt_misc 6587 1
ppdev 5259 0
snd_hda_codec_realtek 203166 1
snd_hda_intel 21723 2
snd_hda_codec 69517 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 5372 1 snd_hda_codec
snd_pcm_oss 35244 0
snd_mixer_oss 13695 1 snd_pcm_oss
snd_pcm 67036 3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy 1338 0
snd_seq_oss 26726 0
pcmcia 32110 0
snd_seq_midi 4557 0
snd_rawmidi 17955 1 snd_seq_midi
snd_seq_midi_event 5572 2 snd_seq_oss,snd_seq_midi
snd_seq 46527 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
lib80211_crypt_tkip 7596 0
snd_timer 18138 2 snd_pcm,snd_seq
snd_seq_device 5355 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
nsc_ircc 18220 0
sdhci_pci 5470 0
tifm_7xx1 3658 0
yenta_socket 20408 2
rsrc_nonstatic 9968 1 yenta_socket
sdhci 15303 1 sdhci_pci
acer_wmi 13861 0
irda 183587 1 nsc_ircc
crc_ccitt 1261 1 irda
tifm_core 5421 1 tifm_7xx1
pcmcia_core 31142 3 pcmcia,yenta_socket,rsrc_nonstatic
psmouse 63213 0
serio_raw 3978 0
led_class 2673 2 sdhci,acer_wmi
joydev 8644 0
wl 1959566 0
snd 51043 16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
lp 7028 0
lib80211 4494 2 lib80211_crypt_tkip,wl
soundcore 6016 1 snd
snd_page_alloc 6717 2 snd_hda_intel,snd_pcm
parport 30764 2 ppdev,lp
dm_raid45 81157 0
xor 14673 1 dm_raid45
fbcon 35102 71
tileblit 1987 1 fbcon
font 7406 1 fbcon
bitblit 4664 1 fbcon
softcursor 1151 1 bitblit
vga16fb 11161 0
vgastate 8760 1 vga16fb
i915 282703 3
ohci1394 26736 0
drm_kms_helper 27748 1 i915
intel_agp 24133 2 i915
ieee1394 76629 1 ohci1394
usbhid 35772 0
hid 65804 1 usbhid
drm 154120 4 i915,drm_kms_helper
i2c_algo_bit 4903 1 i915
tg3 109132 0
agpgart 29292 2 intel_agp,drm
video 17089 1 i915
output 1773 1 video

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 1.210 seconds
Powered by Kunena Forum