#flex-dev Logs

Jun 22 2025

#flex-dev Calendar

04:46 AM Tom_L: morning
05:05 AM Tom_L: so hm2_spix works but mesaflash doesn't
05:05 AM Tom_L: it would be nice if it did but i can work around that
05:06 AM Tom_L: it's one of the few cards with multiple interfaces
09:15 AM JT-Cave: still not sure how you could us a hal io thing
09:16 AM Tom_L: if you have a button to stop a process or the process is stopped by an external source maybe
09:16 AM Tom_L: i dunno..
09:16 AM Tom_L: if a robotic arm faulted or you had to stop it quick
09:17 AM Tom_L: or he's overthinking his problem
09:18 AM JT-Cave: I'm not having any luck making a hal net with that afaik only one hal can be an out...
09:18 AM Tom_L: the index pulse is an IO
09:19 AM Tom_L: maybe it's to do with a spindle thing
09:19 AM JT-Cave: yup
09:19 AM JT-Cave: I can use setp to set the io pin and the flex thing to change it
09:19 AM Tom_L: there aren't many of those
09:19 AM JT-Cave: but you saw that in the video
09:20 AM Tom_L: i think so
09:20 AM Tom_L: i may have skimmed over that one during all this spi crap
09:23 AM Tom_L: https://www.youtube.com/watch?v=DhLZVh5uODc
09:23 AM Tom_L: that one?
09:23 AM JT-Cave: yup
09:23 AM JT-Cave: breakfast
09:23 AM Tom_L: yeah i did see the check box
09:25 AM Tom_L: and numbers... now
09:44 AM JT-Cave: https://www.forum.linuxcnc.org/24-hal-components/45429-bidirectional-pins-hal-io
09:49 AM JT-Cave: you _can_ connect two hal io pins together and they stay synced
09:49 AM Tom_L: there are no
09:49 AM Tom_L: there are no 'good' cases supporting it
09:50 AM Tom_L: windy as heck already
09:50 AM Tom_L: poked my head out for a few
09:50 AM JT-Cave: no break from the heat for the next week or more
09:51 AM JT-Cave: so I assume if you have a component that is connected to a hal io and it's in the gui the gui and the component will stay in sync
09:51 AM Tom_L: i think the io is kinda like spi on the 7i90.. maybe 2 of us left using them :)
09:52 AM Tom_L: i dunno the gene pcw was referring to
09:52 AM Tom_L: what if the gui changes it?
09:53 AM Tom_L: yeah i dunno
09:55 AM Tom_L: i visualize 2 inputs going thru an 'or' gate. either one can trip it
09:56 AM Tom_L: but neither see the direct result of the other.. no feedback
09:56 AM JT-Cave: so if you have two io pins connected to toggle them you use sets signalname
09:56 AM JT-Cave: net io-test flexhal.hal-io-cb-1 flexhal.hal-io-cb-2
09:56 AM JT-Cave: set either one and the other follows suit
09:56 AM Tom_L: ok
09:56 AM * JT-Cave goes to clean chicken poop
09:57 AM JT-Cave: https://ibb.co/zhtKhqbB
09:58 AM JT-Cave: https://ibb.co/0pRRNzTv
09:59 AM Tom_L: interesting...
09:59 AM Tom_L: i still don't quite see a use case for it
10:08 AM Tom_L: i don't remember but what did you do with the coolant buttons? did code reset them if the coolant was turned off?
10:11 AM JT-Shop: I think so
10:12 AM Tom_L: that's about as close as i can come to "IO"
10:30 AM rdtsc: <Tom_L> time to stop before something breaks <--- hahaha that's exactly my mentality anymore
10:32 AM rdtsc: in role-playing games, there is usually one class (spell casters) with exceptional power, but exceptional fragility; so-called "glass-casters." Rpi5+Mesa is a glass-caster if I ever did see one.
10:41 AM Tom_L: nothing works until the stars align
10:45 AM Tom_L: rdtsc, does the 7c80 need field power to work?
10:46 AM Tom_L: or 7c81 for that matter
10:52 AM JT-Cave: https://gnipsel.com/linuxcnc/flexgui/hal.html#hal-i-o
10:53 AM JT-Cave: is the property hal_type cornfusing
10:53 AM Tom_L: not to someone that has used i o io
10:54 AM Tom_L: or put pin value then the widget off to the right
10:54 AM Tom_L: 3 columns
10:54 AM JT-Cave: refresh that page
10:54 AM JT-Cave: changed the checkbox
10:55 AM Tom_L: that would be ok
10:56 AM JT-Cave: I guess a button could be a hal io as well
10:56 AM Tom_L: hal_bit?
10:57 AM Tom_L: yeah, a button has 2 states
10:57 AM Tom_L: in the case of my keyboard 3. on off stuck
10:57 AM JT-Cave: LOL
10:57 AM JT-Cave: just pushed it
10:58 AM JT-Cave: I'll add the button code later
10:58 AM Tom_L: ok
10:58 AM JT-Cave: I guess if you set the button to checkable it might make more sense but who knows
10:59 AM Tom_L: if it changes color all that has to follow suit too
10:59 AM JT-Cave: yup, getting complicated
11:00 AM JT-Cave: and a guy is adding qtplasma to flex... I hope he's not adding it but just making a look alike
11:01 AM * JT-Cave goes to dig a bit more out to get to the grinder
11:01 AM Tom_L: PR #327
11:02 AM Tom_L: color, unpressed, pressed etc
11:35 AM JT-Cave: pressed and normal states are controlled by the qss
11:48 AM JT-Cave: I was mistooking about the qtplasmac it's being added to mesact
12:08 PM JT-Cave: nap time
12:15 PM Tom_L: good call
12:56 PM rdtsc: Tom, 7c80 is a rpi "host" and includes a power supply for the rpi
12:59 PM Tom_L: ahh ok
01:00 PM rdtsc: like 7-42v input - not so for the 7c81; that is still a host, but must be powered from 5v
01:00 PM Tom_L: it's the smaller of the 2 right?
01:00 PM Tom_L: 80 has all the pinouts
01:00 PM rdtsc: yep 80 is big-brother
01:02 PM rdtsc: https://store.mesanet.com/index.php?route=product/product&product_id=338
01:02 PM Tom_L: i've seen em just wanted to verify
01:03 PM Tom_L: which one do you have.. the 80?
01:03 PM rdtsc: yep, a little overkill perhaps but figured better to have it and not need it, than need it and not have it
01:07 PM rdtsc: heh, my issue got a note in red on the product page, oops... https://store.mesanet.com/index.php?route=product/product&product_id=345
01:08 PM Tom_L: i knew about that
01:08 PM Tom_L: something on the CS line
01:08 PM lcnc-relay: <ccatlett1984@> I had that on mine
01:09 PM lcnc-relay: <ccatlett1984@> Pi4 was fine, pi5 was pissed
01:10 PM Tom_L: they don't know unless we test
01:11 PM rdtsc: they had no idea a firmware wouldn't work for a new rpi (with a new rpi1 chip) - rpi foundation didn't give any data about their new chip
01:11 PM Tom_L: i was kinda surprised i remembered how to make a bitifle
01:11 PM Tom_L: it'd been way too long
01:12 PM rdtsc: installed the toolchain once and looked at it, but was leaving that for if something unusual needed to be done
01:12 PM Tom_L: i had it on linux once but can't get it to install now
01:13 PM Tom_L: so i had 2 PCs hooked to it when i did the unbrick
01:13 PM rdtsc: clever :)
01:14 PM Tom_L: one for jtag - don't restart - the other for mesaflash
01:14 PM Tom_L: worked like a champ
01:15 PM rdtsc: dunno if I have anything that'll do JTAG... microchip ICD3?
01:15 PM Tom_L: i think they're pretty brand specific
01:15 PM Tom_L: i got a cheap clone
01:16 PM Tom_L: i've got some other xilinx boards i play with once in a while
01:17 PM rdtsc: been meaning to get into FPGAs... it is a goal... after the mill, and the workbench... so very back-burner
01:18 PM Tom_L: https://www.youtube.com/watch?v=o8lezpJhfAo
01:19 PM Tom_L: i really like that board but i can't find it now
01:20 PM rdtsc: very sensitive :)
01:20 PM rdtsc: https://faculty-web.msoe.edu/johnsontimoj/EE3921/files3921/Book_FreeRangeVHDL.pdf
01:21 PM Tom_L: https://www.ebay.com/itm/176420401986
01:21 PM Tom_L: i got one like that
01:23 PM Tom_L: http://www.asic-world.com/verilog/veritut.html
01:24 PM Tom_L: al williams used to have alot of good examples
01:25 PM Tom_L: https://www.macrofab.com/podcasts/al-williams-field-programmable-gate-arrays/
01:25 PM Tom_L: i dunno where his stuff is hidden now
01:27 PM Tom_L: couple hackaday links there
01:28 PM Tom_L: i've done some in vhdl and verilog
01:29 PM Tom_L: that was only a 500 count encoder
02:52 PM JT-Shop: I'm not seeing how a pushbutton could be hal io pin unless it's a checkable button
03:51 PM Tom_L: push on, push off not momentary
03:59 PM JT-Cave: a checkable button works but not a momentary
04:00 PM Tom_L: put that caveat in the docs
04:08 PM Tom_L: this might be a good time to test the flex deb out on a fresh install
04:16 PM JT-Shop: I haven't pushed the button code yet
04:18 PM Tom_L: i just wanna see if i get any dependency warnings from the deb on the rpi
04:24 PM Tom_rpi5: http://paste.debian.net/1381618/
04:28 PM JT-Shop: https://github.com/jethornton/flexgui/blob/master/debian/control
04:28 PM Tom_rpi5: apt --fix-broken didn't work
04:28 PM JT-Shop: it's in the dependency list
04:28 PM JT-Shop: how did you install the deb?
04:28 PM Tom_rpi5: i was installing like a new user
04:28 PM Tom_rpi5: just dpkg -i .deb
04:29 PM JT-Shop: gdebi?
04:29 PM Tom_rpi5: sudo
04:29 PM Tom_rpi5: no i can use either one dpkg -i or gdebi
04:29 PM JT-Shop: I doubt a new user would use dpkg
04:29 PM JT-Shop: what does the -i switch do?
04:29 PM Tom_rpi5: install
04:30 PM JT-Shop: looks like dpkg doesn't install the decencies
04:30 PM Tom_rpi5: yeah i'm testing that
04:31 PM Tom_rpi5: gdebi seems to
04:31 PM JT-Shop: that's why I recommend using gdebi
04:32 PM Tom_rpi5: you might mention gdebi there
04:32 PM JT-Shop: I do
04:33 PM Tom_rpi5: i see that now :)
04:33 PM Tom_rpi5: and it starts up
04:33 PM Tom_rpi5: just checking things out
04:33 PM Tom_rpi5: now i'll install the dev stuff
04:34 PM Tom_rpi5: after dinner
04:41 PM Tom_rpi5: Unable to locate package python3-pyqt6
04:41 PM Tom_L: or maybe not
04:41 PM JT-Shop: well that sucks
04:42 PM Tom_L: i dunno where the source list is for these either
04:42 PM JT-Shop: try apt update first
04:43 PM Tom_rpi5: nope
04:43 PM Tom_rpi5: even after an upgrade
04:44 PM JT-Shop: are you using a normal debian or emc os
04:44 PM Tom_rpi5: from the dl page
04:45 PM Tom_rpi5: https://www.linkedin.com/pulse/install-pyqt6-raspberry-pi-5-maryam-del-mar-correa-9phse
04:46 PM JT-Shop: that sucks
04:46 PM JT-Shop: oh crap pip and wheels all that sucks
04:47 PM Tom_rpi5: it says they're installed
04:47 PM Tom_rpi5: one sec
04:48 PM Tom_rpi5: http://paste.debian.net/1381621/
04:48 PM Tom_rpi5: i did them one at a time there
04:52 PM JT-Shop: so you were able to install all the dependencies if you do one at a time?
04:52 PM Tom_rpi5: looks that way
04:52 PM Tom_rpi5: or they were already there
04:52 PM Tom_rpi5: i'm not sure which
04:53 PM Tom_rpi5: but all on one line didn't fly
04:54 PM Tom_rpi5: http://paste.debian.net/1381622/
04:55 PM Tom_rpi5: first failed, 2nd success
04:55 PM JT-Shop: weird
04:55 PM Tom_rpi5: i bet the comma screwed it up
04:56 PM JT-Shop: I don't think you use a comma
04:56 PM Tom_L: i just copied and pasted from your link and didn't even thing about that
04:57 PM JT-Shop: but I might be wrong...
04:57 PM Tom_rpi5: i'll try witout once
04:58 PM Tom_rpi5: it'll just say they're installed
04:58 PM JT-Shop: ok
04:58 PM Tom_rpi5: that was it
04:58 PM Tom_rpi5: python3-pyqt6 is already the newest version (6.4.2-1).
04:58 PM Tom_rpi5: pyqt6-dev-tools is already the newest version (6.4.2-1).
04:58 PM Tom_rpi5: python3-psutil is already the newest version (5.9.4-1+b1).
05:00 PM JT-Shop: ah you copied the depends from debian control and there you need a comma
05:00 PM Tom_rpi5: i knew better anyway
05:02 PM Tom_rpi5: ok so a noob install works as does the dev stuff
05:02 PM JT-Shop: so did gdebi work to install everything?
05:02 PM Tom_rpi5: yes
05:03 PM Tom_rpi5: i'm not sure i'd recomend dev though.. it'll wear out the sd
05:03 PM Tom_rpi5: they have nvme adapters as well as m.2 i think
05:04 PM JT-Shop: cool
05:04 PM Tom_rpi5: nvme would really be FAF :)
05:04 PM Tom_rpi5: not sure how proven they are yet
05:06 PM Tom_rpi5: the lcnc image doesn't give you a cnc menu though
05:06 PM Tom_rpi5: the menu is all screwed up
05:07 PM JT-Shop: the menu has been screwed up for a long time, sometimes it's here sometimes it there
05:07 PM Tom_rpi5: lcnc is in acessories and science twice
05:07 PM Tom_rpi5: flex went into 'developement'
05:07 PM JT-Shop: dunno why Andy added acessories and science to debian install
05:07 PM Tom_rpi5: with geany and designer
05:08 PM Tom_rpi5: makes no sense here
05:08 PM JT-Shop: if no cnc menu is found it's a crap shoot where the menu shows up
05:08 PM Tom_rpi5: right
05:08 PM Tom_rpi5: grub customizer is installed and it's running xfce
05:09 PM Tom_rpi5: err no nevermind
05:09 PM Tom_rpi5: i was thinking mate
05:10 PM Tom_rpi5: i may have added that but it's in 2 places
05:11 PM Tom_rpi5: and doesn't let you set isolcpus that i can see
05:13 PM Tom_rpi5: servo thread is 6.8 so far running 5 glxgears
05:13 PM Tom_rpi5: 12.5 base
05:13 PM JT-Shop: that's pretty impressive
05:14 PM Tom_rpi5: 7.8 adding YT
05:15 PM Tom_rpi5: 15.7 base
07:56 PM rdtsc: quick, duplicate the SD card if you haven't already :)