Back
[00:02:35] -!- Roguish has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
[00:09:11] -!- Akex has quit [Quit: Connection closed for inactivity]
[00:24:48] -!- Loetmichel has quit [Ping timeout: 265 seconds]
[00:32:56] -!- rob_h has quit [Ping timeout: 240 seconds]
[00:33:56] <mozmck> pcw_home: I may be able to help with a setup script
[00:34:06] <mozmck> Something like that is on my list to do.
[00:36:41] -!- The_Ball has quit [Remote host closed the connection]
[01:01:13] -!- asdfasd has quit []
[01:02:39] -!- SpeedEvil has quit [Quit: No Ping reply in 180 seconds.]
[01:03:38] -!- SpeedEvil has quit [Changing host]
[01:04:53] tjb111 is now known as tjb1
[01:12:06] -!- Servos4ever has quit [Ping timeout: 250 seconds]
[01:24:27] -!- zeitue has quit [Ping timeout: 256 seconds]
[01:43:51] -!- Tom_itx has quit [Ping timeout: 244 seconds]
[01:44:34] -!- Tecan has quit [Changing host]
[01:44:47] -!- zlog has quit [Ping timeout: 250 seconds]
[01:46:53] <pcw_home> That would be great, it seems to be a pretty big stumbling block
[01:47:40] -!- zlog [zlog!~zlog@ip68-102-196-57.ks.ok.cox.net] has joined #linuxcnc-devel
[01:47:42] <pcw_home> I have changed the init scripts here so all cards will come with 10.10.10.10 EEPROM IP address
[01:49:19] <pcw_home> I wonder if the bootp option would help find the card (which entN its connected to)
[01:50:58] <pcw_home> eth(n) I mean
[01:56:48] <seb_kuzminsky> pcw_home: could you use mdns? then the card could autoconfigure, and you could refer to it by name instead of address
[01:57:05] <seb_kuzminsky> http://en.wikipedia.org/wiki/Multicast_DNS
[01:57:07] <seb_kuzminsky> bbl
[02:00:23] <jepler> pcw_home: if you are going to do 10.10.10.10, then we should change linuxcnc, which defaults to 192.168.1.121
[02:00:45] <pcw_home> mdns looks pretty simple
[02:00:58] <jepler> I agree the initial setup is terrible, even though I carefully wrote it all down in that manpage that's not going to help users, particularly beginning users
[02:01:19] <jepler> more of it *could* potentially be semi-hardcoded in hm2_eth.c too
[02:01:53] <pcw_home> Yeah , (I've come to realize) the 192.168.1.121 is really just for for recovery
[02:02:22] <pcw_home> or configurattion on a normal local network
[02:02:22] <jepler> actually it should be an ipv4 link-local address
[02:02:35] <jepler> not sure
[02:02:53] <jepler> let me rephrase that to, we should explore whether it should be a link-local address
[02:02:58] <pcw_home> mdns looks good for jumper option 3
[02:05:13] <jepler> with a link-local address + mdns you would just say loadrt hm2_eth ...iface=eth1...
[02:05:54] <jepler> setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, "eth1", strlen("eth1"))
[02:07:18] <pcw_home> yeah that would be better (plus I now have a whole ~2 K of code space free!)
[02:07:44] <jepler> and probably SO_DONTROUTE would be good to add
[02:13:02] -!- zlog has quit [Ping timeout: 276 seconds]
[02:13:48] <jepler> hm the link-local rfc makes it sound like it's hairy if you have multiple interfaces, which is exactly our situation
[02:14:27] <jepler> and multicast dns makes me worry, because at one point I believe it was causing packets that interfered with hm2_eth
[02:15:19] <jepler> we could leave the interface unconfigured and code our own ip, arp, and udp stack in hm2_eth
[02:32:03] <pcw_home> Or leave it the way its is :-)
[02:34:03] <pcw_home> other than first setup, preemt-rt and the standard network stack work really well (but very noticeably better on faster CPUs)
[02:35:28] -!- jerryitt has quit [Quit: Connection closed for inactivity]
[02:43:55] -!- mhaberler has quit [Quit: mhaberler]
[03:01:40] -!- ve7it has quit [Remote host closed the connection]
[03:02:10] <mozmck> One problem is that it may not be on eth1, and there needs to be a way for a user to figure out which iface it is one.
[03:03:13] <mozmck> on
[03:09:56] -!- Tom_itx [Tom_itx!~Tl@unaffiliated/toml/x-013812] has joined #linuxcnc-devel
[03:10:08] <KGB-linuxcnc> 03Jeff Epler 05jepler/hm2-eth-simplify 39d5d1f 06linuxcnc 10(6 files in 5 dirs) WIP untested change default hm2_eth address to 10.10.10.10 * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=39d5d1f
[03:10:08] <KGB-linuxcnc> 03Jeff Epler 05jepler/hm2-eth-simplify 4c88211 06linuxcnc 10docs/man/man9/hm2_eth.9 10src/hal/drivers/mesa-hostmot2/hm2_eth.c WIP do iptables and sysctl configuration automatically * 14http://git.linuxcnc.org/?p=linuxcnc.git;a=commitdiff;h=4c88211
[03:12:02] -!- crazy_imp has quit [Ping timeout: 252 seconds]
[03:13:54] <jepler> the second commit is the more interesting of the two
[03:14:03] <jepler> it gets rid of the need to do anything manually with iptables and sysctl
[03:14:32] <jepler> mozmck: yes, agreed about determining the interface name
[03:15:02] <jepler> I don't have any great ideas about how to approach that, particularly the way debian and ubuntu like to assign new interface names when you switch out ethernet cards
[03:15:05] <jepler> 'night all
[03:15:11] -!- zlog [zlog!~zlog@ip68-102-196-57.ks.ok.cox.net] has joined #linuxcnc-devel
[03:15:18] <Tom_itx> damn storms knocked the logbot off
[03:15:47] <mozmck> I was thinking of something to ping each iface and look for a response from the mesa card.
[03:16:13] -!- AR_ has quit [Ping timeout: 250 seconds]
[03:29:25] -!- danylevskyi has quit [Ping timeout: 248 seconds]
[03:32:17] -!- MacGalempsy has quit [Remote host closed the connection]
[03:52:30] -!- zeitue has quit [Ping timeout: 276 seconds]
[04:01:56] -!- jthornton has quit [Read error: Connection reset by peer]
[04:02:01] -!- JT-Shop has quit [Read error: Connection reset by peer]
[04:02:45] -!- JT-Shop [JT-Shop!~john@184.21.239.59] has joined #linuxcnc-devel
[04:03:05] -!- jthornton [jthornton!~john@184.21.239.59] has joined #linuxcnc-devel
[04:24:58] -!- danylevskyi has quit [Ping timeout: 264 seconds]
[04:42:36] -!- FinboySlick has quit [Quit: Leaving.]
[05:00:28] -!- zeitue has quit [Read error: Connection reset by peer]
[05:05:02] -!- tjtr33 has quit [Quit: Leaving]
[05:13:12] -!- JohnyK [JohnyK!~wity@witypc.ynet.sk] has joined #linuxcnc-devel
[05:17:21] -!- kwallace [kwallace!~kwallace@smb-165.sonnet.com] has parted #linuxcnc-devel
[05:23:35] -!- Demiurge has quit [Ping timeout: 246 seconds]
[05:35:57] -!- bkboggy has quit [Quit: Leaving]
[05:36:36] -!- FreezingCold has quit [Remote host closed the connection]
[05:46:09] -!- zeitue has quit [Ping timeout: 250 seconds]
[05:47:38] -!- FreezingCold has quit [Ping timeout: 272 seconds]
[06:08:16] -!- Mr_Sheesh has quit [Remote host closed the connection]
[06:33:36] -!- dan2k3k4 has quit [Ping timeout: 240 seconds]
[06:36:18] -!- eventor [eventor!~eventor@p5DDD63C3.dip0.t-ipconnect.de] has joined #linuxcnc-devel
[06:37:57] -!- Mr_Sheesh has quit [Remote host closed the connection]
[06:42:48] -!- Mr_Sheesh has quit [Remote host closed the connection]
[06:44:36] -!- dan2k3k4k5 has quit [Read error: Connection reset by peer]
[06:57:56] -!- furrywolf has quit [Ping timeout: 272 seconds]
[07:02:22] -!- FreezingCold has quit [Ping timeout: 272 seconds]
[07:06:57] -!- rob_h [rob_h!~robh@94.10.126.60] has joined #linuxcnc-devel
[07:19:16] -!- Tecan has quit [Quit: Live Long And Phosphor!]
[07:26:37] -!- amiri has quit [Read error: Connection reset by peer]
[07:57:06] -!- Mr_Sheesh has quit [Remote host closed the connection]
[08:21:02] -!- jfrmilner has quit [Quit: bye]
[08:44:08] -!- MrSunshine has quit [Ping timeout: 245 seconds]
[09:06:07] -!- mhaberler has quit [Quit: mhaberler]
[09:06:27] -!- aquaWeasel has quit [Ping timeout: 276 seconds]
[09:08:24] -!- robinsz has quit [Ping timeout: 272 seconds]
[09:17:45] -!- Mr_Sheesh has quit [Changing host]
[09:22:17] -!- Mr_Sheesh has quit [Remote host closed the connection]
[09:22:41] -!- Valen has quit [Remote host closed the connection]
[09:23:58] -!- Brunetty has quit [Ping timeout: 255 seconds]
[09:29:11] -!- Mr_Sheesh has quit [Remote host closed the connection]
[09:40:22] -!- Akex [Akex!uid58281@gateway/web/irccloud.com/x-ugomcyoskrdrawoo] has joined #linuxcnc-devel
[09:42:10] -!- Mr_Sheesh has quit [Excess Flood]
[09:43:02] -!- tinkerer [tinkerer!~tinkerer@mail.play-pla.net] has joined #linuxcnc-devel
[09:50:24] -!- md-2 has quit [Quit: Leaving...]
[09:57:18] -!- BellinganRoy has quit [Ping timeout: 250 seconds]
[10:02:57] -!- archivist_herron has quit [Ping timeout: 256 seconds]
[10:05:46] -!- karavanjo has quit [Ping timeout: 264 seconds]
[10:12:44] -!- rob_h has quit [Ping timeout: 245 seconds]
[10:12:57] -!- rob_h [rob_h!~robh@90.203.135.130] has joined #linuxcnc-devel
[10:29:06] -!- BellinganRoy has quit [Ping timeout: 252 seconds]
[10:37:32] -!- zeitue has quit [Ping timeout: 246 seconds]
[10:44:40] -!- The_Ball has quit [Ping timeout: 272 seconds]
[10:49:32] -!- b_b has quit [Changing host]
[11:00:23] -!- The_Ball has quit [Ping timeout: 265 seconds]
[11:08:55] -!- unfy has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
[11:14:43] -!- karavanjo1 has quit [Read error: Connection reset by peer]
[11:24:25] -!- Cromaglious_ has quit [Ping timeout: 264 seconds]
[11:32:29] -!- mhaberler has quit [Ping timeout: 256 seconds]
[11:38:11] -!- b_b has quit [Remote host closed the connection]
[11:57:17] -!- Deejay has quit [Quit: bbl]
[11:59:32] -!- robinsz has quit [Ping timeout: 256 seconds]
[12:09:11] -!- Akex has quit [Quit: Connection closed for inactivity]
[12:14:54] -!- Akex [Akex!uid58281@gateway/web/irccloud.com/x-fngjjyexzfyxszzz] has joined #linuxcnc-devel
[12:27:41] -!- mhaberler has quit [Quit: mhaberler]
[12:28:08] <jepler> pcw_home: 7i80 doesn't respond on broadcast address?
[12:46:53] -!- b_b has quit [Changing host]
[12:47:18] <pcw_home> Yes it has to for ARP
[12:51:04] <pcw_home> but all broadcast packets except ARP who-has are ignored
[13:01:34] <pcw_home> I guess it could respond to broadcast UDP as a simple way of finding the card
[13:16:41] -!- skunkworks has quit [Ping timeout: 265 seconds]
[13:27:34] -!- eeeiii has quit [K-Lined]
[13:52:16] -!- skunkworks [skunkworks!~skunkwork@68-115-41-210.static.eucl.wi.charter.com] has joined #linuxcnc-devel
[14:01:09] -!- robinsz has quit [Ping timeout: 265 seconds]
[14:02:49] -!- `Nerobro_ has quit [Ping timeout: 264 seconds]
[14:03:44] -!- cox has quit [Quit: http://quassel-irc.org - Chat komfortabelt. Hvor som helst.]
[14:04:08] -!- cox [cox!~quassel@188.226.208.53] has joined #linuxcnc-devel
[14:14:54] -!- karavanjo has quit [Quit: karavanjo]
[14:23:21] -!- kwallace [kwallace!~kwallace@smb-241.sonnet.com] has joined #linuxcnc-devel
[14:23:59] -!- _eventor [_eventor!~eventor@p5DDD63C3.dip0.t-ipconnect.de] has joined #linuxcnc-devel
[14:25:16] -!- s1dev has quit [Ping timeout: 240 seconds]
[14:25:36] -!- eventor has quit [Ping timeout: 240 seconds]
[14:26:16] -!- kanzure has quit [Ping timeout: 240 seconds]
[14:26:16] -!- RyanS has quit [Ping timeout: 240 seconds]
[14:26:36] -!- capricorn_1 has quit [Read error: Connection reset by peer]
[14:26:36] -!- steves_logging has quit [Ping timeout: 240 seconds]
[14:26:56] -!- lexano has quit [Ping timeout: 240 seconds]
[14:37:49] -!- Demiurge has quit [Quit: Demiurge]
[14:39:49] -!- syyl has quit [Ping timeout: 265 seconds]
[14:40:34] -!- Komzzzpa has quit [Ping timeout: 264 seconds]
[14:45:43] -!- theorb has quit [Read error: No route to host]
[14:47:00] <jepler> pcw_home: before I knew it didn't respond to broadcast UDP packets, I was thinking that broadcasting a request like 85491000 and waiting for a response could work
[14:52:54] <pcw_home> it would be trivial to add broadcast UDP response
[14:53:58] <pcw_home> at least I think it would
[14:56:52] -!- zeitue has quit [Quit: Leaving]
[14:57:59] <pcw_home> Just change this to accept 255.255.255.255
[14:58:00] <pcw_home> parseip
[14:58:02] <pcw_home> lda myip+0 ; You talkin to me?
[14:58:03] <pcw_home> sub @y,IPDestIPOff+0
[14:58:05] <pcw_home> jmpnz mainloop ; not for me
[14:58:06] <pcw_home> lda myip+1
[14:58:08] <pcw_home> sub @y,IPDestIPOff+1
[14:58:10] <pcw_home> jmpnz mainloop ; not for me
[14:58:11] -!- kwallace2 [kwallace2!~kwallace@smb-230.sonnet.com] has joined #linuxcnc-devel
[14:58:11] <pcw_home> though this is for ICMP also not sure if I shoud include that
[14:59:08] -!- kwallace has quit [Ping timeout: 245 seconds]
[14:59:44] -!- f1oat7 [f1oat7!~f1oat@AMontsouris-553-1-113-197.w92-151.abo.wanadoo.fr] has joined #linuxcnc-devel
[15:02:58] -!- pingufan has quit [Quit: Konversation terminated!]
[15:05:13] -!- SpeedEvil has quit [Ping timeout: 264 seconds]
[15:09:11] -!- Akex has quit [Quit: Connection closed for inactivity]
[15:24:28] -!- FreezingCold has quit [Ping timeout: 250 seconds]
[15:31:22] -!- lair82_ has quit [Ping timeout: 246 seconds]
[15:33:41] -!- Komzzzpa has quit [Ping timeout: 248 seconds]
[15:39:33] <jepler> what ICMPs does it respond to besides echo (ping)?
[15:40:16] -!- quiqua has quit [Quit: quiqua]
[15:41:44] <pcw_home> just ping
[15:45:37] -!- md-2 has quit [Remote host closed the connection]
[15:52:37] -!- moorbo has quit [Remote host closed the connection]
[15:55:28] -!- md-2 has quit [Quit: Leaving...]
[15:55:33] <jepler> here's my little program for probing ethernet boards, except that you actually have to hard-code the address so it's not too useful:
http://pastie.org/10103524
[15:56:55] -!- podarok has quit [Remote host closed the connection]
[15:57:12] <jepler> requries root, unfortunately, for SO_BINDTODEVICE
[15:58:49] <jepler> sending to the network's broadcast address (e.g., 10.255.255.255 or 192.168.1.255) doesn't require root but then the hostmot2 card has to know its netmask which is a new requirement
[16:00:55] -!- capricorn_1 has quit [Quit: Konversation terminated!]
[16:01:48] <jepler> *another* new requirement
[16:01:57] <pcw_home> Yeah didnt think about that
[16:03:55] -!- lair82_ has quit [Ping timeout: 246 seconds]
[16:04:12] <pcw_home> not bad if the class is fixed to say 24/8 but I guess it could be a new EEPROM variable
[16:11:33] -!- robinsz has quit [Ping timeout: 276 seconds]
[16:11:38] -!- danylevskyi has quit [Ping timeout: 245 seconds]
[16:12:44] -!- SpeedEvil has quit [Ping timeout: 272 seconds]
[16:14:37] <jepler> mdns probably deserves consideration too
[16:15:20] <jepler> it might be better than my UDP broadcast idea
[16:17:12] <pcw_home> Yeah mdns seems cleaner
[16:18:00] <jepler> anyway not sure if you saw branch jepler/hm2-eth-simplify but it does get rid of several of those setup steps (sysctl and iptables)
[16:18:11] <pcw_home> it _looks_ fairly simple and I can just use the EEPROM card name for the time being
[16:18:38] <pcw_home> Yes I saw that thats great because those are all pretty tricky for users
[16:21:15] <jepler> even if you add mdns to the firmware, debian's /etc/network/interfaces has to match the card's configuration
[16:23:15] <jepler> for network address & mask
[16:33:02] <pcw_home> yeah
[16:39:12] -!- danylevskyi has quit [Ping timeout: 265 seconds]
[16:39:20] -!- robinsz has quit [Ping timeout: 272 seconds]
[16:42:15] <jepler> hm are there no 7i80 sample configs
[16:43:43] <jepler> and due to the need to specify ip= outside of config= I'm not sure it fits the mold sufficently either
[16:45:06] <jepler> I never run linuxcnc, just hal :-/
[16:58:53] -!- rob_h has quit [Ping timeout: 256 seconds]
[17:00:19] -!- PCW [PCW!~chatzilla@99.88.10.65] has joined #linuxcnc-devel
[17:03:56] -!- nickoe has quit [Ping timeout: 246 seconds]
[17:05:23] -!- amiri has quit [Ping timeout: 245 seconds]
[17:30:35] -!- anth0ny_ has quit [Quit: anth0ny_]
[17:31:31] -!- anth0ny_ has quit [Read error: Connection reset by peer]
[18:00:52] -!- karavanjo has quit [Ping timeout: 244 seconds]
[18:02:23] -!- robinsz has quit [Ping timeout: 250 seconds]
[18:03:07] -!- ingsoc has quit [Quit: Leaving.]
[18:04:08] -!- acdha has quit [Quit: Textual IRC Client: www.textualapp.com]
[18:05:45] -!- exitcode1 has quit [Client Quit]
[18:23:44] -!- moorbo has quit [Ping timeout: 256 seconds]
[18:37:25] -!- rob_h [rob_h!~robh@2.125.103.155] has joined #linuxcnc-devel
[18:44:52] -!- robinsz has quit [Ping timeout: 265 seconds]
[18:55:19] -!- andypugh [andypugh!~andy2@cpc14-basl11-2-0-cust1010.20-1.cable.virginm.net] has joined #linuxcnc-devel
[19:00:10] -!- Akex [Akex!uid58281@gateway/web/irccloud.com/x-dayznbwwmqqhpvzd] has joined #linuxcnc-devel
[19:04:35] -!- moorbo has quit [Remote host closed the connection]
[19:05:13] -!- r0ute has quit [Ping timeout: 250 seconds]
[19:05:49] -!- `Nerobro has quit [Ping timeout: 256 seconds]
[19:06:00] `Nerobro_ is now known as `Nerobro
[19:28:20] -!- f1oat8 [f1oat8!~f1oat@AMontsouris-553-1-57-87.w92-151.abo.wanadoo.fr] has joined #linuxcnc-devel
[19:29:04] -!- f1oat7 has quit [Ping timeout: 272 seconds]
[19:32:52] -!- Komzzzpa has quit [Ping timeout: 256 seconds]
[19:37:38] -!- f1oat8 has quit [Quit: Nettalk6 - www.ntalk.de]
[19:39:00] -!- skorasaurus has quit [Quit: WeeChat 1.1.1]
[19:39:44] -!- JT-Shop has quit [Read error: Connection reset by peer]
[19:40:41] -!- JT-Shop [JT-Shop!~john@184.21.239.59] has joined #linuxcnc-devel
[19:44:21] -!- b_b has quit [Remote host closed the connection]
[19:45:28] -!- jerryitt has quit [Quit: Connection closed for inactivity]
[19:47:02] -!- f1oat4 [f1oat4!~f1oat@AMontsouris-553-1-57-87.w92-151.abo.wanadoo.fr] has joined #linuxcnc-devel
[19:47:10] -!- ve7it [ve7it!~LawrenceG@S01060014d19d0b68.pk.shawcable.net] has joined #linuxcnc-devel
[19:47:59] -!- Camaban has quit [Read error: Connection timed out]
[19:48:16] -!- mhaberler has quit [Ping timeout: 240 seconds]
[19:58:52] -!- jolg42 has quit [Quit: ZZZzzz…]
[20:06:49] <jepler> this is interesting: with SO_BINDTODEVICE, I can communicate with the 7i80 even if the interface in question has an "incompatible" address
[20:07:27] <jepler> e.g., if Linux has eth1 as 192.168.2.1 netmask 129.168.2.255, I can SO_BINDTODEVICE eth1 and sendto / recvfrom 192.168.1.121
[20:11:42] -!- skunkworks has quit [Read error: Connection reset by peer]
[20:12:55] <jepler> hm then I did something that seems to have wedged the machine
[20:13:04] <jepler> $ sudo /sbin/ifconfig eth1 up inet 192.168.2.2 pointopoint 192.168.1.121
[20:16:56] <jepler> anyway, potentially hm2_eth could pick any unused subnet and then send packets to the 7i80 at 192.168.1.121 regardless of whether the subnets match
[20:17:08] <jepler> but only if calling ifconfig doesn't randomly hose the whole system
[20:22:04] -!- micges [micges!~ssds@user-46-113-200-65.play-internet.pl] has joined #linuxcnc-devel
[20:23:16] <andypugh> I hope somone else can give an informed comment, that’s all Greek to me :-)
[20:24:36] -!- Komzzzpa has quit [Ping timeout: 240 seconds]
[20:24:40] <andypugh> Is there a _neat_ way for a HAL component to cause axis motion? That seems like a missing link from tool-changer implementations.
[20:25:39] <andypugh> The option to re-map M6 to a G-code subroutine makes it possible to do it all in G-code, but conversely G-code is clumsy for state machines and error trapping.
[20:26:00] <andypugh> And CL seems to have the same problems as a HAL component.
[20:27:24] <andypugh> I suppose the other option is a user-space Python component that can send MDI commands and also have HAL pins to connect to sensors. But user-space seems like an odd place to do that sort of thing.
[20:28:55] <andypugh> I don’t think you would be wanting to drive a carousel motor and wait for the right position in Python, as an example.
[20:35:24] -!- Komzzzpa has quit [Client Quit]
[20:35:39] <mozmck> PCW: do you have any 7i92 with 2 IDC connectors yet?
[20:37:48] -!- Komzzzpa has quit [Client Quit]
[20:42:50] -!- FinboySlick has quit [Quit: Leaving.]
[20:43:58] <jepler> andypugh: remap is supposed to be able to call into Python
[20:44:15] <jepler> and then Python can turn around and issue motion that goes into the normal queue, I think
[20:46:03] <andypugh> Yes, it can (looking at the docs). It just seems an unnatural place to coordinate machine moves from. Maybe I need to re-think my opinions.
[20:46:53] <PCW> mozmck: we have PCBs (also for 7I92M) but have none built yet
[20:50:10] -!- Deejay has quit [Quit: bye]
[21:11:19] -!- karavanjo has quit [Quit: karavanjo]
[21:12:54] -!- f1oat4 has quit [Quit: Nettalk6 - www.ntalk.de]
[21:13:28] -!- f1oat4 [f1oat4!~f1oat@AMontsouris-553-1-57-87.w92-151.abo.wanadoo.fr] has joined #linuxcnc-devel
[21:13:33] <andypugh> jepler: I just realised, I think that the fresh motion queue for Python is only for remap. And a remap routine can’t create HAL pins (well, it can but they probably won’t be there at HAL load time).
[21:14:37] <andypugh> I guess the remap Python could probably import the HAL python component and call routines in there though.
[21:14:48] <andypugh> I might experiment.
[21:14:50] <cmorley> Andy: remap can make and use hal pins
[21:15:44] <andypugh> Any examples?
[21:28:26] <cmorley> I have one i used for wear offsets... ill see if I can find it....
[21:28:33] -!- skunkworks [skunkworks!~chatzilla@str-broadband-ccmts-ws-26.dsl.airstreamcomm.net] has joined #linuxcnc-devel
[21:29:42] -!- jolg42 has quit [Quit: ZZZzzz…]
[21:35:26] <cmorley> andypugh:
http://pastebin.com/94BvMmDe
[21:35:47] <cmorley> then in toplevel.py:
[21:35:58] <cmorley> import remap
[21:35:58] <cmorley> def __init__(self):
[21:35:58] <cmorley> remap.init_pins(self)
[21:38:04] <andypugh> Aha! You can call the init code in toplevel.py?
[21:38:27] <cmorley> that was the trick yes
[21:38:39] <andypugh> That solves the problem that I couldn’t see the solution to.
[21:38:45] <cmorley> :)
[21:39:32] <andypugh> what does the REMAP line look like?
[21:39:54] <cmorley> in INI u mean?
[21:40:29] <andypugh> Yes. Normally it seems to point to an executable file, and it starts at the beginning…
[21:40:35] <cmorley> REMAP = T python=index_fanuc_lathe_tool
[21:40:52] <cmorley> plus this:
[21:40:56] <cmorley> [PYTHON]
[21:40:56] <cmorley> # where to find Python code
[21:40:56] <cmorley> # code specific for this configuration
[21:40:56] <cmorley> PATH_PREPEND=./
[21:40:56] <cmorley> # generic support code
[21:40:57] <cmorley> PATH_APPEND=../../nc_files/remap_lib/python-stdglue/
[21:40:57] <cmorley> # import the following Python module
[21:40:58] <cmorley> TOPLEVEL=toplevel.py
[21:40:58] <cmorley> # the higher the more verbose tracing of the Python plugin
[21:40:58] <cmorley> LOG_LEVEL = 0
[21:41:17] <andypugh> Ah, because the toplevel imports the file, which means the def-ed functions are available.
[21:41:49] <andypugh> Clever bit of coding that remap faciltity.
[21:42:51] <cmorley> well You can't say Michael H was a dummy :)
[21:43:49] <cmorley> What are you doing with remap?
[21:45:21] <andypugh> I am not doing anything other than trying to answer forum questions :-)
[21:45:51] <andypugh> (Or, rather, forum questions set me wondering “how can we do that neatly?"
[21:45:54] <cmorley> You are a good man charlie brown !
[21:46:27] <cmorley> Ya that often is what does it for me ... the puzzle intrigues me
[21:47:37] <cmorley> Someone asked for wear offset solution a little different from your sample so I played till I got it to work
[21:49:01] -!- tinkerer has quit [Quit: Leaving.]
[21:49:25] -!- tjtr33 has quit [Quit: Leaving]
[21:49:59] <cmorley> I toyed with the though of trying to add axes movement to classicladder...then thought better of it
[21:52:27] -!- anth0ny_ has quit [Quit: anth0ny_]
[21:53:13] -!- anth0ny_ has quit [Client Quit]
[21:55:25] -!- acdha has quit [Quit: Textual IRC Client: www.textualapp.com]
[22:00:16] -!- jvrousseau has quit [Ping timeout: 252 seconds]
[22:05:48] <jepler> > Apr 19 14:14:19 rat kernel: [32077.804073] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[22:05:56] <jepler> no, that was yesterday
[22:06:16] <jepler> Apr 20 06:23:55 rat kernel: [13325.804080] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[22:06:22] <jepler> hm apparently this happens a lot
[22:06:47] <jepler> no messages logged from the hang this afternoon :-/
[22:07:05] -!- tocka has quit [Quit: tocka]
[22:08:35] <andypugh> I got an annoying compiler error today. Not with LinuxCNC, but with the Arduino compiler. “confused by earlier errors, bailing out”
[22:09:27] <andypugh> (The real problem is earlier: “ error: unable to find a register to spill in class 'POINTER_REGS’” ) which I don’t think is anything to do with my actual code.
[22:10:53] -!- Camaban has quit [Read error: Connection reset by peer]
[22:11:20] <jepler> I forget just what I wrote, but it made gcc print an apology that they hadn't gotten around to implementing some C++ feature yet
[22:12:08] <andypugh> Well, at least they were honest.
[22:12:23] <jepler> s'pose so
[22:12:32] <andypugh> My error message doesn’t give me any clue at all what s wrong, or how to get around it.
[22:13:29] <andypugh> The truly wierd thing is that the code worked, then I added another (overloaded) function, and it stopped working, so I deleted the extra function, and it continued to not work.
[22:14:42] <andypugh> I have been told it is a compiler bug. But no clue how to not trigger it.
[22:15:21] <jepler> ugh, there are spammers who target public bugzillas -- seen at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18251#c42 when looking for clues about your compiler error
[22:16:12] <jepler> anyway my impression is that you are hitting a compiler bug, but arduino doesn't offer you a lot of latitude to try with different compiler flags or versions as far as I know
[22:17:00] -!- gambakufu has quit [Ping timeout: 250 seconds]
[22:17:12] -!- exitcode1 has quit [Remote host closed the connection]
[22:17:35] <andypugh> Also a bug that looks to have been fixed 10 years ago?
[22:17:58] <jepler> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50925
[22:19:42] -!- adb has quit [Ping timeout: 252 seconds]
[22:20:53] <andypugh> I wonder how I figure out the version of gcc that Arduino is using on Win 7?
[22:21:23] <andypugh> (this is actually a side-project at work)
[22:21:29] -!- JohnyK has quit [Ping timeout: 245 seconds]
[22:34:44] -!- f1oat4 has quit [Ping timeout: 252 seconds]
[22:43:17] -!- malcom2073 has quit [Remote host closed the connection]
[22:45:12] <andypugh> Goodnight chaps
[22:45:17] -!- andypugh has quit [Quit: andypugh]
[22:52:11] -!- _eventor has quit [Ping timeout: 246 seconds]
[23:04:57] -!- zeeshan-mill has quit [Ping timeout: 276 seconds]
[23:05:03] -!- SpeedEvil has quit [Quit: No Ping reply in 180 seconds.]
[23:14:29] -!- SpeedEvil has quit [Ping timeout: 248 seconds]
[23:33:42] -!- micges has quit [Ping timeout: 250 seconds]
[23:45:16] -!- [cube] has quit [Ping timeout: 240 seconds]
[23:46:01] -!- mutley has quit [Ping timeout: 264 seconds]
[23:49:11] -!- Akex has quit [Quit: Connection closed for inactivity]
[23:51:48] -!- anth0ny_ has quit [Quit: anth0ny_]
[23:57:17] -!- exitcode1 has quit [Quit: quit]