- Posts: 44
- Thank you received: 1
hidconfig lcd problem
- porshe
- Offline
- Senior Member
-
I connected the hidcomp to Linuxcnc, everything works fine. On lcd it shows the movement of axes. On the Pathpilot it works but you need to disable lcd in the hidconfig. With the lcd turned on, the Pathpilot doesn’t respond to button presses and doesn’t show anything. I can not get the lcd to work on the Pathpilot together with the hidcomp.
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
-
- Posts: 30
- Thank you received: 4
porshe wrote: I connected the hidcomp to Linuxcnc, everything works fine.
Is your linuxcnc configuration different to your pathpilot configuration? Different files? Different directories?
porshe wrote: On the Pathpilot it works but you need to disable lcd in the hidconfig. With the lcd turned on, the Pathpilot doesn’t respond to button presses and doesn’t show anything. I can not get the lcd to work on the Pathpilot together with the hidcomp.
If the LCD isn't working, it is usually the NML configuration. That is described in the first post.
Do you see any errors? They should be logged to linuxcnc_print and linuxcnc_debug in you home directory.
Please Log in or Create an account to join the conversation.
- porshe
- Offline
- Senior Member
-
- Posts: 44
- Thank you received: 1
P hidcomp emcStatus LOCAL localhost R 0 10.0 0 10
P hidcomp emcError LOCAL localhost R 0 10.0 0 10
Inifile has: DEBUG = 0x00000040 (NML)
These parameters are spelled out.
Linuxcnc 10.04. Pathpilot 1.9.8.
I use the simplest example of moving the joystick.
net joystick_enable => axis.2.jog-enable
setp axis.0.jog-vel-mode 1
setp axis.1.jog-vel-mode 1
setp halui.jog-speed 100
net jog_scale hidcomp.0.X.fvalue => halui.jog.0.analog
net jog_scale1 hidcomp.0.Z.fvalue => halui.jog.2.analog
net relative-x halui.axis.0.pos-relative => hidcomp.0.LCD.in-float-1
Linux works well with LCD.
If you document the last line, it works fine in Pathpilot but without LСD
The pathpilotlog file shows errors.
halcmd loadusr -Wn halui halui -ini /home/operator/tmc/configs/tormach_lathe/lathe_tn.ini
USBIO : HAL component starting 2019-09-13 08:51:06
libusb couldn't open USB device /dev/bus/usb/002/002: Permission denied.
libusb requires write access to USB device nodes.
2019/09/13 08:51:06.445,18034,1,hiddevice.cpp:312,Warning,hidcomp,HIDDevice,Failed to open usb device: -3
2019/09/13 08:51:06.459,18034,1,emcinterface.cpp:98,Error,hidcomp,EmcInterface,Failed to open ini file - 'tormach_lathe.ini'
terminate called without an active exception
Joylcd.hal:1: Warning: File contains DOS-style line endings.
Starting TASK program: milltask
task pid=18043
Starting DISPLAY program: /home/operator/tmc/python/tormach_lathe_ui.py
PythonPlugin: Python '2.6.5 (r265:79063, Feb 27 2014, 19:56:00)
[GCC 4.4.3]'
millshuttlexpress.hal:52: value '0.0.008333' invalid for float
millshuttlexpress.hal:52: setp failed
UI version: v1.9.8
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
-
- Posts: 30
- Thank you received: 4
porshe wrote: 2019/09/13 08:51:06.445,18034,1,hiddevice.cpp:312,Warning,hidcomp,HIDDevice,Failed to open usb device: -3
2019/09/13 08:51:06.459,18034,1,emcinterface.cpp:98,Error,hidcomp,EmcInterface,Failed to open ini file - 'tormach_lathe.ini'
Two errors. I'd fix the second one first - it can't find the ini file - either no read permission, or wrong path. The ini file is specified on the "loadusr" line.
Please Log in or Create an account to join the conversation.
- porshe
- Offline
- Senior Member
-
- Posts: 44
- Thank you received: 1
sourcing /home/operator/tmc/scripts/rip-environment.sh /home/operator/tmc
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/operator/tmc
EMC2_HOME = /home/operator/tmc, absolute path for /home/operator/tmc
EMC2_HOME: /home/operator/tmc
new PATH: /home/operator/tmc/python:/home/operator/tmc/bin:/home/operator/tmc/scripts:/home/operator/tmc/bin:/home/operator/teamviewer9qs:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
new LD_LIBRARY_PATH: /home/operator/tmc/lib
new PYTHONPATH: /home/operator/tmc/python/scanner:/home/operator/tmc/python:/home/operator/tmc/python/config_picker:/home/operator/tmc/lib/python:/home/operator/tmc/python/scanner2
Temporary directory for linuxcnc: /tmp/linuxcnc
RIP environment setup complete...
setting touchscreen calibration
No calibration file found: /home/operator/gcode/pointercal.xinput
starting log rotator
logrotator.sh 3600 /home/operator/gcode/logfiles/logrotate.conf /home/operator/gcode/logfiles/logrotate.status
LOGROTATOR_PID: 20117
logrotate /home/operator/gcode/logfiles/logrotate.conf -s /home/operator/gcode/logfiles/logrotate.status
gnome-power-manager already running
HAVE_GNOME: 1
INI file: ~/tmc/configs/tormach_lathe/lathe_tn.ini
/home/operator/tmc/configs/tormach_lathe/lathe_tn.ini
[HOSTMOT2] BITFILE0 = ''
[HOSTMOT2] BITFILE0 entry not found in INI file.
Assuming sim config.
linuxcnc ~/tmc/configs/tormach_lathe/lathe_tn.ini
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/operator/tmc
EMC2_HOME = /home/operator/tmc, absolute path for /home/operator/tmc
PATH: /home/operator/tmc/python:/home/operator/tmc/bin:/home/operator/tmc/scripts:/home/operator/tmc/bin:/home/operator/teamviewer9qs:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
This script only needs to be run once per shell session.
prefix: /home/operator/tmc
exec_prefix: /home/operator/tmc
EMC2_BIN_DIR=/home/operator/tmc/bin
EMC2_RTLIB_DIR=/home/operator/tmc/rtlib
INIFILE: ~/tmc/configs/tormach_lathe/lathe_tn.ini
~/tmc/configs/tormach_lathe/lathe_tn.ini started with tilde
expanded INIFILE: /home/operator/tmc/configs/tormach_lathe/lathe_tn.ini
EXTRA_ARGS:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/operator/tmc/bin
LINUXCNC_RTLIB_DIR=/home/operator/tmc/rtlib
INIVAR=inivar
HALCMD=halcmd
LINUXCNC - 2.6.0~pre
inserted into PYTHONPATH: /home/operator/tmc/configs/tormach_lathe/python
Machine configuration directory is '/home/operator/tmc/configs/tormach_lathe'
Machine configuration file is 'lathe_tn.ini'
INIFILE=/home/operator/tmc/configs/tormach_lathe/lathe_tn.ini
PARAMETER_FILE=~/lathe_data/emc.var
Can not find -sec MOT -var MOT -num 1
Can not find -sec IO -var IO -num 1
TASK=milltask
HALUI=halui
DISPLAY=tormach_lathe_ui.py
EMCDISPLAY_FULLPATH: /home/operator/tmc/python/tormach_lathe_ui.py
EMCDISPLAY_DIR: /home/operator/tmc/python
inserted into PYTHONPATH: /home/operator/tmc/python
NML_FILE: /home/operator/tmc/configs/common/linuxcnc.nml
User's HOME directory: /home/operator
/home/operator/tmc/scripts/check_mill_tool_table.py: tool file is /home/operator/mill_data/tool.tbl
scanning mill tool table
tool table is already up to date
Can not find -sec REDIS -var DISABLE_SERVER -num 1
DISABLE_SERVER=
Can not find -sec REDIS -var SERVER_PATH -num 1
SERVER_PATH=
SERVER_ARGS=--dir ~/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir ~/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
REDIS_SERVER_ARGS: --dir /home/operator/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
Can not find -sec REDIS -var SERVER_LOG -num 1
SERVER_LOG=
Starting LinuxCNC...
Starting redis server program:
redis server started as: 'redis-server --dir /home/operator/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000', logging to: /dev/null
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
module helper '/home/operator/tmc/bin/linuxcnc_module_helper' found.
Starting LinuxCNC IO program: io
io started
halcmd loadusr io started
Starting HAL User Interface program: halui
halcmd loadusr -Wn halui halui -ini /home/operator/tmc/configs/tormach_lathe/lathe_tn.ini
USBIO : HAL component starting 2019-12-12 10:32:01
libusb couldn't open USB device /dev/bus/usb/002/002: Permission denied.
libusb requires write access to USB device nodes.
2019/12/12 10:32:01.773,20223,1,hiddevice.cpp:312,Warning,hidcomp,HIDDevice,Failed to open usb device: -3
Joylcd.hal:1: Warning: File contains DOS-style line endings.
Starting TASK program: milltask
task pid=20232
Starting DISPLAY program: /home/operator/tmc/python/tormach_lathe_ui.py
PythonPlugin: Python '2.6.5 (r265:79063, Feb 27 2014, 19:56:00)
[GCC 4.4.3]'
millshuttlexpress.hal:52: value '0.0.008333' invalid for float
millshuttlexpress.hal:52: setp failed
UI version: v1.9.8
Unexpected realtime delay: check dmesg for details.
emcTaskInit: using builtin interpreter
PythonPlugin: Python '2.6.5 (r265:79063, Feb 27 2014, 19:56:00)
[GCC 4.4.3]'
is_callable(remap.g740) = TRUE
is_callable(__init__) = FALSE
Setting tolerance to 0.000000
emcTaskPlanInit() returned 0
emcTaskPlanSynch() returned 0
PythonPlugin: Python '2.6.5 (r265:79063, Feb 27 2014, 19:56:00)
[GCC 4.4.3]'
is_callable(remap.g740) = TRUE
Setting tolerance to 0.000000
emcTaskPlanInit() returned 0
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
emcTaskPlanSynch() returned 0
Warning - jog shuttle not detected!
caught attempt to change outside restricted directory: /home/operator/gcode
forcing current directory to /media
2019/12/12 10:32:03.935,20223,1,emcinterface.cpp:302,Error,hidcomp,EmcInterface,The size of the EMC_STAT buffer mismatches. This is probably because hidcomp is not compiled for it.
Unexpected realtime delay: check dmesg for details.
LinuxCNC status.task_mode change was unknown is now MODE_MANUAL
LinuxCNC interp_state change was unknown is now INTERP_IDLE
status.task_state was unknown is now STATE_ESTOP
RTAPI: ERROR: Unexpected realtime delay on task 1
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
reset button was pressed at -2019-12-12-10-32-05
emcTaskPlanSynch() returned 0
emcTaskPlanSynch() returned 0
issuing MDI command: M30
ensure_mode: changing LCNC mode to MODE_MDI
emcTaskPlanSynch() returned 0
emcTaskPlanSynch() returned 0
emcTaskPlanLevel() returned 0
emcTaskPlanExecute(M30) returned 1
emcTaskPlanLevel() returned 0
issuing MDI command: G21
LinuxCNC status.task_mode change was MODE_MANUAL is now MODE_MDI
LinuxCNC interp_state change was INTERP_IDLE is now INTERP_READING
status.task_state was STATE_ESTOP is now STATE_ON
emcTaskPlanLevel() returned 0
emcTaskPlanExecute(G21) returned 0
emcTaskPlanLevel() returned 0
LinuxCNC interp_state change was INTERP_READING is now INTERP_IDLE
exit button was pressed at -2019-12-12-10-32-21
Shutting down and cleaning up LinuxCNC...
20172
Killing linuxcncsvr
Killing task linuxcncsvr, PID=20172
PID TTY STAT TIME COMMAND
20232
Killing milltask
Killing task milltask, PID=20232
is_callable(__delete__) = FALSE
PID TTY STAT TIME COMMAND
20232 pts/0 S+ 0:00 milltask -ini /home/operator/tmc/configs/tormach_lathe/lathe_tn.ini
PID TTY STAT TIME COMMAND
20171
Killing redis-server
Killing task redis-server, PID=20171
PID TTY STAT TIME COMMAND
Stopping realtime threads
halcmd stop
Unloading hal components
halcmd unload all
usbio : exiting 2019-12-12 10:32:22
shuttlexpress4: exiting
Removing HAL_LIB, RTAPI, and Real Time OS modules
/home/operator/tmc/scripts/realtime stop
module helper '/home/operator/tmc/bin/linuxcnc_module_helper' found.
Removing NML shared memory segments
rm /tmp/linuxcnc.lock
Cleanup done
/home/operator/operator_login: line 831: 20143 Killed "$SPLASH_PROGRAM" 2
UI exit code: 0
UI exited OK
File /home/operator/update_file.txt not found. No software update to perform.
terminating log rotator and subprocesses
kill -KILL 20121
kill -KILL 20117
/home/operator/operator_login: line 255: 20117 Killed logrotator.sh $LOGROTATE_SLEEP "$LOGROTATE_CONF" "$LOGROTATE_STATUS"
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
-
- Posts: 30
- Thank you received: 4
That means the binaries for hidcomp have been compiled against a different version of linuxcnc.
You'll need to re-compile hidcomp against the source code of linuxcnc you are running against.
Please Log in or Create an account to join the conversation.