Some developer tips for successfully moving your project from home to the plant floor.
我们知道许多开发人员喜欢修改Raspberry Pi硬件上的修补和原型项目。我在房子里做同样的事情,超过12个覆盆子Pi计算机做不同的事情。这是一个实惠且有趣的平台,背后有一个庞大的社区……什么不爱?挑战是时候该将项目从房屋/办公室转移到工厂地板时。
I have seen firsthand how the Pi CPU will speed throttle as soon as it gets a little warm and have personally been on the bad end of microSD card corruption due to heat or ungraceful power cycles. When it comes to the real world, you need to find some tougher hardware to run your code, and that’s often where thegroov家庭成为您的Google搜索结果的顶部。
Thegroovhardware is specified for -20 to +70 deg C and uses a power fail safe file system so you have a solid foundation to build on in that regard. As some of the very few automation controllers that both run Linux and offer full shell access,groovEPIC and/orgroovRIO are sometimes your only choice to move your shell code project from Raspberry Pi to the factory floor.
But that move can have some challenges of its own. If you are thinking about taking this path, here are a few things to be aware of, along with several resources to help you succeed.
The OS
PI上最常见的操作系统是“ Raspbian”,最近被重新命名为“ Raspberry Pi OS”,这是为Raspberry Pi建造的Debian混合混合物。只有大量的包裹只有一个预先建造的sudo apt-get,或者只是git的拉力,然后“使”远离启动和运行。
groov另一方面,硬件使用了Linux的自定义Yocto版本。这是纯Linux的精益版本,没有带很多额外的软件包,例如桌面或文字处理器或USB摄像头驱动程序来选择一些示例。
根据您的代码复杂性和所需软件包,您可能需要花更多时间从一个平台移动到另一个平台。您可能会发现,在运行应用程序之前,您需要从源构建一些先决条件库。当您推出已在PI上构建和测试的外壳应用程序时,这是要牢记的,现在想运行groov硬件。
包装依赖性
Oftentimes, you just need to install a package or two in order to get your application up and running. We have a list of the most requested applications here:http://developer.opto22.com/epicdev/shell/.
重要的是要记住,所有“ apt-get”套件都在Opto 22存储库中,而不是公共包装。这意味着它们都是由我们的加密钥匙签名的,有时是在出血边缘后面的一个或两个版本。根据您当时的需求,这可能是一件好事或坏事,因此请记住它。
如果要将您的Epic或Rio链接到GitHub存储库和帐户,则需要为每个存储库旋转证书和键。通过在您的groovhardware by following the Opto 22 forum post here:https://forums.opto22.com/t/epic-groove-ssh-agent-github/3830/.
特定于语言的资源
到目前为止,我认为可以说Python是我们在该语言上使用的最受欢迎的语言groov硬件。我们有一些很棒的资源可让您启动开发人员网站:http://developer.opto22.com/epicdev/python/.
我们的光盘上也有很多代码示例。特里在这里有一些出色的快速启动示例代码:https://forums.opto22.com/t/epic-data-using-using-optommp-with-python/2041.
C ++也已被证明非常受欢迎,我们的一位论坛用户汇总了有关如何开始开发的精彩指南:https://forums.opto22.com/t/short-tutorial-on-linux-programming-for-the-epic/3413.
我们的C ++的主要起点网站可以在此处找到:http://developer.opto22.com/cpp/.
最后,尽管不是真正的SSH特异性或硬核开发人员材料,但迄今为止,它是Epic或Rio上数据混搭的最受欢迎的工具。当然,我说的是Node-Red,我们在YouTube上拥有最观看的介绍视频,可以使您入门:https://www.youtube.com/watch?v=3AR432bguOY.
Let us know how it goes
If you have completed a migration from Raspberry Pi or other Linux-based systems togroovhardware, we’d love to hear your experiences. Feel free to leave a comment on this blog post,share a post on our forums, or leave a comment on one of ourYouTube videos让我们知道。
Filed Under:Opto 22
