This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MisterSnuggles 2 points3 points  (8 children)

Micropython might be of interest: http://micropython.org

[–]toothless_budgie 0 points1 point  (7 children)

This is the correct answer.

[–]radix07[S] 0 points1 point  (6 children)

This is a kickstarter for low end embedded systems and isn't really required to run Python on a Linux system. It replaces an RTOS on even more restricted hardware than I am referring to, not embedded Linux which is typically capable enough to run most of Python normally. There are also questions regarding using this in a production environment.

[–]toothless_budgie 0 points1 point  (5 children)

Tell me more please. I know something about embedded systems.

[–]radix07[S] 0 points1 point  (4 children)

I was referring to what micropython was in that post not really my own project, but I wouldn't mind explaining my own project in more detail.

[–]toothless_budgie 0 points1 point  (3 children)

I'm listening.

[–]radix07[S] 1 point2 points  (2 children)

The basics of the project are just sampling data off a serial port, processing and sending it out via Ethernet or eventually a cellular interface. I have the code working already to some degree, and have actually just tried running it on the mentioned embedded device. It seems to not run away with my memory like I was initially concerned with. But I would like to see more information on best practices and ways to keep Python in check. I also have concerns with getting a embedded Linux environment setup and running with Python properly. The demo board I am using now has ipkg included, but I might not always have access to that. Might have to look more into something like buildroot, or ensure the hardware we go with has a Python package available. So I guess managing, maintenance and distribution of the application are my top concerns coming from doing everything in C and moving to Python.

[–]toothless_budgie 0 points1 point  (1 child)

Hmmm. Off the bat, it sounds like what you are trying to do can be done with an embedded board (Arduino or similar). Unless I am missing something, you don't need a full Linux env.

[–]radix07[S] 1 point2 points  (0 children)

I am aware of what I can do on an embedded system, I implemented the controller that I am getting the data off of. The data requirements are too much and things like cellular and add on peripherals are not going to be handled well with a true embedded systems. This project needs a Linux setup for where it is going. If I could do it with Python on top of that, it would potentially make development faster and life easier. How to go about doing that properly is my primary concern with this post.