maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Lanterne - an all-purpose flashlight app (https://talk.maemo.org/showthread.php?t=90229)

Copernicus 2013-05-26 21:11

[Announce] Lanterne - an all-purpose flashlight app
 
3 Attachment(s)
Lanterne is a small app for working with the LEDs used to create a flash for the N900's camera. At the moment, it supports "torch" mode (continuously light the LEDs at low power), and "strobe" mode (a quick flash of the LEDs at high power). Also, holding down the "strobe" button will cause the LEDs to flash continuously (a "strobelight" effect).

The LED power, the duration of the strobe, and the pause between strobes can be modified.

Warning: I am not an expert on the flash LEDs! Although I have made an effort to ensure that only safe values can be entered for these parameters, I cannot say for certain that this app will not damage your LEDs. Use with caution!

At this point, several features have been added:
* A Morse code flasher, allowing you to type in a message or load a text file to be transmitted. The dot duration is configurable.
* A continuous SOS beacon.
* A continuous pulse (essentially, Morse E rather than SOS).
* Support for use with the red (indicator) LED.

Lanterne now recognizes the status of the camera cover, and avoids turning on the LEDs if it is closed (and will turn off the LEDs if the user closes the cover). Also, it can now exit when the user closes the camera cover.

Version 0.5.6 has been added to the end of this post, as well as submitted to the extras-devel repository.

Lanterne is open-source software, released under the GPL version 2 (or greater). You can find the source code at Github:

https://github.com/jpietrzak8/Lanterne

sixwheeledbeast 2013-05-26 21:57

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Thank you for this application.
One request (if you are taking any)...
I have always wished to be able to type out and flash morse code with the flashlight. Possible?

peterleinchen 2013-05-26 22:03

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by sixwheeledbeast (Post 1347052)
I have always wished to be able to type out and flash morse code with the flashlight.

Of course typing plain text, or? ;)
And output in terminal and LED is morse code...

Copernicus 2013-05-26 22:06

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by sixwheeledbeast (Post 1347052)
I have always wished to be able to type out and flash morse code with the flashlight. Possible?

It shouldn't be hard, at least in terms of turning the LED on and off. (I have to admit I never learned morse code myself, so I probably don't know all the tricks involved; I know a bit about how letters and numbers are keyed, but I think there's something more intricate involved when keying out full words and sentences...)

In any case, hooking up keyboard keys to sets of LED pulses shouldn't be too hard. I guess you could also feed text files into the thing and get series of pulses out...

It'd probably be easier to work with this using the "torch" mechanism rather than the "flash" mechanism, as I'd have finer control over "torch" timing; would you need the highest-level brightness for your morse code flashes? :)

Copernicus 2013-05-27 00:39

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Ok, version 0.1.0 of Lanterne is now on its way up to extras-devel. From the pull-down menu, you can now select "Morse Code", which will bring up a window with a text entry field; type your desired text into this field, click "Transmit Code", and the LED will flash out the characters for you.

There is also a "Dot Duration" spinbox; you can use this to determine the length of a dot. (A dash is three dots, dashes and dots are separated by a dot-length pause, characters are separated by a 3-dot-length pause, and words are separated by a 7-dot-length pause.)

This is just standard Morse alphabet, taken off of the Wiki page for Morse code. :) I haven't tried to add any internationalization or shortcuts or whatever (and I probably don't know enough to do it right anyway). But, at least, it should support the basics.

Now, the _really_ interesting app addition imho would be to have the N900 read incoming morse code, not just transmit it. :) Dunno just how much effort that would take, though...

panjgoori 2013-05-27 04:36

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
thanks for the app. I have a question. for how long can we use N900'a LED's as flash continiously without damaging them ?

malfunctioning 2013-05-27 05:05

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by sixwheeledbeast (Post 1347052)
Thank you for this application.
One request (if you are taking any)...
I have always wished to be able to type out and flash morse code with the flashlight. Possible?

You must have read my mind! One of the applications which I have planned for when I get into programming is a morse code application. This is one of its features, but it is a bit more ambitious than that. I am going to start learning programming for the N900 next month, but I don't know when I will become productive. :)

malfunctioning 2013-05-27 05:10

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Copernicus (Post 1347072)
Ok, version 0.1.0 of Lanterne is now on its way up to extras-devel. From the pull-down menu, you can now select "Morse Code", which will bring up a window with a text entry field; type your desired text into this field, click "Transmit Code", and the LED will flash out the characters for you.

There is also a "Dot Duration" spinbox; you can use this to determine the length of a dot. (A dash is three dots, dashes and dots are separated by a dot-length pause, characters are separated by a 3-dot-length pause, and words are separated by a 7-dot-length pause.)

This is just standard Morse alphabet, taken off of the Wiki page for Morse code. :) I haven't tried to add any internationalization or shortcuts or whatever (and I probably don't know enough to do it right anyway). But, at least, it should support the basics.

Now, the _really_ interesting app addition imho would be to have the N900 read incoming morse code, not just transmit it. :) Dunno just how much effort that would take, though...

This is amazing. LOL. I had also thought about the detection module. I don't know how feasible it is though. Ideally you would want to analyze a live video buffer without actually saving it on the fly, and perhaps apply some sort of levels filter to better detect on-off events.

Personally, I think doing this is a challenge, but I wouldn't put it past you to come up with a way to do it.

sixwheeledbeast 2013-05-27 09:07

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Copernicus (Post 1347055)
It shouldn't be hard, at least in terms of turning the LED on and off. (I have to admit I never learned morse code myself, so I probably don't know all the tricks involved; I know a bit about how letters and numbers are keyed, but I think there's something more intricate involved when keying out full words and sentences...)

CuteCW is a morse code application I use on N900 maybe worth a look if you fancy.
Normally there is a character per second value but there is nothing too complicated about sentences in morse.

Quote:

Originally Posted by Copernicus (Post 1347055)
In any case, hooking up keyboard keys to sets of LED pulses shouldn't be too hard. I guess you could also feed text files into the thing and get series of pulses out...

Thank you for the new version.
I was imagining a live keyboard type method but typing a string and pressing enter works fine.

Quote:

Originally Posted by Copernicus (Post 1347055)
It'd probably be easier to work with this using the "torch" mechanism rather than the "flash" mechanism, as I'd have finer control over "torch" timing; would you need the highest-level brightness for your morse code flashes? :)

You wouldn't need flash brightness IMO. I would stick to known safe limits of the LED's where possible.

Copernicus 2013-05-27 09:52

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by panjgoori (Post 1347088)
I have a question. for how long can we use N900'a LED's as flash continiously without damaging them ?

I have absolutely no clue, and as such, would not use them for very long. Personally, I'd stick with the "torch" functionality instead, if you want to keep them on continuously...

Copernicus 2013-05-27 09:56

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by malfunctioning (Post 1347099)
Ideally you would want to analyze a live video buffer without actually saving it on the fly, and perhaps apply some sort of levels filter to better detect on-off events.

Yeah, I kinda thought that would probably be the way to do it too, although the amount of processing required seems prohibitive. I've never done video processing before; maybe there's a lightweight way to pull brightness info out of a video stream? :)

Copernicus 2013-05-27 10:02

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by sixwheeledbeast (Post 1347139)
CuteCW is a morse code application I use on N900 maybe worth a look if you fancy.

I'll take a look!

Quote:

I was imagining a live keyboard type method but typing a string and pressing enter works fine.
This was the easiest way for me to get an update out before bedtime. :) I can get fancier with the input if you like. :)

Quote:

You wouldn't need flash brightness IMO. I would stick to known safe limits of the LED's where possible.
Cool. The other advantage of using the "torch" mode is that I'd only need to deal with a single timer; with the "flash" mode, I'd have to play around with both the timer for the Morse code dots and dashes, and the flash timer. (This would get to be a real pain if a dash ended up longer than the maximum allowed flash duration...)

biketool 2013-05-27 13:30

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Speaking of morse code, couldn't the flash and camera be used to send data using the IrDA protocol perhaps some kind of time duplexing if the flash interferes with the camera? At night it could be possible to semaphore from one hilltop to another perhaps a few km at 1Mb/s or higher if the camera can handle the conversion.

Copernicus 2013-05-27 13:56

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by biketool (Post 1347170)
Speaking of morse code, couldn't the flash and camera be used to send data using the IrDA protocol perhaps some kind of time duplexing if the flash interferes with the camera?

Yup, though standard IrDA speeds are way too fast for the camera to catch. It'd be fun to add a visible-light I/O mechanism to the N900... :)

Estel 2013-05-27 15:03

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Copernicus, you're absolutely awesome. Yesterday I've suggested it, today, before my fingers were even able to rest, You've implemented it, including...

Quote:

Originally Posted by sixwheeledbeast (Post 1347052)
I have always wished to be able to type out and flash morse code with the flashlight. Possible?

..."toldya!" feature request. Which makes you even more awesome. Thanks a lot for this program, really!

One request - being able to switch stroboscopic light (with set parameters) ON without need to continuously press button. I.E strobo-torch mode.

/Estel

Copernicus 2013-05-27 15:57

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Estel (Post 1347188)
Yesterday I've suggested it, today, before my fingers were even able to rest, You've implemented it

Thanks! I aim to please. :)

Quote:

One request - being able to switch stroboscopic light (with set parameters) ON without need to continuously press button. I.E strobo-torch mode.
Ah, well, yeah, I did the continuous-hold thing on purpose. It's pretty obvious from the V4L2 parameters that the guys who set up the flash LED interface really don't want you to be leaving the LEDs on at high power. I'm already nervous that I'm bypassing that with this app; I really don't want to provide a way for folks in general to just turn on their LEDs and then walk away...

However, you're free to take the source code and modify it as you please. :) I've just set up a Github account for Lanterne, you can find it here:

https://github.com/jpietrzak8/Lanterne

I haven't gotten all the licensing rigamarole in place yet, but it's going to be under the same "GPL 2 or greater" thing as Pierogi is. :)

malfunctioning 2013-05-27 17:24

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Copernicus (Post 1347145)
Yeah, I kinda thought that would probably be the way to do it too, although the amount of processing required seems prohibitive. I've never done video processing before; maybe there's a lightweight way to pull brightness info out of a video stream? :)

There has to be an acceptable way of doing that if you can do stuff like face recognition:

http://www.youtube.com/watch?v=A-Wh4NuRfeU

And then really cool stuff like this from Icuk (God bless him, rest in peace):

http://www.youtube.com/watch?v=sjSrw...endscreen&NR=1

qwazix 2013-05-27 19:05

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
It may be possible if you use the histogram function of fcam http://fcam.garage.maemo.org/apiDocs...histogram.html

there are a couple if examples but probably the best one is fcam's own autoexpose function source
http://fcam.garage.maemo.org/apiDocs...pp_source.html

Copernicus 2013-05-28 02:33

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
In the process of setting up the source files to comply with the GPL licensing mechanism, I went ahead and cleaned up the user interface a bit, so there's a small update to Lanterne now making its way up to extras-devel. All this really does is move the torch and strobe options into their own windows, and place buttons for each Lanterne function onto the main window.

(I'm currently educating myself on the subtleties of playing with video hardware... :) )

sixwheeledbeast 2013-05-28 17:25

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Some more feedback after further playing with your creation.

I suppose it would make sense to have a toggling button for SOS?
You never know if N900 and Lanterne could save somebodies life.
I have added Lanterne to Lens Launcher so I can select it quickly.

Presonally I am finding the default button height too small.

Is it correct the values do not save? I suppose now the settings are on mostly on one page out the way, a "QSettings:save" button and a "reset to default" button should be fairly easy to add to the bottom of the window?

Edit:-
Also bugtracker is missing from the control file :)

chill 2013-05-28 20:52

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
On the package overview page the listed homepage is for Pierogi, not Lanterne.

Copernicus 2013-05-28 21:08

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by sixwheeledbeast (Post 1347490)
I suppose it would make sense to have a toggling button for SOS?
You never know if N900 and Lanterne could save somebodies life.

You know, I really ought to spend a little more time perusing the available apps. Is there really no app out there already that does some sort of SOS signalling? Aren't there dozens of flashlight apps?

(This is probably an aftereffect of coming from the iPhone world; I just assume "there's already an app for that" for any given idea...)

Will do, I'll get one into the next update. :)

Quote:

Presonally I am finding the default button height too small.
Yeah, Qt designer defaults to a type of button that is optimized for desktop use. I'll use the settings I've got in Pierogi, hopefully that'll make them a bit more finger-friendly. :)

Quote:

Is it correct the values do not save?
Yeah, I haven't (yet) set up a QSettings system for Lanterne. (Honestly, I think I did pretty good for an app entirely written on a warm lazy Sunday... :) ) But yeah, I'll add it in, it isn't hard to do. :) :)

Quote:

Also bugtracker is missing from the control file :)
Now that I have a Github page for Lanterne, I'll use it's "issues" mechanism for the bugtracker. :) Thanks!

(Honestly, I was sure there was an all-purpose flashlight app already out there somewhere...)

Copernicus 2013-05-28 21:10

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by chill (Post 1347558)
On the package overview page the listed homepage is for Pierogi, not Lanterne.

Ah, that would be because I stole the "control" file from Pierogi and used it in Lanterne. That, and the fact that I don't have a homepage for Lanterne... :)

Well, I guess I do now have a Github page for it, so I'll go ahead and use that for now. :)

chill 2013-05-28 21:21

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
On the Strobe screen, Flash Brightness Level cannot be made lower than 12 with the minus button - intended?

Also, pressing the Strobe Flash button (once, briefly) does not make the LEDs flash - also intended? Holding it down works. I guess you wanted the user to press for a second and then release to flash once?

Torch Brightness Level on the Torch screen can only take 0 or 1 with the plus/minus buttons - intended?

P.S. I just managed to press Strobe Flash briefly and make it "strobe " continuously...the screen was in rotating just as I was pressing, maybe that caused it.

Either way, cool stuff.

Copernicus 2013-05-28 21:38

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by chill (Post 1347573)
On the Strobe screen, Flash Brightness Level cannot be made lower than 12 with the minus button - intended?

Sort of -- the lower and upper bounds of 12 and 19 are, in fact, the raw values I'm getting from the call to the "Video for Linux 2" (V4L2) device driver, when I query for the minimum and maximum values for "FLASH_INTENSITY". I really don't know if they signify any real-world values, but the driver will accept integral values anywhere from the minimum to the maximum. (It may also accept values outside that range, but I'm not willing to experiment with that...)

Quote:

Also, pressing the Strobe Flash button (once, briefly) does not make the LEDs flash - also intended?
Actually, that one's not intended; when I kick off the timer to start strobing, I've got it alternating between on and off periods, and unfortunately I started with an off period. :) I'll fix that...

Quote:

Torch Brightness Level on the Torch screen can only take 0 or 1 with the plus/minus buttons - intended?
Yeah, those are also the raw values I'm receiving from V4L2 for "TORCH_INTENSITY". It seems that you can only have one brightness in "Torch" mode. (I suppose I shouldn't even bother with the spin-box...)

Quote:

P.S. I just managed to press Strobe Flash briefly and make it "strobe " continuously...the screen was in rotating just as I was pressing, maybe that caused it.
Ack! Hmm, I'm depending on Qt to alert me when the user stops pressing the "strobe" button; I guess there are situations where that signal won't be sent. I'll see if I can bullet-proof it a bit. :)

Thanks!

EDIT: I don't seem able to reproduce the continuous strobe bug... Can you tell me a little bit more about how to cause it? (Do you need to press while rotating, lift up while rotating, something like that?) Thanks!

sixwheeledbeast 2013-05-28 22:04

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
There are flashlight applications but they feature light on or off only AFAIK.
Hence the stream of feedback and comments :)

sixwheeledbeast 2013-05-28 22:24

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Strobe flash duration doesn't work lower than 29.
Personally I'd stop at 50 if your combo boxes jumps values in blocks of 50, or at least a multiple of 10

It's a little annoying to get to 1 via the minus button and then the plus is 51, 101 etc

Maybe a nicely worded "you can blind people or cause fits" discliamer dialog box would be a good idea? Only on first use or so you don't have to accept each time?

Also I'd say Lanterne is becoming a "Camera LED Flash Tool" more than a "Experimenter". :)

chill 2013-05-28 22:31

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Copernicus (Post 1347577)
EDIT: I don't seem able to reproduce the continuous strobe bug... Can you tell me a little bit more about how to cause it? (Do you need to press while rotating, lift up while rotating, something like that?) Thanks!

I've tried to reproduce now...I hold down the button in landscape mode, it starts strobing, and then I rotate the phone. The screen rotates, I release the button, and the strobing continues. It doesn't "work" every time; I'm not sure at which point I need to release the button (before/during/after rotation). But I've now done it twice. To stop the continuous strobing, I press the button again.

Estel 2013-05-28 22:49

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Few small feature requests (and one a little bigger), if you don't mind:

1. I noticed, that Morse code interpreter uses torch mode, not "flash" one. I understand, that this allow controlling dot length in wider ranges (outside maximum ON time for flash), but OTOH, is sending something in morse via flashlight, one would, probably, like to get brightest output possible.

Ideal idea would be to insert a torch/flash toggle in morse section, that would also affects possible limits ;) but if it's too much hassle, hardcoding it to flash (and limiting possible dot length) sounds OK, too.

2. I mentioned it before, but just in case it got missed - a button to activate stroboscopic light without need to push button continuously, please!

3. I've noticed, that it's the only existing program that talks with LEDs "properly" - i.e. don't collide with other programs, and/or allow to enable LEDs even, if slider is closed. I don't know if the latter was intended, but it is very cool feature! Now, finally, I can slide cover "just a little", without triggering camera-ui or quicklaunch&co, and enable torch! (easier to do with modified mugen covers, that open camera cover vertically, than with vanilla backcover, probably)

So, here comes a little request - a "module" or spinoff (although, the former sounds more sane) of Lanterne, that would allow enabling and disabling torch without starting Lanterne GUI. Best scenario would be a config option in Lanterne GUI itself (or just some text config file, somewhere), that would enable/disable presence of that status menu entry.

I know this feature request get quite big, but if there would be also a possibility to fine-tune parameters of that ON/OFF status menu button (i.e. it would use settings per-defined by users in Lanterne itself, for example, allow to use strobo with set parameters, instead of torch), it would become a flashlight heaven, a absolute no-brainer to completely replace other existing flashlight programs out here :)

4. From different "department" and also mentioned earlier, so just to sum it in one post - request for more input options in morse interpreter, like taking input from file etc.
---

No matter what, thanks a lot for this program! You've achieved something considered to be impossible - actually improved usage of oldest (one of) (ab)used N900's hardware parts. Who would expect, that after so many years (flashlight apps were amongst first written), we will get whole bunch of new things to do with those two little LED's, and that even regular "torch" can be MUCH improved?

/Estel

Copernicus 2013-05-28 23:10

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by sixwheeledbeast (Post 1347587)
Strobe flash duration doesn't work lower than 29.
Personally I'd stop at 50 if your combo boxes jumps values in blocks of 50, or at least a multiple of 10

Yeah, I really need to think a little harder about how to manage these settings. Spin-boxes provide a lot of flexibility, but they can be awkward when stepping through large ranges of values.

And yeah, I also noticed that the flash doesn't work when you set the duration very low. The odd thing is, values below 30 are listed as valid in the range data V4L2 is returning to me, so it may be that I can't really trust that data either... :(

Quote:

Maybe a nicely worded "you can blind people or cause fits" discliamer dialog box would be a good idea? Only on first use or so you don't have to accept each time?
:) :) I did put the label "Experimenter" at the top of the main screen, but yeah, I've blasted my own eyes pretty good a couple of times now playing with this thing... :)

Quote:

Also I'd say Lanterne is becoming a "Camera LED Flash Tool" more than a "Experimenter". :)
Yeah, it does seem to be looking that way, doesn't it? :) Thanks!

Copernicus 2013-05-28 23:26

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Estel (Post 1347590)
I noticed, that Morse code interpreter uses torch mode, not "flash" one.

Yeah, it saves me a heck of a lot of hassle by doing that. I'll take a look at offering a "high-power Morse code" option, but I'd prefer to stick with the torch mode for now...

Quote:

a button to activate stroboscopic light without need to push button continuously
Honestly, I'd prefer not to do that. I'm just too nervous about turning Lanterne into a "N900 Self-Destruct Tool" if I did that...

Quote:

I've noticed, that it's the only existing program that talks with LEDs "properly" - i.e. don't collide with other programs,
Ah, that would be the "non-blocking mode"! I was kinda amazed I could get away with using that when accessing the device driver. (If both Lanterne and another app start using the LEDs at the same time though, the results might be a little odd.)

Quote:

and/or allow to enable LEDs even, if slider is closed.
I don't know if the latter was intended...
Actually, I know there's a sensor somewhere to detect whether the cover is open or not, but I don't know how to access it yet, so I kinda just didn't bother. :) I should probably put a test in for that sensor, but I'll make sure that it can be disabled. :)

Quote:

So, here comes a little request - a "module" or spinoff (although, the former sounds more sane) of Lanterne, that would allow enabling and disabling torch without starting Lanterne GUI.
Shouldn't be tough. If you want, pretty much all the code involved in accessing the LEDs can be found in the LanFlashLED class, in the following files:

https://github.com/jpietrzak8/Lanter.../lanflashled.h
https://github.com/jpietrzak8/Lanter...anflashled.cpp

So you could go ahead and set up something yourself, without having to wait for me. But yeah, putting together a command-line interface to Lanterne should be a heck of a lot easier than for Pierogi, so it might not take me forever to get it done. :)

Quote:

From different "department" and also mentioned earlier, so just to sum it in one post - request for more input options in morse interpreter, like taking input from file etc.
Ok, will do; shouldn't be too hard to read input from a file. I'll look in to what it takes...

Copernicus 2013-05-28 23:41

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Ok, Lanterne version 0.2.0 is now on its way up to extras-devel. In this version:

* A "continuous SOS beacon" feature has been added. Press the "SOS" button on the main page to start it running; press again to stop it. Note that the beacon uses the dot-duration value set in the Morse Code page, so you can speed it up or slow it down if you want.

* I've given up on trying to play with the torch parameters, so I've gotten rid of the Torch window and replaced it with a simple Torch On/Off button on the main page.

* The UI buttons have been modified to be (hopefully) a bit more finger-friendly.

* All parameter values are now stored persistently via QSettings.

* The strobe timer has been fixed to strobe first, not pause first. :)

* The package meta-data has been improved slightly (setting up links to the Github website and bug management pages).

Please note that Lanterne is a very young project, and will certainly contain bugs! Thanks.

Estel 2013-05-29 14:49

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Copernicus (Post 1347601)
Honestly, I'd prefer not to do that. I'm just too nervous about turning Lanterne into a "N900 Self-Destruct Tool" if I did that...

Pretty, pretty please, maybe with some one-time warning? It's really not practical to keep button on screen pressed, just to get 500 ms ON and 100 ms OFF strobe light. From my experience with LEDs, I really doubt that such parameters could damage anything, and if yes - well, the risk is *only* for diodes itself, and it's user choice, after all.
---

Thanks a lot for your updates, this is real whirlwind of development! Just a little remark - after starting morse code output, there is no way to cancel it, except for closing whole program. Even going back and enabling torch mode result in torch getting activated, then deactivated by still-running morse code.

Some way to cancel it would be great :)

/Estel

// Edit
[Off-topic] I've noticed, that you're gathering donations for 2nd N900, for development purposes. I have some ideas, but I need to know your needs - is this device required to work 100%, or you could go with something like broken USB (for practical purposes, can be replaced by other communications channels, if you're not developing for USB hostmode, that is)?

Asking in public instead of PM, as I'm still not sure if I'll be able to come with something meeting your criteria - so, I would like others to also get aware about need for a development device for such a friendly and, overall, great developer :)
[/off-topic]

Copernicus 2013-05-29 19:02

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by Estel (Post 1347746)
From my experience with LEDs, I really doubt that such parameters could damage anything, and if yes - well, the risk is *only* for diodes itself, and it's user choice, after all.

Well, there are users, and there are users, right? :) You I trust, but we've just recently seen that there are some users (<cough>TheoX</cough>) who have rather strange notions of what activities are and are not healthy for an N900 to endure. I'm really nervous about someone grabbing an app like this, cranking up the parameters all the way, and leaving the thing running until something fails.

Let me make one more appeal: I personally keep a little LED flashlight on my keychain for when I really need a portable light. These things provide far brighter light than the N900 can, for a longer period of time, and are disposably cheap. For example:

http://www.amazon.com/Cree-300LM-Min...ref=pd_cp_hi_0

Couldn't something like this work for you? :) Thanks!

Quote:

Just a little remark - after starting morse code output, there is no way to cancel it, except for closing whole program.
Ack! Sorry, didn't consider that; yeah, I set the timer off and running without any way to control it... I'll fix that in the next update.

[Off-topic]
Quote:

I've noticed, that you're gathering donations for 2nd N900, for development purposes.
Actually, I did already pick up a second N900 a few months back (although the donations I've gotten only covered about half the price, so I'm still hoping to get a few more :) ). It has, in fact, helped me quite a bit for development work, as I still use my main N900 as my phone; I can now put experimental stuff onto my test N900 without worrying about messing it up.

I am considering whether a third N900 might be helpful; I could more easily play around with alternate OSs like Nemo or Arch, without the worry of interfering with either of my primary N900s... :)

But in any case, I want to make sure that people don't think there is any sort of obligation tied to this app (or to Pierogi). This is free software (both in terms of money and of freedom), to do with as you please. Thanks![/Off-topic]

Copernicus 2013-05-29 23:45

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Lanterne 0.3.0 is now making its way up to extras-devel. The big addition this time is the ability to load text files into the Morse code transmission window. It's pretty bare-bones right now, you just click on "Select Text File" and choose a file. (By default, it looks into the directory "/home/user/MyDocs/.documents".) (By the way, the contents of the text editor are _not_ stored persistently.)

If you prefer, you can still just type directly into the text editor box to create a message.

You can also now pause a running transmission by hitting the "Pause Transmission" key.

I've also added a warning message at the start of the app, telling users not to look directly into the flash LEDs. :) This warning should only show up once.

And, I did finally manage to reproduce that rotation-button error. I've made a change that I think will fix it. (In any case, it looks like Qt is not very happy about managing UI components during a rotation, so more problems may crop up. I suppose it might be better to catch the signal that the app is rotating, and just shut down the entire UI until the rotation finishes...)

As always, beware of new bugs! Thanks.

chill 2013-05-30 05:39

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
I installed 0.0.1 with HAM but I didn't see 0.0.2 and I can't see 0.0.3 now, either. Using FAM, however, I see 0.0.3 now. The extras-devel repository is set up the same way in both HAM and FAM, and I can see an update for another extras-devel application in both (Opera Mobile, which I don't want to update). Please advise.

hycraig 2013-05-30 09:35

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
[idea/request]
how about a sound detection mode that makes the led flash with music input from the mic like react to the beats, also have mic sensitivity adjustment for it, or an option to play a music track and to flash in time to the beat would be cool.
thank you for your work

Copernicus 2013-05-30 10:11

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by chill (Post 1347937)
I installed 0.0.1 with HAM but I didn't see 0.0.2 and I can't see 0.0.3 now, either. Using FAM, however, I see 0.0.3 now.

Yes, I seem to be having some trouble with HAM this morning as well; the repository contents I'm getting appear similar to what they were during the transition away from Nokia servers earlier this year. I suppose such issues will continue to crop up as the aftereffects of the transition are dealt with...

Copernicus 2013-05-30 10:16

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
Quote:

Originally Posted by hycraig (Post 1347983)
how about a sound detection mode that makes the led flash with music input from the mic like react to the beats, also have mic sensitivity adjustment for it, or an option to play a music track and to flash in time to the beat would be cool.

Hmm, let me take a look at the audio device stuff. I've never played with audio before myself, I'm not entirely sure how you pull beat information out of an audio stream. (Just look for raw volume spikes or something?) I'll do some investigating. :)

sixwheeledbeast 2013-05-30 17:08

Re: [Announce] Lanterne - an app for experimenting with the flash LEDs
 
An option to quit or switch off the light on lens cover closed will be handy.
I was using the torch yesterday and automatically closed the lens cover.
An hour or so later I spotted the battery drain and light from the gap in the cover. Oops.

This is habit from using flashlight application TBH.
I am starting to use lanterne as a replacement for it.

FYI I have been having the issues with updates not coming through either.
I have been installing with terminal and apt-get.

Get root and "apt-get install lanterne --version 0.3.0" (or latest number)


All times are GMT. The time now is 13:11.

vBulletin® Version 3.8.8