#linuxcnc-devel | Logs for 2012-09-26

Back
[00:05:26] -!- logger[mah] has quit [Remote host closed the connection]
[00:05:32] -!- logger[mah] [logger[mah]!~loggermah@ns1.mah.priv.at] has joined #linuxcnc-devel
[00:05:32] -!- logger[mah] has quit [Remote host closed the connection]
[00:05:38] -!- logger[mah] [logger[mah]!~loggermah@mail.mah.priv.at] has joined #linuxcnc-devel
[00:12:19] -!- rob_h has quit [Ping timeout: 246 seconds]
[00:15:31] -!- micges has quit [Quit: Leaving]
[00:19:11] -!- morfic has quit [Ping timeout: 245 seconds]
[00:34:08] -!- ve7it [ve7it!~LawrenceG@S0106001c10b7770f.pk.shawcable.net] has joined #linuxcnc-devel
[00:50:17] -!- mhaberler [mhaberler!~mhaberler@extern-183.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[01:21:17] -!- andypugh has quit [Quit: andypugh]
[01:45:33] -!- Yoshi47 has quit [Quit: Leaving]
[02:08:10] -!- broofa has quit [Quit: Computer has gone to sleep.]
[02:47:59] -!- phantoneD has quit []
[03:05:23] -!- Keknom has quit [Quit: Leaving.]
[03:22:52] -!- WillenCMD has quit [Ping timeout: 252 seconds]
[03:28:35] -!- jpk has quit [Ping timeout: 244 seconds]
[03:31:24] -!- mhaberler has quit [Quit: mhaberler]
[03:32:05] -!- zoursman has quit [Ping timeout: 245 seconds]
[03:48:57] -!- Snowman108 has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120905151427]]
[03:58:30] -!- tjb1 has quit [Read error: Connection reset by peer]
[04:07:55] -!- broofa has quit [Quit: Computer has gone to sleep.]
[04:07:58] -!- ve7it has quit [Remote host closed the connection]
[04:22:45] -!- Valen has quit [Quit: Leaving.]
[04:39:27] -!- vladimirek [vladimirek!~vladimire@95.105.250.72] has joined #linuxcnc-devel
[04:45:44] -!- WiillenCMdesign has quit [Ping timeout: 265 seconds]
[05:02:39] -!- Fox_Muldr has quit [Ping timeout: 265 seconds]
[05:06:53] -!- vladimirek has quit [Remote host closed the connection]
[05:13:58] -!- factor has quit [Read error: Connection reset by peer]
[05:15:30] -!- ve7it [ve7it!~LawrenceG@S0106001c10b7770f.pk.shawcable.net] has joined #linuxcnc-devel
[05:15:46] -!- ve7it has quit [Remote host closed the connection]
[05:27:54] -!- theos has quit [Ping timeout: 240 seconds]
[05:43:40] -!- Valen has quit [Quit: Leaving.]
[06:15:19] -!- dhoovie has quit [Ping timeout: 246 seconds]
[06:16:17] -!- dhoovie|2 has quit [Read error: Connection reset by peer]
[06:25:49] -!- dhoovie has quit [Ping timeout: 246 seconds]
[06:57:12] -!- archivist_herron has quit [Ping timeout: 265 seconds]
[07:11:30] Cylly2 is now known as Loetmichel
[07:34:00] -!- grummund has quit [Ping timeout: 244 seconds]
[07:47:53] -!- psha[work] [psha[work]!~psha@195.135.238.205] has joined #linuxcnc-devel
[08:07:31] -!- emel has quit [Excess Flood]
[08:09:09] -!- bengan has quit [Excess Flood]
[08:16:40] -!- zoursman has quit [Ping timeout: 245 seconds]
[08:39:39] -!- Adventsparky has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
[08:39:58] -!- archivist has quit [Quit: Leaving]
[08:41:03] -!- mhaberler [mhaberler!~mhaberler@extern-183.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[08:56:47] -!- odogono has quit [Ping timeout: 252 seconds]
[08:58:42] -!- rob_h [rob_h!~rob_h@027c035d.bb.sky.com] has joined #linuxcnc-devel
[09:03:25] -!- emel has quit [Excess Flood]
[09:12:53] toudi_ is now known as micges
[09:30:12] -!- gambakufu has quit []
[09:35:46] -!- draig has quit [Ping timeout: 252 seconds]
[09:40:51] -!- micges [micges!~toudi@egq108.neoplus.adsl.tpnet.pl] has joined #linuxcnc-devel
[09:50:18] -!- mhaberler has quit [Quit: mhaberler]
[09:56:50] -!- mhaberler [mhaberler!~mhaberler@extern-183.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[10:09:42] <jthornton> alex_jon1, if you get a chance the registration seems to be broken
[10:10:03] -!- sumpfralle has quit [Ping timeout: 265 seconds]
[10:15:47] <jthornton> it will just send you back to the registration page if you don't put something in every field
[10:35:18] <jthornton> alex_jon1, seems that the street is required even though it is not required!
[10:37:27] -!- mhaberler has quit [Quit: mhaberler]
[10:41:14] -!- mhaberler [mhaberler!~mhaberler@macbook.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[10:48:04] <jthornton> I think I got it fixeds
[10:48:07] <jthornton> fixed
[11:09:56] -!- selmer has quit [Quit: Leaving.]
[11:13:09] -!- mhaberler_ [mhaberler_!~mhaberler@macbook.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[11:15:42] -!- mhaberler has quit [Ping timeout: 264 seconds]
[11:15:42] mhaberler_ is now known as mhaberler
[11:53:58] -!- maximilian_h [maximilian_h!~bonsai@130.255.104.21] has joined #linuxcnc-devel
[11:57:40] -!- skunkworks__ has quit [Ping timeout: 248 seconds]
[12:28:51] -!- skunkworks [skunkworks!~skunkwork@68-115-41-210.static.eucl.wi.charter.com] has joined #linuxcnc-devel
[12:29:31] <mhaberler> whoa! Gene added a tracker entry!
[12:40:39] <skunkworks> :)
[13:09:14] -!- Valen has quit [Quit: Leaving.]
[13:16:18] -!- theos has quit [Disconnected by services]
[13:21:40] -!- Paul10185 has quit [Ping timeout: 245 seconds]
[13:27:06] -!- factor has quit [Ping timeout: 264 seconds]
[13:43:21] -!- morfic has quit [Ping timeout: 245 seconds]
[13:58:26] -!- psha[work] has quit [Quit: Lost terminal]
[14:06:09] -!- broofa has quit [Quit: Computer has gone to sleep.]
[14:23:32] -!- kb8wmc [kb8wmc!~chatzilla@nat.mtp.cmsinter.net] has joined #linuxcnc-devel
[14:28:13] -!- steves_logging [steves_logging!~Steve@wsip-70-168-134-18.dc.dc.cox.net] has parted #linuxcnc-devel
[14:33:43] -!- javisantana has quit [Ping timeout: 246 seconds]
[14:35:09] -!- steves_logging [steves_logging!~Steve@wsip-70-168-134-18.dc.dc.cox.net] has joined #linuxcnc-devel
[14:49:26] -!- mk0 has quit [Read error: Connection reset by peer]
[14:50:48] -!- phillipadsmith has quit [Read error: Connection reset by peer]
[15:06:23] -!- phillipadsmith has quit [Read error: Connection reset by peer]
[15:27:31] -!- paideia has quit [Quit: Leaving]
[15:38:36] -!- IchGuckLive has quit [Client Quit]
[15:45:07] -!- phillipadsmith has quit [Remote host closed the connection]
[15:53:30] -!- zzolo has quit [Ping timeout: 264 seconds]
[16:03:49] -!- tjb1 has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
[16:03:50] tjb1_ is now known as tjb1
[16:14:11] -!- scottman has quit [Ping timeout: 260 seconds]
[16:15:35] -!- scottman_ has quit [Ping timeout: 260 seconds]
[16:18:21] -!- mhaberler has quit [Ping timeout: 245 seconds]
[16:20:31] -!- br14 has quit [Quit: Changing server]
[16:37:26] -!- zzolo has quit [Ping timeout: 256 seconds]
[16:44:05] -!- djcoin has quit [Quit: WeeChat 0.3.7]
[16:45:13] -!- javisantana has quit [Remote host closed the connection]
[17:04:23] -!- factor has quit [Read error: Connection reset by peer]
[17:22:50] -!- scottman has quit [Quit: Konversation terminated!]
[17:32:17] -!- mhaberler [mhaberler!~mhaberler@extern-183.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[17:37:09] -!- phantoxe has quit []
[17:46:06] -!- tjb1 has quit [Quit: tjb1]
[17:48:13] -!- mhaberler has quit [Quit: mhaberler]
[17:56:36] -!- vladimirek [vladimirek!~vladimire@95.105.250.72] has joined #linuxcnc-devel
[17:58:22] -!- andypugh [andypugh!~andy2@cpc2-basl1-0-0-cust639.basl.cable.virginmedia.com] has joined #linuxcnc-devel
[18:01:56] -!- factor has quit [Ping timeout: 248 seconds]
[18:07:38] -!- IchGuckLive has quit [Quit: ChatZilla 0.9.87 [Firefox 14.0.1/20120713225625]]
[18:14:49] -!- mhaberler [mhaberler!~mhaberler@extern-183.stiwoll.mah.priv.at] has joined #linuxcnc-devel
[18:19:38] -!- syyl_ws has quit [Quit: Verlassend]
[18:20:56] <JT-Shop> andypugh: I found an issue with the linuxcnc.org registration and fixed it I think
[18:21:09] <andypugh> I saw a test message, was that you?
[18:21:17] <andypugh> What was the issue?
[18:22:24] <JT-Shop> if you didn't put something in the address field even though it was not required it just sent you back to a blank registration screen
[18:22:31] <JT-Shop> very frustrating to some
[18:22:44] <JT-Shop> yes that was me
[18:22:47] <andypugh> Yeah. I can see that would be annoying
[18:23:06] <JT-Shop> works as expected now
[18:23:43] <andypugh> Did you block that spammer too?
[18:27:06] -!- jthornton has quit [Ping timeout: 245 seconds]
[18:27:31] -!- JT-Shop has quit [Ping timeout: 245 seconds]
[18:41:20] -!- vladimirek has quit [Remote host closed the connection]
[18:41:56] -!- ve7it [ve7it!~LawrenceG@S0106001c10b7770f.pk.shawcable.net] has joined #linuxcnc-devel
[18:50:52] -!- kb8wmc has quit [Quit: ChatZilla 0.9.89 [Firefox 15.0.1/20120907230839]]
[18:51:13] -!- jthornton [jthornton!~john@184-63-140-99.cust.wildblue.net] has joined #linuxcnc-devel
[18:52:07] -!- JT-Shop [JT-Shop!~John@184-63-140-99.cust.wildblue.net] has joined #linuxcnc-devel
[18:52:46] <JT-Shop> dang thunderstorm...
[18:55:54] -!- gambakufu has quit []
[18:56:12] -!- broofa has quit [Quit: Computer has gone to sleep.]
[19:01:51] -!- joe9 [joe9!~joe9@c-24-126-150-243.hsd1.ga.comcast.net] has joined #linuxcnc-devel
[19:05:09] -!- ve7it has quit [Remote host closed the connection]
[19:08:30] -!- zzolo has quit [Ping timeout: 264 seconds]
[19:22:31] -!- zzolo has quit [Client Quit]
[19:26:31] -!- paideia has quit [Quit: Leaving]
[19:39:14] -!- morfic has quit [Ping timeout: 240 seconds]
[19:54:36] -!- maximilian_h has quit [Quit: Leaving.]
[20:06:21] -!- taiden has quit []
[20:06:55] -!- kb8wmc [kb8wmc!~chatzilla@nat.mtp.cmsinter.net] has joined #linuxcnc-devel
[20:16:18] -!- zzolo has quit [Ping timeout: 264 seconds]
[20:19:58] -!- broofa has quit [Quit: Computer has gone to sleep.]
[20:35:07] -!- DJ9DJ has quit [Quit: bye]
[20:39:25] -!- toastydeath has quit [Read error: Connection reset by peer]
[20:41:48] -!- vm3c has quit [Remote host closed the connection]
[20:42:36] -!- DaveM_ has quit [Client Quit]
[20:45:44] -!- tjb1 has quit [Read error: Operation timed out]
[20:55:56] -!- LatheBuilder has quit [Client Quit]
[20:58:28] <skunkworks> https://mail.rtai.org/pipermail/rtai/2012-September/025141.html
[21:02:22] -!- FinboySlick has quit [Quit: Leaving.]
[21:04:32] -!- servos4ever has quit [Quit: ChatZilla 0.9.85 [SeaMonkey 2.0.11/20101206162726]]
[21:27:48] -!- JT-Shop has quit [Ping timeout: 248 seconds]
[21:27:48] -!- jthornton has quit [Ping timeout: 248 seconds]
[21:32:08] -!- skunkworks has quit [Read error: Connection reset by peer]
[21:35:47] -!- jthornton [jthornton!~john@184-63-140-99.cust.wildblue.net] has joined #linuxcnc-devel
[21:35:50] -!- JT-Shop [JT-Shop!~John@184.63.140.99] has joined #linuxcnc-devel
[21:41:56] -!- odogono has quit [Quit: odogono]
[22:09:06] -!- cevad has quit [Ping timeout: 264 seconds]
[22:13:29] -!- tjb1 has quit [Quit: tjb1]
[22:20:44] <andypugh> Does the rtapi_string.h function set simply not support the %f specifier in sprintf?
[22:21:51] <andypugh> I can't see how it can omit is, as all rtapi_string.h appears to do is #include <linux/string.h>
[22:23:58] <micges> yes kernel mode printf doesn't support %f
[22:24:18] <andypugh> That's annoying
[22:24:59] <micges> what do you trying to do?
[22:25:03] <andypugh> So, after a week or more on this component, I have been wasting my time?
[22:25:54] <andypugh> I am trying to format hal_float_t HAL pins into text format to display on an LCD.
[22:28:59] <andypugh> Do you also happen to know if \n is parsed into byte values, or is it handled by the display code?
[22:29:21] <andypugh> (Because \n is making it through the conversion too)
[22:29:58] <micges> \n should chage to 0xA or simmilar
[22:34:20] <andypugh> No, my format string is printing as "LinuxCNC\nX position = %f\ndYposition =" (that's the output string from sprintf, and is identical to the format string.)
[22:35:03] <alex_jon1> so you see \n on the LCD?
[22:35:14] <andypugh> I actually see a Yen symbol
[22:35:37] <andypugh> "¥n" in fact
[22:35:46] <alex_jon1> well.. I don't think it will treat it as new line
[22:35:57] <alex_jon1> I haven't seen LCD's that do that
[22:36:12] alex_jon1 is now known as alex_joni
[22:36:39] -!- alex_joni has quit [Changing host]
[22:36:40] -!- alex_joni [alex_joni!~alex_joni@emc/board-of-directors/alexjoni] has joined #linuxcnc-devel
[22:36:40] -!- mode/#linuxcnc-devel [+v alex_joni] by ChanServ
[22:37:14] <andypugh> I have also tried \x0d\x0a (which matches the LCD scan codes, but they come through as normal too)
[22:39:01] <andypugh> It looks like I need to re-write sprintf from scratch?
[22:39:27] <micges> I think it should be gotoxy commad
[22:40:11] -!- sumpfralle has quit [Ping timeout: 265 seconds]
[22:40:14] <andypugh> I am writing via a 7i73, and that inserts a "terminal emulation" interface
[22:41:25] <alex_joni> try one of the working specifiers
[22:41:29] <alex_joni> %d or so
[22:41:33] <alex_joni> does that work?
[22:41:44] <andypugh> %i works as expected
[22:42:41] <alex_joni> hmm.. I think \n doesn't get converted by sprintf
[22:42:58] <alex_joni> it's still \n in the output string, so you can lateron printf or whatnot
[22:43:20] <micges> andypugh: goto 7i73 docs, page 12
[22:43:46] <andypugh> I have that page open
[22:44:00] <andypugh> Indicates that cr/lf ought to work
[22:44:22] <andypugh> %06x works perfectly as a format specifier.
[22:44:39] <andypugh> (6 hex digits appear on the screen)
[22:44:48] <micges> but it doesn't?
[22:44:55] <andypugh> It's frustrating to be so close
[22:45:14] -!- asdfasd has quit [Ping timeout: 240 seconds]
[22:45:15] <andypugh> I can't figure out how to get cr/lf into the string...
[22:46:39] <andypugh> The manpages say that \x0A\x0D ought to become the specified control characters, but they stay as that string literal
[22:47:34] -!- Komzpa has quit [Ping timeout: 260 seconds]
[22:49:39] <micges> ask Peter
[22:49:47] <micges> he's on emc
[22:50:37] <andypugh> The Mesa side works. If I can get the characters into the string, then the LCD works. It is getting the characters into the string that is the problem.
[22:51:03] <micges> I know
[22:51:53] <andypugh> (if I set the HAL pin that drives the LCD to 0x1A, then the screen clears, and 0x11 turns off the cursor.
[22:52:17] <andypugh> So I don't need a Mesa guru, I need a kernel guru
[22:52:19] -!- LatheBuilder has quit [Client Quit]
[22:52:19] <andypugh> :-)
[22:52:46] <micges> hehe
[22:53:21] <micges> so it seems that pin is controlling lcd not chars from string
[22:53:55] <micges> but probably you send data thru that pin?
[22:54:08] <andypugh> Yes. That is what my compoent does, it creates a string then sends it one char at a time to a HAL pin.
[22:54:49] <andypugh> So, loadrt lcd fmt_strings="hello %i worlds"
[22:55:03] <micges> so basically 0xA from string doesn't get to that pin?
[22:55:22] <andypugh> Will create one integer HAL pin lcd.00.page.00.arg.00
[22:55:47] <micges> (cool I'll happly test it)
[22:56:02] <andypugh> Then setting that pin to 4 will send the string "hello 4 worlds" to the lcd control pin.
[22:56:32] <andypugh> It works for ints, but not for escaped characters or string formats
[22:57:07] <andypugh> So it looks like I will need to rewrite a sprintf-like function from scratch :-(
[22:57:32] <micges> can I take a look at code?
[22:58:22] <andypugh> http://pastebin.com/s6a85jtF
[22:58:54] <andypugh> (Scruffy, has unused vars, contains debug lines)
[22:59:59] <andypugh> And, very nearly all of it is now useless.
[23:00:47] <andypugh> (there is no point splitting up into separate single-format chunks if sprintf and friends simply won't work)
[23:01:05] -!- frallzor has quit []
[23:05:44] <micges> should work
[23:07:25] -!- syyl has quit [Quit: Leaving]
[23:07:37] -!- jpk has quit [Ping timeout: 244 seconds]
[23:08:06] <andypugh> What should work?
[23:08:39] <micges> comp
[23:09:01] <micges> when you directly assing 1A it works
[23:09:14] <micges> when you assing chars from buffer it doesn't
[23:09:17] <andypugh> Well, it does to an extent, except that escaped characters and floats are not handles
[23:09:41] <alex_joni> andypugh: http://pastebin.com/w2TYu0ZK
[23:10:01] <andypugh> Passing chars from a buffer is fine too, as long as they get into the buffer from sprintf
[23:10:33] <micges> I was looking for example of that code :)
[23:12:08] <andypugh> I guess that is the sort of thing I would need to put into my homebrew sprintf code
[23:12:52] <andypugh> I thought this would be quick and fun. It has not been quick and it has stopped being fun now I have to write my own set of C string-handling functions
[23:13:26] <andypugh> There isn't even a manpage for printk !
[23:14:07] <andypugh> So I don't even know what the kernel-mode string functions are meant to be capable of.
[23:14:25] <andypugh> Sorry. I am ranting at the wrong people.
[23:14:55] -!- toudi_ [toudi_!~toudi@djj134.neoplus.adsl.tpnet.pl] has joined #linuxcnc-devel
[23:16:45] <andypugh> Oddly, there is a printk manpage in French on the internet. That mentions the lack of float, but is silent on whether escaped characters should work.
[23:18:28] -!- micges has quit [Ping timeout: 244 seconds]
[23:18:44] toudi_ is now known as micges
[23:18:46] -!- Loetmichel has quit [Ping timeout: 245 seconds]
[23:19:07] <andypugh> So, does this seem like a sensible way to re-write the code?
[23:19:39] <andypugh> hop through the format string one char at a time. if it is not % or \ then just send it to the LCD.
[23:20:00] <micges> yes
[23:20:14] <andypugh> If it is \ then look at the next char and send control chars
[23:20:39] <micges> all printf's are basically on that algorithm
[23:21:11] <micges> and a tons of red tape
[23:21:18] <andypugh> Actually, I need to write to a buffer, as \ and % create more than one char.
[23:21:23] -!- L33TG33KG34R has quit [Ping timeout: 252 seconds]
[23:21:34] <andypugh> So, if the buffer is empty, read a char.. (And so on)
[23:22:11] <andypugh> Seems manageable.
[23:22:22] Cylly2 is now known as Loetmichel
[23:22:29] <micges> http://code.google.com/p/format/
[23:23:27] <micges> http://www.sparetimelabs.com/tinyprintf/index.html
[23:23:39] <micges> these should get you to idea
[23:23:46] <andypugh> "format" can't handle float either..
[23:27:33] <andypugh> and neither does tinyprintf. So I need to write my own anyway (especially as I probably want an erase-to-end after each \n for example)
[23:31:23] -!- rob_h has quit [Ping timeout: 244 seconds]
[23:46:30] -!- skunkworks [skunkworks!~skunkwork@str-broadband-ccmts-ws-26.dsl.airstreamcomm.net] has joined #linuxcnc-devel
[23:50:18] -!- Valen has quit [Client Quit]