Comments for LibBits https://libbits.wordpress.com Little bits of information on everything Fri, 21 Jul 2017 08:08:43 +0000 hourly 1 http://wordpress.com/ Comment on SocketCAN Support in Python by Fritz https://libbits.wordpress.com/2012/05/22/socketcan-support-in-python/#comment-169 Fri, 21 Jul 2017 08:08:43 +0000 http://libbits.wordpress.com/?p=231#comment-169 ok sry missspelled it f** thx for your help

]]>
Comment on SocketCAN Support in Python by Fritz https://libbits.wordpress.com/2012/05/22/socketcan-support-in-python/#comment-168 Fri, 21 Jul 2017 08:07:32 +0000 http://libbits.wordpress.com/?p=231#comment-168 now i cant open file and it says that there is no sch file or Directory but its there when i look in the directory

]]>
Comment on SocketCAN Support in Python by yegorich https://libbits.wordpress.com/2012/05/22/socketcan-support-in-python/#comment-167 Fri, 21 Jul 2017 07:34:05 +0000 http://libbits.wordpress.com/?p=231#comment-167 In reply to Fritz.

Are you sure you really use Python3? This error message is typical for Python2. If you invoke the example like this you won’t have this error: python3 example.py can0. I’ll correct my blog entry.

]]>
Comment on SocketCAN Support in Python by Fritz https://libbits.wordpress.com/2012/05/22/socketcan-support-in-python/#comment-166 Fri, 21 Jul 2017 07:24:43 +0000 http://libbits.wordpress.com/?p=231#comment-166 i tried to run the script on my raspberry pi 2 with pyton 3.4.2 but i got the error message ‘module’ object has no Attribute ‘AF_CAN’

]]>
Comment on Capturing and Analyzing CAN Frames with Wireshark by yegorich https://libbits.wordpress.com/2012/05/07/capturing-and-analyzing-can-frames-with-wireshark/#comment-158 Thu, 09 Feb 2017 09:38:03 +0000 http://libbits.wordpress.com/?p=218#comment-158 In reply to david bonnin.

I don’t know. Basically you can replay wireshark captured traffic via tcpreplay, but I don’t know if it can handle CAN frames. I would ask this question on the linux-can mailing list.

]]>
Comment on Capturing and Analyzing CAN Frames with Wireshark by david bonnin https://libbits.wordpress.com/2012/05/07/capturing-and-analyzing-can-frames-with-wireshark/#comment-157 Thu, 09 Feb 2017 09:31:36 +0000 http://libbits.wordpress.com/?p=218#comment-157 do you know how is it possible to replay a capture of can frames ? with cansend for example?

]]>
Comment on Automatically Bring Up SLCAN Device Via Udev by P. Walter https://libbits.wordpress.com/2014/01/23/automatically-bring-up-slcan-device-via-udev/#comment-99 Wed, 01 Jul 2015 12:17:24 +0000 http://libbits.wordpress.com/?p=265#comment-99 Few points are missing here:
1. The modules “can”, “can_raw” and “slcan” need to be added to the kernel or you should add them to /etc/modules to load them automatically
2. The suggested script will not work if you didn’t install the can-utils (perform “make install” in the can-utils directory)
3. For me the script doesn’t work (i think it’s because it need root privileges as it uses hardware (ttyUSB0))

]]>
Comment on SocketCAN Support in Python by yegorich https://libbits.wordpress.com/2012/05/22/socketcan-support-in-python/#comment-90 Sat, 07 Feb 2015 10:30:09 +0000 http://libbits.wordpress.com/?p=231#comment-90 In reply to Michael.

Why do you need Apache? Take a look at and it’s support for WebSocket. With WebSocket you can create a thread, that would take care of incoming CAN frames and push them to the browser.

]]>
Comment on SocketCAN Support in Python by Michael https://libbits.wordpress.com/2012/05/22/socketcan-support-in-python/#comment-89 Sat, 07 Feb 2015 09:00:55 +0000 http://libbits.wordpress.com/?p=231#comment-89 Hello,
I want to run this script on an Apache webserver. Is there any possibility? Apache does not like thw while loop.

Thanks
Michael

]]>
Comment on SocketCAN Support in Python by yegorich https://libbits.wordpress.com/2012/05/22/socketcan-support-in-python/#comment-73 Thu, 13 Nov 2014 07:33:42 +0000 http://libbits.wordpress.com/?p=231#comment-73 In reply to kyle Lee.

Take a look at Buildroot (http://buildroot.net/downloads/manual/manual.html).

This embedded Linux distribution provides both Python versions and it even has a defconfig for BeagleBone. Just clone it’s git repo and invoke “make help”. You’ll see beaglebone_defconfig among others.

]]>