Anduril 2 feature change suggestions

It’s for more lights in the multichannel branch. Dynamic PWM has a different PWM_TOP per level, allowing more control over the step size (so you get a less bumpy ramp at lower levels, better channel mixing, etc.).

1 Thank

I have built all of my hex files with anduril2-r657 branch.
(Sofirn SP10 Pro, SC21 Pro, Wurkkos TS10, TS21, all with t1616)

Is it better to use the multi-channel-r721 branch?
I’ve got an impression that the multi-channel branch has more developments. is the regular anduril2 branch about to be deprecated?

No. It’s normal in software development that features are developed in parallel using individual branches. Eventually they will be merged.

1 Thank

thanks for the info.

I’ll try the multi-channel branch,
I think the changed version check from YYYYMMDDXXXX to XXXX.YYYY-MM-DD,
where the punctuation makes a “buzz” instead of number blinks

sounds interesting. :thinking:

Keep in mind that it is experimental and has only a few build targets so far.

1 Thank

OK, I’ll try to compile hex files for my SC21 Pro or TS10, or both.
Smoother ramp sounds good:
converted Wurkkos TS10 build (and made its ramp smoother w/ better low modes)

Windows updates break things. Always have, always will. Its not worth the risk, especially for just a few little software issues.

It would also be a b*itch to do it over my internet, I looked its a live streaming upgrade.(Hotspoting off 4G on my phone)

Yeah, it’s just that I like it best when my editor is just an editor and not an entire operating system like the latest versions of Vim (to say nothing of emacs) try to be :wink:

Windows always breaks things, updates or not, even if you let it alone it will eventually corrupt the register, DLLs, etc.

That’s one of the reasons I avoid it like the plague and for software that needs it and I can’t live without, I just run it inside a nice isolated and snapshotted VirtualBox VM in my Linux machine – and always restore the snapshot when I shut it down, that way all of its shenanigans are rolled back to a “known-good” (or at least “known-working” state) every time I need it.

Life is simply too short to spend trying to understand and/or fix that devil spawn OS that is Windows…

1 Thank

You’re saying you didn’t set up a CI system that builds when you commit to your development version? :wink:

Security issues. If windows 8 isn’t out of support, it’s about to be. When Windows is out of support, people will reverse engineer the security updates issued to newer Windows versions, find out what the vulnerability is, then test unsupported old versions of Windows to see if they’re vulnerable, so unsupported Windows versions end up full of holes very quickly. I can remotely take control of a wide range of Windows XP systems and potentially many Win7 ones without any direct access to them past being on the same LAN just by cracking a password hash with a modern GPU, for example.

To paraphrase good old Brecht, “What are Windows 8 specific security issues, compared to Windows general security issues”? :slight_smile:

Seriously, Windows sucks in all possible aspects (stability, performance, etc) but specially re: security. Anyone who doesn’t want to bother learning enough about computers to run Linux or any decent *ix derivative, should just go and buy a Mac (and I say that despite hating Apple stuff, but at least it’s way safer, more stable, and more performant than Windows).

I’m not the us government or a bank, I couldn’t care less about security updates, nothing I do needs securing. Whats someone going to do, steal my 3d designs that I share free anyway? Or 400 pics of my dog in my truck? Lol

As to windows or linux,

Windows works out of the box on Any hardware I’ve ever put it on. Linux took weeks of finding, compiling, coding and hoping you could get codecs and dlls or libraries to work just to get the basics like video cards and sound to work, let alone modems/wifi to work. I gave up and went back to Windows.

I did linux for a over a decade before it was “a thing” and only 20 people on the planet knew about it. And I grew to absolutely hate it if I wanted to do anything other than fix the damn OS all the time. Its one reason I walked away from even owning a computer, and doing 3D design work, programming, etc, it all stopped being fun. I didn’t have anything for years.

If I want to tinker, I’ll get a linux box. If I want function so I can then code in OpenSCAD and tinker for days :wink: on the 3d printer, I use Windows.

Its actually funny, but the only software issues I have now are the open source free wrote by sone yahoo in his garage stuff that doesn’t work on either operating system even though its supposed to. Windows itself is fine.

I’m sure windows never works for some people, and linux is flawless for others… different folks, different uses, different preferences etc… I refuse to condemn either one. I also know what does and doesn’t work for me, and thats what I’m doing. :sunglasses: :+1: when it stops working, I’ll figure out something else.

First lesson of security: everyone has enemies. Even if you never use online banking, Paypal or buying on Amazon or any ecommerce site (in which case a security breach can give you serious economic pain), what if someone encrypts your entire hard disk and holds the encryption key for ramson?

Linux is much much easier to use than a decade ago. You should try the latest Ubuntu or Mint, it’s basically plug and play nowadays.

But anyway, if everything is working good for you on Windows 8 or what-have-you, more power to you – won’t try to convince you of the contrary.

2 Thanks

The driver situation has improved a lot since then. In general, any common hardware is well-supported (in some cases there are binary blobs, but a Windows user isn’t too worried about that, I’d guess :stuck_out_tongue: ), and Linux has much better support for a wide variety of super niche/edge-case hardware than Windows.

2 Thanks

Ransomed hard disk; I wipe it and reformat it myself. Or pitch it and get a new one, and start from scratch. Lol I’d cry over some lost code, and a couple hundred pics I don’t have backed up off machine, but theres nothing on it thats worth $ to me.

My financial stuff, what little I do online is on my phone(big gasp here from anti cell phone tin foil hat people lol). Where I DO have the security updates in place. And ironically there, linux wins… anyway whatever of linux is still inside modern Android :wink:

I’m not 100% adverse to trying it again. I have Ubuntu on a desktop, but its a funky dell setup with absolutely no network adapter/card etc. And like I said, I’m well over tinkering so its not worth the use of trying to upgrade the tower.

Are they now plug and play for laptop hardware?
That was a big thing, since they’ve existed in afordable form, its all I’ve had and that was the big linux downfall for me. When I got away from it you already pretty much run it on any desktop in existence, but only 1 in 10 laptops.

If I cant get a compiler going on win8(ironically so far Im enjoying the tinkering to get that going), we’ll see how serious I am about actually building my own Anduril, I might try to set this thing up to dual boot something.

:sunglasses:

Well, I guess you’re a prime customer for Windows them :wink:

A lot of Linux is inside every Android phone – and not just the whole kernel. Case in point, go and install Termux: it basically ‘pierces’ the Android GUI and gives you an almost complete command-line Linux on your phone, complete with a package manager and repositories and whatnot – just so you have an idea, you can even install and run a full LAMP stack on it. (heheh… never thought I would one day be talking about LAMP on a flashlight forum :wink: ) But seriously, I use it all the time when I’m away from my computer and (command-line wise) it’s almost as good, only reason I go back to my computer for a lot of stuff is just for the better keyboard and larger screen.

There may be hope for you yet. :smiley:

I’m not the best person to tell you that as I’m pretty selective re:laptops (I only use IBM/Lenovo Thinkpads or – more recently – HP ZBooks), but from indirect experience, I’d think the number is more like 9 in 10 nowadays. Anyway, testing any laptop is (and has been for quite some time) just a matter of downloading a “live” image of your preferred distro, writing it to a pendrive, and booting from it – really easy, and you can do it without even buying the laptop at your nearest Bestbuy or what-have-you.

Ah, and I’ve never used one, but nowadays most/all of the cheaper laptops comes from factory with Chrome OS , which is basically “Android on a laptop” and OFC with Linux underneath – major difference being that it (like Android) really wants to store all your data in the Google cloud. So if you don’t mind your privacy too much (and if you are using any Windows > 7, you certainly shouldn’t :wink: ) you could just go and use it as-is, or buy one where you can replace Chrome with Linux (some ChromeOS laptops are locked and won’t let you install anything but Chrome :expressionless: ).

Or just install Linux and use Virtualbox to run a VM or ten (I have one for each ‘thing’ I need to do which requires Windows software). Another option if you really don’t want to install linux on your machine is to install VirtualBox for Windows on it and run Linux inside a VM (to me this is just like using a cart to pull a horse, but some people say they do that and that it works for them :wink: ).

1 Thank

PSA: if you flash one of the newest (esp. from the ‘multichannel’ branch) Anduril revisions on your flashlight and think you’re going crazy, don’t worry, you’re not :wink:

Seriously, I just downloaded/configured/compiled/flashed revision 721 straight from TK on my Wurkkos FC13, and it gave me some serious head-scratching specially re: version check: it blinks the switch aux LEDs instead of the main one (no big deal, had seen it before) BUT it totally changes the blink sequence: first comes the MODEL number instead of the date (on the aux LEDs), then it ‘BUZZES’ (!) the main LED , then it blinks the year (on the aux LEDs again) plus another buzz of the main LED and then rinse and repeat for month and day.

I thought something was seriously wrong (with my flashlight or my brain or both :smiley: ) until I examined the new release’s version-check-mode.c and found it’s on purpose :wink:

Also, @wolfgirl42 and/or @ToyKeeper, you might be interested to know that the new revision (compared to eg. 654) introduces some breakage when #undef USE_SIMPLE_UI is present in the flashlight-specific cfg file (which I do to completely remove simple mode from my lights to save the flash and to have them start right at Advanced mode after every flashing/factory-reset): it leaves a ‘leading else’ on line 130 and forces the compile to abend with a syntax error. My fix was this:

--- 721/~toykeeper/flashlight-firmware/multi-channel/ToyKeeper/spaghetti-monster/anduril/channel-modes.c.orig-20230611  2023-04-26 03:39:28.000000000 -0400
+++ 721/~toykeeper/flashlight-firmware/multi-channel/ToyKeeper/spaghetti-monster/anduril/channel-modes.c        2023-06-11 20:03:39.254320591 -0400
@@ -121,19 +121,19 @@
     #if defined(USE_SIMPLE_UI)
     // remaining mappings aren't "simple", so stop here
     if (cfg.simple_ui_active) {
         return EVENT_NOT_HANDLED;
     }
-    #endif
 
     #if NUM_CHANNEL_MODES > 1
     // channel toggle menu on ... 9H?
     else if (event == EV_click9_hold) {
         push_state(channel_mode_config_state, 0);
         return MISCHIEF_MANAGED;
     }
     #endif
+    #endif
 
     return EVENT_NOT_HANDLED;
 }
 
 

Not sure if this is the correct fix, but WFM (perhaps because I don’t have multichannel? :slight_smile: )

Thank you ladies for all the great work you do with Anduril, and @wolfgirl42 specially for the assist in pointing me towards the multichannel branch when I asked about the best firmware for the FC13 on r/flashlight.

EDIT: now that I digged my old Launchpad account back out, may as well submit this as a bug to TK’s repo: Bug #2027883 “multi-channel branch: compile-time error if USE_SI...” : Bugs : Flashlight Firmware Repository

EDIT #2: Now that TK moved Anduril to Github,I’ve resubmitted this fix as a pull request: Fixes syntax errors when USE_SIMPLE_UI is undefined by DurvalMenezes · Pull Request #2 · ToyKeeper/anduril · GitHub

2 Thanks

So here it is: Anduril: implement quick aux LED on/low switching, see description at the top · GitHub, implemented as a diff patch against TK’s latest and greatest multi-channel branch rev 721.

The above is tested and working perfectly on both my Wurkkoses (TS10 and FC13), and I don’t see a reason for it not to work in every flashlight supported by @Toykeeper’s multichannel branch revision 721. In fact I’ve changed to it as my “daily driver”[1] firmware on both my lights.

In case you don’t want to patch/configure/compile a new hex from the diff above, tell me your flashlight model number (or send me your cfg-brand-model.h file) and I will do it for you and send you the hex.

Hope that helps!

[1] “daily driver” idiom borrowed from Android custom ROM lingo.

2 Thanks

Oh my goodness, thank you so much for helping.
I can do the first test with my D4V2 Ti NO Fet. Yes please, send me one hex :smiley:

1 Thank

You’re welcome, I’m glad to help! :slight_smile:

Will do! I’m away from my computer right now, but will get on to it as soon as I’m back – should be in a couple of hours. Will post back here with a link to the hex as soon as it’s done.