#garfield Logs

Oct 09 2020

#garfield Calendar

12:51 AM polprog: rue_mohr: even better, i already wake up
12:57 AM rue_mohr: this is not going well
12:57 AM rue_mohr: I didn't understand the error properly and now I have a broken firmward update
01:03 AM polprog: oh, nice, you got the programmer
01:10 AM rue_mohr: yea, I'm getting close
01:11 AM rue_mohr: !! it worked!
01:11 AM rue_mohr: I think
01:11 AM rue_mohr: zippo:/files/programming/src/minipro/minipro# ./minipro -p D27128@DIP28 -y -f ihex -w image.ihex
01:11 AM rue_mohr: Found TL866II+ 04.2.121 (0x279)
01:11 AM rue_mohr: Warning: Firmware is newer than expected.
01:11 AM rue_mohr: Expected 04.2.118 (0x276)
01:11 AM rue_mohr: Found 04.2.121 (0x279)
01:11 AM rue_mohr: VPP=18V, VDD=5.5V, VCC=5V, Pulse=1000us
01:11 AM rue_mohr: WARNING: Chip ID mismatch: expected 0x8989, got 0x8983 (27C128@DIP28)
01:11 AM rue_mohr: Found Intel hex file.
01:11 AM rue_mohr: Writing Code... 57.65Sec OK
01:11 AM rue_mohr: Reading Code... 0.43Sec OK
01:11 AM rue_mohr: Verification OK
01:12 AM rue_mohr: I'm still hunting for the right firmware
01:12 AM rue_mohr: its slow and painfull
01:13 AM polprog: firmware for the programmer?
01:13 AM polprog: yeah, 27c128 taking a minute to program is weird..
01:14 AM polprog: or maybe im just spoiled by flash chips :v
01:15 AM rue_mohr: its true eprom
01:15 AM polprog: oh wait i just realized its friday
01:15 AM polprog: >_>
01:15 AM polprog: that means i dont have stuff to do today
01:15 AM rue_mohr: the programmer could have skipped the bytes that were 0xFF th
01:15 AM rue_mohr: the programmer could have skipped the bytes that were 0xFF tho
01:15 AM polprog: i think theres option for that in --help
01:16 AM polprog: toner for the laserjet 5m is in
01:17 AM rue_mohr: *sigh* have to go to bed
01:17 AM polprog: cya
01:17 AM polprog: you should
01:18 AM polprog: ive been going to bed at 2 am and getting up at 7 this week
01:18 AM polprog: and i feel like *shit*
01:18 AM rue_mohr: haha
01:18 AM rue_mohr: last day or work tommorow
01:18 AM rue_mohr: then school
01:19 AM rue_mohr: arm-none-eabi-objcopy -I binary -O ihex "C:\D_Drive\Test_Binary\FW.bin" "C:\D_Drive\Test_Binary\FW.hex
01:19 AM polprog: you're teaching or being taught
01:19 AM polprog: teacher or teachee :)
01:19 AM rue_mohr: ^^ binary to ihex conversion trick
01:19 AM polprog: oh, nice
01:19 AM rue_mohr: student
01:19 AM polprog: what are you studying now?
01:19 AM rue_mohr: I get to learn about ladder logic and logic gates :/
01:19 AM polprog: aw :/
01:20 AM polprog: we get to learn about this too now
01:20 AM rue_mohr: its the 4th year for my electrical ticket
01:20 AM rue_mohr: hadn't been abel to get it yet
01:20 AM polprog: http://www.if.pw.edu.pl/~murba/elektronika_zadania.pdf
01:20 AM rue_mohr: I'll be able to tell you all about how AND gates work!
01:20 AM polprog: the only thing i dont get is matrixes for 2- and 4- port networks
01:20 AM rue_mohr: and how to make a NOT gate from a NAND gate!
01:20 AM polprog: I know how they work, it says in the datasheet, duh!
01:21 AM rue_mohr: hmm
01:21 AM polprog: section 3 in the PDF
01:21 AM polprog: (thats the excercise book for the subject)
01:21 AM rue_mohr: 9 more software versions to unpack and find out the firmware vesions of
01:22 AM rue_mohr2: apparently the minipro sofware cant just to binary images
01:22 AM rue_mohr2: so I should post the ihex for that 6502 thing
01:22 AM rue_mohr2: tho I'm sure nobody is intreested
01:23 AM rue_mohr2: I wrote the rom tho
01:23 AM rue_mohr2: I think I threatened to do that yesterday
01:23 AM polprog: what 6502 thing?
01:23 AM rue_mohr2: you didn't notice on twitter?
01:24 AM rue_mohr2: mrtomsworld started a breadboarded 6502 thing
01:24 AM rue_mohr2: I started following the build with my own
01:24 AM rue_mohr2: then he just stopped
01:24 AM polprog: oh
01:24 AM polprog: that
01:24 AM polprog: i thought it was something particular
01:24 AM rue_mohr2: so I said I'd pick it up for a while
01:25 AM rue_mohr2: yesterday I desined some software
01:25 AM rue_mohr2: today I managed to write it to a chip
01:25 AM rue_mohr2: I might also be able to write the PALCE chips I got from..... uh...
01:25 AM rue_mohr2: who was that?
01:26 AM rue_mohr2: did you program yours yet?
01:26 AM rue_mohr2: thoguht you did
01:26 AM rue_mohr2: the PALs
01:27 AM rue_mohr2: I'm not always sure twitter is sharing my tweets
01:27 AM polprog: yes, i did get the PALs working
01:28 AM rue_mohr2: ok, what did you program your with?
01:28 AM polprog: the minipro
01:28 AM rue_mohr2: under linux?
01:28 AM polprog: yeah
01:28 AM rue_mohr2: arg, I could have used a hand
01:28 AM polprog: https://polprog.net/rozne1/ircjunk/gal/
01:28 AM rue_mohr2: did you update the firmware on yours?
01:28 AM polprog: :)
01:28 AM polprog: no
01:28 AM rue_mohr2: so, it just always complains?
01:28 AM polprog: about what?
01:29 AM rue_mohr2: wrong firmware version
01:29 AM polprog: hmm, never noticed
01:29 AM rue_mohr2: <rue_mohr> Warning: Firmware is newer than expected.
01:29 AM rue_mohr2: <rue_mohr> Expected 04.2.118 (0x276)
01:29 AM rue_mohr2: <rue_mohr> Found 04.2.121 (0x279)
01:29 AM polprog: oh, ok. i got mine some time ago
01:29 AM rue_mohr2: maybe you happen to have the magic 4.2.118
01:29 AM rue_mohr2: I'm trying to find it
01:30 AM rue_mohr2: I fought to get all the install files for all the different versions
01:30 AM rue_mohr2: you cant just click download them
01:30 AM rue_mohr2: you have to use the forum as a ref to what versions exist and build download urls
01:30 AM polprog: hmm,luckily i dont have any classes today
01:30 AM rue_mohr2: I got everything from 10.11 to 10.39
01:31 AM rue_mohr2: its in there, somewhere
01:31 AM polprog: i dont see a way to read the firmware sadly
01:31 AM rue_mohr2: nope
01:31 AM rue_mohr2: remember those little computers I got?
01:31 AM rue_mohr2: the pile of them?
01:32 AM polprog: yeah.. what about them
01:32 AM rue_mohr2: well, their windows XP
01:32 AM rue_mohr2: so I'm using one to unpack the .exe installers for me
01:32 AM polprog: hmm, you might have to refresh my memory with a photo of them
01:32 AM polprog: :v
01:32 AM polprog: well, neat, you could use an XP machine in your lap
01:32 AM polprog: lab*
01:32 AM polprog: now that XP is open source :D
01:32 AM rue_mohr2: maybe later, I'm half asleep
01:33 AM rue_mohr2: their 500Mhz AMD with 1G ram and 4G SSD
01:33 AM polprog: I have an update.dat file
01:33 AM rue_mohr2: yea, I need updateII.dat
01:33 AM rue_mohr2: where did you get update.dat
01:33 AM rue_mohr2: it does't come with the linux software
01:34 AM polprog: the manufacturers install dir on my laptop
01:34 AM polprog: i also have the windows drivers
01:34 AM polprog: initially i used it on the laptop
01:34 AM rue_mohr2: using windows?
01:34 AM rue_mohr2: or wine?
01:34 AM polprog: yeah, windows 10
01:34 AM rue_mohr2: oh
01:34 AM polprog: i need it for school
01:34 AM rue_mohr2: what version of the sofware is it?
01:34 AM rue_mohr2: 10.
01:35 AM polprog: software version 6.85
01:35 AM rue_mohr2: not sure where it'll say
01:35 AM rue_mohr2: wow
01:35 AM rue_mohr2: waaay back
01:35 AM rue_mohr2: oh
01:35 AM rue_mohr2: you have the other programmer
01:35 AM polprog: oh
01:35 AM polprog: right!
01:35 AM rue_mohr2: I have the + one
01:35 AM rue_mohr2: huh
01:35 AM rue_mohr2: ok
01:36 AM polprog: i have the A version
01:36 AM rue_mohr2: yea
01:36 AM polprog: i wonder if it works with the new software
01:36 AM rue_mohr2: dont upgrade is to the CE
01:36 AM rue_mohr2: it'll brick it
01:36 AM polprog: i wanted to try the windows version that says "Xgpro" on top (mine says "Minipro"
01:36 AM polprog: )
01:37 AM polprog: but i dont wanna touch it, it's a running system
01:37 AM rue_mohr2: yea, the Xgpro is mine
01:37 AM rue_mohr2: which was some initial fun
01:37 AM polprog: worst case scenario you will just have to set up samba between zippo and the XP box
01:37 AM rue_mohr2: ok, so, I'm still a bit on my own
01:37 AM rue_mohr2: I'm shuttling with a usb stick
01:38 AM polprog: youve deleted the pics of the computers from tempimage?
01:38 AM rue_mohr2: 9 different versions
01:38 AM rue_mohr2: tempimage auto deletes
01:38 AM rue_mohr2: only keeps the last 10 images
01:38 AM polprog: oh
01:38 AM rue_mohr2: prevent a memory leak :)
01:39 AM polprog: i barely remember the computers you posted.. i take they were thin clients?
01:39 AM rue_mohr2: I'm still cleaning out images that dont make sense anymore
01:39 AM rue_mohr2: yea, a bunch of htem
01:39 AM rue_mohr2: tiny boxes
01:39 AM rue_mohr2: like 20cm square by like 3cm thick
01:40 AM polprog: what name?
01:41 AM rue_mohr2: two of them are NY__
01:41 AM rue_mohr2: WYSE
01:41 AM rue_mohr2: older ones
01:41 AM polprog: Winterm?
01:41 AM rue_mohr2: the newer ones dont seem to have a name on them
01:45 AM polprog: ive got 5 Wyse Winterm clients
01:46 AM polprog: ive done some stuff on them
01:46 AM polprog: quirky
01:46 AM polprog: ok, ive recompiled galnotes and galnotes2 back
01:47 AM polprog: https://polprog.net/rozne1/ircjunk/gal/galnotes2.txt
01:48 AM polprog: oh, wait, i have programming class in 3 hours
01:48 AM polprog: meh, idk what are they gonna try to teach me
01:49 AM polprog: 11:22 < polprog> float x; scanf("%lf", &x);
01:49 AM polprog: 11:22 < polprog> o_O
01:49 AM polprog: 11:22 < polprog> thats wrong isnt it
01:49 AM polprog: :v thats from the source code slides
01:50 AM polprog: okay. let's try getting the laserjet working
01:51 AM polprog: if it still makes streaks when i replace the catridge, im going to take it apart ritually
03:24 AM polprog: "the cin operator is a standard operator for reading from the keyboard"
03:24 AM polprog: no no no no no NO NO NO
03:59 AM zhanx_workshop: rue_mohr2, random thought welded crucible
06:56 AM polprog: hmm, maybe the fuser is shot
06:56 AM polprog: grey background, bad contrast
06:56 AM polprog: hmm
06:57 AM polprog: would be nice to have this printer working, it works well with cups (printed a test pahe)
08:24 AM rue_mohr2: scanf takes a pointer
08:25 AM rue_mohr2: pretty sure cin is stdin
08:25 AM rue_mohr2: the fuser just melts in the ink, if its placement is wrong, its other issues
08:31 AM aandrew: yep scanf() needs pointers for the destination, as per C spec (functions just receive a copy of the variable, which is why you need to pass addresses), and cin is stdin not keyboard (just happens to be keyboard for local terminals)
08:31 AM aandrew: laserjet 4 is awesome. I had a 4MV for a long time (11x17 version) and it was the best
08:32 AM aandrew: I had to replace all the rubber in mine, it had paper movement issues, but those printers are absolute workhorses
08:32 AM aandrew: streaking can also be caused by dirty ... corona wire? I don't remember what it's called but it's a super fine wire that kind of zigzags over the aperture where the toner is, IIRC
08:52 AM rue_mohr: yea, I couldn't tell if there was arcing going on
08:53 AM rue_mohr: but I cant rememeber if thats part of the cartridge
08:53 AM rue_mohr: I think its a layer abstracted
08:55 AM rue_mohr: oh I see there now, maybe the high voltage it out
08:55 AM rue_mohr: yea, I think the dark streaks are the supply recharging
10:18 AM polprog: my point is, cin is an input *stream*, and stdin is not necesarily the keyboard
10:18 AM polprog: not an operator
10:19 AM polprog: aandrew: streaking is not the problem, the problem is the grey background
10:19 AM polprog: they call it incorrect registration
10:20 AM polprog: as far as i know, the imaging drum should be clean. yet this new old stock one shows the same symptoms as the old one, the green drum is dirty and attracts toner even when not charged
10:22 AM aandrew: polprog: I don't know enough about the details of C++'s cin/cout, I still use fprintf(stderr,) :-)
10:23 AM polprog: yeah, its good enough for me too
10:23 AM polprog: but they want to teach us c++ so let them have it ;)
10:23 AM aandrew: and on laser stuff: you're definitely more knowledgeable than I am. I have a rough idea on how it all works, but as far as image troubleshooting... I'm lost
10:23 AM polprog: just.. programming takes attention to details :D
10:23 AM polprog: i dont know all that much, but i learnt a lot past week
10:23 AM polprog: worst case ontario, i pull the lasers and play with the lasers
10:23 AM aandrew: fair point, but a LOT of learning involves grand assumptions to get the first concepts down, and then peeling back the veneer to show them how the sausage is actually made
10:24 AM aandrew: but I admit that just telling them "cin is the input stream, which for our puposes just means the keyboard" does not unnecessarily obfuscate things nor confuse
10:24 AM polprog: yes, but saying that cin is an operator makes it harder later. just say "use cin like this to get this"
10:24 AM polprog: yeah
10:25 AM polprog: you have to go a bit cargo cultish when learning a new thing :)
10:25 AM polprog: i just happen to be learning Mathematica language
10:29 AM aandrew: I never got into that stuff, probably to my own detriment
10:30 AM polprog: looks like uni doesnt sponsor matlab, so we will have to do that
10:30 AM polprog: its nice and modern, cant complain
02:50 PM aandrew: fucking hell, fuck banggood
02:50 PM aandrew: two times now I got fooled
02:51 PM aandrew: I'm used to having a listing with "options" which selects colour/size/number/etc. but banggood goes a step beyond in their deception, I feel
02:51 PM aandrew: I told y'all about the RS-X receivers that I thought I got a good deal on but turned out to be ONLY the antennas
02:52 PM aandrew: today they delivered the cordless chinesium drills that I thought I got a good deal on (86% off) -- they are ONLY the drill chucks, which is *not* 86% off
02:53 PM aandrew: it's 86% off the price of the whole thing *if* you buy only the chucks, lol
03:47 PM polprog: hahaha
03:47 PM polprog: you could say you got bang'd good
03:47 PM polprog: :^)
04:26 PM aandrew: I wish
07:55 PM zhanx_workshop_: i think i need to make a pizza oven
08:21 PM aandrew: this isn't a bad need
08:33 PM rue_mohr: yea I dont do that wite
08:33 PM rue_mohr: site
08:34 PM rue_mohr: polprog, did you clean out any old toner?
08:47 PM zhanx_workshop_ is now known as zhanx
09:04 PM aandrew: bleh
09:04 PM aandrew: I have to write an updater shell script and I'm just not into it
09:04 PM aandrew: it's maybe 50 lines too, nothing crazy
09:05 PM aandrew: mount a usb key (if it's there), look for files matching a glob, for each one try to decrypt/verify sig/extract another script and run it
09:06 PM aandrew: with all the normal error checking -- if sigcheck fails, dont' run the second script, if the second script doesn't complete nicely, let hte user know, etc.
09:59 PM rue_mohr: how do I get git to update the source I downloaded?
09:59 PM Tom_L: git pull
09:59 PM Tom_L: i think
10:00 PM Tom_L: checkout first
10:00 PM Tom_L: but you probably only have one branch on what you're after
10:01 PM rue_mohr: I got some source a few days ago, there is an update not
10:01 PM rue_mohr: now
10:02 PM Tom_L: yeah, git pull will do that
10:03 PM Tom_L: https://education.github.com/git-cheat-sheet-education.pdf
10:03 PM rue_mohr: :)
10:04 PM Tom_L: there's a better one somewhere
10:05 PM Tom_L: i generally do git branch to list them
10:05 PM Tom_L: git checkout xxx to checkout the one i want
10:05 PM Tom_L: then git pull
10:05 PM rue_mohr: I just cant attach to the wording
10:06 PM Tom_L: on linuxcnc there are several branches so to compile a certain one you gotta checkout it first
10:06 PM Tom_L: your programmer code likely only has one branch
10:07 PM rue_mohr: "git pull origin master" did it perfectly
10:07 PM rue_mohr: no more firmware complaints from my programmer!
10:07 PM Tom_L: nice
10:09 PM rue_mohr: cool, its working
10:09 PM rue_mohr: I feel like I can relax a bit
10:09 PM Tom_L: mark that as one accomplishment
10:10 PM rue_mohr: its hard to see the little check marks in all the scibble
10:10 PM rue_mohr: sribble
10:10 PM rue_mohr: sc... you know
10:14 PM aandrew: rate my bash: https://pastebin.com/Tx1nz8Tk
10:14 PM aandrew: rue_mohr: git clone gives you a local copy
10:14 PM aandrew: then git pull updates
10:17 PM Tom_L: yeah he cloned it the other day i think
10:20 PM rue_mohr: aa oof
10:20 PM rue_mohr: I'm half-brained right now
10:21 PM rue_mohr: it looks like it might be short a few pandemic error checks :)
10:23 PM aandrew: I've got all the error checks in there I'm pretty sure
10:23 PM aandrew: no set -e but I'm checking $?
10:24 PM rue_mohr: well, cp can fail...
10:24 PM rue_mohr: and chown...
10:24 PM aandrew: yes, but remote for this
10:25 PM rue_mohr: if the code after the hunting loop fails, is it fatal?
10:25 PM aandrew: what do you mean? the line 80+?
10:26 PM aandrew: if any of those fail it's a big issue
10:26 PM aandrew: but considering I put those files in /tmp at the start of the script, it's very, very unlikely they'll failt o be put back
10:26 PM aandrew: and if I run out of room during the update, I'm screwed anyway
10:56 PM Tom_L: rue_mohr, have you ordered anything out of china recently?
10:56 PM Tom_L: if so have you noticed a change in delivery time?
10:57 PM Tom_L: or anybody for that matter...
11:26 PM aandrew: my delivery time is like 2-3w now
11:27 PM aandrew: was waaay longer