Project

General

Profile

Large improvements to LAOS coming up!

Added by Topy44 about 11 years ago

Hi,
I will post a more detailed message later, but just to let you know:
We spent two entire days and nights (working right through the night :) working on our fork of the LAOS firmware, fixing, implementing and reimplementing stuff. We did a LOT of changes, I will document them properly later so most of it should make it back into the main branch.

Changes include:
- Simulation mode run before running a job that checks if all movements are within specified min/max limits
- Test run that runs a job without turning on the laser to see if it fits on the material
- Cancel button on i2c panel now works, move, home and job modes
- If lid is opened, any movement is canceled and homing is reset
- Check if homed before running a job
- Manual movement completely rewritten from scratch, now is much smoother
- If end stop is hit during movement, all actions are stopped and homing is reset
- After homing and after running a job, laser returns to the set "resting" position
- "Return to resting position" menu option
- PWM and Laser On outputs merged, so a single output can be used for lasers set up that way (instead of using AND gate as we did before)
- During homing, a line is pulled up to override an internal safety board that is hardwired to stop the motors
- Offsets/"Origin" function works as expected
- Changed a lot of confusing display output
- and more...

Will document stuff more closely. LAOS now almost does what we want it to. :) Mostly smaller stuff remaining, and fixed to the engraving system.
We would like some help to either fix TFTP transfers (slow and unreliable) or implement some alternative. I know this has been talked about before, but as it is now, it is almost a show-stopper. We will see.

Cheers,
Thorin (DingFabrik Köln)


Replies (11)

RE: Large improvements to LAOS coming up! - Added by peteruithoven about 11 years ago

Great work! Can't wait to try it out.
I'm especially curious how the merging of PWM and Laser On will work.

RE: Large improvements to LAOS coming up! - Added by jaap about 11 years ago

This sounds really good! Can't wait to see it in action! Are you posting a fork on GitHub?

RE: Large improvements to LAOS coming up! - Added by peter about 11 years ago

Great! Nice to see other people working (and improving) on the code. Let us know when we can try and pull in the source.

the TFTP is indeed an area for improvement.
Originally the system had a TCP/IP socket, that worked sort of OK (using netcat), and Visicut still supports this interface, however, closing the socket was not always detected correctly, causing the last data to get lost sometimes. Also: the plain socket had no associciated job/file name.

I will make an issue for that. Suggestions are welcome!

RE: Large improvements to LAOS coming up! - Added by Topy44 about 11 years ago

Sorry for not answering sooner, I am quite busy at the moment. Will write more later.

Yes, the current state is available on github here:
https://github.com/lukas2511/LaosLaser

Note:
The current version works, but some stuff is messy, some is buggy, and some stuff might break compatibility with other laser cutters and is not yet configurable through config.txt

I am currently engraving stuff with it, works nicely. Have some minor problems, but all in all its great.

RE: Large improvements to LAOS coming up! - Added by jaap almost 11 years ago

I looked into the changes a while ago, but they are too wide-spread and unorganized to be accepted as one patch into the main tree. It is just one big blob of changes, with no apparent order.

We can only patch the existing code with it, if the changes are well-documented and each commit fixes one problem at a time.

Also, these patches make changes in libraries that we imported from other sources, which makes things very confusing. It doesn't make sense to change printf commands in someone elses library...

RE: Large improvements to LAOS coming up! - Added by Topy44 almost 11 years ago

Sorry for not getting back to you guys on this.
Yes, as jaap says, the changes are all over the place and barely documented. Essentially, we fixed what we needed for us. We will try to make the most important ones available as patches at some point, but essentially we decided to just rewrite parts of LAOS from scratch instead of hacking the existing code for our purposes.

I am currently busy with another project which will be done soon. Then my attention is back on LAOS. :)

RE: Large improvements to LAOS coming up! - Added by jaap almost 11 years ago

Hi Topy,

Which parts did you "rewrite from scratch"? I looked all over your changes and 90% of what I saw was changing "\n" into "\n\r", which might look great on your terminal, but not on others. I'm curious to see which rewrite I missed!

RE: Large improvements to LAOS coming up! - Added by Topy44 almost 11 years ago

You misunderstood:
We have not rewritten it yet, but rather we decided to rewrite parts instead of cleaning up the previous, messy changes.

And seriously, we did do a lot more than changing some trivial line feeds... I don't understand why you are criticizing our work like this. We made changes for our own purposes, and they work. We do hope to eventually commit some of them back to the main tree, but the main purpose was to make it work for us. That's why its a fork. You can play around with our changes, you can use some of them for your own purposes, or you can just ignore it or wait for us to continue work on it. We are planning to do a lot more work on it, but had some other projects to take care of first.

Things that we did implement: Proper manual moves, working "Origin" function, rest position, remember if the laser is homed, cancel button works, ...
Yes, many messy hacks, that's what happens when you pull all-nighters fueled on too much caffeine. So don't use it.

Stuff we want to rewrite eventually includes the whole user interface/menu system, the networking, parts of the engraving function, and some more...
I am also currently designing a new PCB, compatible to LAOS, but more suited for our purposes, as we actually ended up not using much of the board at all... Its currently a huge mess of wires, pieces of protoboard and glue logic.

RE: Large improvements to LAOS coming up! - Added by jaap almost 11 years ago

By calling your post "large improvements" you created some kind of expectation.

I would like to import improvements (even if they are small) back into the mainstream code, but with what you have online right now, I just can't.

RE: Large improvements to LAOS coming up! - Added by Topy44 over 10 years ago

Just in time for the LAOS user meeting, Lukas made some of the changes more "merge-able". Check https://github.com/LaosLaser/Firmware/pull/8
Specifically, the cancel button and the properly working manual moves.
More stuff later.

    (1-11/11)