tomp is now known as tomp3
are there tutorials for heekscad?
some in the wiki on code.google
LawrenceG: Mmmmm PURPLE http://dealextreme.com/details.dx/sku.18559
LawrenceG: Ohhhhhhh BLUE http://dealextreme.com/details.dx/sku.12806
roh: i cant see any, i looked and i searched 'example' 'sample' 'tutor' tutorial' 'howto'... all ng. what did you find?
its still in its beginnings, but yet a bit useable
i added ubuntu 8.10 .deb packages to try which work well for me
danielw is now known as Guest35259
hi, i dont know if anyone can help me, i'm a windows guy. i have spent days trying to figure this out on my own, but i cannot understand how to get the mesa 5i20 board working with emc2
that is a very generic question
i have 3 stepper drivers that i want to connect to it, using a 7142ta breakout board
well i'm trying to understand the hostmot2 install
tell us what you did, and what isn't working
there are a lot of steps in setting something like this up (just like there are a lot of steps in building a CNC machine in the first place)
well i cant figure out the command stuff to install the firmware
i am COMPLETELY new to linux
have you ever used DOS?
in other words, are you old? ;-)
i've tried searching, but everything i found assumes that i have some sort of knolege on the subject to begin with
have you ever used DOS?
haha no, i'm 27, and no i havent used DOS
windows has produced an entire generation of people for whom the command line is a mystery
yea, unfortunately i didnt get into computers till i was already in my 20's
* roh did his homework on command lines , so will prolly not be very helpful
Guest35259: are you on your EMC Linux PC right now? or are you talking to us from a windows box?
windows, but i have a emc2 box right next to me, running
is the EMC2 box on the network?
havent figured how to get it on the network yet either
but may not need to
you stick an ethernet cable in the back
IMO, a Linux computer that isn't hooked to the net is only half a computer
* roh humms and doesnt want to know how many >1kw spindles are connected to the web with badly condfigured and secured linux installs... or even whats out there in win32 *shiver*
all the free software comes from the net, the docs are on the net, the people who can help you are on the net
yea, done that, i cannt get it to work with my windows network, which has the internet connection
in generic: if you are not sure: put it behind some nat (e.g. some openwrt router)
when you say "windows network", what do you mean?
i can run a cat5 to the wireless router, but i was trying to figure out to use a network hub with it
a hub is just a way to turn one cat5 into more than one cat5
allows for updates, easy updates/install and protects from 'open ports'/bad passwords
if the router has a spare connector you shouldn't need the hub
i wanted it wired to my laptop so i can share files and use the laptop's wireless connection
connecting a linux PC to a windows PC is not emc specific, the internet can probably tell you how
in generic the #'lan' pots and the wifi are in the same 'domain' and ipspace. the 'wan' is 'the outside ip'
thankfully I don't have to deal with that
(no windows PCs here)
just use a openwrt device or some other plastics for that... e.g. a fritzbox
yea, i'm not too concerned with the network stuff yet, i mainly came here for emc help
also saves power (only uses 5-15W)
ideally the linux PC is connected directly to the router, it can deal with the internet better than windows can
yeah, sorry about the digression to networking
but life is a lot easier if you can paste error messages, etc
lol no prob, i mean, i appreciate the help, i just didnt wanna bother you guys with that stuff because i can usually figure it out eventually
in other words, if you are talking to me from your linux PC instead of switching keyboards all the time
anyway, lets take a stab at it
i can run the cat5 to the router
on the linux PC, open a shell (do you know how to do that?)
yep, now that you told me what a shell is lol
I'm on ubuntu 6.06, I bet you are on 8.04, so some of the GUI menus and such might not be the same
most of my problem is the terminology
roh: thanks for the packages, do you think they'd run on the standard 8.04 that emc2 uses?
the shell (aka command line) will be pretty consistant
yea, i got it open now
so, you opened the shell/terminal/command line, and you have a prompt
tomp3 could be. you would need the opencascade stuff
back in the dos days, "dir" was the command to list files in a directory - the linux version is "ls"
does anyone know what the "lgain" channel does on linux mixers
type ls and hit enter, you should get a list of files
tomp3 they are compiled on 8.10 i386 so i can only be sure for that
Guest35259: still with me?
we all have 8.10 or so on out notebooks and 8.04 only on servers and the mill-machine
yea, i got a list of directories
desktop documents, ect
now a very important linux command:
stands for "manual page"
type "man ls", and hit enter
helps finding stuff man knows about
roh: yeah, in due time ;-)
Guest35259: so you've seen the man page for "ls"
you can hit "q" to get back to the prompt
you can call me dan if it's easier
it's not - I type "gue" and hit tab, and the IRC client completes the name
tomp3 is now known as DanIfItsEasier
that's called "tab completion" and many linux programs do it
DanIfItsEasier is now known as tomp3
ok, now lets get to something EMC2 related
"man hostmot2" will show you the manual page for the hostmot driver
"man hm2_pci" will show you another related man page
see this is where i got stuck
actually, lets back up
there is a sample stepper configuration for hm2
you should probably start with that one
right... i guess where i have part of the problem is, i dont know if i'm supposed to be installing something for the 5i20
you should start with the included sample config
yea, i found that earlier
what happens if you just try starting EMC - do it from the command line - type "emc" and hit enter
it should pop up a window with a list of sample configurations
pick the hm2-stepper/5i20 one
and i've tried messing with the 5i20 one
I _think_ it should ask you if you want to copy it to your home directory
if so, say yes - that will make a copy of the sample, so you can modify it later
i dont see where it says that anywhere
(the copy/home directory thing)
i just cicked on the 5i20 and hit ok, then it opened emc2 axis
I don't either, but that is because I don't have a normal EMC install on this computer - I have a development install that I compiled myself
hes not running rip
ok, if it opened axis, then a lot of stuff is already working
tomp3: I know
if you are seeing the axis window, then 1) the driver is loading, and finding the card, 2) the firmware is getting loaded, 3) all the hal pins and signals are getting connected, and 4) the rest of EMC is starting up
so, what is the actual problem?
well i guess most of it was i was unsure of that.. i wasnt sure if i had to install drivers, ect. the instructions i found told me to load the firmware, and all this other stuff, so i just diodnt know what i had to do because it appeared that there was stuff already installed (which i didnt knowingly do)
sample configurations do a lot of stuff for you
the instructions were probably assuming you are starting from scratch
that's what had me really confused
starting from scratch is very flexible and powerfull, but not a good idea for a linux newbid
i guess the thing to figure out now is pin configuration
first thing is to make sure you have a copy of the sample config, so you can edit it
the original sample is read-only
look at the shell where you started EMC
oh ok.. i think i saw that earlier
you might have to scroll back a few lines
a line or two after the place where you typed "emc", you'll see something like this:
EMC2 - 2.4.0~pre
Machine configuration directory is '/home/jmkasunich/emcdev/emc2head/configs/hm2-servo'
Machine configuration file is '5i20.ini'
if the "machine configuration directory" starts with /home/(your-linux-username), then you have a personal copy of the sample, and all is good
this is where I'd normally ask you to paste those lines from your shell window, so I could interpret them
give me one second
hmm guess i'm not doing something right
ok got it
opps guess it didnt like that
danielw: are you the former Guest35259?
danielw is now known as Guest76920
still on windows?
but i saved the text to my flash and i have it on the windows system
ok (I thought maybe since it came in with a username you were using a linux chat)
and you tried to paste a bunch of text to IRC?
no, i got booted for posting the text because i guess it was too long
it said: Guest35259 has quit (Excess Flood)
you can usually post a half-dozen lines or so
any more than that, and it is better to post it somewhere and link to it
there is a website called pastebin.ca that is very handy for that
ok lemme try that
[03:22:12] <Guest76920> http://pastebin.ca/1417972
oh, these are your config files
man that's a handy site
you are actually ahead of where I thought you were - you read the screen output, figured out where your files are, and posted copies - great ;-)
actually, you posted "file" (1)
you posted the "ini" file, which is the main part of the config
i've spent days trying to figure this out on my own lol
but it refers to others, and the pinout info is in one of those
to be honest, I'm not really up on the hostmot2 config details
i can understand a bit of it
if you can ask more specific questions it might be easier to home in on what you need to do
what exactly would you like to change?
well i guess this is probably a stupid question, but can i just change the text in that file and it will change the config?
that's what is throwing me off... i'm so used to not being able to do that
yes - the contents of that file (and a couple others) tell EMC exactly what it should do when it starts
the manual explains the various sections of the file
some are a bit obscure, some are obvious
yea, most of which i guess i can figure out
the thing i've been stumped on is configuring the pins on the 5i20
there are a couple other files you'll need to look at
one is the hal file
line 99 of the ini file (see the pastebin for a numbered version) tells you what hal file is being used
ok, i got it open
it should look a lot like: http://pastebin.ca/1417974
lets refer to mine on pastebin - the line numbers make it easier to talk
line 41 loads the driver
the [HOSTMOT2](DRIVER) syntax gets values from the ini file
the first 4 lines of the ini file are the [HOSTMOT2] section
and DRIVER is hm2_pci
and CONFIG is "firmware=hm2/5i20/SVST8_4.BIT num_encoders=0 num_pwmgens=0 num_stepgens=3"
wow thats what i've been trying to ppen all day lol
so line 41 winds up being: "loadrt hm2_pci config=firmware=hm2/5i20/SVST8_4.BIT num_encoders=0 num_pwmgens=0 num_stepgens=3
the remainder of the HAL file does a lot of setup stuff, but it mostly gets its info from the ini file
setp hm2_[HOSTMOT2](BOARD).0.stepgen.00.dirsetup [AXIS_0]DIRSETUP
that sets a driver parameter, but it uses the DIRSETUP value from the [AXIS_0] section of the ini file
so you don't need to modify the hal file, just the ini file
none of this stuff directly affects pinouts though
yea, i didnt see anything pertaining to it in there
the hostmot2 driver actually generates a list of its pins when you load it
but you gotta know where to look to find it
to keep things simple, just follow along:
first, exit from axis (File->Quit)
in your shell, you should be back to a prompt
at the prompt, type "sudo dmesg -c"
that will spew a lot of stuff at you - ignore it
the spew was a long list of log messages, possibly going all the way back to when you started the computer
the "-c" on the command said "print the log, and then clear it"
so we got rid of all that confusing crap
now, start emc again (type "emc", hit enter, then choose the 5i20 stepper config)
let me know once Axis is showing on your screen
while EMC was starting up, the hostmot2 driver printed a list of its pins to the system log
so, you need to look at the log
open another shell (Applications->Accessories->Terminal)
in that shell, type "dmesg"
you'll get another spew of stuff
but now it is only stuff that happened since you did the "dmesg -c" a few minutes ago - 99.99% of it will be from when you started EMC
if you scroll back in there you should find a listing of your 5i20 pins
I don't have a 5i20 card here, so I'm not sure exactly what it will look like
dmesg | grep blah
yea, got it
if you want to save a copy of that, you can do "dmesg >any_file_name"
the ">" sends the stuff to the file instead of the screen
then you can open that file with an editor, print it, pastebin it, whatever
ok, got it copied and saved
you're doing quite well for a linux newbie
thank you, you've deffinately made alot of sense of everything i've read
glad I could help
don't know about where you are, but midnight's coming fast here - goodnight, and good luck
california, goodnight, and thanks a bunch
man this is gunna be a much longer project that i anticipated
DanielFalck: yeah... why?
DanielFalck: well, its about a two hour drive to portland from here...
WalterN: I'm in Beaverton
WalterN, hey Walter
DanielFalck, I am in corvallis
the nightmare that keeps coming back!
you know it :-)
[09:20:01] <alex_joni> http://www.debianadmin.com/how-to-add-date-and-time-to-your-bash-history-file.html
Guest95524 is now known as Roguish
Hi all. I want to add a 4th axis (rotational) to my homecnc to make a cane for gf of mine. All that involves is the setup, a motor/driver and index pulse, correct?
aside from the software setup that is
BigJohnT_ is now known as BigJohnT
does anybody know what would cause iwconfig to not associate with an open AP that shows up in the scan results
mac address filtering on the AP perhaps?
although then it wouldnt be open i spose
is iwconfig showing the interface as 'managed' ?
and essid set as per the AP
i've tried it both ways
setting essid and setting ap
both do not work
strange, what channel is the AP on? not >11
ah ok so should be fine with any region
and the actual wlan0 or whatever is 'up' with ifconfig wlan0 up
i've had problems before where i've had to down the IF, up it again, then iwconfig
i'll try taking it down
this is the weirdest problem i've ever had, wireless works great everywhere but with this AP
presumably when u do iwconfig wlan0 mode managed, there is no error
any logging on the AP u can look at
how about iwconfig wlan0 rate 2M
just to drop the bit rate down a little, is the AP far away?
the ap is very close
signal strength shows at 89%
anything in var/log/messages
or dmesg ?
May 10 16:54:42 yhellothar kernel: [ 771.513747] ADDRCONF(NETDEV_UP): eth0: link is not ready
same in dmesg
what i don't understand is why it works perfectly everywhere BUT here, even if i leave the laptop on and drive to someone else's house
but as soon as i come back, pow, no dice
u got other PC's connecting to this AP
all windows boxes, though.
and there's no logging on the ap
what wireless chipset?
and iwlist scan sees the AP?
laptop i take it?
indeed, dell 700m
there is no button on it to 'enable wireless' ?
tx-power is 16 dbm
so the radio is on
i can turn the radio off via button, tx-power drops to 0
ah ok so it sounds like the card isup
that's what it is, yes
hmm that is certainly strange then
yeah, it's the weirdest thing i've seen
i'm so confused I'm about to try disconnecting the ethernet line to see if that's somehow messing with it
is it out of dhcp addresses? you could try a static ip config
u are positive eth0 isnt the wired ethernet?
i can't send dhcp requests before the radio associates
and yes, eth0 is wireless, eth1 is wired
lo no wireless extensions.
eth1 no wireless extensions.
eth0 unassociated ESSID:"rabassa" Nickname:"ipw2100"
so it might be worth just trying to down eth0, rmmod ipw2000, modprobe ipw2000, ifconfig eth0 up, iwconfig blah
just in case there is some driver funny
shuts down, comes up clean
anything in messages or dmesg
[ 1572.760420] ipw2100 0000:02:01.0: PCI INT A disabled
[ 1577.239052] ipw2100: Intel(R) PRO/Wireless 2100 Network Driver, git-1.2.2
[ 1577.239057] ipw2100: Copyright(c) 2003-2006 Intel Corporation
[ 1577.240482] ipw2100 0000:02:01.0: PCI INT A -> Link[LNKE] -> GSI 10 (level, low) -> IRQ 10
[ 1577.241146] ipw2100: Detected Intel PRO/Wireless 2100 Network Connection
[ 1577.241157] eth0 (ipw2100): not using net_device_ops yet
[ 1577.241162] ipw2100 0000:02:01.0: firmware: requesting ipw2100-1.3.fw
[ 1588.641730] ADDRCONF(NETDEV_UP): eth0: link is not ready
using a recent ish version of wireless-tools for iwconfig etc?
as recent as debian unstable has in the packages
so pretty recent, this is odd
got a length of cat5 handy?
i am on the offending lappy right now
it's plugged in via wire
can u cat /sys/bus/pci/drivers/ipw2100/*/rf_kill ?
0 = RF kill not enabled (radio on)
this AP has had other weird issues before
i'm not sure it's ever been flashed, but i'm hesitant to do so
(As it's not mine)
try ifconfig eth0 down, rmmod ipw2100, then modprobe ipw2100 associate=1
then ifconfig eth0 up, iwconfig blah etc
dice holding at "no"
is the AP B/G ?
try setting to B only?
on the AP?
but it does show up with only the b rates on scan
thats very strange, there has to be a simple answer, what make of AP is it?
linksys, lemme see if the model is somewhere on the conf page
yeah they are good devices
and usually support everything
this one had an issue awhile back where the linksys itself would block outbound port 53 replies to dns requests
like, i set it up in a loop on the same box, and you could funnel stuff on 53 through it, and it just wouldn't come out the other end
it's just been weird
hmm yeah it is irritating that it doesnt work
wpa supplicant gives a little more verbosity, it says "association attempt failed"
or similar verbage
u are using WPA on it?
phew ok good
haha, almost gave you a heart attack, sorry
i'd be inclined to get another machine, run a wlan card in promiscous mode with wireshark and watch what happens when it associates or trys to
i tried to read the emc dev notes pdf on ubuntu ..
cant read the diagrams, switched to windows and adobe 8,
very clear pictures but labels are truncated (eg 1st diagram... motor-pos-cmd -> Outp to H)
any fixes so pdf is legible?
tomp is now known as tomp3
in TP_STRUCT, are the id's always sequential? ( int nextId )
in usrmotintf there is a printTPstruct. Is there an emc cmd line switch to call this for every queued motion?
well it aint emc -d
and it aint emc -v
those are the only 2 cmd line switches listed by 'man emc'