#avr Logs

Jun 04 2017

#avr Calendar

04:29 AM rue_house: .
07:00 AM Emil: https://elepaja.fi/telegram/media/AgADBAADlakxG-IooFHx7h0zS-46sbpzuxkABFAZD0mbTxBC1acBAAEC.jpg
07:00 AM Emil: Fuck you atmel
07:00 AM Emil: or microshit
07:00 AM Emil: how can you fuck this up like this
07:02 AM LiaoTao: Emil: ?
07:02 AM LiaoTao: Fuse not accessible in serial mode?
07:08 AM Emil: no
07:10 AM specing: Emil: repost it, now with a giant red circle
07:29 AM Emil: LiaoTao: specing I bet that if brownout was controlled by 6 fuse bits and that bootloader size is no longer selectable they would have mentioned it in the differences document
07:41 AM kre10s: doesn't it make sense for SPIEN not to be modable from spi? so you don't accidentally brick it?
07:42 AM Emil: "yes
07:42 AM Emil: "
07:42 AM Emil: but high voltage programmers are pretty fucking rare
07:42 AM Emil: and it is much easier to allow it to be shut off from spi
07:43 AM kre10s: safety first man. go find a high voltage programmer. you can always use lock bits to protect your code.
07:45 AM Emil: eh
07:45 AM Emil: if you need it, you can have it
07:45 AM Emil: it goes both ways
07:45 AM Emil: This aint not babbys first time programming
07:46 AM Emil: Like my friend says:
07:46 AM Emil: "Tää ei oo mikään 'Elämä lapselle'-konsertti"
07:49 AM kre10s: I don't get it. If you understand, then why are you complaining?
07:53 AM Tom_itx: he likes to
07:59 AM Emil: kre10s: Because I already burned the fuses and flashed the bootloader
07:59 AM Emil: but it doesn't work
07:59 AM Emil: and now it is additional work for me to get it flashed again
07:59 AM Emil: kre10s: why am I complaining? Because how the fuck can you not notice such an error in your datasheet when making it
08:00 AM * Tom_itx gives Emil some better glasses
08:00 AM Emil: Also because even though I can reason the location of the BOOTSZ and BOOTRST bits, they are not conclusive
08:00 AM Emil: Tom_itx: ...
08:00 AM Emil: Tom_itx: can you not read? :D
08:01 AM Tom_itx: i can read fine
08:01 AM Tom_itx: but i didn't read the entire log
09:51 AM julius: hi
09:53 AM Emil: Evening
09:53 AM julius: got a very small (128x32) oled display here, https://ae01.alicdn.com/kf/HTB1_rkuOVXXXXanXXXXq6xXFXXXU/201492522/HTB1_rkuOVXXXXanXXXXq6xXFXXXU.jpg and i also found some code for a 128x64 display with the same chip (SSD1306) http://elegantcircuits.com/2014/08/15/ssd1306-to-atmega328p-using-i2c-protocol/
09:53 AM Emil: Those are cool
09:53 AM Emil: I have some of those, too
09:53 AM julius: hey, how is it going emil?
09:53 AM Emil: but they are really small
09:53 AM Emil: julius: good, you?
09:53 AM julius: yeah :)
09:53 AM julius: pretty good
09:53 AM Emil: good to hear
09:54 AM julius: question: are the i2c id's of all SSD1306 displays the same?
09:54 AM Emil: usually yeah
09:54 AM Emil: But you can also usually select between two
09:55 AM julius: software or hardware wise?
09:55 AM Emil: one for when the addr_select pin is pulled high and one for when the pin is pulled low
09:55 AM Emil: julius: hardware
09:55 AM Emil: but the arduino sketch I tried with the chip just to see if they worked worked fine
10:01 AM Emil: LeoNerd: can you share the io.h and iom328pb.h files?
10:03 AM julius: is it possible to supply the display and the arduino from different power supplys?
10:03 AM Emil: yes
10:03 AM julius: actually my display is completely dark....no output whatsoever
10:03 AM Emil: but the displays works just fine on 5V imho
10:04 AM Emil: julius: but you need to connect the ground pins
10:04 AM julius: ah
10:04 AM julius: it says that the display can do 3.3-5v so that should be fine
10:05 AM Emil: well, usually they are not "really" 5V but the chinese have noticed that they handle 5V just fine ;)
10:05 AM julius: i see
10:05 AM Emil: s/usually they are not/they might/
10:05 AM Emil: +not
10:05 AM Emil: I run mine on 5V just fine
10:06 AM julius: shouldnt there be some activity on the display after it got power?
10:07 AM Emil: No
10:07 AM Emil: Of course not
10:08 AM julius: even with code it just sits there
10:08 AM Emil: check your connections
10:08 AM Emil: and if you have pullups
10:08 AM julius: pullups are there, one second
10:08 AM Emil: IIC I2C 0.91" 128x32 White OLED LCD Display Module DC 3.3V 5V For Arduino PIC
10:08 AM Emil: That's what I bought
10:08 AM Emil: http://www.ebay.com/itm/IIC-I2C-0-91-128x32-White-OLED-LCD-Display-Module-DC-3-3V-5V-For-Arduino-PIC-/332047978840?hash=item4d4f9a1158
10:09 AM julius: got the same size...could you give me your code?
10:12 AM Emil: Hmm
10:12 AM Emil: can't find it
10:14 AM julius: now i got some activity
10:14 AM Emil: https://github.com/greiman/SSD1306Ascii
10:14 AM julius: nothing readable, but 1/5 of the pixels are on
10:14 AM Emil: found it
10:14 AM Emil: https://hackaday.io/project/10533-nano-tty/log/34525-smooth-scrolling-on-a-ssd1306
10:14 AM Emil: those two links should get it working
10:16 AM julius: lets try the first
10:20 AM Emil: try the latter one
10:24 AM julius: the first one got this in it: #include "SSD1306Ascii.h" so i saved the arduino sketch to some directory and copied that .h file from the source forlder of that code to the arduino project folder
10:24 AM julius: but still...arduino keeps complaining about not finding that file
10:26 AM julius: got something, one second
10:31 AM Tom_itx: no typos?
10:31 AM julius: hm...just loading the .ino file into arduino keeps throwing file not found errors....now i copied some files around and it gets stuck at: tmp/ccAutKhk.ltrans0.ltrans.o: In function `main':
10:31 AM julius: /home/julius/Downloads/arduino-1.8.1-linux64/arduino-1.8.1/hardware/arduino/avr/cores/arduino/main.cpp:46: undefined reference to `loop'
10:32 AM Tom_itx: can't help with ardweenie code. i write my own and don't rely on someone else's
10:32 AM julius: me too
10:32 AM julius: but for testing the hardware i thought it would be a good idea
10:33 AM Tom_itx: OLED are touchy to init
10:33 AM julius: im gonna get some ice
10:34 AM julius: cream
10:34 AM Tom_itx: good call
10:34 AM Tom_itx: but this was before any were spi
10:35 AM Tom_itx: maybe that has simplified it somewhat
10:35 AM Tom_itx: err I2C
10:55 AM Emil: wait
10:55 AM Emil: what the actual fuck
10:55 AM specing: here we go again
10:55 AM Emil: are the supported chips hardcoded into gcc-avr?
10:55 AM Emil: they are not from a config file?
10:56 AM Emil: specing: lol
10:56 AM Emil: specing: but this is important
11:00 AM Emil: Argh
11:00 AM Emil: how retarded are the people who build these
11:02 AM Emil: emil@heat:/usr/lib/gcc/avr $ grep -ir "valid arguments to"
11:02 AM Emil: Binary file 4.8.1/lto1 matches
11:02 AM Emil: Binary file 4.8.1/lto-wrapper matches
11:02 AM Emil: Binary file 4.8.1/cc1 matches
11:02 AM Emil: Binary file 4.8.1/cc1plus matches
11:02 AM Emil: I'll answer my own question: Very.
11:03 AM Emil: wait hmm
11:03 AM Emil: I can just compile for m328p
11:03 AM Emil: but then I can't do what I just did (add the files manually)
11:03 AM Emil: Gah this is retarded
11:04 AM FL4SHK: is llvm-avr as dumb
11:10 AM Emil: dunno
12:00 PM rue_house: Emil, what are you trying to compile for?
12:00 PM rue_house: the instruction set is coded into avr-gcc, and io map is part of the header files for that processor
12:00 PM rue_house: there are 3 or 4 (??) instruction sets
12:01 PM specing: io-map is part of avr-libc, which is external
12:01 PM Emil: rue_house: -mmcu=atmega328pb fails
12:01 PM rue_house: drop the b
12:01 PM Emil: can't do that
12:01 PM rue_house: just use m328p
12:01 PM Emil: otherwise io.h doesn't resolve
12:01 PM rue_house: why is it a different processor cde?
12:01 PM rue_house: core
12:02 PM specing: what about just atmega328?
12:02 PM Lambda_Aurigae: 328p and 328pb are different chips.
12:02 PM rue_house: Emil, ah, you have a makefile problem
12:02 PM specing: uh oh
12:02 PM Emil: rue_house: no, I don't
12:02 PM rue_house: whats different about the b
12:02 PM julius: whats so special about the "pb" ?
12:02 PM rue_house: Emil, is your code just C?
12:02 PM Emil: Lambda_Aurigae: I'm compiling the toolchain as we speak
12:02 PM Emil: Lambda_Aurigae: got fucking tired of nothing working
12:02 PM Emil: I'll put up a link to all the resources soon
12:03 PM Emil: rue_house: yeah it is in C
12:03 PM Lambda_Aurigae: rue_house, 2 usart, 2 i2c,,for starters.
12:03 PM Emil: 2 spi
12:03 PM Emil: moar timers
12:03 PM rue_house: spi is just io
12:03 PM rue_house: thats just io
12:03 PM Emil: apparently actual touch channels
12:03 PM Lambda_Aurigae: PB is an upgraded chip.
12:03 PM Lambda_Aurigae: there are several peripheral upgrades.
12:04 PM Lambda_Aurigae: I believe some of the register locations have moved.
12:04 PM rue_house: /usr/lib/avr/include/avr/iom328p.h <-- that file is all that needs the rewrite
12:04 PM Emil: rue_house: ain't fucking rewriting config files :D
12:04 PM Lambda_Aurigae: Emil, my solution, I don't use that chip...my atmega1284p works just fine.
12:04 PM Emil: especially when the bloody toolchain actually supports the chip already
12:04 PM rue_house: http://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwj5lNSrz6TUAhVaVWMKHcrQCyIQFggkMAA&url=http%3A%2F%2Fwww.avrfreaks.net%2Fsites%2Fdefault%2Ffiles%2Fforum_attachments%2Fiom328pb.h&usg=AFQjCNF0k0KPgxN7vMmmS66Ff99AsL8W6g&sig2=YZHBhuIehrrYFtHI4LORBg
12:04 PM Emil: but debian et all repo people don't fucking update the files
12:04 PM rue_house: oh look someone alrady wrote it
12:04 PM Emil: sigh
12:05 PM Emil: rue_house: mate, can you not read? :D
12:05 PM Emil: I already tried that
12:05 PM Emil: Problem is that gcc-avr wants to fucking hardcode the supported chips apparently
12:05 PM rue_house: I'd prove it, but I dont have one :)
12:06 PM Emil: Also what's with the mod powah
12:06 PM rue_house: it dosn't matter if gcc compiles for a m328p or a m328pb, same instruction set, everyting else comes from io---.h
12:06 PM Emil: ...
12:06 PM Emil: I know
12:07 PM Emil: but the iofile is determined by -mmcu=part
12:07 PM rue_house: then again, now that microchip is running the show, the posabiltiy does exist that m328p and m328pb aren't even related chips
12:07 PM Emil: nah, 328pb is atmel time
12:09 PM rue_house: so here is a question for ya
12:10 PM rue_house: why, does, my makefile call gcc with -mmcu=atmega328 when I'm compiling for m328p code?
12:11 PM rue_house: zippo:/files/programming/c/avr/mega328/flashled# make
12:11 PM rue_house: avr-gcc -g -Wall -O2 -mmcu=atmega328 -I/usr/lib/avr/include -Wl,-Map,main.map -o main.elf main.c
12:11 PM rue_house: avr-objcopy -j .text -j .data -O ihex main.elf main.hex
12:13 PM Emil: you do know that m328 and m328p have almost identical registers and that code compiler for m328 should work just fine for m328p?
12:13 PM Emil: But code compiled for m328p does not necessary work with m328
12:14 PM Emil: s/compiler/compiled/
12:14 PM rue_house: root@blackie2:/files/programming/c/avr/atmega328/twinklelights# locate iom328
12:14 PM rue_house: /home/dan/arduino/arduino-1.0.5/hardware/tools/avr/lib/avr/include/avr/iom328p.h
12:14 PM rue_house: /usr/lib/avr/include/avr/iom328p.h
12:14 PM rue_house: but I dont have an io for m328
12:14 PM rue_house: just 328p
12:15 PM julius: whats with the buffer in this code? https://paste.pound-python.org/show/byuLHKjJjD9QNG8WqvZ9/ the buffer is designed for a 128x64 display
12:15 PM julius: it contains some pattern that keeps repeating
12:16 PM Emil: julius: you don't have that many bytes
12:16 PM rue_house: the buffer is that array
12:16 PM Emil: julius: if this is for 328p you don't have but 2k of ram
12:16 PM Emil: oh you are dividing it by 8 also
12:16 PM julius: isnt my code
12:16 PM julius: but it was designed for a 328
12:17 PM Emil: it's fine
12:17 PM Emil: eats half your ram but that's okay
12:17 PM rue_house: who needs a stack anyhow
12:17 PM julius: so the code writes to the buffer first and than to the display?
12:17 PM rue_house: hey so Emil, you want to fire me some code that I should not be able to compile?
12:18 PM Emil: rue_house: sigh
12:18 PM Emil: julius: prolly yeah
12:18 PM Emil: julius: you might be able to generate the data on the fly, too
12:19 PM julius: have to get it working before i do anything
12:21 PM rue_house: Emil, not into proving me wrong?
12:27 PM julius: rue_house: i got one; /usr/lib/avr/include/avr/iom328.h
12:27 PM julius: ii avr-libc 1:1.8.0+Atmel3.5.0-1 all Standard C library for Atmel AVR development
12:28 PM julius: debian testing
12:29 PM rue_house: julius, the idea was a program that would not compile on a system not able to support the m328pb
12:29 PM Emil: sigh
12:29 PM Emil: rue_house: how about you read what is written and not what you think was written
12:29 PM rue_house: Emil, I think your going to wear out 4 keys on your keyboard faster than the rest
12:30 PM Emil: well, at least I'm not on a power trip :)
12:30 PM rue_house: sounds like I come thru wrong :)
12:31 PM julius: dont fight guys, look at my problem...it makes people happy ;)
12:31 PM * rue_house offers Emil new i, g, h, and s keys
12:31 PM Emil: https://static.ylilauta.org/files/7p/orig/ozclqra7/tons%20sedel.jpg
12:32 PM rue_house: I'm gonna to play in some water, bbl
12:32 PM Emil: /kick rue_house tonnin seteli
12:32 PM rue_house: pfff, I'm wearing the hat of invicability!
12:34 PM rue_house: http://images.birthdayexpress.com/mgen/red-cone-party-hats-bx-89792.jpg?zm=1600,1600,1,0,0
12:44 PM julius: nobody will see you in that
01:02 PM Lambda_Aurigae: julius, you have posted code and made some statements but haven't said what the problem is.
01:09 PM rue_house: Lambda_Aurigae, he cant get m328pb code to compile
01:10 PM rue_house: I dont have any m328pb specific code to try to compile
01:10 PM rue_house: and it turns out all my boards are m328p
01:10 PM rue_house: ... and stm32F1
01:11 PM polprog: cant he try to compile fro m328p
01:11 PM polprog: for*
01:11 PM polprog: ?
01:11 PM polprog: and see if it works
01:11 PM polprog: i never did anything with 328
01:11 PM rue_house: no, thats not working apparantly
01:11 PM rue_house: you should
01:11 PM rue_house: arduino pro mini boards (m328p) are cheap as all hell from china
01:12 PM polprog: i guess so, there's a reason they put that one into arduinos
01:12 PM rue_house: you can get them for about $2ea, on board,, with support software and arduino bootloader
01:12 PM polprog: nice
01:12 PM rue_house: you can use the arduino bootloader with avrdude
01:12 PM rue_house: so, as long as it dosn't get in your way, free programmer :)
01:13 PM polprog: yeah i know, but i have a whole bunch of tqfp m16 waiting to be used
01:13 PM rue_house: I like to get the ones with the 6 pin isp also on them
01:13 PM polprog: and some t4313 im learning assembly on
01:13 PM rue_house: wow... txxxx
01:14 PM polprog: they were cheap and had a fair amount of pins
01:14 PM polprog: and they are so cute :v
01:14 PM rue_house: I'm working on the backup plan for when microchip screws up all the avrs, playing with the stm32 baords
01:14 PM rue_house: I got some tiny85 chips a while back
01:14 PM polprog: i was thinking about messing with pics
01:15 PM polprog: but i guess the time will come
01:15 PM rue_house: everything thats hard to do with a tiny13 should now be a peice of cake
01:15 PM rue_house: no, pics are garbage
01:15 PM rue_house: I'v been there
01:16 PM rue_house: if they had a proper memory model, performance, and free C compiler, they would be really far ahead
01:16 PM polprog: there always a book about z80, and a couple of polish motorola clones :P
01:16 PM rue_house: Z80 is nice
01:16 PM polprog: i heard something about sick memory system in pics
01:16 PM rue_house: I started with that and the 6502
01:16 PM rue_house: its paged
01:17 PM rue_house: the C compiler was $$, so you had to write everything in asm, and have fun with paged code and asm!
01:17 PM rue_house: ^^ pics
01:17 PM rue_house: and 4 cycles per instruction
01:18 PM rue_house: avrs were a severe step up
01:18 PM rue_house: even before I started programming them in C
01:18 PM polprog: the z80 book has *all* the stuff i would need to start. even the assembly directive byte code chart
01:18 PM rue_house: yup
01:19 PM polprog: and it has a nice, 80's style cover
01:19 PM rue_house: I have a z80 baord I filled the memory map on
01:19 PM polprog: https://puu.sh/waLvy/de008dd5b5.jpg
01:19 PM rue_house: 256k of rom and 256k of ram
01:19 PM polprog: but it's a bare cpu
01:19 PM rue_house: and then I put an isa bus on it :)
01:19 PM polprog: i think i bought a computer grabbag with the 8083 and some rom, ram and stuff
01:20 PM polprog: extremely cool
01:20 PM polprog: and the documentation is in polish :P
01:20 PM rue_house: I have some 8085 baords tucked away
01:20 PM rue_house: the parallel bus might be nice
01:20 PM rue_house: but last time I needed a parallel bus I just simulated it
01:21 PM rue_house: -rw-r--r-- 1 1005 1005 1518 Oct 31 2015 mcs85bus.c
01:21 PM rue_house: -rw-r--r-- 1 1005 1005 798 Oct 26 2015 mcs85bus.h
01:22 PM polprog: you know that the ti89 uses z80 as the interface cpu?
01:22 PM rue_house: http://ruemohr.org/~ircjunk/projects/wallclock/p1070558.jpg
01:22 PM rue_house: it worked tho
01:23 PM rue_house: didn't know
01:23 PM polprog: lol that clock
01:23 PM polprog: nice workshop by the way
01:23 PM rue_house: :) thanks
01:25 PM Lambda_Aurigae: I thought that was Emil who couldn't get it to compile.
01:26 PM polprog: but is z80 "widely" used nowadays
01:26 PM polprog: i mean, they still make the ti89, probably
01:27 PM polprog: but apart from that
01:44 PM Lambda_Aurigae: I prefer the 8051/8052 over the z80 myself.
01:44 PM Lambda_Aurigae: probably the most used microcontroller family on the planet.
01:49 PM polprog: 80xx?
01:49 PM polprog: but is it a microprocessor or it has the memory and stuff integrated?
01:49 PM Lambda_Aurigae: not 80xx
01:49 PM Lambda_Aurigae: 8051/8052 also referred to as 8051/2
01:50 PM Lambda_Aurigae: it's a microcontroller.
01:50 PM Emil: Lambda_Aurigae: hm?
01:50 PM Lambda_Aurigae: the 40pin dip package usually has external memory interface too.
01:50 PM polprog: cute little chip
01:50 PM Lambda_Aurigae: you can map program and/or data memory to the 64K memory spaces.
01:50 PM polprog: how do you upload the program?
01:50 PM Emil: lol gcc still compiling on rpi3
01:50 PM Emil: perhaps I should have checked that it uses all four cores
01:51 PM polprog: harvard arch, that's quite like avr
01:51 PM Lambda_Aurigae: I have a board here with a ds89c450 that has an external 128Kx8bit nvsram chip attached that can bank switch the 128K in 32K blocks...both data and program.
01:51 PM Emil: Yeah just one core
01:51 PM Emil: welp
01:51 PM Lambda_Aurigae: polprog, with a built in serial bootloader.
01:51 PM Lambda_Aurigae: Emil, make -j 8
01:52 PM Emil: Lambda_Aurigae: don't have no 8 cores
01:52 PM Lambda_Aurigae: polprog, yes...the 8051 series is harvard but with the external memory interface you can make it work both program and data in the same space.
01:52 PM Lambda_Aurigae: Emil, then make -j 4
01:52 PM Emil: 8051 is absolutely horrid
01:52 PM Emil: or so I've heard
01:52 PM polprog: Lambda_Aurigae: thanks.
01:52 PM Lambda_Aurigae: Emil, it rocks!
01:52 PM polprog: Lambda_Aurigae: might have a play with sometimes :P
01:52 PM polprog: sometime*
01:52 PM Lambda_Aurigae: the old 8051 was seriously slow.
01:53 PM Lambda_Aurigae: like 12 clocks per instruction.
01:53 PM polprog: im not mining bitcoins :P
01:53 PM Emil: lolo wtf :D
01:53 PM Lambda_Aurigae: new ones get it to 1 clock per instruction.
01:53 PM Lambda_Aurigae: the ds89c450 does.
01:53 PM Lambda_Aurigae: has 64K internal flash that can be switched out and replaced with external memory sections in 8k blocks.
01:53 PM anonnumberanon is now known as aberon
01:54 PM Lambda_Aurigae: I use nvsram with it
01:54 PM Lambda_Aurigae: it's slower executing from external memory but I can rewrite the nvsram unlimited times.
01:54 PM Lambda_Aurigae: just use a bootloader in flash to do so.
01:54 PM Emil: Does it have instruction cache?
01:54 PM Emil: well, if it is a 8051 I doubt it :D
01:55 PM Lambda_Aurigae: not sure..never really bothered to look..I bet it is a single instruction pipeline.
01:55 PM Lambda_Aurigae: it's 8052
01:55 PM Lambda_Aurigae: which is 8051 compatible.
01:55 PM Emil: I mean
01:55 PM Emil: Most ARMs load to a cache
01:55 PM Emil: then execute from there
01:55 PM Lambda_Aurigae: I'm betting the ds89c450 has a single instruction pipeline like the avr does.
01:55 PM Emil: or at least you can set it up like that
01:55 PM Emil: Lambda_Aurigae: that doesn't matter here
01:55 PM Lambda_Aurigae: yeah,,no cache most likely.
01:56 PM Lambda_Aurigae: original 8051 chips were 12 clocks per instruction so are considered slow as moles-asses..
01:56 PM Lambda_Aurigae: there are high speed cores that are 4 clocks per instruction and the new very high speed cores that go 1 clock per instruction like avr.
01:57 PM Lambda_Aurigae: those are all considered 8052 though...better memory management and more instructions basically.
01:57 PM Lambda_Aurigae: they generally have jack for peripherals though.
01:58 PM Lambda_Aurigae: but it's great for memory mapped peripherals.
01:59 PM rue_house: I found the documentation weak and without a header file for all the io, its laborious to use a chip
02:00 PM rue_house: esp when I looked at using my 8049
02:00 PM Lambda_Aurigae: it can be a pain...I was able to setup sdcc with a header file from maxim for it.
02:03 PM rue_shop3: sdcc should be installed with carefull consideration of how much time your going to put into using it
02:04 PM Lambda_Aurigae: hehe
02:04 PM Lambda_Aurigae: ok..off to soak in a cool tub...got overheated packing up then unpacking the camper this morning.
02:48 PM Emil: Hmm
02:48 PM Emil: I wonder if I should just cut the compiling and do it again with -j4
02:49 PM polprog: crosscompile
02:49 PM polprog: compiling things on the pi is pain
02:57 PM Emil: setting up crosscompiling is hard, though
02:57 PM Emil: I should still do that
02:58 PM Emil: The best thing would be to provision a vm on my server and compile there
02:58 PM Emil: Would be portable, clean and nice
02:58 PM polprog: qemu for starters
02:58 PM polprog: i think it could emulate pi
02:58 PM Emil: >qem
02:58 PM Emil: u
02:58 PM Emil: KVM or go home
02:59 PM Emil: ;)
02:59 PM polprog: oh yeah good vming an arm on an x86
02:59 PM polprog: or maybe im missing something (possible i am)
02:59 PM Emil: It's unfortunate that virsh uses such a fucking shitty config style
02:59 PM polprog: you could always leave it overnght
03:00 PM polprog: but you risk waking up to an y/n prompt
03:00 PM polprog: that popped and paused the whole process in the middle
03:00 PM Emil: yeah
03:00 PM polprog: what are you compiling btw?
03:01 PM Emil: the avr toolchain
03:01 PM Emil: binutils-avr, gcc-avr, avr-libc and avrdude
03:01 PM polprog: which distro hasnt got it in the repos...
03:01 PM polprog: ?
03:01 PM Emil: it's not about having a version of the toolchain in the repos
03:01 PM Emil: it's about those toolchains in the repos being fucking outdated as fuck
03:01 PM polprog: so debian stable i guess xD
03:02 PM Emil: T.T
03:02 PM Emil: Don't stab me bro
03:02 PM Emil: Problem is that armbian testing isn't exactly production ready :D
03:02 PM Emil: On pine
03:02 PM polprog: yeah
03:02 PM Emil: Once this is done I'll put up a link that details how to install an up to date toolchain
03:03 PM polprog: nice
03:03 PM Emil: And a script that does it for you
03:03 PM polprog: i'm not sure how i should setup my blog
03:03 PM polprog: or if i should
03:03 PM Emil: You should
03:03 PM Emil: Are you diying it?
03:03 PM polprog: i dont have time to type posts
03:03 PM Emil: Or selecting some readymade cms
03:03 PM polprog: i enjoy making videos
03:03 PM Emil: polprog: yeah tell me about it lol :D
03:03 PM Emil: You don't need to type long posts
03:04 PM Emil: just "hey I made a new video about x and y, check them out"
03:04 PM Emil: That's enough
03:04 PM polprog: i really thing that if any cms it would be either wordpress or something easy
03:04 PM polprog: because i know worpress ever since i started webdev.. i know its bloated af
03:04 PM polprog: im not sure how secure is it
03:04 PM Emil: >ever since I started webdev
03:04 PM Emil: Sometimes I doubt your age
03:05 PM Emil: eh
03:05 PM Emil: wordpress is fine
03:05 PM polprog: ok maybe i should say, ever since my dad set me up a minecrat blog in 2012 :P
03:05 PM Emil: it's a proven publishin platform
03:05 PM Emil: I don't like it
03:05 PM Emil: But it werks
03:06 PM polprog: why would you doubt my age
03:06 PM polprog: maybe webdev is an overstatement
03:06 PM Emil: Because of the things you know and can do already
03:06 PM polprog: well, thanks :P
03:06 PM Emil: And it seems you have the patience to do it
03:06 PM Emil: That usually only comes with age
03:06 PM polprog: actually im 17 since two weeks ago :P
03:07 PM Emil: Yeah you mentioned a birthday
03:24 PM Emil: yay
03:24 PM Emil: it finished compiling
03:24 PM Emil: now it's libc and then avrdude
03:25 PM Lambda_Aurigae: I used to do make -j 8 on 2 core systems back in the day to build linux kernel and modules.
03:25 PM Lambda_Aurigae: that pretty much maxed out the throughput on the harddrive and beat the shit out of the processor at the same time.
03:25 PM Emil: nice
03:25 PM Emil: Yeah I should do that
03:26 PM Lambda_Aurigae: back when I was running raid 1+0 with 4 80gb PATA harddrives on a dual athlon mp2000+ system with 4GB ram...yeah, 4GB on 32bit back in 2003
03:26 PM Lambda_Aurigae: current rPI has more processor gumption.
03:27 PM Lambda_Aurigae: but I think my caching raid card made life awesome back then...64MB of ram on the raid card.
03:28 PM Emil: nice
03:34 PM rue_shop3: hardware raid is great till your card dies and you find out that a) of course its obsolete and there is no backwards compatible replacement, b) it used a proprietory setup on the drives to store the raid data
03:35 PM rue_shop3: therefore, I always use software raid
03:35 PM rue_shop3: seen toooo much data lost because of hardware controller failures
03:36 PM polprog: i tried to use hw raid once
03:36 PM polprog: the card was totally useless
03:36 PM polprog: eventually i just said fuck it
03:36 PM Lambda_Aurigae: rue_shop3, agreed totally...but that card was for speed more than raid redundancy.
03:36 PM polprog: and made two separate drives with the same data
03:36 PM Lambda_Aurigae: raid 0+1 with cache in 2003 was fast.
03:37 PM Lambda_Aurigae: only thing faster was going hardware raid 15Krpm scsi drives...at least at the time...
03:38 PM Lambda_Aurigae: when writing data it would write to two drives simultaneously...when reading it would seek and read each drive independently.
03:40 PM Lambda_Aurigae: I thought it was damned impressive for what it cost and when I had it compared to other systems.
03:41 PM polprog: in my case that would be a crude raid 1
03:41 PM polprog: heh
03:46 PM Lambda_Aurigae: it did a striped raid between 2 drives...so with just 2 it would read and write alternately to the drives...giving you one big drive with great throughput.
03:46 PM Lambda_Aurigae: then adding mirroring to that with 2 more drives...and it was smart enough to only read from one drive at a time and seek ahead the others if needed.
03:47 PM Lambda_Aurigae: so it was a mirrored striped raid.
03:48 PM Lambda_Aurigae: and it could rebuild any of the 4 drives if only 1 died at a time...or if an A drive and B drive both failed it could rebuild but not if both A drives or both B drives failed.
03:49 PM polprog: so that would make it a raid 01?
03:49 PM Lambda_Aurigae: yeah.
03:50 PM Lambda_Aurigae: or 1+0 or 0+1 depending on time frame in the last 20 years you had it.
03:50 PM polprog: if i had enough disks i would make that as a part of a nas i will have to make
03:50 PM Lambda_Aurigae: raid 5 or raid 6 is better overall for data protection, specially if you can have a hot spare drive online.
03:51 PM polprog: in my case its least drives possible
03:51 PM polprog: so probably a hot swap dock
03:51 PM polprog: and 4 disks
03:53 PM polprog: or go cheap and make raid 5 with 3 disks :D
03:53 PM Tom_itx: all TB ssd
03:53 PM Tom_itx: pcie
03:54 PM polprog: ssd? im reluctant
03:54 PM Tom_itx: i've been running 4-5 for a while
03:54 PM Tom_itx: samsung evo
03:54 PM polprog: maybe ill get and ssd for the t430 im getting
03:55 PM polprog: and this time i wont forget a swap partition during the arch install :P
03:55 PM polprog: so i can hibernate
03:55 PM Tom_itx: i keep things backed up and wanted the speed improvement
03:56 PM Tom_itx: run hot?
03:56 PM Tom_itx: i typically don't do hybernate
03:56 PM polprog: i use sleep mode too
03:57 PM polprog: it's definitely gonna be dual booted and i heard that windows doesnt go well with hibernated linux
03:57 PM polprog: or something along the lines
03:58 PM Tom_itx: i dual booted one that naturally didn't support it and it seems ok
03:58 PM Tom_itx: haven't done anything fancy with it though
03:58 PM polprog: naturally didnt support dual boot
03:58 PM polprog: what kind of sorcery is this
03:58 PM Tom_itx: yeah iirc it was 7
03:59 PM Tom_itx: they dropped support for it after xp i think
03:59 PM polprog: maybe you're talking about dual booting windows
03:59 PM Tom_itx: 7 & dos 6.22 :)
04:01 PM polprog: lol why. i bet it was legacy soft and/or games
04:01 PM Tom_itx: i still support some dos code i wrote
04:01 PM Tom_itx: you wouldn't believe how fast it compiles on a modern system with a ssd
04:02 PM polprog: yeah, you dont even have time to get your wooden sword
04:02 PM polprog: :(
04:02 PM polprog: what did you write it for?
04:02 PM Tom_itx: database apps
04:03 PM Tom_itx: i was cleaning up some code i wrote in 88 a while back...
04:03 PM Lambda_Aurigae: I just run dos in a vm..it's faster than anything out there when the OS was new and/or current.
04:04 PM Lambda_Aurigae: but I haven't fired that vm up in years.
04:05 PM * Lambda_Aurigae goes back to reading vic-20 assembly code.
04:07 PM Lambda_Aurigae: oh no!
04:07 PM Lambda_Aurigae: Jean Sammet died!
04:13 PM Lambda_Aurigae: she was one of the 6 original creators of COBOL
04:18 PM rue_house: you should see dos on a modern x86 processor
04:18 PM rue_house: the whole thing fits in cache
04:18 PM rue_house: #define FAST
04:18 PM rue_house: like L1 processor cache
04:19 PM polprog: and some models could fit a ramdisk there
04:19 PM polprog: some CPU models *
04:19 PM rue_house: and there is no multitasking, so there is no cache miss
04:19 PM Tom_itx: yeah it compiles rather quick
04:20 PM rue_house: with the dos logo delay turned off, it tends to boot before an lcd monitor can get started up
04:20 PM polprog: wow
04:21 PM rue_house: ok I need to keep working on my project
04:21 PM polprog: i think i have something like qemu on my phone
04:21 PM rue_house: list
04:21 PM polprog: and a freedos iso
04:22 PM rue_house: multitasking kills computer speed
04:24 PM rue_house: I should make an intranet todo managment system
04:26 PM rue_house: UID, priority, desctiption, date created, date completed, subpriority_of__UID
04:26 PM Lambda_Aurigae: Emil, you think compiling avr-gcc on the rPI is slow?
04:26 PM Lambda_Aurigae: Early COBOL compilers were primitive and slow. A 1962 US Navy evaluation found compilation speeds of 3–11 statements per minute. By mid-1964, they had increased to 11–1000 statements per minute. It was observed that increasing memory would drastically increase speed and that compilation costs varied wildly: costs per statement were between $0.23 and $18.91.
04:26 PM rue_house: insert into tasks values...
04:27 PM Emil: TOOLCHAIN=BUILT
04:27 PM rue_house: now you can find out wahts wrong and rebuild it
04:27 PM rue_house: *sigh*
04:27 PM rue_house: ;)
04:27 PM Emil: Lambda_Aurigae: wtf :D
04:28 PM Lambda_Aurigae: reading the wikipedia article on COBOL...it is very interesting.
04:28 PM Lambda_Aurigae: there is an OO-COBOL now!
04:29 PM cehteh: its there since long time
04:29 PM Lambda_Aurigae: 2014
04:29 PM cehteh: and cobol for cloud computing :D
04:29 PM cehteh: i'Ve seen OO things for cobol around 2000
04:30 PM polprog: there was a jquery cobol or fortran framework
04:30 PM polprog: take that
04:30 PM cehteh: yes
04:31 PM Lambda_Aurigae: the COmmon Baboon Oriented Language.
04:33 PM cehteh: cobol is basically ol IBM mainframe assembler .. in plain english :)
04:33 PM polprog: thats one way to make a new language :D
04:35 PM enhering is now known as Guest21207
04:41 PM Emil: Nonononono
04:41 PM Emil: https://emil.fi/jako/kuvat/2017-06-05_00-11-05_ik7uGJZx.png
04:41 PM Emil: HAVE THE RETARDS CHANGED THE FUCKING NAMING CONVENTION
04:41 PM Emil: top kek :D
04:42 PM Tom_itx: you get so upset over code...
04:42 PM Emil: Well
04:42 PM Emil: when you have spend quite a lot of time trying to get shit working
04:43 PM polprog: https://www.youtube.com/watch?v=tFyXUUJumAM
04:43 PM polprog: lololol
04:44 PM polprog: https://www.youtube.com/watch?v=0INWRpI_I2o
04:46 PM Emil: Are you kidding me?
04:47 PM Emil: the newest libc didn't include m328pb
04:47 PM Emil: Sigh
04:48 PM polprog: please tell me they did not change anything
04:48 PM polprog: and it's a bad joke
04:48 PM twnqx: i can't link my at90can code that worked for years with the latest major revision
04:48 PM twnqx: no idea what's the issue
04:56 PM Emil: FUCK YEAH
04:56 PM Emil: I had to copy those files that I did earlier
04:56 PM Emil: top fucking kek
04:57 PM polprog: so what was the problem
04:58 PM Emil: The latest toolchain does not include support for 328pb ":3"
04:58 PM Emil: Still had to fucking manually install the files for them
04:58 PM Emil: it*
05:11 PM Emil: https://emil.fi/toolchain
05:11 PM polprog: nice to type
05:11 PM polprog: not indexable == useless
05:11 PM Emil: hm?
05:12 PM Emil: whatcha mean
05:12 PM Emil: ?
05:12 PM polprog: if it's gonna be a bare file, not linked on any site, people wont find it
05:12 PM Emil: the file type is .txt
05:12 PM Emil: https://emil.fi/toolchain and https://emil.fi/toolchain.txt are the same thing
05:13 PM Emil: but yeah, I know it's not very findable
05:13 PM Emil: I'm okay with that
05:13 PM Emil: It's mostly for this channel and my own documentation :*
05:13 PM polprog: you seem to link the intro file here when it's necesary
05:13 PM Emil: yeah
05:13 PM polprog: nice of you :)
05:14 PM polprog: tbh i set up apache on my site first to have my own pastebin
05:14 PM Emil: >apache
05:14 PM Emil: please fucking no
05:14 PM Emil: use nginx like a real person ;)
05:15 PM polprog: im not gonna learn another server... i've had enough of apache patching so it's more secure
05:15 PM Tom_itx: i can pronounce apache though
05:15 PM polprog: also, nginx on linux? lol, LAMP forever
05:15 PM Emil: wtf niga
05:15 PM Emil: if you are going to learn just one
05:15 PM Emil: pick nginx
05:15 PM Emil: and what the fuck
05:16 PM Emil: nginx on Linux is the masterrace solution
05:16 PM polprog: theres always flask so you can write in pseudocode then
05:16 PM Tom_itx: wanna be banned for racial slurs?
05:17 PM polprog: still not sure if this channel talks in irc jargon or 4chan jargon :D
05:17 PM Tom_itx: rather pushing it with the language anyway
05:17 PM Tom_itx: fwiw
05:18 PM Emil: Tom_itx: never been a problem
05:18 PM Emil: Stop it with the idiocy
05:18 PM specing: polprog: you are a lamp
05:18 PM specing: using outdated tech
05:18 PM Tom_itx: i'm in a bannable mood too. just had to put my dog to sleep
05:18 PM Emil: polprog: but really
05:19 PM Lambda_Aurigae: specing, needs to switch to MPLAMPS
05:19 PM specing: MPLAMPSX
05:19 PM specing: !
05:19 PM Emil: polprog: you really might want to migrate to nginx.
05:19 PM Lambda_Aurigae: Mostly Pointless Lamp Switching.
05:19 PM polprog: ill see
05:19 PM Emil: But if you are comfortable with apache, well, eh
05:20 PM Lambda_Aurigae: we need to drop all this kr@p and go back to gopher servers dangit!
05:20 PM Emil: Hmm
05:20 PM Emil: Would be a cool project perhaps
05:21 PM Emil: HTTP is super wasteful
05:21 PM Emil: Kind of surprised that people didn't come up with a better solution
05:21 PM Lambda_Aurigae: all we need is gopher and usenet.
05:21 PM Emil: well
05:21 PM Emil: rich content is pretty nice
05:21 PM Lambda_Aurigae: and irc for instant comms...screw twitter and such.
05:22 PM Emil: irc is actually a rather horrible architechture
05:22 PM Emil: but it's a devil we know
05:22 PM Lambda_Aurigae: you can irc with telnet if you pay attention..hehe
05:22 PM Emil: stop referring it to as telnet :D
05:22 PM polprog: you can irc over ssh too
05:22 PM polprog: :P
05:22 PM Emil: eh
05:22 PM Emil: polprog: it's TLS if you want
05:22 PM Emil: encryption
05:23 PM Lambda_Aurigae: terminal with raw sockets then.
05:23 PM Emil: Lambda_Aurigae: not raw raw sockets :D
05:23 PM Emil: that's just, please no
05:23 PM Emil: tcp sockets are fine, though
05:23 PM Emil: ircking through netcat is easy
05:23 PM polprog: i once wrote a java p2p chat as a messaround with the tcp socket library :P
05:24 PM Lambda_Aurigae: polprog, back when they were fashionable, I was writing irc bots in C for the fun of it.
05:25 PM Lambda_Aurigae: and irc clients that would draw pictures using irc as the communications medium...used text drawing commands...that was really fun.
05:25 PM polprog: hey that's awesome
05:25 PM polprog: video over IRC
05:25 PM polprog: :D
05:25 PM polprog: would be better quality than skype
05:26 PM Lambda_Aurigae: send a script that's a 640x480 image...takes 10 minutes to post...and you have to limit speed due to getting kicked off the server for flooding.
05:26 PM Lambda_Aurigae: or, rather, to avoid getting kicked off the server for flooding.
05:26 PM polprog: http://caca.zoy.org/wiki/libcaca
05:27 PM testiperkele: YOLO
05:27 PM testiperkele: irking
05:27 PM testiperkele: irking throug netcat
05:27 PM Lambda_Aurigae: even came up with a working next generation irc client and server combo...the servers could do multi link between them and the client could connect to up to 4 servers at once so if one server went down you still had full functioning connection to the irc network and the other servers that were still running.
05:27 PM Lambda_Aurigae: was supposed to eliminate netsplits.
05:28 PM polprog: nice
05:28 PM testiperkele: The protocol is super simple, just CR/LF based
05:28 PM polprog: im looking at netcat now
05:28 PM testiperkele: polprog: it's installed by default under nc, usually
05:29 PM testiperkele: strange that I'm not getting PING/PONGS. I wonder if it's only after no activity on #freenode
05:29 PM polprog: i know, im reading the help
05:29 PM Lambda_Aurigae: hmmmmm...should write an irc server to run on the atmega1284p with an enc28j60 ethernet dapter.
05:29 PM testiperkele: on ircnet <3 it's constant
05:30 PM Lambda_Aurigae: testiperkele, ping/pong is often turned way down and in some cases off.
05:30 PM Lambda_Aurigae: you never ping out...just sit in limbo.
05:31 PM Emil: Lambda_Aurigae: On ircnet you do get ping/pongs even if you are active
05:32 PM Lambda_Aurigae: I have been told by irc server admins that they turn it way down so as to cut down on network traffic for their busy servers....but I suppose some still run it full bore
05:33 PM Emil: hmm
05:33 PM Emil: interestin
05:34 PM Emil: Hmm
05:34 PM Emil: I should go to bed
05:34 PM Emil: Course starts tomorrow
05:35 PM polprog: i should too
05:35 PM polprog: let me sort out netcat first
05:35 PM polprog: looks like a cool tool
05:35 PM Emil: polprog: you wanna try irc?
05:36 PM Emil: nc chat.freenode.net 6667
05:36 PM Emil: NICK yournickhere
05:36 PM polprog: i know
05:36 PM Emil: USER username 0 * :Real name
05:36 PM Emil: And then join a channel and send messages
05:36 PM polprog: i wanna set up a listener in one term and connect to it from another
05:37 PM Emil: nc -vvvl PORT
05:37 PM Emil: nc localhost PORT
05:37 PM Emil: select a port above 1024 and you don't need sudo
05:37 PM polprog: dont spoil
05:37 PM Emil: above 1023*
05:38 PM Emil: polprog: heh, I am teaching you
05:39 PM polprog: ok it works
05:39 PM polprog: thx
05:39 PM Emil: np
05:39 PM polprog: emacs over TCP/IP
05:39 PM Emil: lol
05:39 PM Emil: Yeah possible
05:40 PM Emil: Anycase
05:40 PM polprog: nc -l localhost -e "emacs -nw" -p 1337
05:40 PM Emil: there are contradicting guide on the internet that
05:40 PM Emil: NO
05:40 PM Emil: DON'T
05:40 PM Emil: I was just about to say that do not mix -l and -p
05:40 PM polprog: doesnt work
05:40 PM Emil: the man page warns about this :D
05:40 PM Lambda_Aurigae: what the hell?
05:40 PM polprog: no manpage on my system for that
05:41 PM Lambda_Aurigae: you trying to tear a hole in space and time?
05:41 PM Emil: man nc`?
05:41 PM Emil: man netcat?
05:41 PM Lambda_Aurigae: doing that will get your ancestors sucked into a quantum flux inversion field.
05:41 PM Emil: also not all manpages have -e
05:41 PM Emil: it's in the bsd version iirc
05:42 PM Emil: sorry
05:42 PM Emil: not all netcats
05:42 PM polprog: mine has
05:42 PM Emil: you sure?
05:42 PM polprog: its listen in help
05:42 PM Emil: nice
05:42 PM polprog: listed*
05:45 PM polprog: oh
05:45 PM polprog: it works
05:45 PM Emil: polprog: tell me the port you are listening on :3
05:45 PM Emil: and your server ip
05:45 PM polprog: partially
05:45 PM polprog: its in localhost
05:45 PM Emil: then there's no harm in sharing >:)
05:45 PM polprog: maybe ill setup a small open port with an easter egg later
05:46 PM polprog: right now it's failing at "passing control to the specified program" when i try to run emacs in text mode
05:53 PM polprog: im halfway through
05:54 PM polprog: what's the typical terminal size?
06:00 PM Emil: 80x20
06:00 PM Emil: 80x24*
06:00 PM Emil: https://help.gnome.org/users/gnome-terminal/stable/app-terminal-sizes.html.en
06:19 PM polprog: ok, guess the ip and the port :D
06:20 PM Emil: on polprog.net?
06:20 PM polprog: yeah
06:24 PM polprog: its taking you a considerable amount of time
06:24 PM polprog: ah
06:24 PM Emil: Nice
06:24 PM Emil: Lol nmap fucking failed
06:24 PM polprog: lol, how dare u nmap me
06:25 PM Emil: after namp showed me the middle finger
06:25 PM Emil: This was my order
06:25 PM Emil: 420, 6969, 1337
06:25 PM Emil: :D
06:26 PM Emil: Nice pic, though :)
06:26 PM polprog: thanks, it's done by img2txt
06:40 PM day_ is now known as daey
07:00 PM Tom_itx is now known as Tom_L
07:18 PM SelfReflection: !help
07:22 PM SelfReflection: I have boards like this: http://digistump.com/products/1
07:22 PM SelfReflection: the usb attiny85 dev boards
07:23 PM SelfReflection: does anyone know of a program I can flash to it to use it as a usb-serial adaptor (to hook a serial device up to my desktop through the attiny dev board)?
07:24 PM specing: vusb uart demo maybe?
07:28 PM cehteh: dunno if that works well, tiny85 has no uart, you need some softserial or USI serial stuff .. together with vusb that might be a bit tight on timing
07:30 PM SelfReflection: thanks :)
07:30 PM Lambda_Aurigae: it's been done.
07:30 PM Lambda_Aurigae: look at the v-usb demo projects.
07:31 PM SelfReflection: I don't want to fiddle too much.. the goal is to be able to hook up an orangepi to my desktop to set it up the first time, not really to mess with the usb-ttl stuff ..
07:31 PM Lambda_Aurigae: well, v-usb is a hack.
07:31 PM SelfReflection: just had a bunch of these attiny85 dev boards with usb
07:31 PM Emil: SelfReflection: you don't have a serial usb adapter?
07:31 PM Lambda_Aurigae: making cdc work at low speed is even more of a hack.
07:31 PM Lambda_Aurigae: those tiny85 boards have a usb chip on them?
07:31 PM cehteh: doesnt the orangepi have usb?
07:31 PM SelfReflection: I never got vusb to work too well .. well.. I was trying to use a promicro16 as a mouse
07:32 PM Emil: cehteh: it does, and one could have it emulate a serial port over usb iirc
07:32 PM cehteh: the digistump is a bare tiny85
07:32 PM Lambda_Aurigae: yup...nope...that digistump thing uses v-usb.
07:32 PM Emil: Good night
07:32 PM SelfReflection: and was using its serial port for development/debugging -- but it would end up being used in windows, eventually (for the person who needed the device), and each time I hooked it up to windows I had to actually run the mode settings from commandline to set it up..
07:32 PM SelfReflection: Emil, no.. no serial usb adaptor
07:33 PM SelfReflection: maybe now's a good time to order one
07:33 PM cehteh: SelfReflection: it would be easier and more reliable to get some ftdi adapter
07:33 PM cehteh: search ebay/amazon
07:33 PM Lambda_Aurigae: or a computer with a serial port.
07:33 PM day_ is now known as daey
07:33 PM cehteh: https://www.amazon.de/Adapter-FT232RL-Arduino-Christians-Technikshop/dp/B0178HVEH0/
07:33 PM cehteh: for example
07:34 PM SelfReflection: I don't know much (anything) about ftdi
07:35 PM cehteh: that are just generoc usb<>serial adapters
07:35 PM Lambda_Aurigae: ftdi chips give you serial on one end and usb on the other generally.
07:35 PM Lambda_Aurigae: some have extra gpio capability but mostly ftdi chips are used for usb-serial adapters.
07:35 PM cehteh: there are some variants and some other vendors with similar chips
07:35 PM cehteh: in most cases they just work out of the box
07:36 PM cehteh: plug it into usb and you see a serial device
07:36 PM Lambda_Aurigae: mostly they just work...unless you have a counterfeit chip and ftdi goes stupid again and sends out a firmware update that breaks them.
07:36 PM cehteh: well .. for windows
07:36 PM cehteh: under linux they all work because you dont use the original fucked up ftdi drivers anyway
07:37 PM Lambda_Aurigae: true.
07:37 PM cehteh: anyway, they work, even at higher serial speeds
07:37 PM SelfReflection: I'm looking for one with a female header on it..
07:37 PM SelfReflection: so I don't need to worry about bent pins when I keep this in a box of stuff :)
07:37 PM cehteh: v-usb and softserial on a tiny85 will be painful there
07:37 PM Lambda_Aurigae: make sure you get one that supports the voltage levels you need.
07:37 PM SelfReflection: how do you guys store your little boards like this?
07:37 PM Lambda_Aurigae: in a pile on the workbench
07:37 PM kre10s: The ATA6286C has both UHF/VHF and LF... what typical applications demand that?
07:38 PM Lambda_Aurigae: kre10s, hacking police radios
07:38 PM kre10s: do explain a bit more!
07:38 PM SelfReflection: the rs232 pins are too fat for me to slide female jumpers onto I think
07:38 PM Lambda_Aurigae: kre10s, if you have to ask you don't need to know..it's a hacker motto thing.
07:39 PM Lambda_Aurigae: SelfReflection, remember, rs232 port is +/-12V,,,
07:39 PM Lambda_Aurigae: that's NOT compatible with the serial i/o header on your sbc thingie.
07:39 PM kre10s: come over here so I can smack you upside the head.
07:40 PM SelfReflection: Lambda_Aurigae, good reminder!
07:40 PM Lambda_Aurigae: SelfReflection, look real close at those usb-serial adapters...the ones with female headers are either 5V or 3.3V...you likely want 3.3V for interfacing to your SBC
07:40 PM SelfReflection: Lambda_Aurigae, back in my rs232 days, I never dealt with the electronics of it :)
07:40 PM Lambda_Aurigae: I have.
07:41 PM SelfReflection: just hooked up modems :)
07:41 PM Lambda_Aurigae: ttl level serial is the thing these days and a lot of those boards like the rPI and such are NOT 5V tolerant so you have to use a 3.3V one.
07:41 PM Lambda_Aurigae: hell, I was dealing with that on the commodore vic-20 in the 80s.
07:42 PM SelfReflection: Lambda_Aurigae, thanks a lot for pointing that out. Yeah, it appears it's 3.3
07:42 PM SelfReflection: (for the opi)
07:42 PM Lambda_Aurigae: the i/o port was 5V ttl but did serial, kinda sorta.
07:42 PM Lambda_Aurigae: the vic modem worked with that but normal modems wouldn't without voltage level converters.
07:45 PM Lambda_Aurigae: kre10s, you would use the LF side as a wakeup signal...it's part of an extremely low power receiver.
07:45 PM SelfReflection: https://www.aliexpress.com/item/usb-serial-thing/32800165617.html
07:46 PM SelfReflection: that does have exposed male pins.. but what do you think?
07:46 PM Lambda_Aurigae: kinda pricy
07:46 PM Lambda_Aurigae: specially from aliexpress
07:46 PM SelfReflection: yeah, for alix .. yeah
07:46 PM SelfReflection: https://www.sparkfun.com/products/13746
07:47 PM BongoShaftsbury: what is SP?
07:47 PM Lambda_Aurigae: https://www.ebay.com/i/201476717826?chn=ps&dispItem=1
07:47 PM Lambda_Aurigae: BongoShaftsbury, in what context?
07:47 PM SelfReflection: lol, why do they say 'wireless' in the alix product description?
07:47 PM BongoShaftsbury: ldi r16, low (RAMEND)
07:47 PM BongoShaftsbury: out spl, r16
07:48 PM Lambda_Aurigae: SelfReflection, to get you to look at it.
07:48 PM Lambda_Aurigae: BongoShaftsbury, stack pointer?
07:48 PM BongoShaftsbury: stack pointer is a 16 bit register?
07:48 PM Lambda_Aurigae: it can be on some chips with more than 256 bytes of ram.
07:49 PM Lambda_Aurigae: stack starts at top of ram and moves down.
07:49 PM SelfReflection: Lambda_Aurigae, yaw
07:49 PM BongoShaftsbury: there is SPL and SPH
07:49 PM BongoShaftsbury: so i'm assuming 2x 8bit registers
07:49 PM Lambda_Aurigae: stack pointer low and stack pointer high.
07:49 PM Lambda_Aurigae: yes.
07:49 PM Lambda_Aurigae: that little code snippet is setting the low byte of the stack pointer to the end of system ram.
07:50 PM Lambda_Aurigae: RAMEND is a constant defined in the chip specific io.h header file.
07:50 PM BongoShaftsbury: okay i saw something else earlier that confused me it was like ldi ZL, low(2*table)
07:50 PM Lambda_Aurigae: Z is a 16 bit pair also.
07:50 PM BongoShaftsbury: which i figured out is assigning z low to low address of the table
07:50 PM BongoShaftsbury: but the 2* is confusing
07:50 PM Lambda_Aurigae: without more info on the table, hard to tell there.
07:51 PM SelfReflection: Lambda_Aurigae, how do you select between 5 or 3.3v? http://www.ebay.com/itm/usb-uard-ttl/121867635568
07:51 PM BongoShaftsbury: lambda simple table with 20 8 bit numbers
07:51 PM SelfReflection: do you just hook up to particular pins, or .. like.. do they have jumpers to select it?
07:51 PM Lambda_Aurigae: SelfReflection, no clue...they don't have good pictures..
07:51 PM Lambda_Aurigae: usually you have TX, RX, GND, and a pair of voltage pins...
07:52 PM Lambda_Aurigae: the TX and RX are 3.3V and 5V compatible.
07:52 PM SelfReflection: okay, that was the question.. thank you so much
07:52 PM Lambda_Aurigae: so, it will work with either...they put out 3.3V at most.
07:52 PM Lambda_Aurigae: 3.3V is considered TTL 5V high...it's in the low area of TTL 5V high but it works.
07:52 PM SelfReflection: (was my intent when asking the question, rather) :)
07:53 PM Lambda_Aurigae: some devices have a jumper and the tx and rx actually go full swing 5V but I suspect that one doesn't.
07:53 PM BongoShaftsbury: the table i have is like
07:53 PM Lambda_Aurigae: one way to find out...buy it, put a meter on it.
07:53 PM BongoShaftsbury: table: .db 34, 36, 37, ....
07:53 PM Lambda_Aurigae: lately I make my own so I know exactly what they are.
07:54 PM Lambda_Aurigae: BongoShaftsbury, the table is probably stored in flash....some addresses are word and some are byte...I'm guessing "table" is word but the data is byte..
07:54 PM Lambda_Aurigae: I recommend reading the entire datasheet for your chip, at least twice.
07:55 PM Lambda_Aurigae: that is explained in there a couple of times.
07:55 PM BongoShaftsbury: yeah i will give it ago
07:56 PM BongoShaftsbury: but it's giving me a brain aneurysm
07:56 PM Lambda_Aurigae: ummm.
07:56 PM Lambda_Aurigae: atmel datasheets are about the easiest to understand of any out there.
07:56 PM Lambda_Aurigae: try a z80 datasheet once.
07:56 PM Lambda_Aurigae: or 80186
07:57 PM BongoShaftsbury: a lot of this is new and figuring out how stuff works takes time
07:57 PM SelfReflection: Lambda_Aurigae, okay, need your final approval :) http://www.ebay.com/itm/usb-ttl-adaptor/181929005868
07:57 PM Lambda_Aurigae: SelfReflection, whatever works for you.
07:58 PM SelfReflection: it seems ok
07:58 PM Lambda_Aurigae: the one I posted is cp chip...that one is ftdi.
07:58 PM Lambda_Aurigae: either one works.
07:58 PM Lambda_Aurigae: both about the same price with shipping.
07:58 PM SelfReflection: this one's from u.s.
07:58 PM SelfReflection: so.. faster shipping
07:58 PM SelfReflection: (yours would be here in july I think)
07:58 PM SelfReflection: :)
07:59 PM Lambda_Aurigae: whatever works.
07:59 PM Lambda_Aurigae: I've been using pic16f1454 chips to make my own usb-serial adapters...
08:00 PM SelfReflection: okay, this one http://www.ebay.com/itm/this-usb-serial-adaptor/172477083778
08:00 PM SelfReflection: need the microusb cable though..
08:00 PM Lambda_Aurigae: you don't have 30 of them laying around?
08:01 PM SelfReflection: heh.. I have several, yeah
08:04 PM SelfReflection: okay.. ordered.. voila. thank you so much.
08:05 PM Lambda_Aurigae: welcome
09:13 PM tpw_rules: i assume there's no way that's a real chip
09:14 PM SelfReflection is now known as NatDisposablesDa
09:14 PM NatDisposablesDa is now known as DisposablesDay
09:17 PM Lambda_Aurigae: tpw_rules, which?
09:17 PM tpw_rules: that ebay item
09:17 PM tpw_rules: he mentioned
09:17 PM Lambda_Aurigae: probably counterfeit.
09:17 PM Lambda_Aurigae: but it will work.
09:18 PM tpw_rules: until ftdi does something stupid again
09:18 PM Lambda_Aurigae: yup.
09:19 PM Lambda_Aurigae: use linux and it's all good though.
09:34 PM DisposablesDay: wait.. what could be wrong with the chip?
09:34 PM DisposablesDay: is it because ftdi is a patented technology?
09:34 PM DisposablesDay: so for the cost you figure the chip is not authentic?
09:46 PM DisposablesDay is now known as jaggz
10:30 PM jaggz_ is now known as jaggz