*** tpb has joined #timvideos | 00:00 | |
xobs | CarlFK: it's at the "PoC" stage now. It works, and you can run commands, but I haven't figured out what to do with it. | 01:52 |
---|---|---|
xobs | It's on hold while I get the FAT12 bootloader up and running. Micropython will just be another interpreter. | 01:53 |
CarlFK | xobs: what cpu core? | 01:54 |
xobs | CarlFK: vexriscv, based on a 2-stage pipeline, with the debug bridge. | 01:55 |
CarlFK | woot | 01:55 |
xobs | No multiplier yet, though. Still waiting on yosys. | 01:55 |
CarlFK | I'm hoping to run a little (5 - 10 people) hackfest July 27 the day before PyOhio | 01:55 |
CarlFK | Im also hoping to get an Adafruit person interested in spending the day trying to get Circuit Python ported to some state | 01:58 |
xobs | We'll see how far along I get. I have a lot of travel coming up, which means a lot of uninterrupted time to work on the bootloader. | 02:05 |
CarlFK | yay! | 02:05 |
CarlFK | wanna stop by Columbus OH iin 6 weeks? | 02:05 |
xobs | As much fun as that would be, it's a bit far. But that's about the right timeline for having it finished. | 02:06 |
CarlFK | I was hoping for "That's where I am traveling to, I'll stop by!" | 02:09 |
CarlFK | xobs: how much of a problem would it be to try and run Circuit Python on Fomu in the current state? | 02:44 |
CarlFK | like does it makes sense for someone to plan on trying without relying on you producing something first | 02:45 |
*** sb0 has joined #timvideos | 02:59 | |
xobs | CarlFK: it'll certainly run, but how does Circuit Python work? Does it require a filesystem? How does it communicate? | 03:13 |
CarlFK | Circuit Python is a fork of micropython | 03:13 |
CarlFK | it tries to be more like C-python | 03:14 |
CarlFK | https://github.com/adafruit/circuitpython forked from micropython/micropython | 03:15 |
tpb | Title: GitHub - adafruit/circuitpython: CircuitPython - a Python implementation for teaching coding with microcontrollers (at github.com) | 03:15 |
CarlFK | they rejected some of my patches because it would make it harder to keep the two in sync | 03:19 |
CarlFK | (which is a good thing because keeping the two in sync is important) | 03:31 |
*** rohitksingh_work has joined #timvideos | 04:43 | |
CarlFK | rohitksingh_work: can you get a https://numato.com/product/4-channel-usb-relay-module to experiment with? | 05:31 |
CarlFK | I'm having trouble sending commands - very similar to hdmi2usb serial problem | 05:32 |
CarlFK | https://www.cons.org/cracauer/cstream.html has -t <n> = throughput in bytes/sec - which fixes it some of the time | 05:33 |
tpb | Title: cstream - a general-purpose streaming tool (at www.cons.org) | 05:33 |
CarlFK | "some of the time" is still a big problem | 05:34 |
rohitksingh_work | CarlFK: Hi! I'll check if I can get one from the embedded department. What issue are you facing? | 05:44 |
CarlFK | rohitksingh_work: it works fine if I connect to it with a term program like this: | 05:45 |
CarlFK | $ tio /dev/ttyACM0 | 05:46 |
CarlFK | > relay read 1 | 05:46 |
CarlFK | off | 05:47 |
CarlFK | >relay on 1 | 05:47 |
CarlFK | (hear the click of the relay) (good) | 05:47 |
rohitksingh_work | okay, can you please share the firmware version, and any other relevant info | 05:47 |
CarlFK | um.. how do I get version? | 05:48 |
CarlFK | >version | 05:48 |
CarlFK | 00000008 | 05:48 |
CarlFK | I should be able to do this: | 05:48 |
rohitksingh_work | great, thanks! I'll check the embedded team. Do you have any test script which can be used to reproduce the issue? | 05:48 |
CarlFK | heh - "script" is what breaks it | 05:49 |
rohitksingh_work | yeah if it's possible, can you share that | 05:49 |
CarlFK | $ printf "\rrelay on 1\r"|/dev/ttyACM0 | 05:50 |
CarlFK | that should do the same .. but it doesn't. | 05:51 |
rohitksingh_work | okay, that should be enough to reproduce the issue. thanks! | 05:52 |
CarlFK | pretty sure the problem is sending chars too fast | 05:52 |
CarlFK | this slows it down: | 05:52 |
CarlFK | $ printf "\rrelay off 1\r"| cstream -b 1 -t 3 3> /dev/ttyACM | 05:52 |
CarlFK | https://www.cons.org/cracauer/cstream.html | 05:53 |
tpb | Title: cstream - a general-purpose streaming tool (at www.cons.org) | 05:53 |
CarlFK | but only sometimes. | 05:53 |
CarlFK | I'd like to know why it sometimes it don't work | 05:53 |
CarlFK | or just make it work all the time without any filters | 05:54 |
rohitksingh_work | okay, I'm checking this with the team. | 05:55 |
CarlFK | thanks! | 05:56 |
CarlFK | the Opsis board has the same/similar problem - I'm looking for the bug report, but it keeps moving to different repos :p | 05:58 |
*** thaytan has quit IRC | 06:00 | |
*** thaytan has joined #timvideos | 06:01 | |
*** ChanServ sets mode: +v thaytan | 06:01 | |
CarlFK | https://github.com/timvideos/HDMI2USB-fx2-firmware/issues/13 | 06:07 |
tpb | Title: serial port drops characters · Issue #13 · timvideos/HDMI2USB-fx2-firmware · GitHub (at github.com) | 06:07 |
mithro | hey rohitksingh_work! | 06:09 |
mithro | rohitksingh_work: Do you want a Pano Logic + Chubby + sheet of Fomu hacker boards? | 06:09 |
rohitksingh_work | mithro: Hi! I would definitely like Pano Logic and Chubby! I have around 20 Fomu FPGAs still left for giveaway, for which I'm planning for create an online campaign using Google Forms (but haven't got time to do that yet) | 06:19 |
*** puck_ has quit IRC | 06:42 | |
*** puck_ has joined #timvideos | 06:46 | |
*** thaytan has quit IRC | 06:51 | |
*** cr1901 has joined #timvideos | 06:58 | |
*** m4ssi has joined #timvideos | 07:22 | |
*** futarisIRCcloud has joined #timvideos | 08:00 | |
*** sb0 has quit IRC | 09:27 | |
*** sb0 has joined #timvideos | 09:28 | |
*** futarisIRCcloud has quit IRC | 10:10 | |
rohitksingh_work | CarlFK: try commands using tee: printf "\rrelay off 0\r" | cstream -b 1 -t 1000 | tee /dev/ttyACM0 | 10:55 |
rohitksingh_work | does it still randomly fail? | 11:04 |
*** futarisIRCcloud has joined #timvideos | 11:06 | |
mithro | CarlFK: https://docs.google.com/drawings/d/15hSX1cHwz2_Lm-CxQxlelGUuVPP4AmEEljyRb1ncjjk/edit | 11:12 |
tpb | Title: LiteX Ecosystem Diagram - Google Drawings (at docs.google.com) | 11:12 |
*** thaytan has joined #timvideos | 11:51 | |
*** ChanServ sets mode: +v thaytan | 11:51 | |
CarlFK | rohitksingh_work: that works. | 12:43 |
CarlFK | rohitksingh_work: but now so does this: pi@oppi:~ $ printf "\rrelay off 1\r" > /dev/ttyACM2 | 12:43 |
CarlFK | which I don't understand... that didn't work before | 12:43 |
rohitksingh_work | CarlFK: interesting :p could you please let me know if you encounter this issue again... | 12:47 |
CarlFK | rohitksingh_work: did anything not work for you when it seems like it should? | 12:47 |
rohitksingh_work | CarlFK, yes at around 8500 bytes/second throttle rate, the board randomly starts missing the commands and needed to be sent the command again...so to be on absolutely safe side I gave you 1000 bytes/sec trottle rate | 12:49 |
CarlFK | rohitksingh_work: wow. so why does it work for me now without any throttle? and why did you suggest tee? | 12:50 |
rohitksingh_work | Firmware on the board is not very well designed to handle very high-rate stream of commands, so it can skip/miss commands if they are provided to the board at very high rate | 12:50 |
CarlFK | did you see https://github.com/timvideos/HDMI2USB-fx2-firmware/issues/13 | 12:51 |
tpb | Title: serial port drops characters · Issue #13 · timvideos/HDMI2USB-fx2-firmware · GitHub (at github.com) | 12:51 |
rohitksingh_work | I suggested tee because you initially used "3>" to (I assume) redirect the output on console also? But that was creating problems so I used tee instead | 12:51 |
CarlFK | k - that was so I could see what was happening | 12:52 |
CarlFK | there is also cstream ... -O <s> = Type of ouput file 't' = tee - in addition to outfile, copy stream to fd 3 | 12:53 |
rohitksingh_work | nice you can try that too | 12:54 |
CarlFK | I did. seemed to work, sometimes | 12:54 |
rohitksingh_work | CarlFK: I did see that issue....unfortunately there doesn't seem to be any "best" solution other than to throttle the commands | 12:54 |
rohitksingh_work | CarlFK: oh okay...could you please test with the working commands and you can ping me if you encounter the issue again :) | 12:55 |
CarlFK | I think there is some other problem too. I was thinking if the device echos chars back, but if an app never receives them, maybe the OS buffers them and then blocks when the buffer is full? (im not really good at this) | 12:56 |
CarlFK | I'll put back cstream -b 1 -t 1000 and try to catch when it fails again | 12:58 |
CarlFK | thanks for helping. | 12:58 |
rohitksingh_work | I would have to look into that. But afaik it was possible to disable echo, there was some command for that. | 12:58 |
rohitksingh_work | CarlFK: You are most welcome! :) | 12:59 |
rohitksingh_work | Heading to home now | 12:59 |
*** CryptoManiac has joined #timvideos | 13:00 | |
*** CryptoManiac has quit IRC | 13:00 | |
*** CryptoManiac has joined #timvideos | 13:00 | |
CarlFK | rohitksingh_work: take it with you.. it stopped working :p | 13:01 |
CarlFK | \me grumbles | 13:02 |
rohitksingh_work | that's bad...please try after disabling echo? I've returned the board to the embedded team and they all have left now. I can check it tomorrow again. | 13:03 |
rohitksingh_work | are you using some kind of "stress test" script which you are using to bombard the board with commands? | 13:03 |
rohitksingh_work | brb in about 30 minutes | 13:04 |
CarlFK | k | 13:05 |
CarlFK | rohitksingh_work: im trying to power cycle an Opsis board after flashing it's firmware | 13:05 |
CarlFK | go home, it will give me a chance to eat breakfast | 13:06 |
rohitksingh_work | ok :) | 13:07 |
*** rohitksingh_work has quit IRC | 13:10 | |
*** tsglove has joined #timvideos | 13:18 | |
*** futarisIRCcloud has quit IRC | 14:06 | |
*** rohitksingh has joined #timvideos | 14:49 | |
CarlFK | rohitksingh: halp... it's making me crazy. | 14:57 |
CarlFK | http://paste.ubuntu.com/p/7QRhQR4P7Q/ | 14:57 |
tpb | Title: Ubuntu Pastebin (at paste.ubuntu.com) | 14:57 |
CarlFK | >relay on 1 <- my typing in tio, always works (assuming I spell correctly) | 14:58 |
CarlFK | line 13 and 14, no relay click | 14:58 |
CarlFK | line 15 - I thought pipiing stuff into tio always worked (like this), but this time it didn't | 14:59 |
CarlFK | "like this" = at the console. if I try to run it in tmux/screen/systemd, tio says: Error: Saving current stdio settings failed | 15:01 |
CarlFK | https://github.com/tio/tio/blob/master/src/tty.c#L197 error_printf("Saving current stdin settings failed"); | 15:01 |
tpb | Title: tio/tty.c at master · tio/tio · GitHub (at github.com) | 15:01 |
CarlFK | which is why I stopped using tio in a script | 15:02 |
CarlFK | line 23,24,25 (same as 14,15) all worked. | 15:04 |
CarlFK | I think tio is resetting something that needs resetting. or something. I don't know - this is magic to me. | 15:05 |
rohitksingh | CarlFK: that is very unfortunate...I'll check it tomorrow | 15:05 |
CarlFK | rohitksingh: thanks. very much thanks. :) | 15:06 |
*** m4ssi has quit IRC | 16:10 | |
*** rohitksingh has quit IRC | 16:29 | |
*** CryptoManiac has quit IRC | 16:51 | |
*** rohitksingh has joined #timvideos | 17:00 | |
*** CryptoManiac has joined #timvideos | 17:02 | |
*** CryptoManiac has joined #timvideos | 17:02 | |
*** CryptoManiac has quit IRC | 17:07 | |
*** rohitksingh has quit IRC | 18:57 | |
*** CryptoManiac has joined #timvideos | 19:07 | |
*** CryptoManiac has joined #timvideos | 19:07 | |
*** Crypto-Man has joined #timvideos | 19:10 | |
*** CryptoManiac has quit IRC | 19:10 | |
*** Crypto-Man has quit IRC | 19:30 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!