#emc | Logs for 2009-10-25

[10:43:04] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[10:45:11] <MarkusBec> MarkusBec is now known as MarkusBec_away
[10:50:32] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[11:26:57] <archivist_emc> * archivist_emc looks at a users email, and the g2 docs and thinks some doc improvement required
[11:36:56] <jymm> O_o
[11:38:48] <archivist_emc> I can see why the user has missed something...but I dont know what,
[11:39:26] <MattyMatt> anyone in driving distance of gloucester want a drill head for a quid?
[11:40:17] <archivist_emc> Im 70 miles north and waiting for an ebay buyer to give me his MONEY
[11:41:24] <MattyMatt> http://cgi.ebay.co.uk/Pillar-Drill-Head-and-Half-HP-Motor_W0QQitemZ200395785917
[11:51:22] <oPless> lol
[11:51:59] <oPless> 'meet half way for a few quid for diesel ' ... at £1.10/L it's pretty expensive these days!
[11:56:12] <jymm> oPless: Get off your ass and walk! =)
[11:57:09] <oPless> I'm a bit further than 70 miles away, hahaha ... probably 3-4 hours in the car :)
[11:57:21] <jymm> oPless: and your point is?
[11:58:12] <jymm> oPless: If yo start now, you'll be back before tuesday!
[11:59:47] <jymm> of NEXT week =)
[12:00:29] <oPless> according to google 1 day 20 hours to get there :)
[12:03:22] <oPless> (by foot)
[12:06:46] <jymm> oPless: You still HERE?! Get going already! Pack a sandwich or two and some too
[12:06:58] <jymm> s/too/water/
[13:01:24] <steve_stallings> steve_stallings is now known as steves_logging
[13:08:41] <MarkusBec> MarkusBec is now known as MarkusBec_away
[14:15:59] <i-pink> hii all
[14:16:47] <i-pink> someone here?
[14:17:00] <archivist> no
[14:17:16] <i-pink> no :( OMG
[14:17:30] <archivist> in ird just ask the question
[14:17:34] <archivist> irc
[14:17:42] <i-pink> mm ok
[14:17:59] <i-pink> how i translate cable LPT
[14:18:40] <archivist> translate?
[14:18:46] <i-pink> yes
[14:19:34] <i-pink> i have cable with 36 holes and i want to convert it to normal 25 pins
[14:20:45] <i-pink> and google hate me
[14:20:57] <archivist> that is not translation (language to language), its connection of pins to pins, I use ready made fully wired cables
[14:21:38] <i-pink> ok, but i cant find how to make the converting
[14:21:54] <i-pink> i mean electronic plans
[14:23:22] <archivist> http://www.physiol.ox.ac.uk/~trp/pinouts.html#9
[14:27:36] <i-pink> cool
[14:28:06] <i-pink> D0 - D7 is in/out
[14:28:38] <i-pink> how i make it input?
[14:30:04] <cradek> by programming the parallel port accordingly
[14:30:24] <cradek> or, if you mean when using hal, by telling the hal_parport module that you want them to be inputs
[14:30:32] <cradek> see the hal_parport manpage for that
[14:31:12] <i-pink> hal?
[14:31:19] <i-pink> what is it?
[14:31:27] <archivist> coding the epp port at low level....fun
[14:31:47] <archivist> i-pink, we assume you are using EMC in here
[14:32:31] <i-pink> mmm but i want to connect to it 8BIT bus of data
[14:33:46] <i-pink> is for the cnc
[14:35:59] <i-pink> archivist, ?
[14:38:34] <archivist> http://www.linuxcnc.org/docview/html//hal_intro.html
[14:43:33] <i-pink> archivist, ok, but this is only work on EMC
[14:43:55] <i-pink> but i want to do it on a normal 9.04 ubuntu
[14:48:49] <archivist> as I said we assume you are using EMC
[15:00:19] <i-pink> archivist, yes, ok, but is for my cmc
[15:00:22] <i-pink> cnc*
[15:04:50] <cradek> i-pink: your questions are not detailed enough for anyone to answer. If you are not using EMC you are probably asking in the wrong channel.
[15:05:05] <cradek> if you are using EMC, you need to explain A LOT more detail about what you are trying to do.
[15:05:32] <i-pink> what is the right channel.
[15:05:43] <cradek> can you see that "connect to 8 bit bus" "for my cnc" "on a normal Ubuntu" is not enough detail for someone to help?
[15:07:07] <archivist> maybe ##electronics
[15:07:37] <cradek> I can't even tell if you are asking a software/programming question or a hardware question
[15:09:57] <i-pink> mmm is question of how to programming the hardware on ubuntu
[15:11:35] <cradek> ok
[15:11:38] <cradek> start here: http://www.google.com/search?q=linux+parport
[15:11:57] <cradek> the second link looks good, it tells all about how to program the parallel port in linux
[15:12:40] <i-pink> ok
[15:13:05] <i-pink> this ? http://people.redhat.com/twaugh/parport/html/parportguide.html
[15:13:26] <cradek> yes I would start by reading that
[15:13:57] <cradek> sorry I don't know what channel is best - probably not ##electronics and probably not #emc
[15:14:13] <cradek> but as you research the problem using google and read more, maybe you will find a channel
[15:14:13] <celeron55_> i recommend this http://www.epanorama.net/circuits/parallel_output.html
[15:14:26] <celeron55_> there is C code for dos and linux
[15:14:45] <i-pink> C?
[15:14:47] <cradek> another good link
[15:14:55] <i-pink> what is C?
[15:14:58] <celeron55_> C, the programming language
[15:15:03] <celeron55_> don't you know what it is?
[15:15:04] <cradek> ouch
[15:16:01] <cradek> ok we're back to not knowing how to help - you said you were asking a programming question but you don't know what "C" is
[15:16:21] <cradek> bbl, time to find breakfast
[15:16:50] <celeron55_> tell 1) what you are trying to do and 2) with what tools are you trying to do it with
[15:17:09] <i-pink> i love python and ruby..
[15:17:24] <i-pink> i see this for ruby
[15:17:28] <celeron55_> so you want to make a program in python or ruby which controls the parallel port in linux?
[15:17:45] <i-pink> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/24605
[15:18:26] <i-pink> in this link i see how to write to the LPT
[15:18:43] <i-pink> but i need to read and write
[15:19:13] <archivist> go ask Ruby people
[15:20:07] <celeron55_> then you need to read from /dev/port, and if you want to read the data pins, you need to set them in input mode before that (read from one of the previous links how to do it)
[15:20:17] <i-pink> but in the ruby channel nobody know how to do it
[15:20:59] <celeron55_> i think it's quite trivial thing to do after you've read and understood the code in the page you linked
[15:21:31] <i-pink> if i make this "p = open('/dev/port', 'w')" and after that i replace the "w" with "r", i get error, the device is busy
[15:22:01] <celeron55_> you probably need to use "getc" instead of "putc"
[15:22:05] <celeron55_> for reading
[15:22:23] <celeron55_> hmm
[15:22:28] <celeron55_> are you running it as root?
[15:22:39] <i-pink> what is "getc" ?and "putc"?
[15:22:48] <i-pink> yes is on root
[15:22:50] <celeron55_> you did read this? http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/24605
[15:23:31] <celeron55_> but for the device busy error, hmm...
[15:25:37] <i-pink> yes..is look like i cant read and write in one program..
[15:26:07] <archivist> some thinking required
[15:26:24] <i-pink> thinking ?
[15:26:31] <archivist> yes
[15:26:32] <i-pink> what is thinking?
[15:27:02] <celeron55_> you could try "w+" or "r+" for read/write
[15:27:21] <i-pink> mmm i make wr
[15:27:28] <i-pink> do w+r?
[15:27:29] <celeron55_> wr is not a valid mode
[15:27:34] <archivist> you have to set the pins directions as well
[15:27:59] <i-pink> mmm yes but how..
[15:28:11] <archivist> writing code
[15:28:23] <celeron55_> we're not going to tell you everything
[15:28:49] <archivist> I will not read any ruby docs
[15:29:07] <celeron55_> i just read some ruby docs (which i have never done before) for the r+ and w+
[15:29:21] <celeron55_> and you should be super-thankful for that
[15:32:34] <i-pink> super-thankful ?
[15:33:02] <celeron55_> well... just forget it
[15:33:38] <i-pink> like that? p = open('/dev/port', 'r+w')?
[15:33:48] <Dave911> >>what is thinking?
[15:33:50] <Dave911> I think we have a language barrier problem and a knowledge problem here...
[15:33:52] <Dave911> i-pink.... I think you need to concentrate on a IRC that is dedicated to Ruby or Python... this is the wrong IRC for your questions.
[15:34:19] <i-pink> i get this error irb#1(main):001:0> p = open('/dev/port', 'r+w')
[15:34:19] <i-pink> ArgumentError: illegal access mode r+w
[15:34:19] <i-pink> from (irb#1):1:in `initialize'
[15:34:19] <i-pink> from (irb#1):1:in `open'
[15:34:19] <i-pink> from (irb#1):1
[15:34:21] <celeron55_> i-pink: i think you should find a good online dictionary
[15:34:25] <celeron55_> i use one, too
[15:35:03] <celeron55_> there is no such mode for open
[15:35:15] <archivist> I imagine r+w wont be supported in a simple driver
[15:35:18] <i-pink> i try now rw r+w r+w+ r+ w+
[15:35:23] <celeron55_> http://www.zenspider.com/Languages/Ruby/QuickRef.html#15
[15:35:28] <i-pink> and all this not work :(
[15:35:33] <tom3p> try #ruby-lang
[15:37:45] <celeron55_> archivist: the r/w mode of the port is controlled by setting the bit 5 in address 0x378+2
[15:38:33] <archivist> celeron55_, read OR not both as in epp modes
[15:38:56] <celeron55_> yes, 1 probably sets it for read-only and 0 to write-only
[15:39:17] <archivist> hence the illegal mode
[15:39:22] <celeron55_> no
[15:39:31] <archivist> cannot be both
[15:39:33] <celeron55_> he's not controlling or opening the port yet
[15:39:49] <celeron55_> that file is used for general controlling of all i/o ports
[15:39:54] <celeron55_> first he'd have to open the /dev/port device file for reading and writing and write the right value at position 0x378+2 in there and then doing something with the value at 0x378
[15:40:31] <tom3p> join #ruby-lang
[15:40:42] <celeron55_> you can do the same in c too, but in c you can use ioperm and inb and outb
[15:40:48] <celeron55_> which is easier
[15:41:34] <celeron55_> (i didn't even know of what is in /dev/port or what it does before now...)
[15:45:44] <tom3p> i-pink now in #ruby
[15:49:08] <i-pink> ?
[15:57:26] <i-pink> ok
[15:57:51] <i-pink> i reconnect and connect the cable
[15:58:12] <i-pink> and now this command is work
[15:58:16] <i-pink> irb(main):001:0> open('/dev/usb/lp0', 'a')
[15:58:16] <i-pink> => #<File:/dev/usb/lp0>
[15:58:16] <i-pink> irb(main):002:0>
[15:58:50] <i-pink> this is read and write??
[16:07:09] <archivist> we do not support ruby in here!
[16:20:22] <celeron55_> the problem here isn't ruby, it is that i-pink doesn't know what he's doing pretty much at all
[16:20:37] <celeron55_> trying 'a' in the mode parameter of 'open' proves it.
[16:21:27] <celeron55_> well, maybe not, but anyway
[16:41:13] <MarkusBec_away> MarkusBec_away is now known as MarkusBec
[17:36:29] <MrSunshine> hmm, the emc latency test thingie, is that supposed to test the realtimeness of the system and set delays so they match the worst case scenario? :)
[17:37:43] <celeron55_> isn't it actually hal's thingie.. well anyway, i guess you can measure the worst case scenario with it if you put some heavy applications on and see the largest delay over long time
[17:38:34] <celeron55_> some 3d rendering, network traffic, etc i guess is good
[17:39:05] <celeron55_> and try to make all possible power saving things go on and off that you can't switch off
[17:39:41] <celeron55_> things like that can sometimes make big unexpected delays
[17:41:11] <celeron55_> ah, you also asked if it sets delays
[17:41:27] <celeron55_> as far as i know it doesn't set anything
[17:41:59] <MrSunshine> k =)
[17:42:24] <DaViruz> it only measures, you have to set it yurself in stepconf
[17:42:45] <celeron55_> ...it depends on what delays we're talking about
[17:43:10] <celeron55_> i was tinking of something a lot lower-level
[17:44:52] <MrSunshine> now i wanna see osme money so i can order my freakin stepper stuffs! =)
[18:50:18] <EbiDK> EbiDK is now known as EbiDK|AWAY
[21:56:42] <gene> Hi guys. How do I make emc 2.3.2 visible as an update for 6.06LTS?
[21:57:39] <gene> adept isn't showing me anything but the installed 2.2.8
[21:58:25] <skunkworks> I think you have to change the repository to 2.3.. let me see - I think it is on the wiki.
[21:58:30] <archivist_emc> change the repositery iirc, there is a mention on the upgrading page
[21:59:19] <alex_joni> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?UpdatingTo2.3
[21:59:30] <skunkworks> http://wiki.linuxcnc.org/cgi-bin/emcinfo.pl?UpdatingTo2.3
[21:59:31] <alex_joni> "Because there are several minor incompatabilities between 2.2.8 and 2.3.x, your existing install will not automatically be updated to 2.3.x. If you want to run 2.3.x, change to the emc-2.3 repository by following these instructions:"
[21:59:33] <skunkworks> heh
[21:59:36] <alex_joni> skunkworks: kinda slow :P
[21:59:49] <skunkworks> sorry ;)
[22:00:13] <alex_joni> gene: latest is 2.3.3, but 2.3.4-1 is on it's way too
[22:00:29] <alex_joni> so don't get scared if it'll re-update the next day ;)
[22:00:41] <gene> I found whwre I casn change it, and 2.3.2 is coming in now.
[22:01:25] <gene> correction, 2.3.3 is coming in now.
[22:01:53] <gene> what changes do I need to make
[22:02:35] <gene> ahh, follow the lnk,, ok. Cancel that call for the guys in the white coats. :)
[22:49:15] <casainho> hello :-)
[22:50:29] <casainho> I am a new user (but now new to Linux) and I would like to know what program should I use to convert STL files to the ones used by EMC2. For now I started to learning designing on Blender.
[22:55:33] <skunkworks> you might want to go over to #cam and ask the question.
[23:00:39] <casainho> skunkworks: thanks ;-)
[23:57:11] <Neo_The_User> Hi all! I am currently generating an archlinux i686 package for rtai and emc :) it will most likely be done by tonight depending on compilation speeds