#avr Logs

Jan 06 2018

#avr Calendar

04:58 AM nuxil: mornings people.
05:03 AM _ami_: nuxil: evening here, :)
05:03 AM _ami_: whats up
05:27 AM nuxil: drinking my morning coffee
05:27 AM nuxil: :)
05:28 AM nuxil: _ami_, are you on the west or east cost?
05:52 AM dev1990: morning, 13:00 there :)
05:53 AM nuxil: same timezone as me :)
05:54 AM nuxil: "13:00" .. europeian.. :) no AM/PM shit :p
05:55 AM dev1990: I heard the story that in USA military they're using time without AM/PM because of often mistakes
05:55 AM nuxil: zulu time.
05:56 AM nuxil: yea its commonly used in the militay so mistakes will not happen :)
05:56 AM nuxil: entire nato uses zulu time. i think every military army does.
05:57 AM dev1990: oh ok
05:57 AM dev1990: I don't even know that
05:58 AM nuxil: havent you been in the army ?
05:58 AM * nuxil was in the navy
05:59 AM nuxil: forced 1 year in service :p
05:59 AM nuxil: im glad i was in the navy tho and not in the army running around in the snowy woods.
06:01 AM dev1990: I'm in military reserve, never been in army tho
06:02 AM nuxil: ok. in the old days. you had a choice. do 1 year service or do 18months of "none millitary" service. like whipe old peoples asses and such.
06:03 AM nuxil: lol so choice was rather simple for me :p
06:22 AM _ami_: nuxil: its 9:22 pm here,
06:22 AM _ami_: Seoul
06:27 AM nuxil: oh right. south korea.
06:30 AM nuxil: i recall you said it before now, my memory is suffering form to many write cyclues. not all data stick well so i tend to forget ;p
06:32 AM Jartza: nuxil: maybe you're suffering from meltdown & spectre ;)
06:32 AM day__ is now known as day
06:34 AM nuxil: lol
06:35 AM _ami_: :)
06:36 AM _ami_: vague statement from stm32 DS: about I2C slave STOPF event (interrupt): Ev4: StopF = 1, cleared by reading SR1 register followed by writing to the CR1 register.
06:36 AM _ami_: what does we write to CR1 reg? :P
06:37 AM _ami_: with some experiments: i able to figure out, that it was actually: PE bit to be set 1 of I2C_CR1 reg.
06:41 AM nuxil: no idea.
06:41 AM nuxil: are you trying to make a slave?
06:42 AM _ami_: yes, it works now.
06:42 AM _ami_: interrupt based slave actually.
06:42 AM nuxil: ok
07:32 AM polprog_: finally back at home
08:07 AM nuxil: where have you been?
08:07 AM polprog_: lots of odd places
08:07 AM polprog_: around poland
08:07 AM nuxil: why?
08:08 AM polprog_: work trips
08:08 AM nuxil: ok.
08:08 AM polprog_: i mean, went there with my dad
08:08 AM polprog_: he works in another city
10:12 AM jragon: What's up with the atmel datasheets? They're redirecting me to a microchip 404 page
10:14 AM jragon: huh, found it. You can access it by the microchip avr product list. I didn't know microchip had anything to do with atmel
11:01 AM rue_bed: jragon, they got bought out
11:01 AM rue_bed: plan to bail when microchip startts screwing it all up
11:02 AM rue_bed: I'v got 1 foot in stm32
11:02 AM jragon: I don't know much about either companies. Why is microchip bad?
11:02 AM rue_bed: bad history with hobbyist support
11:02 AM jragon: Ah
11:02 AM jragon: Shame
11:24 AM mudkip908_ is now known as mudkip908
11:26 AM nuxil: im not sure microchip will screw things up. i mean. why would they?
11:26 AM rue_mohr: they always have
11:27 AM rue_mohr: its just a natural inclination for them, they dont even have to try
11:27 AM nuxil: look at it this way. why would they do that when they have invested hugly in a firm that had a big foot hold in the hobbist market.
11:28 AM rue_mohr: its just a natural inclination for them, they dont even have to try
11:28 AM rue_mohr: its like putting a ball on a hill, even if you make sure its a really low slope hill, its gonna start rolling down
11:29 AM nuxil: if they start messing up they will loose income from the hobbist market. which was probealy one big income source for atmel.
11:29 AM nuxil: and people would move on to other chip makers.
11:30 AM rue_mohr: nice for you to have faith in them, I'm making sure I have options to jump ship
11:31 AM nuxil: i have never used microchip so i do not have any opinions about them really.
11:31 AM nuxil: i have no experiance with them so i dont like to judge them.
11:31 AM rue_mohr: if I'm right, they will start by changing all the avrs to a different programming protocol that is kept under lock and key, and is only available from programmers sold by microchip for $300ea
11:32 AM nuxil: heh i can always jump ship too :p i have a nucleo sitting here still in the package :p
11:32 AM rue_mohr: I'm looking at stm32, because it looks to me like arm arch is not going away
11:33 AM nuxil: rue_mohr, a pic programmer isnt any more than a atmel one. around 40bucks.
11:33 AM rue_mohr: I actually suspect that x86 will be replaced by insane multicore arm chips
11:33 AM rue_mohr: nuxil, wrong
11:33 AM rue_mohr: an avr programmer is from 31c to $1.25
11:33 AM nuxil: im talking about official ones.
11:34 AM rue_mohr: because its open protocol, and everyone and their monkeys uncle has designed a programmer for them
11:34 AM nuxil: the one i saw on atmels site was around 40bucks iirc
11:34 AM rue_mohr: "if I'm right, they will start by changing all the avrs to a different programming protocol that is kept under lock and key, and is only available from programmers sold by microchip for $300ea"
11:34 AM rue_mohr: "lock and key"
11:34 AM rue_mohr: aka, pay us $30000 and we will tell you how the programming works
11:35 AM nuxil: youre such a pessimist :p
11:35 AM * rue_mohr displays the bite wounds on his hands
11:36 AM rue_mohr: using microchip held me back and cost me a lot
11:36 AM rue_mohr: there are a number of reasons arduio was avr based
11:36 AM nuxil: rue_mohr, also keep in mind there is a hole community built around atmel , aurdino etc.
11:37 AM rue_mohr: most of which are ready to jump ship
11:37 AM rue_mohr: notice how arduino cpu support is spreading to other chips?
11:38 AM nuxil: no. i dont have one and dont look up info for it.
11:38 AM nuxil: you mean. like nucleo and discovery stuff ?
11:38 AM rue_mohr: I'm not intersted in arduino, I'm eating up the aftermath of cheap hardware its leaving behind
11:39 AM rue_mohr: you know an stm32 board is $2.50 cad?
11:39 AM rue_mohr: $1.70usd
11:40 AM rue_mohr: https://www.aliexpress.com/item/1pcs-STM32F103C8T6-ARM-STM32-Minimum-System-Development-Board-Module-For-arduino/32720697607.html
11:40 AM nuxil: im sure they are cheap, i payed like 10buck for my nucelo delivered on the door.
11:40 AM rue_mohr: it went down
11:41 AM rue_mohr: whats funny,
11:42 AM rue_mohr: https://www.aliexpress.com/item/New-Pro-Mini-atmega328-Board-5V-16M-Replace-ATmega128-For-Arduino-Compatible-Nano/2031903258.html
11:42 AM rue_mohr: is that the avrs are almost the same price
11:42 AM rue_mohr: 16Mhz vs 72Mhz
11:43 AM rue_mohr: nuxil, have I started to turn you?
11:44 AM rue_mohr: anyhow, I'm making progress on the m328 fft project
11:44 AM nuxil: well. not yeat. when i got the nucleo package. i felt like a arduino user. so it still sitting there.
11:44 AM nuxil: also have zero clue to do with it.
11:45 AM rue_mohr: nuxil, arduino is just an ide, but the public uptake is leaving a trail of really cheap hardware
11:45 AM nuxil: i mean. i go no ideas for any project using a stm32
11:45 AM rue_mohr: I dont use the arduino ide, I flash the avrs directly
11:45 AM rue_mohr: nuxil, ditto, but I have 11 stm32 boards now, so...
11:45 AM nuxil: 11
11:45 AM nuxil: o.O
11:46 AM nuxil: wtf man :p
11:46 AM rue_mohr: tho, flashing the avrs directly, I'v been cheating on some latley and had avrdude upload via the arduino bootloader
11:47 AM rue_mohr: nuxil, I think the doors to chinas "amazing everything" are slowly closing
11:48 AM nuxil: heh. maybe
11:48 AM nuxil: who knows.
11:56 AM rue_mohr: https://www.aliexpress.com/item/Free-shipping-1PCS-MAX7219-dot-matrix-module-microcontroller-module-display-module-finished-goods/32681183937.html
11:56 AM rue_mohr: if it weren't for things like arduino, I dont think things like that would be around
12:02 PM rue_mohr: THATS WHY THE NUMBERS ARE ALL KOOKEY!!!!!!!! and the code on the internets indexes are different! the origional author used 1 indexed arrays, the internet guy changed it to use 0
12:11 PM Tom_L: he buys them because he as some extra storage space in his shop he needs to fill up
12:11 PM Tom_L: 11 pfft... you need 29
12:13 PM rue_shop: I only need a lifetime supply
12:14 PM rue_shop: w/ the ones that others will get form me
12:15 PM rue_shop: hmm, this computer randomly freezes
12:25 PM Emil: rue_shop: arduino bootloader is unnecessarily giving credit to arduino
12:25 PM Emil: it's just a bootloader and in the modern case the project is optiboot
01:54 PM nuxil: haha. so im messing around with the display and i got the best bug ever.. and i think the box is tellig i need something :p
01:54 PM nuxil: https://gyazo.com/b0c8162d984d5e5ba7a15242178a8d24
01:55 PM nuxil: just translate öl :p
07:49 PM nuxil: real quiet in here tonight.
07:50 PM nuxil: i need some coffee. been messing around with display menus to much.
07:57 PM nuxil: some of my simple menu stuff so far :)= https://gyazo.com/ab51aaf283869814cee901075451151d
08:19 PM dev1990: nuxil: nice menu :)
08:20 PM dev1990: I'm doing some research with fold expresions and other stuff from c++17 and how it integrate on avr
08:22 PM nuxil: still have a lot of work to do on the menus. got lots of more stuff to implement.
08:23 PM nuxil: i have no idea what fold expresions is
08:24 PM dev1990: idea in short: addAllValues(value1, value2, value3...... valueN) { return value1 + ... + valueN}
08:25 PM dev1990: and ... is a valid syntax to generate add on all values
08:26 PM dev1990: demo: http://wklej.org/hash/39f5d2c7711/
08:27 PM nuxil: aww.
08:27 PM nuxil: C++ stuff :p
08:29 PM dev1990: I get C demo with that led example and check md5sum on C++17 version and C
08:29 PM dev1990: same asm generated
08:30 PM antto: set(PORTD, PORTD7);
08:30 PM antto: this still kinda looks like a macro
08:31 PM antto: on the xmega, i create structures that represent a pin..
08:31 PM dev1990: yeah I'm not going with OOP there
08:31 PM antto: i'm not using templates tho
08:35 PM nuxil: i dont like stuff with c++ is example: constexpr auto delay = 1000; i mean why do this?
08:35 PM nuxil: constexpr auto delay = 1000; Vs
08:35 PM nuxil: uint16_t delay = 1000;
08:35 PM nuxil: the latter is 6char's less typing :p
08:35 PM dev1990: is your delay const ?
08:35 PM nuxil: and more clear what type your var is.
08:35 PM nuxil: of well.
08:35 PM nuxil: const foobar = same lengt
08:36 PM antto: tbh, i don't like this "auto" thing too much
08:36 PM dev1990: anyway constexpr uint16_t x = 1000; means it's constexpr and it's different from const, because standard say that you even can't get pointer of this
08:37 PM antto: i used it a few times on objects who's type is crazy complicated
08:37 PM nuxil: yea. auto is not usefull in C. not sure about C++. but imo it a thing that should been removed from C. since it was just used in the easly days when porting B Code to C
08:37 PM dev1990: this will dispatch to register and it's almost guarantee by standard, not by compiler optimalizations
08:37 PM antto: but i don't think i want to use it for long-live variables
08:37 PM antto: ..of simple types
08:43 PM dev1990: nuxil: do you know the most used numerical value in C/C++ that is represented in octal numeric system ?
08:44 PM antto: le wat
08:44 PM dev1990: haha
08:44 PM nuxil: i dont get your question ? lol. sorry :p
08:44 PM dev1990: answer: 0
08:44 PM dev1990: because it have leading 0
08:44 PM nuxil: hah
08:45 PM antto: i don't think a zero is understood as octal by the compiler
08:45 PM dev1990: it is
08:46 PM nuxil: yea.
08:46 PM antto: 00 probably, but just 0 i'd think not
08:47 PM nuxil: well no point in doing 00 :p
08:49 PM nuxil: but yea 0 is def most used in most number system. 0xf, 0b1010, 07: p
08:54 PM dev1990: anyway don't focus on my usage of auto, probably I'm overusing it, it's shinning in other areas, esspecialy if you deal with non trivialy construted types
08:55 PM dev1990: I check some details on C17 standard and older
08:55 PM dev1990: I found that static_assert in C was introduced as _Static_assert
08:56 PM dev1990: so
08:57 PM dev1990: _Static_assert(sizeof(my_struct) == 4, "Size of is different, generate compile error!")
08:57 PM antto: i used static_assert, it's nice
08:57 PM dev1990: should work
09:00 PM antto: when you have an object type with many <> in it, and you just want to declare a local variable of that type with an obvious intention, say a pointer, then i'd use auto
09:01 PM dev1990: "for (const auto &value : your_container)" is nice
09:01 PM antto: x_x
09:01 PM antto: i don't like for loops, and this sort of thing makes it even more confusing to me
09:02 PM dev1990: I don't like nasted loops
09:02 PM antto: many of my algorithms require nested loops ;P~
09:03 PM dev1990: yeah, but it's good idea to reduce those if there is a way
09:07 PM antto: nope
09:08 PM antto: some things just gotta be done a certain way
09:11 PM dev1990: antto: if you got a perfect implementation then I'll agree
09:15 PM * dev1990 sidenote: compiler is great on optmizing loop like unrooling, vectorizing and search for common patterns, but nasted loops are often hard to understand for human and compiler
09:20 PM dev1990: night
09:58 PM enh: rue_bed: ?
09:58 PM enh: Ever heard of Lambda_Aurigae again?
10:24 PM funky851: ▄▄▄▄▄▄▄▄▄▄▄ LRH IS LIVE NOW!! TODAYS EDITION SLIMER GETS FUCKED IN VEGAS!! https://www.youtube.com/user/l0de/live CALL 315-505-4666 wimjvuksew: lifeeth x7C3 _enhering_ ▄▄▄▄▄▄▄▄▄▄▄
10:24 PM funky851: 
10:24 PM funky851: ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ LRH IS LIVE NOW!! TODAYS EDITION SLIMER GETS FUCKED IN VEGAS!! https://www.youtube.com/user/l0de/live CALL 315-505-4666 cciwkls: jaeckel Dreamer3_ _enhering_ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
10:25 PM EYECZZretard: ▄▄▄▄▄▄▄▄▄▄▄▄▄ LRH IS LIVE NOW!! TODAYS EDITION SLIMER GETS FUCKED IN VEGAS!! https://www.youtube.com/user/l0de/live CALL 315-505-4666 bcjyxrv: Thrashbarg robink tchebb ▄▄▄▄▄▄▄▄▄▄
10:25 PM EYECZZretard: 
10:25 PM EYECZZretard: ▄▄▄▄▄▄▄▄▄▄ LRH IS LIVE NOW!! TODAYS EDITION SLIMER GETS FUCKED IN VEGAS!! https://www.youtube.com/user/l0de/live CALL 315-505-4666 pidkrfh: robink comptroller Tachyon` ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
10:25 PM EYECZZretard: 
10:41 PM rue_mohr: call my names eh?
10:46 PM * antto writes a message to rue_mohr and sends it via an old snail
10:47 PM rue_mohr: I'm opped so I can kill the bots, but I dont always watch every channel close
10:57 PM Casper: rue_mohr: script!
10:59 PM rue_mohr: yea, we can go by that header it uses
11:00 PM rue_mohr: it did always use nicks ending in 3 digits too, but I mentioned that in #freenode and now it didn't
11:01 PM Casper: if ((nick end with 3 numbers) && (line start with that white)) then ban if (word in line) then ban
11:02 PM rue_mohr: we might get away with nicks that specifically end in 3 digits for a while
11:02 PM Casper: hmmm
11:03 PM Casper: not all of the 3 digits are flooders
11:03 PM Casper: beside
11:03 PM rue_mohr: they might be waiting
11:03 PM Casper: all flooders come in and flood immediatelly
11:03 PM rue_mohr: but I'm pretty sure byte was a real person
11:03 PM Casper: wowowooww relax rue
11:03 PM Casper: you are kicking legit users
11:04 PM rue_mohr: byte512, please use a 4 digit number at the end of your nick
11:04 PM rue_mohr: who the hell is A124 anyhow
11:04 PM Casper: byte512 registered 1 year 14 weeks ago
11:05 PM rue_mohr: side note I'm ONLY kicking them
11:05 PM Casper: rue_mohr: seriously, you have no right to tell people to change their nick unless it is offensive...
11:05 PM rue_mohr: you can use a nick thats not your registered and be identified iwth it
11:05 PM Casper: so?
11:05 PM rue_mohr: I'm just asking, help me seperate bots
11:07 PM rue_mohr: might be a few days before we see another bot attack anyhow
11:07 PM Casper: seriously, just build a spam list, keep track of the ip address... but you won't be able to filter most of them
11:07 PM Casper: seriously, I worked back in the day in some pretty big and floody channel
11:07 PM rue_mohr: I cant get the ip's before they are bumped by someone else
11:08 PM Casper: and all we can do is minimise the impact
11:08 PM Casper: you can't prevent it
11:08 PM Tom_L: it really hasn't been that big a problem overall
11:08 PM rue_mohr: its Rucas, I know it.
11:08 PM rue_mohr: he's on another rampage
11:08 PM Casper: what I ended up doing is monitoring a few channels and combining the results and apply the bans on all the channels before they join those
11:08 PM rue_mohr: he's got a HUGE botnet
11:09 PM Tom_L: i'm not gonna lose any sleep over it
11:09 PM rue_mohr: and the ISP's dont care
11:09 PM rue_mohr: its giving me an itch
11:09 PM Casper: it may be, but it do not change the fact that you can't do much about it
11:09 PM Tom_L: i've noticed
11:09 PM Casper: we couln'T do anything back then where there was no hidden host
11:10 PM Casper: we can't do anything now
11:10 PM Casper: irc got worse for that over the years
11:11 PM * Casper remembers the time he made a script for those ban evaders
11:11 PM Casper: some were too 'stupid' to change their ident
11:11 PM antto: rue_bed anreas303 wasn't a spambot either
11:11 PM Casper: or their 'real name'
11:12 PM antto: rue_mohr seriously, don't kick for 3-digit suffix in the nickname, that's plain wrong
11:12 PM nuxil is now known as nuxil_007
11:12 PM nuxil_007: :p
11:12 PM -!- #avr mode set to +o by ChanServ
11:12 PM -!- #avr mode set to -o by Tom_L
11:13 PM nuxil_007 is now known as nuxil
11:13 PM -!- #avr mode set to -o by Tom_L
11:13 PM -!- #avr mode set to -o by Tom_L
11:13 PM -!- #avr mode set to -o by Tom_L
11:13 PM rue_shop: nuxil, ;)
11:13 PM Casper: thanks Tom_L
11:13 PM Tom_L: just keep an eye on it for now
11:13 PM Casper: rue_shop: go to bed, and relax
11:13 PM antto: rue_bed, go to the shop, and work hard
11:13 PM rue_shop: oh you'll be sorry, that bot ll come back and it'll take me its entire flood time to op so I can try to kick it
11:14 PM rue_shop: bed!? no, I have to search the 400 circuit boards again for an 0805 110K resistor
11:14 PM Tom_L: just get it's ip
11:14 PM Casper: solution: name more ops so people can act when it happend
11:14 PM antto: if you'll write a script for the bot, then write a proper one
11:14 PM rue_shop: I cant, its gone by the time I get there
11:14 PM antto: not a 3-digit kicker
11:14 PM antto: Tom_L they use random hosts
11:15 PM rue_shop: no, I'd look for that header character string
11:15 PM rue_shop: its not random, its a number of expointed machines across networks like comcost that GAVE OUT routers with an expoit in them that lets you use them as a gateway to mask your source IP
11:15 PM rue_shop: and comcost dosn't care
11:16 PM antto: read the messages, count the number of capital letters vs lower case, and those bunch of exotic chars, calculate a percentage from that, and if it's higher than 70.7% - ban
11:16 PM rue_shop: and thats the kinda thing hackers do, exploit it to show its not secure untill it annoys someone into fixing it
11:16 PM rue_shop: no, just look for ▄
11:16 PM nuxil: 
11:16 PM Tom_L: so they're doing us a favor?
11:17 PM nuxil: every line end with it
11:17 PM rue_shop: and start
11:17 PM antto: that may change
11:17 PM rue_shop: its unicode
11:17 PM rue_shop: its plausable to kick anyone who uses more than 4 unicode in a row
11:17 PM rue_shop: cause the odds of anyone doing that are low anyhow
11:17 PM antto: what if i type something in cyrillic?
11:18 PM rue_shop: in 12 years, people almost never do that
11:18 PM antto: лъжец!
11:18 PM rue_shop: less the conversation I had in chineese with someone
11:18 PM nuxil: 䉘啕
11:18 PM rue_shop: my point is that its unusual activity
11:19 PM * rue_shop looks around the shop
11:19 PM rue_shop: hmm
11:19 PM rue_shop: the filter worked
11:19 PM rue_shop: it took 13hours to find components
11:19 PM rue_shop: about 10 mins to build
11:19 PM nuxil: for what ?
11:19 PM rue_shop: bandpass filter
11:19 PM rue_shop: 300hz-3khz
11:20 PM nuxil: ok.
11:20 PM rue_shop: 4th order
11:20 PM rue_shop: or, second? ...
11:20 PM rue_shop: must be 2nd
11:20 PM rue_shop: its responce sucks like a second
11:20 PM day__ is now known as day
11:21 PM nuxil: did you make a active bandpass filter yourself using opamps or such or did you use some IC?
11:22 PM rue_shop: op-amps
11:22 PM nuxil: :D
11:23 PM rue_shop: but I made 4 pin SIPs that have all the passives on it
11:23 PM antto: use a lowpass filter for #avr, set it to pass 0 to 127, and that'll get rid of the exotic chars
11:23 PM rue_shop: so you just plug in the op-amp the sip, and connect
11:23 PM rue_shop: done
11:23 PM * rue_shop goes crosseyed
11:23 PM nuxil: antto, lol
11:24 PM rue_shop: the sip is 0.2" x 0.5"
11:25 PM rue_shop: just add it to the op-amp
11:26 PM rue_shop: I couldn't do the low pass filter your talking about without letting some of the 128+ characters part ways thru and attenuating chars from about 90+
11:26 PM rue_shop: WHICH MEANS SOME OF THE CAPS WOULD NOT WORK RIGHT
11:26 PM rue_shop: or lowercase... ugh
11:29 PM nuxil: heh. all this reminded me of Bec. where one could config the chat to only allow ascii and set a ignore on some chars, etc. :p
11:30 PM nuxil: AsciiNickOnly = Bool; AsciiChatOnly = Bool ; IgnoreChatChars = £,€,æ,Æ,ø,Ø,å,Å :p