#linuxcnc-devel Logs
Mar 29 2017
#linuxcnc-devel Calendar
09:41 AM skunkworks: hmm - pretty sure there was logs yesterday...
09:43 AM archivist: strange idea of a day period from now
01:30 PM IchGucksLive: hi all i did "implement" the G51 Gcode scale with only 2 lines as M151
01:30 PM IchGucksLive: where p is the Scale factor
01:31 PM IchGucksLive: as lots of people taking on more Featuers is there a plan for implementing DXF2gcode or grecode
01:31 PM IchGucksLive: gussing and answering so many youtube reviewws on this
01:32 PM IchGucksLive: i know that it only 2min work
01:32 PM IchGucksLive: but there are lots of hobbyists out and do not work eighter on linux then on terminal
01:33 PM IchGucksLive: #!/bin/bash
01:33 PM IchGucksLive: scalefactor=$1
01:33 PM IchGucksLive: /home/sammel/linuxcnc/grecode/grecode -scale $scalefactor /home/sammel/linuxcnc/nc_files/N7000.ngc -o /home/sammel/linuxcnc/nc_files/N7000_scaled.ngc
01:33 PM IchGucksLive: axis-remote /home/sammel/linuxcnc/nc_files/N7000_scaled.ngc
01:33 PM IchGucksLive: axis-remote --reload &
01:33 PM IchGucksLive: exit 0
01:33 PM IchGucksLive: THATS the M151
01:34 PM IchGucksLive: full path to grecode
01:34 PM IchGucksLive: to the file load
01:34 PM IchGucksLive: to the file save
01:34 PM IchGucksLive: workes fine
01:35 PM IchGucksLive: i think there is also a mutch better way to grep the filename also
01:35 PM IchGucksLive: from hal
03:12 PM jasen_: hi , haw to read and write to the pins in the hal from external program?
03:12 PM cradek: generally, make a hal component that has its own pins, and connect them
03:12 PM jasen_: i have sserial units
03:13 PM jasen_: the pins appear automaticaly , but i need to read then , and write them
05:55 PM andypugh: Have I just found a bug in the smart-serial driver?
05:56 PM andypugh: https://github.com/LinuxCNC/linuxcnc/blob/af15a4d90e1d51d5309db65fe1c9511e486df411/src/hal/drivers/mesa-hostmot2/sserial.c#L172
05:56 PM andypugh: I think bith those checks might be wrong.
05:58 PM andypugh: I think that the “<0” in lines 172 and 176 are a mistake.
06:26 PM andypugh: Does anyone who has coded in C this year agree?
06:26 PM jepler: andypugh: in some places a failure is denied by a negated errno value e.g. -EINVAL, similar to the practice in the Linux kernel. success is denied by non negative numbers. but I didn't look at those functions that are called to verify what return value practice they follow.
06:27 PM andypugh: They return -EINVAL typically
06:28 PM andypugh: But I think that “function() <0 “ will always return 1 or 0? so never < 0 ?
06:33 PM andypugh: jepler: I found that when trying to track down why hm2_eth isn’t working for me: http://www.pastebin.ca/3788287
06:33 PM andypugh: Looking for silent errors..
06:36 PM andypugh: Is that -11 in the paste one of the -EAGAIN in hm2_eth I wonder..
06:58 PM andypugh: pcw_home: Anything here look suspicious? http://www.pastebin.ca/3788287 ?
07:02 PM pcw_mesa: not much to go on
07:02 PM andypugh: Indeed, that is what has me a little stumped.
07:02 PM andypugh: Clearly the 7i80 is there, and is talking, etc
07:03 PM andypugh: Maybe worth trying a newer firmware? I think this is a 7i80 you gave me in Wichita
07:03 PM pcw_mesa: does look like really old sserial firmware (which is probably not the issue but the just as old Ethernet firmware may be a problem)
07:04 PM pcw_mesa: Yes it probably has ancient firmware
07:05 PM pcw_mesa: very likely some missing lbp16 register/function
07:09 PM andypugh: let me try new firmware then
07:09 PM andypugh: wgetting as we speak
07:10 PM andypugh: Though I seem to recall that Debian can’t, by default, expand a zip file.
07:10 PM pcw_mesa: I think I have seen this a couple years ago (especially if people try the on-card firmware which may be quite old)
07:11 PM pcw_mesa: if thats true I probably apt-got unzip first thing
07:11 PM andypugh: I might be wrong, it unzipped easily
07:15 PM andypugh: do I want to “write” or “program” the FPGA?
07:15 PM pcw_mesa: write
07:15 PM andypugh: Good
07:15 PM pcw_mesa: make sure you have the correct DB/HD type and correct size
07:16 PM andypugh: And it worked :-)
07:17 PM pcw_mesa: mesaflash worked or linuxcnc worked?
07:17 PM andypugh: Well, hm2_eth loaded and gave me a bunch of pins
07:18 PM pcw_mesa: yeah just old firmware missing some needed feature
07:19 PM andypugh: Not seeing the 7i76. Does the 7i80 need the sserial channels explicitly enabling?
07:19 PM pcw_mesa: probably the hm2_eth driver should look at the Ethernet firmware revision and bellyache if not recent enough
07:20 PM pcw_mesa: no, except for sserial ports >0
07:20 PM pcw_mesa: as far as I know hm2_eth is identical to hm2_pci sserial wise
07:21 PM pcw_mesa: you do need 7I76 5V ( requires proper 7I80 and 7I76 jumpering ) and 7I76 field power
07:24 PM andypugh: Ah, yes, 7i76 field power!
07:24 PM andypugh: How many times have I told other folk that?
07:24 PM andypugh: It’s seeing the 7i69
07:25 PM andypugh: I am using a 7i80 and 7i76 all to get a single sserial channel to play with the STMBL
07:26 PM andypugh: I have a 6i25 and a long-PCI motherboard...
07:34 PM pcw_mesa: the nice thing about the Ethernet cards is that they are more CPU agnostic
07:36 PM andypugh: I suppose so.
07:48 PM pcw_mesa: and you can run them from a laptop
07:48 PM andypugh: Not from my laptop :-)
07:49 PM andypugh: (No ethernet connector)