Parallelport Pins keine Spannung

More
17 Feb 2022 11:20 #235117 by newcncsmith
Hallo Freunde,

ich heiße Benjamin, bin Maschinenbauingenieur und versuche mich an meiner ersten CNC-Fräsmaschine.

Dazu habe ich in einen ausgedienten PC eine 2xLPT Karte DeLock 89125 mit MosChip Chipsatz im PCI-E Slot eingebaut.

im Terminal erhalte ich mit "sudo dmesg|grep parport" die Meldung

[    5.025456] parport0: PC-style at 0xdf00, irq 17 [PCSPP,TRISTATE,EPP]
[    5.133400] parport1: PC-style at 0xdd00, irq 19 [PCSPP,TRISTATE,EPP]

mit lspci -v erhalte ich

03:00.2 Parallel controller: MosChip Semiconductor Technology Ltd. PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
    Subsystem: Device a000:2000
    Flags: bus master, medium devsel, latency 32, IRQ 19, NUMA node 0
    I/O ports at dd00
    I/O ports at dc00
    Memory at fdcfd000 (32-bit, non-prefetchable) [size=4K]
    Memory at fdcfc000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: parport_pc
    Kernel modules: parport_pc

Das wirft schonmal die FRage auf, welche Ports jetzt richtig sind?

In der HAL habe ich geschrieben

loadrt hal_parport cfg="0xdd00 out 0xdf00 out"

Das läuft fehlerfrei durch. Die Adresse 0xdc00 gibt aber Fehler.

Das Symptom ist aber, dass der ParPort überhaupt nicht geagiert. Keinerlei Spannung zu messen.

Das angeschlossene Benezan Mini Breakout Board reagiert auch nicht, kriegt auch keinen Watchdog, obwohl der im HAL-Show blinkend beobachtet werden kann.

Ist die Adressierung grundsätzlich falsch?

Danke schonmal für eure Unterstützung!

MfG Benjamin

 

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

More
17 Feb 2022 11:47 #235122 by tommylight
That looks OK.
Try using the parallel port tester that is included with LinuxCNC, in the config chooser go to apps, there should be two addresses there that are of no use to you, but when you start them LinuxCNC will copy them to your config folder, so open the resulting hal file and change the address there, save and test.

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

More
17 Feb 2022 11:48 - 17 Feb 2022 11:50 #235123 by spicer
Wie ist das jetzt zu verstehn?
Du redest von den Ports 0xdd00 out 0xdf00 out und erhälst Fehler von 0xdc00......
Last edit: 17 Feb 2022 11:50 by spicer.

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

More
17 Feb 2022 12:02 #235125 by newcncsmith
@tommylight: Thank you, I will try that.

@spicer: Mit "lspci" kriege ich dd00 und dc00 als Adressen. Wenn ich dc00 in der HAL verwende erscheint aber ein Fehlerreport mit Angabe der entsprechenden HAL Zeile. Port nicht vorhanden steht da quasi.

Mit "dmesg|grep parport" werden andere Adressen angezeigt, nämlich dd00 und df00, die auch ohne Fehler akzeptiert werden wenn die HAL abgearbeitet wird.

Also scheine es die Ports an den Adressen zu geben und die lassen sich auch als "out" konfigurieren.

So verstehe ich das jedenfalls.

Meldet ein Port sich zurück wenn er konfiguriert wurde?

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

More
17 Feb 2022 12:13 #235126 by spicer
Nein. Die halten die Füsse still. Keinerlei Feedback.....leider.

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

More
17 Feb 2022 13:05 #235129 by newcncsmith
@tommylight: I found the app but where is the folder that contains the HAL where I need to type in the adresses to be tested?

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

More
17 Feb 2022 14:56 #235141 by tommylight
/home/your_user_name/linuxcnc/configs/

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

More
17 Feb 2022 22:33 #235189 by newcncsmith
this is the folder where my own config is stored. I cant find the ptest.hal there ...

I found it in /usr/share/doc/linuxcnc/examples/sample-configs/apps/parport but this folder seems to be read only. Do I not have the rights? However ...

I created a new folder and copied the ptest hal and the xml and launched the tester via terminal. Was hard for a newbie like me but worked.

The only thing that didnt work was the parport itself.

I tried every entry listed here:

03:00.2 Parallel controller: MosChip Semiconductor Technology Ltd. PCI 9865 Multi-I/O Controller (prog-if 03 [IEEE1284])
    Subsystem: Device a000:2000
    Flags: bus master, medium devsel, latency 32, IRQ 19, NUMA node 0
    I/O ports at dd00
    I/O ports at dc00
    Memory at fdcfd000 (32-bit, non-prefetchable) [size=4K]
    Memory at fdcfc000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: parport_pc
    Kernel modules: parport_pc

In this case 0xdd00 and 0xdc00.

For 0xdc00 following error occurs:

Note: Using POSIX realtime
config string '0xdc00 out'
No parport registered at 0xdc00. This is not always an error. Continuing.

For 0xdd00 it looks like this:

Note: Using POSIX realtime
config string '0xdd00 out'
halcmd: exit
Note: Using POSIX realtime

Adress is accepted but the multimeter connected to pin1 and pin20 or any ground does not show any mV.

Tested also for df00, df02, df03, df07, dd00, dd02, dd03, dd07 because I found theese adresses in terminal with - forgot the command. Also tested simply "0" and "1". Didnt work either.

With "dmesg|grep parport" I get:
[    5.025456] parport0: PC-style at 0xdf00, irq 17 [PCSPP,TRISTATE,EPP]
[    5.133400] parport1: PC-style at 0xdd00, irq 19 [PCSPP,TRISTATE,EPP]

So the two parports seem to be known and available but there is no reaction.

Any Ideas??

 

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

More
17 Feb 2022 23:05 - 17 Feb 2022 23:18 #235193 by spicer
"I found it in /usr/share/doc/linuxcnc/examples/sample-configs/apps/parport but this folder seems to be read only. Do I not have the rights? However ..."

Zuerst sudo. Dann hast Schreibrechte. ZBsp sudo nano /usr/share/doc/linuxcnc/examples/sample-configs/apps/parport

Aber kopiere die Beispiel-Configs in Dein home Verzeichnis ( /home/your_user_name/linuxcnc/configs/ ) und bearbeite diese da.
Die Beispiele sind für das gedacht.

Hast Du Breakout Boards an den Parports?
Zum testen, steck mal nur eine LPT Karte (Netzstecker vorher ziehen ^^ )

Siehe auch noch: wiki.linuxcnc.org/cgi-bin/wiki.pl?Parallel_Port_Cards
Last edit: 17 Feb 2022 23:18 by spicer.
The following user(s) said Thank You: tommylight

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

More
17 Feb 2022 23:26 #235195 by spicer
Was zeigt: lspci -vv ?
Siehe dazu auch: wiki.linuxcnc.org/cgi-bin/wiki.pl?NetMos

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

Time to create page: 0.398 seconds
Powered by Kunena Forum