I am reading the datasheet for the driver
[00:00:18] <andypugh> http://snebulos.mit.edu/projects/voila/docs/datasheets/Oxford_QuadUART.pdf
And that seems to hint that the EPP ports will be the 8bit ones. The 32-bit one is the serial ports
Was there any documentation with the card? A driver CD?
Only windows drivers
theorb is now known as theorbtwo
You could also try each of the addresses and address + 0x400 for the high address, in case the hogh address is not being found.
ok I'll give it a go!
What did 0xd400 0xd480 and epp_wide off give you?
did'nt work andypugh
In what way didn't it work, though?
And don't the docs on the CD tell you anything?
PARPORT: ERROR: request_region(0xd480) failed | PARPORT: ERROR: request_region(0x400) failed
Err, you missed out the "d" again
god dam it may have worked...
halcmd: loadrt hm2_7i43 ioaddr=0xd480 ioaddr_hi=0xd400 epp_wide=0 config="firmware=hm2/7i43/SVST4_4B.BIT num_encoders=2 num_pwmgens=1 num_stepgens=4"
Oct 23 01:13:32 emc kernel: [ 5203.338244] hm2/hm2_7i43.0: IO Pin 042 (P3-37): StepGen #3, pin Step (Output)
Oct 23 01:13:32 emc kernel: [ 5203.338249] hm2/hm2_7i43.0: IO Pin 043 (P3-39): StepGen #3, pin Direction (Output)
Oct 23 01:13:32 emc kernel: [ 5203.338252] hm2/hm2_7i43.0: IO Pin 044 (P3-41): IOPort
Oct 23 01:13:32 emc kernel: [ 5203.338256] hm2/hm2_7i43.0: IO Pin 045 (P3-43): IOPort
Oct 23 01:13:32 emc kernel: [ 5203.338259] hm2/hm2_7i43.0: IO Pin 046 (P3-45): IOPort
Oct 23 01:13:32 emc kernel: [ 5203.338263] hm2/hm2_7i43.0: IO Pin 047 (P3-47): IOPort
Oct 23 01:13:32 emc kernel: [ 5203.338308] hm2/hm2_7i43.0: registered
Oct 23 01:13:32 emc kernel: [ 5203.338312] hm2_7i43.0: board at (ioaddr=0xD480, ioaddr_hi=0x0000, epp_wide OFF) found
That seems insane though, the hi address is below the low address
But that does look to have worked
The init and done light have switched off
Still in halcmd?
yeah but strange... Yes with halcmd.
tab-completion should help with tis
ioaddr_hi=0x0000 but specified ioaddr_hi=0xd400 ?
setp hm2_7i43.0.led.0. 1
(or something like that)
You should be able to control the on-card leds
(assuming the led driver is included in the emc2 release you have)
Actually, type show pin to see
lots of output
Any with "LED" in the name?
hm2_7i43.0.led.CR01 for example?
no, have encoder, gpio, pwmgen, stepgen and watchdog.
OK, I wasn't sure if that module had made it into the 2.4 branch yet
I ma using the 10.04 2.4 release
can I get it through git?
You have a multimeter?
It's in the yard! What could I do with it?
You could turn io pins on and off
And see if the multimeter sees them
Though you need the realtime threads running for that
oh right and measure it with the multimeter
I think you need to copy that config line into the INI file, and try starting EMC2 normally
I may have a logic probe here
what will the epp_wide=0 do to functionality the default=1 ?
It will make it a little slower than it would be. You can try it with it on to see if it works that way too.
You would need to unloadrt the 7i43 first, I think
It's a no go with epp_wide=1
I got that impression from Googling
try again with "enable_raw" in the config file.
(config string, I mean, and with epp_wide off)
Actually, scratch that
add "enable_raw" to the config string in the iNI file, and then start emc2 in the normal way
andypugh: I just started emc with the updated config and I got a message Parport: linux parport parport1 does not support mode 4... continuing anyway
andypugh: so enable_raw with default epp_wide=1?
No, with epp_wide off
does this look of? loadrt [HOSTMOT2](DRIVER) ioaddr=0xd480 ioaddr_hi=0xd400 epp_wide=0 config="firmware=hm2/7i43/SVST4_4B.BIT enable_raw num_encoders=2 num_pwmgens=1 num_stepgens=4"
that did not work. BTW the done and init leds remain off do I need to reset the board?
That is in the HAL file?
The LEDs stay off once the board has a valid firmware
In what way did it not work?
what does dmesg say?
Oh I see... not like the pluto that reprograms every time it is started.
hm2: loading Mesa HostMot2 driver version 0.15
Oct 23 01:40:50 emc kernel: [ 6841.942035] hm2: unloading
pastebin it? Or was that really all it said?
There was more... pasting now.
[00:43:27] <paragon-wkshop> http://pastebin.ca/1970450
That's very odd
Start emc from the comand line, maybe the error went to stdio not dmesg
(just type "emc")
bash -x emc might give you more output too
andypugh: I put the enable_raw at the end of the config line and emc has started but with ->
PARPORT: linux parport parport1 does not support mode 4.
PARPORT: continuing anyway.
Axis is up.
machine -> show hal configuration
Then resize the window until the textbox and message box at the bottom are visible.
In the box at the bottom type "setp hm2_7i43.0.raw_write_address 0x0200
(checking that that is spelled corectly)
setp hm2_7i43.0.raw_write_data 0xFFFFFFFF
setp hm2_7i43.0.raw_write_strobe 1
execute or enter
you should see it update on screen I think
Error popup .. Invalid Argument
You need to spell it right
I am doing all this from memory
It's very much appreciated :-)
looking at hostmot2 manpage..
You should see the pin names on the screen, there should be no need for a manpage
setp hm2_7i43.0.raw.write_data 0xFFFFFFFF
Ah, yes, I got a _ for a .
You were dam close! . not _
And the address too.
then the strobe should turn on the onboard LEDs
Assuming that the LED register doesn't wander about from firmware to firmware
no did not work | write strobe = 8 bit IN FALSE hm2_7i43.0.raw.write_strobe
No leds are on
Are the address and data values set? (you might have to switch to the "watch" tab to get a live view
The box at the bottom says setting parameter 'hm2_7i43.0.raw.write_strobe' to '1' Pin 'hm2_7i43.0.raw.write_strobe' set to 1
Even if the register wanders, the driver should get its address from the ModuleID...
He is using raw mode, as the Led driver is not in the 2.4 branch
So we have assumed 0x200
Oh OK. Register locs are coinstan but will change in the future to pack them more densely
paragon-wkshop: Do the address and data values match what you set them to?
The strobe should immediately return to zero, though
pcw_home: So it is imperative to use register_stride and instance_stride and not assume?
andypugh: setp hm2_7i43.0.raw.write_data 0xFFFFFFFF changes 8 u32 IN 0x0FFFFFFF hm2_7i43.0.raw.write_data
But the strobe stays False
Yes but there are some issues with more complicated modules like sserial and resmod
paragon-wkshop: don't worry about register_stride, that was a different conversation
what's the raw.write_address?
(and UART and twiddler)
I told you to set it to 0x200!
(Bah! you can't get the staff)
you mentioned 'So we have assumed 0x200' but I thought that was for pcw_home
Yep you did .... sorry ... it's a lot to take in and I missed it! setp hm2_7i43.0.raw_write_address 0x0200
now set the strobe to 1
But note the typo, its raw.write_address
andypugh: WE have light :-)
In that case we can definitively say that you have a working 7i43
andypugh: what does the setp hm2_7i43.0.raw_write_address 0x0200 do?
I have 4 leds fron cr5 - cr8 is that as expected?
When the strobe is set high the data in raw.write_data is copied to the register in the 7i43 at address raw.write_address
Yes, as you miss-typed the raw.write_data. Should be 0xFFFFFFFF (eight Fs)
Yes because you wrote 7Fs instead of 8
Actually FFFF0000 would work too
OK, but why specifically 0x0200
Ah. well, that happens to be the register that stores LED sate
Oh I see. How did you know that? From a spec sheet?
pcw_home: Yep I had 7F ;-) but now I have 8 :-)
I am in the middle of writing a driver for the Mesa cards, so I have the regmap open on screen
regmap is somewhere in the distribution I think
So I know that 0x5b00 is the smart-serial command register
Did you download that from xilinx? The reason I ask is that I am keen to get into vhdl programming and have been reading a couple of tutorials.
No, that is specific to the Mesa firmware
You don't ned to know the register addresses, the hm2 drivers handle all that stuff.
ofcourse... I got my microchip pic head on where the spec sheets have all the reg info, but of course fpga are just a bunch gates / logic.
The only reason I had you using raw mode was so that we could see for sure that the card really was working, without having to attach extra stuff
Right, with that minor triumph, I am off to bed.
Thanks very much for help andypugh :-)
NTU is now known as NTU_brb
Jymmm is now known as Red70sShow
Red70sShow is now known as Jymmm
MARKUSBEC is now known as m4rku583C
Has anyone used eagle cad? I am trying to find the library that has a 50 way idc straight pcb connector!
plain row of 50 pins with .1" spacing? I think those kind are in 'pinhead' iirc
cradek: Looking for the same connectors that are on the 7i43 card it's for a breakout.
cradek: .1 = 2.5mm, I have found 50way 2mm in the library you sugested but not a 2.5mm
.1 != 2.5mm
exists in three versions, 0.1" angled, 0.1" straight, 2.0mm straight
its .1 which is 2.54mm
I was working to 1 decimal space ;-)
well having dome many pcb's that other place matters :)
if it's like 4way it might not matter, but 0.04mm error 25 times becomes alot
DaViruz: Got it thanks. Now I have to find the lib for these ... lol http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=360304241849&ssPageName=STRK:MEWNX:IT
Found them con-wago-500 w237-103 :-)
ries_ is now known as ries
is there a simple and free cam for linux that takes a dxf and lets you do radius correction (or even G41/G42)?
dxf2gcode isn't yet able to do that
lilalinux must be why Linux ships with a compiler
heekscnc is pretty good at path offsetting and pocketing
whether it's simple I won't venture
cradek hey good morning yo uda man!
cradek do you know who maintains the pdf files on linuxcnc?
cncx: depends which. some are periodically autogenerated from the docs that are in git, and if you mean those, the answer is in a roundabout way jthornton
if you mean other pdf files, the answer is probably nobody
cradek does anybody ever look at them? Because i just did and the table of contents in them is sort of funny
well in the EMC2_Integrator_Manual.pdf
you're asking me questions I can't answer...
the numbers and the headings run together
ok, I think that one is autogenerated
yeah well somebody should lok into why the stuff is overlapping
figured someone might want to know
oh ah let me get it
sorry about that
hmm it only seems to do it when I choose fit width so I guess it is this dumb reader here
No, It does it down near 8.2.100
yeah when the numbers get longer that is when it overlaps
actually ALL of chapt 8
but when I wasn't in fit width I didn't see it
10.2.10 is bad
yeah that is where it is really bad for me too
12 thru 13
actually chap 12 thru 36
this machine has so little software on it i have to mail an xwd to my other machine to convert it
[14:30:21] <pcncx> http://img408.imageshack.us/img408/8923/contentso.png
that is what i see
just looks funky figured someone might like to know
ignore the xterm in the top left
on the brighter side I got my add on parallel port card installed into this box this morning
and did an lspci -v on it too
now i have to clear some junk away so I can setup my scope and see whos what
unless someone here knows a better way of determining which port is which on the list
I think that is how I figured it out the last time
Usually the slot closest to the CPU is the lower address.
this card only fit in one of two slots because of how the machine is made
its an oddball
so one onboard, one pci?
well yes it has an onboard parallel port but I put in a PCI card too
I want to run off the add in PCI card leave the integrated port alone
but the way the PCI slots are in this machine the card would only fit into specific PCI slots
they're not normal connectors it is one molded thing
0378 or ?bc3 iirc is onboard commonly
yeah but lspci gives me 5 addresses
and only tw really coorspond to actual ports on the card
and out of those two each only is to one port
so I could just hook up my drivers and try each one out
but that introduces other variables into the mess
like do I have my driver timings setup right
with the scope i could just see a pulse
and be like hey this is it
though if I recall correctly I'm going to need a port pulser
I think i used this thing called K74.c
so I am up for hearing about an easier method
how about answering my question?
oh yeah 0378 is the onboard
least I'm pretty sure
think I've seen that somplace in this machine
yeah it is in heinfo
E-3400_hwinfo.txt:i/o:1 0x0378 - 0x037a (0x03) "parport0"
I wonder what hwinfo would tell me with the card in it?
one way to find out
elmo42 oh I'm there already
it is a bit different a little more helpful
it seems to marrow things down to two
Jymmm, greatings from the north
Nanook of the north!
no nook here!
Jymmm, pse send some s.cal nook!
Say what? lol
nevermind... wife might object
PM it =)
[17:23:01] <pcw_home> http://www.ww.com/dilliecam
well that's unusual
House broken but man, ruminants have bad breath, being portable fermenters
there was a tv prog over here a few days ago about a south african household with a tame hippo
locking it out was hard word
Don't argue with a hippo
[17:48:52] <archivist> http://hubpages.com/hub/There_is_a_Hippo_in_our_house
I am wiring my e-stop into my control panel today. It controls a relay in my panel will signal emc2 from one of its contacts, and the second contact will break power to the control relay that turns the spindle on/off stopping the spindle. I have one more contact left and was thinking of breaking the power supply feeding my hobbycncpro stepper driver board. Is it ok to just kill power to the
board while it is running the steppers in this way?
so i was just working on my cnc frame
started cutting a piece of metal
the was like 'fuck this' and i quit
soo...you were cutting a piece of metal and your machine up and quit on you?
no i quit
You were cutting a piece of metal by hand for your frame?
theorbtwo, well yeah
theorbtwo, ya i wish
willburrrr2003: Is cutting power to the driver board also disconnecting the filter caps that handle the BEMF?
_AR_ is now known as AR_
any examples of hal pid loop that are not velocity? ( like temperature or water conductivity ?)
They all look the same
hmm, the output might be a solenoid for a valve, so its a but more bitbangy than a velocity control using pwm
PID doesn't really work with a digital control signal.
You might as well use the window comparator.
analog in ( from a ac volateg across carnbons in water, yields a voltage across a shunt, ) to a threshold, to a valve
Though perhaps a PID with a lot of D would let you close the valve before it was too late :-)
Is the valve full-open or full-closed?
usually a valve is one of theose two when connected to a solenoid
ah i didnt say solenoid the 2nd time
You might find that a PID with a threshold in the PID output switching the valve might work. D would make it close a bit before necessary, then I might open it again as the undershoot went on.
thx i can try that and just a hal window compartor ( i have to control water conductivity for a test monday )
Can't you use mercury?
uh a bit too conductive, not sure what you're asking
I was being flippantly facetious.
oh the question was suppository ;)
(and backing up a bit, I could imagine a valve operated by solenoids and ratchets, that opened and closed in discrete steps, and that would be a challenge to code in HAL)
i was surprised how many circuits and calibrations for DIY were on the net
maybe use a water pump on a vfd ( thats possible with the hdwr i have at hand )
oh a stepper based valve? used them, good thought
i thought there was an example of temp control using pid in the reprap/emc stuff but cant track it down
i think it may be here http://geo01005-ideas.blogspot.com/
"trying to fully implement PID heater control for my EMC based repstrap"
Heater via PWM is definitely sensible.
can emc run at all on non-realtime linux?
i see. i guess hal is too tied into rtai
EMCs software PWM at a few Hz would work with normal AC SSRs
1Hz PDM could work nicely for a solenoid valve
pcw_home, thx! the dufuss who built used 230Vac coils on the solenoids, and i figger 1 or even .25hz is fast enif to control microsiemens in a 55 gallon tank
automotive isv <idle control> valve comes to mind
Eh? Idle control is all electronical (and is immensely complex)
thnx again, have to look back into PDM
I think some iac valves are solenoid run by pwm (but some are stepper motors too)
really? displacement of solenoid by pwm? like voltage-magField versus return spring ?
yes I think so
thats pretty cool, like a cheapo 'rc servo'
some work on solonoid duty cycle, and some are steppers varying the opening
woof, well i best go try some stuff now, thx
<off at a tangent> Idle control is an interesting example of PID. The final output is torque demand (which is internally converted to fuel demand and then open-time for the various injections, depending on the current injection pattern). It is basically a PID except that the P, I and D terms are pulled out of 3D maps depending on things like how far from setpoint you are, the coolant temperature and such factors. Then you ch
whole different set of the same maps depending on which gear you are in. (engineers spend months idle-driving up and down hills and over bumps of various shapes in all gears to tune the resonances out and avoid stalls).
recently I had a rental car that couldn't drive 5mph. it could either coast/idle or accelerate to a speed way over 5mph, based on .1mm of movement of the accelerator pedal.
(I was in manhattan where driving 5mph is an important thing for a car to be able to do)
... obviously they didn't test that kind of condition
You don't get to 2000 16x16 maps and 40,000 individual variables by avoiding complexity :-)
it was a hyundai model mumblemumble
I think it is unlikely to have been a Ford diesel, so I am probably off the hook for that.
I have been driving the new Focus this week, blimey that car is full of toys.
I'm jaded though - often when I drive an automatic I wonder "didn't those morons try driving this thing before they started selling them!?"
There is a rubber strip that pops out and wraps round the door edge when you open the door (all mechanical)
this thing was toyish too - lots of controls that did stuff I didn't care about - that must make it seem expensive and luxurious to suckers
andypugh: sounds like a mechanical nightmare
it has a reversing camera that draws lines on the screen depending on steering input to show where you will end up
this thing stuck itself in overdrive and stayed there even if you slowed down to 35, against all obvious signs that it wasn't going to work out
For parallel parking there is no need for that. You tell it you want to park, it measures gaps using the distance sensors till you drive past a big enough space, then it steers you in while you work the forwards-reverse.
andypugh: you're shitting me?
It knows the speed limits and shows you them on the dashboard (GPS database)
ah - nice way to sell a subscription service
"for only $39.99/month, it'll stop whining that you are speeding when you're not"
[22:06:59] <andypugh> http://www.motorator.com/videos/605
It is a feature on my GPS, so seems to be free
That video shows auto park it on a Lincoln, but the Focus is aiming at $20,000
"This is a great feature for our customers (... who are laughably unskilled drivers)"
casafrog said he fixed GL hash in emc by loading libgl-mesa-swx11, when i try to do that synaptic says it's going to remove gnome desktop
do you mean ubuntu-desktop?
lemme try again
that one doesn't matter
isnt that fatal?
it's a package that does nothing but depend on packages that ubuntu thinks are important
ok, it just sounded bad
I agree it does
Oh, I forgot voice-control, adaptive cruise control (it slows down if there is a car in front) and the city-safety auto-braking that Volvo developed. That works really well: http://www.youtube.com/watch?v=aNi17YLnZpg&feature=related
you may have more-than-usual trouble if you do an OS upgrade to the next LTS in the future
so you might want to reinstall ubuntu-desktop before trying that.
auto braking is an awesome idea
andypugh: nice video - it did stop fast, that's for sure
"I would never trust a computer to do my breaking." </youtube commenting moron>
"I would never trust a computer to do my spelling." </me>
When do the realtime threads start? When the HAL file finishes? At the first addf?
andypugh: you usually set up the whole HAL config, then do start
I mean in the generic emc startup sequence?
so everything is up by then
after loading the HAL files
(except for postgui stuff, that happens later)
andypugh: or is there a start in one of the files, I don't quite remember
So, there is potentially quite a long wait between exiting the hostmot2 driver and the threads starting.
yes, up to forever
I wonder how the watchdogs work?
I think there's a special thingie before the first petting
That's what what worries me, as the sserial needs it's own petting.
I think I know how to do it. It doesn't need "petting" until the first "do it", so as long as the last thing the driver does is a restart, it ought to be fine.
ouch, absolute encoders were not cheap even on ebay
How are you interfacing them to EMC?
i'm not, this is for a different project
azimuth feedback for my radio telescope
i'm an unusual kind of guy
Looking for anything in particular?
aliens would be nice, bit i'll settle for quasars
I wondered if it was a SETI style thing. Otherwise it seems a lot less immediate than optical.
I don't expect you get the same "ooh! Pretty" with a radio telescope?
no, not really :)
especially not with my crappy angular resolution
to get any real detail you need crazy big dishes
Anything from Gliese 581g?
(They reckon there is a planet with liquid water there)
20.5ly away :/
Going there would be something of a commitment, 'tis true. But time dilation would make the decades fly by.
not much help for us who get left behind :/
Should I get back to my FTL drive project then?
never mind einstein crying in his grave
don't mind, rather
i can't reach gliese 581g from here :/
much of the sky is obscured by the earth at this latitude
Build a tower.
i'd rather move closer to the equator
this has a few other pleasant side effects
no ice on the windshield in the mornings, and no snow up to the waistline..
Sweat, mosquitos, sunburn. No thanks.
that's true, i dislike those more
I like to visit snow, I confess it is not much fun when you only have bikes.
maybe i should get a bike