Skip to content

Instantly share code, notes, and snippets.

View 3mb3dw0rk5's full-sized avatar

3mb3dw0rk5

  • Ilmenau
  • 21:30 (UTC +02:00)
View GitHub Profile
@3mb3dw0rk5
3mb3dw0rk5 / 80-socketcan.rules
Created July 9, 2020 07:29
Udev rule to automatically bring up socketcan interface with increased txqueuelen and baudrate of 500kBaud
ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="can*", RUN+="/usr/bin/ip link set $name txqueuelen 10000", RUN+="/usr/bin/ip link set $name type can bitrate 500000", RUN+="/usr/bin/ip link set up $name"
#!/usr/bin/env python
from zeep import Client
from zeep.plugins import HistoryPlugin
import re
from lxml.etree import Element
from lxml import etree
class Project(object):