How record data?

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
camiiiille
Posts: 5
Joined: Thu 6. Jul 2017, 11:09

How record data?

Post by camiiiille » Thu 6. Jul 2017, 11:37

Hello,
I am new in this forum. I have a Raspberry pi 3. I use correctly the driver and display data from the device with cat dev/pcan32
But I would like to know : could I record the data from the device connected with the PCAN-usb?
Thanks,
Best regards,
Camille

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: How record data?

Post by PEAK-Support » Thu 6. Jul 2017, 15:13

if you use the CharDev (Character Device) driver you simply could pipe the output of the console to a text file.
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

camiiiille
Posts: 5
Joined: Thu 6. Jul 2017, 11:09

Re: How record data?

Post by camiiiille » Mon 17. Jul 2017, 15:28

Is it possible to record automatically every received data from the device and using theterminal in the same time?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: How record data?

Post by PEAK-Support » Mon 17. Jul 2017, 15:30

Yes - use a second terminal instance
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

camiiiille
Posts: 5
Joined: Thu 6. Jul 2017, 11:09

Re: How record data?

Post by camiiiille » Mon 17. Jul 2017, 16:36

With which tool can I record automatically data?

User avatar
PEAK-Support
Sales & Support
Sales & Support
Posts: 1646
Joined: Fri 10. Sep 2010, 19:34

Re: How record data?

Post by PEAK-Support » Mon 17. Jul 2017, 16:42

If you use the CharDev (Character Device) driver you simply could pipe the output of the console to a text file.
If you use the SocketCAN (NetDev Device) driver you simply could use the Tool candump.
(see SocketCAN documentaion on GitHub)
--------------------------------
PEAK-System Technik
Technical Support Team
support[at]peak-system.com
-------------------------------

Post Reply