Giter Club home page Giter Club logo

jpnevulator.py's Introduction

jpnevulator.py

This software is an implementation of the serial sniffing tool jpnevulator in Python. It aims to emulate the command line interface and the output of the original tool as much as possible:

$ jpnevulator.py --ascii --timing-print \
  --tty /dev/ttyS0:SB9600d \
  --tty "/dev/ttyUSB0:Motorola MTM800" \
  --read
2015-08-30 13:23:49.461075: SB9600d
00 00 05 3B 0D 00 00 05                         ...;....
2015-08-30 13:23:49.461113: Motorola MTM800
00 05 3B 0D 00 00 05 3B 0D                      ..;....;.
2015-08-30 13:23:49.473074: SB9600d
3B 0D 00 00 05 3B 0D                            ;....;.
2015-08-30 13:23:49.473105: Motorola MTM800
00 12 05 06 39 00 12 05 06 39 1F 00 22 80 00 0E ....9....9.."...
$ 

Differences from the original jpnevulator

Not all command line parameters and their functionality are implemented so far, but the most important ones are:

  • --read
  • --tty NAME:ALIAS
  • --timing-delta MICROSECONDS
  • --timing-print
  • --ascii
  • --width WIDTH

Additional features

One feature that is available in this Python implementation (and missing in the original tool) is controling the baudrates. This is supported by adding them to the tty device name separated by an @:

jpnevulator.py --ascii --timing-print \
  --tty /dev/ttyUSB0@9600:SENDING \
  --tty /dev/ttyUSB1@9600:RECEIVING \
  --read

Alternatively, you could also set the baudrate for all of them with the argument --baudrate BAUDRATE.

Missing features

The following features were decided to be left out:

  • The --alias-separator parameter will not be implemented. Getting this to work with Python's ArgumentParser would be too complicated and doesn't seem to be worth the effort.

Platform Independence

I had problems getting the original jpnevulator to work on Mac OS X. Thus, I wrote this platform independent replacement: Python and the PySerial package this software depends on are availabe for all major operating systems.

Author

jpnevulator.py's People

Contributors

pklaus avatar

Stargazers

Andras Lipoth avatar Felipe Erazo avatar  avatar  avatar Fabian Freyer avatar Kevin.Y avatar Johan avatar Justin Searle avatar Kevin Cheng avatar Wade Simmons avatar KOMATSU Seiji avatar  avatar Yingbo (Max) Wang avatar Sliim avatar yoCruzer avatar David Davidson avatar Emilio avatar samy kamkar avatar dinçer avatar Michael Martin avatar  avatar

Watchers

 avatar  avatar

jpnevulator.py's Issues

Add support for --write

@pklaus - Thanks for creating this awesome tool!

How hard would it be to add support for the --write functionality jpnevulator has?

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.