Coder Social home page Coder Social logo

tacooper / tacooper.github.io Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.13 MB

My web page for games and tools

Home Page: https://tacooper.github.io/

HTML 18.77% JavaScript 78.74% CSS 2.49%
games codenames aliases carbon tools packet-decoding

tacooper.github.io's People

Contributors

tacooper avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tacooper.github.io's Issues

Display hex/bin format for all nibbles in raw packet input

This would allow easy manipulation of each nibble in the raw packet input in order to achieve a desired output value, since there is no "packet encoder" tool. It would also help to "show work" for visualizing each step in the decoding process.

For example, 0x0123 hex input should display:

(Hex:) [    0 ][    1 ][    2 ][    3 ]
(Bin:) [ 0000 ][ 0001 ][ 0010 ][ 0011 ]

These new input (Hex:) and (Bin:) rows should be displayed above the existing decoded (Bin:) and (Hex:) rows.

Change subfield separator for more readability

The current - separator may be confused with a general minus sign, especially since it is placed between numbers. Consider replacing with a more readable/distinct separator character.

Fix decoding sample raw packet

For example, the following input parameters do not result in the expected decoded bit-fields:

  • Packet schema: 6,1,4,3,4,3,5,3
  • Raw packet: 0b900500

Actual: (bin:) 101110 - 0 - 1000 - 000 - 0001 - 010 - 00000 - 00 -
Expected: (bin:) 010111 - 0 - 0100 - 000 - 0000 - 101 - 00000 - 000 -

This failure condition occurs for any packet schema with less total bits than the raw packet length, since the bit-fields are aligned starting with the MSb moving right (as opposed to LSb moving left). Therefore, bit-fields must account for starting at MSb by left-padding when necessary, as follows:

  • Packet schema: 3,6,1,4,3,4,3,5,3
  • Raw packet: 0b900500

Actual: (bin:) 101 - 110010 - 0 - 0000 - 000 - 1010 - 000 - 0000 - -
Expected: (bin:) 000 - 010111 - 0 - 0100 - 000 - 0000 - 101 - 00000 - 000 -

The problem still persists because the raw packet is decoded starting with the LSb moving left, which does not match the packet schema direction.

This bug exists as of version 1.0.0.

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.