Giter Club home page Giter Club logo

canscan's Introduction

this is not a dank repo

Hack on. Atlanta-based artificer of high-performance warez.

There he goes: One of God's own prototypes. A high-powered mutant of some kind, never even considered for mass production. Too weird to live, and too rare to die. —Hunter S. Thompson

The key to this joint, the key to staying on top of things, is treat everything like it's your first project, knahmsayin? Like it's your first day like back when you was an intern. Like, that's how you try to treat things like, just stay hungry. —Notorious B.I.G.

github stats

code stoned. debug sober. document drunk.

  • active majors:

  • inactive majors:

  • current primary non-Free effort: microsoft, principal satellite engineer (spacelord)

  • as seen previously at:

    • google, nvidia, intel (senior/principal engineer)
    • luma, arrayfire (chief engineer)
    • dirty south supercomputers and waffles, sprezzatech, reflex security (founder)
  • creator/instructor of CS4003UWS "UNIX Weapons School" at Georgia Tech

Favorite languages (youngest to oldest): Rust, x86 assembly, C, Prolog, Latin.

I am a Debian Developer, and a maintainer for Fedora, Alpine, Arch, and FreeBSD. I've got a Knuth check.

I thought of another moral, more down to earth and concrete, and I believe that every militant chemist can confirm it: that one must distrust the almost-the-same (sodium is almost the same as potassium, but with sodium nothing would have happened), the practically identical, the approximate, all surrogates, and all patchwork. The differences can be small, but they can lead to radically different consequences, like a railroad's switch points: the chemist's trade consists in good part of being aware of these differences, knowing them close up and foreseeing their effects. And not only the chemist's trade. —Primo Levi

canscan's People

Contributors

dankamongmen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

canscan's Issues

NameError: name 'node' is not defined

Hey,

there is probably something I'm missing here, but when running
"sudo python3 -m canscan socketcan can0" (can0 as SocketCAN works, since I'm getting packets in WireShark..)
is says:
" File "/home/ngblume/.local/lib/python3.6/site-packages/canscan/main.py", line 52, in
CanNode = node.Node(dev=args.device, bustype=args.bustype, channel=args.channel)
NameError: name 'node' is not defined"

My understanding is, that this is caused by the object not being defined...
But @dankamongmen: any ideas, what's causing this ??

Thanks !

Cheers
Niels

Watch for new CANopen nodes via passive NMT analysis

Without sending any frames, it still ought be possible to detect most CANopen nodes, as they'll typically be transmitting NMT heartbeats. Watch for NMT traffic, and build a (time-bounded?) list of nodes, for subsequent OD dumping.

Scan for quiet CANopen nodes using SDO discovery

CANopen nodes might not be actively transmitting (especially in e.g. a master-slave setup, as seen in the Curtis 123x series of motor controllers). We can semi-reliably scan for nodes supporting SDO using SDO RX for basic elements (it is possible that another node responds on behalf of the directed node). Scanning via NMT can disrupt the network, so don't do that for now.

Allow nodes to be specified for SDO dump

Allow the user to specify a comma-delimited list of 7-bit nodes on the command line via --sdoscan. These nodes ought be periodically scanned using SDO RXs, even if they haven't been observed (normally, we scan only observed nodes).

Allow scanned range of Object Dictionary to be configured

Allow a command line argument, --oddump, accepting a comma-delimited list of 16-bit ranges, where a range takes the form A or A-B, where A and B are 16-bit integers, and B>=A. When this is supplied, rather than dumping the entire Object Dictionary, dump only the specified IDs.

Not sure how to handle SubIDs here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.