granitesmasher has asked for the wisdom of the Perl Monks concerning the following question:
I am starting a project where I am using CANBUS connected actuated valves. I can operate the valves in Windows using the USBTinViewer and Thomas Fischl's CANBUS adapter. I can also operate the valves in Linux using can-tools (candump and cansend) which are based on SocketCAN and some cheap Chinese MCP2515 based interfaces. This is my starting point.
I want to write my application in Perl on Linux because that is the language and environment I enjoy and I will use the MCP2515 interface because it is cheap and supported. End result of the whole project is the automation of a solar radiant heating system and the valves will dynamically control the zoned hot water flow through the Pex tubing in my floors.
What I cannot find is an example of a Perl script using SocketCAN. There was one mention on the Web of an IO::Socket::CAN module being developed but I cannot find this or any module on CPAN for using SocketCAN or anything CANBUS for that matter. What would I have to do to use SocketCAN in Perl? Would I need to develop a new module? If so, how does one go about this?
Another option I see is to use the socketcand daemon (which I just found and started reading about while writing this post) and connect to this daemon using Perl. Would that be a good or maybe even the best option? Please help to send me down the right path.
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SocketCAN - Anyone been there? Where do I start?
by afoken (Chancellor) on May 03, 2017 at 05:48 UTC | |
|
Re: SocketCAN - Anyone been there? Where do I start?
by karlgoethebier (Abbot) on May 03, 2017 at 06:46 UTC | |
by shmem (Chancellor) on May 03, 2017 at 13:45 UTC | |
by karlgoethebier (Abbot) on May 03, 2017 at 14:26 UTC |