XHC-HB04 wireless MPG pendant HAL module

More
01 Oct 2013 19:19 #39440 by rmagnus
Hello Andy
I unplugged the usb joystick to use the pendant! That should be it. I will test and report back..... thank you!

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

More
01 Oct 2013 19:21 #39441 by rmagnus
Hello Cncbasher
I did everything at the linux PC without using MSDOS. So I think it is more related to unplugging the joystick....
Thank you for your reply!
Rodolfo

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

More
01 Oct 2013 21:54 #39442 by rmagnus
I plugged back the usb joystick and the problem is gone.

I generated a file /etc/udev/rules.d/90-xhc.rules with the following content to get access to USB without root privileges as the guide says

SYSFS{idProduct}=="eb70", SYSFS{idVendor}=="10ce", MODE="666", OWNER="root", GROUP="users"

But the pendant is unresponsive.

I see the OK led blink but nothing works, not the buttons and not the dial. And the display shows zeroes.

I try to select an axis and jog but nothing happens.

Am I still missing something?

Do I have to install the hal file manually?

THANKS for your help!

Sincerely
Rodolfo

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

More
01 Oct 2013 22:40 #39443 by cncbasher
did you check your line endings , this will stop files loading

Comet.hal:3: Warning: File contains DOS-style line endings.
The following user(s) said Thank You: rmagnus

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

More
01 Oct 2013 22:58 #39446 by rmagnus
The files were never edited on a windows machine.

After CNC was working again by plugging the USB joystick,

I added

HALFILE = xhc-hb04.hal at the [HAL] section of my ini file and it started crashing again.

Now with this message:
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.3
Machine configuration directory is '/home/probotix/emc2/configs/Comet'
Machine configuration file is 'Comet.ini'
INIFILE=/home/probotix/emc2/configs/Comet/Comet.ini
PARAMETER_FILE=emc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=1464
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
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
Comet.hal:3: Warning: File contains DOS-style line endings.
Could not open command file 'xhc-hb04.hal'
1464
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 24.696297] I-pipe: Domain RTAI registered.
[ 24.696313] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 24.696318] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 24.696437] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 24.696442] PIPELINE layers:
[ 24.696448] f8b85e20 9ac15d93 RTAI 200
[ 24.696453] c085cb20 0 Linux 100
[ 24.741659] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 24.742307] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 24.742322] RTAI[sched]: hard timer type/freq = APIC/12468630(Hz); default timing: periodic; linear timed lists.
[ 24.742333] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1795600000 hz.
[ 24.742341] RTAI[sched]: timer setup = 999 ns, resched latency = 2943 ns.
[ 24.743371] RTAI[usi]: enabled.
[ 24.808436] RTAI[math]: loaded.
[ 24.939487] config string '0x378'
[ 26.012273] RTAI[math]: unloaded.
[ 26.047865] SCHED releases registered named ALIEN RTGLBH
[ 26.108953] RTAI[malloc]: unloaded.
[ 26.208033] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 26.213109] I-pipe: Domain RTAI unregistered.
[ 26.213251] RTAI[hal]: unmounted.

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

More
01 Oct 2013 23:00 #39447 by rmagnus
Then I tried make clean
make
and make install at the source folder but it still crashes.

THANKS IN ADVANCE FOR YOUR HELP!

Rodolfo

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

More
01 Oct 2013 23:06 #39448 by rmagnus
and if I comment the halfile row in the .ini file linuxcnc runs great but the pendant does not respond.

I tried also changing the reference
loadusr -W xhc-hb04 -I xhc-hb04-layout2.ini -H
at the xhc-hb04.hal file then a make clean, make and make install but still get the same error.

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

More
01 Oct 2013 23:28 - 01 Oct 2013 23:29 #39452 by cncbasher
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
Comet.hal:3: Warning: File contains DOS-style line endings.
Could not open command file 'xhc-hb04.hal'

open file and use save as ... and change lineending to unix/linux
Last edit: 01 Oct 2013 23:29 by cncbasher.

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

More
01 Oct 2013 23:46 #39454 by andypugh

HALFILE = xhc-hb04.hal at the [HAL] section of my ini file and it started crashing again
….
Could not open command file 'xhc-hb04.hal'


Is there actually an xhc-hb04.hal file in the same directory as the INI file for it to open?

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

More
02 Oct 2013 01:04 #39461 by rmagnus
I got rid of the DOS style line endings.

Also put the hal file at the ini folder and the layout.ini file there as well.

now linuxcnc crashes and shows this:

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.3
Machine configuration directory is '/home/probotix/emc2/configs/Comet'
Machine configuration file is 'Comet.ini'
INIFILE=/home/probotix/emc2/configs/Comet/Comet.ini
PARAMETER_FILE=emc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=2271
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
Unrecognized line skipped: POC FMS LEN DIAM COMMENT
xhc-hb04.hal:23: Pin 'axis.3.jog-enable' does not exist
2271
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components

Kernel message information:
[ 423.960726] I-pipe: Domain RTAI registered.
[ 423.960743] RTAI[hal]: <3.8.1> mounted over IPIPE-NOTHREADS 2.6-03.
[ 423.960750] RTAI[hal]: compiled with gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) .
[ 423.960874] RTAI[hal]: mounted (IPIPE-NOTHREADS, IMMEDIATE (INTERNAL IRQs DISPATCHED), ISOL_CPUS_MASK: 0).
[ 423.960881] PIPELINE layers:
[ 423.960888] fa970e20 9ac15d93 RTAI 200
[ 423.960894] c085cb20 0 Linux 100
[ 424.006042] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[ 424.006756] RTAI[sched]: IMMEDIATE, MP, USER/KERNEL SPACE: <with RTAI OWN KTASKs>, kstacks pool size = 524288 bytes.
[ 424.006771] RTAI[sched]: hard timer type/freq = APIC/12468630(Hz); default timing: periodic; linear timed lists.
[ 424.006781] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 1795472000 hz.
[ 424.006789] RTAI[sched]: timer setup = 999 ns, resched latency = 2944 ns.
[ 424.006923] RTAI[usi]: enabled.
[ 424.075597] RTAI[math]: loaded.
[ 424.198849] config string '0x378'
[ 427.290809] RTAI[math]: unloaded.
[ 427.325905] SCHED releases registered named ALIEN RTGLBH
[ 427.389453] RTAI[malloc]: unloaded.
[ 427.488026] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[ 427.492533] I-pipe: Domain RTAI unregistered.
[ 427.492670] RTAI[hal]: unmounted.

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

Time to create page: 0.510 seconds
Powered by Kunena Forum