hy_vdf debian buster

More
09 Nov 2020 16:25 #188761 by capoccione
hy_vdf debian buster was created by capoccione
hello new linuxcnc user and new to linux not much computer knowledge

I am facing this problem
ERROR Can't open the device / dev / ttyUSB0 (errno 22)
vfd: ERROR: couldn't open serial device
Shutting down and cleaning up LinuxCNC ...
config string '0 out'
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
open: Permission denied
./custom.hal:4: waitpid failed hy_vfd vfd
./custom.hal:4: hy_vfd exited without becoming ready
16222
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime


vdf hy model HY03D023B

under mach3 with the eole kingdom plugin it works very well

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

  • rodw
  • rodw's Avatar
  • Away
  • Platinum Member
  • Platinum Member
More
10 Nov 2020 08:54 #188850 by rodw
Replied by rodw on topic hy_vdf debian buster
Sounds like your user account doe snot have permissions to use the serial port. I'm not a Linux expert but if you google you should find out how to add that permission.

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

  • macsddau@linuxcnc
  • macsddau@linuxcnc's Avatar
  • Offline
  • Premium Member
  • Premium Member
More
10 Nov 2020 11:22 #188860 by macsddau@linuxcnc
Replied by macsddau@linuxcnc on topic hy_vdf debian buster
I get the same problem last year. I don’t remember exactly how I solve this. But you can see if there is a conflict with brltty. Remove it and try again.

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

More
10 Nov 2020 13:16 #188870 by capoccione
Replied by capoccione on topic hy_vdf debian buster
thank you so much
but at my age i just start with linuxcnc and i don't know anything i don't know how i will try to find

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

More
10 Nov 2020 13:48 #188872 by andypugh
Replied by andypugh on topic hy_vdf debian buster

ERROR Can't open the device / dev / ttyUSB0 (errno 22)


I assume that you have a USB to serial converter installed?

Are you sure that the device is reporting as ttyUSB0 ?

Open a terminal window.

ls /dev

Look at the /dev/tty devices
Plug in the USB to serial device, and repeat the ls /dev Note what new device has appeared. That is the device ID to use. (-d /dev/ttyUSBNN)

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

More
10 Nov 2020 17:41 #188897 by capoccione
Replied by capoccione on topic hy_vdf debian buster
good evening and thank you for your answers you did a wonderful job for people who do not have much knowledge in programming.
yes I tested and it appears ttyUSB0

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

More
10 Nov 2020 18:30 #188899 by andypugh
Replied by andypugh on topic hy_vdf debian buster
Your exact problem is mentioned in the hy_vfd documentation:

linuxcnc.org/docs/2.8/html/man/man1/hy_vfd.1.html

Try the instructions there.

I am using the exact same VFD on my lathe, with the hy_vfd component.
loadusr -W hy_vfd -d /dev/ttyUSB0

# ---setup spindle control signals---

net spindle-vel-cmd-rps        <=  motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs    <=  motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm        <=  motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs    <=  motion.spindle-speed-out-abs
net spindle-enable             <=  motion.spindle-on
net spindle-cw                 <=  motion.spindle-forward
net spindle-ccw                <=  motion.spindle-reverse
net spindle-brake              <=  motion.spindle-brake
net spindle-revs               =>  motion.spindle-revs
net spindle-at-speed           =>  motion.spindle-at-speed
net spindle-vel-fb-rps         =>  motion.spindle-speed-in
net spindle-index-enable      <=>  motion.spindle-index-enable

# ---Connect the VFD---

net spindle-at-speed hy_vd.spindle-at-speed

net machine.on halui.machine.is−on =>  hy_vfd.enable
net spindle-enable hy_vfd.spindle-on
net spindle-cw hy_vfd.spindle-forward
net spindle-ccw hy_vfd.spindle-reverse
net spindle-vel-cmd-rpm-abs hy_vfd.speed-command

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

More
10 Nov 2020 19:20 #188902 by capoccione
Replied by capoccione on topic hy_vdf debian buster
thanks for your interest I'll try tomorrow

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

More
14 Nov 2020 14:34 #189334 by capoccione
Replied by capoccione on topic hy_vdf debian buster
Hello
I would like to thank everyone for the moment it works and I will try to improve
I attach my files it can be useful

File Attachment:

File Name: pyvcp_options.hal
File Size:0 KB

File Attachment:

File Name: custom_postgui.hal
File Size:2 KB

File Attachment:

File Name: custom.hal
File Size:1 KB

File Attachment:

File Name: custompanel.xml
File Size:8 KB
Attachments:

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

More
15 Nov 2020 18:04 #189467 by persei8
Replied by persei8 on topic hy_vdf debian buster
Try this:
sudo chmod +x /dev/ttyUSB0

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

Time to create page: 0.182 seconds
Powered by Kunena Forum