Advanced Search

Search Results (Searched for: XHC)

  • PCW
  • PCW's Avatar
14 May 2024 21:44 - 14 May 2024 21:45
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

Sounds like the whb hal (postgiu.hal?) file is not linked-in

(I usually test this kind of issue by inserting a deliberate error in the file
to make sure its being used)
  • westhedge
  • westhedge
14 May 2024 21:38
Replied by westhedge on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

I think I have discovered the root of the problem:

if I do this all in JUST the WHB file:
net machine.is-on                halui.machine.is-on
net machine.is-on                whb.halui.machine.is-on

halshow shows the desired wiring.

But if I have the same exact lines in their respective separate main and WHB files, that's when the pin wiring breaks down.

So... maybe this has something to do with the way hal processes the net commands across files. I can say with certainty the two commands above on separate files = non-working WHB.
  • PCW
  • PCW's Avatar
14 May 2024 21:30
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

No sure why halshow does that but halcmd prints the expected (identical) thing:

halcmd: net a hm2_7i95.0.inmux.00.input-00
halcmd: net a hm2_7i95.0.ssr.00.out-00
halcmd: show signal a
Signals:
Type                  Value  Name     (linked to)
bit                   FALSE  a
                                 <== hm2_7i95.0.inmux.00.input-00
                                 ==> hm2_7i95.0.ssr.00.out-00

(new session)


halcmd: net a  hm2_7i95.0.inmux.00.input-00  hm2_7i95.0.ssr.00.out-00
halcmd: show signal a
Signals:
Type                  Value  Name     (linked to)
bit                   FALSE  a
                                 <== hm2_7i95.0.inmux.00.input-00
                                 ==> hm2_7i95.0.ssr.00.out-00



 
  • westhedge
  • westhedge
14 May 2024 21:19
Replied by westhedge on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

Interesting...
So If I have just this one line:
net machine.is-on whb.halui.machine.is-on halui.machine.is-on

halshow shows this for the signal:
Signals:
Type          Value  Name     (linked to)
bit           FALSE  machine.is-on
                         <== halui.machine.is-on
                         ==> whb.halui.machine.is-on

But if instead I have these 2 lines:
net machine-is-on         halui.machine.is-on
net machine.is-on         whb.halui.machine.is-on


halshow shows:
Signals:
Type Value Name (linked to)
bit FALSE machine-is-on
<== halui.machine.is-on
  • PCW
  • PCW's Avatar
14 May 2024 21:19 - 14 May 2024 21:19
Replied by PCW on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

These statements are equivalent:

net a b1 b2 b3

net a b1
net a b2
net a b3

As long as 'a' is a signal and 'b1', 'b2' are pins
and you do not have more than one source pin.
  • westhedge
  • westhedge
14 May 2024 21:07
Replied by westhedge on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

Therein lies my confusion. When I read the basic hal linuxcnc.org/docs/2.6/html/hal/basic_hal.html it says "The same signal-name can be used in multiple net commands to connect additional pins, as long as the rules above are obeyed." (then there's a diagram showing the flow)

My understanding (which may be incorrect?):
machine.is-on (signal)
halui.machine.is-on (signal reader)
whb.halui.machine.is-on (signal reader)


And the man page (their example) states:
"Since the signal xStep contains the value of stepgen.0.out (the source) you can use the same signal again to send the value to another reader. To do this just use the signal with the readers on another line."
So my first attempt was to do just that, but it did not work as I'd expected. Am I incorrect about the nature of these pins?
e.g.
net a b1 b2
does not appear to be the same as
net a b1
net a b2


As I say - maybe my understanding of these pins is flawed. New to the hal concept, and I'm thinking about it like logic circuit wiring.
  • tommylight
  • tommylight's Avatar
14 May 2024 20:48
Replied by tommylight on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

net = connect some pin to some other pin
machine.is-on = LinuxCNC machine on/off pin
halui.machine.is-on = hal UI meaning User interface machine on/off pin
whb.halui.machine.is-on = WHB "joystick" machine on/off pin
  • westhedge
  • westhedge
14 May 2024 18:47
Replied by westhedge on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

Holy. Moly.
The issue plaguing me was NOT obvious AT ALL. It turns out the issue with spindle toggle (S-ON/OFF button) not toggling (only setting "on"), E-Stop (RESET button) not working, jog dial not working, yeah, they were actually all related and it speaks to something I wish someone could explain to me about HAL pin wiring.

The facts:
I used pncconf to generate my ini and hal files. In the main hal file, it wires up (among other things)
net machine-is-on halui.machine.is-on
However, in the sample XHC WHB04B file, there is a conflicting line:
net machine.is-on                        whb.halui.machine.is-on                halui.machine.is-on
OK, says I, no problem, according to the HAL man page, signals are additive, so I changed that line to 
net machine.is-on                        whb.halui.machine.is-on
thinking that the 2 pins would be connected through the 1 common signal. That's a big nope, and for the life of me I do not understand why. (maybe someday I'll have a lightbulb moment...)
The solution: 
The key was to NOT change the sample  XHC HAL, but to comment out the net line in the main config.

That was ridiculously difficult to sort out.

Why almost everything else worked on the pendant except for the dial still makes little sense to me. e.g. if the machine is in E-Stop, why should spindle on/off be allowed? Everywhere I've worked, the E-stop is a safety device, not a "some parts are safe" device.
  • westhedge
  • westhedge
14 May 2024 16:40 - 14 May 2024 16:55
Replied by westhedge on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

The error below is just because I had the multiplier knob on "Lead"  Still the pendant wheel does not increment count even if it's on a valid setting.
So I just noticed when I ran xhc-whb04b-6 -ue I am getting an error I do not understand when I spin the jog dial. Maybe there is something here?

in 0x04 10 00 00 90 11 04 10 delta 144 => | 04 | 10 | | | ( ) | X( ) | 4 | 10
pndnt failed to interpret axis code feed axisCode={�}
pndnt wheel total counts {counts=0 activeCounter=0 isLeadActive=0}
  • westhedge
  • westhedge
14 May 2024 15:00
Replied by westhedge on topic XHC-WHB04B-6 and LinuxCNC 2.9.1

XHC-WHB04B-6 and LinuxCNC 2.9.1

Category: Installing LinuxCNC

I'm having the same problem as well. Seems this is a common problem with no obvious solution. Step count stays = 0 in halshow. I started with the pendant config file from linuxcnc.org/docs/stable/html/man/man1/xhc-whb04b-6.1.html 
and modified it to fix the duplicated pin mappings (there were not too many)

I've tried the [HMOT](CARD0) change suggested. That doesn't work.
I've also tried all of the various other fixes from people posting on the forum to no avail.

I can see the jog dial send messages when I run xhc-whb04b-6 -ue so I'm certain the pendant is not a dud.
However when I run xhc-whb04b-6 -p I don't see any messages from the jog dial. Is this expected?  I'm beginning to think maybe there is a bug in this version of the driver.
Linux 2.9.2 using 7i96s Relevant hal files attached.

 
  • Clarge249
  • Clarge249
10 May 2024 21:28
Fatal Error After Computer Crash was created by Clarge249

Fatal Error After Computer Crash

Category: Installing LinuxCNC

We experienced a computer crash and now LinuxCNC is unable to load. Below is the error log and I've attached the ini and hal files.

Warning: Spoiler!
  • hitchhiker
  • hitchhiker
04 May 2024 13:59

Debian 12 Bookworm Linuxcnc 2.9.2....Latency problem

Category: Installing LinuxCNC

after sudo dpkg headers and image =

uname -v=
#3 SMP PREEMPT_RT Sun Apr 28 23:39:38 CEST 2024

cat /proc/cmdline=
BOOT_IMAGE=/boot/vmlinuz-6.9.0-rc5-rt1+ root=UUID=1c171f88-4f36-42ba-b84a-1dcf20ae1a6b ro initrd=/install/gtk/initrd.gz quiet

cat /proc/interrupts=
CPU0 CPU1 CPU2 CPU3
0: 20 0 0 0 IO-APIC 2-edge timer
8: 0 0 0 0 IO-APIC 8-edge rtc0
9: 0 4 0 0 IO-APIC 9-fasteoi acpi
16: 0 0 0 25 IO-APIC 16-fasteoi ehci_hcd:usb1
18: 0 0 5 0 IO-APIC 18-fasteoi i801_smbus
23: 0 31 0 0 IO-APIC 23-fasteoi ehci_hcd:usb3
24: 0 0 0 0 PCI-MSI-0000:00:1c.0 0-edge PCIe PME, pciehp
25: 0 0 0 0 PCI-MSI-0000:00:1c.2 0-edge PCIe PME
26: 0 0 0 0 PCI-MSI-0000:00:1c.3 0-edge PCIe PME
27: 71 0 0 0 PCI-MSIX-0000:02:00.0 0-edge enp2s0
28: 4315 0 0 0 PCI-MSI-0000:00:14.0 0-edge xhci_hcd
29: 0 0 13954 0 PCI-MSI-0000:00:1f.2 0-edge ahci[0000:00:1f.2]
30: 0 0 0 7021 PCI-MSI-0000:00:02.0 0-edge i915
31: 22 0 0 0 PCI-MSI-0000:00:16.0 0-edge mei_me
32: 0 2407 0 0 PCI-MSI-0000:03:00.0 0-edge iwlwifi
33: 0 0 322 0 PCI-MSI-0000:00:03.0 0-edge snd_hda_intel:card0
34: 0 0 0 466 PCI-MSI-0000:00:1b.0 0-edge snd_hda_intel:card1
NMI: 1 0 0 1 Non-maskable interrupts
LOC: 26236 24028 22816 26873 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 1 0 0 1 Performance monitoring interrupts
IWI: 1074 1085 1382 4708 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 907 822 916 928 Rescheduling interrupts
CAL: 5927 4453 4487 5567 Function call interrupts
TLB: 1085 470 1086 980 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 1 2 2 2 Machine check polls
ERR: 1
MIS: 0
  • hitchhiker
  • hitchhiker
04 May 2024 13:22

Debian 12 Bookworm Linuxcnc 2.9.2....Latency problem

Category: Installing LinuxCNC

after i dist-upgrade :

uname -v=
#1 SMP PREEMPT_RT Debian 6.1.85-1 (2024-04-11)


cat /proc/cmdline=
BOOT_IMAGE=/boot/vmlinuz-6.1.0-20-rt-amd64 root=UUID=1c171f88-4f36-42ba-b84a-1dcf20ae1a6b ro initrd=/install/gtk/initrd.gz quiet

cat /proc/interrupts=
CPU0 CPU1 CPU2 CPU3
0: 8 0 0 0 IO-APIC 2-edge timer
8: 0 0 0 0 IO-APIC 8-edge rtc0
9: 0 4 0 0 IO-APIC 9-fasteoi acpi
16: 0 0 0 27 IO-APIC 16-fasteoi ehci_hcd:usb1
18: 0 0 3 0 IO-APIC 18-fasteoi i801_smbus
23: 0 0 31 0 IO-APIC 23-fasteoi ehci_hcd:usb3
24: 0 0 0 0 PCI-MSI 458752-edge PCIe PME, pciehp
25: 0 0 0 0 PCI-MSI 462848-edge PCIe PME
26: 0 0 0 0 PCI-MSI 464896-edge PCIe PME
27: 50 0 0 0 PCI-MSI 1048576-edge enp2s0
28: 13962 0 0 0 PCI-MSI 512000-edge ahci[0000:00:1f.2]
29: 0 2805 0 0 PCI-MSI 327680-edge xhci_hcd
30: 0 0 0 4484 PCI-MSI 32768-edge i915
31: 18 0 0 0 PCI-MSI 360448-edge mei_me
32: 0 4590 0 0 PCI-MSI 1572864-edge iwlwifi
33: 0 0 322 0 PCI-MSI 49152-edge snd_hda_intel:card0
34: 0 0 0 466 PCI-MSI 442368-edge snd_hda_intel:card1
NMI: 0 0 0 0 Non-maskable interrupts
LOC: 10116 10066 9694 9853 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 0 0 0 0 Performance monitoring interrupts
IWI: 808 698 598 4301 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 2950 3180 3717 3080 Rescheduling interrupts
CAL: 7556 8256 5742 6800 Function call interrupts
TLB: 1080 781 519 815 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
DFR: 0 0 0 0 Deferred Error APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 1 2 2 2 Machine check polls
ERR: 1
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
NPI: 0 0 0 0 Nested posted-interrupt event
PIW: 0 0 0 0 Posted-interrupt wakeup event
  • hitchhiker
  • hitchhiker
04 May 2024 13:05

Debian 12 Bookworm Linuxcnc 2.9.2....Latency problem

Category: Installing LinuxCNC

and on Debian 12 with 2.9.2

uname -v =
#1 SMP PREEMPT_RT Debian 6.1.76-1 (2024-02-01)

cat /proc/cmdline =
BOOT_IMAGE=/boot/vmlinuz-6.1.0-18-rt-amd64 root=UUID=1c171f88-4f36-42ba-b84a-1dcf20ae1a6b ro initrd=/install/gtk/initrd.gz quiet

cat /proc/interrupts=cat /proc/interrupts=
<pre> CPU0 CPU1 CPU2 CPU3
0: 8 0 0 0 IO-APIC 2-edge timer
8: 0 0 0 0 IO-APIC 8-edge rtc0
9: 0 4 0 0 IO-APIC 9-fasteoi acpi
16: 0 0 0 25 IO-APIC 16-fasteoi ehci_hcd:usb1
18: 0 0 3 0 IO-APIC 18-fasteoi i801_smbus
23: 0 0 29 0 IO-APIC 23-fasteoi ehci_hcd:usb3
24: 0 0 0 0 PCI-MSI 458752-edge PCIe PME, pciehp
25: 0 0 0 0 PCI-MSI 462848-edge PCIe PME
26: 0 0 0 0 PCI-MSI 464896-edge PCIe PME
27: 18398 0 0 0 PCI-MSI 512000-edge ahci[0000:00:1f.2]
28: 88 0 0 0 PCI-MSI 1048576-edge enp2s0
29: 0 7214 0 0 PCI-MSI 327680-edge xhci_hcd
30: 0 0 0 8202 PCI-MSI 32768-edge i915
31: 18 0 0 0 PCI-MSI 360448-edge mei_me
32: 0 567 0 0 PCI-MSI 49152-edge snd_hda_intel:card0
33: 0 0 641 0 PCI-MSI 442368-edge snd_hda_intel:card1
34: 0 0 0 8354 PCI-MSI 1572864-edge iwlwifi
NMI: 2 2 1 2 Non-maskable interrupts
LOC: 24270 24754 22704 23422 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 2 2 1 2 Performance monitoring interrupts
IWI: 389 338 276 675 IRQ work interrupts
RTR: 0 0 0 0 APIC ICR read retries
RES: 5753 5763 5661 6035 Rescheduling interrupts
CAL: 15997 18728 20080 14703 Function call interrupts
TLB: 9323 10584 11866 10543 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
DFR: 0 0 0 0 Deferred Error APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 1 2 2 2 Machine check polls
ERR: 1
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
NPI: 0 0 0 0 Nested posted-interrupt event
PIW: 0 0 0 0 Posted-interrupt wakeup event
</pre>


thats are both clean installed SSDs the Debian 10 with 2.9.2 works perfect
Debian 12 with 2.9.2 crash


thanks for any help... i will try install your kernel?
  • hitchhiker
  • hitchhiker
04 May 2024 12:45 - 04 May 2024 12:49

Debian 12 Bookworm Linuxcnc 2.9.2....Latency problem

Category: Installing LinuxCNC

Hi Thanks for your help! First Debian 10:

uname -v =

Linux debian 4.19.0-26-rt-amd64 #1 SMP PREEMPT RT Debian 4.19.304-1 (2024-01-09) x86_64 GNU/Linux

cat /proc/cmdline =
BOOT_IMAGE=/boot/vmlinuz-4.19.0-26-rt-amd64 root=UUID=c4845308-4dd9-4166-a1ab-c1420c7a7374 ro initrd=/install/gtk/initrd.gz quiet

cat /proc/interrupts=cat /proc/interrupts=
CPU0 CPU1 CPU2 CPU3
0: 7 0 0 0 IO-APIC 2-edge timer
8: 0 1 0 0 IO-APIC 8-edge rtc0
9: 0 4 0 0 IO-APIC 9-fasteoi acpi
16: 0 0 0 25 IO-APIC 16-fasteoi ehci_hcd:usb1
18: 0 0 0 0 IO-APIC 18-fasteoi i801_smbus
23: 0 0 29 0 IO-APIC 23-fasteoi ehci_hcd:usb3
24: 0 0 0 0 PCI-MSI 458752-edge PCIe PME, pciehp
25: 0 0 0 0 PCI-MSI 462848-edge PCIe PME
26: 0 0 0 0 PCI-MSI 464896-edge PCIe PME
27: 64 0 0 0 PCI-MSI 1048576-edge enp2s0
28: 21186 0 0 0 PCI-MSI 512000-edge ahci[0000:00:1f.2]
29: 0 15746 0 0 PCI-MSI 327680-edge xhci_hcd
30: 0 0 0 19421 PCI-MSI 32768-edge i915
31: 14 0 0 0 PCI-MSI 360448-edge mei_me
32: 0 284 0 0 PCI-MSI 49152-edge snd_hda_intel:card0
33: 0 0 450 0 PCI-MSI 442368-edge snd_hda_intel:card1
34: 0 0 0 37625 PCI-MSI 1572864-edge iwlwifi
NMI: 4 4 4 4 Non-maskable interrupts
LOC: 52498 53988 52606 55808 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 4 4 4 4 Performance monitoring interrupts
IWI: 117 129 41 41 IRQ work interrupts
RTR: 1 0 0 0 APIC ICR read retries
RES: 17103 15345 12175 9979 Rescheduling interrupts
CAL: 20423 21178 18639 18313 Function call interrupts
TLB: 16008 16767 14838 14613 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
DFR: 0 0 0 0 Deferred Error APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 2 3 3 3 Machine check polls
ERR: 1
MIS: 0
PIN: 0 0 0 0 Posted-interrupt notification event
NPI: 0 0 0 0 Nested posted-interrupt event
PIW: 0 0 0 0 Posted-interrupt wakeup event
Displaying 76 - 90 out of 101 results.
Time to create page: 0.802 seconds
Powered by Kunena Forum