hidconfig lcd problem
23 Dec 2019 14:22 #153105
by porshe
Replied by porshe on topic hidconfig lcd problem
Tell me how to install, run Path Pilot 1.8.2 source code.
I created ~/pathpilot and put the tar there.
I go to this cd pathpilot folder
Then
make install-dep
make
make install
make python
make resources
make run
I get such a logfile
I created ~/pathpilot and put the tar there.
I go to this cd pathpilot folder
Then
make install-dep
make
make install
make python
make resources
make run
I get such a logfile
Warning: Spoiler!
/home/tormach/operator_login: redirecting stdout/stderr to: /home/tormach/gcode/logfiles/pathpilotlog.txt
sourcing /home/tormach/tmc/scripts/rip-environment.sh /home/tormach/tmc
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
EMC2_HOME: /home/tormach/tmc
new PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
new LD_LIBRARY_PATH: /home/tormach/tmc/lib
new PYTHONPATH: /home/tormach/tmc/python/scanner:/home/tormach/tmc/python:/home/tormach/tmc/python/config_picker:/home/tormach/tmc/lib/python:/home/tormach/tmc/python/scanner2
Temporary directory for linuxcnc: /tmp/linuxcnc
RIP environment setup complete...
setting touchscreen calibration
No calibration file found: /home/tormach/gcode/pointercal.xinput
starting log rotator
logrotator.sh 3600 /home/tormach/gcode/logfiles/logrotate.conf /home/tormach/gcode/logfiles/logrotate.status
LOGROTATOR_PID: 2582
logrotate /home/tormach/gcode/logfiles/logrotate.conf -s /home/tormach/gcode/logfiles/logrotate.status
Failed to set permissions on /home/tormach/tmc/bin/shifttest
gnome-power-manager already running
/home/tormach/operator_login: line 195: Failed: command not found
/home/tormach/operator_login: line 197: Failed: command not found
HAVE_GNOME: 1
Failed to set permissions on /sbin/shutdown
Failed to set permissions on /home/tormach/tmc/bin/time-admin-wrapper
INI file: ~/tmc/configs/tormach_lathe/lathe_tn.ini
/home/tormach/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/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/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/tormach/tmc
exec_prefix: /home/tormach/tmc
EMC2_BIN_DIR=/home/tormach/tmc/bin
EMC2_RTLIB_DIR=/home/tormach/tmc/rtlib
INIFILE: ~/tmc/configs/tormach_lathe/lathe_tn.ini
~/tmc/configs/tormach_lathe/lathe_tn.ini started with tilde
expanded INIFILE: /home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
EXTRA_ARGS:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/tormach/tmc/bin
LINUXCNC_RTLIB_DIR=/home/tormach/tmc/rtlib
INIVAR=inivar
HALCMD=halcmd
LINUXCNC - 2.6.0~pre
/home/tormach/tmc/scripts/linuxcnc: line 182: fileperms: command not found
failed to set permissions of /dev/hidraw0
inserted into PYTHONPATH: /home/tormach/tmc/configs/tormach_lathe/python
Machine configuration directory is '/home/tormach/tmc/configs/tormach_lathe'
Machine configuration file is 'lathe_tn.ini'
INIFILE=/home/tormach/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/tormach/tmc/python/tormach_lathe_ui.py
EMCDISPLAY_DIR: /home/tormach/tmc/python
inserted into PYTHONPATH: /home/tormach/tmc/python
NML_FILE: /home/tormach/tmc/configs/common/linuxcnc.nml
User's HOME directory: /home/tormach
/home/tormach/tmc/scripts/check_mill_tool_table.py: tool file is /home/tormach/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/tormach/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/tormach/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/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
/home/tormach/tmc/scripts/realtime start: Realtime system did not load
Shutting down and cleaning up LinuxCNC...
2640
Killing linuxcncsvr
Killing task linuxcncsvr, PID=2640
PID TTY STAT TIME COMMAND
2639
Killing redis-server
Killing task redis-server, PID=2639
PID TTY STAT TIME COMMAND
2639 pts/0 Sl+ 0:00 redis-server --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
PID TTY STAT TIME COMMAND
Stopping realtime threads
halcmd stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2670 Segmentation fault $HALCMD stop
Unloading hal components
halcmd unload all
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2671 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
Removing HAL_LIB, RTAPI, and Real Time OS modules
/home/tormach/tmc/scripts/realtime stop
module helper '/home/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
Removing NML shared memory segments
rm /tmp/linuxcnc.lock
Cleanup done
UI exit code: 255
bad exit code killing SPLASH
killtree.sh 2613 TERM
kill -TERM 2613
sourcing /home/tormach/tmc/scripts/rip-environment.sh /home/tormach/tmc
Setting enviroment to run Tormach LinuxCNC to run-in-place for development
Using command line supplied EMC2_HOME: /home/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
EMC2_HOME: /home/tormach/tmc
new PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
new LD_LIBRARY_PATH: /home/tormach/tmc/lib
new PYTHONPATH: /home/tormach/tmc/python/scanner:/home/tormach/tmc/python:/home/tormach/tmc/python/config_picker:/home/tormach/tmc/lib/python:/home/tormach/tmc/python/scanner2
Temporary directory for linuxcnc: /tmp/linuxcnc
RIP environment setup complete...
setting touchscreen calibration
No calibration file found: /home/tormach/gcode/pointercal.xinput
starting log rotator
logrotator.sh 3600 /home/tormach/gcode/logfiles/logrotate.conf /home/tormach/gcode/logfiles/logrotate.status
LOGROTATOR_PID: 2582
logrotate /home/tormach/gcode/logfiles/logrotate.conf -s /home/tormach/gcode/logfiles/logrotate.status
Failed to set permissions on /home/tormach/tmc/bin/shifttest
gnome-power-manager already running
/home/tormach/operator_login: line 195: Failed: command not found
/home/tormach/operator_login: line 197: Failed: command not found
HAVE_GNOME: 1
Failed to set permissions on /sbin/shutdown
Failed to set permissions on /home/tormach/tmc/bin/time-admin-wrapper
INI file: ~/tmc/configs/tormach_lathe/lathe_tn.ini
/home/tormach/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/tormach/tmc
EMC2_HOME = /home/tormach/tmc, absolute path for /home/tormach/tmc
PATH: /home/tormach/tmc/python:/home/tormach/tmc/bin:/home/tormach/tmc/scripts:/home/tormach/tmc/bin:/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/tormach/tmc
exec_prefix: /home/tormach/tmc
EMC2_BIN_DIR=/home/tormach/tmc/bin
EMC2_RTLIB_DIR=/home/tormach/tmc/rtlib
INIFILE: ~/tmc/configs/tormach_lathe/lathe_tn.ini
~/tmc/configs/tormach_lathe/lathe_tn.ini started with tilde
expanded INIFILE: /home/tormach/tmc/configs/tormach_lathe/lathe_tn.ini
EXTRA_ARGS:
RUN_IN_PLACE=yes
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/home/tormach/tmc/bin
LINUXCNC_RTLIB_DIR=/home/tormach/tmc/rtlib
INIVAR=inivar
HALCMD=halcmd
LINUXCNC - 2.6.0~pre
/home/tormach/tmc/scripts/linuxcnc: line 182: fileperms: command not found
failed to set permissions of /dev/hidraw0
inserted into PYTHONPATH: /home/tormach/tmc/configs/tormach_lathe/python
Machine configuration directory is '/home/tormach/tmc/configs/tormach_lathe'
Machine configuration file is 'lathe_tn.ini'
INIFILE=/home/tormach/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/tormach/tmc/python/tormach_lathe_ui.py
EMCDISPLAY_DIR: /home/tormach/tmc/python
inserted into PYTHONPATH: /home/tormach/tmc/python
NML_FILE: /home/tormach/tmc/configs/common/linuxcnc.nml
User's HOME directory: /home/tormach
/home/tormach/tmc/scripts/check_mill_tool_table.py: tool file is /home/tormach/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/tormach/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/tormach/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/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
/home/tormach/tmc/scripts/realtime start: Realtime system did not load
Shutting down and cleaning up LinuxCNC...
2640
Killing linuxcncsvr
Killing task linuxcncsvr, PID=2640
PID TTY STAT TIME COMMAND
2639
Killing redis-server
Killing task redis-server, PID=2639
PID TTY STAT TIME COMMAND
2639 pts/0 Sl+ 0:00 redis-server --dir /home/tormach/lathe_data --dbfilename dump.rdb --save 3600 1 --save 300 100 --save 60 10000
PID TTY STAT TIME COMMAND
Stopping realtime threads
halcmd stop
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2670 Segmentation fault $HALCMD stop
Unloading hal components
halcmd unload all
RTAPI: ERROR: could not open shared memory (errno=2)
/home/tormach/tmc/scripts/linuxcnc: line 520: 2671 Segmentation fault $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
RTAPI: ERROR: could not open shared memory (errno=2)
Removing HAL_LIB, RTAPI, and Real Time OS modules
/home/tormach/tmc/scripts/realtime stop
module helper '/home/tormach/tmc/bin/linuxcnc_module_helper' found.
failed to set permissions of /home/tormach/tmc/bin/linuxcnc_module_helper
have you installed fileperms?
Removing NML shared memory segments
rm /tmp/linuxcnc.lock
Cleanup done
UI exit code: 255
bad exit code killing SPLASH
killtree.sh 2613 TERM
kill -TERM 2613
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 4
23 Dec 2019 20:32 #153137
by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
You only need to build linuxcnc. To build hidcomp you only need the contents of the lib and include directories that are generated by the build.
cd pathpilot/linuxcnc/src
./autogen.sh
./configure --enable-simulator
make
I built on the pathpilot image so had to install some build packages.
cd pathpilot/linuxcnc/src
./autogen.sh
./configure --enable-simulator
make
I built on the pathpilot image so had to install some build packages.
Please Log in or Create an account to join the conversation.
24 Dec 2019 15:50 #153161
by porshe
Replied by porshe on topic hidconfig lcd problem
Well, finally. Yes. Yes. Yes.It works. Thank you very much for your work. I wanted to ask you about the source of Path Pilot 1.8.2 can be put on "ubuntu-10.04-linuxcnc3-i386.iso"?
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 4
24 Dec 2019 20:18 #153165
by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
I do not know. You'll need to ask someone who knows about this. There may also be an issue with redeploying Tormach's code.
Why do you want the code put on the iso?
Why do you want the code put on the iso?
Please Log in or Create an account to join the conversation.
25 Dec 2019 13:44 #153192
by porshe
Replied by porshe on topic hidconfig lcd problem
I wanted to try on a more modern Ubuntu to record later on the Raspberry Pi.
Please Log in or Create an account to join the conversation.
26 Dec 2019 00:18 #153208
by porshe
Replied by porshe on topic hidconfig lcd problem
Oops.
Just now I saw that you have a solution for the color display SSD1289. I found a ready-made solution on the Internet (also two boards). One converts 5v to 3.3. The other controller itself is on an 8-bit atmega 2560 processor with a frequency of 16 MHz. Communication is also by SPI. There is also a more powerful option on arduino due 32-bit Arm, 72MHz. What do you think it will work?
Attachments:
Please Log in or Create an account to join the conversation.
- ftkalcevic
- Offline
- Junior Member
Less
More
- Posts: 33
- Thank you received: 4
26 Dec 2019 00:48 #153211
by ftkalcevic
Replied by ftkalcevic on topic hidconfig lcd problem
Are we talking about GenericHID now?
The SPI interface is very specific (and minimal). It uses a custom microcontroller to implement the commands listed in github.com/ftkalcevic/GenericHID/blob/ma...de/displaycommands.h At the time I wasn't aware of an LCD standard over SPI.
As long the spi display implements the protocol, it will work. (or create a new interface like github.com/ftkalcevic/GenericHID/blob/ma...r/Joystick/LCD_SPI.c)
I used this with some python menu scripts, which talked to hidcomp through a socket connection, send text commands like "cls", "bg 0,0,0" or "text 0,0, "text to display". I don't know if it will work with the character LCD configuration method.
The SPI interface is very specific (and minimal). It uses a custom microcontroller to implement the commands listed in github.com/ftkalcevic/GenericHID/blob/ma...de/displaycommands.h At the time I wasn't aware of an LCD standard over SPI.
As long the spi display implements the protocol, it will work. (or create a new interface like github.com/ftkalcevic/GenericHID/blob/ma...r/Joystick/LCD_SPI.c)
I used this with some python menu scripts, which talked to hidcomp through a socket connection, send text commands like "cls", "bg 0,0,0" or "text 0,0, "text to display". I don't know if it will work with the character LCD configuration method.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19217
- Thank you received: 6438
26 Dec 2019 04:48 #153214
by tommylight
Replied by tommylight on topic hidconfig lcd problem
@porche
That is a 16bit parallel LCD touch screen, not an SPI one.
That is a 16bit parallel LCD touch screen, not an SPI one.
Please Log in or Create an account to join the conversation.
26 Dec 2019 15:16 #153241
by porshe
Replied by porshe on topic hidconfig lcd problem
Yes, I meant this topic www.franksworkshop.com.au/CNC/LathePendant/LathePendant.htm I need to experiment.It is tempting to make a color LCD for a turnkey solution
Please Log in or Create an account to join the conversation.
26 Dec 2019 15:18 #153242
by porshe
Replied by porshe on topic hidconfig lcd problem
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.110 seconds