#garfield Logs

Dec 27 2024

#garfield Calendar

04:14 AM rue_mohr: so, I want to use my cell phone as a controller for misc
04:28 AM rue_mohr: and the problem I keep running into, is that the web browser cannot connect to just any network port
04:28 AM rue_mohr: that is repeatedly an issue
04:38 AM polprog: rue_mohr: i saw it, very cool speech synthesizer
04:38 AM rue_mohr: too bad its just a clock vocabulary
04:38 AM polprog: you can make a talking clock
04:39 AM rue_mohr: I could, and this brought up a question
04:39 AM rue_mohr: why, in 2025, dont our devices talk t us?
04:39 AM rue_mohr: microwaves beep
04:39 AM rue_mohr: cell phones ring
04:39 AM rue_mohr: like...
04:40 AM rue_mohr: wtf?
04:40 AM rue_mohr: we could make talking computers is 1987, why didn't it take off?
04:41 AM rue_mohr: cars briefly said "your door is a jar"
04:41 AM rue_mohr: now were removing language from everything
04:42 AM rue_mohr: generic icons that half the population understand
04:43 AM Tom_L: morning
04:43 AM rue_mohr: morning
04:44 AM rue_mohr: libera.chat supports websockets, according to chatgpt (I suspect its not wrong)
04:44 AM rue_mohr: I could have javascript in a PNG send messages to a channel that an esp8266 is subscribed to
04:45 AM polprog: rue_mohr: they talk to us
04:45 AM polprog: i dont want them to talk to us
04:45 AM rue_mohr: make a channel called SDLKJOIALSDFKMBVPAQR or something
04:45 AM polprog: i want the self checkout to shut the fuck up
04:45 AM Tom_L: haha
04:45 AM rue_mohr: yea, the local ones say "thankyou for shopping with us"
04:45 AM Tom_L: and it lags so far behind what you're doing
04:45 AM rue_mohr: cause I know they just didn't record the store name
04:46 AM rue_mohr: instead of pressing 'start' I just scan something
04:46 AM rue_mohr: it wakes it up quicker
04:46 AM Tom_L: they have the robotic cleaners at a couple places we shop
04:47 AM rue_mohr: I also like that when you get no bags, it reminds you to take your bags
04:47 AM Tom_L: i chase them around fucking with em
04:47 AM rue_mohr: hehe
04:47 AM Tom_L: fun to pin em in a corner
04:48 AM rue_mohr: so
04:48 AM rue_mohr: I want to be able to control relays with a phone 'app'
04:49 AM Tom_L: i have 'myq' for my garage
04:49 AM Tom_L: home automation
04:49 AM rue_mohr: if I take an esp8266 and set it up with a 'config' button, that opens a direct connent web server to my phone for setting it up on wifi
04:49 AM rue_mohr: sort of, I want to do this at work
04:50 AM rue_mohr: and you cant do point-point over the wifi
04:50 AM rue_mohr: so I need to bounce it off a web service
04:50 AM rue_mohr: like IRC!
04:51 AM rue_mohr: I'm sad that I cant already do this
04:51 AM rue_mohr: it should be lego for me
04:51 AM Tom_L: dig tobbor out and fix it
04:51 AM rue_mohr: heh
04:51 AM rue_mohr: *at work*
04:52 AM polprog: rue_mohr: did you try using mqtt?
04:52 AM rue_mohr: the irc server is enough, I just get an esp8266 to connect to a channel and have the javascript in the PNG do the same
04:52 AM rue_mohr: polprog, you cant mqtt from javascript without a bridge
04:52 AM rue_mohr: from what I understand
04:53 AM rue_mohr: you would need a websocket-mqtt bridge
04:54 AM rue_mohr: I'm learning from chatgpts summaries, which I suspect are pretty close
04:54 AM rue_mohr: so tell me if I'm wrong
04:54 AM rue_mohr: but these are basics and I think its probably on track
05:01 AM rue_mohr: for a sec I was all excited that everyone was awake
05:29 AM polprog: i think thats true
05:29 AM polprog: though with a websocket im sure someone wrote a websocket mqtt client library
05:29 AM polprog: and there are free mqtt brokers online
05:29 AM polprog: broker is mqtt term for the server that deals with message passing
05:29 AM rue_mohr: hmm
05:30 AM polprog: mqtt is a bit like IRC, you subscribe to a topic on the broker and then get all messages sent to that topic
05:30 AM polprog: with the addition that topics are hierarchical and have wildcards
05:30 AM polprog: so you can have two sensors sending on topics "rue/temp/shed" and "rue/temp/bedroom"
05:30 AM rue_mohr: its cute how this stuff gets created while your not looking
05:30 AM polprog: and then you subscribe to "rue/*" and get both readings
05:31 AM polprog: or something like that
05:31 AM rue_mohr: so the question is then, how do I get javascript to send the mqtt event
05:31 AM polprog: i dont remember, last time i touched it was at work a year ago
05:31 AM rue_mohr: aka, websockets broken
05:31 AM rue_mohr: aka, websockets broker
05:32 AM rue_mohr: I know someone more into it that I can ask later today
05:32 AM rue_mohr: not at 3:30am
05:33 AM polprog: https://stackoverflow.com/questions/54615013/publish-mqtt-message-via-javascript
05:33 AM polprog: looks like paho mqtt library is easy
05:33 AM rue_mohr: ok
05:33 AM polprog: the nice thing about going to sf for a week is that we will be in the same time zone
05:34 AM rue_mohr: yea, its too bad we cant get closer
05:35 AM polprog: next time ill go to BC
05:35 AM rue_mohr: :)
05:51 AM polprog: off to eat inner
05:51 AM polprog: dinner*
05:52 AM rue_mohr: inner will be relieved
05:57 AM rue_mohr: https://github.com/ruenahcmohr/
05:58 AM rue_mohr: its interesting watching the most popular repos jostle for rank
06:58 AM Tom_itx is now known as Tom_L
05:28 PM aandrew: https://github.com/ruenahcmohr/sensorlessMotorPos
05:29 PM aandrew: I'm absolutely amazed that slow manual movement of the motor is both observable and accurate
05:47 PM rue_mohr: well, till ya poke it anyhow
05:48 PM rue_mohr: the japaneese fellows work was better
06:02 PM aandrew: I'm just trying to think about how you might be able to work around commutator noise
06:05 PM polprog: the 115kbaud audio is a cool trick
06:19 PM rue_mohr: :]
06:28 PM * polprog yawns
06:28 PM polprog: there is something wrong with the bootloader on the ts7520 computer
06:28 PM polprog: the one with cirrus logic arm
06:28 PM rue_mohr: how do you mean?
06:28 PM polprog: when i pass the ramdisk address as 0x01500000 the kernel reports that ramdisk at 0x04500000 is in an invalid memory region
06:29 PM polprog: then proceeds to boot to a kernel panic because it has no ramdisk
06:29 PM polprog: riight i have to update the ircjunk
06:30 PM polprog: https://polprog.net/rozne1/ircjunk/ts-7250/notatki3.md
06:30 PM polprog: the last boot log
06:30 PM polprog: i pass
06:30 PM polprog: exec -c "console=ttyAM0,115200" -r 0x01500000 -s 0x33b000
06:30 PM polprog: kernel says
06:30 PM polprog: INITRD: 0x04500000+0x0033b000 is not a memory region - disabling initrd
06:30 PM polprog: ????
06:30 PM polprog: why did it add 0x03000000
06:30 PM rue_mohr: 0x01500000
06:31 PM rue_mohr: 0x04500000
06:31 PM polprog: i think if i crack this, then i will be able to boot linux on this cute lil computer
06:31 PM polprog: there is something screwed up with the very very very early code
06:31 PM rue_mohr: just subtract 0x03000000
06:31 PM polprog: head.S
06:31 PM polprog: the code that tuns at the very start of the kernel
06:31 PM polprog: when you build the default config for this cpu, the kernel does not boot. it breaks somewhere in that file
06:32 PM polprog: that file is common to all arm kernels
06:32 PM polprog: so it is obvious that between kernel 2.something and todays 6.12 a lot has happened
06:32 PM rue_mohr: I'm missing the bigger picture, and half my turnover...
06:32 PM polprog: the bad thing is that the computer has no jtag. and i would have to solder to the pins on the cpu
06:32 PM polprog: i dont wanna do that
06:33 PM rue_mohr: "no jtag"
06:33 PM polprog: so im left with analyzing the code, maybe if i find which option breaks the kernel ill know how to fix it
06:33 PM polprog: no connector
06:33 PM rue_mohr: thats better
06:33 PM polprog: they didnt connect any traces to the jtag pins on the ep9302
06:33 PM rue_mohr: no labeled connector
06:33 PM rue_mohr: huh
06:33 PM rue_mohr: for sure?
06:33 PM polprog: no, the schematic shows them as NC and there are no traces
06:33 PM rue_mohr: :(
06:34 PM polprog: https://polprog.net/rozne1/ircjunk/ts-7250/ts-7250.jpg
06:34 PM polprog: its pretty
06:34 PM polprog: and the connector on the left is PC/104
06:34 PM polprog: ISA!! on an ARM!!!!
06:35 PM polprog: wicked
06:35 PM rue_mohr: awe damnit, ANOTHER 2mm header!!?!?!? how many orders did I screw up!?!
06:35 PM polprog: no its 2.54
06:35 PM rue_mohr: bu I ordered 2mm
06:35 PM rue_mohr: ugh
06:35 PM polprog: i think that something must be corrupting the register that holds the ram disk address
06:35 PM polprog: oh, bad for ya
06:35 PM polprog: should have ordered the .1"
06:35 PM rue_mohr: this is the second one
06:37 PM rue_mohr: damnit, this means I STILL do not have any headers for the 8051 baords!
06:39 PM polprog: arghh the 8051
06:39 PM polprog: im too sleepy for the soldering
06:39 PM polprog: ill do that tomorrow once im done with a secret project
06:46 PM rue_mohr: oh no
06:47 PM rue_mohr: OH NO
06:47 PM rue_mohr: I checked off the wrong package when the other 2mm came in
06:48 PM rue_mohr: crap, they misshipped and I misordered and they got mixed up
06:48 PM rue_mohr: damnitttttttttttttttt
06:48 PM rue_mohr: fff $11 in wrong connectors twice!?
06:49 PM Tom_L: invent a new project
06:49 PM polprog: two wrong dont make a right eh?
06:50 PM rue_mohr: AAAAHHHHH I NEED THE FREAKING CONNECTORS
06:51 PM rue_mohr: I dont know if I checked off the wrong ones now or not
06:51 PM rue_mohr: I dont have the packages with the tracking numbers anymore
06:52 PM rue_mohr: according to this, its the first ones I checked off, which are the 2mm that I didn't want
06:52 PM rue_mohr: and I do this really carefully, so I kinda need to assume that this is a double shipment
06:57 PM rue_mohr: or I rodered MORE
06:57 PM rue_mohr: I should go check the overstock boxes tho, I might actually have some left
06:58 PM * rue_mohr restarts the 3 month shipment timer
07:10 PM polprog: good night