this post was submitted on 12 Aug 2023
24 points (96.2% liked)

flashlight

2946 readers
2 users here now

Portable illumination

Rules:

  1. Be excellent to each other
  2. Don't be the reason we need to make more rules

Related:

founded 1 year ago
MODERATORS
 

outstanding little Regulated Anduril Light!

Album w more details: https://imgur.com/a/vXeGC1t

you are viewing a single comment's thread
view the rest of the comments
[–] containerfan@lemmy.world 1 points 1 year ago (1 children)

I don't have a D2, but I assume that it uses a T1634 just like a D4V2. I believe that pymcuprog is for UDPI programmers, and your Hank programmer is USBasp which requires avrdude for programming. I realize that this post is for Windows, but it covers command-line usage of avrdude. It might help. I'm kind of shocked that I don't already have this documented somewhere, but I've been using zFlasher on Android for quite a while. It can handle UDPI and USBasp programmers.

As a side note, I believe that Hank uses a custom version of Anduril 2 for his lights. For example, I think that he exposes more of the "advanced" features in the Simple UI than ToyKeeper does. Of course, that's the beauty of open-source software. You can customize it. In any case, my point is that you can keep current with Anduril 2 while also customizing it for your preferences if you're willing to learn to modify the code. I've gotten to the point where I just stick with stock Anduril 2 in most cases.

[–] jon_slider@lemmy.world 2 points 1 year ago (1 children)

I believe that pymcuprog is for UDPI programmers, and your Hank programmer is USBasp which requires avrdude for programming.

thanks for the education, that is very helpful

Im technologically challenged atm.. my iMac wont run avrdude, and I dont have an android phone to run zflasher

you can keep current with Anduril 2 while also customizing it for your preferences if you’re willing to learn to modify the code

the apps needed to do that, dont run on my iMac, and Im not motivated to modify code

I’ve gotten to the point where I just stick with stock Anduril 2 in most cases.

I feel the same way… unless there is a hex file available that offers a feature I value, for example, I reflash the SC21 Pro, to add the lower lows available in later firmware

but I have not heard of a reason to reflash my D2.. the stock firmware works fine for me, so far

much appreciate your help understanding my options, and limitations

enjoy your weekend ;-)

[–] containerfan@lemmy.world 2 points 1 year ago (1 children)
[–] jon_slider@lemmy.world 2 points 1 year ago (1 children)

That worked! thanks ;-)

no clue yet what command line to use to save a backup of my D2 hex file.. suggestions welcome

this is the 3rd time Ive tried to reply.. lemmy keeps losing my posts.. hmmm

[–] lowprofile@lemmy.world 2 points 1 year ago (2 children)

As a D2 owner, to confirm a couple of things: My D2 originally shipped with Anduril version number 2021-12-13-0135 as well. Model number 0135 was originally named emisar-d4sv2-tintramp, and is now named emisar-2ch, cf. https://toykeeper.net/torches/fsm/anduril2/MODELS. Over there, it is also specified as attiny1634.

Scrolling down https://toykeeper.net/torches/fsm/anduril2/, you will find the latest emisar-2ch version at the bottom, currently indeed anduril.2023-08-07.emisar-2ch.hex. Over there, you will also still find anduril.2021-12-13.emisar-d4sv2-tintramp.hex.

For instructions specifically for backing up, cf. for example https://anduril.click/flashing/avrdude.html#backing-up.

Usually, I am using ZFlasher AVR via mobile phone (Android), which is very straightforward, but I just checked with avrdude (on Linux), and I had no difficulties with pinging the device, backing up, and updating, while using the instructions over at https://anduril.click/flashing/avrdude.html.

Finally, cf. https://bazaar.launchpad.net/~toykeeper/flashlight-firmware/multi-channel/view/head:/ToyKeeper/spaghetti-monster/anduril/hank-cfg.h to see which modifications Hank lights have from stock Anduril 2. Recently, a couple of functions were allowed in Simple UI, namely ramping toggle as well as aux config and strobe modes.

[–] jon_slider@lemmy.world 2 points 1 year ago* (last edited 1 year ago) (1 children)

I just checked with avrdude (on Linux), and I had no difficulties with pinging the device, backing up, and updating, while using the instructions over at https://anduril.click/flashing/avrdude.html.

SOLVED!

Thank you very much!

I was able to successfully ping and backup eeprom and hex file from my D2 with the following commands:

ping:

avrdude -p t1634 -c usbasp -n

backup eeprom:

avrdude -p t1634 -c usbasp -U eeprom:r:desktop/D2eeprom-backup.hex:i

backup D2 stock hex:

avrdude -p t1634 -c usbasp -U flash:r:desktop/oldD2-firmware.hex:i

Thanks!

[–] lowprofile@lemmy.world 1 points 1 year ago (1 children)

Great! Those commands are looking just fine. Good to hear that you got this sorted.

[–] jon_slider@lemmy.world 1 points 1 year ago

Super grateful! Enjoy your weekend ;-)

[–] containerfan@lemmy.world 1 points 1 year ago (1 children)

That's an awesome reference website! Thanks for sharing.

[–] lowprofile@lemmy.world 1 points 1 year ago