#avr | Logs for 2012-10-12

Back
[00:13:06] <jadew> Casper, I meant different commands for the avr
[00:13:41] <Casper> hmmm maybe that one assume a slow clock
[00:13:46] <Casper> the other assume a fast clock
[00:13:55] <jadew> it's possible
[00:16:38] <skorket> anyone have experience with club jameco?
[00:52:18] <Eartaker> i have an unsigned long value that is say 11055/1000 how do I get that to round to a whole number?
[00:52:26] <Eartaker> i cant find anything on how to do that
[00:52:37] <Eartaker> or am i using the wrong data type?
[00:52:52] <Richard_Cavell> what's your question exactly?
[00:52:57] <Richard_Cavell> Firstly, are you using assembly or C?
[00:53:45] <Eartaker> C
[00:53:49] <Eartaker> I have this value displayed on a LCD and the last digit keeps jumping around so I would rather have the code just round it off so it stays solid
[00:54:53] <Eartaker> here is an example... I have unsigned long X and lets say X is 120500, then X = X/1000
[00:55:22] <Eartaker> now on the LCd the value jumps around because im trying to display a whole number
[00:55:26] <Eartaker> the quesion is
[00:55:50] <Eartaker> How do I get the unsigned long value of X to round to a whole number after being divided by 1000
[00:56:02] <Richard_Cavell> it will if it's stored in an unsigned long
[00:56:10] <Richard_Cavell> long is an integer type. It cannot store fractional values
[00:57:02] <Richard_Cavell> Eartaker: I'll talk to you on ##c because that's the right forum
[00:57:25] <Eartaker> ok
[01:05:30] <Essobi> Richard_Cavell: We don't mind C talk here.
[01:05:50] <Richard_Cavell> Essobi: I'm discussing it in ##c because his problems are related to C rather than AVRs
[01:06:03] <Essobi> *shrug* Just saying.
[01:06:14] <Casper> unsigned int y; y = (x/1000)+.5; :D
[01:06:31] <Essobi> Eartaker: And there's that. :D
[01:06:32] <Casper> that's one way
[01:07:05] <Essobi> Casper: Umm.. Unsigned int's can't store decimal values.
[01:07:06] <Casper> the .5 is because it do not round, but kill the decimal, so 0.9 = 0
[01:07:08] <Essobi> :D
[01:07:19] <Essobi> Aah.
[01:07:20] <Eartaker> hmm
[01:07:41] <Casper> there is also some cast
[01:07:59] <Essobi> right.
[01:08:25] <Casper> in printf() use something like... printf(%i, (unsigned int)((x/1000)+.5));
[01:08:33] <Casper> ... if %i is right, I'm rusted on C :D
[01:10:11] <Richard_Cavell> yes but you have to do printf("%i", ...)
[01:13:36] <Casper> oh yeah
[01:13:45] <Casper> that's a 2am issue
[01:14:00] <Casper> ... working today, I shall go to bed, no?
[01:14:43] <rue_house> ##c will usually just insult you about your problem, not help
[01:15:05] <Richard_Cavell> rue_house: don't worry, I'm there
[01:15:13] <rue_house> heh, good show
[01:15:49] * Casper pokes rue_house
[01:16:15] * rue_house takes a wifflebat and violently assults Casper with it
[01:16:17] <rue_house> er
[01:16:19] <rue_house> sorry
[01:16:28] <Essobi> Hah.
[01:16:39] * rue_house offers Casper a cup of tea
[01:20:47] <Essobi> Right... cause you always offer tea after you do something like that with a wiffle ball bat.
[01:20:51] <Essobi> :D
[01:20:51] * Casper refuse the tea
[01:21:51] <rue_house> meh
[01:22:16] <rue_house> so ebay has a listing leak
[01:22:28] <Casper> ?
[01:22:38] <rue_house> things bought dissapear from the 'my ebay' list
[01:22:44] <rue_house> not after 60 days either
[01:23:01] <rue_house> and the archive button, dosn't archive, it deletes
[01:23:27] <Casper> lol
[01:31:06] <rue_house> to demonstrate how bad the leak is
[01:31:18] <rue_house> I buy at least 1 item every day
[01:31:26] <rue_house> in the last 60 days, ebay only shows 47 items
[01:32:06] <rue_house> sorry 43 items
[01:34:22] <GuShH> rue_house: go to the purchase history to see the rest
[01:34:48] <rue_house> nope
[01:35:09] <rue_house> ooo
[01:35:20] <rue_house> it hasn't leaked anything in the last 31 days
[01:36:17] <rue_house> anyhow, I thought that was funny
[01:36:31] <rue_house> 1 item/day and I have no idea what listings are missing
[01:37:30] <rue_house> I'v learned that if you dont get something 28 days later, you have to take seller action or you will lose any opportunity to leave feedback or open a case
[01:37:46] <rue_house> sellers usually take 2 days to do refunds
[01:37:47] <GuShH> hmm
[01:37:57] <GuShH> yeah I've lost the feedback option on many items
[01:38:08] <rue_house> most itmes from china take 20-22 days to arrive
[01:38:21] <rue_house> which I accept
[01:38:40] <rue_house> I bought a roll of solder to test the free shipping
[01:38:58] <rue_house> oo you know, I had to get refunds for 3 items, I should buy an extra 3
[01:39:11] <rue_house> not from hkiron* tho
[01:39:29] <rue_house> or I could buy a $3 item.... hmmmmm
[01:40:19] <GuShH> hmmmmmm
[01:40:49] <rue_house> or 3 $1 items..
[01:41:02] <GuShH> or 2 $1.5 items!
[01:41:21] <rue_house> OOOOOhhhhh your GOOD!
[01:41:32] <rue_house> http://www.ebay.ca/itm/20-x-Crimp-Terminal-Pin-Housing-Connector-2-54mm-Tin-Plated-250V-3A-/400325221923?pt=LH_DefaultDomain_0&hash=item5d353e1e23
[01:43:37] <GuShH> if only I could browse... I don't even have 3G or EDGE here... it's GPRS!
[01:44:09] <GuShH> I even got dialup related nightmares.
[01:44:45] * GuShH clicks anyway
[01:45:05] <Essobi> Don't stop, click it, click it.
[01:45:57] <GuShH> rue_house: and the housings?
[01:46:08] <GuShH> Essobi: it just loaded... just then. that's how it is.
[01:46:12] <rue_house> 3/$1
[01:46:21] <rue_house> http://www.ebay.ca/itm/5-x-Wafer-Connector-2-54mm-3-Pins-Straight-Free-Shipping-/400313085957?pt=LH_DefaultDomain_0&hash=item5d3484f005
[01:46:27] <rue_house> http://www.ebay.ca/itm/5-x-Housing-Connector-2-54mm-3-Pins-Free-Shipping-/400313272635?pt=LH_DefaultDomain_0&hash=item5d3487c93b
[01:46:43] <rue_house> but I want the zero clearance ones
[01:47:09] <GuShH> what do we do with the remaining 5 crimp terminals?
[01:47:32] <rue_house> those are for f***ups
[01:47:44] <GuShH> lol
[01:49:23] <rue_house> http://www.ebay.ca/itm/New-PC-Desktop-Computer-Case-ATX-Power-Reset-Switch-Cable-HDD-LED-Light-/280959669714?pt=US_Power_Cables_Connectors&hash=item416a8055d2
[01:49:34] <rue_house> need to find those zero clearance ones
[01:53:03] <rue_house> http://www.ebay.ca/itm/100PCS-1-4W-0-25W-1-Metal-Film-Resistor-0-1-Ohm-0-1R-/261018179456?pt=LH_DefaultDomain_0&hash=item3cc5e55780
[01:53:23] <rue_house> I wonder how long the leads should be to get .1R
[01:53:57] <rue_house> oh, I bought some zero ohm resisotrs, wonder where that listing went
[01:55:47] <GuShH> rue_house: you'll have to measure them individually :p
[01:56:30] <GuShH> private listing? the hell
[01:59:40] <GuShH> crap, for a moment I forgot about my connection and opened like 10 tabs at the same time :(
[02:00:04] <r0b-> hey guys :P
[02:00:18] <rue_house> make sure javascript and java are off then, and block flash
[02:00:48] <GuShH> java is not allowed in this house
[02:00:58] <rue_house> :)
[02:01:01] <r0b-> wtf GuShH is here?
[02:01:05] <GuShH> flash is always blocked.
[02:01:05] <GuShH> javascript is required though.
[02:01:18] <rue_house> lots of pages get by without it
[02:01:38] <GuShH> somehow I'm getting a good downrate
[02:01:43] <r0b-> its time i go scarce
[02:01:46] <GuShH> it must be because it's late and there's less use on the network
[02:02:05] <rue_house> gnight
[08:55:52] <megal0maniac> Anyone here heard of cypress' PSoC range?
[09:04:46] <rue_house> this channel is about microcontrollers tho
[09:08:18] <rue_house> <33 mips, <512k memory
[09:08:19] <megal0maniac> rue_house: That is a microcontroller
[09:08:27] <megal0maniac> Sort of :)
[09:08:30] <megal0maniac> 8bit core
[09:08:40] <OndraSter> megal0maniac, anything special about them?
[09:08:50] <RikusW> megal0maniac: it just rained here, a lot, 90mm in 2 hours
[09:09:04] <rue_house> new controllers come out all the time, a person can waste a lot of energy learning new ones
[09:09:51] <megal0maniac> I haven't investigated properly, but they have a "block" system. They have digital and analog peripherals, and you assign them to blocks for specific functions. Looks very cool
[09:09:59] <rue_house> motorola, zilog, rabbit?, microchip, hitachi....
[09:10:00] <megal0maniac> RikusW: It's nice and sunny here :P
[09:10:11] <megal0maniac> rue_house: It's more the concept that intrigues me
[09:10:35] <OndraSter> mmm Zilog? Z80!
[09:10:41] <OndraSter> mmm Motorola? 68k :P
[09:10:43] <rue_house> (long live z80)
[09:10:55] <rue_house> (death to 68hc11!)
[09:11:12] <OndraSter> lol why?
[09:11:16] <rue_house> 8051? hell, I'm not sure yet
[09:11:27] <rue_house> haha I forgot intel
[09:11:40] <OndraSter> you did
[09:11:41] <megal0maniac> OndraSter & RikusW: I promoted your products to some of the university peoples :)
[09:11:53] <rue_house> I HATE reduced register processors
[09:11:54] <RikusW> good to hear :)
[09:12:06] <megal0maniac> I dislike too many registers
[09:12:14] <RikusW> OndraSter: seems like you'll have to go into production sometime ?
[09:12:20] <OndraSter> hopefuly I will :P
[09:12:23] <megal0maniac> I'm pushing :P
[09:12:37] <rue_house> its good to have atleast 6 resisters as far as I'm concerned
[09:12:46] <OndraSter> thanks megal0maniac
[09:12:48] <RikusW> megal0maniac: what does those people have to say ?
[09:12:51] <megal0maniac> I actually took the xboard and U2S with me, but had to leave them in the car. Will show them next week
[09:12:52] <rue_house> general purp
[09:13:09] <OndraSter> megal0maniac, I shall be doing the arduino versions before the year ends hopefuly too :P
[09:13:11] <OndraSter> just as the Mini version
[09:13:14] <OndraSter> in breadboard
[09:13:18] <megal0maniac> RikusW: Not loads, basically just pointed them in the direction of the site at the end of the lecture
[09:13:25] <RikusW> ah
[09:13:28] <RikusW> thanks
[09:13:30] <OndraSter> <rue_house> its good to have atleast 6 resisters as far as I'm concerned
[09:13:33] <megal0maniac> OndraSter: I think coco will get the biggest market personally
[09:13:34] <OndraSter> only 6? :P
[09:13:38] <OndraSter> megal0maniac, I suppose so
[09:13:45] <OndraSter> maybe ultra could too
[09:13:51] <OndraSter> because of the huge amount of IOs
[09:14:06] <megal0maniac> Hmmm... But then there's 2560 to consider
[09:14:10] <RikusW> rue_house: I have an entire resistor set, well almost, with 100x of each value
[09:14:13] <OndraSter> 2560 has no DAC
[09:14:16] <rue_house> A, B, C, D, H, L :)
[09:14:19] <RikusW> thats about 140 values
[09:14:32] <OndraSter> RikusW, he ment registers :P
[09:14:44] <rue_house> OndraSter, what avr has a DAC?
[09:14:50] <OndraSter> all xmega a*
[09:15:00] <OndraSter> a4, a3 have two channels
[09:15:03] <megal0maniac> People don't know xmega yet. They like to stick to what they know. Something less expensive will be more likely to get someone to try it
[09:15:04] <OndraSter> a1 has four channels
[09:15:06] <OndraSter> two separate DACs
[09:15:12] <rue_house> analog DAC?
[09:15:14] <OndraSter> yes
[09:15:16] <OndraSter> 12bit 1MSPS
[09:15:17] <rue_house> huh
[09:15:22] <RikusW> megal0maniac: I used AVR registers as variables
[09:15:23] <OndraSter> thus for both channels at once you get 500ksps
[09:15:38] <rue_house> I'm upset at the world because DAC resistor network chips aren't available
[09:15:40] <OndraSter> on a1 series you get two 500ksps at once
[09:15:41] <OndraSter> heh
[09:15:47] <megal0maniac> RikusW: Must have had a few to spare :)
[09:15:51] <megal0maniac> rue_house: Get xboard
[09:15:54] <OndraSter> :D
[09:15:58] <OndraSter> I should order parts damnit :D
[09:16:01] <rue_house> no I mean likea 16 pin dip
[09:16:10] <megal0maniac> DIP DAC?
[09:16:14] <rue_house> there should be a 10 pin sip thats a 8 bit DAC network
[09:16:21] <OndraSter> somebody wants something from mouser? I can get free shipping on my order or nearly free compared to the 40€ :P
[09:16:39] <OndraSter> rue_house, hmmm sounds like a good idea :)
[09:16:39] <megal0maniac> OndraSter: One of those cypress chips :P
[09:16:41] <OndraSter> for a small sillicon
[09:16:44] <OndraSter> megal0maniac, :D
[09:16:49] <OndraSter> and programmer do you have?
[09:16:51] <OndraSter> for it
[09:16:53] <megal0maniac> No...
[09:16:57] <OndraSter> :P
[09:16:58] <megal0maniac> But the dev kit is $40
[09:17:04] <megal0maniac> But then I can't get a dragon :/
[09:17:08] <RikusW> how about a spi shift register connected to a DAC network ?
[09:17:10] <OndraSter> I'd much rather get a dragon
[09:17:14] <megal0maniac> Me too
[09:17:21] <megal0maniac> Have enough AVRs for now
[09:17:25] <RikusW> 5 pins :)
[09:17:28] <OndraSter> :D
[09:17:49] <specing> ARM
[09:18:16] <rue_house> RikusW, for some reason, that becomes worth a lot of money, with a sip, you could gang them for more bits
[09:18:23] <RikusW> megal0maniac: if you do use the dragon on U2S dW you must enable the DWEN fuse in the programming dialog
[09:18:40] <rue_house> (I'm half awake, but iirc thats why you want 10 pins)
[09:18:42] <megal0maniac> Ek weet
[09:18:44] <megal0maniac> :)
[09:18:56] <RikusW> AS has a nasty habit of erasing the flash if you enable DWEN when entering debug mode
[09:19:14] <RikusW> At least older versions...
[09:19:24] <megal0maniac> Which would kill the bootloader :/
[09:19:30] <RikusW> yep
[09:19:30] * megal0maniac should do a flash dump...
[09:19:36] <RikusW> good idea
[09:19:50] <RikusW> and write down the lock and fuse bits too
[09:20:05] <megal0maniac> Well I won't change those...
[09:20:15] <RikusW> lock might change
[09:20:19] <RikusW> it should be EF
[09:20:20] <rue_house> "older versions" as in, "all I'v used are older versions, I'd hope they fixed the damn things now"?
[09:20:34] <megal0maniac> Oh, it's locked?
[09:20:44] <RikusW> SPM bootloader bit only
[09:20:52] <megal0maniac> rue_house: Heh. Yes :)
[09:21:11] <rue_house> do a bootloader upgrade with a man-in-the-middle attack
[09:21:29] <RikusW> megal0maniac: I considered locking the entire device... but since you can load custom fw its of no use
[09:21:43] <RikusW> and setting the boot lpm bit cause some technical difficulties...
[09:21:53] <RikusW> so I just left it open
[09:22:04] <RikusW> apart from boot spm, for protecting the bootloader
[09:22:08] <rue_house> anyone here done any ARM firmware delelopment?
[09:22:42] * RikusW have read a bit of ARM datasheets, but no dev
[09:23:16] <rue_house> I have an arm that loads/runs a linux os from a harddrive, but the harddrive died
[09:23:32] <rue_house> not sure how to scratch togethor an os for it and compile apps
[09:23:34] <RikusW> ugh
[09:23:41] <rue_house> its got a usb and network port
[09:23:47] <megal0maniac> My 250gb WD drive is now 1296gb :)
[09:23:52] <RikusW> sdcard ?
[09:23:56] <megal0maniac> And inaccessible
[09:24:00] <rue_house> no, sata
[09:24:12] <RikusW> megal0maniac: how did that happen ?
[09:24:20] <megal0maniac> RikusW: It's been unhappy for ages
[09:24:24] <megal0maniac> It's my OSX drive
[09:24:34] <megal0maniac> (Probably why it's unhappy) :P
[09:24:45] <RikusW> why 1296GB ?
[09:24:59] <rue_house> install android on it :)
[09:25:14] <rue_house> its on everything else in the world
[09:25:23] <megal0maniac> RikusW: Same reason it's broken. i.e. I don't know :)
[09:25:33] <RikusW> then you could use Java at least ;)
[09:25:40] <rue_house> the drives store their own firmware on the drive
[09:25:47] <RikusW> but the OS seems to think its bigger ?!
[09:25:54] <megal0maniac> It's happened before
[09:25:56] <rue_house> so, if there is corruption on the drive....
[09:26:07] <megal0maniac> rue_house: I thought it was in firmware...
[09:26:15] <megal0maniac> On a seperate chip
[09:26:29] <rue_house> thats why if you swap controller baords between two drives of almost the same model, it still knows what model it is
[09:26:50] * RikusW have a hdd with a 80188 chip on it, its fairly old :-P
[09:27:11] <rue_house> and why drives with surface damage never boot enough to tell the host machine it exists
[09:27:17] <RikusW> and not even in one piece anymore
[09:27:30] <megal0maniac> rue_house: i.e. freezing POST?
[09:27:31] <rue_house> I have a HD with a 8748 on it :)
[09:27:59] <rue_house> yea, and if you go into the bios it gives up trying to find your drive
[09:28:09] <megal0maniac> Had that a few times
[09:28:19] <megal0maniac> Luckily not with my own drives :)
[09:28:24] <rue_house> dare I say 'flyb*ck" knows how to rewrite the firmware
[09:28:43] <RikusW> he does ?
[09:28:52] <RikusW> using a virus ? :-P
[09:28:56] <rue_house> its one of the few usefull things he's hacked
[09:29:27] <rue_house> there is a serial port in the pinset for drive selection
[09:29:39] <rue_house> aparently its a console
[09:29:46] <RikusW> on all drives ?
[09:29:50] <megal0maniac> Seagate
[09:29:51] <rue_house> sounds like it
[09:29:53] <megal0maniac> I've seen it
[09:29:57] <megal0maniac> (Or I have it)
[09:30:10] <megal0maniac> And I've gotten in, but too scared to type anything :P
[09:30:18] <rue_house> he has the command set
[09:30:26] <megal0maniac> He's a lucky bugger
[09:30:31] <RikusW> megal0maniac: what baud /
[09:30:31] <rue_house> !?!??!??!?!
[09:30:44] <megal0maniac> Seagate BSY error
[09:31:03] <megal0maniac> Resulted in lots of articles on how to fix it. You use the terminal
[09:31:08] <megal0maniac> rue_house: ?
[09:31:16] <megal0maniac> RikusW: I forget :)
[09:31:31] <rue_house> you could go into #electr*nics and ask flyb*ck
[09:31:56] <RikusW> he'll bite me again :-P
[09:32:04] <rue_house> yea well
[09:32:14] <megal0maniac> Ah, it's 38400
[09:32:14] <rue_house> *could*
[09:32:30] <megal0maniac> 3v3
[09:32:44] <RikusW> is there a rx and tx pin ?
[09:33:01] <RikusW> or combined ?
[09:33:01] <megal0maniac> Yip
[09:33:06] <megal0maniac> Seperate
[09:33:12] <RikusW> nice
[09:33:35] <megal0maniac> http://www.freeimagehosting.net/uploads/b8505dcfae.jpg
[09:33:41] <megal0maniac> Think it's small enough
[09:34:21] <RikusW> ah I've seen that on some drives :)
[09:34:26] <megal0maniac> Was an issue on the 7200.11 drives
[09:35:24] <rue_house> oh duh, they came up with something else cause theres no master/slave anymore
[09:35:44] <RikusW> and on PATA driver ?
[09:35:52] <RikusW> *drives ?
[09:36:02] <RikusW> is it on the master / slave select pins ?
[09:36:05] <rue_house> its in the master/slave select set
[09:36:19] <megal0maniac> Sneaky
[09:36:19] <RikusW> do you know which ?
[09:36:26] <rue_house> no
[09:36:35] <RikusW> does fb know ?
[09:36:44] <rue_house> I think so
[09:37:02] * RikusW wonders how fb found that info ?
[09:37:11] <rue_house> its too bad a person cant use a hd controller as a gen purp micro
[09:37:24] <megal0maniac> Or the other way around :)
[09:37:28] <karlp> why not?
[09:37:32] <RikusW> then they'd be very useful :)
[09:38:06] <rue_house> I'm pretty sure that reading/writing sectors is part of the command set
[09:38:08] <rue_house> hmm
[09:38:14] <rue_house> interesting notion
[09:38:19] <megal0maniac> That would make sense...
[09:38:19] <RikusW> just grab a handful of discarded hdd controller boards for nearly free
[09:38:35] <rue_house> it was just on Hackaday a few days ago about using the debug i/f on a video card for microcontroller vido
[09:38:37] <megal0maniac> I've made coasters from the platters :)
[09:39:05] * RikusW have a big 35kg hdd ;)
[09:39:12] <RikusW> it old, very old
[09:39:23] <rue_house> not even my 10M is that big
[09:39:30] <RikusW> with a huge magnet, thats insanely strong
[09:39:54] <megal0maniac> http://hackaday.com/2012/10/08/stm32-driving-a-pcie-video-card/
[09:40:00] <rue_house> yup
[09:40:12] <RikusW> once the cover plates is on the end it is impossible to remove by hand
[09:40:30] <RikusW> screwdrivers required...
[09:41:16] <RikusW> it was a mainframe hdd
[09:41:19] <rue_house> I wonder if it would technically be easier to use the debug i/f or a flash card for general storage
[09:42:38] <rue_house> I like how you can see the evolution of sata connectors, just like AGP, as they gradually add retainers and strain reliefs
[09:43:17] <megal0maniac> Sometimes a pain
[09:43:21] <megal0maniac> I'm off, later all
[09:43:31] <rue_house> bye
[09:45:38] <rue_house> evil ebay trick 29472: lump the cost of the item into shipping, if you have to refund, you still get your money
[09:47:07] * rue_house drains nose and goes back to bed
[09:54:21] <tld> rue_house: actually, that's often done for tax-reasons I think. A lot of sellers are doing it as an offer to you… they'll list one with all the price in the item-cost and free shipping, and one with a lot of the cost moved to shipping.
[09:54:39] <tld> if you're getting a refund, you should get shipping-refund as well.
[09:56:31] <rue_bed> it seems that sellers aren't obliged to refund chipping
[10:13:38] <tld> depends on what kind of refund I suppose.
[10:14:01] <tld> if you order an iPod, and get toilet-paper, then that's a refund because they didn't deliver, in which case they should refund shipping.
[10:14:24] <tld> if you get an iPod, and send it back because you didn't want it, I think it's only fair they keep the shipping-cost.
[10:33:44] <OndraSter> yep
[10:35:25] <OndraSter> IT FEELS AWESOME TO HAVE NOBEL PRICE! lol
[10:36:02] <Steffanx> OndraSter likes to feel bullshit?
[10:36:06] <OndraSter> :P
[10:36:11] <OndraSter> it is joke :(
[10:36:13] <OndraSter> fail
[10:37:19] <Steffanx> You think I think you were serious?
[10:37:50] <OndraSter> i got lost
[10:38:48] <Amadiro> OndraSter, nobel-high-five
[10:40:12] <Amadiro> Good thing me and a friend explicitly excluded the nobel peace prize from our bet on who would get a {nobel prize, max-planck medal, fields medal, abel prize} first -- now we got it simultaneously
[10:41:26] <AR_> hi i have an avr on stk500 i want to create roadside bomb how
[10:45:11] <vsync_> wtf?
[10:48:21] <vsync_> AR_: you want to create what? :)
[10:48:58] <AR_> a roadside bomb
[10:49:41] * tld is from (and in) Norway… people here are pretty pissed about who "we" gave the price to this year.
[10:50:12] <AR_> i am too tld
[10:50:19] <AR_> the EU... seriously...
[10:50:19] <tld> it pretty much lost all legitimacy when Obama got it.
[10:50:19] <AR_> wtf
[10:50:22] <AR_> yeah
[10:50:36] <vsync_> so time to avenge the americans... or the islam?
[10:50:40] <tld> fuckin labour people assholes. :(
[10:51:08] <tld> input-protection on 3.3V systems… 3.6V zener?
[10:51:31] <AR_> yea
[11:11:52] <rue_house> AR_, you cant with an AVR, you have to use an ARM
[11:12:14] <AR_> no you are wrong
[11:18:56] <tld> isn't PIC more suitable?
[11:33:34] <Essobi> .....
[14:38:55] <OndraSter> my internet still doesn't work
[14:38:58] <OndraSter> lalalalala
[14:41:44] <Roklobsta> Ondra. Clearly. Did you email your provider about the problem or look at the troubleshooting FAQ on their website?
[14:42:22] <OndraSter> no, they usually either know about it automatically because somebody calls them immediatily or if not, it does not help at all. If it is not fixed in 5 mins by itself, it takes hours - days :P
[14:42:35] <OndraSter> I am not connected to ISP, we are "community which also provides internet as a bonus feature"
[14:42:38] <OndraSter> bonus my ass :P
[14:42:56] <Roklobsta> as hippie commune or a kibbutz?
[14:43:30] <OndraSter> what is kibbutz?
[14:43:42] <Roklobsta> google it
[14:43:44] <OndraSter> hippie - no :P
[14:43:49] <OndraSter> yeah and waste my precious traffic! :P
[14:43:54] <OndraSter> I am down to my last 110MB on my phone
[14:44:12] <Roklobsta> until...?
[14:44:20] <OndraSter> I am slowed down to 16Kbit
[14:44:23] <OndraSter> /s
[14:44:30] <Roklobsta> oh yik
[14:44:37] <Roklobsta> good enough for irc
[14:44:48] <OndraSter> heh
[14:44:53] <OndraSter> my reset is on the 16th :D
[14:45:00] <OndraSter> omg Opera has awful IRC smilies
[14:46:01] <OndraSter> hmm barely 0.8Mbit
[14:46:04] <OndraSter> that is awful :P
[14:46:11] <OndraSter> I did 6Mbit on my phone once
[14:46:18] <OndraSter> over HSDPA that is
[16:14:11] <jadew> finally, after a month of work, I found the issue in my avrisp clone code
[16:14:17] <jadew> !
[16:14:31] <jadew> that signle character made the difference between working code and non working code
[16:14:53] <jadew> as in if (!msg.mode_page)
[16:20:44] <jadew> w|zzy: http://dumb.ro/files/lafront/OLSFront.zip - fixed some bugs
[17:04:54] <OndraSter> riku
[17:05:04] <OndraSter> !seen rikusw
[17:05:04] <tobbor> RikusW was last seen in #avr on Oct 12 12:07 2012
[17:05:20] <OndraSter> just wanted to tell him that my backup internet via my phone is downloading 200kB/s - 600kB/s :P
[17:05:25] <OndraSter> now 200, when I was lucky 600
[17:06:10] <jadew> but I bet you have a data limit
[17:07:09] <creep> for roadside bombing, definitely go for a pic
[17:08:10] <creep> atmel should be used for non suicide missions
[17:08:23] <OndraSter> jadew: yeah
[17:08:26] <OndraSter> about 90MB left
[17:08:28] <OndraSter> I have 600MB month
[17:08:33] <OndraSter> for $7.5
[17:08:47] <creep> satellite net, yeah
[17:08:48] <jadew> enough to watch a movie or two online
[17:08:59] <OndraSter> heh
[17:09:05] <OndraSter> even southpark has now 550MB or so :P
[17:09:07] <OndraSter> 720p only!
[17:09:28] <OndraSter> in the past week I spent about 9GB of data on TV shows
[17:09:29] <creep> well, a 400MB mkv h264 movie is fairly good in quality
[17:09:45] <OndraSter> in minecraft quality
[17:09:56] <creep> no, better than a 700MB avi.
[17:10:01] <OndraSter> like I said
[17:10:03] <OndraSter> in minecraft quality :P
[17:10:29] <OndraSter> I am used to 720p with 41mins vid = 0.9/1.2GB, 45 mins = 1.5GB rips
[17:10:43] <OndraSter> or thereabouts
[17:10:54] <OndraSter> internet is cheap and fast nowadays :D
[17:11:02] <OndraSter> unless you are speaking phone in middle europe
[17:19:06] <creep> OndraSter<< Duration: 01:26:36.67, start: 0.000000, bitrate: 563 kb/s Stream #0:0: Video: h264 (High), yuv420p, 720x384 [SAR 272:261 DAR 170:87], SAR 25:24 DAR 125:64, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc (default) Stream #0:1: Audio: aac, 48000 Hz, stereo, s16 (default) -- 366341852 bytes
[17:19:37] <creep> h264 mkv
[17:20:42] <OndraSter> hmm what happens when you upscale 720x384 to 1920x1080 or whatever matches the ratio
[17:21:16] <OndraSter> :P
[17:23:35] <OndraSter> what a day today. In the morning the water didn't work. In the evening the internet does not work
[17:24:10] <creep> OndraSter<< well its not bitmap, so scaling works well.
[17:24:44] <creep> #ffmpeg for mor e information
[17:25:33] <OndraSter> meh, can't do much without the interwebz. Bb
[19:50:49] <Tom_itx> stk500v2_ReceiveMessage(): timeout
[19:50:56] <Tom_itx> what does that messge mean?
[19:51:08] <Tom_itx> it can't see the board or it can't find the programmer?
[19:52:26] <jadew> it probably means it can't sync with the chip
[19:52:30] <Amadiro> yep
[19:54:29] <jadew> give me a sec, I'll try something
[19:54:42] <jadew> ok, it means it can't talk to the board
[19:54:56] <jadew> Tom_itx, did you specify the right port?
[19:55:07] <Tom_itx> it's an arduino 2560
[19:55:11] <Tom_itx> trying to help someone
[19:55:12] <jadew> that error means it managed to connect to the port
[19:55:20] <Tom_itx> yeah that's kinda what i figured
[19:55:21] <jadew> but the programmer is not responding
[19:55:31] <Tom_itx> could it be a borked bootloader on the arduino?
[19:55:48] <jadew> or a different protocol
[19:56:20] <Tom_itx> it's using the arduino environment with avrdude
[19:57:49] <Amadiro> Tom_itx, have you tried manually resetting the arduino while avrdude is trying to talk to it?
[19:57:56] <jadew> again, you should check for the right ports, if the right port is selected, it means that the usb to serial interface is working, since the port got created on the machine.
[19:58:14] <Tom_itx> Amadiro it's not my board
[19:58:31] <Tom_itx> under win7
[19:59:30] <Amadiro> Tom_itx, I don't know the behaviour of the DTR line on windows or how the newer arduino models react to it anyway, but it might be that he manually needs to reset it
[19:59:31] <jadew> is the usb to serial handled by a dedicated chip or it's on the avr?
[19:59:41] <Amadiro> In order for the bootloader to run, which avrdude tries to establish a connection to
[20:00:02] <Tom_itx> jadew, i'm not sure on that board
[20:00:15] <Tom_itx> it may have a 2nd chip
[20:00:25] <Amadiro> Tom_itx, which board is it exactly?
[20:00:37] <Tom_itx> i said it's the arduino 2560
[20:00:37] <Amadiro> oh, you said already.
[20:00:54] <Amadiro> that one has a 16u4 or so, lemme check
[20:01:00] <Tom_itx> i think so
[20:01:04] <Amadiro> 16u2
[20:01:05] <Tom_itx> but wasn't positive
[20:01:26] <Tom_itx> so that has some type of communication protocol in it as well
[20:01:40] <Amadiro> Either way, if the reset thing doesn't work, I'd reflash the bootloader & the firmware on the 16u2, that should fix any potential corruptions
[20:01:47] <jadew> by the looks of the board it looks that it's handling the usb
[20:01:52] <Amadiro> Tom_itx, the 16u2 just translates usb to rs232
[20:02:11] <Amadiro> plus translates pulling the DTR line low to pulling the RST line low on the main chip
[20:02:15] <Amadiro> but I think that's about it
[20:02:30] <jadew> wouldn't avr dude know to do that?
[20:02:46] <jadew> *avrdude
[20:02:58] <Amadiro> jadew, yeah, but it might not work reliably... I've used a few arduino boards, and it frequently wouldn't reset right
[20:03:19] <Amadiro> I think this might not be handled by avrdude but through the arduino IDE
[20:03:26] <Amadiro> and/or be OS-specific
[20:03:32] <jadew> one way to do it would be to pull the reset line to ground manually
[20:03:41] <Amadiro> linux automatically pulls DTR low when you open the serial port for reading, so that would reset the board
[20:03:41] <jadew> and try to write it that way
[20:04:00] <Amadiro> jadew, pull it to ground permanently?
[20:04:08] <jadew> yeah, before writting it
[20:04:19] <Amadiro> That'd just keep the bootloader in a constant state of resetting?
[20:04:28] <Amadiro> or rather, the chip would just do nothing until the RST line goes high
[20:04:41] <jadew> it would keep the chip in reset state and it might sync with the burner in the sync stage
[20:04:46] <Tom_itx> you'd use FLIP for the U2 firmware right?
[20:04:57] <Amadiro> Tom_itx, yep
[20:05:04] <jadew> yeah, that's a posibility as well, that the 16u would check for reset to be high first
[20:05:06] <Tom_itx> this is windows 7 btw
[20:05:19] <Amadiro> jadew, the burner is on the actual main chip (whichever that was on the mega)
[20:05:39] <jadew> oh
[20:05:40] <Amadiro> jadew, the 16u2 just bridges the connection between the bootloader on the main chip and avrdude on the pc
[20:05:49] <jadew> got it
[20:05:59] <Amadiro> It's a bit backwards, but for some reason they decided to do it this way
[20:05:59] <jadew> in that case keeping reset down, won't do any good
[20:06:07] <Tom_itx> ok would this work... burn the firmware on the U2 first with FLIP then upload the bootloader using the U2 as normal with avrdude?
[20:06:35] <Kevin`> Amadiro: they are using the u2 because it's cheaper than a usb-serial chip
[20:06:38] <Amadiro> Tom_itx, to upload the bootloader, the bootloader needs to already work and accept sketches.
[20:06:56] <Tom_itx> yeah, i think they've had more problems since they switched over too
[20:06:59] <Amadiro> Kevin`, yes, but the question is why they don't use the u2 (or a similar chip that might be bigger) to actually program the main chip
[20:07:00] <Kevin`> Tom_itx: avrdude can work with the same interface flip can
[20:07:22] <Amadiro> Kevin`, then you would not only have the possibility to program the main chip, but also to debug it, which the arduino currently can't do
[20:07:29] <Tom_itx> Kevin`, i know but you need the serial software on the U2 first
[20:07:56] <Amadiro> It'd also be more safe with regard to corrupting your bootloader
[20:08:21] <jadew> wait I thought we established that the u2 has the right software
[20:08:26] <Kevin`> Tom_itx: right, and avrdude supports that bootloader protocol (I think. I remember using something else now that I think back on it)
[20:08:36] <Tom_itx> jadew, i'm not sure at this point
[20:08:38] <Amadiro> jadew, who knows
[20:08:49] <jadew> well, if it showed up in the device manager, it works
[20:08:59] <Kevin`> what does it show up AS in device manager
[20:09:07] <jadew> now, the protocol seems to be avrisp2 from the error
[20:09:13] <Amadiro> jadew, it might still be broken in some weird-ass way and not do the rs232 output correctly
[20:09:16] <Tom_itx> jadew, i figured if he was gonna reload stuff i'd have him reload the U2 firmware first then burn the bootloader on the 2560 next using the U2
[20:09:21] <jadew> Kevin`, as a com port
[20:09:56] <Kevin`> jadew: if it was running the (usb) bootloader it would show up differently
[20:09:58] <Amadiro> Tom_itx, AFAIK the u2 can't burn anything on the 2560
[20:10:07] <Kevin`> at least when you have it run the bootloader
[20:10:08] <Tom_itx> it can't?
[20:10:09] <jadew> Tom_itx, personally, I think the U2 works just fine and the bootloader might be broken or something
[20:10:12] <Amadiro> Tom_itx, so the bootloader on the 2560 needs to already work if you want to upload anything to it
[20:10:21] <Amadiro> Tom_itx, no, the u2 only works as usb-to-serial bridge, nothing more.
[20:10:30] <Tom_itx> so you need an ISP programmer for the 2560 bootloader then?
[20:10:33] <Amadiro> It can't debug, program or -anything the 2560
[20:10:36] <Amadiro> yes
[20:10:39] <Tom_itx> and not thru the U2
[20:10:42] <Amadiro> yes
[20:10:48] <Tom_itx> what a kludge
[20:10:52] <Amadiro> yes
[20:10:55] <Tom_itx> no wonder i hate arduinos so much
[20:11:05] <Amadiro> lol
[20:11:06] <jadew> hold on
[20:11:16] <jadew> how could this get broken?
[20:11:20] * Tom_itx holds 'ON'
[20:11:21] <jadew> what if it's not?
[20:11:23] <Amadiro> Tom_itx, but as said, it might still be the u2 that is broken somehow
[20:11:32] <Kevin`> Tom_itx: you could connect the two isp sockets together with a cable
[20:11:33] <Amadiro> Tom_itx, so doing a dfu update can't hurt
[20:11:35] <Tom_itx> jadew probably trying to flash some program
[20:11:55] <jadew> Tom_itx, I would think the bootloader has some safety in place for that
[20:12:05] <Tom_itx> it shows up in device manager as a serial port
[20:12:22] <Amadiro> Tom_itx, yes, that's the u2 showing up.
[20:12:24] <Tom_itx> jadew you never know what ppl can do
[20:12:27] <jadew> my guess is that it's using the wrong protocol
[20:12:30] <Amadiro> the 2560 might be dead for all you know
[20:12:33] <jadew> OR
[20:12:34] <jadew> yeah
[20:12:35] <jadew> that
[20:12:47] <Tom_itx> jadew i'm not sure what other protocols the arduino environment offer
[20:13:10] <Amadiro> but just update the u2 via FLIP first, it's super easy and might just fix the problem (although probably not)
[20:13:23] <jadew> well, tbh, I don't know why you would make a bootloader that implements the avrisp2 protocol
[20:13:26] <Tom_itx> Amadiro, that was the plan i had
[20:13:26] <jadew> it makes no sense
[20:13:36] <jadew> if I'd make a bootloader, it would be my own, simpler protocol
[20:13:48] <jadew> since you don't need all the checking and messaging when you're programming yourself
[20:14:03] <Amadiro> jadew, it makes sense for a single-chip solution, I guess, but if you have two chips, I'd definitely have one chip program the other
[20:14:10] <Tom_itx> i think i'm gonna have him join here
[20:14:20] <Amadiro> jadew, well, maybe they liked the protocol, I haven't looked at it
[20:14:39] <Kevin`> jadew: probably for software support
[20:14:52] <jadew> Kevin`, yeah, you might be right
[20:15:07] <jadew> either way, I don't think you could easily overwrite the bootloader
[20:15:19] <jadew> haven't used arduinos tho, so I can't tell
[20:15:28] <Kevin`> yeah, the bootloader won't overwrite itself
[20:15:44] <Kevin`> you'd need to use isp/jtag for that, in which case you could use it right now
[20:15:45] <Amadiro> jadew, it might have a protection, but I'm too lazy to read the datasheet to figure out whether the chip can do that, and whether they've actually been smart enough to lock the region the bootloader resides in
[20:15:56] <Tom_itx> ok Parre has an arduino 2560. i'll let him explain what it's doing
[20:15:59] <jadew> tht leaves us with broken U2 or broken main chip
[20:16:07] <Amadiro> Kevin`, sure that a random program couldn't overwrite the bootloader?
[20:16:08] <Tom_itx> so start over !!
[20:16:52] <Kevin`> Amadiro: not sure, i'd have to look at the datasheet. some chips you can only do the flash programming commands from the bootloader section, some anywhere, and there's lock bit options etc
[20:16:53] <Tom_itx> Parre, explain again what it's doing so we can help
[20:17:10] <jadew> Amadiro, a random program sure, but not when you'd write a program using the bootloader (again this is just a thought based on... common sense)
[20:17:11] <Parre> Well, i have uplaoded a sketsch to the board about three times without any problems. then suddenly i get a error message while uploading "avrdude: stk500v2_ReceiveMessage(): timeout"
[20:17:40] <Tom_itx> possibly a bad cable?
[20:17:45] <jadew> nope
[20:17:46] <Amadiro> well, the chip might have the lock bits, but who knows whether they are actually set on the arduino
[20:17:47] <Parre> i don't think the board is reseting automaticly like it shoudl be doing when uploading.
[20:17:49] <jadew> it's not the cable
[20:18:16] <jadew> Parre, did you use the board between the last two writtings?
[20:18:28] <jadew> like before the last one that worked and the one that did not
[20:18:47] <Amadiro> Parre, 1) try rebooting the pc 2) try uploading and then immediately resetting the board 3) use dfu-programmer to re-flash the firmware on the 16u2 4) (last resort) use an ISP programmer to re-flash the bootloader to the main chip
[20:19:04] <Parre> nothing more than connecting to the board via another software (Pronterface)-
[20:19:33] <Tom_itx> Parre that probably just indicates the U2 chip is working
[20:19:41] <jadew> Parre, I assume you already tried disconnecting it from the usb port and plugging it back, correct?
[20:19:45] <Tom_itx> yes
[20:19:53] <Parre> yea, among other things :)
[20:19:59] <Amadiro> Do a reboot too, though
[20:20:14] <Parre> i'll try that. se you in a bit :)
[20:20:17] <jadew> ok, so when you last used the board, before the last attempt to flash it, did everything work properly?
[20:20:17] <Amadiro> the arduino IDE tends to leave random open filehandles all over the place
[20:20:29] <Amadiro> maybe the device file is clogged by a leftover avrdude instance or so
[20:20:34] <Tom_itx> Amadiro told him to reinstall the arduino environment and do a reboot
[20:20:49] <Tom_itx> maybe libusb is borked or something
[20:20:54] <Amadiro> hm
[20:21:04] <jadew> Amadiro, if the com port was left open he wouldn't be able to connect to it again
[20:21:09] <jadew> so he wouldn't get the timeout error
[20:21:24] <Amadiro> jadew, I don't really know how that works on windows
[20:21:45] <jadew> I do, if it's open, you can't connect to it again
[20:21:49] <Tom_itx> you could close it with a comm program
[20:22:09] <Amadiro> well, a reboot should fix it either way
[20:22:17] <jadew> you have to close the connection first, if you disconnect the device before closing the connection
[20:22:29] <jadew> you can connect and disconnect the device again (after closing the handle)
[20:22:39] <jadew> that will close the handle properly
[20:22:51] <jadew> but again, if it was an opened handle issue, he would have gotten a different error
[20:23:20] <Tom_itx> it sorta sounds to me like the bootloader on the 2560 not responding
[20:23:29] <Tom_itx> since the U2 serial works
[20:23:35] <jadew> yeah, which can mean lots of things
[20:24:03] <Tom_itx> i'm not even sure where to find the images to re flash them
[20:24:08] <jadew> I can't stress this enough
[20:24:10] <Tom_itx> i suppose arduino has them somewhere
[20:24:11] <Amadiro> Tom_itx, yeh, it might be... but dunno, I faintly remember solving these kinds of problems by doing "killall arduino && killall avrdude && ./arduino"
[20:24:20] <jadew> but he should MAKE SURE he's using the right port
[20:24:30] <Tom_itx> jadew i'm pretty sure he is
[20:24:31] <Amadiro> oh, yeah, I guess he might be using the wrong port
[20:24:53] <Tom_itx> it may have been left open
[20:25:06] <Tom_itx> ok i bet he rebooted
[20:25:19] <Parre> I'm back. Still timeouts when it starts to Send.
[20:25:33] <Amadiro> Parre, can you try doing the manual reset?
[20:25:37] <jadew> Parre, how are you connecting to it?
[20:25:55] <Parre> i can try a few more times :)
[20:26:00] <Parre> jadew: how do you mean?
[20:26:07] <jadew> Parre, what software?
[20:26:09] <jadew> avrdude?
[20:26:12] <jadew> what's the command line?
[20:26:18] <Parre> the Arduino IDE
[20:26:19] <Tom_itx> jadew, it's the arduino environment
[20:26:24] <Tom_itx> uses avrdude
[20:26:32] <jadew> Parre, ok then check the port setting
[20:26:38] <Tom_itx> i had him do that
[20:27:00] <jadew> he checked against the device manager?
[20:27:06] <Tom_itx> i think so
[20:27:08] <Parre> yea, itäs the right one.
[20:27:12] <Parre> it's*
[20:27:13] <Tom_itx> it showed a seral port
[20:27:28] <Parre> USB Serial Port (COM3)
[20:27:48] <jadew> Parre, does it dissapear when you unplug it?
[20:27:49] <Tom_itx> and you tried a different USB port?
[20:28:03] <Tom_itx> yeah, try that
[20:28:04] <Casper> . . . currently needed DC voltage.... 5V 6.3V 12V and 12V :/ I hate 6.3 :/
[20:28:23] <Parre> yep.
[20:28:57] <jadew> ok
[20:29:09] <jadew> go to the console
[20:29:29] <Parre> okey
[20:29:29] <jadew> and run avrdude -c arduino -p atmega2560 -P COM3
[20:31:26] <Tom_itx> it also sucks that the arduino environment hides the hex files and deletes them when you close the program
[20:31:45] <Tom_itx> they're in a temp folder under an obscure name
[20:31:48] <Amadiro> Tom_itx, yeah, it does
[20:32:15] <Amadiro> When I used the arduinos, I first tried to find them and figure out their whole build system, but after a while I just said "fuck it" and rolled my own
[20:32:20] <Tom_itx> so if you wanna keep em you gotta grab em quick
[20:32:35] <jadew> lol
[20:32:39] <Tom_itx> well, he's just trying to use a reprap
[20:32:50] <jadew> oh, neat
[20:33:09] <Tom_itx> i was gonna get one of the 2560 boards for one myself
[20:33:15] <Tom_itx> just haven't yet
[20:33:23] <jadew> traitor
[20:33:28] <Tom_itx> i know
[20:33:37] <Tom_itx> but all their stuff is targeted to them
[20:33:51] <Tom_itx> there is a new arm board out though
[20:34:03] <Parre> i get avrdude: can't open config file "": No such file or directory avrdude: error reading system wide configuration file "" when running that
[20:34:25] <Tom_itx> i figured it would burp
[20:34:38] <Amadiro> Tom_itx, not horribly exciting when you can get the launchpad stellaris for 5$ with a more powerful chip
[20:35:07] <Amadiro> I also really don't see a place for an ARM arduino in the arduino ecosystem... most people don't need the ARM, the 32 bits, the CAN bus...
[20:35:30] <Tom_itx> Parre, what ver arduino environment?
[20:35:40] <Tom_itx> 1.0.1 or .023?
[20:35:49] <Parre> 1.0 atm. tried 0.23 and 1.0.1 also
[20:36:17] <jadew> Parre, do you remember the last program you flashed on the chip?
[20:36:25] <Parre> yes¨
[20:36:34] <jadew> do you remember what it did?
[20:36:52] <jadew> it would help if you can figure out if the chip is still working
[20:37:02] <jadew> so if you remember what it did, see if it's doing it
[20:37:04] <Parre> exactly the same thing as this one. it's the 3d printer firmware called Marlin.
[20:37:11] <jadew> ah
[20:37:21] <Parre> it is doing it. i can connect to it with the printer software.
[20:37:27] <jadew> ah ha
[20:37:35] <jadew> so the chip is working
[20:37:39] <Parre> yep
[20:37:39] <Tom_itx> their download has the firmware hex for the board. it's listed as a combined U2 2560 hex file
[20:37:43] <Tom_itx> i wonder how that works
[20:38:16] <jadew> probably the 2560 is burning the u2 as well
[20:38:22] <Tom_itx> it must not be resetting
[20:38:29] <Tom_itx> jadew yeah
[20:38:51] <Tom_itx> jadew, i suppose you need to load all that via ISP to the 2560 then?
[20:39:28] <jadew> I don't think so, unless they decided to take over the whole thing
[20:39:53] <Tom_itx> well they say it's a combined hex file so i really dunno
[20:40:27] <Tom_itx> they've got an option in the IDE to burn the bootloader
[20:40:33] <Tom_itx> asks for a programmer
[20:40:34] <jadew> well, the u2 works, the big chip works
[20:40:39] <jadew> burn it by isp
[20:41:08] <Tom_itx> what sucks is you don't really know what they're up to
[20:41:18] <Tom_itx> back to my original complaint with them
[20:41:40] <jadew> I really don't see the point of an arduino
[20:41:55] <Tom_itx> it's supposed to make life simple
[20:41:56] <jadew> it's cheapper to buy the chip and a pcb
[20:41:57] <Tom_itx> :)
[20:42:04] <Tom_itx> not really
[20:42:10] <Tom_itx> you can get one on ebay for $20
[20:42:25] <jadew> and the chip costs more than that?
[20:42:36] <Tom_itx> the 2560 and the U2 probably would
[20:42:40] <Tom_itx> along with all the glue
[20:42:57] <jadew> never used chips that awesome
[20:43:08] <Tom_itx> i got a couple
[20:43:15] <Tom_itx> haven't used em yet
[20:43:16] <jadew> the best chip I used is the atmega328p
[20:43:21] <Tom_itx> yeah
[20:44:05] <Tom_itx> they're fine when they work but when they don't then the poor bastards don't know what to do
[20:45:30] <jadew> do you know of any chips that come in DIP package and have 2 uarts?
[20:45:50] <Tom_itx> not sure
[20:45:59] <jadew> my only complaint about this little project of mine is that I had to go for soft uart on one side
[20:46:09] <Tom_itx> it would likely be a 28 or 40 DIP
[20:46:28] <jadew> 28 would be fine
[20:46:32] <Tom_itx> look on their parametric table
[20:46:50] <jadew> doing that now
[20:47:38] <Parre> Guys, thank you for trying to help me. Need to get some sleep. Should i try to burn a new bootloader tomorrow or do you have some other advice?
[20:48:01] <Tom_itx> i'd do the bootloader as a last resort
[20:48:03] <jadew> I'd burn the bootloader
[20:48:07] <Tom_itx> heh
[20:48:18] <jadew> too much hassle
[20:48:19] <Tom_itx> do you have an ISP programmer?
[20:48:24] <Tom_itx> Parre?
[20:48:27] <jadew> I don't think it's worth the trouble to find the issue
[20:48:36] <Tom_itx> you will need one to burn the bootloader
[20:48:51] <Parre> yep
[20:48:55] <Tom_itx> and i'm not sure how their bootloader works with the 2 chips
[20:49:01] <Tom_itx> which programmer do you have?
[20:49:29] <Tom_itx> the newer IDE doesn't show the combined bootloader
[20:49:45] <Parre> another arduino.
[20:49:59] <Tom_itx> you've done that before?
[20:50:17] <Parre> nope. we'll see how it will work out :)
[20:50:25] <Tom_itx> you may screw em both up
[20:50:48] <Parre> seems like the megatronics board is already screwed up :p
[20:51:21] <Tom_itx> i've got good cheap programmers if it comes to that
[20:51:33] <Tom_itx> hopefully it won't
[20:51:59] <Parre> maybe it will just work when i wake up tomorrow (pleasepleaseplease)
[20:52:08] <Parre> Nighty-night!
[20:54:00] <jadew> Tom_itx, you said you have the salae, right?
[20:54:05] <Tom_itx> yeah
[20:54:30] <jadew> how many samples can it get and how easy it is to navigate trough them?
[20:54:56] <Tom_itx> depends on the sample rate
[20:55:03] <Tom_itx> and it's easy to navigate
[20:55:11] <Tom_itx> download their software and testdrive it
[20:55:12] <Tom_itx> you can..
[20:55:17] <jadew> ah, didn't know that
[20:55:18] <jadew> neat
[20:55:21] <Tom_itx> also works in linux
[20:55:27] <Tom_itx> they have a couple sample files
[20:55:31] <jadew> nice
[20:55:36] <Tom_itx> i can give you a couple too if you want
[20:55:58] <jadew> gonna try it out, I want to see if I can improve the navigation in my own analyzer client :P
[20:56:14] <Tom_itx> i kinda like theirs
[20:56:58] <jadew> gonna check it out now
[20:57:09] <jadew> I love the weekends
[20:58:23] <Tom_itx> they have a stk too i think
[20:58:29] <jadew> stk?
[20:58:40] <Tom_itx> well whatever it's called... for developers
[20:58:41] <Tom_itx> sdk
[20:58:45] <jadew> ah
[20:59:15] <jadew> my parsers are written in js, so anyone can roll their own
[21:00:01] <jadew> I don't think there's much to add to a logic analyzer tho
[21:02:51] <Tom_itx> i may get one of those silly 2560's just to play with
[21:04:07] <jadew> ok... I think my analyzer is better hehe
[21:04:17] <Tom_itx> http://www.ebay.com/itm/MEGA-2560-R3-ATmega-2560-ATmega-16U2-Board-ARDUINOs-IDE-/160886556021?_trksid=p2045573.m2042&_trkparms=aid%3D111000%26algo%3DREC.CURRENT%26ao%3D1%26asc%3D27%26meid%3D2701355301201220823%26pid%3D100033%26prg%3D1011%26rk%3D1%26sd%3D190733166381%26
[21:04:28] <Tom_itx> jadew, what's it based on?
[21:04:39] <jadew> on the open bench logic sniffer hardware
[21:05:09] <Tom_itx> i looked at that when i got mine but the software wasn't done at the time
[21:05:20] <jadew> http://dumb.ro/files/lafront/avrisp_debug.png
[21:05:22] <jadew> this is from earlier
[21:05:26] <Tom_itx> it's more than paid for itself
[21:05:30] <jadew> when I was debugging my dongle
[21:05:59] <jadew> this is on i2c: http://dumb.ro/files/lafront/current.png
[21:06:07] <Tom_itx> i like that you can mouse zoom on the wave
[21:06:19] <jadew> same on mine
[21:07:05] <Tom_itx> and they have several built in protocols
[21:07:32] <Tom_itx> show the hex values and character values as they pass like in a serial stream
[21:07:38] <jadew> mine does i2c, spi, 1-wire and uart currently
[21:07:45] <jadew> take a look at the avrisp debug session
[21:07:54] <jadew> it shows the ascii values in the table
[21:07:55] <jadew> at the top
[21:08:02] <Tom_itx> i did
[21:08:57] <Tom_itx> the other thing theirs does is shows the time when you mouse over a section
[21:09:06] <jadew> mine does that as well
[21:09:09] <jadew> if hold shift down
[21:09:10] <Tom_itx> nice
[21:09:16] <Tom_itx> yours does look nice
[21:09:39] <Kevin`> jadew: do you have a project page for this?
[21:09:49] <jadew> Kevin`, not yet, it's still in alpha
[21:10:08] <Tom_itx> supply support for the saleae :D
[21:10:16] <jadew> if you have an open bench logic sniffer tho, you can download it
[21:10:34] <jadew> Tom_itx, I'm gonna try to support more hardware
[21:10:45] <jadew> but currently I only have the open bench one
[21:11:03] <Kevin`> jadew: does it work with the bus pirate? obviously limited, but most of that software seems to.. and I have one ;)
[21:11:19] <jadew> Kevin`, I don't have a bus pirate :)
[21:11:35] <jadew> I made my own bus pirate thingie (which is what I was working on in that picture)
[21:11:55] <jadew> if you want to try it out: http://dumb.ro/files/lafront/OLSFront.zip
[21:12:08] <jadew> and I'll upload a few sample files in a minute
[21:12:26] <jadew> again, it's alpha, a lot of the functionality planned is missing
[21:12:52] <Kevin`> jadew: some information on protocol support: http://dangerousprototypes.com/docs/Logic_analyzer_mode
[21:13:15] <jadew> Kevin`, it's hard to support it with out having the actual device
[21:13:18] <jadew> :)
[21:13:31] <Kevin`> well, I suppose i'll go grab mine the :)
[21:13:44] <jadew> I might get my hands on one at some point
[21:14:19] <Richard_Cavell> hi everyone
[21:15:16] <Kevin`> jadew: my thought was it should be pretty easy or even already work, since both use the same protocol
[21:15:35] <jadew> Kevin`, not really, I took full advantage of the OLS features
[21:15:48] <jadew> I didn't go for the original sump
[21:16:26] <jadew> http://dumb.ro/files/lafront/samples.zip
[21:17:19] <jadew> sorry there's no documentation and that it might still have bugs, but as I said, it's still in alpha
[21:17:55] <jadew> in the samples zip, there's some samples from a usbtiny, some uart samples, i2c and 1-wire
[21:18:26] <jadew> 1-wire "decode OEM" is not implemented
[21:18:59] <jadew> and I think I'll change the way data gets displayed in a future version, I want to make it more versatile
[21:20:09] <jadew> some unobvious tips: shift dragging will start selecting stuff
[21:20:26] <jadew> at the end of the selection it will measure the distance and the frequency and it will add that info in the log window
[21:20:53] <jadew> holding shift while moving the mouse will get the pulse width, holding ctrl and clicking while doing that, will log that to the log window
[21:21:36] <Kevin`> native windows binary? there's something to be set for .net you know ;p
[21:21:54] <jadew> yeah, it's native
[21:22:03] <Kevin`> as I install wine
[21:22:08] <jadew> ah
[21:22:12] <jadew> it won't work in wine yet
[21:22:21] <jadew> there are some drawing issues I will have to deal with
[21:24:16] <jadew> anyway, it's got custom cursors, you can click the annotations to get the decoded data in view, on the decoded data to get the annotation, custom measurements, stuff like that
[21:26:01] <Kevin`> it seems to work, although i'm sure there are problems you've found from testing that i'm not seeing
[21:26:14] <Kevin`> and I couldn't find a usb cable to try the unsupported hardware :)
[21:26:17] <jadew> Kevin`, redrawing issues, when zooming
[21:26:30] <jadew> well, it won't work under wine
[21:26:36] <Kevin`> how do you zoom, again?
[21:26:37] <jadew> because it can't open the com port
[21:26:39] <jadew> nor finding it
[21:26:44] <jadew> ctrl + wheel
[21:27:06] <Kevin`> seems ok, afaict
[21:27:33] <jadew> right click and drag to move horizontally
[21:27:45] <jadew> or shift + wheel, or just wheel if it doesn't have a vertical scrollbar
[21:28:08] <jadew> right click to get to the menu to add custom cursors (for the measurements window)
[21:28:43] <jadew> ctrl + click on decoded samples to add a cursor at the begining. ctrl + shift + dbl click to add it at the end
[21:29:46] <Kevin`> you know what would likely be useful
[21:29:55] <jadew> please tell
[21:30:12] <Kevin`> a secondary zoomed out display so you can quickly move to somewhere without going back and forth
[21:30:55] <jadew> well you can zoom out and then zoom in, or navigate trough the decoded data (you can set colors on blocks of decoded samples for this exat purpose)
[21:30:59] <jadew> or you can place cursors
[21:31:05] <jadew> and click on their header
[21:31:35] <jadew> I thought about the zoomed out view, but it would have been hard to show the data, since there are so many channels
[21:31:48] <jadew> and the space wouldn't have allowed for a decent display
[21:31:54] <jadew> and then... there's the scrollbar :P
[21:32:51] <jadew> so you can either navigate trough samples and cursors, or right click drag, scroll wheel and scrollbar, it seems like enough
[21:32:56] <jadew> but yeah, I know what you're saying
[21:32:58] <Kevin`> I get incomplete redrawing if I resize the window, but I haven't seen it happen otherwise
[21:33:11] <jadew> Kevin`, yeah, that's where the issue is
[21:33:17] <Casper> does anyone here own a pap2t? I need help to configure it
[21:33:28] <Kevin`> Casper: I do. odd to ask here
[21:34:05] <Casper> Kevin`: basically, outgoing call work, incomming do not, can't figure out why
[21:34:31] <Casper> I did forwarded the port... is there anything else I need to do? (I also changed the port number)
[21:35:54] <Kevin`> let me check if there's a dialplan for incoming, or just outgoing
[21:35:59] <Kevin`> how are you testing incoming calls anyway
[21:36:05] <Casper> from a landline
[21:36:25] <Kevin`> what what? pap2t only has fxs ports
[21:36:43] <Casper> I'm actually wondering which of the 3 is misconfigured, server side, router or pap2t
[21:36:46] <Casper> I have landline here
[21:37:07] <Kevin`> you should not have the ports on the pap2t connected to another provider's landline
[21:37:25] <Casper> I currently have 4 devices: cell, landline, voip softphone and pap2t
[21:37:48] <Kevin`> do you mean you are calling from a landline
[21:37:49] <Kevin`> ?
[21:37:51] <Casper> I created a ring group, that should ring both voip...
[21:37:53] <Casper> yes
[21:37:54] <Kevin`> out to the network and back
[21:38:38] <Kevin`> do you have the device connected directly to a provider or to your own pbx
[21:39:23] <Casper> provider, voip.ms
[21:39:47] <Kevin`> break out wireshark, see whether requests are reaching the device, and what the response is from the device
[21:40:02] <Casper> basically, main account is my softphone, I created a subaccount for the pap2t, I created a ring group that ring both...
[21:40:14] * Casper will make the did ring the pap2t...
[21:40:37] <Casper> . . .
[21:40:44] <Casper> guess what...
[21:40:54] <Casper> ... it didn't saved the routing...
[21:41:13] <Casper> ... but did saved the server change... weird
[21:41:25] <Kevin`> simple problems are always nice
[21:41:46] <Casper> now, testing time (well, wait time)
[21:42:58] <Kevin`> i've found the sipura/linksys devices to be quite good btw. i've never had it crash, good sound quality, even does faxes. it's been sitting there doing it's thing for quite a few years now, took me a while to remember how to log in :)
[21:43:17] <Casper> still not working
[21:43:37] <Casper> sip is udp only right?
[21:44:28] <Kevin`> apparently it can run over several things
[21:45:40] <Casper> I'll do a power cycle
[21:46:47] <Casper> THAT DID IT!
[21:50:04] <jadew> it never occured to me to look at other brand of logic analyzer before
[21:50:15] <jadew> but it seems they all suck
[21:53:36] <jadew> wth is going on with this? am I missing something big?
[21:53:53] <jadew> is there no leader in this area?
[21:55:04] <Casper> jadew: in what price range?
[21:55:28] <jadew> don't know, go for the best, what's out there?
[21:56:41] <Casper> probably the HP/Agilent one
[21:56:50] <Casper> couple of grands...
[21:57:08] <jadew> I was just looking at the agilent one, it looks decent, but I think I can do better
[21:57:36] <jadew> let me check the hp one
[21:58:58] <jadew> can't find any new hp analyzer pictures
[22:01:06] <Casper> I think I'll need a gbit switch...
[22:01:14] <jadew> they're great
[22:01:16] <Casper> my router is now full
[22:01:24] <jadew> that's how I upgraded as well
[22:01:40] <jadew> you get to copy between your home pc's with 100mb/s
[22:02:10] <Casper> the pap2t took the last port
[22:02:33] <Casper> I'm thinking to move my printer to my work area... which mean I'll need another port
[22:02:48] <Casper> and I'll plug the laptop wired there... wifi suck in speed...
[22:02:52] <jadew> you won't regret going gbit
[22:03:05] <Casper> I'm already gbit
[22:03:09] <Casper> I need more ports
[22:03:31] <jadew> http://www.tp-link.com/dk/products/details/?model=TL-SG1024D
[22:03:33] <jadew> this is what I have
[22:04:19] <jadew> are logic analyzers not that widely used?
[22:04:45] <Casper> that I don't know...
[22:05:10] <Casper> I beleive that they move to DSO...
[22:05:22] <jadew> I mean.. is there a lack of customers? I'm trying to find an explanation for the quality of the existings apps
[22:06:29] <Kevin`> oscilloscope and logic analyser fit different needs, except for very basic situations
[22:06:46] <jadew> yeah, but is there not a market for them?
[22:06:53] <Kevin`> jadew: it's been my observation that most hardware related software is crap
[22:06:55] <jadew> why aren't companies investing in good software?
[22:07:06] <Kevin`> I do not have a specific reason for it
[22:07:17] <jadew> Kevin`, you have a point there
[22:07:46] <Kevin`> you have >24 ethernet devices at your house? :o
[22:07:53] <Casper> one thing with logic analyser was to check the timing...
[22:08:05] <Kevin`> oh, it was casper that was full
[22:08:05] <Casper> dso also do it, but they also show more...
[22:08:09] <jadew> Kevin`, no, but... why not have a few ports available? :P
[22:08:24] <Casper> Kevin`: yes, it'S me
[22:08:35] <Casper> even a 100Mbit switch would work ok
[22:08:51] <Kevin`> Casper: dso has two channels unless you spend insane money, in which case it has 4
[22:09:12] <Kevin`> a $20 logic analyser has 8 or 16 or 32 or ..
[22:09:46] <jadew> I wonder if I could find a market for a version of my client that supports commercial products
[22:09:54] <Casper> Kevin`: but speed is an issue...
[22:10:54] <Kevin`> Casper: sure, but since you don't need any analog precision, all you need is an fpga that does whatever speed you require, which is relatively cheap
[22:12:17] <Casper> except when you debug
[22:12:32] <jadew> well, you can have both
[22:12:43] <jadew> a cheap DSO to check the quality of the signal
[22:12:52] <jadew> and a cheap analyzer to check the data and all that
[22:13:05] <jadew> (which is exactly what I have)
[22:14:41] <jadew> it would be nice to be able to see how a signal's quality changes when different modules get activated tho
[22:15:04] <jadew> and that would be clear when using a logic analyzer
[22:16:38] * Casper looks like a crazy businessman with all those phones...
[22:17:01] <jadew> I have only one voip phone, for work and it's always unplugged
[22:17:32] <jadew> I prefer talking to my co-workers over IM or e-mail
[22:17:57] <jadew> not to mention the freaking display backlight is always on
[22:18:41] <jadew> and I haven't found a way yet to get it to signal when some activity happens, so I can handle the backlight myself
[22:21:30] <rue_house> its nice to have cached, collision free conversation medium
[22:31:27] <Casper> there we go, pap2t installed in a niiice way :D
[22:31:37] <Casper> now, if I can just make the ups...
[22:33:50] <Casper> now, let's wind up a transfo in a crappy way, so I can do tests