Net::CANbus - Perl wrapper for sending data to the CANbus using can-utils
Version 0.01
use Net::CANbus qw/CANsend CANsend_xs/;
my $rc = CANsend($deviceid, $canframe);
die "failed with return code $rc" unless $rc == 0;
...
It sends `$canframe` data to the CANbus interface identified by `$deviceid`. Internally it calls CANsend_xs which you can use directly.
It returns 0 on success or 1 on error.
It sends `$canframe` data to the CANbus interface identified by `$deviceid`. Internally it calls cansend() which is implemented by can-utils (see https://github.com/linux-can/can-utils)
It returns 0 on success or 1 on error.
Perl and XS code by Andreas Hadjiprocopis, <bliako at cpan.org>
can-utils code by https://github.com/linux-can/can-utils
Please report any bugs or feature requests to bug-net-canbus at rt.cpan.org
, or through
the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-CANbus. I will be notified, and then you'll
automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc Net::CANbus
You can also look for information at:
-
RT: CPAN's request tracker (report bugs here)
-
CPAN Ratings
-
Search CPAN
https://github.com/linux-can/can-utils
https://en.wikipedia.org/wiki/SocketCAN
This software (Perl and XS code) is Copyright (c) 2023 by Andreas Hadjiprocopis.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
For can-utils license see