highaltitude.log.20081126

[00:49] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) left irc:
[03:01] Laurenceb (i=83e3dd6d@gateway/web/ajax/mibbit.com/x-252f545cffc4d68b) left irc: "http://www.mibbit.com ajax IRC Client"
[07:47] Simon-MPFH (n=simon@phantom.mpfh.co.uk) left irc: "Leaving"
[07:50] jcoxon (n=jcoxon@host86-163-198-244.range86-163.btcentralplus.com) joined #highaltitude.
[07:59] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) joined #highaltitude.
[08:05] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) left irc:
[08:07] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) joined #highaltitude.
[08:08] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) left irc: Client Quit
[08:13] jcoxon (n=jcoxon@host86-163-198-244.range86-163.btcentralplus.com) left irc: "Leaving"
[08:21] jnd (n=jenda@unaffiliated/jnd) left irc: Remote closed the connection
[09:25] rjharrison_ (n=rharriso@gateway.hgf.com) joined #highaltitude.
[11:16] borism (n=boris@195-50-199-4-dsl.krw.estpak.ee) joined #highaltitude.
[12:49] Ebola (n=Ebola@unaffiliated/ebola) joined #highaltitude.
[13:16] Laurenceb (i=83e34f19@gateway/web/ajax/mibbit.com/x-7a02baab60970c9e) joined #highaltitude.
[13:16] <Laurenceb> ello
[13:33] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) joined #highaltitude.
[13:37] <Laurenceb> hi edmoore
[13:37] <edmoore> hello Laurenceb
[13:37] <edmoore> all well?
[13:38] <Laurenceb> yeah
[13:38] <Laurenceb> knackered
[13:38] <Laurenceb> you?
[13:39] <edmoore> ok - about to have a bath
[13:39] <Laurenceb> :P
[13:39] <Laurenceb> the mini rogallo is annoying me, too many bugs
[13:39] <Laurenceb> I'm going to use JTAG on my next project
[13:40] <edmoore> i like jtag
[13:41] <Laurenceb> once you get to fairly complex projects, theres so many possible combinations of events
[13:41] <Laurenceb> its just too much of a pain to debug
[13:41] <Laurenceb> do you use a JTAG emulator with badger?
[13:43] <edmoore> yep
[13:43] <edmoore> it was/is pretty invaluable
[13:44] <Laurenceb> yeah, I've always used the rpintf approach to debugging
[13:44] <Laurenceb> but with embedded stuff its a pain - you need a way to implement it
[13:44] <Laurenceb> and its slow
[13:45] <Laurenceb> - flash - test - recompile - flash ect5
[13:47] <Laurenceb> the ghround control seems to be pretty much sorted, but the eeprom is still a bit glitchy
[13:47] <Laurenceb> also I'm having problems with the u socket, it keeps falling out
[13:48] <Laurenceb> I'm planning on using a g clamp to put it in maybe
[13:48] <Laurenceb> *uC socket
[13:49] <Laurenceb> its not a very good fit, and by hand I can only get it in about 1mm or less
[13:50] <Laurenceb> so I would recomment the proper sprung based sockets for removable ICs
[13:51] <edmoore> we just don't use removable ICs :)
[13:51] <edmoore> right, going bbiab
[13:51] <Laurenceb> cya
[13:51] Nick change: edmoore -> edmoore|away
[13:51] <Laurenceb> hmm then you end up worrying if theres bad code or you fried something
[13:52] <edmoore|away> sure, though all our stuff is smd so it's just the nature of the beast
[13:52] <edmoore|away> gotta accept it
[13:52] <Laurenceb> yeah, just have to be careful and keep a poss damage log for the project
[14:35] Ebola (n=Ebola@unaffiliated/ebola) left irc: "Goat it!"
[14:40] Simon-MPFH (n=simon@phantom.mpfh.co.uk) joined #highaltitude.
[15:15] Ebola (n=Ebola@unaffiliated/ebola) joined #highaltitude.
[15:23] Ebola (n=Ebola@unaffiliated/ebola) left irc: "tutorial ;-;"
[15:55] <EI5GTB> evenijg
[16:11] rjharrison_ (n=rharriso@gateway.hgf.com) left #highaltitude.
[16:12] edmoore|away (n=edmoore@pomegranate.chu.cam.ac.uk) left irc:
[16:13] akawaka (n=akawaka@cpe-76-168-88-21.socal.res.rr.com) joined #highaltitude.
[16:20] appletizer (i=a@82-46-31-101.cable.ubr04.hawk.blueyonder.co.uk) joined #highaltitude.
[16:48] EI5GTB (n=Paul@apollo.paulsnet.org) left irc: Remote closed the connection
[16:48] Ei5GTB (n=Paul@apollo.paulsnet.org) joined #highaltitude.
[16:56] Hiena (n=Hiena@81.93.195.181.datatrans.hu) joined #highaltitude.
[17:06] Hiena (n=Hiena@81.93.195.181.datatrans.hu) left irc: "-=Halt! Hammerzeit!=-"
[17:28] Ebola (n=Ebola@unaffiliated/ebola) joined #highaltitude.
[17:43] Laurenceb (i=83e34f19@gateway/web/ajax/mibbit.com/x-7a02baab60970c9e) left irc: "http://www.mibbit.com ajax IRC Client"
[18:02] jnd (n=jenda@unaffiliated/jnd) joined #highaltitude.
[18:05] wickerwaka (n=akawaka@cpe-76-168-88-21.socal.res.rr.com) joined #highaltitude.
[18:13] akawaka (n=akawaka@cpe-76-168-88-21.socal.res.rr.com) left irc: Read error: 145 (Connection timed out)
[18:19] gregHome (n=gleblanc@75.108.44.140) joined #highaltitude.
[18:19] gregHome (n=gleblanc@75.108.44.140) left #highaltitude.
[18:36] Laurenceb (i=83e3dd6d@gateway/web/ajax/mibbit.com/x-da401ae6be12049b) joined #highaltitude.
[18:37] <Laurenceb> hello
[18:42] <Ei5GTB> hai
[18:42] <Laurenceb> hello there young child
[18:42] <Laurenceb> I'm here to enquire about your spoooooooooooooonnnnnnnnnnnnssssssssss
[18:44] <Ei5GTB> there is no spoon
[18:45] <Laurenceb> I was quoting salad fingers
[18:45] <Ei5GTB> i was quoting the matrix
[18:51] <jnd> bend it
[18:53] wickerwaka (n=akawaka@cpe-76-168-88-21.socal.res.rr.com) left irc: Read error: 110 (Connection timed out)
[19:02] Laurenceb (i=83e3dd6d@gateway/web/ajax/mibbit.com/x-da401ae6be12049b) left irc: "http://www.mibbit.com ajax IRC Client"
[19:05] rjharrison (n=rharriso@80.176.172.227) joined #highaltitude.
[19:17] <Ei5GTB> any of you guys good with the atmega8?
[19:24] Laurenceb (i=83e3dd6d@gateway/web/ajax/mibbit.com/x-7e3ca040be56be15) joined #highaltitude.
[19:58] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) joined #highaltitude.
[20:03] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) left irc: Client Quit
[20:04] <natrium42> Ei5GTB, what's your question?
[20:06] <Ei5GTB> well, im doing som usart stuff
[20:06] <Ei5GTB> but all the registeries are coming back as undeclared when i try to compile
[20:06] <natrium42> did you include the header?
[20:07] <Ei5GTB> avr/io.h
[20:07] <Ei5GTB> ?
[20:09] <Ei5GTB> i have that included
[20:10] <Ei5GTB> thats all
[20:10] <natrium42> right, that's what you need
[20:11] <Ei5GTB> grr
[20:11] <Ei5GTB> ../testing.c:13: error: 'UCSRB' undeclared (first use in this function)
[20:11] <Ei5GTB> etc.. etc..
[20:11] <Ei5GTB> pretty much any register i talk about is undeclared
[20:12] <natrium42> did you set MCU in the makefile?
[20:13] <Ei5GTB> erm..
[20:13] <natrium42> also, is it actually finding the headers?
[20:13] <Ei5GTB> havnt touched the makefile
[20:13] <Ei5GTB> using avr studio with avr-gcc
[20:13] <Ei5GTB> yea, finding the hearder no bother
[20:14] <natrium42> okay, since the header would look for the kind of MCU you are using
[20:14] <natrium42> and include the relevant headers with register defines
[20:15] <natrium42> you should be able to see that in io.h
[20:15] <Ei5GTB> well, i have told avr-studio what chip im using
[20:15] <natrium42> but you are using the makefile or no?
[20:16] <Ei5GTB> donno
[20:16] <Ei5GTB> i press f7 and it compiles
[20:16] <Laurenceb> yeah it uses a makefile
[20:16] <Laurenceb> F7 builds a makefile then runs it
[20:17] <natrium42> ah, that's how they do it
[20:17] <Laurenceb> http://www.mibbit.com/pb/H7KuFW
[20:17] <Laurenceb> any ideas how that code could return FFFFFFFC ?
[20:17] <Laurenceb> its really confusing me
[20:17] <Laurenceb> dont see how its possible
[20:18] <Ei5GTB> ok, i found a makefile, and in it: MCU = atmega128
[20:18] <Laurenceb> you have?
[20:19] <Laurenceb> n<16, so how could the function return such huge numbers?
[20:21] <Laurenceb> FFFFFFFC is devisable by 12, so somethings working...
[20:22] <Laurenceb> but how can all those bits get set?
[20:23] <natrium42> heh, weird
[20:23] <natrium42> how are you printing it?
[20:23] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) joined #highaltitude.
[20:23] <natrium42> Ei5GTB, i can look at your setup if you send me the zipped files
[20:24] <Ei5GTB> i figured it out
[20:24] <Laurenceb> using a print routine from pascal stang
[20:24] <Ei5GTB> i had to go into config options and set my xhip
[20:24] <Ei5GTB> everytime i edited the makefile studio over wrote it
[20:24] <natrium42> aah
[20:24] <natrium42> cool
[20:24] <Laurenceb> neato
[20:24] <Ei5GTB> :)
[20:24] <Ei5GTB> tis a great feeling
[20:25] <Laurenceb> natrium42: so, I want to find the bottom of free eeprom
[20:25] <Ei5GTB> to to test it to see does it echo rs-232 data
[20:25] <Laurenceb> I test every 12th location
[20:25] <Laurenceb> I've been struggling to make this work for over a week now :(
[20:26] <Laurenceb> how would you advise I do it?
[20:26] <natrium42> so you write to address and see if it's actually written?
[20:26] <Laurenceb> I read from the address
[20:26] <Laurenceb> and see if its painted
[20:27] <natrium42> painted?
[20:27] <Laurenceb> you write some known value
[20:27] <Laurenceb> to every 12th location
[20:27] <Laurenceb> then check for it being overwritten
[20:28] <natrium42> why do you need to do this?
[20:28] <Laurenceb> so my eeprom behaves like a file
[20:28] <Laurenceb> every time I open it, my pointer is to the end of the data
[20:29] <Laurenceb> so I'm painting it, then using a binary search algorythm to find the top of the data
[20:29] <Laurenceb> or rather failing miserably to make it work
[20:29] <natrium42> is there a reason that you are not using some kind of header table?
[20:30] <Laurenceb> eeprom only has limited life
[20:30] <natrium42> yes, 100000 of cycles
[20:30] <Laurenceb> I dont want to be continuously overwriting some variable
[20:30] <natrium42> how many times are you planning to write to it? :P
[20:31] <Laurenceb> well if I overwrote top for each new data byte
[20:31] <Laurenceb> it would be worn out in ~1 second
[20:31] <natrium42> why do you need to update it each byte?
[20:31] <Laurenceb> using this technique it will last ~ forever
[20:31] <natrium42> aren't you writing structures to it?
[20:31] <Laurenceb> ok, every new structure thats written to it
[20:32] <Laurenceb> but its still going to wear out in minutes
[20:32] <natrium42> ok
[20:32] <Laurenceb> :P
[20:32] <Laurenceb> I would have gone for something simpler if it would work
[20:32] <natrium42> so you paint each 12th byte?
[20:32] <Laurenceb> yes
[20:33] <natrium42> should have made it 16 :P
[20:33] <natrium42> ok, let me see
[20:33] <Laurenceb> and I know that works, as my sequential data dump routine works
[20:33] <Laurenceb> it quits when it reaches a painted byte at a location devisable by 12
[20:34] <Laurenceb> if you look on the wiki, theres a slightly older version
[20:34] <Laurenceb> it almost works, but findtop gives mad values under certain circumstances
[20:34] <Laurenceb> and its not hang proof if the hardware fails
[20:36] <Laurenceb> http://wiki.ukhas.org.uk/code:i2c_eeprom
[20:37] <Laurenceb> oh hang on
[20:37] <natrium42> http://rafb.net/p/Wqvbub55.html
[20:37] <natrium42> just do it like this
[20:37] <Laurenceb> (u32)(1<<n) should be ((u32)1<<n)
[20:38] <Laurenceb> by default libc cant handle variables that large without screwing up
[20:38] <Laurenceb> havent flashed it yet
[20:38] <Laurenceb> ok, thanks looksing
[20:38] borism_ (n=boris@195-50-200-3-dsl.krw.estpak.ee) joined #highaltitude.
[20:39] <Laurenceb> yeah, problem with that is its not a binary search
[20:39] <natrium42> you only do that when your mcu boots
[20:39] <Laurenceb> so if you have several megabytes to search it takes some time
[20:40] <Laurenceb> yeah
[20:40] <Laurenceb> but if theres a watchdog reset or something
[20:40] <Laurenceb> I want it to be back on its feet in a few 100 ms
[20:40] <natrium42> how big is your eeprom?
[20:41] <Laurenceb> 128KB atm
[20:41] <Laurenceb> but Iwant to be able to use multiple chips
[20:41] <natrium42> ok, i see
[20:41] <Laurenceb> the functions are written so multiple devices can appear as one volume
[20:42] <Laurenceb> hmm I'll have a cup of coffee then try with the correct typecasting :P
[20:43] <Laurenceb> http://www.mibbit.com/pb/N5hfSl
[20:45] borism (n=boris@195-50-199-4-dsl.krw.estpak.ee) left irc: Read error: 145 (Connection timed out)
[20:45] <Ei5GTB> FUCK YEA"!!!!! it works!!
[20:45] <Ei5GTB> after searching for a while, my max232 didnt have gnd connected.... but i cennected it and it all works
[20:45] <Ei5GTB> wher would i be without my scop !
[20:46] <Ei5GTB> scope*
[20:46] <natrium42> haha, nice
[20:46] <Ei5GTB> even though it has a focus problem
[20:46] <Laurenceb> mucrocontrollers fuck yeah gcc is the only way yeah
[20:47] <Ei5GTB> its such a mighty feeling when the thing you were working on for an evening works
[20:50] <Laurenceb> Ei5GTB: have you seen my page on the wiki on attitude filtering?
[20:51] <Laurenceb> I managed to get suprisingly good reults, I think it would be good enough for a quad copter
[20:52] <Ei5GTB> cool
[20:57] <natrium42> Laurenceb, this should work --> http://rafb.net/p/nu8LNU60.html
[20:58] <natrium42> oops
[20:58] <natrium42> bugfixed --> http://rafb.net/p/j1k9Wo39.html
[21:00] <Laurenceb> thanks
[21:00] <natrium42> np, hope it works :P
[21:00] <Laurenceb> I'll try my version first
[21:01] <natrium42> whoa, why did i put a brace on line 9??
[21:01] <natrium42> damn typos
[21:01] <natrium42> bbl food
[21:01] <Ei5GTB> grr, how the hel do i send one pin high PORTB = (somthing>>0
[21:02] <Ei5GTB> fill in the somthing
[21:02] <Ei5GTB> PORTB = (PB>>0);
[21:02] <Ei5GTB> ?
[21:02] <Laurenceb> PORTB|=1<<x;
[21:03] <natrium42> setting pin: PORTX |= (1 << x); clearing pin: PORTX &= ~(1 << x);
[21:04] <natrium42> but there should also be sbi() and cbi() defined which you can use
[21:04] <Laurenceb> 0001FFF8
[21:04] <Laurenceb> from my routine
[21:04] <natrium42> is it correct?
[21:04] <natrium42> looks better than before :)
[21:04] Action: Laurenceb gets out his ti-83+
[21:05] <Laurenceb> nah its way too big still
[21:05] <Laurenceb> oddly it seems to be in the wrong sector
[21:05] <Laurenceb> yeah its jumped up in every loop by the look of it
[21:05] <natrium42> off by one?
[21:08] <Laurenceb> hmm it obviously never read any magic numbers
[21:08] <natrium42> is the read function working?
[21:09] <Laurenceb> yeah
[21:09] <Laurenceb> and the dump routine quits on reaching a painted location
[21:10] <Laurenceb> for(n=0;n<datasize;n++)
[21:10] <Laurenceb> what happens if datasize=0 ?
[21:12] <natrium42> asplosion?
[21:13] <Laurenceb> it doesnt run?
[21:15] Laurenceb (i=83e3dd6d@gateway/web/ajax/mibbit.com/x-7e3ca040be56be15) left irc: "http://www.mibbit.com ajax IRC Client"
[21:15] Laurenceb (i=83e3dd6d@gateway/web/ajax/mibbit.com/x-ef71643b4f54b309) joined #highaltitude.
[21:21] Hiena (n=Hiena@81.93.195.181.datatrans.hu) joined #highaltitude.
[21:27] jcoxon (n=jcoxon@host86-163-198-244.range86-163.btcentralplus.com) joined #highaltitude.
[21:27] <jcoxon> evening all
[21:30] Simon-MPFH (n=simon@phantom.mpfh.co.uk) left irc: "Leaving"
[21:40] Ei5GTB (n=Paul@apollo.paulsnet.org) left irc: Read error: 104 (Connection reset by peer)
[21:49] Ei5GTB (n=Paul@apollo.paulsnet.org) joined #highaltitude.
[21:55] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) left irc:
[22:00] <Ei5GTB> ok, now to have some rs-232 fun
[22:02] <jcoxon> the joys of rs232
[22:03] <Ei5GTB> yup
[22:03] <Ei5GTB> know much about it?
[22:03] <Ei5GTB> if i wanted to send hello
[22:03] <Ei5GTB> could i just say UDR = "hello"
[22:03] <Laurenceb> hmm its annoying
[22:03] <jcoxon> on the atmega8? sadly not
[22:03] <Laurenceb> I just spent 15 minutes wondering wtf was going on
[22:03] <Ei5GTB> ill have to convert it to binary?
[22:03] <jcoxon> i know lots about rs232 just not for avrs
[22:04] <Laurenceb> only t descover hyperterminal had crashed
[22:04] <Ei5GTB> hateful
[22:04] <Ei5GTB> use putty
[22:04] Action: Laurenceb stabs hyperterminal in the face
[22:04] <Laurenceb> hmf still no luck with the eeprom
[22:04] <Laurenceb> this project is just too complicated
[22:06] Action: jcoxon is researching cold weather gear for norway
[22:06] <Laurenceb> it was meant to be ready a month ago :(
[22:06] <rjharrison> ping jcoxon
[22:07] Hiena (n=Hiena@81.93.195.181.datatrans.hu) left irc: "-=Halt! Hammerzeit!=-"
[22:07] <Ei5GTB> omg, my C knowledge has gone to hell
[22:07] <Ei5GTB> how do you declare a string? string x;?
[22:08] <Ei5GTB> ah, chart
[22:08] <Ei5GTB> char*
[22:14] <Ei5GTB> how do you split a string into seperate characters?
[22:15] <Ei5GTB> not like, split by every , or ' ' but by.... every... like get each character as a seperate value in an array
[22:31] <Ei5GTB> wait, that was all a dumb question
[22:31] Action: Ei5GTB turns brain on
[22:35] <Laurenceb> its an array
[22:40] <Ei5GTB> i know, i found out, much to my embartasment :P
[22:40] <Ei5GTB> grr, php has my programing knowledge away crazy
[22:40] <Ei5GTB> that and java
[22:49] rjharrison (n=rharriso@80.176.172.227) left irc:
[22:50] <natrium42> lol Ei5GTB
[22:50] <natrium42> Laurenceb, did you fix0r it?
[22:50] <Laurenceb> no
[22:51] <Laurenceb> screwed it up even more :(
[22:51] <Laurenceb> I think I can get everything apart from the findtop function working
[22:51] <natrium42> just try my codez
[22:51] <Laurenceb> yeah
[22:51] <Laurenceb> just a sec, on the phone
[22:52] <natrium42> so that's why i am getting busy tones
[22:56] <Laurenceb> skype
[23:04] G8KHW (n=Steve@217.47.75.27) joined #highaltitude.
[23:06] <Laurenceb> hi rocketboy
[23:07] <G8KHW> yo chaps
[23:07] <Ei5GTB> howdy
[23:08] <G8KHW> any of you guys ever used Mercurial Repositories (its a networked source code control system)?
[23:09] <Laurenceb> we use somethink called smarteam
[23:10] <G8KHW> yeah that soubds similar - MR is networked using http typically - which makes sharing simple
[23:11] <G8KHW> I need to find someone capable of setting one up
[23:16] jcoxon (n=jcoxon@host86-163-198-244.range86-163.btcentralplus.com) left irc: "This computer has gone to sleep"
[23:28] wickerwaka (n=akawaka@cpe-76-168-88-21.socal.res.rr.com) joined #highaltitude.
[23:30] <Laurenceb> natrium42: I dont follow your code
[23:31] <Laurenceb> where do you move the address pointer down?
[23:31] <natrium42> where it sets it to half
[23:32] <Laurenceb> oh
[23:32] <natrium42> hmm
[23:32] <Laurenceb> yeah I follow
[23:32] <Laurenceb> slightly different approach
[23:33] <natrium42> wait, it's wrong
[23:33] <Laurenceb> not sure if it could miss a slot?
[23:33] <natrium42> we need to have a window which is halved
[23:33] <natrium42> not halving the addr
[23:34] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) joined #highaltitude.
[23:35] edmoore (n=edmoore@pomegranate.chu.cam.ac.uk) left irc: Client Quit
[23:38] <natrium42> http://rafb.net/p/EC9a0654.html
[23:38] <natrium42> just need to think if it's possible to miss a slot
[23:38] Action: natrium42 hates off by one errors
[23:43] <Laurenceb> the problem i've got now is its stopped writing to eeprom
[23:43] <Laurenceb> it just goes from bad to worse
[23:44] <natrium42> :/
[23:46] <Laurenceb> oops
[23:46] <Laurenceb> I just pulled one of the power headers straight off the board
[23:47] <Laurenceb> may explain the glitchyness
[23:47] <wickerwaka> whats the code meant to be doing?
[23:48] <Laurenceb> reading and writing to eeprom
[23:48] <natrium42> he has an array of slots where the first N are occupied
[23:48] <natrium42> and he wants to find the first unoccupied slot using binary search
[23:49] <natrium42> each slot has a marker that you can check
[23:49] <natrium42> wtf is going on in india :/
[23:53] G8KHW (n=Steve@217.47.75.27) left irc: Read error: 104 (Connection reset by peer)
[23:55] <wickerwaka> whats the +12?
[23:56] <natrium42> his slot size is 12 bytes long
[00:00] --- Thu Nov 27 2008