LinuxCNC embedded into automation machine
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
26 Feb 2020 14:27 #158543
by Todd Zuercher
Replied by Todd Zuercher on topic LinuxCNC embedded into automation machine
I don't have any troubles with my Baytrail chipped board running Linuxcnc on Debian 7 (Wheezy) at work. But I have had huge problems with an identical board at home trying to run a MythTV box. It seems to be a problem with kernels from sometime after 3.4.9 up to at least 4.15. I think 4.19 and later might be ok. I can't remember what kernel version I was finally able to get to run on my Myth box at home, but I do remember it took me a loooong time to find something that finally worked. I do know that none of the stock kernels in Jessie will work with them, and I doubt the ones in Stretch do either.
Please Log in or Create an account to join the conversation.
- rodw
- Online
- Platinum Member
Less
More
- Posts: 10761
- Thank you received: 3543
26 Feb 2020 20:25 #158570
by rodw
The problem is hardware related. Linux is not able to handle the thermal slow down the chip set if it gets hot and the PC just turns off without warning. There is a long standing Linux kernel issue I found dating back 5 years that had over 1000 comments without it being closed off.
bugzilla.kernel.org/show_bug.cgi?id=109051
There were some proposed fixes which worked for some. Others suggested uninstalling the thermald service. I thought that worked but next time, it failed again. I've been meaning to see if the deletion stuck.
This issue has nothing to do with the distribution of Linux. I've tried a few and it makes no difference.
Replied by rodw on topic LinuxCNC embedded into automation machine
I don't have any troubles with my Baytrail chipped board running Linuxcnc on Debian 7 (Wheezy) at work.
The problem is hardware related. Linux is not able to handle the thermal slow down the chip set if it gets hot and the PC just turns off without warning. There is a long standing Linux kernel issue I found dating back 5 years that had over 1000 comments without it being closed off.
bugzilla.kernel.org/show_bug.cgi?id=109051
There were some proposed fixes which worked for some. Others suggested uninstalling the thermald service. I thought that worked but next time, it failed again. I've been meaning to see if the deletion stuck.
This issue has nothing to do with the distribution of Linux. I've tried a few and it makes no difference.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23160
- Thank you received: 4857
03 Mar 2020 23:42 #159123
by andypugh
Yes, In fact it should be relatively easy if you are OK with your custom interface running on the same PC as LinuxCNC.
It gets a bit more limiting if you want to run from a remote PC.
Replied by andypugh on topic LinuxCNC embedded into automation machine
Can LinuxCNC be operated "Headless" with the use of an API or custom Python interface?
Yes, In fact it should be relatively easy if you are OK with your custom interface running on the same PC as LinuxCNC.
It gets a bit more limiting if you want to run from a remote PC.
Please Log in or Create an account to join the conversation.
- hhscott
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 6
04 Mar 2020 00:08 #159127
by hhscott
Replied by hhscott on topic LinuxCNC embedded into automation machine
Yes, the Python interface using NML messaging will run on the same PC. The "Remote" aspect will be that a PLC will communicate to Python via Modbus to direct when events should begin and to relay status back to the master PLC controller.
HH
HH
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23160
- Thank you received: 4857
04 Mar 2020 00:14 #159128
by andypugh
You don't need to worry about NML, that's all hidden behind the Python API:
linuxcnc.org/docs/2.7/html/config/python-interface.html
Replied by andypugh on topic LinuxCNC embedded into automation machine
Yes, the Python interface using NML messaging will run on the same PC.
You don't need to worry about NML, that's all hidden behind the Python API:
linuxcnc.org/docs/2.7/html/config/python-interface.html
Please Log in or Create an account to join the conversation.
- hhscott
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 6
07 Mar 2020 23:41 - 07 Mar 2020 23:45 #159444
by hhscott
Replied by hhscott on topic LinuxCNC embedded into automation machine
OK, progress made. I received the ASRock Q1900 ITX board and all the peripherals. Got Debian 7 Wheezy LinuxCNC installed and everything booted up correctly. Couple of quick questions to keep moving:
1. My ASRock board has the built-in Parallel port. I intend to use this port for the 4 axis control. Any reason why this would not work and I would have to use an external Mesa card?
2. I am somewhat of a Linux Newbie, Linux light user. After getting the OS installed I went to add Geany IDE. That is my preferred Python coding environment. Using Synaptic package manager or the terminal with sudo apt-get install geany, I could not install it. My board is connected to the net and browsing is working normally. Also, the linux update functions are working normally. Any thoughts about installing Geany and other packages not included with the OS?
Thanks,
HH
1. My ASRock board has the built-in Parallel port. I intend to use this port for the 4 axis control. Any reason why this would not work and I would have to use an external Mesa card?
2. I am somewhat of a Linux Newbie, Linux light user. After getting the OS installed I went to add Geany IDE. That is my preferred Python coding environment. Using Synaptic package manager or the terminal with sudo apt-get install geany, I could not install it. My board is connected to the net and browsing is working normally. Also, the linux update functions are working normally. Any thoughts about installing Geany and other packages not included with the OS?
Thanks,
HH
Last edit: 07 Mar 2020 23:45 by hhscott.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19439
- Thank you received: 6508
08 Mar 2020 12:59 #159467
by tommylight
Replied by tommylight on topic LinuxCNC embedded into automation machine
Parallel works just fine.
Later on if you want to add more of everything, you can get a Mesa card.
To install geany, you have to enable the partner or romeo repositories in the software sources, from the menu.
Later on if you want to add more of everything, you can get a Mesa card.
To install geany, you have to enable the partner or romeo repositories in the software sources, from the menu.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
08 Mar 2020 14:39 #159470
by Todd Zuercher
Replied by Todd Zuercher on topic LinuxCNC embedded into automation machine
Might need to check that the Debian repositories point to the archives now that Wheezy is end of life.
Please Log in or Create an account to join the conversation.
- hhscott
- Offline
- Junior Member
Less
More
- Posts: 30
- Thank you received: 6
10 Mar 2020 18:01 #159678
by hhscott
Replied by hhscott on topic LinuxCNC embedded into automation machine
How ready is Debian 9 LinuxCNC for a 4 axis parallel port setup? Getting the modules that I want on 7 is proving difficult. I also would prefer to write code in Python 3.
Thanks,
HH
Thanks,
HH
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23160
- Thank you received: 4857
10 Mar 2020 18:46 #159687
by andypugh
Do you mean Debian 10? We have been distributing a Debian 9 (Stretch) ISO for some months, to the extent that it is the recommended offering on the download page.
www.linuxcnc.org/downloads/
Replied by andypugh on topic LinuxCNC embedded into automation machine
How ready is Debian 9 LinuxCNC for a 4 axis parallel port setup?
Do you mean Debian 10? We have been distributing a Debian 9 (Stretch) ISO for some months, to the extent that it is the recommended offering on the download page.
www.linuxcnc.org/downloads/
Please Log in or Create an account to join the conversation.
Time to create page: 0.094 seconds