Current Server Time: 22:55 (Central Europe)

#apertus IRC Channel Logs

2020/04/28

Timezone: UTC


01:06
Spirit532
left the channel
01:06
Spirit532
joined the channel
01:09
vup
ok not that much new from me this week
01:09
vup
anuejn did a lot of work on our nmigen gateware
01:09
vup
there is now a (low performance) axi lite interconnect and simulations / simulation helpers for the axi interface
01:09
vup
small example of how the new abstractions are used:
01:09
vup
https://github.com/apertus-open-source-cinema/nmigen-gateware/blob/master/src/connector_test.py#L42-L49
01:09
vup
also some work started on a high performance axi writer
01:09
vup
I did some small fixes of the micro r3 schematic (added some missing pullups) and continued filling the missing parts (adding decoupling and connecting the last few bits)
01:09
vup
Also some work done on nctrl, mostly some more internal improvements and the start of an actual test suite:
01:09
vup
https://github.com/apertus-open-source-cinema/nctrl/blob/afd2e725391a7a2a1169b16f67974c8625fd3185/src/test/mod.rs#L59-L95
01:13
Bertl
nice
01:14
Bertl
btw, I got all the stuff for testing the SD interface together (old interfaces as well as new gadgets to test with)
01:15
Bertl
haven't tested yet though, but planning to do so in the next few days ... what firmware does use the new FSBL?
01:20
vup
nice
01:20
vup
the new firmware hasn't been using fsbl for some time, (it uses u-boot spl instead)
01:20
vup
so any of the newer firmware builds should work
01:20
vup
newest currently would be https://github.com/apertus-open-source-cinema/axiom-firmware/releases/download/nightly%2F7bb337cf/axiom-beta-7bb337cf.img.xz
01:21
Bertl
okay, perfect, tx
01:21
vup
ok, off to bed now, have a good one!
01:21
Bertl
nn
01:35
Bertl
left the channel
01:36
Bertl
joined the channel
03:44
aombk
joined the channel
04:13
Bertl
off to bed now ... have a good one everyone!
04:13
Bertl
changed nick to: Bertl_zZ
06:09
BAndiT1983|away
changed nick to: BAndiT1983
07:29
BAndiT1983
changed nick to: BAndiT1983|away
07:42
se6ast1an
good day
07:48
BAndiT1983|away
changed nick to: BAndiT1983
08:11
metal_dent[m]
Hello!
08:25
se6ast1an
how is it going metal_dent[m]?
08:38
metal_dent[m]
going great, woke up a little late today ':D , will start working now..!
08:40
BAndiT1983
ah yes, the student life :P
08:49
mumptai
joined the channel
09:10
se6ast1an
well lockdown definitely makes it harder to get up in the morning :)
09:11
se6ast1an
at least for me
09:11
se6ast1an
the way to the office is too short...
09:12
metal_dent[m]
you don't have work-from-home?
09:16
BAndiT1983
we have, but some are still more students than others :D my alarm rings at 7am at latest and i start almost instantly my laptop after that
09:24
metal_dent[m]
XD
09:29
se6ast1an
my alarm goes off at 8 am but it takes me at least half an hour to arrive in the living room :P
09:36
BAndiT1983
https://giphy.com/gifs/crawling-l3aV3gXxYgS9q/fullscreen
09:39
BAndiT1983
but on the serious side, it's good to have a fixed time plan, as i can stop my work around 3PM or 3:30PM and do other stuff, although at the moment many things are not possible, so i can focus on 3d printing and software development more
09:41
metal_dent[m]
yeah, having a fixed time schedule is the best!!
09:47
BAndiT1983
have you implemented ImageButton already?
10:07
BAndiT1983
metal_dent[m]: se6ast1an: i would suggest to keep the images for the documentation in the repo and not somewhere in the cloud
10:08
metal_dent[m]
i guess maybe that's why they aren't appearing in the README..?
10:09
se6ast1an
yeah good idea
10:09
se6ast1an
there is https://github.com/apertus-open-source-cinema/AXIOM-Remote/tree/dev/Docs/Images/Structure
10:09
se6ast1an
for placing illustrations/images, etc.
10:11
metal_dent[m]
should I make an svg file too?
10:12
BAndiT1983
yes, please, have extracted it locally and started to adjust it a bit, as it was a bit off, but it's not finished yet
10:13
metal_dent[m]
okay then I'll wait for you to finish
10:16
BAndiT1983
nah, just push the version from the gdoc first
10:17
BAndiT1983
i will upload mine, when i have straightened a bit out, as it has produced too many objects
10:33
metal_dent[m]
okay, have added the png file
10:36
BAndiT1983
ehm, i was hoping for the SVG, as changeing the PNG is not that easy
10:36
BAndiT1983
*changing
10:37
metal_dent[m]
ohh
10:38
BAndiT1983
for docs and diagrams i would always prefer SVG first, if it's not a full color image example
10:41
metal_dent[m]
do you use Inkscape for conversion?
10:42
BAndiT1983
conversion of what?
10:42
metal_dent[m]
to svg image?
10:43
BAndiT1983
ou can download the SVG version directly from gdocs, just open the image and go to the menu in the diagram editor, there is download sub-menu and multiple image formats available
10:55
futarisIRCcloud
left the channel
11:36
metal_dent[m]
BAndiT1983: I created ImageButton class which inherits IButton
11:37
metal_dent[m]
also you recently suggested to not use switch-case for buttons then what can we use..?
11:46
BAndiT1983
there are a couple of examples in the code, which use button handlers, as i can't go fancy, they are plain static functions/methods
11:47
BAndiT1983
bigger question is, how to supply the data to them and in which format, should the screen be the sender or the button or both, as we for sure need to switch dialogs using them, so menu system should be supplied in some way and so on, many questions are still open
11:52
se6ast1an
what BAndiT1983 means I think is that its not something that can be solved in the same go as creating the ImageButton
11:54
BAndiT1983
exactly, this is totally separate problem to solve
11:54
metal_dent[m]
Okay and can you briefly describe the tasks of the ImageButton class? (want to make sure so that I don't go in the wrong direction like last time)
11:55
BAndiT1983
just as example and for further reading -> https://www.gamedev.net/tutorials/programming/general-and-gameplay-programming/effective-event-handling-in-c-r2459/
11:55
BAndiT1983
what is possible at the moment in the ImageButton class?
11:57
metal_dent[m]
afaik the drawing of the sidebar button images, implementation was the switch-case which i removed
11:58
BAndiT1983
ImageButton should only have one purpose, showing a button with given icon, i hope there is a possibility to provide the icon through constructor or setter method, although constructor should be the primary source
11:58
BAndiT1983
*-source *+choice
11:59
metal_dent[m]
only that? so the button handling will be in another class?
11:59
Bertl_zZ
changed nick to: Bertl
11:59
Bertl
morning folks!
12:00
BAndiT1983
Bertl: hi
12:00
BAndiT1983
metal_dent[m]: which button handling would you place in the button class?
12:02
metal_dent[m]
the button handling as in if we press button_7 we goto "Home" and like that...
12:02
BAndiT1983
?
12:02
BAndiT1983
and how do you want to have different handling if you place it only in one class??
12:03
metal_dent[m]
no no, i meant the "code" for the "handling"
12:04
BAndiT1983
it is already prepared and was working, you should check the code
12:04
metal_dent[m]
wait... i guess I'm getting confused ':D
12:11
BAndiT1983
metal_dent[m]: look at IButton, Activate() is not the best name yet, but this is the hinge of the whole handling
12:17
metal_dent[m]
yeah..
12:17
BAndiT1983
at the moment we need better glue than switch/case, namely adding handlers which have button ID and then the menu system would handle highlighting and other things
12:30
Bertl
metal_dent[m]: here you go: http://vserver.13thfloor.at/Stuff/AXIOM/REMOTE/remote_v0.14.pdf
12:33
metal_dent[m]
Bertl: thank you!
12:53
Bertl
np
13:13
max_bxl
joined the channel
13:13
max_bxl
hello everyone !
13:15
se6ast1an
hi maxime!
13:18
berto_bxl
joined the channel
13:18
se6ast1an
hey there
13:18
se6ast1an
how are things going?
14:05
BAndiT1983
changed nick to: BAndiT1983|away
14:12
max_bxl
se6ast1an we are testing the fil_reg 15 0 method to stop hdmi output
14:12
max_bxl
but we need to be root to do so
14:13
max_bxl
is there a way to write a script that can do it then ?
14:13
max_bxl
shall I copy cmv_reg for example ?
14:28
max_bxl
I created fil_reg.sh from cmv_reg.sh
14:28
max_bxl
and it works just fine
14:28
max_bxl
!
14:36
se6ast1an
yes root/sudo is required for any change to the camera parameters curently
14:36
se6ast1an
great, so what is the script you used now exactly?
14:48
max_bxl
https://pastebin.com/5uvaBD9W
14:50
se6ast1an
great, thanks
14:51
max_bxl
I wonder what is best practice for the axiom between #!/bin/bash or #!/bin/sh
14:51
max_bxl
?
14:52
se6ast1an
shouldnt matter
14:59
vup
max_bxl: I would say use /bin/sh if you don't need any bash features and /bin/bash if you do
15:01
max_bxl
ok thanks
15:01
BAndiT1983|away
changed nick to: BAndiT1983
15:02
vup
max_bxl: do the scripts work for you? then I will add them to the normal firmware builds
15:03
max_bxl
yep it just did
15:03
vup
ok
15:08
max_bxl
about raw2dng
15:09
max_bxl
I'm still not sure how to indicate which darkframe and/or dcnuframe file raw2dng should look at while converting raw12 to DNG
15:10
max_bxl
for now, I put the *.pgm files in the same folder as the raw12 I want to convert and run raw2dng from there
15:11
max_bxl
but running it twice on the same image, with the --no-dcnuframe --no-darkframe options output the same result
15:11
max_bxl
(visible when you contrast the image at maximum)
15:12
max_bxl
I'm wondering what I do wrong, since I didn't find explanation so far in the wiki
15:17
se6ast1an
is your dark frame called darkframe-xN.pgm
15:18
se6ast1an
where N stands for the gain
15:18
max_bxl
yep
15:18
se6ast1an
and does raw2dng output anything about what it is doing?
15:18
se6ast1an
can you upload raw12 and darkframes somewhere?
15:20
max_bxl
https://pastebin.com/MHF7XeUw
15:21
max_bxl
https://cloud.apertus.org/index.php/s/Lpo9f28GmsNeeTs in timelapse/20200323_rushes
15:21
se6ast1an
can you type "which raw2dng"
15:21
se6ast1an
thanks
15:22
max_bxl
gives /usr/local/bin/raw2dng
15:23
se6ast1an
raw2dng might be confused about the current path it is run from
15:23
se6ast1an
and looks for darkframe there...
15:23
se6ast1an
in which directoy to you have darkframe currently?
15:24
max_bxl
ok, it was copied there during "make install"
15:24
se6ast1an
you do this on the beta or your pc?
15:24
max_bxl
same directory as in the cloud
15:24
max_bxl
but on my computer
15:24
max_bxl
on the pc
15:25
se6ast1an
ok, please try copying the raw2dng executable to your current work directly
15:25
se6ast1an
cp /usr/local/bin/raw2dng /home/maxime or whatever your workdir is
15:25
se6ast1an
and then run "./raw2dng image00001.raw12" instead of "raw2dng image00001.raw12"
15:27
max_bxl
output (text and DNG) is the same
15:29
max_bxl
it's uploaded on the cloud "image00001.DNG"
15:30
max_bxl
any idea ?
15:30
se6ast1an
alexML: you there?
15:32
se6ast1an
downloading files and compiling raw2dng locally currently to verify
15:35
max_bxl
ok thanks !
15:36
se6ast1an
ok I can confirm that behaviour
15:36
se6ast1an
does the same here
15:36
se6ast1an
will check with alexML
15:36
max_bxl
what are the options?
15:36
max_bxl
ok thanks!
15:36
max_bxl
gotta go for an hour, will check the logs!
15:41
se6ast1an
right
15:49
se6ast1an
max_bxl: I think I have an idea what could cause the problem
15:50
se6ast1an
you did not use the -r dump sensor registers parameter when you captured the images
15:50
se6ast1an
so there is no metadata and raw2dng does not know which gain was used
15:51
se6ast1an
off for a bit
16:19
Bertl
off for now ... bbl
16:19
Bertl
changed nick to: Bertl_oO
16:29
berto_bxl
left the channel
16:33
se6ast1an
Should be easy to fix btw
16:48
berto_bxl
joined the channel
16:57
max_bxl
se6ast1an thanks!
16:57
max_bxl
will try asap
16:57
max_bxl
bye everyone
16:57
max_bxl
left the channel
17:12
berto_bxl
Hello Sebastian, everyone
17:12
berto_bxl
I'm starting RCN calibration from begining
17:14
berto_bxl
I'm having a little issue when taking darkframe, It stops taking full resolution image starting image 48
17:14
berto_bxl
https://pastebin.com/AaktXdSy
17:15
berto_bxl
I'm following instruction from firmware(2.0) https://wiki.apertus.org/index.php/Factory_Calibration_(firmware_2.0)
17:25
se6ast1an
Are you running out of space?
17:26
berto_bxl
just found out the solution
17:26
berto_bxl
yes indeed
17:52
panintended
joined the channel
18:03
metal_dent[m]
umm... shouldn't this be "highlighted" -> https://github.com/MetalDent/AXIOM-Remote/blob/dev/Firmware/UI/Widgets/PushButton.h#L13 ?
18:04
BAndiT1983
yes, looks like a typo
18:05
metal_dent[m]
it's used in MainPageButton and PushButton files
18:14
BAndiT1983
what is so special about a typo? it was a copy/paste thing between the 2 classes
18:15
metal_dent[m]
nothing special.. I was just looking at the button classes and found it
18:15
metal_dent[m]
do we need to fix the typo?
18:15
BAndiT1983
no, we will keep it to please the gods...
18:16
BAndiT1983
of course it should be fixed
18:16
metal_dent[m]
okay XD
18:21
BAndiT1983
by the way, highlighting should also move to the IButton class for now, usually i would say that we should create Button class, which is derived from IButton and PushButton should derive from Button, but for now i don't want to clutter up the system too much
18:21
BAndiT1983
so i'm cheating a bit and using the interface class as base class for the widgets
18:22
metal_dent[m]
yeah, I'm also making the ImageButton like the PushButton
18:22
metal_dent[m]
the idea of the Button class from IButton is good but will need to clean up a lot
18:23
BAndiT1983
what i've described is the usual way: interface -> base class -> derived classes
18:24
BAndiT1983
but we will do it afterwards, first we need progress and i can assist by refactoring, when you have more experience with OOP, then you can also start to straighten things out
18:25
metal_dent[m]
i just grep and checked out, there aren't much "hightlighted"s
18:25
BAndiT1983
as we are on a microcontroller level, i won't force full-blown OOP solution for firmware, so shortcuts are ok, but clean code is still mandatory, like short methods and clean structure with single reposnsibility
18:26
BAndiT1983
i know, as this 2 classes were written by me
18:27
BAndiT1983
will start cooking, but am still able to chat, have to think about the debug painter, have a solution, which is maybe not that beautiful, but would spare us quite some trouble
18:29
metal_dent[m]
great! and what's cooking? ;)
18:33
BAndiT1983
baking some vegetables in the oven (grill mode), like aubergines, zucchini and carrots, i slice them before, apply oil and spices, afterwards i place them in a bowl and pour vinegar over it and squeeze garlic over it, then it can be stirred and let it soak a bit before eating
18:36
metal_dent[m]
sounds delicious (and healthy)
18:39
BAndiT1983
not always, but often, one of the reasons is, that because of the fire we had no electricity for 1.5 days, so gave all the things from the freezer to my brother before it unfroze and gone bad, just have to stock it up again
18:46
panintended
Hi everyone o/
18:50
panintended
BAndiT1983: if you want some feedback (or even to setup a meeting to brainstorm) for the debug painter do let me know. If I can schedule it in advance, I should be able to put 2-3 hours aside.
18:52
panintended
*be it the debug painter or anything else
18:52
BAndiT1983
hi panintended
18:54
BAndiT1983
thanks for the offer, will possibly come back to it, just have also other things besides apertus which consume time, so my development efforts are a bit sporadic
18:54
panintended
I feel that :)
18:54
panintended
I have a similar sistuation myself
18:55
panintended
just know that the offer is there. It can even be a public Jitsi meeting that anyone can join
18:56
BAndiT1983
usually we do spontaneous meetings here, not many people are active so it's good that some life is happening on this channel besides the cosmic silence
18:56
BAndiT1983
also reading logs often when not online, just replying is difficult, but will install IRC on my smartphone
18:58
BAndiT1983
any news on the knob button? what is your general opinion on the structure of the code?
18:59
panintended
You can use a matrix bridge for that since freenode (users,channels, etc.) is bridged. Here: https://github.com/matrix-org/matrix-appservice-irc/wiki/Guide:-How-to-use-Matrix-to-participate-in-IRC-rooms
19:01
BAndiT1983
don't have matrix account, as i'm not using messaging that much
19:01
panintended
Actually the link is to setup of an IRC bouncer of sorts. But you can also just directly communicate from your matrix.org handle with freenode usesrs/rooms
19:01
panintended
ok, understood
19:02
BAndiT1983
my IRC account is configured on the apertus bouncer, have just to enter the credentials on my phone
19:02
panintended
ok, easy then :)
19:03
panintended
regarding the knob: I'm about to test what you'd sent (https://github.com/ocornut/imgui/issues/1889). I will put some time aside tomorrow as well, as today again my day was full
19:04
BAndiT1983
take your time, there is no urgency
19:05
Roopar
joined the channel
19:05
BAndiT1983
luckily my sprint change is next week, otherwise i would also have full day of phone conference, which drains the brain over 5 hours
19:05
Roopar
left the channel
19:06
panintended
I do have questions coming up as I'm going through the code (about the implementation itself and also about the direction things are going). I guess I should start writing things down :P
19:07
BAndiT1983
ask anytime, you can also send emails, this ones i can answer much quicker when not available here
19:08
panintended
thanks, appreciated
19:19
se6ast1an
just pushed a tiny improvement to raw2dng: https://github.com/apertus-open-source-cinema/misc-tools-utilities/commit/3ca6468e99c7915f391b8c45fae4e1a4738f61f7
19:19
se6ast1an
this should make it easier to spot the problem maxime ran into early
19:26
metal_dent[m]
BAndiT1983: fixed the typo!
19:31
BAndiT1983
metal_dent[m]: thanks, merged both PRs
19:38
metal_dent[m]
thanks!
21:40
vup
Bertl_oO: did you ever test the axi hp writer without multiple in flight transactions? If we didn't mess up anything, we are getting about 1436 MB/s without having multiple transactions in flight...
21:41
Bertl_oO
nah, never tested it out of the original design
21:44
Bertl_oO
but for writes, it shouldn't be too problematic to not have the addresses in advance
21:44
vup
ok, does ~1400MB/s seem reasonable for one writer?
21:44
Bertl_oO
I presume the memory controller will rearrange the transactions anyway
21:45
Bertl_oO
let me dig out the test values we got ... will take a few minutes
21:45
vup
sure
21:45
vup
they also seem to hint at some reordering / latency hiding in the axi hp interface itself in the zynq trm
21:52
Bertl_oO
so, a qick check gave we tested 11Gbit/s for a single reader/writer
21:52
Bertl_oO
which matches your results quite nicely
21:58
vup
ah nice
22:00
Bertl_oO
note that the DDR memory maxes out after the second writer IIRC
22:05
vup
yeah we can try that later
22:07
Bertl_oO
currently testing the sd-card boot
22:10
Bertl_oO
long cable is already enough to make the sd card fail in both cases, old and new firmware
22:11
vup
hmm too bad
22:11
vup
so maybe its the bootrom failing and not the fsbl
22:12
Bertl_oO
maybe, maybe it is just the controller
22:12
Bertl_oO
I'll investigate a little more there ...
22:13
Bertl_oO
should have tools now which were not available back then :)
22:13
vup
I thought it worked in u-boot / linux after booting from something else...
22:13
BAndiT1983
changed nick to: BAndiT1983|away
22:13
Bertl_oO
well, yes, the card 'works' once Linux is up
22:13
Bertl_oO
I can test that when booting from flash
22:14
vup
well then the controller shouldn't be the problem (if it is not misconfigured, but that seems unlikely)
22:14
Bertl_oO
I suspect a timing issue, but maybe it is a voltage level problem during detection
22:16
Bertl_oO
I'm currently using this for the 'long cable' test: https://www.adafruit.com/product/3688
22:18
vup
do you get anything on serial?
22:18
se6ast1an
off to bed, good night
22:18
vup
nn
22:19
Bertl_oO
nope, just the red led goes on, nothing on the serial
22:19
Bertl_oO
and I can't reset the device from that point on either
22:19
Bertl_oO
i.e. I have to power cycle for another test
22:20
vup
hmm that doesn't sound good
22:20
vup
maybe 68cm is a bit too much
22:20
Bertl_oO
which is the same behaviour I get when booting without SD card
22:20
vup
yeah
22:20
vup
did you ever try to determine the state the cpu is in via jtag?
22:23
Bertl_oO
nope, but I have jtag connected and plan to test :)
22:23
Bertl_oO
I'm also doing some tests with the SDIO mux I used to figure out whether it behaves differently from the card
22:24
Bertl_oO
it might be that we are dealing with two unrelated issues here
22:24
Bertl_oO
i.e. cable being too long and SD-mux behaving too unusual for the picky sd controller
22:24
vup
yeah could be
22:25
vup
did you measure the voltage drop accross the cable?
22:25
Bertl_oO
not yet, but this time I have the necessary instrumentation for this kind of checks
22:27
vup
nice
22:27
Bertl_oO
btw, I would suspect the JTAG to be disabled during the ROM bootloader no?
22:28
Bertl_oO
but we should know soon, just have to do some modifications to simplify power cycling first
22:36
vup
hmm yeah didn't think of that
22:36
vup
lets hope not
22:40
Bertl_oO
hmm, so with normal testing of the sd-mux, I only get 11.5MB/s thoughput on the card, while without I get 22.5MB/s
22:40
Bertl_oO
which means that at least something is off here
22:48
vup
i suppose the bandwidth is the same on a different "normal" pc?
22:48
Bertl_oO
yes, I'm always testing on both, a card reader and the MicroZed
22:49
Bertl_oO
it looks like the reference design does use much higher pullups and no pullup on the clock
22:49
Bertl_oO
I'll try that just for fun :)
22:49
vup
yeah that could be something
23:07
panintended
left the channel
23:20
Bertl_oO
well, the results are different now, not really better though
23:21
Bertl_oO
changed the pullups from 10k to 100k on CMD, DAT* and removed the pullup from CLK
23:21
Bertl_oO
power cycling the MicroZed now gives no red led
23:21
Bertl_oO
pushing the reset button activates the red led
23:21
Bertl_oO
no output on the console though (tested with both old and new firmware)
23:22
Bertl_oO
sd-mux still only achieves 11.5MB/s throughput
23:44
futarisIRCcloud
joined the channel
00:14
vup
hmm interesting