#linuxcnc Logs

Feb 24 2023

#linuxcnc Calendar

01:11 AM Deejay: moin
03:14 AM TurBoss: Morning
03:43 AM travis_farmer[m]: G'Morning ☕️
04:43 AM -!- #linuxcnc mode set to +v by ChanServ
04:43 AM JT-Cave: morning
04:44 AM Tom_L: morning
04:47 AM JT-Cave: I got my money back from viasat
04:48 AM travis_farmer[m]: i thought you had starlink
04:48 AM JT-Cave: I do now yes
06:46 AM -!- #linuxcnc mode set to +v by ChanServ
07:28 AM travis_farmer[m]: Hmmm, bit of a personal debate... go out to my shop and work a little bit in the bitter cold, or stay inside doing research and watching movies, where it is warm, but boring... honestly, i am unsure if i even have enough to do out there to even justify the use of the LP fuel...
07:38 AM InnerBushman[m]: Hi everyone
07:41 AM InnerBushman[m]: I'm in the process of migrating from one PC to another and in the process I decided to download an updated version of Linuxcnc. That's where I've noticed that it's possible to run it on my RT kernel now. So i decided to install it on Manjaro (my daily driver recently). The Linuxcnc part is working great but I've encountered a problem with my USB pendant.
07:45 AM InnerBushman[m]: I use XHC-WHB04-B-6. Few years ago when I was first installing it I've managed to configure it and everything was working. But now I feel like I'm a little slow or something because I can't find any installation instructions that would work for me
07:45 AM InnerBushman[m]: So I have a question: is the driver built into linuxcnc package?
07:49 AM InnerBushman[m]: I've tried to follow this doc page https://linuxcnc.org/docs/2.8/html/man/man1/xhc-whb04b-6.1.html
07:53 AM InnerBushman[m]: And when i try to use the stand alone usage example in halrun i get "<stdin>:1: execv(xhc-whb04b-6): No such file or directory" error
07:53 AM InnerBushman[m]: do i need some extra switches during compilation maybe?
07:54 AM InnerBushman[m]: i was googling for a package or binary that would provide me with this but didn't found anything that would answer my questions
07:54 AM unterhausen: did you look for it on your disk?
07:57 AM InnerBushman[m]: yup. nothing found
07:59 AM InnerBushman[m]: there are only the files for the old wired pendant
08:02 AM travis_farmer[m]: i run LinuxCNC 2.9 pre1, and i had no issues using my pendant, though now i am replacing it with a control panel so i have not enabled it... (i don't think i can use both at the same time)
08:03 AM unterhausen: the webpage suggests it can be run from the command line
08:03 AM InnerBushman[m]: hmm. since which version does it work out of the box?
08:04 AM ZincBoy[CAON][m]: I am using both the wireless xhc-whb04 and a control panel. There are no issues using both, HAL needs to be updated though.
08:04 AM travis_farmer[m]: ZincBoy[CA, ON]: Hmm, interesting...
08:05 AM unterhausen: try "which xhc-whb04-6" from the command line
08:05 AM unterhausen: if it doesn't give you anything, your path is wrong or it doesn't exist
08:05 AM travis_farmer[m]: ZincBoy[CA, ON]: what about having more than one MPG handwheel for jogging?
08:06 AM unterhausen: should be in /usr/bin
08:06 AM InnerBushman[m]: it doesn't exist. and that's the problem
08:06 AM unterhausen: what version of lcnc did you build and how did you build it?
08:06 AM InnerBushman[m]: should it compile with the linuxcnc package?
08:07 AM InnerBushman[m]: maybe the AUR package is not compiling it for some reason?
08:07 AM InnerBushman[m]: or maye it is to old?
08:07 AM unterhausen: apparently, since it's on my 2.9pre1 system built from source
08:07 AM InnerBushman[m]: it'a 2.8.4
08:07 AM unterhausen: you built that from source?
08:07 AM InnerBushman[m]: yes. let me check the package
08:08 AM unterhausen: what distribution of linux?
08:08 AM InnerBushman[m]: manjaro
08:19 AM unterhausen: maybe in the flurry of build notices it failed to build
08:19 AM InnerBushman[m]: it built with no errors
08:19 AM InnerBushman[m]: source=("${pkgname}-${pkgver}.tar.gz::https://github.com/LinuxCNC/linuxcnc/archive/refs/tags/v${pkgver}.tar.gz"
08:19 AM InnerBushman[m]: so directly from github
08:19 AM InnerBushman[m]: since which version should it be included?
08:21 AM unterhausen: I don't know, there is an environment variable set somewhere other than the makefile I'm looking at
08:21 AM unterhausen: it's "HAVE_LIBUSB10"
08:22 AM unterhausen: but did you look for the source directory?
08:23 AM unterhausen: staring at this makefile, if you don't have the right libusb it fails silently
08:25 AM unterhausen: there is probably instructions on how to build a single comp somewhere
08:31 AM InnerBushman[m]: i don't get anything listed when searching for the name of the pendant. so if the source was still on the drive it's not in there
08:32 AM InnerBushman[m]: so i guess my package manager cleans up after building
08:32 AM unterhausen: that's strange
08:33 AM unterhausen: did you build it in a subdirectory of your home directory?
08:33 AM InnerBushman[m]: but the link travis sent clearly shows it should be in there
08:34 AM InnerBushman[m]: it's build from
08:34 AM InnerBushman[m]: AUR package. everything is handled by packake manager
08:35 AM unterhausen: maybe you should figure out how to build it from source. There is an install script included
08:35 AM InnerBushman[m]: s///, s/packake/package/
08:36 AM InnerBushman[m]: it IS built from source 😄
08:36 AM InnerBushman[m]: just a slightly older one
08:37 AM InnerBushman[m]: 2.8.4
08:37 AM unterhausen: apparently the geniuses that decided to come out with your linux distribution never worked on a package with as many moving parts as lcnc where skipping a package that doesn't build is often the best course
08:38 AM unterhausen: personally, I would be pretty annoyed if some hal comp I'm not using didn't build and stopped my lcnc build
08:39 AM InnerBushman[m]: heh
08:39 AM unterhausen: I think you can download the version of lcnc you want and build just that hal comp
08:40 AM InnerBushman[m]: https://aur.archlinux.org/packages/linuxcnc
08:40 AM unterhausen: probably in the configure step, I'm not sure
08:41 AM InnerBushman[m]: oh well, i guess it's time to start bugging the package maintainer 😅
08:41 AM InnerBushman[m]: and if that doesn't work, doing the compilation the old fashion way
08:41 AM InnerBushman[m]: but I'd rather avoid the last outcome
08:42 AM unterhausen: on debian, building from source is rather painless
08:42 AM InnerBushman[m]: s/outcome/option/
08:42 AM InnerBushman[m]: yea, but debian has it's own problems
08:42 AM unterhausen: if you're only missing that one driver, it seems less painful to do that, at least you can give the package maintainer some useful input
08:43 AM InnerBushman[m]: mostly outdated libraries that hold me back from using latest versions of various programs
08:43 AM unterhausen: all distributions suck, but what can you do
08:43 AM InnerBushman[m]: you can make your own!!!
08:43 AM InnerBushman[m]: which will suck even more 😄
08:44 AM unterhausen: the thought gives me hives
08:44 AM InnerBushman[m]: fortunately i was only joking. i will not condemn the world to having another distro made by me. that would be inhumane.
08:45 AM unterhausen: all the people that think debian sucks so they need a new distro should work on the same alternate distro
08:46 AM unterhausen: there could be 4, debian, debiansucks, ubuntu, ubuntusucks
08:46 AM InnerBushman[m]: ok, i guess there's nothing left for me to do today than to clean up and pack up for home.
08:46 AM InnerBushman[m]: i'll leave it for the monday me to worry about.
08:48 AM InnerBushman[m]: thanks for the help unterhausen
08:48 AM unterhausen: okay, have a good night
08:48 AM InnerBushman[m]: i'll come back with an update if i'll figure something out 😉
08:55 AM unterhausen: once I figured out how to use grep, apparently lcnc requires libusb-1.0
08:56 AM unterhausen: seems like that might be overly restrictive
08:58 AM mrec: does anyone use linuxcnc 2.10? seems like the update is a little bit of a disaster here
08:59 AM mrec: rtapi_app permission denied.. I'm sure many people had that before already so that issue should definitely not exist
09:10 AM ZincBoy[CAON][m]: 2.10 is 100% development at this point. I would expect it to be broken more often than not.
09:10 AM perry_j1987: what fancy new stuff is coming in 2.10
09:12 AM travis_farmer[m]: yeah, i was correct... too cold to work on my machine. laid my hand down on it and nearly got frost-bite ;-) back inside...
09:57 AM unterhausen: 2.9 is bleeding edge enough for me. I had to overcome reluctance to install it
09:58 AM unterhausen: but I haven't had any problems with lcnc itself
10:01 AM Lcvette[m]: has anyone else encounters linux header errors when installing linuxcnc-uspace from apt?
10:02 AM Lcvette[m]: im fighting this error currently and trying to figure out the resolution
10:04 AM roycroft: what single-board computers are folks using in lieu of rpis these days?
10:05 AM roycroft: i remember some discussion of alternatives that are actually available, but i don't recall what folks like
10:09 AM unterhausen: there are some discussions on the forum.
10:10 AM roycroft: thanks
10:10 AM roycroft: btw, we lucked out last night - we got about 1cm of snow
10:10 AM roycroft: portland got 25cm
10:14 AM unterhausen: reading the forum it seems that alternate boards would be a research project
10:14 AM roycroft: i recall some folks here discussing the banana pi as a reasonable alternative
10:14 AM unterhausen: mostly the Cap'n encouraging other people to make them work /cynic
10:15 AM unterhausen: if any of them had a rt-prempt kernel it would be pretty easy
10:16 AM unterhausen: I'm tempted to get a libre because I'm cheap
10:16 AM unterhausen: But it's still $10 more than a used Dell from psu salvage
10:18 AM unterhausen: last dell I got has good latency for mesa and is a small tower form factor
10:18 AM unterhausen: it must have been in a library
10:19 AM unterhausen: you can get rpis for a reasonable price from adafruit or paradox. Just have to hit them when it's in stock
10:19 AM unterhausen: there are websites that monitor stock
10:23 AM unterhausen: I'm pretty sure it's the paradox that had their own weird microcontroller
10:23 AM * JT[m] uploaded an image: (700KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/LVbHthNUfOmJzRscWSAZIcjp/20230224_102244_3181365942565373084.jpg >
10:24 AM unterhausen: you added a handrail?
10:31 AM mrec: did anyone notice that touching off with linuxcnc 2.10 (latest git) doesn't work anymore?
10:31 AM mrec: the location of the g-code is not updated anymore
10:31 AM mrec: interestingly it worked in lathe mode but in milling mode the g-code is not moving anymore
10:32 AM unterhausen: is there a reason you are on 2.10?
10:32 AM mrec: I added some patches to linuxcnc
10:33 AM mrec: and I'm using some newer g-code commands I think
10:33 AM unterhausen: I'm no expert, but this may be better on the devel list
10:33 AM unterhausen: ^devel channel
10:34 AM unterhausen: certainly more likely to find people that are using 2.10 there
10:41 AM skunkworks[m]: I hate doing stairs and railings..
10:43 AM roycroft: did you ever get your email issue sorted, skunkworks?
10:46 AM unterhausen: I really should put a proper railing into the basement. The one there has no returns and stops 3 steps short
10:48 AM unterhausen: now that I think of it, the upstairs handrail isn't proper either
10:48 AM unterhausen: wonder if I could move it to the basement
10:51 AM skunkworks[m]: roycroft: not really.. the sales person is not understanding that yes - she might get emails from others. That doesn't mean her system is setup right.
10:53 AM roycroft: it really looked like something on their end, so that makes sense
12:12 PM unterhausen: client emailed that we couldn't meet because he has had severe chest pain for the last 3 days
12:13 PM unterhausen: I am not aware of a benign source of severe chest pain
12:13 PM Rab: Cracked rib(s) are painful, but not terminal.
12:14 PM unterhausen: you would think he would mention if he bruised/cracked a rib
12:14 PM unterhausen: maybe he cracked it and didn't know, he's 85
12:16 PM Lcvette[m]: JT: i following your instruction for building a kernel, this is the first time ive done this, it has been running for a long time, like 45 minutes so far, is this normal?
12:25 PM roycroft: at 85, it doesn't take much to crack a rib
12:26 PM roycroft: and it's entirely plausible that the person did crack a rib and wasn't aware of having done so
12:26 PM Rab: It can happen from coughing, I think.
12:27 PM roycroft: yes, at that age, especially
01:00 PM unterhausen: still would want to know why
01:00 PM unterhausen: I gave myself a headache from coughing and it's still affecting me almost 48 hours later
01:01 PM unterhausen: there are obvious signs of a cracked rib, I think
01:02 PM unterhausen: Lcvette[m] on a pi? That doesn't seem unusual. On a pc it seems like a long time
01:03 PM JT[m]: Lcvette depends on how much processing power you have
01:03 PM unterhausen: although I used to build kernels on an off-brand advantech embedded pc where it took a couple of hours
01:03 PM unterhausen: after you built the kernel the first time, the second time took a lot less time
01:04 PM unterhausen: there was something in the standard kernel that the weird cpu on those computers didn't like
01:11 PM unterhausen: they must have been emulating some instructions
02:09 PM Loetmichel: **BURP** Y'all think I'll ever learn to NOT order food while going hungry for the whole day? Just ate 24 sushi rolls AND a Poke Bowl Japanese fried Chicken... No, i dont want a mint wafer!
02:10 PM roycroft: just one littl mint?
02:10 PM roycroft: it's wafa thin
03:38 PM travis_farmer[m]: question about my 7i73, mode 0. what are the inputs, IN0 - IN7? when i connect from P2-Pin11 (AVDD) to IN0, i get a very short pulse on IN0 when the switch is closed. is this a one-shot input? or should i be powering the switch from P2-Pin29 (3.3v)? they both read 3.3v, when i was in my shop the other day.
03:46 PM ZincBoy[CAON][m]: What hardware mode? W5/W6?
03:47 PM travis_farmer[m]: 8X8 keypad mode, with LCD
03:49 PM ZincBoy[CAON][m]: In keypad mode you will get a single pulse for a contact closure in the keypad matrix. There will be a "keyup" signal when it is released. You need to decode the signals with a component. I think there is one as part of the distro now.
03:51 PM travis_farmer[m]: IN0 - IN8 is on P2, not P1 (the keypad/lcd port)
03:52 PM travis_farmer[m]: just trying to connect a E-stop button and some mode switches
03:53 PM ZincBoy[CAON][m]: That should work. You should get a signal. Do you have a pull-up/down?
03:53 PM ZincBoy[CAON][m]: There are no pull-up or down resistors on in0-7
03:54 PM travis_farmer[m]: at the time, i just connected an e-stop button (latching) from AVDD to IN0, and all i could get is a very short HIGH pulse
03:55 PM travis_farmer[m]: maybe AVDD can't drive an input, but just supply reference voltage...
03:55 PM ZincBoy[CAON][m]: That won't work. You need a resistor to gnd to pull it low
03:56 PM ZincBoy[CAON][m]: Then the switch pulls it high. 4.7k to 10k should be fine for the resistor.
03:56 PM travis_farmer[m]: but with a constant pull high from the switch, should the input not stay high?
03:57 PM ZincBoy[CAON][m]: I don't remember what AVDD was. I used the 3.3V out as that is a logic supply.
03:57 PM travis_farmer[m]: i will try that tomorrow. i just used AVDD as it was 3.3v and convenient. maybe i was wrong in that aspect...
04:00 PM travis_farmer[m]: sadly i remembered all this as the sun is going down and the light in the shop is fading...
04:49 PM -!- #linuxcnc mode set to +v by ChanServ
05:11 PM CaptHindsight[m]: "AVDD" and "AVSS" are basically power supply and ground for the analogue portions of the circuitry.
05:11 PM CaptHindsight[m]: there is now law that says this, it's just commonly used
05:13 PM CaptHindsight[m]: is usually not tied directly to digital logic so that the analog power stays low noise
05:14 PM CaptHindsight[m]: if no analog is used there is no crime in using it for powering digital
05:24 PM CaptHindsight[m]: travis_farmer: the 7i73 docs don't have much detail on the analog power output and analog ground
05:25 PM CaptHindsight[m]: so i can only guess that it's used as an analog voltage reference for external devices
05:26 PM CaptHindsight[m]: it might also be the reference for the (8) eight analog inputs
05:26 PM ZincBoy[CAON][m]: It is meant for things like suppling a potentiometer that is connected to the analog inputs. At least that is how I read it and used them. They should work for digital pullups as well.
05:27 PM CaptHindsight[m]: i didn't see a mention of the current available on the analog 3.3V out "AVDD"
05:30 PM CaptHindsight[m]: travis_farmer: I would avoid using "AVDD" and "AVSS" for both analog and digital
05:30 PM CaptHindsight[m]: so of it's just for a few digital signals it's probably fine
05:31 PM CaptHindsight[m]: with no analog
06:29 PM roycroft: we may hit a record low tonight
06:29 PM * roycroft will be glad when this wintery weather is gone
06:30 PM * Tom_L 2nds that
07:45 PM jdh: it was 82f here today
07:52 PM roycroft: it's going to be colder than a penguin's bum tonight here
07:57 PM XXCoder: ice to see that
08:38 PM Tom_L: 26°F currently here
09:29 PM roycroft: it's -1 here already, and it's just an hour and a half after sundown
09:30 PM roycroft: it may get down to -7 tonight - the record low is -5
09:31 PM XXCoder: 23f
09:31 PM XXCoder: fun
09:32 PM XXCoder: my room is fairly cold at 58f so i probablky would have to wait for mct oil to melt longer before being able to make cbd oil
10:02 PM xnaron[m] is now known as xnaron4025[m]
10:33 PM perry_j1987: hows it going guys
10:33 PM perry_j1987: ahh man sore
10:33 PM perry_j1987: helping buddy do his first expo this weekend